Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
The iterator @Xunie the iterator that erase returns is completely valid. This code works very well :)
-
If all u want is that it werx, u might be thru. But that code is ugly as fuck, r u using visual c++ 6 still or why not writing modern clean c++? And still: why that std::find? U got that iter already!
You rant 'bout mem n pointers but u got options u dont use! -
Naked new/delete means memory leaks. Learn you some smart pointers and you'll love memory management.
Also auto! Read the latest a tour of c++ and you're c++ life will change.
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
elgringo41Student - Teacher renaming .c to .exe make the program executable ? Teacher - Yes A group of people stand up...
-
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
<rant>
Pointers and memory handling
</rant>
undefined
c++
c