AK: Fix description of DistinctNumeric around operator bool

This commit is contained in:
Ben Wiederhake 2020-08-22 16:13:22 +02:00 committed by Andreas Kling
parent 4acdb60ba3
commit a6314f2ce6
Notes: sideshowbarker 2024-07-19 03:18:04 +09:00

View file

@ -41,7 +41,7 @@ namespace AK {
* - No matter the values of these, `DistinctNumeric` always implements `==` and `!=`. * - No matter the values of these, `DistinctNumeric` always implements `==` and `!=`.
* - If `Incr` is true, then `++a`, `a++`, `--a`, and `a--` are implemented. * - If `Incr` is true, then `++a`, `a++`, `--a`, and `a--` are implemented.
* - If `Cmp` is true, then `a>b`, `a<b`, `a>=b`, and `a<=b` are implemented. * - If `Cmp` is true, then `a>b`, `a<b`, `a>=b`, and `a<=b` are implemented.
* - If `Bool` is true, then `!a`, `a&&b`, and `a||b` are implemented (through `operator bool()`. * - If `Bool` is true, then `!a`, `a&&b`, and `a||b` are implemented (but not `operator bool()`, because of overzealous integer promotion rules).
* - If `Flags` is true, then `~a`, `a&b`, `a|b`, `a^b`, `a&=b`, `a|=b`, and `a^=b` are implemented. * - If `Flags` is true, then `~a`, `a&b`, `a|b`, `a^b`, `a&=b`, `a|=b`, and `a^=b` are implemented.
* - If `Shift` is true, then `a<<b`, `a>>b`, `a<<=b`, `a>>=b` are implemented. * - If `Shift` is true, then `a<<b`, `a>>b`, `a<<=b`, `a>>=b` are implemented.
* - If `Arith` is true, then `a+b`, `a-b`, `+a`, `-a`, `a*b`, `a/b`, `a%b`, and the respective `a_=b` versions are implemented. * - If `Arith` is true, then `a+b`, `a-b`, `+a`, `-a`, `a*b`, `a/b`, `a%b`, and the respective `a_=b` versions are implemented.