User profile: Peter87

User info
User name:Peter87
Number of posts:8723
Latest posts:

Need help with rvalues and move constructor/assignment operators
The move constructor is used when constructing an object from an rvalue. It's not necessarily used t...

Vector & list
I think the erase-remove idiom is the closest you get to an equivalent operation for std::vector. ht...

C++ Compilers
If your program uses up too much memory so that it runs out of RAM and has to swap things to the har...

Vector & list
Not sure why std::list has remove when std::vector doesn't. std::vector has erase (and so does std...

Vector & list
You can use the front() member function to access the first element. [code]list<int> ints; ints.pus...