[PATCH] libstdc++: Implement P2328 changes to join_view

Jonathan Wakely jwakely@redhat.com
Fri Apr 30 22:02:13 GMT 2021


On 30/04/21 12:43 -0500, Tim Song via Libstdc++ wrote:
>On Fri, Apr 30, 2021 at 12:11 PM Patrick Palka via Libstdc++
><libstdc++@gcc.gnu.org> wrote:
>>
>> +       template<typename _Iter>
>> +         _Tp&
>> +         _M_emplace_deref(const _Iter& __i)
>> +         {
>> +           this->reset();
>> +           return this->emplace(*__i);
>> +         }
>
>This incurs a move, avoiding of which is the sole reason for
>emplace-deref's existence.

I completely forgot about that, even though we only discussed it last
week. Thanks, Tim.




More information about the Libstdc++ mailing list