Changeset 0893dd23 in mainline for uspace/lib/cpp/include/impl/unordered_map.hpp
- Timestamp:
- 2018-07-05T21:41:22Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 55d6223
- Parents:
- bd2baf8
- git-author:
- Dzejrou <dzejrou@…> (2018-04-30 21:19:52)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:22)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/impl/unordered_map.hpp
rbd2baf8 r0893dd23 264 264 } 265 265 266 template< 267 class T, 268 class = enable_if_t<is_constructible_v<value_type, T&&>, void> 269 > 270 pair<iterator, bool> insert(T&& val) 266 template<class T> 267 pair<iterator, bool> insert( 268 enable_if_t<is_constructible_v<value_type, T&&>, T&&> val) 271 269 { 272 270 return emplace(forward<T>(val)); … … 283 281 } 284 282 285 template< 286 class T,287 c lass = enable_if_t<is_constructible_v<value_type, T&&>, void>288 >289 iterator insert(const_iterator hint, T&& val)283 template<class T> 284 iterator insert( 285 const_iterator hint, 286 enable_if_t<is_constructible_v<value_type, T&&>, T&&> val 287 ) 290 288 { 291 289 return emplace_hint(hint, forward<T>(val)); … … 940 938 } 941 939 942 template< 943 class T, 944 class = enable_if_t<is_constructible_v<value_type, T&&>, void> 945 > 946 iterator insert(T&& val) 940 template<class T> 941 iterator insert( 942 enable_if_t<is_constructible_v<value_type, T&&>, T&&> val 943 ) 947 944 { 948 945 return emplace(forward<T>(val)); … … 959 956 } 960 957 961 template< 962 class T,963 c lass = enable_if_t<is_constructible_v<value_type, T&&>, void>964 >965 iterator insert(const_iterator hint, T&& val)958 template<class T> 959 iterator insert( 960 const_iterator hint, 961 enable_if_t<is_constructible_v<value_type, T&&>, T&&> val 962 ) 966 963 { 967 964 return emplace_hint(hint, forward<T>(val));
Note:
See TracChangeset
for help on using the changeset viewer.