Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/161.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 如何为成功的二进制搜索获取迭代器?_C++_Algorithm_Stl_Binary Search - Fatal编程技术网

C++ 如何为成功的二进制搜索获取迭代器?

C++ 如何为成功的二进制搜索获取迭代器?,c++,algorithm,stl,binary-search,C++,Algorithm,Stl,Binary Search,我想在二进制搜索中获取我正在测试的元素的迭代器。但它只返回一个bool,指示它是否找到了值。如何获取迭代器?您需要或

我想在
二进制搜索
中获取我正在测试的元素的迭代器。但它只返回一个
bool
,指示它是否找到了值。如何获取迭代器?

您需要或