author | sl@SLION-WIN7.fritz.box |
Fri, 15 Jun 2012 03:10:57 +0200 | |
changeset 0 | bde4ae8d615e |
permissions | -rw-r--r-- |
sl@0 | 1 |
|
sl@0 | 2 |
#ifndef BOOST_MPL_SAME_AS_HPP_INCLUDED |
sl@0 | 3 |
#define BOOST_MPL_SAME_AS_HPP_INCLUDED |
sl@0 | 4 |
|
sl@0 | 5 |
// Copyright Aleksey Gurtovoy 2000-2004 |
sl@0 | 6 |
// |
sl@0 | 7 |
// Distributed under the Boost Software License, Version 1.0. |
sl@0 | 8 |
// (See accompanying file LICENSE_1_0.txt or copy at |
sl@0 | 9 |
// http://www.boost.org/LICENSE_1_0.txt) |
sl@0 | 10 |
// |
sl@0 | 11 |
// See http://www.boost.org/libs/mpl for documentation. |
sl@0 | 12 |
|
sl@0 | 13 |
// $Source: /cvsroot/boost/boost/boost/mpl/same_as.hpp,v $ |
sl@0 | 14 |
// $Date: 2004/09/02 15:40:42 $ |
sl@0 | 15 |
// $Revision: 1.6 $ |
sl@0 | 16 |
|
sl@0 | 17 |
#include <boost/mpl/not.hpp> |
sl@0 | 18 |
#include <boost/mpl/aux_/lambda_spec.hpp> |
sl@0 | 19 |
#include <boost/mpl/aux_/config/forwarding.hpp> |
sl@0 | 20 |
|
sl@0 | 21 |
#include <boost/type_traits/is_same.hpp> |
sl@0 | 22 |
|
sl@0 | 23 |
namespace boost { namespace mpl { |
sl@0 | 24 |
|
sl@0 | 25 |
template< typename T1 > |
sl@0 | 26 |
struct same_as |
sl@0 | 27 |
{ |
sl@0 | 28 |
template< typename T2 > struct apply |
sl@0 | 29 |
#if !defined(BOOST_MPL_CFG_NO_NESTED_FORWARDING) |
sl@0 | 30 |
: is_same<T1,T2> |
sl@0 | 31 |
{ |
sl@0 | 32 |
#else |
sl@0 | 33 |
{ |
sl@0 | 34 |
typedef typename is_same<T1,T2>::type type; |
sl@0 | 35 |
#endif |
sl@0 | 36 |
}; |
sl@0 | 37 |
}; |
sl@0 | 38 |
|
sl@0 | 39 |
template< typename T1 > |
sl@0 | 40 |
struct not_same_as |
sl@0 | 41 |
{ |
sl@0 | 42 |
template< typename T2 > struct apply |
sl@0 | 43 |
#if !defined(BOOST_MPL_CFG_NO_NESTED_FORWARDING) |
sl@0 | 44 |
: not_< is_same<T1,T2> > |
sl@0 | 45 |
{ |
sl@0 | 46 |
#else |
sl@0 | 47 |
{ |
sl@0 | 48 |
typedef typename not_< is_same<T1,T2> >::type type; |
sl@0 | 49 |
#endif |
sl@0 | 50 |
}; |
sl@0 | 51 |
}; |
sl@0 | 52 |
|
sl@0 | 53 |
}} |
sl@0 | 54 |
|
sl@0 | 55 |
#endif // BOOST_MPL_SAME_AS_HPP_INCLUDED |