Changeset a2f01c4 in mainline for uspace/lib/cpp/include/internal/hash_table_policies.hpp
- Timestamp:
- 2018-07-05T21:41:22Z (6 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.