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_SCOPED_ALLOCATOR_HPP |
10 | #define BOOST_CSBL_MEMORY_SCOPED_ALLOCATOR_HPP |
11 | |
12 | #include <boost/thread/csbl/memory/config.hpp> |
13 | |
14 | // 20.7.7, uses_allocator |
15 | #if defined BOOST_NO_CXX11_ALLOCATOR |
16 | #include <boost/container/scoped_allocator.hpp> |
17 | |
18 | namespace boost |
19 | { |
20 | namespace csbl |
21 | { |
22 | using ::boost::container::uses_allocator; |
23 | } |
24 | } |
25 | #else |
26 | namespace boost |
27 | { |
28 | namespace csbl |
29 | { |
30 | using ::std::uses_allocator; |
31 | } |
32 | } |
33 | #endif // BOOST_NO_CXX11_POINTER_TRAITS |
34 | |
35 | #endif // header |
36 | |