Time complexity of find() in std::map?

前端 未结 3 1550
迷失自我
迷失自我 2020-12-14 08:19

How efficient is the find() function on the std::map class? Does it iterate through all the elements looking for the key such that it\'s O(n), or is it in a balanced tree, o

3条回答
提交回复
热议问题