[#BloombergLP-bdld-DatumArrayRef] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdld.adoc[bdld]::DatumArrayRef :relfileprefix: ../../ :mrdocs: Read‐only view of an array of `Datum` values. == Synopsis Declared in `<bdld_datum.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class DatumArrayRef; ---- == Description This `class` provides a read‐only view to an array of datums. It holds the array by a `const` pointer and an integral length value. It acts as return value for accessors inside the `Datum` class that return an array of datums. Note that zero‐length arrays are valid. == Type Aliases [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdld/DatumArrayRef/SizeType.adoc[`SizeType`] | `SizeType` is an alias for an unsigned integral value, representing the length of a datum array. | xref:BloombergLP/bdld/DatumArrayRef/const_iterator.adoc[`const_iterator`] | Const iterator for this array reference. | xref:BloombergLP/bdld/DatumArrayRef/const_pointer.adoc[`const_pointer`] | Const pointer to an element. | xref:BloombergLP/bdld/DatumArrayRef/const_reference.adoc[`const_reference`] | Const reference to an element. | xref:BloombergLP/bdld/DatumArrayRef/const_reverse_iterator.adoc[`const_reverse_iterator`] | Const reverse iterator for this array reference. | xref:BloombergLP/bdld/DatumArrayRef/difference_type.adoc[`difference_type`] | Iterator difference type for this array reference. | xref:BloombergLP/bdld/DatumArrayRef/element_type.adoc[`element_type`] | This `typedef` is an alias for `element_type`. | xref:BloombergLP/bdld/DatumArrayRef/iterator.adoc[`iterator`] | Iterator for this array reference. | xref:BloombergLP/bdld/DatumArrayRef/pointer.adoc[`pointer`] | Pointer to an element. | xref:BloombergLP/bdld/DatumArrayRef/reference.adoc[`reference`] | Reference to an element. | xref:BloombergLP/bdld/DatumArrayRef/reverse_iterator.adoc[`reverse_iterator`] | Reverse iterator for this array reference. | xref:BloombergLP/bdld/DatumArrayRef/size_type.adoc[`size_type`] | Size type for this array reference. | xref:BloombergLP/bdld/DatumArrayRef/value_type.adoc[`value_type`] | Value type for this array reference. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdld/DatumArrayRef/2constructor-09.adoc[`DatumArrayRef`] [.small]#[constructor]# | Constructors | xref:BloombergLP/bdld/DatumArrayRef/back.adoc[`back`] | Return a reference to the last element of this array. | xref:BloombergLP/bdld/DatumArrayRef/begin.adoc[`begin`] | Return an iterator providing non‐modifiable access to the first element of the array this reference object represents. | xref:BloombergLP/bdld/DatumArrayRef/cbegin.adoc[`cbegin`] | Return an iterator to the first element of this array. | xref:BloombergLP/bdld/DatumArrayRef/cend.adoc[`cend`] | Return an iterator providing non‐modifiable access pointing past‐the‐end of the array this reference object represents. | xref:BloombergLP/bdld/DatumArrayRef/crbegin.adoc[`crbegin`] | Return a reverse iterator to the last element of this array. | xref:BloombergLP/bdld/DatumArrayRef/crend.adoc[`crend`] | Return a reverse iterator providing non‐modifiable access pointing past‐the‐end of the array this reference object represents. | xref:BloombergLP/bdld/DatumArrayRef/data.adoc[`data`] | Return a pointer to the first element of this array. | xref:BloombergLP/bdld/DatumArrayRef/empty.adoc[`empty`] | Return `size() == 0`. | xref:BloombergLP/bdld/DatumArrayRef/end.adoc[`end`] | Return a past‐the‐end iterator for this array reference. | xref:BloombergLP/bdld/DatumArrayRef/front.adoc[`front`] | Return a reference to the first element of this array. | xref:BloombergLP/bdld/DatumArrayRef/length.adoc[`length`] | Return a const pointer to the length of the array. | xref:BloombergLP/bdld/DatumArrayRef/operator_subs.adoc[`operator[]`] | Return a reference to the element at the specified `position`. | xref:BloombergLP/bdld/DatumArrayRef/print.adoc[`print`] | Format this object to the specified output stream. | xref:BloombergLP/bdld/DatumArrayRef/rbegin.adoc[`rbegin`] | Return a reverse iterator to the last element of this array reference. | xref:BloombergLP/bdld/DatumArrayRef/rend.adoc[`rend`] | Return a past‐the‐end reverse iterator for this array reference. | xref:BloombergLP/bdld/DatumArrayRef/size.adoc[`size`] | Return a const‐pointer to the number of elements of the array this reference object represents. | xref:BloombergLP/bdld/DatumArrayRef/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration<DatumArrayRef, HasPrintMethod>`] | `DatumArrayRef` is trivially copyable. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdld/operator_not_eq-0c.adoc[`operator!=`] | Return whether `lhs` and `rhs` have different values. | xref:BloombergLP/bdld/operator_eq-07.adoc[`operator==`] | Return whether `lhs` and `rhs` have the same value. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#