Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::numeric_values< T > Struct Template Reference

This generic type reports various numeric values for some type. More...

#include <numeric_values.hpp>

Public Types

typedef T value_type
 

Static Public Member Functions

static T zero ()
 
static T infinity ()
 

Detailed Description

template<typename T>
struct boost::numeric_values< T >

This generic type reports various numeric values for some type.

In the general case, numeric values simply treat their maximum value as infinity and the default-constructed value as 0.

Specializations of this template can redefine the notions of zero and infinity for various types. For example, the class is specialized for floating point types to use the built in notion of infinity.

Member Typedef Documentation

template<typename T >
typedef T boost::numeric_values< T >::value_type

Member Function Documentation

template<typename T >
static T boost::numeric_values< T >::infinity ( )
inlinestatic
template<typename T >
static T boost::numeric_values< T >::zero ( )
inlinestatic

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