scoped_allocator.hpp 748 B

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