C++ Logo

std-proposals

Advanced search

Re: String contains member function

From: Giuseppe D'Angelo <giuseppe.dangelo_at_[hidden]>
Date: Fri, 31 May 2019 16:56:06 +0200
On 31/05/2019 14:31, Ville Voutilainen via Std-Proposals wrote:
> Well, {map,set}::contains is a logarithmic operation, string::contains
> would be linear. That could well be an argument for naming the linear
> operation differently from the logarithmic one.

What about std::unordered_map::contains then?

My 2 c,
-- 
Giuseppe D'Angelo | giuseppe.dangelo_at_[hidden] | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

Received on 2019-05-31 09:57:56