]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/log/utility/use_std_allocator.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / log / utility / use_std_allocator.hpp
1 /*
2 * Copyright Andrey Semashev 2021.
3 * Distributed under the Boost Software License, Version 1.0.
4 * (See accompanying file LICENSE_1_0.txt or copy at
5 * http://www.boost.org/LICENSE_1_0.txt)
6 */
7 /*!
8 * \file use_std_allocator.hpp
9 * \author Andrey Semashev
10 * \date 04.03.2021
11 *
12 * The header defines \c use_std_allocator tag type.
13 */
14
15 #ifndef BOOST_LOG_UTILITY_USE_STD_ALLOCATOR_HPP_INCLUDED_
16 #define BOOST_LOG_UTILITY_USE_STD_ALLOCATOR_HPP_INCLUDED_
17
18 #include <boost/log/detail/config.hpp>
19 #include <boost/log/detail/header.hpp>
20
21 #ifdef BOOST_HAS_PRAGMA_ONCE
22 #pragma once
23 #endif
24
25 namespace boost {
26
27 BOOST_LOG_OPEN_NAMESPACE
28
29 #ifndef BOOST_LOG_DOXYGEN_PASS
30
31 namespace aux {
32
33 namespace usestdalloc_adl_block {
34
35 struct use_std_allocator {};
36
37 } // namespace usestdalloc_adl_block
38
39 } // namespace aux
40
41 using aux::usestdalloc_adl_block::use_std_allocator;
42
43 #else // BOOST_LOG_DOXYGEN_PASS
44
45 /*!
46 * \brief Tag type that indicates that a specialization of \c std::allocator should be used for allocating memory
47 *
48 * This tag type can be used in template parameters in various components of Boost.Log. The type itself is not an allocator type.
49 */
50 struct use_std_allocator {};
51
52 #endif // BOOST_LOG_DOXYGEN_PASS
53
54 BOOST_LOG_CLOSE_NAMESPACE // namespace log
55
56 } // namespace boost
57
58 #include <boost/log/detail/footer.hpp>
59
60 #endif // BOOST_LOG_UTILITY_USE_STD_ALLOCATOR_HPP_INCLUDED_