C++ Logo

std-discussion

Advanced search

Re: Trying to solve how to do a std::unordered_map<std::pair<..., ...>, ...>

From: Thiago Macieira <thiago_at_[hidden]>
Date: Tue, 03 Oct 2023 13:59:51 -0700
On Tuesday, 3 October 2023 12:06:47 PDT Aaron Gray wrote:
> Hi Thiago,
>
> What would you use instead for my use case which is memorization of a
> pair of types or type variables used for comparison and subtyping
> predicates for a type system.

Create your own type. There's never a good reason to use std::pair.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering

Received on 2023-10-03 20:59:54