mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 11:27:15 +02:00
Add BOOST_FORCEINLINE to unordered_flat_set::contains, unordered_flat_map::contains. Refs #168.
This commit is contained in:
@ -480,13 +480,13 @@ namespace boost {
|
|||||||
return table_.find(key);
|
return table_.find(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool contains(key_type const& key) const
|
BOOST_FORCEINLINE bool contains(key_type const& key) const
|
||||||
{
|
{
|
||||||
return this->find(key) != this->end();
|
return this->find(key) != this->end();
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class K>
|
template <class K>
|
||||||
typename std::enable_if<
|
BOOST_FORCEINLINE typename std::enable_if<
|
||||||
boost::unordered::detail::are_transparent<K, hasher, key_equal>::value,
|
boost::unordered::detail::are_transparent<K, hasher, key_equal>::value,
|
||||||
bool>::type
|
bool>::type
|
||||||
contains(K const& key) const
|
contains(K const& key) const
|
||||||
|
@ -356,13 +356,13 @@ namespace boost {
|
|||||||
return table_.find(key);
|
return table_.find(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool contains(key_type const& key) const
|
BOOST_FORCEINLINE bool contains(key_type const& key) const
|
||||||
{
|
{
|
||||||
return this->find(key) != this->end();
|
return this->find(key) != this->end();
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class K>
|
template <class K>
|
||||||
typename std::enable_if<
|
BOOST_FORCEINLINE typename std::enable_if<
|
||||||
boost::unordered::detail::are_transparent<K, hasher, key_equal>::value,
|
boost::unordered::detail::are_transparent<K, hasher, key_equal>::value,
|
||||||
bool>::type
|
bool>::type
|
||||||
contains(K const& key) const
|
contains(K const& key) const
|
||||||
|
Reference in New Issue
Block a user