Skip to content

Commit

Permalink
Fix contains() parameter type
Browse files Browse the repository at this point in the history
  • Loading branch information
adejewski committed Dec 15, 2024
1 parent d3c9c5d commit fca5100
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/etl/unordered_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,7 @@ namespace etl
//*************************************************************************
/// Check if the unordered_map contains the key.
//*************************************************************************
bool contains(const TKey& key) const
bool contains(const_key_reference key) const
{
return find(key) != end();
}
Expand Down
2 changes: 1 addition & 1 deletion include/etl/unordered_multimap.h
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,7 @@ namespace etl
//*************************************************************************
/// Check if the unordered_multimap contains the key.
//*************************************************************************
bool contains(const TKey& key) const
bool contains(const_key_reference key) const
{
return find(key) != end();
}
Expand Down
2 changes: 1 addition & 1 deletion include/etl/unordered_multiset.h
Original file line number Diff line number Diff line change
Expand Up @@ -1572,7 +1572,7 @@ namespace etl
//*************************************************************************
/// Check if the unordered_multiset contains the key.
//*************************************************************************
bool contains(const TKey& key) const
bool contains(key_parameter_t key) const
{
return find(key) != end();
}
Expand Down
2 changes: 1 addition & 1 deletion include/etl/unordered_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ namespace etl
//*************************************************************************
/// Check if the unordered_set contains the key.
//*************************************************************************
bool contains(const TKey& key) const
bool contains(key_parameter_t key) const
{
return find(key) != end();
}
Expand Down

0 comments on commit fca5100

Please sign in to comment.