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 |
A read‐only view over the value‐to‐index mapping. |
Member Functions
Name |
Description |
Returns a read‐only view over the value‐to‐index mapping. |
|
Removes all values and indices. |
|
Returns whether an index is currently assigned to a value. |
|
Returns whether a value is present in the vector. |
|
Removes a value, freeing its index for reuse. |
|
Returns the index assigned to a value. |
|
Inserts a value, assigning it a stable index if it is new. |
|
Returns the number of elements in the vector. |
|
Returns the value assigned to an index. |
Created with MrDocs