How is the three-way comparison operator different from subtraction? – stackoverflow.com

There's a new comparison operator <=> in C++20. However I think in most cases a simple substraction works well: int my_strcmp(const char *a, const char *b) { while (*a == *b && *a ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "How is the three-way comparison operator different from subtraction? – stackoverflow.com"