Race Updates Discord About Merch
Home Profile History Competitions Texts Upgrade

typeracer

Pit Stop
template<typename ...Args> bool all(Args ...args) { return (... && args); } bool b = all(true, true, true, false); // Within the instantiation of all, the returned expression expands to ((true && true) && true) && false, which evaluates to false.
— C++26 Standard Draft N4964 - Lambdas in C++ Constant Expressions (software) by C++ Committee
Language: English
Submitted by: muchinchai
This text has been typed 19 times:
Avg. speed: 53 WPM
Avg. accuracy: 95.4%