omni::compiletime::strcmp
Defined in omni/compiletime/CompileTime.h
-
constexpr int omni::compiletime::strcmp(const char *a, const char *b)
Compile time std::strcmp().
Return 0 if equal, not 0 otherwise.
- Parameters
a – [in] The first string to compare. This must either be a string literal or another
constexprsymbol that can be evaluated at compile time. This may not benullptr.b – [in] The second string to compare. This must either be a string literal or another
constexprsymbol that can be evaluated at compile time. This may not benullptr.
- Returns
0if the two strings match exactly. Returns a negative value if the stringashould be ordered beforebalphanumerically. Returns a positive value if the stringashould be ordered afterbalphanumerically.