Constructors

The map class provides an overloaded constructor for creating an object of type map.

  explicit map(const Compare& comp = Compare(),
  const Allocator& = Allocator());
  template <class InputIterator> map (InputIterator first,
  InputIterator last, const Compare& comp = Compare(), 
  const Allocator& = Allocator());