folly::RegexMatchCacheKeyAndView

RegexMatchCacheKeyAndView

Synopsis

Declared in <folly/container/RegexMatchCache.h>

class RegexMatchCacheKeyAndView;

Description

A composite key and view derived from a string. Used with RegexMatchCache.

Intended for use only with RegexMatchCache.

Incomplete as a generic facility.

Type Aliases

NameDescription
regex_key The regex key type stored in the composite.

Member Functions

NameDescription
RegexMatchCacheKeyAndView [constructor]Builds the composite from a regex string.
operator RegexMatchCacheKey const& Converts to the underlying regex key.
operator std::string_view const& Converts to the underlying regex string view.

Data Members

NameDescription
key The key derived from the regex string.
view The view of the regex string.