parse

Parsing one character off a range returns the first element and calls popFront.

Parameters

Target

the type to convert to

s Source

the lvalue of an input range

Return Value

Type: Target

A character of type Target

Throws

A ConvException if the range is empty.

Examples

auto s = "Hello, World!";
char first = parse!char(s);
assert(first == 'H');
assert(s == "ello, World!");

Meta

Suggestion Box / Bug Report