Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 8d 09h 54m 22s8 days 9 hours 54 minutes 22 seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 8d 09h 54m 22s8 days 9 hours 54 minutes 22 seconds.

Sign in to watch this lesson
Templates and Generic Programming · 3:39
How one template accepts any number of arguments of any types. We see why printf can't be trusted, build a type-safe print that peels its parameter pack one argument at a time (and why it needs if constexpr), draw fold expressions as trees to see why the side of the dots matters, fold the stream and comma operators, and see how make_unique forwards a whole pack.