BloombergLP::bdlar::ArrayRef

Type-erased non-const reference to an object in the bdlat array category.

Synopsis

Declared in <bdlar_arrayref.h>

class ArrayRef;

Member Functions

NameDescription
ArrayRef [constructor]Constructors
accessElement Invoke the specified accessor on the array element at the specified index.
elementCategory Return the element type category of the wrapped array.
manipulateElement Invoke the specified manipulator on the array element at the specified index.
objectAddress Return a pointer to the wrapped array.
reset Reset the referred object to the default value.
resize Set the size to the specified newSize.
size Return the number of elements in the wrapped array.
vtable Return a pointer to the vtable.

Non-Member Functions

NameDescription
bdlat_arrayAccessElementInvoke the specified accessor on the array element at the specified index of the specified array. Return the value from the invocation of accessor.
bdlat_arrayManipulateElementInvoke the specified manipulator on the address of the element at the specified index of the specified array.
bdlat_arrayResizeSet the size of the specified array to the specified newSize.
bdlat_arraySizeReturn the number of elements in the specified array.
bdlat_valueTypeResetReset the specified ref to its default-constructed state.