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

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

Returns x.


Definition

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



Example

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

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