std

std::vector

Declaration

  Simple operation

  Fill with something

  Combine two vectors

  In-place solution for creating object

Originally, object gets created first in the main stack and then copied to the vector’s memory address

In-place object creation can be achieved and save the computing time for copying the object

 

Algorithms, C++, std

std::map

Simple insert

  Access to second element using key (C++ 11)

  Iterate

  Find element

 

std

std::set

Simple insert

  Quick match

  Store search result

  Check if duplicate insert