Obsolete Members for QMultiMap | Qt Core | Qt 6.11.2
Description: The QMultiMap class is a template class that provides an associative array with multiple equivalent keys.

- Qt 6.11
- Qt Core
- C++ Classes
- QMultiMap
- Qt 6.11.2 Reference Documentation

# Obsolete Members for QMultiMap

The following members of class QMultiMap are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.

## Public Functions

`(deprecated)` void | insert(const QMultiMap<Key, T> &map)
`(deprecated)` void | insert(QMultiMap<Key, T> &&map)
`(deprecated)` QMultiMap<Key, T>::iterator | insertMulti(const Key &key, const T &value)
`(deprecated)` QMultiMap<Key, T>::iterator | insertMulti(QMultiMap<Key, T>::const_iterator pos, const Key &key, const T &value)
`(deprecated)` std::multimap<Key, T> | toStdMap() const

## Member Function Documentation

### `[deprecated]` void QMultiMap::insert(const QMultiMap<Key, T> &map)

This function is deprecated. We strongly advise against using it in new code.

Use unite() instead.

Inserts all the items in map into this map.

### `[deprecated]` void QMultiMap::insert(QMultiMap<Key, T> &&map)

This function is deprecated. We strongly advise against using it in new code.

Use unite() instead.

Moves all the items from map into this map.

If map is shared, then the items will be copied instead.

This is an overloaded function.

### `[deprecated]` QMultiMap<Key, T>::iterator QMultiMap::insertMulti(const Key &key, const T &value)

This function is deprecated. We strongly advise against using it in new code.

Use insert() instead.

Inserts a new item with the key key and a value of value, and returns an iterator pointing to the new item.

### `[deprecated]` QMultiMap<Key, T>::iterator QMultiMap::insertMulti(QMultiMap<Key, T>::const_iterator pos, const Key &key, const T &value)

This function is deprecated. We strongly advise against using it in new code.

Use insert() instead.

Inserts a new item with the key key and value value and with hint pos suggesting where to do the insert.

This is an overloaded function.

### `[deprecated]` std::multimap<Key, T> QMultiMap::toStdMap() const

This function is deprecated. We strongly advise against using it in new code.

Use toStdMultiMap() instead.

Returns an STL multi map equivalent to this QMultiMap.