BloombergLP::bdlb::ArrayUtil

This struct provides a namespace for a collection of function templates providing access to the length and iterators of statically sized built-in arrays

Synopsis

Declared in <bdlb_arrayutil.h>

struct ArrayUtil;

Static Member Functions

NameDescription
begin Return an iterator pointing to the first element of the specified array of template parameter LENGTH elements of template parameter TYPE.
end Return the past-the-end iterator for the specified array of template parameter LENGTH elements of template parameter TYPE.
length Return the number of elements in the specified array of template parameter LENGTH elements of template parameter TYPE. This method is synonymous with the size method.
rbegin Return a reverse iterator pointing to the last element of the specified array of template parameter LENGTH elements of template parameter TYPE.
rend Return the past-the-end reverse iterator for the specified array of template parameter LENGTH elements of template parameter TYPE.
size Return the number of elements in the specified array of template parameter LENGTH elements of template parameter TYPE. This method is synonymous with the length method.
sizer Return a reference to an array of chars with the same number of elements as the specified array of template parameter LENGTH elements of template parameter TYPE. This function is not implemented and can only be used in a non-evaluated context. The function is used together with sizeof to obtain a constant expression with the LENGTH of the array. See BDLB_ARRAYUTIL_SIZE and BDLB_ARRAYUTIL_LENGTH.