Claw 1.7.0
algorithm.hpp
Go to the documentation of this file.
00001 /*
00002   CLAW - a C++ Library Absolutely Wonderful
00003 
00004   CLAW is a free library without any particular aim but being useful to 
00005   anyone.
00006 
00007   Copyright (C) 2005-2011 Julien Jorge
00008 
00009   This library is free software; you can redistribute it and/or
00010   modify it under the terms of the GNU Lesser General Public
00011   License as published by the Free Software Foundation; either
00012   version 2.1 of the License, or (at your option) any later version.
00013 
00014   This library is distributed in the hope that it will be useful,
00015   but WITHOUT ANY WARRANTY; without even the implied warranty of
00016   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017   Lesser General Public License for more details.
00018 
00019   You should have received a copy of the GNU Lesser General Public
00020   License along with this library; if not, write to the Free Software
00021   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00022 
00023   contact: julien.jorge@gamned.org
00024 */
00030 #ifndef __CLAW_ALGORITHM_HPP__
00031 #define __CLAW_ALGORITHM_HPP__
00032 
00033 namespace claw
00034 {
00035   template<typename InputIterator, typename UnaryFunction>
00036   UnaryFunction inplace_for_each
00037   ( InputIterator first, InputIterator last, UnaryFunction f );
00038 
00039   template<typename ForwardIterator1, typename ForwardIterator2>
00040   ForwardIterator1 find_first_not_of
00041   ( ForwardIterator1 first1, ForwardIterator1 last1,
00042     ForwardIterator2 first2, ForwardIterator2 last2 );
00043 
00044   template<typename ForwardIterator1, typename ForwardIterator2,
00045            typename ForwardIterator3>
00046   std::size_t replace
00047   ( ForwardIterator1 first, ForwardIterator1 last,
00048     ForwardIterator2 e1_first, ForwardIterator2 e1_last,
00049     ForwardIterator3 e2_first, ForwardIterator3 e2_last );
00050 
00051 } // namespace claw
00052 
00053 #include <claw/impl/algorithm.tpp>
00054 
00055 #endif // __CLAW_ALGORITHM_HPP__