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

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

Allows comparing x to other values.


Declarations

#0
[[nodiscard]] friend constexpr auto operator<=>(xieite::wrap_value<x>, auto&& rhs) XIEITE_ARROW(
	x <=> XIEITE_FWD(rhs)
)

#1
[[nodiscard]] friend constexpr auto operator==(xieite::wrap_value<x>, auto&& rhs) XIEITE_ARROW(
	x == XIEITE_FWD(rhs)
)


Example

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

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