[libc++] Fix typos in the synopsis of bit_xor, bit_not, etc. NFC.
authorArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Mon, 8 Mar 2021 01:22:03 +0000 (20:22 -0500)
committerArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Mon, 8 Mar 2021 01:22:50 +0000 (20:22 -0500)
libcxx/include/functional

index c4830e1..747636f 100644 (file)
@@ -166,27 +166,27 @@ struct logical_not : unary_function<T, bool>
 };
 
 template <class T> // <class T=void> in C++14
-struct bit_and : unary_function<T, bool>
+struct bit_and : binary_function<T, T, T>
 {
-    bool operator()(const T& x, const T& y) const;
+    T operator()(const T& x, const T& y) const;
 };
 
 template <class T> // <class T=void> in C++14
-struct bit_or : unary_function<T, bool>
+struct bit_or : binary_function<T, T, T>
 {
-    bool operator()(const T& x, const T& y) const;
+    T operator()(const T& x, const T& y) const;
 };
 
 template <class T> // <class T=void> in C++14
-struct bit_xor : unary_function<T, bool>
+struct bit_xor : binary_function<T, T, T>
 {
-    bool operator()(const T& x, const T& y) const;
+    T operator()(const T& x, const T& y) const;
 };
 
 template <class T=void> // C++14
-struct bit_xor : unary_function<T, bool>
+struct bit_not : unary_function<T, T>
 {
-    bool operator()(const T& x) const;
+    T operator()(const T& x) const;
 };
 
 template <class Predicate>