Function getIntVectorFromString(std::string)

Function Documentation

std::vector<int> getIntVectorFromString(std::string str)

Parses a string representing a list of integers and returns them as a vector.

Parameters:

str – A string in any format in (a,b), [a,b], a,b with or without spaces, with or without commas. representing a list of integers.

Returns:

A vector of integers parsed from the string.