Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
boost tokenizer
// char_sep_example_1.cpp #include <iostream> #include <boost/tokenizer.hpp> #include <string> int main() { std::string str = ";;Hello|world||-foo--bar;yow;baz|"; typedef boost::tokenizer<boost::char_separator<char> > tokenizer; boost::char_separator<char> sep("-;|"); tokenizer tokens(str, sep); for (tokenizer::iterator tok_iter = tokens.begin(); tok_iter != tokens.end(); ++tok_iter) std::cout << "<" << *tok_iter << "> "; std::cout << "\n"; return EXIT_SUCCESS; }
run
|
edit
|
history
|
help
0
10 naturalnumbers
Assertion Divide by Zero Example
numeric_limits
selection sort
PrintAddress
Recursive Function Calling Example with Stack Addresses
Struct memory ordering
Forgetting to check end
C++ Template
10226