GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::meta::Constant< X > Struct Template Reference

Wrapper type for a compile-time constant value. More...

#include <GREM/core/metaprogramming.hpp>

Public Types

using type = Constant
using value_type = decltype(X)

Public Member Functions

constexpr operator value_type () const noexcept
constexpr value_type operator() () const noexcept

Static Public Attributes

static constexpr const auto & value = X

Detailed Description

template<auto X>
struct grem::meta::Constant< X >

Wrapper type for a compile-time constant value.

Template Parameters
Xconstant value to wrap.

Member Typedef Documentation

◆ type

template<auto X>
using grem::meta::Constant< X >::type = Constant

◆ value_type

template<auto X>
using grem::meta::Constant< X >::value_type = decltype(X)

Member Function Documentation

◆ operator value_type()

template<auto X>
grem::meta::Constant< X >::operator value_type ( ) const
inlineconstexprnoexcept

◆ operator()()

template<auto X>
value_type grem::meta::Constant< X >::operator() ( ) const
inlineconstexprnoexcept

Member Data Documentation

◆ value

template<auto X>
const auto& grem::meta::Constant< X >::value = X
staticconstexpr

The documentation for this struct was generated from the following file: