All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
roboptim::detail::shared_ptr_variant< CLIST > Struct Template Reference

Generate a Boost.Variant of shared pointers from the static constraints types list. More...

#include <roboptim/core/detail/utility.hh>

Inheritance diagram for roboptim::detail::shared_ptr_variant< CLIST >:

Detailed Description

template<typename CLIST>
struct roboptim::detail::shared_ptr_variant< CLIST >

Generate a Boost.Variant of shared pointers from the static constraints types list.

For instance, if one instantiates

Problem<QuadraticFunction, vector<LinearFunction, QuadraticFunction> >

then this type will be set to:

boost::variant<boost::shared_ptr<LinearFunction>,
boost::shared_ptr<QuadraticFunction> >
Template Parameters
CLISTvector of types