xte::as_xvalue()

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

Casts to xvalue.


Definition

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



Example

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