Boost.Geometry    Boost C++ Libraries
Public Types | Static Public Attributes | List of all members
boost::geometry::select_most_precise< T1, T2, void > Struct Template Reference

Public Types

typedef boost::mpl::if_c
< one_not_fundamental,
typename
detail::select_most_precise::select_non_fundamental
< boost::is_fundamental< T1 >
::type::value,
boost::is_fundamental< T2 >
::type::value, T1, T2 >::type,
typename boost::mpl::if_c
< both_same, typename
detail::select_most_precise::select_largest
< second_larger, T1, T2 >
::type, typename
detail::select_most_precise::select_floating_point
< boost::is_floating_point< T1 >
::type::value,
boost::is_floating_point< T2 >
::type::value, T1, T2 >::type >
::type >::type 
type
 

Static Public Attributes

static const bool both_same
 
static const bool one_not_fundamental
 
static const bool second_larger = sizeof(T2) > sizeof(T1)
 

Member Typedef Documentation

template<typename T1 , typename T2 >
typedef boost::mpl::if_c< one_not_fundamental, typename detail::select_most_precise::select_non_fundamental < boost::is_fundamental<T1>::type::value, boost::is_fundamental<T2>::type::value, T1, T2 >::type, typename boost::mpl::if_c < both_same, typename detail::select_most_precise::select_largest < second_larger, T1, T2 >::type, typename detail::select_most_precise::select_floating_point < boost::is_floating_point<T1>::type::value, boost::is_floating_point<T2>::type::value, T1, T2 >::type >::type >::type boost::geometry::select_most_precise< T1, T2, void >::type

Member Data Documentation

template<typename T1 , typename T2 >
const bool boost::geometry::select_most_precise< T1, T2, void >::second_larger = sizeof(T2) > sizeof(T1)
static
template<typename T1 , typename T2 >
const bool boost::geometry::select_most_precise< T1, T2, void >::one_not_fundamental
static
Initial value:
= !
(boost::is_fundamental<T1>::type::value
&& boost::is_fundamental<T2>::type::value)
template<typename T1 , typename T2 >
const bool boost::geometry::select_most_precise< T1, T2, void >::both_same
static
Initial value:
=
boost::is_floating_point<T1>::type::value
== boost::is_floating_point<T2>::type::value

April 2, 2011

Copyright © 2007-2011 Barend Gehrels, Amsterdam, the Netherlands
Copyright © 2008-2011 Bruno Lalande, Paris, France
Copyright © 2009-2010 Mateusz Loskot, London, UK
Documentation is generated by Doxygen