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

static class template for the size of a type's value More...

#include <value_size.hpp>

Public Member Functions

template<>
std::size_t apply (const int &value)
 
template<>
std::size_t apply (const double &value)
 

Static Public Member Functions

static std::size_t apply (const Type &val)
 The size of a value is used to be able to order values according to their simplicity. More...
 

Detailed Description

template<class Type>
struct boost::icl::value_size< Type >

static class template for the size of a type's value

This function is needed to be able to order values according to their size. This is used to e.g. prefer simple test instances and to express this simplicity independent of the type of the test case.

Author
Joachim Faulhaber

Member Function Documentation

template<typename Type >
std::size_t boost::icl::value_size< Type >::apply ( const Type &  val)
inlinestatic

The size of a value is used to be able to order values according to their simplicity.

References boost::icl::iterative_size().

template<>
std::size_t boost::icl::value_size< int >::apply ( const int &  value)
inline

References boost::icl::abs().

template<>
std::size_t boost::icl::value_size< double >::apply ( const double &  value)
inline

References boost::icl::abs().


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