std::multiset<Key,Compare,Allocator>::find

来自cppreference.com
< cpp‎ | container‎ | multiset
 
 
 
 
iterator find( const Key& key );
(1)
const_iterator find( const Key& key ) const;
(2)
template< class K >
iterator find( const K& x );
(3) (C++14 起)
template< class K >
const_iterator find( const K& x ) const;
(4) (C++14 起)
1,2) 寻找键等价key 的的元素。若容器中有数个拥有所请求的键的元素,则可能返回任意一个。
3,4) 寻找键比较等价于值 x 的元素。此重载只有在限定标识 Compare::is_transparent 合法并指代类型时才会参与重载决议。它允许调用此函数时无需构造 Key 的实例。

目录