You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default_sentinel.hpp 882B

12345678910111213141516171819202122232425262728293031323334353637
  1. /// \file
  2. // Range v3 library
  3. //
  4. // Copyright Eric Niebler 2014-present
  5. //
  6. // Use, modification and distribution is subject to the
  7. // Boost Software License, Version 1.0. (See accompanying
  8. // file LICENSE_1_0.txt or copy at
  9. // http://www.boost.org/LICENSE_1_0.txt)
  10. //
  11. // Project home: https://github.com/ericniebler/range-v3
  12. //
  13. #ifndef RANGES_V3_ITERATOR_DEFAULT_SENTINEL_HPP
  14. #define RANGES_V3_ITERATOR_DEFAULT_SENTINEL_HPP
  15. #include <range/v3/detail/config.hpp>
  16. #include <range/v3/utility/static_const.hpp>
  17. namespace ranges
  18. {
  19. /// \addtogroup group-iterator
  20. /// @{
  21. struct default_sentinel_t
  22. {};
  23. // Default sentinel
  24. RANGES_INLINE_VARIABLE(default_sentinel_t, default_sentinel)
  25. namespace cpp20
  26. {
  27. using ranges::default_sentinel;
  28. using ranges::default_sentinel_t;
  29. } // namespace cpp20
  30. /// @}
  31. } // namespace ranges
  32. #endif