Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88b734e2 authored by Ryan Prichard's avatar Ryan Prichard Committed by Automerger Merge Worker
Browse files

Merge "Remove unnecessary std::unary_function base classes" am: 1ff7e26b am:...

Merge "Remove unnecessary std::unary_function base classes" am: 1ff7e26b am: d346a0d0 am: 201cad7f

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2199557



Change-Id: I837a4b9e223dba4f0e65a6c2d818e2b558405e86
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents deb8480d 201cad7f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -84,13 +84,13 @@ private:
        const TKey& getKey() const final { return key; }
    };

    struct HashForEntry : public std::unary_function<KeyedEntry*, hash_t> {
    struct HashForEntry {
        size_t operator() (const KeyedEntry* entry) const {
            return hash_type(entry->getKey());
        };
    };

    struct EqualityForHashedEntries : public std::unary_function<KeyedEntry*, hash_t> {
    struct EqualityForHashedEntries {
        bool operator() (const KeyedEntry* lhs, const KeyedEntry* rhs) const {
            return lhs->getKey() == rhs->getKey();
        };