[libcxx-commits] [libcxx] ab49f50 - [libc++] Fix typos in the synopsis of bit_xor, bit_not, etc. NFC.

Arthur O'Dwyer via libcxx-commits libcxx-commits at lists.llvm.org
Sun Mar 7 17:23:10 PST 2021


Author: Arthur O'Dwyer
Date: 2021-03-07T20:22:50-05:00
New Revision: ab49f50ad0bedc437cc2bd621c5badfdac31f462

URL: https://github.com/llvm/llvm-project/commit/ab49f50ad0bedc437cc2bd621c5badfdac31f462
DIFF: https://github.com/llvm/llvm-project/commit/ab49f50ad0bedc437cc2bd621c5badfdac31f462.diff

LOG: [libc++] Fix typos in the synopsis of bit_xor, bit_not, etc. NFC.

Added: 
    

Modified: 
    libcxx/include/functional

Removed: 
    


################################################################################
diff  --git a/libcxx/include/functional b/libcxx/include/functional
index c4830e16ad35..747636f195d2 100644
--- a/libcxx/include/functional
+++ b/libcxx/include/functional
@@ -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>


        


More information about the libcxx-commits mailing list