Keys and Values

This lesson is about the different properties of keys and values in this type of associative containers.

There are special rules for the key and the value of an unordered associative container.

The key has to be

  • equal comparable,
  • available as hash value,
  • copyable or moveable.

The value has to be

  • default constructible,
  • copyable or moveable.

Get hands-on with 1000+ tech skills courses.