Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions include/boost/range/const_iterator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
#include <boost/type_traits/remove_reference.hpp>
#include <cstddef>
#include <utility>
#if __cpp_lib_ranges >= 201911L
# include <ranges>
#endif

namespace boost
{
Expand All @@ -40,6 +43,20 @@ struct range_const_iterator_helper
: extract_const_iterator<C>
{};

//////////////////////////////////////////////////////////////////////////
// common_range
//////////////////////////////////////////////////////////////////////////

#if __cpp_lib_ranges >= 201902L

template< std::ranges::common_range C >
struct range_const_iterator_helper< C >
{
typedef std::ranges::iterator_t< C const > type;
};

#endif

//////////////////////////////////////////////////////////////////////////
// pair
//////////////////////////////////////////////////////////////////////////
Expand Down
17 changes: 17 additions & 0 deletions include/boost/range/mutable_iterator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
#include <boost/iterator/iterator_traits.hpp>
#include <cstddef>
#include <utility>
#if __cpp_lib_ranges >= 201902L
# include <ranges>
#endif

namespace boost
{
Expand All @@ -42,6 +45,20 @@ struct range_mutable_iterator
BOOST_DEDUCED_TYPENAME remove_reference<C>::type>
{};

//////////////////////////////////////////////////////////////////////////
// common_range
//////////////////////////////////////////////////////////////////////////

#if __cpp_lib_ranges >= 201902L

template< std::ranges::common_range C >
struct range_mutable_iterator< C >
{
typedef std::ranges::iterator_t< C > type;
};

#endif

//////////////////////////////////////////////////////////////////////////
// pair
//////////////////////////////////////////////////////////////////////////
Expand Down