c++ - Why std::set is an associative container -


I have gone through different texts The only thing I have found is that this set is an associative container that was sorted And there are unique keys. Now if any key is used to map any key, so that there is a union in the set.

"itemprop =" text ">

is an object used to store the care of the management of memory used by other objects and objects in it Done

An ordered container that provides fast viewing of objects based on the key.

is an associative container in which there is a set of specific types of a specific object

So what makes it cooperative? The fact is that the elements in a set are referred to by their key and not in their container in their full position. The key, of course, is that the element is a map where the key values ​​are equal and understand as given that, where the second copy of the same content is removed.

So what would be a disorganized set? Std :: unordered_set container, complete the requirements of AllocatorAwareContainer and UnorderedAssociativeContainer


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -