Lines Matching refs:element

34    * Random-access iterator that points to some element in the container.
106 * Erases the last element in the vector. Invalid to call on an empty vector.
113 * Copy- or move-constructs an element onto the back of the vector. If the
118 * @param The element to push onto the vector.
119 * @return true if the element was pushed successfully.
121 bool push_back(const ElementType& element);
122 bool push_back(ElementType&& element);
125 * Constructs an element onto the back of the vector. All iterators and
130 * @return true if the element is constructed successfully.
136 * Obtains an element of the vector given an index. It is illegal to index
141 * @param The index of the element.
142 * @return The element.
147 * Obtains a const element of the vector given an index. It is illegal to
152 * @param The index of the element.
153 * @return The element.
160 * of the vectors element-by-element. The operator == should be defined and
161 * meaningful for the vector's element type.
183 * Inserts an element into the vector at a given index. If a resize of the
189 * to and after the indexed element are invalidated. Iterators and references
192 * @param index The index to insert an element at.
193 * @param element The element to insert.
196 bool insert(size_type index, const ElementType& element);
197 bool insert(size_type index, ElementType&& element);
226 * Removes an element from the vector given an index. All elements after the
231 * to and after the indexed element are invalidated.
233 * @param index The index to remove an element at.
238 * Searches the vector for an element.
240 * @param element The element to comare against.
241 * @return The index of the element found. If the return is equal to size()
242 * then the element was not found.
244 size_type find(const ElementType& element) const;
252 * @param index0 The index of the first element
253 * @param index1 The index of the second element
270 * of the calling code. While the vector may invoke the element destructor as
295 * Returns a reference to the first element in the vector. It is illegal to
298 * @return The first element in the vector.
303 * Returns a const reference to the first element in the vector. It is illegal
306 * @return The first element in the vector.
311 * Returns a reference to the last element in the vector. It is illegal to
314 * @return The last element in the vector.
319 * Returns a const reference to the last element in the vector. It is illegal
322 * @return The last element in the vector.
327 * Prepares a vector to push a minimum of one element onto the back. The