roboptim::detail::cast_constraint_type< C, CLIST > Struct Template Reference

Get the constraint type of CLIST that best match C. More...

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

List of all members.

Public Types

typedef fold< CLIST, void, if_
< is_base_of< boost::mpl::_2,
C >, mpl::if_< is_void
< boost::mpl::_1 >
, boost::mpl::_2,
detail::get_descendant
< boost::mpl::_1,
boost::mpl::_2 >
>, boost::mpl::_1 > >::type 
type

Detailed Description

template<typename C, typename CLIST>
struct roboptim::detail::cast_constraint_type< C, CLIST >

Get the constraint type of CLIST that best match C.

Template Parameters:
Cconstraint type.
CLISTa vector of constraint types.

Member Typedef Documentation

template<typename C, typename CLIST>
typedef fold<CLIST, void, if_<is_base_of<boost::mpl::_2, C>, mpl::if_<is_void<boost::mpl::_1>, boost::mpl::_2, detail::get_descendant<boost::mpl::_1, boost::mpl::_2> >, boost::mpl::_1> >::type roboptim::detail::cast_constraint_type< C, CLIST >::type
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines