epoc32/include/stdapis/boost/mpl/same_as.hpp
branchSymbian2
changeset 2 2fe1408b6811
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/stdapis/boost/mpl/same_as.hpp	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,55 @@
     1.4 +
     1.5 +#ifndef BOOST_MPL_SAME_AS_HPP_INCLUDED
     1.6 +#define BOOST_MPL_SAME_AS_HPP_INCLUDED
     1.7 +
     1.8 +// Copyright Aleksey Gurtovoy 2000-2004
     1.9 +//
    1.10 +// Distributed under the Boost Software License, Version 1.0. 
    1.11 +// (See accompanying file LICENSE_1_0.txt or copy at 
    1.12 +// http://www.boost.org/LICENSE_1_0.txt)
    1.13 +//
    1.14 +// See http://www.boost.org/libs/mpl for documentation.
    1.15 +
    1.16 +// $Source: /cvsroot/boost/boost/boost/mpl/same_as.hpp,v $
    1.17 +// $Date: 2004/09/02 15:40:42 $
    1.18 +// $Revision: 1.6 $
    1.19 +
    1.20 +#include <boost/mpl/not.hpp>
    1.21 +#include <boost/mpl/aux_/lambda_spec.hpp>
    1.22 +#include <boost/mpl/aux_/config/forwarding.hpp>
    1.23 +
    1.24 +#include <boost/type_traits/is_same.hpp>
    1.25 +
    1.26 +namespace boost { namespace mpl {
    1.27 +
    1.28 +template< typename T1 >
    1.29 +struct same_as
    1.30 +{
    1.31 +    template< typename T2 > struct apply
    1.32 +#if !defined(BOOST_MPL_CFG_NO_NESTED_FORWARDING)
    1.33 +        : is_same<T1,T2>
    1.34 +    {
    1.35 +#else
    1.36 +    {
    1.37 +        typedef typename is_same<T1,T2>::type type;
    1.38 +#endif
    1.39 +    };
    1.40 +};
    1.41 +
    1.42 +template< typename T1 >
    1.43 +struct not_same_as
    1.44 +{
    1.45 +    template< typename T2 > struct apply
    1.46 +#if !defined(BOOST_MPL_CFG_NO_NESTED_FORWARDING)
    1.47 +        : not_< is_same<T1,T2> >
    1.48 +    {
    1.49 +#else
    1.50 +    {
    1.51 +        typedef typename not_< is_same<T1,T2> >::type type;
    1.52 +#endif
    1.53 +    };
    1.54 +};
    1.55 +
    1.56 +}}
    1.57 +
    1.58 +#endif // BOOST_MPL_SAME_AS_HPP_INCLUDED