Nano
A C++ template metaprogramming library
Public Types | Static Public Attributes | List of all members
nano::add< Arg1, Arg2 > Struct Template Reference

Addss two nano numeric types. More...

#include <functions.hpp>

Public Types

using type = nano::size_t< Arg1::value+Arg2::value >
 
using default_type = nano::size_t< 0 >
 

Static Public Attributes

static constexpr Arg1::type result = Arg1::value + Arg2::value
 

Detailed Description

template<typename Arg1, typename Arg2>
struct nano::add< Arg1, Arg2 >

Addss two nano numeric types.

Template Parameters
Arg1The first argument for the addition
Arg2The second argument for addition

Member Typedef Documentation

template<typename Arg1 , typename Arg2 >
using nano::add< Arg1, Arg2 >::default_type = nano::size_t<0>
template<typename Arg1 , typename Arg2 >
using nano::add< Arg1, Arg2 >::type = nano::size_t<Arg1::value + Arg2::value>

Member Data Documentation

template<typename Arg1 , typename Arg2 >
constexpr Arg1::type nano::add< Arg1, Arg2 >::result = Arg1::value + Arg2::value
static

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