boost::geometry::add_const_if_c
add_const_if_c.hpp
bool IsConst IsConst
typename Type
boost::mpl::if_c< IsConst, Type const, Type >::type typedef boost::mpl::if_c< IsConst, Type const, Type >::type boost::geometry::add_const_if_c< IsConst, Type >::type type

Meta-function to define a const or non const type.

If the boolean template parameter is true, the type parameter will be defined as const, otherwise it will be defined as it was. This meta-function is used to have one implementation for both const and non const references

This traits class is completely independant from Boost.Geometry and might be a separate addition to Boost

Used in a.o. for_each, interior_rings, exterior_ring

# Example

    voidfoo(typenameadd_const_if_c<IsConst,Point>::type&point)

- boost::geometry::add_const_if_c
  type