]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/container/detail/is_contiguous_container.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / container / detail / is_contiguous_container.hpp
1 //////////////////////////////////////////////////////////////////////////////
2 //
3 // (C) Copyright Ion Gaztanaga 2017-2017. Distributed under the Boost
4 // Software License, Version 1.0. (See accompanying file
5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 //
7 // See http://www.boost.org/libs/container for documentation.
8 //
9 //////////////////////////////////////////////////////////////////////////////
10 #ifndef BOOST_CONTAINER_DETAIL_IS_CONTIGUOUS_CONTAINER_HPP
11 #define BOOST_CONTAINER_DETAIL_IS_CONTIGUOUS_CONTAINER_HPP
12
13 #ifndef BOOST_CONFIG_HPP
14 # include <boost/config.hpp>
15 #endif
16
17 #if defined(BOOST_HAS_PRAGMA_ONCE)
18 # pragma once
19 #endif
20
21 //data
22 #define BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME data
23 #define BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_NS_BEG namespace boost { namespace container { namespace is_contiguous_container_detail {
24 #define BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_NS_END }}}
25 #define BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_MIN 0
26 #define BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_MAX 0
27 #include <boost/intrusive/detail/has_member_function_callable_with.hpp>
28
29 namespace boost {
30 namespace container {
31 namespace container_detail {
32
33 template <class Container>
34 struct is_contiguous_container
35 {
36 static const bool value =
37 boost::container::is_contiguous_container_detail::
38 has_member_function_callable_with_data<Container>::value &&
39 boost::container::is_contiguous_container_detail::
40 has_member_function_callable_with_data<const Container>::value;
41 };
42
43 } //namespace container_detail {
44 } //namespace container {
45 } //namespace boost {
46
47 #endif //#ifndef BOOST_CONTAINER_DETAIL_IS_CONTIGUOUS_CONTAINER_HPP