C++ Coding Reference: iota() – Setting Incrementing Values to Arrays or Vectors

The C++ method iota (not to be confused with itoa which is to convert integers to string), is defined in header numeric. Its purpose is to compute increasing values …