On Oct 26, 2025, at 6:00 PM, organicoman via Std-Proposals <std-proposals@lists.isocpp.org> wrote:
Actually, I fully disagree: Every member function of a container works on the container. This is usually how things work: if you call member functions on an object (i.e. a container in this case) it does its operation on the object (and not something contained in it).-------- Original message --------From: Sebastian Wittmeier via Std-Proposals <std-proposals@lists.isocpp.org>Date: 10/26/25 4:52 PM (GMT+01:00)To: std-proposals@lists.isocpp.orgCc: Sebastian Wittmeier <wittmeier@projectalpha.org>Subject: Re: [std-proposals] Consistent behavior on Container actions>You can create a container, which applies >certain operations (like copy, move, >empty) on all of its contained objects.
It would be more intuitive to have this as the default.
///
vec(const vec&) ;// copy each elem
vec(vec&&);// move each elem
vec& operator =(const vec&);//assignment by copy construction or copy assign each elem
vec& operator =(vec&&);// assignment by move construction or move assign each elem
void clear();//destroy each elem
///