Difference between revisions of "cpp/iterator/incrementable"
From cppreference.com
(This is my second time making one of these pages, this one seemed simple so i went for it.) |
m (removed unnessisary "(1)") |
||
Line 3: | Line 3: | ||
{{dcl begin}} | {{dcl begin}} | ||
{{dcl header|iterator|since=c++20}} | {{dcl header|iterator|since=c++20}} | ||
− | {{dcl | + | {{dcl | since=c++20 | 1= |
template < class T > | template < class T > | ||
concept incrementable = requires std::weakly_incrementable<T> && | concept incrementable = requires std::weakly_incrementable<T> && |
Revision as of 11:12, 5 October 2019
Defined in header <iterator>
|
||
template < class T > concept incrementable = requires std::weakly_incrementable<T> && |
(since C++20) | |
The concept incrementable<T> is satisfied if and only if T is weakly_incrementable, equality preserving, and is equality_comparable.
See also
(C++20) |
specifies that a semiregular type can be incremented with pre- and post-increment operators (concept) |
(C++20) |
specifies that a type is the same as another type (concept) |