Skip to content

Commit

Permalink
Highlight variable templates for known_identity
Browse files Browse the repository at this point in the history
known_identity_v and has_known_identity_v appear in a synopsis block,
but the text preceding it recommends to use known_identity and
has_known_identity instead. We should highlight that these helper variable
templates exist when they are first introduced.
  • Loading branch information
Pennycook committed Feb 12, 2025
1 parent f99eca5 commit 5e930f2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions adoc/chapters/programming_interface.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -13640,9 +13640,11 @@ identity value automatically in order to avoid performance penalties.

If an implementation can identify an identity value for a given combination of
accumulator type and function object type, the value is defined as a member of
the [code]#known_identity# trait class.
the [code]#known_identity# trait class and can be retrieved using the
[code]#known_identity_v# variable template.
Whether this member value exists can be tested using the
[code]#has_known_identity# trait class.
[code]#has_known_identity# trait class or the [code]#has_known_identity_v#
variable template.

[source,,linenums]
----
Expand Down

0 comments on commit 5e930f2

Please sign in to comment.