ASCO Aerial Autonomy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions
boost::mpl Namespace Reference

namespace for mpl module More...

Namespaces

 aux
 namespace for aux module
 

Functions

template<typename Sequence , typename TransformOp , typename F >
bool exec_if (F f, Sequence *=0, TransformOp *=0)
 Function to go through elements of boost sequence and apply the functor F on each element. If the functor F returns false in between the function stops executing further elements and returns false. More...
 
template<typename Sequence , typename F >
bool exec_if (F f, Sequence *=0)
 Simplified implementation without transform operation. More...
 

Detailed Description

namespace for mpl module

Function Documentation

template<typename Sequence , typename TransformOp , typename F >
bool boost::mpl::exec_if ( f,
Sequence *  = 0,
TransformOp *  = 0 
)
inline

Function to go through elements of boost sequence and apply the functor F on each element. If the functor F returns false in between the function stops executing further elements and returns false.

Template Parameters
SequenceSequence type to iterate on
TransformOpOperation to transform the elements in the sequence
FFunctor type to apply on the element sequence
Parameters
ffunctor instance
Sequencepointer (Sequence elements are instantiated by default)
Transformoperation pointer not used (Instantiated internally)
Returns
If the functor F returns false in between the function stops executing further elements and returns false. Otherwise returns true.
template<typename Sequence , typename F >
bool boost::mpl::exec_if ( f,
Sequence *  = 0 
)
inline

Simplified implementation without transform operation.

Template Parameters
SequenceSequence type to iterate on
FFunctor type to apply on the element sequence
Parameters
ffunctor instance
Sequencepointer (Sequence elements are instantiated by default)
Returns
If the functor F returns false in between the function stops executing further elements and returns false. Otherwise returns true.