Container initialisieren mit std::iota – Modernes C++
Motivation Revisiting my C++ skills after nearly 14 years of abstinence I came across I nice little function called iota. It is part of the <numeric> header and is used to fill a container with a sequence of numbers. The function is overloaded for different types of containers and different types of numbers. The following…