From cbc8f976c7c5dd2474d63ff052ac898d10748231 Mon Sep 17 00:00:00 2001
From: John Maddock
Fundamental type operations Fundamental type properties + Miscellaneouscv-Qualifiers
Fundamental Types
Compound Types @@ -37,7 +38,7 @@ divided up into the following sections:
Usage: "class_name<T>::type" performs indicated transformation on type T.
-
Expression. |
@@ -108,39 +109,72 @@ indicated transformation on type T.
indicated property is true, false otherwise. (Note that class_name<T>::value
is always defined as a compile time constant).
+
Expression + |
+ Description + |
+ Compiler + |
+
+ |
+ True if T and U are the + same type. + |
+ P + |
+
is_convertible<T,U>::value+ |
+ True if type T is + convertible to type U. + |
+ + |
alignment_of<T>::value+ |
+ An integral value + representing the minimum alignment requirements of type T. + |
+ + |
+
The following classes determine what cv-qualifiers are present on a type (see 3.93).
-Expression. + | Expression. |
- Description. + | Description. |
- Compiler. + | Compiler. |
is_const<T>::value |
- True if type T is top-level + | is_const<T>::value |
+ True if type T is top-level const qualified. | -P + | P |
is_volatile<T>::value |
- True if type T is top-level + | is_volatile<T>::value |
+ True if type T is top-level volatile qualified. | -P - |
- |
is_same<T,U>::value |
- True if T and U are the same - type. | -P + | P |
The following will only ever be true for cv-unqualified types; these are closely based on the section 3.9 of the C++ Standard.
-Expression. |
@@ -291,7 +325,7 @@ these are closely based on the section 3.9 of the C++ Standard.
Expression |
@@ -365,7 +399,7 @@ as defined by the Standard.
is true then
Expression |
@@ -582,7 +616,7 @@ Hinnant and John Maddock.