C++ named requirements: ConstexprIterator
From cppreference.com
A ConstexprIterator is an LegacyIterator that can be used during constant expression evaluation.
Requirements
The type It
satisfies ConstexprIterator if
- The type
It
satisfies some iterator requirements AbcIterator
And, for every
-
op
, an operation onIt
that is required to be supported by AbcIterator, -
args...
, a set of arguments toop
that meets the requirements for that operation,
Then
-
op(args...)
may be used in a constant expression ifargs...
can be so used
Standard library
The following standard library types are ConstexprIterators.
- array::iterator and array::const_iterator.
- basic_string_view::iterator.
- span::iterator and span::const_iterator.