C++ Logo

std-discussion

Advanced search

Re: std::launder question

From: Thiago Macieira <thiago_at_[hidden]>
Date: Mon, 21 Feb 2022 16:24:21 -0800
On Monday, 21 February 2022 15:05:19 PST Ryan Nicholl via Std-Discussion
wrote:
> *std::launder(foo_array+5)
>
> is interchangable with:
>
> std::launder(foo_array)[5]

They mean different things.

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

Received on 2022-02-22 00:24:23