String to Size_t CPP


std::size_t stringToSize_t(std::string str)
{	
	std::stringstream sstream(str);
	size_t result;
	sstream >> result;
	return result;
}

// result is the converted size_t
L'homme habile