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)
8 * \file use_std_allocator.hpp
9 * \author Andrey Semashev
12 * The header defines \c use_std_allocator tag type.
15 #ifndef BOOST_LOG_UTILITY_USE_STD_ALLOCATOR_HPP_INCLUDED_
16 #define BOOST_LOG_UTILITY_USE_STD_ALLOCATOR_HPP_INCLUDED_
18 #include <boost/log/detail/config.hpp>
19 #include <boost/log/detail/header.hpp>
21 #ifdef BOOST_HAS_PRAGMA_ONCE
27 BOOST_LOG_OPEN_NAMESPACE
29 #ifndef BOOST_LOG_DOXYGEN_PASS
33 namespace usestdalloc_adl_block {
35 struct use_std_allocator {};
37 } // namespace usestdalloc_adl_block
41 using aux::usestdalloc_adl_block::use_std_allocator;
43 #else // BOOST_LOG_DOXYGEN_PASS
46 * \brief Tag type that indicates that a specialization of \c std::allocator should be used for allocating memory
48 * This tag type can be used in template parameters in various components of Boost.Log. The type itself is not an allocator type.
50 struct use_std_allocator {};
52 #endif // BOOST_LOG_DOXYGEN_PASS
54 BOOST_LOG_CLOSE_NAMESPACE // namespace log
58 #include <boost/log/detail/footer.hpp>
60 #endif // BOOST_LOG_UTILITY_USE_STD_ALLOCATOR_HPP_INCLUDED_