Skip to content

Class cval_t

class cval_t<T, val> meta

template <typename T, T val>
struct cval_t { … }

Compile-time constant wrapper carrying a value of type T . Usable as a non-type template parameter and convertible to its underlying value.

variable value

constexpr static T value = val

The wrapped constant value

Fully qualified name: kfr::cval_t<T, val>::value

Declared at meta.hpp:132

constructor cval_t<T, val>()

constexpr KFR_MEM_INTRINSIC cval_t() noexcept { … }

Fully qualified name: kfr::cval_t<T, val>::cval_t<T, val>()

Declared at meta.hpp:133

constructor cval_t<T, val>(const cval_t<T, val> &)

constexpr KFR_MEM_INTRINSIC cval_t(const cval_t&) noexcept = default

Fully qualified name: kfr::cval_t<T, val>::cval_t<T, val>(const cval_t<T, val> &)

Declared at meta.hpp:134

constructor cval_t<T, val>(cval_t<T, val> &&)

constexpr KFR_MEM_INTRINSIC cval_t(cval_t&&) noexcept      = default

Fully qualified name: kfr::cval_t<T, val>::cval_t<T, val>(cval_t<T, val> &&)

Declared at meta.hpp:135

typedef value_type

using value_type                                           = T

Fully qualified name: kfr::cval_t<T, val>::value_type

Declared at meta.hpp:136

typedef type

using type                                                 = cval_t

Fully qualified name: kfr::cval_t<T, val>::type

Declared at meta.hpp:137

operator operator type-parameter-0-0()

constexpr KFR_MEM_INTRINSIC operator value_type() const noexcept { … }

Implicit conversion to the underlying value

Fully qualified name: kfr::cval_t<T, val>::operator type-parameter-0-0()

Declared at meta.hpp:139

function operator()()

constexpr KFR_MEM_INTRINSIC value_type operator()() const noexcept { … }

Returns the wrapped value

Fully qualified name: kfr::cval_t<T, val>::operator()()

Declared at meta.hpp:141

Fully qualified name: kfr::cval_t<T, val>

Declared at meta.hpp:129

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.