dune-common 2.1.1
Public Types | Public Member Functions | Static Public Attributes
Dune::integral_constant< T, v > Struct Template Reference

Generate a type for a given integral constant. More...

#include <dune/common/typetraits.hh>

Inheritance diagram for Dune::integral_constant< T, v >:
Inheritance graph

List of all members.

Public Types

typedef T value_type
 type of value
typedef integral_constant< T, v > type
 type of this class itself

Public Member Functions

 operator value_type ()
 conversion to value_type/T

Static Public Attributes

static const T value = v
 value this type was generated for

Detailed Description

template<class T, T v>
struct Dune::integral_constant< T, v >

Generate a type for a given integral constant.

Template Parameters:
TType of the constant.
vValue of the constant.

Member Typedef Documentation

template<class T, T v>
typedef integral_constant<T,v> Dune::integral_constant< T, v >::type

type of this class itself

template<class T, T v>
typedef T Dune::integral_constant< T, v >::value_type

type of value


Member Function Documentation

template<class T, T v>
Dune::integral_constant< T, v >::operator value_type ( ) [inline]

conversion to value_type/T


Member Data Documentation

template<class T, T v>
const T Dune::integral_constant< T, v >::value = v [static]

value this type was generated for

Reimplemented in Dune::Int2Type< N >.

Referenced by Dune::integral_constant< int, N >::operator value_type().


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