Inserts a value, assigning it a stable index if it is new.

Synopsis

Declared in <folly/container/RegexMatchCache.h>

std::pair<size_t, bool>
insert_value(Value const& value);

Return Value

The value's index and whether it was newly inserted.

Parameters

Name

Description

value

The value to insert.

Created with MrDocs