VTK
9.4.20241108
|
Functions | |
constexpr VTKCOMMONCORE_EXPORT vtkStringToken::Hash | operator""_hash (const char *data, std::size_t size) |
Construct the hash of a string literal, like so: | |
constexpr VTKCOMMONCORE_EXPORT vtkStringToken | operator""_token (const char *data, std::size_t size) |
Construct a token from a string literal, like so: | |
|
inlineconstexpr |
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 206 of file vtkStringToken.h.
|
inlineconstexpr |
Construct a token from a string literal, like so:
Definition at line 226 of file vtkStringToken.h.