Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:39:29

0001 /*
0002  *              Copyright Andrey Semashev 2021.
0003  * Distributed under the Boost Software License, Version 1.0.
0004  *    (See accompanying file LICENSE_1_0.txt or copy at
0005  *          http://www.boost.org/LICENSE_1_0.txt)
0006  */
0007 /*!
0008  * \file   use_std_allocator.hpp
0009  * \author Andrey Semashev
0010  * \date   04.03.2021
0011  *
0012  * The header defines \c use_std_allocator tag type.
0013  */
0014 
0015 #ifndef BOOST_LOG_UTILITY_USE_STD_ALLOCATOR_HPP_INCLUDED_
0016 #define BOOST_LOG_UTILITY_USE_STD_ALLOCATOR_HPP_INCLUDED_
0017 
0018 #include <boost/log/detail/config.hpp>
0019 #include <boost/log/detail/header.hpp>
0020 
0021 #ifdef BOOST_HAS_PRAGMA_ONCE
0022 #pragma once
0023 #endif
0024 
0025 namespace boost {
0026 
0027 BOOST_LOG_OPEN_NAMESPACE
0028 
0029 #ifndef BOOST_LOG_DOXYGEN_PASS
0030 
0031 namespace aux {
0032 
0033 namespace usestdalloc_adl_block {
0034 
0035 struct use_std_allocator {};
0036 
0037 } // namespace usestdalloc_adl_block
0038 
0039 } // namespace aux
0040 
0041 using aux::usestdalloc_adl_block::use_std_allocator;
0042 
0043 #else // BOOST_LOG_DOXYGEN_PASS
0044 
0045 /*!
0046  * \brief Tag type that indicates that a specialization of \c std::allocator should be used for allocating memory
0047  *
0048  * This tag type can be used in template parameters in various components of Boost.Log. The type itself is not an allocator type.
0049  */
0050 struct use_std_allocator {};
0051 
0052 #endif // BOOST_LOG_DOXYGEN_PASS
0053 
0054 BOOST_LOG_CLOSE_NAMESPACE // namespace log
0055 
0056 } // namespace boost
0057 
0058 #include <boost/log/detail/footer.hpp>
0059 
0060 #endif // BOOST_LOG_UTILITY_USE_STD_ALLOCATOR_HPP_INCLUDED_