I want to find the first space on a line using boost::string_algo's find first:
const boost::iterator_range<std::string::iterator> token_range = boost::find_first(line, " ");
I can't seem to find anything in the docs that says what this returns if it doesn't find a space, though. Do I need to test token_range.end() against line.end() or something?
Thanks!