C++ Logo


Advanced search

Re: [std-proposals] creation function for std::vector

From: Tatsuya Yanagita <hemogurobin.711_at_[hidden]>
Date: Mon, 21 Mar 2022 08:54:45 +0900
> Why is that better or worse than an additional constructor overload that
> takes a tag type, e.g. std::vector v(std::reserve, 42)
> ?

I have no idea, though the non-member function may possibly be more
compatible with autocomplete of editors than the constructor??

Received on 2022-03-20 23:54:59