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
constexpr
symbol 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
constexpr
symbol that can be evaluated at compile time. This may not benullptr
.
- Returns
0
if the two strings match exactly. Returns a negative value if the stringa
should be ordered beforeb
alphanumerically. Returns a positive value if the stringa
should be ordered afterb
alphanumerically.