Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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
 
PREVIOUS NEXT
Tagged: #string #cpp
ADD COMMENT
Topic
Name
9+4 =