Added a comment #11949

This commit is contained in:
Alexey Milovidov 2020-06-25 22:46:31 +03:00
parent 01344d7b87
commit 875369676f

View File

@ -54,6 +54,10 @@ namespace Regexps
return {likePatternToRegexp(pattern), flags}; 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 <bool like, bool no_capture> template <bool like, bool no_capture>
inline Pool::Pointer get(const std::string & pattern) inline Pool::Pointer get(const std::string & pattern)
{ {