Quantcast
Channel: MarsHut
Viewing all articles
Browse latest Browse all 6551

contains() for unsorted ranges?

$
0
0
Hello,

Wouldn't the library be well served by providing a contains() algorithm
- with the same overloads/versions as find - for unsorted ranges?
Surely, having to test against the range's end ruins the otherwise
expressive syntax offered; especially when adaptors are involved and one
has to test against the adapted range's end.
Perhaps I am missing an obvious reason why not?

Albert

Viewing all articles
Browse latest Browse all 6551

Trending Articles