Ignore:
Timestamp:
2018-07-05T21:41:22Z (7 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
784c8b6
Parents:
7644d6e
git-author:
Dzejrou <dzejrou@…> (2018-04-30 20:15:36)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:22)
Message:

cpp: fixed return type on multi policy insert and made return type on insert/emplace in hash_table dependent on the policy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/internal/hash_table.hpp

    r7644d6e ra2f01c4  
    190190
    191191            template<class... Args>
    192             pair<iterator, bool> emplace(Args&&... args)
     192            auto emplace(Args&&... args)
    193193            {
    194194                return Policy::emplace(*this, forward<Args>(args)...);
    195195            }
    196196
    197             pair<iterator, bool> insert(const value_type& val)
     197            auto insert(const value_type& val)
    198198            {
    199199                return Policy::insert(*this, val);
    200200            }
    201201
    202             pair<iterator, bool> insert(value_type&& val)
     202            auto insert(value_type&& val)
    203203            {
    204204                return Policy::insert(*this, forward<value_type>(val));
Note: See TracChangeset for help on using the changeset viewer.