Namespaces
Variants
Views
Actions

C++ named requirements: ConstexprIterator

From cppreference.com
< cpp‎ | named req
Revision as of 03:56, 30 May 2020 by Radix (Talk | contribs)

 
 
C++ named requirements
 

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 on It that is required to be supported by AbcIterator,
  • args..., a set of arguments to op that meets the requirements for that operation,

Then

  • op(args...) may be used in a constant expression if args... can be so used

Standard library

The following standard library types are ConstexprIterators.

See also