New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
replace.hpp in vendors/XIOS/current/extern/boost/include/boost/mpl – NEMO

source: vendors/XIOS/current/extern/boost/include/boost/mpl/replace.hpp @ 3408

Last change on this file since 3408 was 3408, checked in by rblod, 12 years ago

importing initial XIOS vendor drop

  • Property svn:keywords set to Id
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$
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.