| 1 | // Copyright (C) 2013 Vicente J. Botet Escriba |
| 2 | // |
| 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 | // 2013/10 Vicente J. Botet Escriba |
| 7 | // Creation. |
| 8 | |
| 9 | #ifndef BOOST_CSBL_MEMORY_ALLOCATOR_TRAITS_HPP |
| 10 | #define BOOST_CSBL_MEMORY_ALLOCATOR_TRAITS_HPP |
| 11 | |
| 12 | #include <boost/thread/csbl/memory/config.hpp> |
| 13 | |
| 14 | // 20.7.8, allocator traits |
| 15 | #if defined BOOST_NO_CXX11_ALLOCATOR |
| 16 | #include <boost/container/allocator_traits.hpp> |
| 17 | |
| 18 | namespace boost |
| 19 | { |
| 20 | namespace csbl |
| 21 | { |
| 22 | using ::boost::container::allocator_traits; |
| 23 | } |
| 24 | } |
| 25 | #else |
| 26 | namespace boost |
| 27 | { |
| 28 | namespace csbl |
| 29 | { |
| 30 | using ::std::allocator_traits; |
| 31 | } |
| 32 | } |
| 33 | #endif // BOOST_NO_CXX11_POINTER_TRAITS |
| 34 | |
| 35 | #endif // header |
| 36 | |