Need help with Multiset with random-access iterators in C++

Правка en1, от scopeInfinity, 2018-06-22 09:07:24

I was going through a blog ( )

It says something like -

The query function is also almost equivalent, only now the lower_bound function of the multiset function should be called instead (std::lower_bound only works in O(logn) time if used with random-access iterators).

I need some help, to clarify few doubts —

  • How can I define multiset with random-access iterators in C++?
  • Can we find the rank of an element using it?
  • How is it different from "C++ STL: Policy based data structures"?
Теги #c++, iterator, ordered_set, #multiset

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский scopeInfinity 2018-06-22 09:09:31 25 Tiny change: ' a blog ( ![https://c' -> ' a blog ( [Your text to link here...](a)[https://c' (published)
en1 Английский scopeInfinity 2018-06-22 09:07:24 695 Initial revision (saved to drafts)