range.hpp 1013 B

1234567891011121314151617181920212223242526272829303132
  1. /*=============================================================================
  2. Copyright (c) 2001-2011 Joel de Guzman
  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. #if !defined(BOOST_SPIRIT_RANGE_MAY_16_2006_0720_PM)
  7. #define BOOST_SPIRIT_RANGE_MAY_16_2006_0720_PM
  8. #if defined(_MSC_VER)
  9. #pragma once
  10. #endif
  11. namespace boost { namespace spirit { namespace support { namespace detail
  12. {
  13. ///////////////////////////////////////////////////////////////////////////
  14. // A closed range (first, last)
  15. ///////////////////////////////////////////////////////////////////////////
  16. template <typename T>
  17. struct range
  18. {
  19. typedef T value_type;
  20. range() : first(), last() {}
  21. range(T first_, T last_) : first(first_), last(last_) {}
  22. T first;
  23. T last;
  24. };
  25. }}}}
  26. #endif