xte ::fixed_array <T , n >::size
Defined in header <xte/data/fixed_array.hpp> Definition
Keeps the number of stored elements,static constexpr auto size =xte ::wrap_value <n >();
n . Implicitly convertible to xte ::uz , and callable, as to emulate a member function.Example
Output:xte ::fixed_array array = {1 ,2 ,3 };std ::println ("{}" ,array .size ());std ::println ("{}" ,xte ::fixed_array <int ,42 >::size );
[View in Compiler Explorer]3 42