BloombergLP::bdlb::ArrayUtil::size

Return the number of elements in the specified array.

Synopsis

Declared in <bdlb_arrayutil.h>

template<
    class TYPE,
    std::size_t LENGTH>
static
std::size_t
size(TYPE(& array)[]);

Description

The array consists of template parameter LENGTH elements of template parameter TYPE. This method is synonymous with the length method.

Return Value

number of elements in array

Parameters

NameDescription
arrayarray whose element count is returned