Changeset 6562af2 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:
49343fe
Parents:
b9076db
git-author:
Dzejrou <dzejrou@…> (2018-04-25 17:41:25)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:21)
Message:

cpp: added move/copy assignment

File:
1 edited

Legend:

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

    rb9076db r6562af2  
    165165            unordered_map& operator=(const unordered_map& other)
    166166            {
    167                 // TODO: implement
     167                table_ = other.table_;
     168                allocator_ = other.allocator_;
     169
    168170                return *this;
    169171            }
     
    174176                         is_nothrow_move_assignable<key_equal>::value)
    175177            {
    176                 // TODO: implement
     178                table_ = move(other.table_);
     179                allocator_ = move(other.allocator_);
     180
    177181                return *this;
    178182            }
Note: See TracChangeset for help on using the changeset viewer.