A
Alex Vinokur
Hi,
std::binary_search() takes logarithmic time on (sorted) container, but
returns bool, not iterator to the found element.
std::find() returns iterator to the found element, but takes linear
time.
Is there any way to get iterator to the found element on sorted
container in logarithmic time?
Alex Vinokur
std::binary_search() takes logarithmic time on (sorted) container, but
returns bool, not iterator to the found element.
std::find() returns iterator to the found element, but takes linear
time.
Is there any way to get iterator to the found element on sorted
container in logarithmic time?
Alex Vinokur