all_convert cpp

Write a templated function, named “all_convert”, that takes a const reference to a string and a pointer to an int. This function should convert the string to the templated type and return that. It should also adjust the int being pointed to to indicate the number of characters of the string that were converted (be sure to count leading whitespace too).You can assume that the string does not have any newline characters, and your function should ignore leading whitespace (like stoi does).

New Download