os/ossrv/ossrv_pub/boost_apis/boost/mpl/replace.hpp
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
sl@0
     2
#ifndef BOOST_MPL_REPLACE_HPP_INCLUDED
sl@0
     3
#define BOOST_MPL_REPLACE_HPP_INCLUDED
sl@0
     4
sl@0
     5
// Copyright Aleksey Gurtovoy 2000-2004
sl@0
     6
// Copyright John R. Bandela 2000-2002
sl@0
     7
// Copyright David Abrahams 2003-2004
sl@0
     8
//
sl@0
     9
// Distributed under the Boost Software License, Version 1.0. 
sl@0
    10
// (See accompanying file LICENSE_1_0.txt or copy at 
sl@0
    11
// http://www.boost.org/LICENSE_1_0.txt)
sl@0
    12
//
sl@0
    13
// See http://www.boost.org/libs/mpl for documentation.
sl@0
    14
sl@0
    15
// $Source: /cvsroot/boost/boost/boost/mpl/replace.hpp,v $
sl@0
    16
// $Date: 2004/11/28 01:57:09 $
sl@0
    17
// $Revision: 1.8 $
sl@0
    18
sl@0
    19
#include <boost/mpl/replace_if.hpp>
sl@0
    20
#include <boost/mpl/same_as.hpp>
sl@0
    21
#include <boost/mpl/aux_/inserter_algorithm.hpp>
sl@0
    22
sl@0
    23
namespace boost { namespace mpl {
sl@0
    24
sl@0
    25
namespace aux {
sl@0
    26
sl@0
    27
template<
sl@0
    28
      typename Sequence
sl@0
    29
    , typename OldType
sl@0
    30
    , typename NewType
sl@0
    31
    , typename Inserter 
sl@0
    32
    >
sl@0
    33
struct replace_impl
sl@0
    34
    : replace_if_impl< Sequence, same_as<OldType>, NewType, Inserter >
sl@0
    35
{
sl@0
    36
};
sl@0
    37
sl@0
    38
template<
sl@0
    39
      typename Sequence
sl@0
    40
    , typename OldType
sl@0
    41
    , typename NewType
sl@0
    42
    , typename Inserter 
sl@0
    43
    >
sl@0
    44
struct reverse_replace_impl
sl@0
    45
    : reverse_replace_if_impl< Sequence, same_as<OldType>, NewType, Inserter >
sl@0
    46
{
sl@0
    47
};
sl@0
    48
sl@0
    49
} // namespace aux
sl@0
    50
sl@0
    51
BOOST_MPL_AUX_INSERTER_ALGORITHM_DEF(4, replace)
sl@0
    52
sl@0
    53
}}
sl@0
    54
sl@0
    55
#endif // BOOST_MPL_REPLACE_HPP_INCLUDED