RegexMatchCacheIndexedVector

Synopsis

Declared in <folly/container/RegexMatchCache.h>

template<typename Value>
class RegexMatchCacheIndexedVector;

Description

An indexed vector, which is a vector for which the index of any element can be found efficiently.

Intended for use only within RegexMatchCache.

Incomplete as a generic container.

Types

Name

Description

forward_view

A read‐only view over the value‐to‐index mapping.

Member Functions

Name

Description

as_forward_view

Returns a read‐only view over the value‐to‐index mapping.

clear

Removes all values and indices.

contains_index

Returns whether an index is currently assigned to a value.

contains_value

Returns whether a value is present in the vector.

erase_value

Removes a value, freeing its index for reuse.

index_of_value

Returns the index assigned to a value.

insert_value

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

size

Returns the number of elements in the vector.

value_at_index

Returns the value assigned to an index.

Created with MrDocs