VTK
9.4.20250222
|
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: | |
|
constexpr |
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 |
Construct a token from a string literal, like so:
Definition at line 205 of file vtkStringToken.h.