fork(5) download
  1. #include <string>
  2. #include <iostream>
  3. #include <boost/foreach.hpp>
  4. #include <utility>
  5.  
  6. int main()
  7. {
  8. std::string hello( "Hello, world!" );
  9.  
  10. BOOST_FOREACH( char ch, make_pair(hello.begin()+1, hello.end()) )
  11. {
  12. std::cout << ch;
  13. }
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0.02s 2856KB
stdin
Standard input is empty
stdout
ello, world!