Class RegexCache

Class Documentation

class RegexCache

Holds a cached regex. Recompiles only if the expression changed. Thread-safe: multiple threads may call get_regex() concurrently.

Public Functions

RegexCache() = default
~RegexCache() = default
inline RegexCache(const RegexCache &other)
inline RegexCache(RegexCache &&other) noexcept
inline RegexCache &operator=(const RegexCache &other)
inline RegexCache &operator=(RegexCache &&other) noexcept
inline std::regex get_regex(const std::string &regExpression)