Daily bit(e) of C++ | Safe integral comparisons
Daily bit(e) of C++ #380, C++20 integral comparison functions that avoid integral promotions.
C++20 introduced a set of safe integral comparison functions that can compare different integral types without introducing accidental conversions.
Nice one.