xte::array<T>::size()

Defined in header <xte/data/array.hpp>


Definition

[[nodiscard]] constexpr xte::uz size() const noexcept;
Returns the number of stored elements.



Example

xte::array array = { 1, 2, 3 };
std::println("{}", array.size());
Output:
3
[View in Compiler Explorer]