4 ms·
so return (bool)x; is equivalent to return 0!=x; and return !!x; https://godbolt.org/z/Gq5j8j66a https://godbolt.org/z/Gq5j8j66a Sorry, this is
by projektfu 3y ago
so
return (bool)x;
is equivalent to
return 0!=x;
and
return !!x;
https://godbolt.org/z/Gq5j8j66a https://godbolt.org/z/Gq5j8j66a
Sorry, this is the C link:
https://godbolt.org/z/crxecb9c3 https://godbolt.org/z/crxecb9c3