mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-03 00:26:19 +08:00
Added rfl::Ref to the docs README
This commit is contained in:
+6
-4
@@ -6,13 +6,15 @@
|
||||
|
||||
1.1) [Structs](https://github.com/getml/reflect-cpp/blob/main/docs/structs.md) - Recaps the motivating example in the README. A struct is the equivalent of an AND statement or a product type in type theory.
|
||||
|
||||
1.2) [Optional fields](https://github.com/getml/reflect-cpp/blob/main/docs/optional_fields.md) - For when you have fields in your serialized format that might be absent in some cases.
|
||||
1.2) [Optional fields](https://github.com/getml/reflect-cpp/blob/main/docs/optional_fields.md) - For defining fields in your serialized format that might be absent in some cases.
|
||||
|
||||
1.3) [Struct flattening](https://github.com/getml/reflect-cpp/blob/main/docs/flatten_structs.md) - For when you want struct A to "inherit" the fields of struct B.
|
||||
1.3) [Struct flattening](https://github.com/getml/reflect-cpp/blob/main/docs/flatten_structs.md) - For making struct A to "inherit" the fields of struct B.
|
||||
|
||||
1.4) [String literals](https://github.com/getml/reflect-cpp/blob/main/docs/literals.md) - For when you have strings that can only assume a limited number of enumerated values.
|
||||
1.4) [String literals](https://github.com/getml/reflect-cpp/blob/main/docs/literals.md) - For representing strings that can only assume a limited number of enumerated values.
|
||||
|
||||
1.5) [std::variant and rfl::TaggedUnion](https://github.com/getml/reflect-cpp/blob/main/docs/variants_and_tagged_unions.md) - For when your structs can be one of several formats. This is the equivalent of an OR statement or a sum type in type theory.
|
||||
1.5) [std::variant and rfl::TaggedUnion](https://github.com/getml/reflect-cpp/blob/main/docs/variants_and_tagged_unions.md) - For structs that can be one of several formats. This is the equivalent of an OR statement or a sum type in type theory.
|
||||
|
||||
1.6) [rfl::Ref](https://github.com/getml/reflect-cpp/blob/main/docs/rfl_ref.md) - For defining recursive structures.
|
||||
|
||||
## 2) Custom classes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user