bsl::vector<VALUE_TYPE*, ALLOCATOR>

This partial specialization of vector for pointer types to a (template parameter) VALUE_TYPE type is implemented in terms of vector<UintPtr> to reduce the amount of code generated. Note that this specialization rebinds the (template parameter) ALLOCATOR type to an allocator of UintPtr so as to satisfy the invariant in the vector base class. Note that the contract for all members is the same as the primary template, so documentation is not repeated to avoid accidentally introducing inconsistency over time.

Synopsis

Declared in <bslstl_vector.h>

template<
    class VALUE_TYPE,
    class ALLOCATOR>
class vector<VALUE_TYPE*, ALLOCATOR>;

Type Aliases

Name
allocator_type
const_iterator
const_pointer
const_reference
const_reverse_iterator
difference_type
iterator
pointer
reference
reverse_iterator
size_type
value_type

Member Functions

NameDescription
vector [constructor]
~vector [destructor]
operator= NOTE: This function has been implemented inline due to an issue with the Sun compiler.
append_range
assign
assign_range
at
back
begin
capacity
cbegin
cend
clear
crbegin
crend
data
emplace
emplace_back
empty
end
erase
front
get_allocator
insert
insert_range
max_size
operator[]
pop_back
push_back
rbegin
rend
reserve
resize
shrink_to_fit
size
swap

Friends

NameDescription
bsl::swapExchange the values of the specified a and b objects.
bsl::operator<=>Perform a three-way comparison of the specified lhs and rhs vectors and return the result of that comparison.
bsl::operator==Return true if the specified lhs and rhs vectors have the same value, and false otherwise.