Changeset c23f16d8 in mainline


Ignore:
Timestamp:
2018-07-05T21:41:21Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6d80237
Parents:
544eae5
git-author:
Dzejrou <dzejrou@…> (2018-04-25 18:34:51)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:21)
Message:

cpp: added equality operator implementation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/impl/unordered_map.hpp

    r544eae5 rc23f16d8  
    834834
    835835            static constexpr size_type default_bucket_count_{16};
     836
     837            template<class Key, class Value, class Hash, class Pred, class Alloc>
     838            friend bool operator==(unordered_map<Key, Value, Hash, Pred, Alloc>&,
     839                                   unordered_map<Key, Value, Hash, Pred, Alloc>&);
    836840    };
    837841
     
    868872                    unordered_map<Key, Value, Hash, Pred, Alloc>& rhs)
    869873    {
    870         // TODO: implement
    871         return false;
     874        return lhs.table_.is_eq_to(rhs.table_);
    872875    }
    873876
     
    883886                    unordered_multimap<Key, Value, Hash, Pred, Alloc>& rhs)
    884887    {
    885         // TODO: implement
    886         return false;
     888        return lhs.table_.is_eq_to(rhs.table_);
    887889    }
    888890
Note: See TracChangeset for help on using the changeset viewer.