C++ Logo

std-proposals

Advanced search

Re: [std-proposals] equal_range on unordered associative containers

From: Thiago Macieira <thiago_at_[hidden]>
Date: Fri, 05 Jun 2026 08:56:33 -0700
On Friday, 5 June 2026 07:40:52 Pacific Daylight Time Rainer Deyke via Std-
Proposals wrote:
> I'm not sure I buy that reasoning. Two iterators in a std::pair are

No doubt, but this violates the rule of use of std::pair: NEVER.

Don't add new APIs that return it. Create a new struct that assigns meaning to
the two elements.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel Data Center - Platform & Sys. Eng.

Received on 2026-06-05 15:56:43