[#bsl-vectorBase-0b2] = xref:bsl.adoc[bsl]::xref:bsl/vectorBase-06a.adoc[vectorBase]<long> :relfileprefix: ../ :mrdocs: == Synopsis Declared in `<bslstl_vector.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<> class xref:bsl/vectorBase-06a.adoc[vectorBase]<long>; ---- == Type Aliases [cols="1,4"] |=== | Name| Description | xref:bsl/vectorBase-0b2/const_iterator.adoc[`const_iterator`] | This `typedef` is an alias to `VALUE_TYPE const *`. | xref:bsl/vectorBase-0b2/const_reference.adoc[`const_reference`] | This `typedef` is an alias to `VALUE_TYPE const&`. | xref:bsl/vectorBase-0b2/const_reverse_iterator.adoc[`const_reverse_iterator`] | This `typedef` is an alias to `bsl::reverse_iterator<const_iterator>`. | xref:bsl/vectorBase-0b2/difference_type.adoc[`difference_type`] | This `typedef` is an alias to `std::ptrdiff_t`. | xref:bsl/vectorBase-0b2/iterator.adoc[`iterator`] | This `typedef` is an alias to `VALUE_TYPE *`. | xref:bsl/vectorBase-0b2/reference.adoc[`reference`] | This `typedef` is an alias to `VALUE_TYPE&`. | xref:bsl/vectorBase-0b2/reverse_iterator.adoc[`reverse_iterator`] | This `typedef` is an alias to `bsl::reverse_iterator<iterator>`. | xref:bsl/vectorBase-0b2/size_type.adoc[`size_type`] | This `typedef` is an alias to `std::size_t`. | xref:bsl/vectorBase-0b2/value_type.adoc[`value_type`] | This `typedef` is an alias to the (template parameter) `VALUE_TYPE`. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:bsl/vectorBase-0b2/2constructor.adoc[`vectorBase`] [.small]#[constructor]# | Create an empty base object with no capacity. | xref:bsl/vectorBase-0b2/adopt.adoc[`adopt`] | Adopt all outstanding memory allocations associated with the specified `base` object. The behavior is undefined unless this object is in a default‐constructed state. | xref:bsl/vectorBase-0b2/at-0d.adoc[`at`] | `at` overloads | xref:bsl/vectorBase-0b2/back-00.adoc[`back`] | `back` overloads | xref:bsl/vectorBase-0b2/begin-04.adoc[`begin`] | `begin` overloads | xref:bsl/vectorBase-0b2/capacity.adoc[`capacity`] | Return the capacity of this vector, i.e., the maximum number of elements for which resizing is guaranteed not to trigger a reallocation. | xref:bsl/vectorBase-0b2/cbegin.adoc[`cbegin`] | Return an iterator providing non‐modifiable access to the first element in this vector, and the past‐the‐end iterator if this vector is empty. | xref:bsl/vectorBase-0b2/cend.adoc[`cend`] | Return the past‐the‐end (forward) iterator providing non‐modifiable access to this vector. | xref:bsl/vectorBase-0b2/crbegin.adoc[`crbegin`] | Return a reverse iterator providing non‐modifiable access to the last element in this vector, and the past‐the‐end reverse iterator if this vector is empty. | xref:bsl/vectorBase-0b2/crend.adoc[`crend`] | Return the past‐the‐end reverse iterator providing non‐modifiable access to this vector. | xref:bsl/vectorBase-0b2/data-0d8.adoc[`data`] | `data` overloads | xref:bsl/vectorBase-0b2/empty.adoc[`empty`] | Return `true` if this vector has size 0, and `false` otherwise. | xref:bsl/vectorBase-0b2/end-02.adoc[`end`] | `end` overloads | xref:bsl/vectorBase-0b2/front-00.adoc[`front`] | `front` overloads | xref:bsl/vectorBase-0b2/operator_subs-04.adoc[`operator[]`] | Subscript operators | xref:bsl/vectorBase-0b2/rbegin-0a.adoc[`rbegin`] | `rbegin` overloads | xref:bsl/vectorBase-0b2/rend-0d.adoc[`rend`] | `rend` overloads | xref:bsl/vectorBase-0b2/size.adoc[`size`] | Return the number of elements in this vector. |=== == Protected Data Members [cols="1,4"] |=== | Name| Description | xref:bsl/vectorBase-0b2/d_capacity.adoc[`d_capacity`] | Capacity of data storage in number of elements. | xref:bsl/vectorBase-0b2/d_dataBegin_p.adoc[`d_dataBegin_p`] | Beginning of data storage (owned). | xref:bsl/vectorBase-0b2/d_dataEnd_p.adoc[`d_dataEnd_p`] | One past the end of data storage. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#