Skip to content

Commit

Permalink
gcc/doc/extend.texi: Add documentation for __is_reference
Browse files Browse the repository at this point in the history
gcc/ChangeLog:

	* doc/extend.texi (__is_reference): New documentation.

Signed-off-by: Ken Matsui <kmatsui@gcc.gnu.org>
  • Loading branch information
ken-matsui authored and ouuleilei-bot committed Mar 2, 2024
1 parent f1858b8 commit 8ca3d4f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gcc/doc/extend.texi
Original file line number Diff line number Diff line change
Expand Up @@ -25448,6 +25448,11 @@ is @code{true}, else it is @code{false}.
Requires: If @var{type} is a non-union class type, it shall be a complete type.
@enddefbuiltin

@defbuiltin{bool __is_reference (@var{type})}
If @var{type} is a reference type ([dcl.ref]) the trait is @code{true},
else it is @code{false}.
@enddefbuiltin

@defbuiltin{bool __is_standard_layout (@var{type})}
If @var{type} is a standard-layout type ([basic.types]) the trait is
@code{true}, else it is @code{false}.
Expand Down

0 comments on commit 8ca3d4f

Please sign in to comment.