Inserts an element into the set.

Synopsis

Declared in <absl/container/linked_hash_set.h>

template<
    typename K = key_type,
    K* = nullptr>
std::pair<iterator, bool>
insert(key_arg<K>&& k);

Return Value

A pair of an iterator to the element and a bool that is true if insertion took place.

Parameters

Name

Description

k

The element to insert.

Created with MrDocs