StormByte 3.0.0
C++26 foundation of the StormByte suite
Loading...
Searching...
No Matches
StormByte::Safe::Monostate Struct Reference

Empty alternative. More...

#include <StormByte/safe/variant.hxx>

Friends

constexpr bool operator== (Monostate, Monostate) noexcept
 Two empty alternatives are equal.
STORMBYTE_FORCE_INLINE constexpr std::strong_ordering operator<=> (Monostate, Monostate) noexcept
 Two empty alternatives compare equal.

Detailed Description

Empty alternative.

The stand-in for a default-constructed variant that holds no payload.

◆ operator<=>

STORMBYTE_FORCE_INLINE constexpr std::strong_ordering operator<=> ( Monostate ,
Monostate  )
friend

Two empty alternatives compare equal.

Returns
Equal ordering.

◆ operator==

bool operator== ( Monostate ,
Monostate  )
friend

Two empty alternatives are equal.

Returns
Equality.

The documentation for this struct was generated from the following file: