![]() |
![]() |
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...
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.
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 |