equal_range

提供:cppreference.com
移動: 案内, 検索

Syntax:

    #include <map>
    pair<iterator, iterator> equal_range( const key_type& key );
    pair<const_iterator, const_iterator> equal_range( const key_type& key ) const;

equal_range()関数は、2つのイテレータを返します。一方は、キーを含む最初の要素を指し、もう一方はキーを含む最後の要素を指します。

個人用ツール
名前空間
変種
操作
案内
ツールボックス
他の言語