|
VTK
9.7.1
|
Functions | |
| constexpr VTKCOMMONCORE_EXPORT vtkStringToken::Hash | operator""_hash (const char *data, std::size_t size) |
| Construct the hash of a string literal, like so: More... | |
| constexpr VTKCOMMONCORE_EXPORT vtkStringToken | operator""_token (const char *data, std::size_t size) |
| Construct a token from a string literal, like so: More... | |
| constexpr VTKCOMMONCORE_EXPORT vtkStringToken::Hash vtk::literals::operator""_hash | ( | const char * | data, |
| std::size_t | size | ||
| ) |
Construct the hash of a string literal, like so:
```
As the example above shows, it is possible to use hashed strings in switch statements since the hashing occurs at build time. This is more efficient than a sequence of if-conditionals performing string comparisons.
Definition at line 190 of file vtkStringToken.h.
| constexpr VTKCOMMONCORE_EXPORT vtkStringToken vtk::literals::operator""_token | ( | const char * | data, |
| std::size_t | size | ||
| ) |
Construct a token from a string literal, like so:
Definition at line 205 of file vtkStringToken.h.
1.8.10