Template Function nix::util::strToNum

Function Documentation

template<typename T>
T nix::util::strToNum(const std::string &str)

Convert string to number.

Convert a string representing a number into a number.

Parameters

str – The string to convert.

Returns

The number that was represented by the string.