From 875369676fd39d7bf8758a63ea0dc79102550fcf Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Thu, 25 Jun 2020 22:46:31 +0300 Subject: [PATCH] Added a comment #11949 --- src/Functions/Regexps.h | 4 ++++ 1 file changed, 4 insertions(+) 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) {