i try to understand how can i hold dynamically 2d vector array ( or it can be other container in c++ ) that i can fill dynameclly when i dont know the ...
i try to understand how can i hold dynamically 2d vector array ( or it can be other container in c++ ) that i can fill dynameclly when i dont know the ...
Is it possible to create a vector from elements of another vector so that changing an element by index in one of the vectors results in a change in th ...
I get how vectors works in general as far as memory allocation is concerned, but what happens when you use a vector to store a vector of some simple t ...
I have a vector v, which I want to compare each, with every other element. For the sake of simplicity, in my example, the vector comprises of integers ...
I wanted to try to add a move assignment operator to my Mesh class below, knowing that a vector of Meshes appear as a field member in my Model class: ...
I want to create a html query object that has all the properties of a vector (can be iterated through, has all the access functions) BUT it should par ...
Why does this code work for arrays but not vectors? When I replace the data type to array, it works. I thought both were mutable. For reference, the p ...
I am trying to extract a single element from a string literal included a list composed of string literals. I used VS Code. First, I used pointer to m ...
I have a vector a{1,2,3,4,5,6,7,8,9,10} I need to split it into vectors of different lengths. I can set the maximum length of a vector The next divisi ...
I am storing different objects which inherit from the same interface inside a single vector. Those objects have their name stored as a constant string ...
Recently I saw the following result regarding the insertion of elements into the front of std::list and std::vector: for std::list the time is lin ...
I currently use a std::vector to store some data (nb : the size is known at construction and don't changes afterwards : if you see a better structure ...
Here's my code: vector<int> v; v.push_back(1); v.push_back(2); v.push_back(3); v.push_back(4); v.push_back(5); v.push_back(6); v.push_back(7); ...
I'm trying to filter a vector into another vector in parallel. My current setup generates too much overhead so it's even slower than serial. Concretel ...
I have this class where the only atribute is a vector<vector<?>> like this: The method read is where first I read data from a file and ...
I've got an interesting puzzle that I can't seem to completely solve. The following code is a snipped for my own function implementation. When I try t ...
Since &v[0] and v.data() provide the same way to access the underlying pointer of std::vector, I wonder which method is the better choice in terms ...
In case you're wondering, this is a solution I'm working on for advent of code not any sort of programming assignment. The issue I'm facing is that ...
I have two functions that I am using to attempt to perform a merge sort. Unfortunately, it claims that my call to merge does not match any existing fu ...
This throws the error -no matching function for call to 'strstr(std::basic_string&, char*)' because of the way index_name is used in strstr. How ...