has_reverse.hpp 829 B

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright 2005 Daniel Wallin.
  2. // Copyright 2005 Joel de Guzman.
  3. //
  4. // Use, modification and distribution is subject to the Boost Software
  5. // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. //
  8. // Modeled after range_ex, Copyright 2004 Eric Niebler
  9. ///////////////////////////////////////////////////////////////////////////////
  10. //
  11. // has_reverse.hpp
  12. //
  13. /////////////////////////////////////////////////////////////////////////////
  14. #if defined(_MSC_VER)
  15. #pragma once
  16. #endif
  17. #ifndef BOOST_PHOENIX_HAS_REVERSE_EN_14_12_2004
  18. #define BOOST_PHOENIX_HAS_REVERSE_EN_14_12_2004
  19. #include "./is_std_list.hpp"
  20. namespace boost
  21. {
  22. // Specialize this for user-defined types
  23. template<typename T>
  24. struct has_reverse
  25. : is_std_list<T>
  26. {
  27. };
  28. }
  29. #endif