I need a container that gives me a quick indexer, and can also be very effective with any insert and delete actions (which means at any position of the container).
I remember reading about a container that uses buckets, but I can’t find it or repeat the steps that lead me to it (I will start using bookmarks, I promise!)
Thank you.
Perhaps you are looking for some kind of hash map, for example boost::unordered_map(soon it will be in the C ++ standard). There are many other hash implementations.
boost::unordered_map
std:: deque, std:: list ( ) , , . "" . , - , .
, , map < > ( ).
-. -, .
I still want me to be able to find an efficient vector / list hybrid that is O (1) in random access and at least O (log N) in erase / insert.
Source: https://habr.com/ru/post/1757737/More articles:Help clean up asp.net mvc web.config file - asp.net-mvcAJAX.NET and FIPS - fipsHow to add a line to a text area with different colors? - javascriptwhere php.ini on a snow leopard on a new installation - phpFibonacci recursion with stack - algorithmHow can I reload an Activity that exists in a TabView? - androidThe standard way to generate / write XML files - pythonjavascript performance between thin client and pc - performanceКак включить PDB файлы в Silverlight XAP? - debuggingThe Linux kernel that runs the python file for init - pythonAll Articles