Back to home page

EIC code displayed by LXR

 
 

    


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

0001 //
0002 // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
0003 //
0004 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0005 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 //
0007 // Official repository: https://github.com/boostorg/beast
0008 //
0009 
0010 #ifndef BOOST_BEAST_DETAIL_ALLOCATOR_HPP
0011 #define BOOST_BEAST_DETAIL_ALLOCATOR_HPP
0012 
0013 #include <boost/config.hpp>
0014 #ifdef BOOST_NO_CXX11_ALLOCATOR
0015 #include <boost/container/allocator_traits.hpp>
0016 #else
0017 #include <memory>
0018 #endif
0019 
0020 namespace boost {
0021 namespace beast {
0022 namespace detail {
0023 
0024 // This is a workaround for allocator_traits
0025 // implementations which falsely claim C++11
0026 // compatibility.
0027 
0028 #ifdef BOOST_NO_CXX11_ALLOCATOR
0029 template<class Alloc>
0030 using allocator_traits = boost::container::allocator_traits<Alloc>;
0031 
0032 #else
0033 template<class Alloc>
0034 using allocator_traits = std::allocator_traits<Alloc>;
0035 
0036 #endif
0037 
0038 } // detail
0039 } // beast
0040 } // boost
0041 
0042 #endif