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

Converts CLIST to a boost::mpl::vector to ensure a similar behavior for codes using different random access sequences (vector, list, etc.). More...

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

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

Detailed Description

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

Converts CLIST to a boost::mpl::vector to ensure a similar behavior for codes using different random access sequences (vector, list, etc.).

In the case of boost::mpl::vector, this ensures a normalized representation of the vector (boost::mpl::vector converted to boost::mpl::v_item) and orders the constraints in a proper way. This makes the use of typeid comparison possible.

Template Parameters
CLISTvector of types