tetl 0.1.0
Embedded Template Library
|
Unit type intended for use as a well-behaved empty alternative in etl::variant. In particular, a variant of non-default-constructible types may list etl::monostate as its first alternative: this makes the variant itself default-constructible. More...
#include <etl/variant.hpp>
Friends | |
constexpr auto | operator<=> (monostate, monostate) noexcept -> etl::strong_ordering |
All instances of etl::monostate compare equal. | |
constexpr auto | operator== (monostate, monostate) noexcept -> bool |
All instances of etl::monostate compare equal. | |
Unit type intended for use as a well-behaved empty alternative in etl::variant. In particular, a variant of non-default-constructible types may list etl::monostate as its first alternative: this makes the variant itself default-constructible.
|
friend |
All instances of etl::monostate compare equal.
All instances of etl::monostate compare equal.