30 #ifndef __CLAW_ALGORITHM_HPP__
31 #define __CLAW_ALGORITHM_HPP__
35 template<
typename InputIterator,
typename UnaryFunction>
37 ( InputIterator
first, InputIterator last, UnaryFunction f );
39 template<
typename ForwardIterator1,
typename ForwardIterator2>
41 ( ForwardIterator1 first1, ForwardIterator1 last1,
42 ForwardIterator2 first2, ForwardIterator2 last2 );
44 template<
typename ForwardIterator1,
typename ForwardIterator2,
45 typename ForwardIterator3>
47 ( ForwardIterator1 first, ForwardIterator1 last,
48 ForwardIterator2 e1_first, ForwardIterator2 e1_last,
49 ForwardIterator3 e2_first, ForwardIterator3 e2_last );
55 #endif // __CLAW_ALGORITHM_HPP__
Generic algorithms on sequences.
UnaryFunction inplace_for_each(InputIterator first, InputIterator last, UnaryFunction f)
Apply an unary function to all members of a sequence.
Fuction object to get the first element of a std::pair.
std::size_t replace(ForwardIterator1 first, ForwardIterator1 last, ForwardIterator2 e1_first, ForwardIterator2 e1_last, ForwardIterator3 e2_first, ForwardIterator3 e2_last)
Replace a set of elements in a range by other elements.
ForwardIterator1 find_first_not_of(ForwardIterator1 first1, ForwardIterator1 last1, ForwardIterator2 first2, ForwardIterator2 last2)
Find the position in a range of the first element not in the elements of a given range.