Files
boost_mpl/include/boost/mpl/aux_/has_rebind.hpp
T

41 lines
1.3 KiB
C++
Raw Normal View History

2002-09-15 22:13:24 +00:00
//-----------------------------------------------------------------------------
// boost mpl/aux_/has_rebind.hpp header file
// See http://www.boost.org for updates, documentation, and revision history.
//-----------------------------------------------------------------------------
//
// Copyright (c) 2002
// Aleksey Gurtovoy
//
// Permission to use, copy, modify, distribute and sell this software
// and its documentation for any purpose is hereby granted without fee,
// provided that the above copyright notice appears in all copies and
// that both the copyright notice and this permission notice appear in
// supporting documentation. No representations are made about the
// suitability of this software for any purpose. It is provided "as is"
// without express or implied warranty.
#ifndef BOOST_MPL_AUX_HAS_REBIND_HPP_INCLUDED
#define BOOST_MPL_AUX_HAS_REBIND_HPP_INCLUDED
2002-11-17 08:09:36 +00:00
#include "boost/mpl/aux_/has_xxx.hpp"
#include "boost/mpl/if.hpp"
2003-02-25 23:11:41 +00:00
#include "boost/mpl/bool.hpp"
2002-11-17 08:09:36 +00:00
#include "boost/type_traits/is_class.hpp"
2002-09-15 22:13:24 +00:00
2002-11-17 08:09:36 +00:00
namespace boost { namespace mpl { namespace aux {
2002-11-25 07:07:03 +00:00
BOOST_MPL_HAS_XXX_TRAIT_NAMED_DEF(has_rebind_impl, rebind, false)
2002-09-15 22:13:24 +00:00
template< typename T >
struct has_rebind
2002-11-17 08:09:36 +00:00
: if_c<
::boost::is_class<T>::value
, has_rebind_impl<T>
2003-02-25 23:11:41 +00:00
, bool_<false>
2002-11-17 08:09:36 +00:00
>::type
{
2002-09-15 22:13:24 +00:00
};
2002-11-17 08:09:36 +00:00
}}}
2002-09-15 22:13:24 +00:00
#endif // BOOST_MPL_AUX_HAS_REBIND_HPP_INCLUDED