Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
arene::base::monostate Struct Reference

A monostate type that is a well-behaved empty value for variants. More...

Friends

ARENE_NODISCARD friend constexpr auto operator!= (monostate, monostate) noexcept -> bool
 All monostates are not not equal.
 
ARENE_NODISCARD friend constexpr auto operator< (monostate, monostate) noexcept -> bool
 A monostate is never less than another monostate.
 
ARENE_NODISCARD friend constexpr auto operator<= (monostate, monostate) noexcept -> bool
 A monostate is always less-equal than another monostate as all are equal.
 
ARENE_NODISCARD friend constexpr auto operator== (monostate, monostate) noexcept -> bool
 All monostates are equal.
 
ARENE_NODISCARD friend constexpr auto operator> (monostate, monostate) noexcept -> bool
 A monostate is never greater than another monostate.
 
ARENE_NODISCARD friend constexpr auto operator>= (monostate, monostate) noexcept -> bool
 A monostate is always greater-equal than another monostate as all are equal.
 

Detailed Description

A monostate type that is a well-behaved empty value for variants.

Friends And Related Symbol Documentation

◆ operator!=

ARENE_NODISCARD friend constexpr auto operator!= ( monostate ,
monostate  ) -> bool
friend

All monostates are not not equal.

Returns
Always returns false

◆ operator<

ARENE_NODISCARD friend constexpr auto operator< ( monostate ,
monostate  ) -> bool
friend

A monostate is never less than another monostate.

Returns
Always returns false

◆ operator<=

ARENE_NODISCARD friend constexpr auto operator<= ( monostate ,
monostate  ) -> bool
friend

A monostate is always less-equal than another monostate as all are equal.

Returns
Always returns true

◆ operator==

ARENE_NODISCARD friend constexpr auto operator== ( monostate ,
monostate  ) -> bool
friend

All monostates are equal.

Returns
Always returns true

◆ operator>

ARENE_NODISCARD friend constexpr auto operator> ( monostate ,
monostate  ) -> bool
friend

A monostate is never greater than another monostate.

Returns
Always returns false

◆ operator>=

ARENE_NODISCARD friend constexpr auto operator>= ( monostate ,
monostate  ) -> bool
friend

A monostate is always greater-equal than another monostate as all are equal.

Returns
Always returns true

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