diff --git a/src/Functions/Regexps.h b/src/Functions/Regexps.h index 433e416a18f..80ee9497b89 100644 --- a/src/Functions/Regexps.h +++ b/src/Functions/Regexps.h @@ -54,6 +54,10 @@ namespace Regexps return {likePatternToRegexp(pattern), flags}; } + /** Returns holder of an object from Pool. + * You must hold the ownership while using the object. + * In destructor, it returns the object back to the Pool for further reuse. + */ template inline Pool::Pointer get(const std::string & pattern) {