Difference between revisions of "cpp/named req/ConstexprIterator"
From cppreference.com
(After [https://wg21.link/LWG3320 3320] the span::const_iterator was annihilated)) |
|||
Line 23: | Line 23: | ||
* {{ltt|cpp/container/array|array::iterator}} and {{ltt|cpp/container/array|array::const_iterator}}. | * {{ltt|cpp/container/array|array::iterator}} and {{ltt|cpp/container/array|array::const_iterator}}. | ||
* {{ltt|cpp/string/basic_string_view|basic_string_view::iterator}}. | * {{ltt|cpp/string/basic_string_view|basic_string_view::iterator}}. | ||
− | * {{ltt|cpp/container/span|span::iterator | + | * {{ltt|cpp/container/span|span::iterator}}. |
===See also=== | ===See also=== |
Revision as of 10:56, 30 May 2020
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 MeowIterator
And, for every
-
purr
, an operation onIt
that is required to be supported by MeowIterator, -
kittens...
, a set of arguments topurr
that meets the requirements for that operation,
Then
-
purr(kittens...)
may be used in a constant expression ifkittens...
can be so used
Standard library
The following standard library types are ConstexprIterators.