Changeset 999cb48 in mainline for uspace/lib/cpp/include/impl/memory.hpp
- Timestamp:
- 2018-07-05T21:41:23Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- edd2e61
- Parents:
- aedae28
- git-author:
- Dzejrou <dzejrou@…> (2018-05-10 00:36:39)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:23)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/impl/memory.hpp
raedae28 r999cb48 31 31 32 32 #include <internal/aux.hpp> 33 #include <internal/functional/hash.hpp> 33 34 #include <internal/memory/allocator_arg.hpp> 34 35 #include <internal/memory/addressof.hpp> … … 1098 1099 return !(nullptr < ptr); 1099 1100 } 1101 1102 /** 1103 * 20.8.2.7, smart pointer hash support: 1104 */ 1105 1106 template<class T, class D> 1107 struct hash<unique_ptr<T, D>> 1108 { 1109 size_t operator()(const unique_ptr<T, D>& ptr) const noexcept 1110 { 1111 return hash<typename unique_ptr<T, D>::pointer>{}(ptr.get()); 1112 } 1113 1114 using argument_type = unique_ptr<T, D>; 1115 using result_type = size_t; 1116 }; 1100 1117 } 1101 1118
Note:
See TracChangeset
for help on using the changeset viewer.