namespace for mpl module
More...
|
| | aux |
| | namespace for aux module
|
| |
|
| 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...
|
| |
template<typename Sequence , typename TransformOp , typename F >
| bool boost::mpl::exec_if |
( |
F |
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
-
| Sequence | Sequence type to iterate on |
| TransformOp | Operation to transform the elements in the sequence |
| F | Functor type to apply on the element sequence |
- Parameters
-
| f | functor instance |
| Sequence | pointer (Sequence elements are instantiated by default) |
| Transform | operation 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 |
f, |
|
|
Sequence * |
= 0 |
|
) |
| |
|
inline |
Simplified implementation without transform operation.
- Template Parameters
-
| Sequence | Sequence type to iterate on |
| F | Functor type to apply on the element sequence |
- Parameters
-
| f | functor instance |
| Sequence | pointer (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.