xte::wrap_value<x>::operator<=>()

Defined in header <xte/meta/wrap_value.hpp>

Allows comparing x to other values.


Declarations

#0
[[nodiscard]] friend constexpr auto operator<=>(xte::wrap_value<x>, auto&& rhs) XTE_ARROW(
	x <=> XTE_FWD(rhs)
)

#1
[[nodiscard]] friend constexpr auto operator==(xte::wrap_value<x>, auto&& rhs) XTE_ARROW(
	x == XTE_FWD(rhs)
)


Example

constexpr auto x = xte::wrap_value<0>();

static_assert(x == 0);
[View in Compiler Explorer]