This commit is contained in:
liuzicheng1987
2023-10-04 20:07:32 +02:00
committed by GitHub
parent 747f3421a2
commit b546b1f189
+2 -2
View File
@@ -32,8 +32,8 @@ switch(my_literal.value()) {
}
```
Literals are stored as `uint8_t` or `uint16_t` under-the-hood. But you can extract their name using `.name()` as a string
or the underlying value using `.value`.
Literals are stored as `uint8_t` or `uint16_t` under-the-hood. But you can extract their name as a string using `.name()`
or the underlying value using `.value()`.
```cpp
using MyLiteral = rfl::Literal<"option1", "option2", ...>;