Changeset 4a8d37c6 in mainline


Ignore:
Timestamp:
2018-07-05T21:41:17Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
604038c
Parents:
1d50d70
git-author:
Jaroslav Jindrak <dzejrou@…> (2017-10-23 16:44:23)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:17)
Message:

cpp: added missing array algorithms

File:
1 edited

Legend:

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

    r1d50d70 r4a8d37c6  
    6363        void fill(const T& x)
    6464        {
    65             // TODO: implement with fill_n when possible
     65            fill_n(begin(), N, x);
    6666        }
    6767
    6868        void swap(array& other) noexcept(noexcept(swap(declval<T&>(), declval<T&>())))
    6969        {
    70             // TODO: implement with swap_ranges when possible
     70            swap_ranges(begin(), end(), other.begin());
    7171        }
    7272
Note: See TracChangeset for help on using the changeset viewer.