ArtemGr <artemciy@...> writes:
> Hey, it's just a thoroughly generic function. A JavaScript "function
> split(result, input, predicate)" isn't better, I wouldn't know what to pass
> it either. How it works is a question of documentation for a generic function.
>
> The PredicateT is an extra layer of abstraction allowing to use, say,
> regular expressions or locale-awayre predicates or whatever:
I can use a lambda:
std::list<string> buf;
boost::split (buf, "123;456", [](char ch) {return ch == ';';});
I can make a predicate wrapping a Ragel state machine.
Etc.
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general