Template Function NetworKit::METISParserDetails::parseNumber

Function Documentation

template<class T>
const char *NetworKit::METISParserDetails::parseNumber(const char *first, const char *last, T &value)

Parses the whitespace-separated number at the beginning of [first, last) into value. Integral numbers must be representable by T exactly: unlike a detour through double, which rounds integers above 2^53, they are parsed directly into T.

Throws:

std::runtime_error – if the range has no number, or the number is not a valid T.

Returns:

The position after the number.