MCPcopy Create free account
hub / github.com/bitwizeshift/result / constexpr_type

Class constexpr_type

test/src/result.constexpr.test.cpp:47–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47struct constexpr_type
48{
49 constexpr constexpr_type() noexcept = default;
50 constexpr constexpr_type(const constexpr_type&) noexcept = default;
51 constexpr constexpr_type(constexpr_type&&) noexcept = default;
52 constexpr constexpr_type(int x) noexcept : m_storage{x}{}
53
54 auto operator=(const constexpr_type&) noexcept -> constexpr_type& = default;
55 auto operator=(constexpr_type&&) noexcept -> constexpr_type& = default;
56 auto operator=(int x) noexcept -> constexpr_type&
57 {
58 m_storage = x;
59 return (*this);
60 }
61 int m_storage = 0;
62};
63
64inline constexpr
65auto operator==(const constexpr_type& lhs, const constexpr_type& rhs)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected