diff mbox series

[03/11] gcc/doc/extend.texi: Add documentation for __is_bounded_array

Message ID 20240302002229.308001-3-kmatsui@gcc.gnu.org
State New
Headers show
Series [01/11] gcc/doc/extend.texi: Sort built-in traits alphabetically | expand

Commit Message

Ken Matsui March 2, 2024, 12:22 a.m. UTC
gcc/ChangeLog:

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

Signed-off-by: Ken Matsui <kmatsui@gcc.gnu.org>
---
 gcc/doc/extend.texi | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 5aeb9bdd47a..4c8c0631ca7 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -29596,6 +29596,11 @@  type (disregarding cv-qualifiers), @var{derived_type} shall be a complete
 type.  A diagnostic is produced if this requirement is not met.
 @enddefbuiltin
 
+@defbuiltin{bool __is_bounded_array (@var{type})}
+If @var{type} is an array type of known bound ([dcl.array])
+the trait is @code{true}, else it is @code{false}.
+@enddefbuiltin
+
 @defbuiltin{bool __is_class (@var{type})}
 If @var{type} is a cv-qualified class type, and not a union type
 ([basic.compound]) the trait is @code{true}, else it is @code{false}.