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

Meta-function converting, if necessary, to "a floating point" type. More...

#include <promote_floating_point.hpp>

Inheritance diagram for boost::geometry::promote_floating_point< T, PromoteIntegerTo >:

Public Types

typedef boost::mpl::if_
< boost::is_integral< T >
, PromoteIntegerTo, T >::type 
type
 

Detailed Description

template<typename T, typename PromoteIntegerTo = double>
struct boost::geometry::promote_floating_point< T, PromoteIntegerTo >

Meta-function converting, if necessary, to "a floating point" type.

  • if input type is integer, type is double
  • else type is input type

Member Typedef Documentation

template<typename T, typename PromoteIntegerTo = double>
typedef boost::mpl::if_< boost::is_integral<T>, PromoteIntegerTo, T >::type boost::geometry::promote_floating_point< T, PromoteIntegerTo >::type

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