xte::xvalue()

Defined in header <xte/math/xvalue.hpp>

Casts to xvalue.


Definition

inline constexpr auto xvalue = [][[nodiscard]](auto&& x) static noexcept -> auto&& { /* ... */ };



Example

int x;
static_assert(^^int&& == ^^decltype(xte::xvalue(x)));
[View in Compiler Explorer]