Sign in to follow this  
huangyous

Why the erase&insert method in stdvector.h is commented?

Recommended Posts

You should be able to just uncomment these.

The stdvector.h is not an official add-on, so the code in it has not been cleaned up. I believe the only reason these methods are commented is to make the vector interface more similar to the built-in array, though this isn't true anymore anyway as the built-in array has evolved quite a bit.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this