find overloads

Synopses

Declared in <folly/container/sorted_vector_types.h>

Returns an iterator to the element matching key, or end() if absent.

iterator
find(key_type const& key);

Returns an iterator to the element matching key, or end() if absent.

const_iterator
find(key_type const& key) const;

Returns an iterator to the element matching key, or end() if absent.

template<typename K>
if_is_transparent<K, iterator>
find(K const& key);

Returns an iterator to the element matching key, or end() if absent.

template<typename K>
if_is_transparent<K, const_iterator>
find(K const& key) const;

Returns iterators to the elements matching key1 and key2 in one pass.

std::pair<iterator, iterator>
find(
    key_type const& key1,
    key_type const& key2);

Returns iterators to the elements matching key1 and key2 in one pass.

std::pair<const_iterator, const_iterator>
find(
    key_type const& key1,
    key_type const& key2) const;

Returns iterators to the elements matching key1 and key2 in one pass.

template<typename K>
std::pair<if_is_transparent<K, iterator>, if_is_transparent<K, iterator>>
find(
    K const& key1,
    K const& key2);

Returns iterators to the elements matching key1 and key2 in one pass.

template<typename K>
std::pair<if_is_transparent<K, const_iterator>, if_is_transparent<K, const_iterator>>
find(
    K const& key1,
    K const& key2) const;

Return Value

  • An iterator to the matching element, or end() if absent.

  • A pair of iterators to the matching elements, or end() for a missing one.

Parameters

Name

Description

key

The key to look for.

key1

The first key to find.

key2

The second key to find.

Created with MrDocs