#603 count() is missing in HashMap

Feature_Request
accepted
nobody
None
1
2014-08-15
2012-12-01
Yu Kobayashi
No

count() is missing in HashMap. Its implementation is this.

std::size_t count(const KeyType& key) const
{
    ValueType value(key);
    return _table.find(value) != _table.end() ? 1 : 0;
}

Discussion

  • Alex Fabijanic
    Alex Fabijanic
    2012-12-03

    • status: open --> accepted