mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 03:59:58 +00:00
Help: Fix typo
binary_find -> binary_search.
This commit is contained in:
parent
317d8498aa
commit
a74d125a7c
@ -84,7 +84,7 @@ In some implementations, algorithms operating on iterators to a container of
|
||||
const char* dir = /*...*/;
|
||||
std::vector<std::string> vec;
|
||||
// ...
|
||||
std::binary_find(vec.begin(), vec.end(), dir); // Wrong
|
||||
std::binary_search(vec.begin(), vec.end(), dir); // Wrong
|
||||
|
||||
The ``std::string`` may need to be explicitly constructed:
|
||||
|
||||
@ -93,7 +93,7 @@ The ``std::string`` may need to be explicitly constructed:
|
||||
const char* dir = /*...*/;
|
||||
std::vector<std::string> vec;
|
||||
// ...
|
||||
std::binary_find(vec.begin(), vec.end(), std::string(dir)); // Ok
|
||||
std::binary_search(vec.begin(), vec.end(), std::string(dir)); // Ok
|
||||
|
||||
std::auto_ptr
|
||||
-------------
|
||||
|
Loading…
Reference in New Issue
Block a user