2 ms·
> std::vector has 10 constructors, they can't have different names Except you can have static member functions (calling private constructors) if you do want th
by account42 4y ago
> std::vector has 10 constructors, they can't have different names
Except you can have static member functions (calling private constructors) if you do want that. Of course that doesn't compose as well as overloaded constructors which e.g. lets all constructors for a type T be accessed via std::vector<T>::emplace_back().