Skip to content

Commit

Permalink
conceptIterator17
Browse files Browse the repository at this point in the history
  • Loading branch information
morzhovets committed Oct 20, 2024
1 parent fce6b58 commit 44edade
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions include/momo/IteratorUtility.h
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ namespace internal
}
};

template<conceptIterator17<std::bidirectional_iterator_tag> TBaseIterator,
template<std::bidirectional_iterator TBaseIterator,
template<typename BaseReference> class TReference>
class DerivedBidirectionalIterator
{
Expand Down Expand Up @@ -398,7 +398,7 @@ namespace internal
BaseIterator mBaseIterator;
};

template<conceptIterator17<std::forward_iterator_tag> TBaseIterator,
template<std::forward_iterator TBaseIterator,
template<typename BaseReference> class TReference>
class DerivedForwardIterator
{
Expand Down
9 changes: 3 additions & 6 deletions include/momo/Utility.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,10 @@ namespace momo

namespace internal
{
template<typename Iterator, typename IteratorCategory>
concept conceptIterator17 =
std::is_base_of_v<IteratorCategory,
typename std::iterator_traits<Iterator>::iterator_category>;

template<typename Iterator>
concept conceptRandomIterator17 = conceptIterator17<Iterator, std::random_access_iterator_tag>;
concept conceptRandomIterator17 =
std::is_base_of_v<std::random_access_iterator_tag,
typename std::iterator_traits<Iterator>::iterator_category>;

template<typename Iterator>
concept conceptInputIterator = std::input_iterator<Iterator>;
Expand Down

0 comments on commit 44edade

Please sign in to comment.