Implementing Default Parameters That Depend on Other Parameters in C++
▻https://www.fluentcpp.com/2018/08/17/dependent-default-parameters
C++ supports default parameters, but with some constraints. We’ve seen that default arguments had to be positioned at the end of a function’s parameters, and also that default parameters are interdependent: indeed, to provide a non-default value to one of them, you have to also pass a value to those that come before it. We’ve […]