mirror of
https://github.com/boostorg/intrusive.git
synced 2025-08-03 14:34:44 +02:00
Reduced include dependencies
This commit is contained in:
@@ -19,8 +19,9 @@
|
|||||||
#include <boost/intrusive/detail/config_begin.hpp>
|
#include <boost/intrusive/detail/config_begin.hpp>
|
||||||
#include <boost/intrusive/intrusive_fwd.hpp>
|
#include <boost/intrusive/intrusive_fwd.hpp>
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <functional>
|
#include <boost/intrusive/detail/minimal_less_equal_header.hpp>
|
||||||
#include <utility>
|
#include <boost/intrusive/detail/minimal_pair_header.hpp>
|
||||||
|
|
||||||
|
|
||||||
#include <boost/static_assert.hpp>
|
#include <boost/static_assert.hpp>
|
||||||
#include <boost/intrusive/avl_set_hook.hpp>
|
#include <boost/intrusive/avl_set_hook.hpp>
|
||||||
|
@@ -47,9 +47,9 @@
|
|||||||
#include <boost/move/utility_core.hpp>
|
#include <boost/move/utility_core.hpp>
|
||||||
#include <boost/move/adl_move_swap.hpp>
|
#include <boost/move/adl_move_swap.hpp>
|
||||||
|
|
||||||
#include <utility> //pair
|
#include <boost/intrusive/detail/minimal_pair_header.hpp>
|
||||||
#include <cstddef> //size_t...
|
#include <cstddef> //size_t...
|
||||||
#include <functional>//less, equal_to
|
#include <boost/intrusive/detail/minimal_less_equal_header.hpp>//less, equal_to
|
||||||
|
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
|
@@ -25,7 +25,8 @@
|
|||||||
#include <boost/intrusive/detail/uncast.hpp>
|
#include <boost/intrusive/detail/uncast.hpp>
|
||||||
#include <boost/intrusive/detail/math.hpp>
|
#include <boost/intrusive/detail/math.hpp>
|
||||||
#include <boost/intrusive/detail/algo_type.hpp>
|
#include <boost/intrusive/detail/algo_type.hpp>
|
||||||
#include <utility>
|
|
||||||
|
#include <boost/intrusive/detail/minimal_pair_header.hpp>
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
namespace intrusive {
|
namespace intrusive {
|
||||||
|
@@ -1,372 +1,331 @@
|
|||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// (C) Copyright Ion Gaztanaga 2011-2014. Distributed under the Boost
|
// (C) Copyright Ion Gaztanaga 2014-2014. Distributed under the Boost
|
||||||
// Software License, Version 1.0. (See accompanying file
|
// Software License, Version 1.0. (See accompanying file
|
||||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
//
|
//
|
||||||
// See http://www.boost.org/libs/intrusive for documentation.
|
// See http://www.boost.org/libs/container for documentation.
|
||||||
//
|
//
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
// sample.h
|
#ifndef BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_CALLABLE_WITH_HPP
|
||||||
|
#define BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_CALLABLE_WITH_HPP
|
||||||
|
|
||||||
#if !defined(BOOST_PP_IS_ITERATING)
|
//Mark that we don't support 0 arg calls due to compiler ICE in GCC 3.4/4.0/4.1 and
|
||||||
|
//wrong SFINAE for GCC 4.2/4.3
|
||||||
#ifndef BOOST_INTRUSIVE_DETAIL_HAS_MEMBER_FUNCTION_CALLABLE_WITH_DETAILS_INCLUDED
|
#if defined(__GNUC__) && !defined(__clang__) && ((__GNUC__*100 + __GNUC_MINOR__*10) >= 340) && ((__GNUC__*100 + __GNUC_MINOR__*10) <= 430)
|
||||||
#define BOOST_INTRUSIVE_DETAIL_HAS_MEMBER_FUNCTION_CALLABLE_WITH_DETAILS_INCLUDED
|
|
||||||
|
|
||||||
#include <boost/intrusive/detail/preprocessor.hpp>
|
|
||||||
#include <boost/intrusive/detail/mpl.hpp>
|
|
||||||
#include <boost/move/utility_core.hpp>
|
|
||||||
|
|
||||||
|
|
||||||
//Mark that we don't support 0 arg calls due to compiler ICE in GCC 3.4/4.0/4.1 and
|
|
||||||
//wrong SFINAE for GCC 4.2/4.3
|
|
||||||
#if defined(__GNUC__) && !defined(__clang__) && ((__GNUC__*100 + __GNUC_MINOR__*10) >= 340) && ((__GNUC__*100 + __GNUC_MINOR__*10) <= 430)
|
|
||||||
#define BOOST_INTRUSIVE_DETAIL_HAS_MEMBER_FUNCTION_CALLABLE_WITH_0_ARGS_UNSUPPORTED
|
#define BOOST_INTRUSIVE_DETAIL_HAS_MEMBER_FUNCTION_CALLABLE_WITH_0_ARGS_UNSUPPORTED
|
||||||
#elif defined(BOOST_INTEL) && (BOOST_INTEL < 1200 )
|
#elif defined(BOOST_INTEL) && (BOOST_INTEL < 1200 )
|
||||||
#define BOOST_INTRUSIVE_DETAIL_HAS_MEMBER_FUNCTION_CALLABLE_WITH_0_ARGS_UNSUPPORTED
|
#define BOOST_INTRUSIVE_DETAIL_HAS_MEMBER_FUNCTION_CALLABLE_WITH_0_ARGS_UNSUPPORTED
|
||||||
#endif
|
#endif
|
||||||
|
#include <cstddef>
|
||||||
|
#include <boost/move/utility_core.hpp>
|
||||||
|
#include <boost/move/detail/fwd_macros.hpp>
|
||||||
|
|
||||||
namespace boost_intrusive_has_member_function_callable_with {
|
namespace boost_intrusive_hmfcw {
|
||||||
|
|
||||||
struct dont_care
|
typedef char yes_type;
|
||||||
{
|
struct no_type{ char dummy[2]; };
|
||||||
|
|
||||||
|
#if defined(BOOST_NO_CXX11_DECLTYPE)
|
||||||
|
|
||||||
|
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
||||||
|
|
||||||
|
template<class T>
|
||||||
|
struct make_dontcare
|
||||||
|
{
|
||||||
|
typedef dont_care type;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
struct dont_care
|
||||||
|
{
|
||||||
dont_care(...);
|
dont_care(...);
|
||||||
};
|
};
|
||||||
|
|
||||||
template<class T>
|
struct private_type
|
||||||
struct make_dontcare
|
{
|
||||||
{
|
|
||||||
typedef boost_intrusive_has_member_function_callable_with::dont_care type;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct private_type
|
|
||||||
{
|
|
||||||
static private_type p;
|
static private_type p;
|
||||||
private_type const &operator,(int) const;
|
private_type const &operator,(int) const;
|
||||||
|
};
|
||||||
|
|
||||||
|
template<typename T>
|
||||||
|
no_type is_private_type(T const &);
|
||||||
|
yes_type is_private_type(private_type const &);
|
||||||
|
|
||||||
|
#endif //#if defined(BOOST_NO_CXX11_DECLTYPE)
|
||||||
|
|
||||||
|
#if defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
||||||
|
|
||||||
|
template<typename T> struct remove_cv { typedef T type; };
|
||||||
|
template<typename T> struct remove_cv<const T> { typedef T type; };
|
||||||
|
template<typename T> struct remove_cv<const volatile T> { typedef T type; };
|
||||||
|
template<typename T> struct remove_cv<volatile T> { typedef T type; };
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
} //namespace boost_intrusive_hmfcw {
|
||||||
|
|
||||||
|
#endif //BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_CALLABLE_WITH_HPP
|
||||||
|
|
||||||
|
#ifndef BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME
|
||||||
|
#error "You MUST define BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME before including this header!"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_MIN
|
||||||
|
#error "You MUST define BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_MIN before including this header!"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_MAX
|
||||||
|
#error "You MUST define BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_MAX before including this header!"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_MAX < BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_MIN
|
||||||
|
#error "BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_MAX value MUST be greater or equal than BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_MIN!"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_MAX == 0
|
||||||
|
#define BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_COMMA_IF
|
||||||
|
#else
|
||||||
|
#define BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_COMMA_IF ,
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_NS_BEG
|
||||||
|
#error "BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_NS_BEG not defined!"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_NS_END
|
||||||
|
#error "BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_NS_END not defined!"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_NS_BEG
|
||||||
|
|
||||||
|
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_DECLTYPE)
|
||||||
|
//With decltype and variadic templaes, things are pretty easy
|
||||||
|
template<typename Fun, class ...Args>
|
||||||
|
struct BOOST_MOVE_CAT(has_member_function_callable_with_,BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)
|
||||||
|
{
|
||||||
|
template<class U>
|
||||||
|
static decltype(boost::move_detail::declval<U>().
|
||||||
|
BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME(::boost::move_detail::declval<Args>()...)
|
||||||
|
, boost_intrusive_hmfcw::yes_type()) Test(U* f);
|
||||||
|
template<class U>
|
||||||
|
static boost_intrusive_hmfcw::no_type Test(...);
|
||||||
|
static const bool value = sizeof(Test<Fun>((Fun*)0)) == sizeof(boost_intrusive_hmfcw::yes_type);
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef char yes_type; // sizeof(yes_type) == 1
|
#else //defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) || defined(BOOST_NO_CXX11_DECLTYPE)
|
||||||
struct no_type{ char dummy[2]; }; // sizeof(no_type) == 2
|
|
||||||
|
|
||||||
template<typename T>
|
/////////////////////////////////////////////////////////
|
||||||
no_type is_private_type(T const &);
|
/////////////////////////////////////////////////////////
|
||||||
yes_type is_private_type(private_type const &);
|
//
|
||||||
|
// has_member_function_callable_with_impl_XXX
|
||||||
} //boost_intrusive_has_member_function_callable_with
|
// declaration, special case and 0 arg specializaton
|
||||||
|
//
|
||||||
|
/////////////////////////////////////////////////////////
|
||||||
|
/////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
||||||
#define BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_SINGLE_ITERATION
|
/////////////////////////////////////////////////////////
|
||||||
#endif
|
/////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// has_member_function_callable_with_impl_XXX for 1 to N arguments
|
||||||
|
//
|
||||||
|
/////////////////////////////////////////////////////////
|
||||||
|
/////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#endif //BOOST_INTRUSIVE_DETAIL_HAS_MEMBER_FUNCTION_CALLABLE_WITH_DETAILS_INCLUDED
|
//defined(BOOST_NO_CXX11_DECLTYPE) must be true
|
||||||
|
template<class Fun, class ...DontCares>
|
||||||
|
struct FunWrapTmpl : Fun
|
||||||
|
{
|
||||||
|
using Fun::BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME;
|
||||||
|
boost_intrusive_hmfcw::private_type BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME(DontCares...) const;
|
||||||
|
};
|
||||||
|
|
||||||
#else //!BOOST_PP_IS_ITERATING
|
template<typename Fun, class ...Args>
|
||||||
|
struct BOOST_MOVE_CAT(has_member_function_callable_with_,BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)<Fun, Args...>
|
||||||
|
{
|
||||||
|
typedef FunWrapTmpl<typename boost_intrusive_hmfcw::make_dontcare<Args>::type...> FunWrap;
|
||||||
|
|
||||||
#ifndef BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME
|
static bool const value = (sizeof(boost_intrusive_hmfcw::no_type) ==
|
||||||
#error "BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME not defined!"
|
sizeof(boost_intrusive_hmfcw::is_private_type
|
||||||
#endif
|
( (::boost::move_detail::declval< FunWrap<Fun> >().
|
||||||
|
BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME(::boost::move_detail::declval<Args>()...), 0) )
|
||||||
|
)
|
||||||
|
);
|
||||||
|
};
|
||||||
|
#else //defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
||||||
|
|
||||||
#ifndef BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_NS_BEGIN
|
//Preprocessor must be used to generate specializations instead of variadic templates
|
||||||
#error "BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_NS_BEGIN not defined!"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_NS_END
|
|
||||||
#error "BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_NS_END not defined!"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if BOOST_PP_ITERATION_START() > BOOST_PP_ITERATION_FINISH()
|
|
||||||
#error "BOOST_PP_ITERATION_START() must be <= BOOST_PP_ITERATION_FINISH()"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if BOOST_PP_ITERATION() == BOOST_PP_ITERATION_START()
|
|
||||||
|
|
||||||
BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_NS_BEGIN
|
|
||||||
|
|
||||||
template <typename Type>
|
template <typename Type>
|
||||||
class BOOST_PP_CAT(has_member_function_named_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)
|
class BOOST_MOVE_CAT(has_member_function_named_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)
|
||||||
{
|
{
|
||||||
struct BaseMixin
|
struct BaseMixin
|
||||||
{
|
{
|
||||||
void BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME();
|
void BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME();
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Base : public ::boost::intrusive::detail::remove_cv<Type>::type, public BaseMixin { Base(); };
|
struct Base : public boost_intrusive_hmfcw::remove_cv<Type>::type, public BaseMixin {};
|
||||||
template <typename T, T t> class Helper{};
|
template <typename T, T t> class Helper{};
|
||||||
|
|
||||||
template <typename U>
|
template <typename U>
|
||||||
static boost_intrusive_has_member_function_callable_with::no_type deduce
|
static boost_intrusive_hmfcw::no_type deduce
|
||||||
(U*, Helper<void (BaseMixin::*)(), &U::BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME>* = 0);
|
(U*, Helper<void (BaseMixin::*)(), &U::BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME>* = 0);
|
||||||
static boost_intrusive_has_member_function_callable_with::yes_type deduce(...);
|
static boost_intrusive_hmfcw::yes_type deduce(...);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static const bool value =
|
static const bool value = sizeof(boost_intrusive_hmfcw::yes_type) == sizeof(deduce((Base*)0));
|
||||||
sizeof(boost_intrusive_has_member_function_callable_with::yes_type) == sizeof(deduce((Base*)(0)));
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
/////////////////////////////////////////////////////////
|
||||||
|
/////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// has_member_function_callable_with_impl_XXX specializations
|
||||||
|
//
|
||||||
|
/////////////////////////////////////////////////////////
|
||||||
|
|
||||||
template<typename Fun, bool HasFunc
|
template<typename Fun, bool HasFunc BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_COMMA_IF BOOST_MOVE_CAT(BOOST_MOVE_CLASSDFLT,BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_MAX)>
|
||||||
BOOST_PP_ENUM_TRAILING(BOOST_PP_ITERATION_FINISH(), BOOST_INTRUSIVE_PP_TEMPLATE_PARAM_VOID_DEFAULT, _)>
|
struct BOOST_MOVE_CAT(has_member_function_callable_with_impl_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME);
|
||||||
struct BOOST_PP_CAT(BOOST_PP_CAT(has_member_function_callable_with_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME), _impl);
|
|
||||||
//!
|
|
||||||
|
|
||||||
template<typename Fun BOOST_PP_ENUM_TRAILING_PARAMS(BOOST_PP_ITERATION_FINISH(), class P)>
|
//No BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME member specialization
|
||||||
struct BOOST_PP_CAT(BOOST_PP_CAT(has_member_function_callable_with_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME), _impl)
|
template<typename Fun BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_COMMA_IF BOOST_MOVE_CAT(BOOST_MOVE_CLASS,BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_MAX)>
|
||||||
<Fun, false BOOST_PP_ENUM_TRAILING_PARAMS(BOOST_PP_ITERATION_FINISH(), P)>
|
struct BOOST_MOVE_CAT(has_member_function_callable_with_impl_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)
|
||||||
{
|
<Fun, false BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_COMMA_IF BOOST_MOVE_CAT(BOOST_MOVE_TARG,BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_MAX)>
|
||||||
static const bool value = false;
|
|
||||||
};
|
|
||||||
//!
|
|
||||||
|
|
||||||
#else //!defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
|
||||||
|
|
||||||
template<typename Fun, bool HasFunc, class ...Args>
|
|
||||||
struct BOOST_PP_CAT(BOOST_PP_CAT(has_member_function_callable_with_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME),_impl);
|
|
||||||
|
|
||||||
template<typename Fun, class ...Args>
|
|
||||||
struct BOOST_PP_CAT(BOOST_PP_CAT(has_member_function_callable_with_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME),_impl)
|
|
||||||
<Fun, false, Args...>
|
|
||||||
{
|
{
|
||||||
static const bool value = false;
|
static const bool value = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef BOOST_NO_CXX11_DECLTYPE
|
#if BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_MIN == 0
|
||||||
|
//0 arg specialization when BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME is present
|
||||||
//Special case for 0 args
|
#if !defined(BOOST_NO_CXX11_DECLTYPE)
|
||||||
template< class F
|
|
||||||
, std::size_t N =
|
|
||||||
sizeof((boost::move_detail::declval<F>().
|
|
||||||
BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME (), 0))>
|
|
||||||
struct BOOST_PP_CAT(zeroarg_checker_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)
|
|
||||||
{
|
|
||||||
boost_intrusive_has_member_function_callable_with::yes_type dummy;
|
|
||||||
BOOST_PP_CAT(zeroarg_checker_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)(int);
|
|
||||||
};
|
|
||||||
|
|
||||||
//For buggy compilers like MSVC 7.1+ ((F*)0)->func() does not
|
|
||||||
//SFINAE-out the zeroarg_checker_ instantiation but sizeof yields to 0.
|
|
||||||
template<class F>
|
|
||||||
struct BOOST_PP_CAT(zeroarg_checker_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)<F, 0>
|
|
||||||
{
|
|
||||||
boost_intrusive_has_member_function_callable_with::no_type dummy;
|
|
||||||
BOOST_PP_CAT(zeroarg_checker_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)(int);
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif //#ifdef BOOST_NO_CXX11_DECLTYPE
|
|
||||||
|
|
||||||
template<typename Fun>
|
template<typename Fun>
|
||||||
struct BOOST_PP_CAT(BOOST_PP_CAT(has_member_function_callable_with_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME),_impl)
|
struct BOOST_MOVE_CAT(has_member_function_callable_with_impl_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)<Fun, true>
|
||||||
<Fun, true>
|
|
||||||
{
|
{
|
||||||
#ifndef BOOST_NO_CXX11_DECLTYPE
|
|
||||||
template<class U, class V = decltype(boost::move_detail::declval<U>().BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME()) >
|
|
||||||
static boost_intrusive_has_member_function_callable_with::yes_type Test(U*);
|
|
||||||
#else
|
|
||||||
template<class U>
|
template<class U>
|
||||||
static BOOST_PP_CAT(zeroarg_checker_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)
|
static decltype(boost::move_detail::declval<U>().BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME()
|
||||||
<U> Test(BOOST_PP_CAT(zeroarg_checker_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)<U>*);
|
, boost_intrusive_hmfcw::yes_type()) Test(U* f);
|
||||||
#endif
|
|
||||||
|
|
||||||
template <class U>
|
template<class U>
|
||||||
static boost_intrusive_has_member_function_callable_with::no_type Test(...);
|
static boost_intrusive_hmfcw::no_type Test(...);
|
||||||
|
static const bool value = sizeof(Test<Fun>((Fun*)0)) == sizeof(boost_intrusive_hmfcw::yes_type);
|
||||||
static const bool value = sizeof(Test< Fun >(0))
|
|
||||||
== sizeof(boost_intrusive_has_member_function_callable_with::yes_type);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename Fun, class ...Args>
|
#else //defined(BOOST_NO_CXX11_DECLTYPE)
|
||||||
struct BOOST_PP_CAT( BOOST_PP_CAT(has_member_function_callable_with_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME), _impl)
|
|
||||||
<Fun, true , Args...>
|
|
||||||
{
|
|
||||||
|
|
||||||
template<class ...DontCares>
|
#if !defined(BOOST_INTRUSIVE_DETAIL_HAS_MEMBER_FUNCTION_CALLABLE_WITH_0_ARGS_UNSUPPORTED)
|
||||||
struct FunWrapTmpl : Fun
|
|
||||||
{
|
|
||||||
FunWrapTmpl();
|
|
||||||
using Fun::BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME;
|
|
||||||
|
|
||||||
boost_intrusive_has_member_function_callable_with::private_type
|
template<class F, std::size_t N = sizeof(boost::move_detail::declval<F>().BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME(), 0)>
|
||||||
BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME
|
struct BOOST_MOVE_CAT(zeroarg_checker_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)
|
||||||
( DontCares...) const;
|
{ boost_intrusive_hmfcw::yes_type dummy[N ? 1 : 2]; };
|
||||||
};
|
|
||||||
|
|
||||||
typedef FunWrapTmpl<typename boost_intrusive_has_member_function_callable_with::make_dontcare<Args>::type...> FunWrap;
|
|
||||||
|
|
||||||
static bool const value = (sizeof(boost_intrusive_has_member_function_callable_with::no_type) ==
|
|
||||||
sizeof(boost_intrusive_has_member_function_callable_with::is_private_type
|
|
||||||
( (::boost::move_detail::declval< FunWrap >().
|
|
||||||
BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME
|
|
||||||
( ::boost::move_detail::declval<Args>()... ), 0) )
|
|
||||||
)
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
template<typename Fun, class ...Args>
|
|
||||||
struct BOOST_PP_CAT( has_member_function_callable_with_
|
|
||||||
, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)
|
|
||||||
: public BOOST_PP_CAT( BOOST_PP_CAT(has_member_function_callable_with_
|
|
||||||
, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME),_impl)
|
|
||||||
< Fun
|
|
||||||
, BOOST_PP_CAT( has_member_function_named_
|
|
||||||
, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME )<Fun>::value
|
|
||||||
, Args... >
|
|
||||||
{};
|
|
||||||
|
|
||||||
#endif //defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
|
||||||
|
|
||||||
BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_NS_END
|
|
||||||
|
|
||||||
#endif //BOOST_PP_ITERATION() == BOOST_PP_ITERATION_START()
|
|
||||||
|
|
||||||
#if BOOST_PP_ITERATION() == 0
|
|
||||||
|
|
||||||
BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_NS_BEGIN
|
|
||||||
|
|
||||||
#if defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
|
||||||
|
|
||||||
#if !defined(_MSC_VER) || (_MSC_VER < 1600)
|
|
||||||
|
|
||||||
#if defined(BOOST_INTRUSIVE_DETAIL_HAS_MEMBER_FUNCTION_CALLABLE_WITH_0_ARGS_UNSUPPORTED)
|
|
||||||
|
|
||||||
template<typename Fun>
|
template<typename Fun>
|
||||||
struct BOOST_PP_CAT(BOOST_PP_CAT(has_member_function_callable_with_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME),_impl)
|
struct BOOST_MOVE_CAT(has_member_function_callable_with_impl_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)<Fun, true>
|
||||||
<Fun, true BOOST_PP_ENUM_TRAILING(BOOST_PP_SUB(BOOST_PP_ITERATION_FINISH(), BOOST_PP_ITERATION()), BOOST_INTRUSIVE_PP_IDENTITY, void)>
|
|
||||||
{
|
{
|
||||||
//Mark that we don't support 0 arg calls due to compiler ICE in GCC 3.4/4.0/4.1 and
|
template<class U> static BOOST_MOVE_CAT(zeroarg_checker_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)<U>
|
||||||
//wrong SFINAE for GCC 4.2/4.3
|
Test(BOOST_MOVE_CAT(zeroarg_checker_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)<U>*);
|
||||||
static const bool value = true;
|
template<class U> static boost_intrusive_hmfcw::no_type Test(...);
|
||||||
|
static const bool value = sizeof(Test< Fun >(0)) == sizeof(boost_intrusive_hmfcw::yes_type);
|
||||||
};
|
};
|
||||||
|
|
||||||
#else //defined(BOOST_INTRUSIVE_DETAIL_HAS_MEMBER_FUNCTION_CALLABLE_WITH_0_ARGS_UNSUPPORTED)
|
#else //defined(BOOST_INTRUSIVE_DETAIL_HAS_MEMBER_FUNCTION_CALLABLE_WITH_0_ARGS_UNSUPPORTED)
|
||||||
|
|
||||||
//Special case for 0 args
|
|
||||||
template< class F
|
|
||||||
, std::size_t N =
|
|
||||||
sizeof((boost::move_detail::declval<F>().
|
|
||||||
BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME (), 0))>
|
|
||||||
struct BOOST_PP_CAT(zeroarg_checker_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)
|
|
||||||
{
|
|
||||||
boost_intrusive_has_member_function_callable_with::yes_type dummy;
|
|
||||||
BOOST_PP_CAT(zeroarg_checker_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)(int);
|
|
||||||
};
|
|
||||||
|
|
||||||
//For buggy compilers like MSVC 7.1+ ((F*)0)->func() does not
|
|
||||||
//SFINAE-out the zeroarg_checker_ instantiation but sizeof yields to 0.
|
|
||||||
template<class F>
|
|
||||||
struct BOOST_PP_CAT(zeroarg_checker_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)<F, 0>
|
|
||||||
{
|
|
||||||
boost_intrusive_has_member_function_callable_with::no_type dummy;
|
|
||||||
BOOST_PP_CAT(zeroarg_checker_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)(int);
|
|
||||||
};
|
|
||||||
|
|
||||||
template<typename Fun>
|
template<typename Fun>
|
||||||
struct BOOST_PP_CAT(BOOST_PP_CAT(has_member_function_callable_with_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME),_impl)
|
struct BOOST_MOVE_CAT(has_member_function_callable_with_impl_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)<Fun, true>
|
||||||
<Fun, true BOOST_PP_ENUM_TRAILING(BOOST_PP_SUB(BOOST_PP_ITERATION_FINISH(), BOOST_PP_ITERATION()), BOOST_INTRUSIVE_PP_IDENTITY, void)>
|
{//GCC [3.4-4.3) gives ICE when instantiating the 0 arg version so it is not supported.
|
||||||
{
|
static const bool value = true;
|
||||||
template<class U>
|
|
||||||
static BOOST_PP_CAT(zeroarg_checker_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)<U>
|
|
||||||
Test(BOOST_PP_CAT(zeroarg_checker_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)<U>*);
|
|
||||||
|
|
||||||
template <class U>
|
|
||||||
static boost_intrusive_has_member_function_callable_with::no_type Test(...);
|
|
||||||
|
|
||||||
static const bool value = sizeof(Test< Fun >(0))
|
|
||||||
== sizeof(boost_intrusive_has_member_function_callable_with::yes_type);
|
|
||||||
};
|
|
||||||
#endif //defined(BOOST_INTRUSIVE_DETAIL_HAS_MEMBER_FUNCTION_CALLABLE_WITH_0_ARGS_UNSUPPORTED)
|
|
||||||
|
|
||||||
#else //#if !defined(_MSC_VER) || (_MSC_VER < 1600)
|
|
||||||
template<typename Fun>
|
|
||||||
struct BOOST_PP_CAT(BOOST_PP_CAT(has_member_function_callable_with_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME),_impl)
|
|
||||||
<Fun, true BOOST_PP_ENUM_TRAILING(BOOST_PP_SUB(BOOST_PP_ITERATION_FINISH(), BOOST_PP_ITERATION()), BOOST_INTRUSIVE_PP_IDENTITY, void)>
|
|
||||||
{
|
|
||||||
template<class U>
|
|
||||||
static decltype( boost::move_detail::declval<U>().BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME()
|
|
||||||
, boost_intrusive_has_member_function_callable_with::yes_type())
|
|
||||||
Test(U*);
|
|
||||||
|
|
||||||
template<class U>
|
|
||||||
static boost_intrusive_has_member_function_callable_with::no_type Test(...);
|
|
||||||
|
|
||||||
static const bool value = sizeof(Test<Fun>(0))
|
|
||||||
== sizeof(boost_intrusive_has_member_function_callable_with::yes_type);
|
|
||||||
};
|
|
||||||
#endif //#if !defined(_MSC_VER) || (_MSC_VER < 1600)
|
|
||||||
|
|
||||||
#else //#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
|
||||||
|
|
||||||
#endif //#if defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
|
||||||
|
|
||||||
BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_NS_END
|
|
||||||
|
|
||||||
#else //BOOST_PP_ITERATION() == 0
|
|
||||||
|
|
||||||
#if defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
|
||||||
|
|
||||||
BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_NS_BEGIN
|
|
||||||
|
|
||||||
template<typename Fun BOOST_PP_ENUM_TRAILING_PARAMS(BOOST_PP_ITERATION(), class P)>
|
|
||||||
struct BOOST_PP_CAT( BOOST_PP_CAT(has_member_function_callable_with_
|
|
||||||
, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME),_impl)
|
|
||||||
<Fun, true
|
|
||||||
BOOST_PP_ENUM_TRAILING_PARAMS(BOOST_PP_ITERATION(), P)
|
|
||||||
BOOST_PP_ENUM_TRAILING( BOOST_PP_SUB(BOOST_PP_ITERATION_FINISH(), BOOST_PP_ITERATION())
|
|
||||||
, BOOST_INTRUSIVE_PP_IDENTITY
|
|
||||||
, void)>
|
|
||||||
{
|
|
||||||
struct FunWrap : Fun
|
|
||||||
{
|
|
||||||
FunWrap();
|
|
||||||
|
|
||||||
using Fun::BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME;
|
|
||||||
boost_intrusive_has_member_function_callable_with::private_type
|
|
||||||
BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME
|
|
||||||
( BOOST_PP_ENUM(BOOST_PP_ITERATION()
|
|
||||||
, BOOST_INTRUSIVE_PP_IDENTITY
|
|
||||||
, boost_intrusive_has_member_function_callable_with::dont_care)) const;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static bool const value =
|
#endif//!defined(BOOST_INTRUSIVE_DETAIL_HAS_MEMBER_FUNCTION_CALLABLE_WITH_0_ARGS_UNSUPPORTED)
|
||||||
(sizeof(boost_intrusive_has_member_function_callable_with::no_type) ==
|
#endif //!defined(BOOST_NO_CXX11_DECLTYPE)
|
||||||
sizeof(boost_intrusive_has_member_function_callable_with::is_private_type
|
#endif //#if BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_MIN == 0
|
||||||
( (boost::move_detail::declval<FunWrap>().
|
|
||||||
BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME
|
|
||||||
( BOOST_PP_ENUM( BOOST_PP_ITERATION(), BOOST_INTRUSIVE_PP_DECLVAL, _) ), 0
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_NS_END
|
#if BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_MAX > 0
|
||||||
#endif //#if defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
//1 to N arg specialization when BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME is present
|
||||||
|
#if defined(BOOST_NO_CXX11_DECLTYPE)
|
||||||
|
#define BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_ITERATION(N)\
|
||||||
|
template<class Fun> struct BOOST_MOVE_CAT(FunWrap##N, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME) : Fun\
|
||||||
|
{\
|
||||||
|
using Fun::BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME;\
|
||||||
|
boost_intrusive_hmfcw::private_type BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME\
|
||||||
|
(BOOST_MOVE_REPEAT##N(boost_intrusive_hmfcw::dont_care)) const;\
|
||||||
|
};\
|
||||||
|
\
|
||||||
|
template<typename Fun, BOOST_MOVE_CLASS##N>\
|
||||||
|
struct BOOST_MOVE_CAT(has_member_function_callable_with_impl_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)<Fun, true, BOOST_MOVE_TARG##N>\
|
||||||
|
{\
|
||||||
|
static bool const value = (sizeof(boost_intrusive_hmfcw::no_type) == sizeof(boost_intrusive_hmfcw::is_private_type\
|
||||||
|
( (::boost::move_detail::declval\
|
||||||
|
< struct BOOST_MOVE_CAT(FunWrap##N, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)<Fun> >().\
|
||||||
|
BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME(BOOST_MOVE_DECLVAL##N), 0) )\
|
||||||
|
)\
|
||||||
|
);\
|
||||||
|
};\
|
||||||
|
//
|
||||||
|
#else
|
||||||
|
#define BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_ITERATION(N)\
|
||||||
|
template<typename Fun, BOOST_MOVE_CLASS##N>\
|
||||||
|
struct BOOST_MOVE_CAT(has_member_function_callable_with_impl_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)\
|
||||||
|
<Fun, true, BOOST_MOVE_TARG##N>\
|
||||||
|
{\
|
||||||
|
template<class U>\
|
||||||
|
static decltype(boost::move_detail::declval<U>().\
|
||||||
|
BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME(BOOST_MOVE_DECLVAL##N)\
|
||||||
|
, boost_intrusive_hmfcw::yes_type()) Test(U* f);\
|
||||||
|
template<class U>\
|
||||||
|
static boost_intrusive_hmfcw::no_type Test(...);\
|
||||||
|
static const bool value = sizeof(Test<Fun>((Fun*)0)) == sizeof(boost_intrusive_hmfcw::yes_type);\
|
||||||
|
};\
|
||||||
|
//
|
||||||
|
#endif
|
||||||
|
////////////////////////////////////
|
||||||
|
// Build and invoke BOOST_MOVE_ITERATE_NTOM macrofunction, note that N has to be at least 1
|
||||||
|
////////////////////////////////////
|
||||||
|
#if BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_MIN == 0
|
||||||
|
#define BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_ITERATE_MIN 1
|
||||||
|
#else
|
||||||
|
#define BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_ITERATE_MIN BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_MIN
|
||||||
|
#endif
|
||||||
|
BOOST_MOVE_CAT
|
||||||
|
(BOOST_MOVE_CAT(BOOST_MOVE_CAT(BOOST_MOVE_ITERATE_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_ITERATE_MIN), TO)
|
||||||
|
,BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_MAX)
|
||||||
|
(BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_ITERATION)
|
||||||
|
#undef BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_ITERATION
|
||||||
|
#undef BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_ITERATE_MIN
|
||||||
|
////////////////////////////////////
|
||||||
|
// End of BOOST_MOVE_ITERATE_NTOM
|
||||||
|
////////////////////////////////////
|
||||||
|
#endif //BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_MAX > 0
|
||||||
|
|
||||||
#endif //BOOST_PP_ITERATION() == 0
|
/////////////////////////////////////////////////////////
|
||||||
|
/////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// has_member_function_callable_with_FUNC
|
||||||
|
//
|
||||||
|
/////////////////////////////////////////////////////////
|
||||||
|
/////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#if BOOST_PP_ITERATION() == BOOST_PP_ITERATION_FINISH()
|
//Otherwise use the preprocessor
|
||||||
|
template<typename Fun BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_COMMA_IF BOOST_MOVE_CAT(BOOST_MOVE_CLASSDFLT,BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_MAX)>
|
||||||
#if defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
struct BOOST_MOVE_CAT(has_member_function_callable_with_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)
|
||||||
|
: public BOOST_MOVE_CAT(has_member_function_callable_with_impl_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)
|
||||||
BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_NS_BEGIN
|
<Fun
|
||||||
|
, BOOST_MOVE_CAT(has_member_function_named_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)<Fun>::value
|
||||||
template<typename Fun
|
BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_COMMA_IF BOOST_MOVE_CAT(BOOST_MOVE_TARG,BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_MAX)>
|
||||||
BOOST_PP_ENUM_TRAILING(BOOST_PP_ITERATION_FINISH(), BOOST_INTRUSIVE_PP_TEMPLATE_PARAM_VOID_DEFAULT, _)>
|
|
||||||
struct BOOST_PP_CAT(has_member_function_callable_with_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)
|
|
||||||
: public BOOST_PP_CAT(BOOST_PP_CAT(has_member_function_callable_with_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME), _impl)
|
|
||||||
<Fun, BOOST_PP_CAT(has_member_function_named_, BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)<Fun>::value
|
|
||||||
BOOST_PP_ENUM_TRAILING_PARAMS(BOOST_PP_ITERATION_FINISH(), P) >
|
|
||||||
{};
|
{};
|
||||||
|
#endif //defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
||||||
|
#endif
|
||||||
|
|
||||||
BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_NS_END
|
BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_NS_END
|
||||||
|
|
||||||
#endif //#if defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
//Undef local macros
|
||||||
|
#undef BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_COMMA_IF
|
||||||
|
|
||||||
#undef BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME
|
//Undef user defined macros
|
||||||
#undef BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_NS_BEGIN
|
#undef BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME
|
||||||
#undef BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_NS_END
|
#undef BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_MIN
|
||||||
|
#undef BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_MAX
|
||||||
#endif //#if BOOST_PP_ITERATION() == BOOST_PP_ITERATION_FINISH()
|
#undef BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_NS_BEG
|
||||||
|
#undef BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_NS_END
|
||||||
#endif //!BOOST_PP_IS_ITERATING
|
|
||||||
|
@@ -19,10 +19,13 @@
|
|||||||
|
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <boost/intrusive/detail/std_fwd.hpp>
|
#include <boost/intrusive/detail/std_fwd.hpp>
|
||||||
|
#include <boost/move/detail/iterator_traits.hpp>
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
namespace intrusive {
|
namespace intrusive {
|
||||||
|
|
||||||
|
using boost::movelib::iterator_traits;
|
||||||
|
|
||||||
template<class Category, class T, class Distance, class Pointer = T*, class Reference = T&>
|
template<class Category, class T, class Distance, class Pointer = T*, class Reference = T&>
|
||||||
struct iterator
|
struct iterator
|
||||||
{
|
{
|
||||||
@@ -33,36 +36,6 @@ struct iterator
|
|||||||
typedef Reference reference;
|
typedef Reference reference;
|
||||||
};
|
};
|
||||||
|
|
||||||
template<class Iterator>
|
|
||||||
struct iterator_traits
|
|
||||||
{
|
|
||||||
typedef typename Iterator::difference_type difference_type;
|
|
||||||
typedef typename Iterator::value_type value_type;
|
|
||||||
typedef typename Iterator::pointer pointer;
|
|
||||||
typedef typename Iterator::reference reference;
|
|
||||||
typedef typename Iterator::iterator_category iterator_category;
|
|
||||||
};
|
|
||||||
|
|
||||||
template<class T>
|
|
||||||
struct iterator_traits<T*>
|
|
||||||
{
|
|
||||||
typedef std::ptrdiff_t difference_type;
|
|
||||||
typedef T value_type;
|
|
||||||
typedef T* pointer;
|
|
||||||
typedef T& reference;
|
|
||||||
typedef std::random_access_iterator_tag iterator_category;
|
|
||||||
};
|
|
||||||
|
|
||||||
template<class T>
|
|
||||||
struct iterator_traits<const T*>
|
|
||||||
{
|
|
||||||
typedef std::ptrdiff_t difference_type;
|
|
||||||
typedef T value_type;
|
|
||||||
typedef const T* pointer;
|
|
||||||
typedef const T& reference;
|
|
||||||
typedef std::random_access_iterator_tag iterator_category;
|
|
||||||
};
|
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
template<class InputIt, class Distance> inline
|
template<class InputIt, class Distance> inline
|
||||||
|
30
include/boost/intrusive/detail/minimal_less_equal_header.hpp
Normal file
30
include/boost/intrusive/detail/minimal_less_equal_header.hpp
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// (C) Copyright Ion Gaztanaga 2014-2015
|
||||||
|
//
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
|
// http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
//
|
||||||
|
// See http://www.boost.org/libs/intrusive for documentation.
|
||||||
|
//
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
#ifndef BOOST_INTRUSIVE_DETAIL_MINIMAL_LESS_EQUAL_HEADER_HPP
|
||||||
|
#define BOOST_INTRUSIVE_DETAIL_MINIMAL_LESS_EQUAL_HEADER_HPP
|
||||||
|
#
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
# pragma once
|
||||||
|
#endif
|
||||||
|
#
|
||||||
|
#ifndef BOOST_CONFIG_HPP
|
||||||
|
# include <boost/config.hpp>
|
||||||
|
#endif
|
||||||
|
#
|
||||||
|
#//Try to avoid including <functional>, as it's quite big in C++11
|
||||||
|
#if defined(BOOST_GNU_STDLIB)
|
||||||
|
# include <bits/stl_function.h>
|
||||||
|
#else
|
||||||
|
# include <functional> //Fallback
|
||||||
|
#endif
|
||||||
|
#
|
||||||
|
#endif //BOOST_INTRUSIVE_DETAIL_MINIMAL_LESS_EQUAL_HEADER_HPP
|
30
include/boost/intrusive/detail/minimal_pair_header.hpp
Normal file
30
include/boost/intrusive/detail/minimal_pair_header.hpp
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// (C) Copyright Ion Gaztanaga 2014-2015
|
||||||
|
//
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
|
// http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
//
|
||||||
|
// See http://www.boost.org/libs/intrusive for documentation.
|
||||||
|
//
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
#ifndef BOOST_INTRUSIVE_DETAIL_MINIMAL_PAIR_HEADER_HPP
|
||||||
|
#define BOOST_INTRUSIVE_DETAIL_MINIMAL_PAIR_HEADER_HPP
|
||||||
|
#
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
# pragma once
|
||||||
|
#endif
|
||||||
|
#
|
||||||
|
#ifndef BOOST_CONFIG_HPP
|
||||||
|
# include <boost/config.hpp>
|
||||||
|
#endif
|
||||||
|
#
|
||||||
|
#//Try to avoid including <utility>, as it's quite big in C++11
|
||||||
|
#if defined(BOOST_GNU_STDLIB)
|
||||||
|
# include <bits/stl_pair.h>
|
||||||
|
#else
|
||||||
|
# include <utility> //Fallback
|
||||||
|
#endif
|
||||||
|
#
|
||||||
|
#endif //BOOST_INTRUSIVE_DETAIL_MINIMAL_PAIR_HEADER_HPP
|
@@ -315,7 +315,14 @@ template <> struct unvoid_ref<const void> { struct type_impl { }; typedef type_i
|
|||||||
::boost::intrusive::detail::if_c \
|
::boost::intrusive::detail::if_c \
|
||||||
<value, T, DefaultWrap>::type::TNAME type; \
|
<value, T, DefaultWrap>::type::TNAME type; \
|
||||||
}; \
|
}; \
|
||||||
\
|
//
|
||||||
|
|
||||||
|
#define BOOST_INTRUSIVE_OBTAIN_TYPE_WITH_DEFAULT(INSTANTIATION_NS_PREFIX, T, TNAME, TIMPL) \
|
||||||
|
typename INSTANTIATION_NS_PREFIX \
|
||||||
|
boost_intrusive_default_type_ ## TNAME< T, TIMPL >::type \
|
||||||
|
//
|
||||||
|
|
||||||
|
#define BOOST_INTRUSIVE_INSTANTIATE_EVAL_DEFAULT_TYPE_TMPLT(TNAME)\
|
||||||
template <typename T, typename DefaultType> \
|
template <typename T, typename DefaultType> \
|
||||||
struct boost_intrusive_eval_default_type_ ## TNAME \
|
struct boost_intrusive_eval_default_type_ ## TNAME \
|
||||||
{ \
|
{ \
|
||||||
@@ -339,11 +346,6 @@ template <> struct unvoid_ref<const void> { struct type_impl { }; typedef type_i
|
|||||||
}; \
|
}; \
|
||||||
//
|
//
|
||||||
|
|
||||||
#define BOOST_INTRUSIVE_OBTAIN_TYPE_WITH_DEFAULT(INSTANTIATION_NS_PREFIX, T, TNAME, TIMPL) \
|
|
||||||
typename INSTANTIATION_NS_PREFIX \
|
|
||||||
boost_intrusive_default_type_ ## TNAME< T, TIMPL >::type \
|
|
||||||
//
|
|
||||||
|
|
||||||
#define BOOST_INTRUSIVE_OBTAIN_TYPE_WITH_EVAL_DEFAULT(INSTANTIATION_NS_PREFIX, T, TNAME, TIMPL) \
|
#define BOOST_INTRUSIVE_OBTAIN_TYPE_WITH_EVAL_DEFAULT(INSTANTIATION_NS_PREFIX, T, TNAME, TIMPL) \
|
||||||
typename INSTANTIATION_NS_PREFIX \
|
typename INSTANTIATION_NS_PREFIX \
|
||||||
boost_intrusive_eval_default_type_ ## TNAME< T, TIMPL >::type \
|
boost_intrusive_eval_default_type_ ## TNAME< T, TIMPL >::type \
|
||||||
@@ -367,18 +369,17 @@ struct TRAITS_PREFIX##_bool_is_true\
|
|||||||
};\
|
};\
|
||||||
//
|
//
|
||||||
|
|
||||||
template<typename T, T> struct helper;
|
|
||||||
|
|
||||||
#define BOOST_INTRUSIVE_HAS_STATIC_MEMBER_FUNC_SIGNATURE(TRAITS_NAME, FUNC_NAME) \
|
#define BOOST_INTRUSIVE_HAS_STATIC_MEMBER_FUNC_SIGNATURE(TRAITS_NAME, FUNC_NAME) \
|
||||||
template <typename U, typename Signature> \
|
template <typename U, typename Signature> \
|
||||||
class TRAITS_NAME \
|
class TRAITS_NAME \
|
||||||
{ \
|
{ \
|
||||||
private: \
|
private: \
|
||||||
|
template<Signature> struct helper;\
|
||||||
template<typename T> \
|
template<typename T> \
|
||||||
static yes_type check(helper<Signature, &T::FUNC_NAME>*); \
|
static ::boost::intrusive::detail::yes_type check(helper<&T::FUNC_NAME>*); \
|
||||||
template<typename T> static no_type check(...); \
|
template<typename T> static ::boost::intrusive::detail::no_type check(...); \
|
||||||
public: \
|
public: \
|
||||||
static const bool value = sizeof(check<U>(0)) == sizeof(yes_type); \
|
static const bool value = sizeof(check<U>(0)) == sizeof(::boost::intrusive::detail::yes_type); \
|
||||||
}; \
|
}; \
|
||||||
//
|
//
|
||||||
|
|
||||||
@@ -393,9 +394,9 @@ struct TRAITS_NAME \
|
|||||||
struct Base : public Type, public BaseMixin { Base(); }; \
|
struct Base : public Type, public BaseMixin { Base(); }; \
|
||||||
template <typename T, T t> class Helper{}; \
|
template <typename T, T t> class Helper{}; \
|
||||||
template <typename U> \
|
template <typename U> \
|
||||||
static no_type check(U*, Helper<void (BaseMixin::*)(), &U::FUNC_NAME>* = 0); \
|
static ::boost::intrusive::detail::no_type check(U*, Helper<void (BaseMixin::*)(), &U::FUNC_NAME>* = 0); \
|
||||||
static yes_type check(...); \
|
static ::boost::intrusive::detail::yes_type check(...); \
|
||||||
static const bool value = sizeof(yes_type) == sizeof(check((Base*)(0))); \
|
static const bool value = sizeof(::boost::intrusive::detail::yes_type) == sizeof(check((Base*)(0))); \
|
||||||
};\
|
};\
|
||||||
//
|
//
|
||||||
|
|
||||||
|
@@ -15,7 +15,9 @@
|
|||||||
# pragma once
|
# pragma once
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef BOOST_INTRUSIVE_DETAIL_WORKAROUND_HPP
|
||||||
#include <boost/intrusive/detail/workaround.hpp>
|
#include <boost/intrusive/detail/workaround.hpp>
|
||||||
|
#endif //BOOST_INTRUSIVE_DETAIL_WORKAROUND_HPP
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
namespace intrusive {
|
namespace intrusive {
|
||||||
@@ -118,14 +120,6 @@ template <typename T> struct first_param
|
|||||||
< TemplateClass<T, P0, P1, P2, P3, P4, P5, P6, P7, P8> >
|
< TemplateClass<T, P0, P1, P2, P3, P4, P5, P6, P7, P8> >
|
||||||
{ typedef T type; };
|
{ typedef T type; };
|
||||||
|
|
||||||
template < template //10arg
|
|
||||||
<class,class,class,class,class,class,class,class,class,class,class
|
|
||||||
> class TemplateClass, class T
|
|
||||||
, class P0, class P1, class P2, class P3, class P4, class P5, class P6, class P7, class P8, class P9>
|
|
||||||
struct first_param
|
|
||||||
< TemplateClass<T, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9> >
|
|
||||||
{ typedef T type; };
|
|
||||||
|
|
||||||
#endif //!defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
#endif //!defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
@@ -8,8 +8,8 @@
|
|||||||
//
|
//
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef BOOST_INTRUSIVE_DETAIL_WRKRND_HPP
|
#ifndef BOOST_INTRUSIVE_DETAIL_WORKAROUND_HPP
|
||||||
#define BOOST_INTRUSIVE_DETAIL_WRKRND_HPP
|
#define BOOST_INTRUSIVE_DETAIL_WORKAROUND_HPP
|
||||||
|
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
# pragma once
|
# pragma once
|
||||||
@@ -31,4 +31,4 @@
|
|||||||
#define BOOST_INTRUSIVE_DOCIGN(T1) T1
|
#define BOOST_INTRUSIVE_DOCIGN(T1) T1
|
||||||
|
|
||||||
|
|
||||||
#endif //#ifndef BOOST_INTRUSIVE_DETAIL_WRKRND_HPP
|
#endif //#ifndef BOOST_INTRUSIVE_DETAIL_WORKAROUND_HPP
|
||||||
|
@@ -45,8 +45,8 @@
|
|||||||
#include <boost/move/adl_move_swap.hpp>
|
#include <boost/move/adl_move_swap.hpp>
|
||||||
|
|
||||||
//std C++
|
//std C++
|
||||||
#include <functional> //std::equal_to
|
#include <boost/intrusive/detail/minimal_less_equal_header.hpp> //std::equal_to
|
||||||
#include <utility> //std::pair
|
#include <boost/intrusive/detail/minimal_pair_header.hpp> //std::pair
|
||||||
#include <algorithm> //std::lower_bound, std::upper_bound
|
#include <algorithm> //std::lower_bound, std::upper_bound
|
||||||
#include <cstddef> //std::size_t
|
#include <cstddef> //std::size_t
|
||||||
|
|
||||||
|
@@ -23,7 +23,7 @@
|
|||||||
#include <boost/intrusive/detail/common_slist_algorithms.hpp>
|
#include <boost/intrusive/detail/common_slist_algorithms.hpp>
|
||||||
#include <boost/intrusive/detail/algo_type.hpp>
|
#include <boost/intrusive/detail/algo_type.hpp>
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <utility>
|
#include <boost/intrusive/detail/minimal_pair_header.hpp> //std::pair
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
namespace intrusive {
|
namespace intrusive {
|
||||||
|
@@ -43,7 +43,7 @@
|
|||||||
#include <boost/move/utility_core.hpp>
|
#include <boost/move/utility_core.hpp>
|
||||||
#include <boost/static_assert.hpp>
|
#include <boost/static_assert.hpp>
|
||||||
|
|
||||||
#include <functional>//std::less
|
#include <boost/intrusive/detail/minimal_less_equal_header.hpp>//std::less
|
||||||
#include <cstddef> //std::size_t, etc.
|
#include <cstddef> //std::size_t, etc.
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
|
@@ -15,7 +15,9 @@
|
|||||||
# pragma once
|
# pragma once
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef BOOST_INTRUSIVE_DETAIL_WORKAROUND_HPP
|
||||||
#include <boost/intrusive/detail/workaround.hpp>
|
#include <boost/intrusive/detail/workaround.hpp>
|
||||||
|
#endif //BOOST_INTRUSIVE_DETAIL_WORKAROUND_HPP
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
namespace intrusive {
|
namespace intrusive {
|
||||||
@@ -165,12 +167,6 @@ template <template <class, class, class, class, class, class, class, class, clas
|
|||||||
struct pointer_rebinder<Ptr<A, P0, P1, P2, P3, P4, P5, P6, P7, P8>, U, 0u>
|
struct pointer_rebinder<Ptr<A, P0, P1, P2, P3, P4, P5, P6, P7, P8>, U, 0u>
|
||||||
{ typedef Ptr<U, P0, P1, P2, P3, P4, P5, P6, P7, P8> type; };
|
{ typedef Ptr<U, P0, P1, P2, P3, P4, P5, P6, P7, P8> type; };
|
||||||
|
|
||||||
template <template <class, class, class, class, class, class, class, class, class, class, class> class Ptr //10arg
|
|
||||||
, typename A, class P0, class P1, class P2, class P3, class P4, class P5, class P6, class P7, class P8, class P9
|
|
||||||
, class U>
|
|
||||||
struct pointer_rebinder<Ptr<A, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9>, U, 0u>
|
|
||||||
{ typedef Ptr<U, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9> type; };
|
|
||||||
|
|
||||||
#endif //!defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
#endif //!defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
||||||
|
|
||||||
template <typename Ptr, typename U>
|
template <typename Ptr, typename U>
|
||||||
|
@@ -22,7 +22,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <boost/intrusive/detail/config_begin.hpp>
|
#include <boost/intrusive/detail/config_begin.hpp>
|
||||||
#include <boost/intrusive/intrusive_fwd.hpp>
|
|
||||||
#include <boost/intrusive/detail/workaround.hpp>
|
#include <boost/intrusive/detail/workaround.hpp>
|
||||||
#include <boost/intrusive/pointer_rebind.hpp>
|
#include <boost/intrusive/pointer_rebind.hpp>
|
||||||
#include <boost/intrusive/detail/pointer_element.hpp>
|
#include <boost/intrusive/detail/pointer_element.hpp>
|
||||||
@@ -45,7 +44,7 @@ BOOST_INTRUSIVE_HAS_MEMBER_FUNC_CALLED_IGNORE_SIGNATURE(has_member_function_call
|
|||||||
BOOST_INTRUSIVE_HAS_MEMBER_FUNC_CALLED_IGNORE_SIGNATURE(has_member_function_callable_with_const_cast_from, const_cast_from)
|
BOOST_INTRUSIVE_HAS_MEMBER_FUNC_CALLED_IGNORE_SIGNATURE(has_member_function_callable_with_const_cast_from, const_cast_from)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
BOOST_INTRUSIVE_INSTANTIATE_DEFAULT_TYPE_TMPLT(element_type)
|
BOOST_INTRUSIVE_INSTANTIATE_EVAL_DEFAULT_TYPE_TMPLT(element_type)
|
||||||
BOOST_INTRUSIVE_INSTANTIATE_DEFAULT_TYPE_TMPLT(difference_type)
|
BOOST_INTRUSIVE_INSTANTIATE_DEFAULT_TYPE_TMPLT(difference_type)
|
||||||
BOOST_INTRUSIVE_INSTANTIATE_DEFAULT_TYPE_TMPLT(reference)
|
BOOST_INTRUSIVE_INSTANTIATE_DEFAULT_TYPE_TMPLT(reference)
|
||||||
BOOST_INTRUSIVE_INSTANTIATE_DEFAULT_TYPE_TMPLT(value_traits_ptr)
|
BOOST_INTRUSIVE_INSTANTIATE_DEFAULT_TYPE_TMPLT(value_traits_ptr)
|
||||||
|
@@ -19,8 +19,8 @@
|
|||||||
#include <boost/intrusive/detail/config_begin.hpp>
|
#include <boost/intrusive/detail/config_begin.hpp>
|
||||||
#include <boost/intrusive/intrusive_fwd.hpp>
|
#include <boost/intrusive/intrusive_fwd.hpp>
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <functional>
|
#include <boost/intrusive/detail/minimal_less_equal_header.hpp>
|
||||||
#include <utility>
|
#include <boost/intrusive/detail/minimal_pair_header.hpp> //std::pair
|
||||||
|
|
||||||
#include <boost/intrusive/set_hook.hpp>
|
#include <boost/intrusive/set_hook.hpp>
|
||||||
#include <boost/intrusive/detail/rbtree_node.hpp>
|
#include <boost/intrusive/detail/rbtree_node.hpp>
|
||||||
|
@@ -41,8 +41,8 @@
|
|||||||
#include <boost/move/adl_move_swap.hpp>
|
#include <boost/move/adl_move_swap.hpp>
|
||||||
|
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <functional>
|
#include <boost/intrusive/detail/minimal_less_equal_header.hpp>
|
||||||
#include <utility>
|
#include <boost/intrusive/detail/minimal_pair_header.hpp> //std::pair
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
|
|
||||||
|
@@ -45,9 +45,9 @@
|
|||||||
#include <boost/move/utility_core.hpp>
|
#include <boost/move/utility_core.hpp>
|
||||||
#include <boost/static_assert.hpp>
|
#include <boost/static_assert.hpp>
|
||||||
|
|
||||||
#include <functional>//std::less
|
#include <boost/intrusive/detail/minimal_less_equal_header.hpp>//std::less
|
||||||
#include <cstddef> //std::size_t
|
#include <cstddef> //std::size_t
|
||||||
#include <utility> //std::pair
|
#include <boost/intrusive/detail/minimal_pair_header.hpp> //std::pair
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
namespace intrusive {
|
namespace intrusive {
|
||||||
|
@@ -19,8 +19,8 @@
|
|||||||
#include <boost/intrusive/detail/config_begin.hpp>
|
#include <boost/intrusive/detail/config_begin.hpp>
|
||||||
#include <boost/intrusive/intrusive_fwd.hpp>
|
#include <boost/intrusive/intrusive_fwd.hpp>
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <functional>
|
#include <boost/intrusive/detail/minimal_less_equal_header.hpp>
|
||||||
#include <utility>
|
#include <boost/intrusive/detail/minimal_pair_header.hpp> //std::pair
|
||||||
|
|
||||||
#include <boost/static_assert.hpp>
|
#include <boost/static_assert.hpp>
|
||||||
#include <boost/intrusive/bstree.hpp>
|
#include <boost/intrusive/bstree.hpp>
|
||||||
|
@@ -313,6 +313,12 @@
|
|||||||
<File
|
<File
|
||||||
RelativePath="..\..\..\..\..\boost\intrusive\detail\math.hpp">
|
RelativePath="..\..\..\..\..\boost\intrusive\detail\math.hpp">
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\..\..\..\boost\intrusive\detail\minimal_less_equal_header.hpp">
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\..\..\..\boost\intrusive\detail\minimal_pair_header.hpp">
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\..\..\..\boost\intrusive\detail\mpl.hpp">
|
RelativePath="..\..\..\..\..\boost\intrusive\detail\mpl.hpp">
|
||||||
</File>
|
</File>
|
||||||
|
Reference in New Issue
Block a user