A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/algorithm/../iterator/basic_const_iterator/operator_cmp.html below:

std::basic_const_iterator<Iter>::operator==,<,<=,>,>=,<=> - cppreference.com

Compares a basic_const_iterator with another value.

The != operator is synthesized from operator==.

I satisfies /*different-from*/<basic_const_iterator> if std::same_as<I, basic_const_iterator<Iter>> is false.

[edit] Parameters s - a sentinel for Iter y - a value to compare with [edit] Return value

1) base() == s

2) base() < y.base()

3) base() > y.base()

4) base() <= y.base()

5) base() >= y.base()

6) base() <=> y.base()

7) base() < y

8) base() > y

9) base() <= y

10) base() >= y

11) base() <=> y

[edit] Notes

Overload (1) can be used to compare two basic_const_iterator<Iter> values if Iter models sentinel_for<Iter>.

[edit] Example [edit] See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4