Nano
A C++ template metaprogramming library
Public Types | Public Member Functions | Static Public Attributes | List of all members
nano::int_t< Value > Struct Template Reference

Wrapper around int for static int types used by metaclass and metafunctions in nano. More...

#include <numeric_types.hpp>

Public Types

using type = int
 

Public Member Functions

constexpr int runtime_value () const
 Gets the value of the type at runtime. More...
 

Static Public Attributes

static constexpr int value = Value
 Gets the value type at compile time. More...
 

Detailed Description

template<int Value>
struct nano::int_t< Value >

Wrapper around int for static int types used by metaclass and metafunctions in nano.

Template Parameters
ValueThe value of the int type

Member Typedef Documentation

template<int Value>
using nano::int_t< Value >::type = int

Member Function Documentation

template<int Value>
constexpr int nano::int_t< Value >::runtime_value ( ) const
inline

Gets the value of the type at runtime.

Returns
The value the type is holding

Member Data Documentation

template<int Value>
constexpr int nano::int_t< Value >::value = Value
static

Gets the value type at compile time.


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