os/ossrv/ossrv_pub/boost_apis/boost/mpl/replace.hpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/mpl/replace.hpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,55 @@
     1.4 +
     1.5 +#ifndef BOOST_MPL_REPLACE_HPP_INCLUDED
     1.6 +#define BOOST_MPL_REPLACE_HPP_INCLUDED
     1.7 +
     1.8 +// Copyright Aleksey Gurtovoy 2000-2004
     1.9 +// Copyright John R. Bandela 2000-2002
    1.10 +// Copyright David Abrahams 2003-2004
    1.11 +//
    1.12 +// Distributed under the Boost Software License, Version 1.0. 
    1.13 +// (See accompanying file LICENSE_1_0.txt or copy at 
    1.14 +// http://www.boost.org/LICENSE_1_0.txt)
    1.15 +//
    1.16 +// See http://www.boost.org/libs/mpl for documentation.
    1.17 +
    1.18 +// $Source: /cvsroot/boost/boost/boost/mpl/replace.hpp,v $
    1.19 +// $Date: 2004/11/28 01:57:09 $
    1.20 +// $Revision: 1.8 $
    1.21 +
    1.22 +#include <boost/mpl/replace_if.hpp>
    1.23 +#include <boost/mpl/same_as.hpp>
    1.24 +#include <boost/mpl/aux_/inserter_algorithm.hpp>
    1.25 +
    1.26 +namespace boost { namespace mpl {
    1.27 +
    1.28 +namespace aux {
    1.29 +
    1.30 +template<
    1.31 +      typename Sequence
    1.32 +    , typename OldType
    1.33 +    , typename NewType
    1.34 +    , typename Inserter 
    1.35 +    >
    1.36 +struct replace_impl
    1.37 +    : replace_if_impl< Sequence, same_as<OldType>, NewType, Inserter >
    1.38 +{
    1.39 +};
    1.40 +
    1.41 +template<
    1.42 +      typename Sequence
    1.43 +    , typename OldType
    1.44 +    , typename NewType
    1.45 +    , typename Inserter 
    1.46 +    >
    1.47 +struct reverse_replace_impl
    1.48 +    : reverse_replace_if_impl< Sequence, same_as<OldType>, NewType, Inserter >
    1.49 +{
    1.50 +};
    1.51 +
    1.52 +} // namespace aux
    1.53 +
    1.54 +BOOST_MPL_AUX_INSERTER_ALGORITHM_DEF(4, replace)
    1.55 +
    1.56 +}}
    1.57 +
    1.58 +#endif // BOOST_MPL_REPLACE_HPP_INCLUDED