Skip to content

Instantly share code, notes, and snippets.

@sohale
Last active October 11, 2016 11:17
Show Gist options
  • Save sohale/3369a4c730c2938895a22db139d9214e to your computer and use it in GitHub Desktop.
Save sohale/3369a4c730c2938895a22db139d9214e to your computer and use it in GitHub Desktop.
Example usage of STL libraries, for quick review and reference
void vector_capacity_reserve() {
// How to set the capacity of a vector?
// .reserve()
std::vector<int> new_faces;
new_faces.reserve(1000);
assert(new_faces.size() == 0)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment