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 be nullptr.

  • 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 be nullptr.

Returns

0 if the two strings match exactly. Returns a negative value if the string a should be ordered before b alphanumerically. Returns a positive value if the string a should be ordered after b alphanumerically.