Date: Sat, 20 Mar 2021 08:46:42 -0600 From: Alan Somers <asomers@freebsd.org> To: Willem Jan Withagen <wjw@digiware.nl> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org>, FreeBSD Toolchain <freebsd-toolchain@freebsd.org> Subject: Re: Looking for std::map::erase_if Message-ID: <CAOtMX2g4E3VUQkBe=mBOejpnkDAd2yMn9SChw=5ReMx4Aoe9Fw@mail.gmail.com> In-Reply-To: <941ef2dc-e6e1-bd30-0533-f6789b1463b5@digiware.nl> References: <941ef2dc-e6e1-bd30-0533-f6789b1463b5@digiware.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
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<Key, T, Compare, Allocator>& c, Predicate pred); // C++20 void erase_if(multimap<Key, T, Compare, Allocator>& c, Predicate pred); // C++20 void erase_if(map<_Key, _Tp, _Compare, _Allocator>& __c, _Predicate __pred) { __libcpp_erase_if_container(__c, __pred); } void erase_if(multimap<_Key, _Tp, _Compare, _Allocator>& __c, _Predicate __pred) { __libcpp_erase_if_container(__c, __pred); } On Sat, Mar 20, 2021 at 8:39 AM Willem Jan Withagen via freebsd-hackers < freebsd-hackers@freebsd.org> wrote: > Hi, > > [ Trying this on FBSD 12.2 ] > > In the Ceph code new code uses std::map::erase_if. > Which is in Linux imported from <experimental/map> > > Anybody suggestions on libraries to get something matching?? > > Thanx, > --WjW > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2g4E3VUQkBe=mBOejpnkDAd2yMn9SChw=5ReMx4Aoe9Fw>