Skip to content

Commit 7e00d6e

Browse files
committed
manual and ownership
1 parent 9969302 commit 7e00d6e

File tree

9 files changed

+104434
-104812
lines changed

9 files changed

+104434
-104812
lines changed

manual.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ This approach makes Cake useful in real and existing programs.
66

77
When applicable, Cake uses the same command line options of MSVC and GCC.
88

9-
For static analysis see: [ownership](ownership.html)
10-
119
### Include directories
1210

1311
Include directories are specified in `cakeconfig.h` file.
@@ -2308,6 +2306,9 @@ We have some compile time functions to infer properties of types.
23082306

23092307
```c
23102308

2309+
_is_char()
2310+
The three types char, signed char, and unsigned char are collectively called the character types.
2311+
23112312
_is_pointer
23122313
Pointer to object or function
23132314

@@ -2317,10 +2318,24 @@ Array type
23172318
_is_function
23182319
A function type describes a function with specified return type.
23192320

2321+
_is_floating_point
2322+
float, double, and long double return true
2323+
2324+
_is_integral
2325+
The standard signed integer types and standard unsigned integer types are collectively called the
2326+
standard integer types;
2327+
2328+
_is_arithmetic
2329+
Integer and floating types are collectively called arithmetic types.
2330+
2331+
_is_scalar
2332+
Arithmetic types, pointer types, and the nullptr_t type are collectively called scalar types
2333+
23202334
```
23212335

2336+
Note: Type traits that can be easily created with \_Generic will be removed.
23222337
_
2323-
### Object lifetime checks
2338+
### Extension - Object lifetime checks
23242339

23252340
See [ownership](ownership.html)
23262341

0 commit comments

Comments
 (0)