ALPS MPS Codes
Reference documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
utils::constant< T > Struct Template Reference

#include <function_objects.h>

Public Member Functions

 constant (T v)
 
operator() () const
 

Public Attributes

val
 

Detailed Description

template<class T>
struct utils::constant< T >

Definition at line 58 of file function_objects.h.

Constructor & Destructor Documentation

template<class T >
utils::constant< T >::constant ( v)
inline

Definition at line 61 of file function_objects.h.

61 : val(v) { }

Member Function Documentation

template<class T >
T utils::constant< T >::operator() ( ) const
inline

Definition at line 62 of file function_objects.h.

62 { return val; }

Member Data Documentation

template<class T >
T utils::constant< T >::val

Definition at line 60 of file function_objects.h.


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