source: vendor/nemo/current/NEMOGCM/EXTERNAL/XIOS/extern/boost/include/boost/mpl/replace.hpp @ 44

Last change on this file since 44 was 44, checked in by cholod, 12 years ago

Load NEMO_TMP into vendor/nemo/current.

File size: 1.2 KB
Line 
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-11 02:19:02 -0400 (Sat, 11 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
23namespace boost { namespace mpl {
24
25namespace aux {
26
27template<
28      typename Sequence
29    , typename OldType
30    , typename NewType
31    , typename Inserter
32    >
33struct replace_impl
34    : replace_if_impl< Sequence, same_as<OldType>, NewType, Inserter >
35{
36};
37
38template<
39      typename Sequence
40    , typename OldType
41    , typename NewType
42    , typename Inserter
43    >
44struct reverse_replace_impl
45    : reverse_replace_if_impl< Sequence, same_as<OldType>, NewType, Inserter >
46{
47};
48
49} // namespace aux
50
51BOOST_MPL_AUX_INSERTER_ALGORITHM_DEF(4, replace)
52
53}}
54
55#endif // BOOST_MPL_REPLACE_HPP_INCLUDED
Note: See TracBrowser for help on using the repository browser.