]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/tokenizer/test/simple_example_1.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / tokenizer / test / simple_example_1.cpp
1 // (c) Copyright John R. Bandela 2001.
2
3 // Distributed under the Boost Software License, Version 1.0. (See
4 // accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6
7 // See http://www.boost.org/libs/tokenizer for documenation
8
9
10 // simple_example_1.cpp
11 #include<iostream>
12 #include<boost/tokenizer.hpp>
13 #include<string>
14
15 int main(){
16 using namespace std;
17 using namespace boost;
18 string s = "This is, a test";
19 tokenizer<> tok(s);
20 for(tokenizer<>::iterator beg=tok.begin(); beg!=tok.end();++beg){
21 cout << *beg << "\n";
22 }
23 return 0;
24 }
25