Boost.Geometry    Boost C++ Libraries
Public Types | List of all members
boost::geometry::select_calculation_type< Geometry1, Geometry2, CalculationType > Struct Template Reference

Meta-function selecting the "calculation" type. More...

Public Types

typedef boost::mpl::if_
< boost::is_void
< CalculationType >, typename
select_coordinate_type
< Geometry1, Geometry2 >::type,
CalculationType >::type 
type
 

Detailed Description

template<typename Geometry1, typename Geometry2, typename CalculationType>
struct boost::geometry::select_calculation_type< Geometry1, Geometry2, CalculationType >

Meta-function selecting the "calculation" type.

Based on two input geometry types, and an input calculation type, (which defaults to void in the calling function), this meta-function selects the most appropriate:

Member Typedef Documentation

template<typename Geometry1, typename Geometry2, typename CalculationType>
typedef boost::mpl::if_< boost::is_void<CalculationType>, typename select_coordinate_type < Geometry1, Geometry2 >::type, CalculationType >::type boost::geometry::select_calculation_type< Geometry1, Geometry2, CalculationType >::type

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