Unit type intended for use as a well-behaved empty alternative in Shims::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 Shims::variant.
In particular, a Shims::variant of non-default-constructible types may list monostate as its first alternative: this makes the Shims::variant itself default-constructible.