xte ::array <T >::capacity ()
Defined in header <xte/data/array.hpp> Definition
Returns the number of elements that can be stored before reallocation is required to hold more.[[nodiscard ]]constexpr xte ::uz capacity ()const noexcept ;
Example
Possible output:xte ::array array = {1 ,2 ,3 };std ::println ("{}" ,array .capacity ());
[View in Compiler Explorer]16