[libcxx-commits] [libcxx] 66dea85 - [libc++] Mark some members private in experimental/functional

Joe Loser via libcxx-commits libcxx-commits at lists.llvm.org
Mon Feb 7 15:07:38 PST 2022


Author: Joe Loser
Date: 2022-02-07T18:06:56-05:00
New Revision: 66dea85b360db2309a516e223335402ef2a7deae

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

LOG: [libc++] Mark some members private in experimental/functional

Some members are public but should be private. Nothing requires they are public
right now, so make them private.

Differential Revision: https://reviews.llvm.org/D119097

Added: 
    

Modified: 
    libcxx/include/experimental/functional

Removed: 
    


################################################################################
diff  --git a/libcxx/include/experimental/functional b/libcxx/include/experimental/functional
index 4e081e8023811..9fb5bf91f753d 100644
--- a/libcxx/include/experimental/functional
+++ b/libcxx/include/experimental/functional
@@ -144,7 +144,6 @@ template<class _Key, class _Value, class _Hash, class _BinaryPredicate, bool /*u
 //  General case for BM data searching; use a map
 template<class _Key, typename _Value, class _Hash, class _BinaryPredicate>
 class _BMSkipTable<_Key, _Value, _Hash, _BinaryPredicate, false> {
-public: // TODO private:
     typedef _Value value_type;
     typedef _Key   key_type;
 
@@ -253,7 +252,7 @@ public:
         return this->__search(__f, __l);
     }
 
-public: // TODO private:
+private:
     _RandomAccessIterator1               __first_;
     _RandomAccessIterator1               __last_;
     _BinaryPredicate                     __pred_;


        


More information about the libcxx-commits mailing list