Changeset a2f01c4 in mainline
- 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:
- 784c8b6
- Parents:
- 7644d6e
- git-author:
- Dzejrou <dzejrou@…> (2018-04-30 20:15:36)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:22)
- Location:
- uspace/lib/cpp/include/internal
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/internal/hash_table.hpp
r7644d6e ra2f01c4 190 190 191 191 template<class... Args> 192 pair<iterator, bool>emplace(Args&&... args)192 auto emplace(Args&&... args) 193 193 { 194 194 return Policy::emplace(*this, forward<Args>(args)...); 195 195 } 196 196 197 pair<iterator, bool>insert(const value_type& val)197 auto insert(const value_type& val) 198 198 { 199 199 return Policy::insert(*this, val); 200 200 } 201 201 202 pair<iterator, bool>insert(value_type&& val)202 auto insert(value_type&& val) 203 203 { 204 204 return Policy::insert(*this, forward<value_type>(val)); -
uspace/lib/cpp/include/internal/hash_table_policies.hpp
r7644d6e ra2f01c4 366 366 367 367 template<class Table, class... Args> 368 static pair< 369 typename Table::iterator, bool 370 > emplace(Table& table, Args&&... args) 368 static typename Table::iterator emplace(Table& table, Args&&... args) 371 369 { 372 370 using node_type = typename Table::node_type; … … 378 376 379 377 template<class Table, class Value> 380 static pair< 381 typename Table::iterator, bool 382 > insert(Table& table, const Value& val) 378 static typename Table::iterator insert(Table& table, const Value& val) 383 379 { 384 380 using node_type = typename Table::node_type; … … 390 386 391 387 template<class Table, class Value> 392 static pair< 393 typename Table::iterator, bool 394 > insert(Table& table, Value&& val) 388 static typename Table::iterator insert(Table& table, Value&& val) 395 389 { 396 390 using value_type = typename Table::value_type; … … 403 397 404 398 template<class Table> 405 static pair< 406 typename Table::iterator, bool 407 > insert(Table& table, typename Table::node_type* node) 399 static typename Table::iterator insert(Table& table, typename Table::node_type* node) 408 400 { 409 401 using iterator = typename Table::iterator; … … 422 414 bucket->prepend(node); 423 415 424 return make_pair(iterator{416 return iterator{ 425 417 table.table(), idx, 426 418 table.bucket_count(), 427 419 node 428 } , true);420 }; 429 421 } 430 422 };
Note:
See TracChangeset
for help on using the changeset viewer.