allocator_arg.hpp 921 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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_ALLOCATOR_ARG_HPP
  9. #define BOOST_CSBL_MEMORY_ALLOCATOR_ARG_HPP
  10. #include <boost/thread/csbl/memory/config.hpp>
  11. // 20.7.6, allocator argument tag
  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::allocator_arg_t;
  19. using ::boost::container::allocator_arg;
  20. }
  21. }
  22. #else
  23. namespace boost
  24. {
  25. namespace csbl
  26. {
  27. using ::std::allocator_arg_t;
  28. using ::std::allocator_arg;
  29. }
  30. }
  31. #endif // BOOST_NO_CXX11_ALLOCATOR
  32. namespace boost
  33. {
  34. using ::boost::csbl::allocator_arg_t;
  35. using ::boost::csbl::allocator_arg;
  36. }
  37. #endif // header