epoc32/include/stdapis/boost/mpl/identity.hpp
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
     1.1 --- a/epoc32/include/stdapis/boost/mpl/identity.hpp	Wed Mar 31 12:27:01 2010 +0100
     1.2 +++ b/epoc32/include/stdapis/boost/mpl/identity.hpp	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -1,17 +1,45 @@
     1.4 -# /* **************************************************************************
     1.5 -#  *                                                                          *
     1.6 -#  *     (C) Copyright Paul Mensonides 2002.
     1.7 -#  *     Distributed under the Boost Software License, Version 1.0. (See
     1.8 -#  *     accompanying file LICENSE_1_0.txt or copy at
     1.9 -#  *     http://www.boost.org/LICENSE_1_0.txt)
    1.10 -#  *                                                                          *
    1.11 -#  ************************************************************************** */
    1.12 -#
    1.13 -# /* See http://www.boost.org for most recent version. */
    1.14 -#
    1.15 -# ifndef BOOST_PREPROCESSOR_IDENTITY_HPP
    1.16 -# define BOOST_PREPROCESSOR_IDENTITY_HPP
    1.17 -#
    1.18 -# include <boost/preprocessor/facilities/identity.hpp>
    1.19 -#
    1.20 -# endif
    1.21 +
    1.22 +#ifndef BOOST_MPL_IDENTITY_HPP_INCLUDED
    1.23 +#define BOOST_MPL_IDENTITY_HPP_INCLUDED
    1.24 +
    1.25 +// Copyright Aleksey Gurtovoy 2000-2004
    1.26 +//
    1.27 +// Distributed under the Boost Software License, Version 1.0. 
    1.28 +// (See accompanying file LICENSE_1_0.txt or copy at 
    1.29 +// http://www.boost.org/LICENSE_1_0.txt)
    1.30 +//
    1.31 +// See http://www.boost.org/libs/mpl for documentation.
    1.32 +
    1.33 +// $Source: /cvsroot/boost/boost/boost/mpl/identity.hpp,v $
    1.34 +// $Date: 2004/09/02 15:40:41 $
    1.35 +// $Revision: 1.4 $
    1.36 +
    1.37 +#include <boost/mpl/aux_/na_spec.hpp>
    1.38 +#include <boost/mpl/aux_/lambda_support.hpp>
    1.39 +
    1.40 +namespace boost { namespace mpl {
    1.41 +
    1.42 +template<
    1.43 +      typename BOOST_MPL_AUX_NA_PARAM(T)
    1.44 +    >
    1.45 +struct identity
    1.46 +{
    1.47 +    typedef T type;
    1.48 +    BOOST_MPL_AUX_LAMBDA_SUPPORT(1, identity, (T))
    1.49 +};
    1.50 +
    1.51 +template<
    1.52 +      typename BOOST_MPL_AUX_NA_PARAM(T)
    1.53 +    >
    1.54 +struct make_identity
    1.55 +{
    1.56 +    typedef identity<T> type;
    1.57 +    BOOST_MPL_AUX_LAMBDA_SUPPORT(1, make_identity, (T))
    1.58 +};
    1.59 +
    1.60 +BOOST_MPL_AUX_NA_SPEC_NO_ETI(1, identity)
    1.61 +BOOST_MPL_AUX_NA_SPEC_NO_ETI(1, make_identity)
    1.62 +
    1.63 +}}
    1.64 +
    1.65 +#endif // BOOST_MPL_IDENTITY_HPP_INCLUDED