mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 03:17:15 +02:00
Add initial find() impl for benchmarks
This commit is contained in:
@ -72,6 +72,16 @@ namespace boost {
|
|||||||
void erase(const_iterator pos) { return table_.erase(pos); }
|
void erase(const_iterator pos) { return table_.erase(pos); }
|
||||||
size_type erase(key_type const& key) { return table_.erase(key); }
|
size_type erase(key_type const& key) { return table_.erase(key); }
|
||||||
|
|
||||||
|
/// Lookup
|
||||||
|
///
|
||||||
|
|
||||||
|
iterator find(key_type const& key) { return table_.find(key); }
|
||||||
|
|
||||||
|
const_iterator find(key_type const& key) const
|
||||||
|
{
|
||||||
|
return table_.find(key);
|
||||||
|
}
|
||||||
|
|
||||||
std::pair<iterator, iterator> equal_range(key_type const& key)
|
std::pair<iterator, iterator> equal_range(key_type const& key)
|
||||||
{
|
{
|
||||||
auto pos = table_.find(key);
|
auto pos = table_.find(key);
|
||||||
|
Reference in New Issue
Block a user