Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/mpl/replace.hpp @ 16:2665513ce2d3
Add boost headers
author | Chris Cannam |
---|---|
date | Tue, 05 Aug 2014 11:11:38 +0100 |
parents | |
children | c530137014c0 |
comparison
equal
deleted
inserted
replaced
15:663ca0da4350 | 16:2665513ce2d3 |
---|---|
1 | |
2 #ifndef BOOST_MPL_REPLACE_HPP_INCLUDED | |
3 #define BOOST_MPL_REPLACE_HPP_INCLUDED | |
4 | |
5 // Copyright Aleksey Gurtovoy 2000-2004 | |
6 // Copyright John R. Bandela 2000-2002 | |
7 // Copyright David Abrahams 2003-2004 | |
8 // | |
9 // Distributed under the Boost Software License, Version 1.0. | |
10 // (See accompanying file LICENSE_1_0.txt or copy at | |
11 // http://www.boost.org/LICENSE_1_0.txt) | |
12 // | |
13 // See http://www.boost.org/libs/mpl for documentation. | |
14 | |
15 // $Id: replace.hpp 49267 2008-10-11 06:19:02Z agurtovoy $ | |
16 // $Date: 2008-10-10 23:19:02 -0700 (Fri, 10 Oct 2008) $ | |
17 // $Revision: 49267 $ | |
18 | |
19 #include <boost/mpl/replace_if.hpp> | |
20 #include <boost/mpl/same_as.hpp> | |
21 #include <boost/mpl/aux_/inserter_algorithm.hpp> | |
22 | |
23 namespace boost { namespace mpl { | |
24 | |
25 namespace aux { | |
26 | |
27 template< | |
28 typename Sequence | |
29 , typename OldType | |
30 , typename NewType | |
31 , typename Inserter | |
32 > | |
33 struct replace_impl | |
34 : replace_if_impl< Sequence, same_as<OldType>, NewType, Inserter > | |
35 { | |
36 }; | |
37 | |
38 template< | |
39 typename Sequence | |
40 , typename OldType | |
41 , typename NewType | |
42 , typename Inserter | |
43 > | |
44 struct reverse_replace_impl | |
45 : reverse_replace_if_impl< Sequence, same_as<OldType>, NewType, Inserter > | |
46 { | |
47 }; | |
48 | |
49 } // namespace aux | |
50 | |
51 BOOST_MPL_AUX_INSERTER_ALGORITHM_DEF(4, replace) | |
52 | |
53 }} | |
54 | |
55 #endif // BOOST_MPL_REPLACE_HPP_INCLUDED |