Skip to content

Commit

Permalink
Changin parent_of to use target scope
Browse files Browse the repository at this point in the history
  • Loading branch information
brevzin committed Oct 29, 2024
1 parent d354062 commit 9e76215
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions 2996_reflection/p2996r8.html
Original file line number Diff line number Diff line change
Expand Up @@ -8375,9 +8375,9 @@ <h3 class="unnumbered" id="meta.reflection.queries-reflection-queries">[meta.ref
<code class="sourceCode cpp"><em>typedef-name</em></code>, or base class
specifier.</p>
<p><span class="marginalizedparent"><a class="marginalized" href="#pnum_253" id="pnum_253">42</a></span>
<em>Returns</em>: A reflection of the class, function, or namespace
enclosing the first declaration of what is represented by
<code class="sourceCode cpp">r</code>.</p>
<em>Returns</em>: A reflection of the class, function, or namespace that
is the target scope ([basic.scope.scope]) of the first declaration of
what is represented by <code class="sourceCode cpp">r</code>.</p>
<div class="sourceCode" id="cb186"><pre class="sourceCode cpp"><code class="sourceCode cpp"><span id="cb186-1"><a href="#cb186-1" aria-hidden="true" tabindex="-1"></a><span class="kw">consteval</span> info dealias<span class="op">(</span>info r<span class="op">)</span>;</span></code></pre></div>
<p><span class="marginalizedparent"><a class="marginalized" href="#pnum_254" id="pnum_254">43</a></span>
<em>Returns</em>: If <code class="sourceCode cpp">r</code> represents a
Expand Down
2 changes: 1 addition & 1 deletion 2996_reflection/reflection.md
Original file line number Diff line number Diff line change
Expand Up @@ -5163,7 +5163,7 @@ consteval info parent_of(info r);

[#]{.pnum} *Constant When*: `r` represents a variable, structured binding, function, enumerator, class, class member, bit-field, template, namespace or namespace alias (other than `::`), `$typedef-name$`, or base class specifier.

[#]{.pnum} *Returns*: A reflection of the class, function, or namespace enclosing the first declaration of what is represented by `r`.
[#]{.pnum} *Returns*: A reflection of the class, function, or namespace that is the target scope ([basic.scope.scope]) of the first declaration of what is represented by `r`.

```cpp
consteval info dealias(info r);
Expand Down

0 comments on commit 9e76215

Please sign in to comment.