REAL
Regular Expression Algorithmic Library — constexpr C++20 regex
Loading...
Searching...
No Matches
real::detail::borrowed_names Struct Reference

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_contextget () 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.
 

Detailed Description

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.

Member Function Documentation

◆ get()

static constexpr const owned_name_context * real::detail::borrowed_names::get ( )
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.

Returns
nullptr.

The documentation for this struct was generated from the following file: