C++ Logo


Advanced search

Subject: Re: [std-proposals] String contains member function
From: Nevin Liber (nevin_at_[hidden])
Date: 2019-05-31 11:59:53

On Mon, May 27, 2019 at 1:31 PM Wim Leflere via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> https://github.com/WimLeflere/cpp-papers/blob/master/string_contains_function.md

Given that there are a number of different algorithms that can be used
(everything in [func.search] <http://eel.is/c++draft/func.search>, for
example), I'd much rather leave that choice up to the developer (as it is
now) rather than bake in yet another algorithmic member function into the
interface of string.

 Nevin ":-)" Liber  <mailto:nevin_at_[hidden] <nevin_at_[hidden]>>

STD-PROPOSALS list run by herb.sutter at gmail.com

Standard Proposals Archives on Google Groups