Why there is no constructor to initialize container size in multiset in C++?
for example for vector we can initialize container size as
vector<int> a(n);
Why there is no constructor to initialize container size in multiset in C++?
for example for vector we can initialize container size as
vector<int> a(n);
Creating a multiset with N identical elements was not viewed as a common use case.
For a vector, creating a vector with a pile of identical elements is a common use case, such as a vector of integral types initialized to zero or minus 1.