C++ Logo


Advanced search

string contains wording

From: Wim Leflere <wim.leflere_at_[hidden]>
Date: Mon, 23 Dec 2019 10:14:14 +0100

I have added wording to my, 'string contains function' paper:

I took a similar approach as P0457
The actual implementation (find(x) != npos) is done in one of the
string_view overloads.
The other overloads (of string and string_view) create a string_view and
call the implementation overload.

Is that a good approach?
Or should I use the 'find(x) != npos' implementation in all the overloads?


Wim Leflere

Received on 2019-12-23 03:16:48