Boost.Geometry    Boost C++ Libraries
boost::geometry::transform_variant< Sequence, Op, In > Struct Template Reference

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

Inheritance diagram for boost::geometry::transform_variant< Sequence, Op, In >:

Detailed Description

template<typename Sequence, typename Op, typename In = boost::mpl::na>
struct boost::geometry::transform_variant< Sequence, Op, In >

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

Example
typedef boost::mpl::vector<int, float, long> types;
typedef transform_variant<types, 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
Documentation is generated by Doxygen