Changeset db628a0 in mainline


Ignore:
Timestamp:
2018-07-05T21:41:21Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
402f18d6
Parents:
6d80237
git-author:
Dzejrou <dzejrou@…> (2018-04-25 18:37:48)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:21)
Message:

cpp: fixed constness error and added max_bucket_count implementation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/internal/hash_table.hpp

    r6d80237 rdb628a0  
    3333#include <internal/list.hpp>
    3434#include <iterator>
     35#include <limits>
    3536#include <memory>
    3637#include <tuple>
     
    983984            size_type max_bucket_count() const noexcept
    984985            {
    985                 // TODO: implement
    986                 return 0;
     986                return numeric_limits<size_type>::max() /
     987                       sizeof(hash_table_bucket<value_type, size_type>);
    987988            }
    988989
     
    11081109            }
    11091110
    1110             bool is_eq_to(hash_table& other)
     1111            bool is_eq_to(const hash_table& other)
    11111112            {
    11121113                // TODO: implement
Note: See TracChangeset for help on using the changeset viewer.