-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d9387e2
commit 9c9ecea
Showing
61 changed files
with
1,297 additions
and
563 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# `rfl::Tuple` | ||
|
||
The problem with `std::tuple` is that it is recursively implemented. That is fine when you | ||
have a small number of elements in your tuple, but as you increase the size of the tuple, | ||
you will pay a price in terms of compile time. | ||
|
||
That is why reflect-cpp contains `rfl::Tuple`, which in many ways behaves | ||
just like `std::tuple`, but it compiles considerably faster. | ||
|
||
The only downside of `rfl::Tuple` is that it cannot be used inside `constexpr` or `consteval` | ||
functions. | ||
|
||
You can use the functions `rfl::get`, `rfl::make_tuple`, `rfl::tuple_element_t`, | ||
`rfl::tuple_size_v`, `rfl::tuple_cat` or `rfl::apply` to create or access the | ||
tuple and they work the same way as their equivalents in the standard library. | ||
In fact, `std::get` will also work on `rfl::Tuple`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.