This is not a patch. Nor is it an implementation of std::binary_search, which is a function template that accepts arbitrary forward iterators and optionally arbitrary comparator objects, rather than just pointers.
If you want to find someone to review your code, consider something like https://codereview.stackexchange.com/. While I'm not a maintainer, I strongly suspect that for something like this to have a chance of getting into libstdc++, it needs to, at the very minimum, implement the standard signature and be accompanied by sufficient performance benchmarks showing that it is better performing than the existing implementation.