From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/c/language%2Ftypeof.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 devdocs/c/language%2Ftypeof.html (limited to 'devdocs/c/language%2Ftypeof.html') diff --git a/devdocs/c/language%2Ftypeof.html b/devdocs/c/language%2Ftypeof.html new file mode 100644 index 00000000..b9f1c4e0 --- /dev/null +++ b/devdocs/c/language%2Ftypeof.html @@ -0,0 +1,21 @@ +

typeof operators (since C23) +

Determines the type of an object.

+

Syntax

+ + + + +
typeof( type ) (1)
typeof( expression ) (2)
typeof_unqual( type ) (3)
typeof_unqual( expression ) (4)

Explanation

+1) produces the type-name with any nested typeof-specifier evaluated
+2) yields the type-name representing the type of its operand. No implicit conversions are applied to expression.
+3,4) the same as (1) and (2) respectively but remove qualifiers

Notes

typeof and typeof_unqual are collectively called the typeof operators. The typeof operators cannot be applied to bit-field members. If the type of the operand is a variably modified type, the operand is evaluated; otherwise, the operand is not evaluated. The result of the typeof_unqual operator is the non-atomic unqualified type that would result from the typeof operator. The typeof operator preserves all qualifiers.

+

Example

References

See also

+
C++ documentation for decltype
+

+ © cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
+ https://en.cppreference.com/w/c/language/typeof +

+
-- cgit v1.2.3