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

cpp: added unchecked version of unordered_map::at

File:
1 edited

Legend:

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

    r6562af2 r49343fe  
    595595            mapped_type& at(const key_type& key)
    596596            {
    597                 // TODO: implement
     597                auto it = find(key);
     598
     599                // TODO: throw out_of_range if it == end()
     600                return it->second;
    598601            }
    599602
    600603            const mapped_type& at(const key_type& key) const
    601604            {
    602                 // TODO: implement
     605                auto it = find(key);
     606
     607                // TODO: throw out_of_range if it == end()
     608                return it->second;
    603609            }
    604610
Note: See TracChangeset for help on using the changeset viewer.