template<typename TContainer>
TContainer& container,
const TContainer& constContainer,
typename trait::Source<TContainer>::IteratorState& iterState,
typename trait::Source<TContainer>::ConstIteratorState& constIterState,
size_t n
) {
typename trait::Source<TContainer>::IteratorState;
typename trait::Source<TContainer>::ConstIteratorState;
}
Concept that checks whether the given TContainer is supported by CXXIter's standard source classes CX...
static constexpr ItemRef next(TContainer &container, IteratorState &iter)
Return the next item in the iteration with the given iter state on the given container.
typename TContainer::value_type Item
Type of the item TContainer holds and provides for the iterator.
static constexpr ItemRef peekNext(TContainer &container, IteratorState &iter)
Return the next item in the iteration with the given iter state on the given container,...
static constexpr IteratorState initIterator(TContainer &container)
Return an initial IteratorState instance for iteration on the given container.
static constexpr bool hasNext(TContainer &container, IteratorState &iter)
Checks whether there is a next item in the iteration with the given iter state on the given container...
static constexpr size_t skipN(const TContainer &container, IteratorState &iter, size_t n)
Skip the next n elements from the container.
typename TContainer::reference ItemRef
Type of the item TContainer holds and provides for the iterator, in referenced form.
typename TContainer::const_reference ItemConstRef
Type of the item TContainer holds and provides for the iterator, in const referenced form.
Concept that checks whether the given TContainer
is supported by CXXIter's standard source classes CXXIter::SrcMov, CXXIter::SrcRef and CXXIter::SrcCRef.
The concept does these checks by testing whether the CXXIter::trait::Source was properly specialized for the given TContainer
type.
- See also
- CXXIter::SourceTrait for further details on this.
Definition at line 16 of file Concepts.h.