mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
AK: Fix description of DistinctNumeric around operator bool
This commit is contained in:
parent
4acdb60ba3
commit
a6314f2ce6
Notes:
sideshowbarker
2024-07-19 03:18:04 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/a6314f2ce6c Pull-request: https://github.com/SerenityOS/serenity/pull/3262
@ -41,7 +41,7 @@ namespace AK {
|
||||
* - No matter the values of these, `DistinctNumeric` always implements `==` and `!=`.
|
||||
* - 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 `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 `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.
|
||||
|
Loading…
Reference in New Issue
Block a user