boost::geometry::transform_variant< variant< BOOST_VARIANT_ENUM_PARAMS(T)>, Op, boost::mpl::na > Struct Template Reference

Meta-function that takes a boost::variant type and an MPL lambda expression and returns a variant type over the same types as the initial variant type, each transformed using the lambda expression. More...

## Detailed Description

### template<BOOST_VARIANT_ENUM_PARAMS(typename T), typename Op>
struct boost::geometry::transform_variant< variant< BOOST_VARIANT_ENUM_PARAMS(T)>, Op, boost::mpl::na >

Meta-function that takes a boost::variant type and an MPL lambda expression and returns a variant type over the same types as the initial variant type, each transformed using the lambda expression.

Example

              typedef variant<int, float, long> variant_type;
              typedef transform_variant<variant_type, add_pointer<_> > transformed;
              typedef variant<int*, float*, long*> result;
              BOOST_MPL_ASSERT(( equal<result, transformed> ));

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