Re: [PATCH] libstdc++: Simplify std::_Destroy using 'if constexpr'

2024-12-02 Thread Patrick Palka
On Thu, 28 Nov 2024, Jonathan Wakely wrote: > This is another place where we can use 'if constexpr' to replace > dispatching to a specialized class template, improving compile times and > avoiding a function call. > > libstdc++-v3/ChangeLog: > > * include/bits/stl_construct.h (_Destroy(Fwd

[PATCH] libstdc++: Simplify std::_Destroy using 'if constexpr'

2024-11-28 Thread Jonathan Wakely
This is another place where we can use 'if constexpr' to replace dispatching to a specialized class template, improving compile times and avoiding a function call. libstdc++-v3/ChangeLog: * include/bits/stl_construct.h (_Destroy(FwdIter, FwdIter)): Use 'if constexpr' instead of di