[libc++] Mark some members private in experimental/functional
authorJoe Loser <joeloser93@gmail.com>
Mon, 7 Feb 2022 00:47:45 +0000 (19:47 -0500)
committerJoe Loser <joeloser93@gmail.com>
Mon, 7 Feb 2022 23:06:56 +0000 (18:06 -0500)
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

libcxx/include/experimental/functional

index 4e081e8..9fb5bf9 100644 (file)
@@ -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_;