C++ Logo


Advanced search

Re: [std-proposals] Addition of std::contains to Simplify Container Value Checks

From: Bjorn Reese <breese_at_[hidden]>
Date: Sun, 24 Dec 2023 14:44:40 +0100
On 12/23/23 10:20, Robert Sitton via Std-Proposals wrote:

> Function Signature:
> template <typename Container, typename T>
> bool std::contains(const Container& container, const T& value);

Why does it deviate from all other standard algorithms that takes
iterators (or ranges for std::ranges algorithms)?

Received on 2023-12-24 13:44:43