Changeset f97ccd1 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:
711f094b
Parents:
2353857
git-author:
Dzejrou <dzejrou@…> (2018-04-11 21:11:23)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:21)
Message:

cpp: added swap

File:
1 edited

Legend:

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

    r2353857 rf97ccd1  
    798798                noexcept(allocator_traits<allocator_type>::is_always_equal::value)
    799799            {
    800                 // TODO: implement
     800                std::swap(allocator_, other.allocator_);
     801                std::swap(front_bucket_idx_, other.front_bucket_idx_);
     802                std::swap(back_bucket_idx_, other.back_bucket_idx_);
     803                std::swap(front_bucket_, other.front_bucket_);
     804                std::swap(back_bucket_, other.back_bucket_);
     805                std::swap(bucket_count_, other.bucket_count_);
     806                std::swap(bucket_capacity_, other.bucket_capacity_);
     807                std::swap(size_, other.size_);
     808                std::swap(data_, other.data_);
    801809            }
    802810
Note: See TracChangeset for help on using the changeset viewer.