Unit type intended for use as a well-behaved empty alternative in variant. More...
#include <variant.hpp>
Related Functions | |
(Note that these are not member functions.) | |
constexpr bool | operator< (monostate, monostate) noexcept |
constexpr bool | operator> (monostate, monostate) noexcept |
constexpr bool | operator<= (monostate, monostate) noexcept |
constexpr bool | operator>= (monostate, monostate) noexcept |
constexpr bool | operator== (monostate, monostate) noexcept |
constexpr bool | operator!= (monostate, monostate) noexcept |
Unit type intended for use as a well-behaved empty alternative in variant.
In particular, a variant of non-default-constructible types may list monostate as its first alternative: this makes the variant itself default-constructible.