From a74d125a7c67b7e4de9bd707b8c2a6d669a34fec Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Mon, 17 Feb 2014 11:07:59 +0100 Subject: [PATCH] Help: Fix typo binary_find -> binary_search. --- Help/manual/cmake-developer.7.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Help/manual/cmake-developer.7.rst b/Help/manual/cmake-developer.7.rst index 887047cce..376b56cc4 100644 --- a/Help/manual/cmake-developer.7.rst +++ b/Help/manual/cmake-developer.7.rst @@ -84,7 +84,7 @@ In some implementations, algorithms operating on iterators to a container of const char* dir = /*...*/; std::vector 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 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 -------------