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

Sign in to watch this lesson
Templates and Generic Programming · 4:09
C++20 concepts let a template say in plain words what it needs from its types. We compare a 188-line std::sort error with a one-line ranges::sort error, write a Number concept with a requires expression, see the compiler stop a bad call at the doorway, and watch the most constrained overload of advance() pick a one-hop jump for vectors and ten steps for lists.