|
REAL
Regular Expression Algorithmic Library — constexpr C++20 regex
|
The compile-time policy's name owner: there is nothing to own. More...
#include <storage.hpp>
Static Public Member Functions | |
| static constexpr const owned_name_context * | get () noexcept |
Always nullptr: this policy owns nothing, so a result always reads its borrowed views. Constant, so the owning branch folds away entirely on this path. | |
The compile-time policy's name owner: there is nothing to own.
static_storage keeps its pattern and its named-group table in static constexpr objects, which outlive every result by construction, so a result from a temporary static_regex borrows safely and owns nothing. The type must also stay literal: a result is constructed during constant evaluation on this path, and std::shared_ptr cannot be.
|
inlinestaticconstexprnoexcept |
Always nullptr: this policy owns nothing, so a result always reads its borrowed views. Constant, so the owning branch folds away entirely on this path.
nullptr.