Skip to content

Commit 5d8cd25

Browse files
authored
Update type.md
1 parent 452ecd2 commit 5d8cd25

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

doc/ref/type.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### `tao::json::type`
1+
## `tao::json::type`
22

33
Defined in `<tao/json/type.hh>`
44

@@ -19,8 +19,20 @@ enum class type : std::uint8_t
1919
};
2020
```
2121

22-
Specifies which contents is currently stored in a [`basic_value`](basic_value.md).
22+
For tracking the kind of data currently stored in a [`basic_value`](basic_value.md).
2323

24-
#### Constants
24+
### Constants
2525

26-
TODO
26+
| Name | Description |
27+
| --- | --- |
28+
| `UNINITIALIZED` | For [`basic_value`](basic_value.md)s that have not been assigned a value, or that have been `reset`. |
29+
| `DISCARDED` | For [`basic_value`](basic_value.md)s that have been discarded, either explicitly or after being *moved*. |
30+
| `NULL_` | For JSON null values. |
31+
| `BOOLEAN` | For JSON boolean values. |
32+
| `SIGNED` | For JSON numbers stored as `std::int64_t`. |
33+
| `UNSIGNED` | For JSON numbers stored as `std::uint64_t`. |
34+
| `DOUBLE` | For JSON numbers stored as `double`' |
35+
| `STRING` | For JSON strings. |
36+
| `ARRAY` | For JSON arrays. |
37+
| `OBJECT` | For JSON objects. |
38+
| `RAW_PTR` | For [`basic_value`](basic_value.md)s that wrap a plain pointer to a different [`basic_value`](basic_value.md). |

0 commit comments

Comments
 (0)