Changeset f67b4ef in mainline
- Timestamp:
- 2018-07-05T21:41:21Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7320ca6
- Parents:
- e9027b5
- git-author:
- Dzejrou <dzejrou@…> (2018-04-23 19:58:10)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:21)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/internal/hash_table.hpp
re9027b5 rf67b4ef 68 68 }; 69 69 70 struct key_value_allocator71 { /* DUMMY BODY */ };72 73 70 template<class Value, class Size> 74 71 struct hash_table_bucket … … 695 692 iterator emplace(Allocator& alloc, Args&&... args) 696 693 { 697 // TODO: use allocator traits of allocator_type but pass alloc! 698 // TODO: also, try_emplace should be one level above (we don't know 699 // keys) 694 // TODO: implement 700 695 } 701 696 … … 956 951 } 957 952 958 namespace std959 {960 template<>961 struct allocator_traits<aux::key_value_allocator>962 {963 template<class Alloc, class Key, class Value, class... Args>964 static void construct(Alloc& alloc, pair<Key, Value>* ptr, Args&&... args)965 {966 alloc.construct(&ptr->second, forward<Args>(args)...);967 }968 };969 }970 971 953 #endif
Note:
See TracChangeset
for help on using the changeset viewer.