cppreference.com > C++ Multimaps > Container constructors & destructors
Container constructors & destructors
Syntax:
  #include <map>
  container();
  container( const container& c );
  ~container();

Every multimap has a default constructor, copy constructor, and destructor.

The default constructor takes no arguments, creates a new instance of that multimap, and runs in constant time. The default copy constructor runs in linear time and can be used to create a new multimap that is a copy of the given multimap c.

The default destructor is called when the multimap should be destroyed.

For example, the following code creates a pointer to a vector of integers and then uses the default multimap constructor to allocate a memory for a new vector:

 vector<int>* v;
 v = new vector<int>();