The documentation for static_vector::max_size() and static_vector::capacity() list them as static member functions; however, they are actually implemented as non-static const member functions. This PR fixes this discrepancy by changing the documentation to match the implementation.
The alternative would be to change the implementations to be static (which they could be, since for static_vector<T, N>, both simply return N). However, this is difficult due to the way static_vector is implemented (it inherits these member functions from vector), and besides, there already exists static_vector::static_capacity to accomplish the same thing statically.
The documentation for
static_vector::max_size()
andstatic_vector::capacity()
list them asstatic
member functions; however, they are actually implemented as non-staticconst
member functions. This PR fixes this discrepancy by changing the documentation to match the implementation.The alternative would be to change the implementations to be
static
(which they could be, since forstatic_vector<T, N>
, both simply returnN
). However, this is difficult due to the waystatic_vector
is implemented (it inherits these member functions fromvector
), and besides, there already existsstatic_vector::static_capacity
to accomplish the same thing statically.