https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238556
Tobias Kortkamp changed:
What|Removed |Added
See Also||https://bugs.freebsd.org/bu
Well, -std=c++20 even, it is that new. :)
That said, it's always hazardous to rely on experimental features, they are
effectively unsupported.
As shown on e.g. cppreference.com, you can use an equivalent function that
looks like:
auto old_size = c.size();
for (auto i = c.begin(), last = c.end(
I'm just guessing, but I think you should remove the "experimental" and
build with -std=c++17 .
-Alan
On Sat, Mar 20, 2021 at 9:06 AM Willem Jan Withagen wrote:
> On 20-3-2021 15:46, Alan Somers wrote:
>
> It looks like it's in there. What code are you trying that doesn't work?
>
> Hi Alan,
>
>
It looks like it's in there. What code are you trying that doesn't work?
> grep erase_if /usr/include/c++/v1/map
void erase_if(map& c, Predicate pred); //
C++20
void erase_if(multimap& c, Predicate pred);
// C++20
void erase_if(map<_Key, _Tp, _Compare, _Allocator>& __c, _Predicate __pred)