xieite::wrap_value<x>::operator /*???*/()

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

Implicitly casts to the type of x.


Declaration

[[nodiscard]] explicit(false) operator decltype(auto)() const noexcept;
Returns x.


Example

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

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