Top "Vector" questions

A vector is a single-dimensional array: it contains components that can be accessed using an integral index.

How to erase & delete pointers to objects stored in a vector?

I have a vector that stores pointers to many objects instantiated dynamically, and I'm trying to iterate through the vector …

c++ visual-c++ vector iterator erase
C++ remove_if on a vector of objects

I have a vector (order is important) of objects (lets call them myobj class) where I'm trying to delete multiple …

c++ vector stl predicate
c++ vector last element field

I have a vector vec of structures. Such a structure has elements int a, int b, int c. I would …

c++ vector structure
What is the difference between std::array and std::vector? When do you use one over other?

What is the difference between std::array and std::vector? When do you use one over other? I have always …

c++ arrays vector
Concatenate rows of a data frame

I would like to take a data frame with characters and numbers, and concatenate all of the elements of the …

r vector concatenation paste r-factor
Why isn't my vector drawable scaling as expected?

I am attempting to use vector drawables in my Android app. From http://developer.android.com/training/material/drawables.html (…

android vector drawable scaling
How do I extract just the number from a named number (without the name)?

I am looking for just the value of the B1(newx) linear model coefficient, not the name. I just want …

r vector named lm
std vector C++ -- deep or shallow copy

I wonder whether copying a vector I am copying the vector with its values (whereas this is not working with …

c++ vector copy std deep-copy
Vectors in Arduino

I am making a vector of "waypoints" on the Arduino. Each waypoint is an object. The Arduino will obviously need …

c++ vector arduino
Removing item from vector, while in C++11 range 'for' loop?

I have a vector of IInventory*, and I am looping through the list using C++11 range for, to do stuff …

c++ vector for-loop c++11