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

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

#include <numeric_types.hpp>

Public Types

using type = std::size_t
 

Public Member Functions

constexpr std::size_t runtime_value () const
 Gets the value of the type at runtime. More...
 

Static Public Attributes

static constexpr std::size_t value = Value
 Gets the value of the tyoe at compile time. More...
 

Detailed Description

template<std::size_t Value>
struct nano::size_t< Value >

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

Template Parameters
ValueThe value of the size_t type

Member Typedef Documentation

template<std::size_t Value>
using nano::size_t< Value >::type = std::size_t

Member Function Documentation

template<std::size_t Value>
constexpr std::size_t nano::size_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<std::size_t Value>
constexpr std::size_t nano::size_t< Value >::value = Value
static

Gets the value of the tyoe at compile time.


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