Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
Specialization on signed types
Copy uint64 data into uint32 with padding
6 7
applidiumResto_corrigé
list iota cout
Unlike C (even C99/C11), C++ allows initializers in if-conditions, so this compiles.
SubsequenceArray
Pure virtual function called!
What's the problem with this?
Linker error while taking the address of a constexpr variable
Please log in to post a comment.