list.hpp 754 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_LIST_HPP
  9. #define BOOST_CSBL_LIST_HPP
  10. #include <boost/config.hpp>
  11. #if defined BOOST_THREAD_USES_BOOST_LIST || defined BOOST_NO_CXX11_RVALUE_REFERENCES
  12. #ifndef BOOST_THREAD_USES_BOOST_LIST
  13. #define BOOST_THREAD_USES_BOOST_LIST
  14. #endif
  15. #include <boost/container/list.hpp>
  16. #else
  17. #include <list>
  18. #endif
  19. namespace boost
  20. {
  21. namespace csbl
  22. {
  23. #if defined BOOST_THREAD_USES_BOOST_LIST
  24. using ::boost::container::list;
  25. #else
  26. using ::std::list;
  27. #endif
  28. }
  29. }
  30. #endif // header