C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Add [[no_unique_address]] attribute to std::pair

From: Giuseppe D'Angelo <giuseppe.dangelo_at_[hidden]>
Date: Sat, 26 Aug 2023 11:38:23 +0200
Il 25/08/23 17:07, Hewill Kang via Std-Proposals ha scritto:
> I wonder if we could get this compression optimization at almost no cost
> if add the C++ |[[no_unique_address]]| attribute to the members of
> |std::pair|:
>

Rather than a breaking change, why not proposing to add
std::compressed_tuple -- a tuple that is guaranteed to implement this
optimization?

My 2 c,
-- 
Giuseppe D'Angelo

Received on 2023-08-26 09:38:28