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