template< bool Const >
class /*iterator*/
Helper concepts
template< bool Const, class... Rs >
concept /*concat-is-random-access*/ = /* see description */;
template< bool Const, class... Rs >
concept /*concat-is-bidirectional*/ = /* see description */;
2) Let Fs
be the pack that consists of all elements of Rs
except the last element. Equivalent to
3) Let Fs
be the pack that consists of all elements of Rs
except the last element. Equivalent to
iterator_concept
is defined as follows:
concat-is-random-access
<Const, Views...> is modeled, iterator_concept
denotes std::random_access_iterator_tag.concat-is-bidirectional
<Const, Views...> is modeled, iterator_concept
denotes std::bidirectional_iterator_tag.all-forward
<Const, Views...> is modeled, iterator_concept
denotes std::forward_iterator_tag.iterator_concept
denotes std::input_iterator_tag.iterator_category
is defined if and only if all-forward
<Const, Views...> is modeled. In this case, it is defined as follows:
concat-reference-t
<maybe-const
<Const, Views>...>> is false, iterator_category
denotes std::input_iterator_tag.Cs
denote the pack of types std::iterator_traits<ranges::iterator_t<maybe-const
<Const, Views>>>::iterator_category...:
concat-is-random-access
<Const, Views...> is true, iterator_category
denotes std::random_access_iterator_tag.
concat-is-bidirectional
<Const, Views...> is true, iterator_category
denotes std::bidirectional_iterator_tag.iterator_category
denotes std::forward_iterator_tag.iterator_category
denotes std::input_iterator_tag.maybe-const
<Const, ranges::concat_view>* parent_
a pointer to the parent concat_view
base-iter
it_
an iterator into the current view
it_
with the beginning of the next view, if it_
is the end of current view
it_
such that it points to the previous position
The preliminary version can be checked out on Compiler Explorer.
Output:
1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8[edit] References
concat_view::iterator
[range.concat.iterator]RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4