]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/unordered/detail/fwd.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / unordered / detail / fwd.hpp
1
2 // Copyright (C) 2008-2016 Daniel James.
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 #ifndef BOOST_UNORDERED_FWD_HPP_INCLUDED
7 #define BOOST_UNORDERED_FWD_HPP_INCLUDED
8
9 #include <boost/config.hpp>
10 #if defined(BOOST_HAS_PRAGMA_ONCE)
11 #pragma once
12 #endif
13
14 #if defined(BOOST_UNORDERED_HAVE_PIECEWISE_CONSTRUCT)
15 // Already defined.
16 #elif defined(BOOST_LIBSTDCXX11)
17 // https://github.com/gcc-mirror/gcc/blob/gcc-4_6-branch/libstdc++-v3/include/bits/stl_pair.h#L70
18 #if BOOST_LIBSTDCXX_VERSION > 40600
19 #define BOOST_UNORDERED_HAVE_PIECEWISE_CONSTRUCT 1
20 #endif
21 #elif defined(_LIBCPP_VERSION)
22 // https://github.com/llvm-mirror/libcxx/blob/release_30/include/utility#L206
23 #if _LIBCPP_VERSION >= 3000
24 #define BOOST_UNORDERED_HAVE_PIECEWISE_CONSTRUCT 1
25 #endif
26 #elif defined(BOOST_MSVC)
27 // Apparently C++11 standard supported in Visual Studio 2012
28 // https://msdn.microsoft.com/en-us/library/hh567368.aspx#stl
29 // 2012 = VC+11 = BOOST_MSVC 1700 Hopefully!
30 #if BOOST_MSVC >= 1700
31 #define BOOST_UNORDERED_HAVE_PIECEWISE_CONSTRUCT 1
32 #endif
33 #endif
34
35 // Assume that an unknown library does not support piecewise construction.
36 #if !defined(BOOST_UNORDERED_HAVE_PIECEWISE_CONSTRUCT)
37 #define BOOST_UNORDERED_HAVE_PIECEWISE_CONSTRUCT 0
38 #endif
39
40 #if BOOST_UNORDERED_HAVE_PIECEWISE_CONSTRUCT
41 #include <utility>
42 #endif
43
44 namespace boost {
45 namespace unordered {
46 #if BOOST_UNORDERED_HAVE_PIECEWISE_CONSTRUCT
47 using std::piecewise_construct_t;
48 using std::piecewise_construct;
49 #else
50 struct piecewise_construct_t
51 {
52 };
53 const piecewise_construct_t piecewise_construct = piecewise_construct_t();
54 #endif
55 }
56 }
57
58 #endif