Skip to content

Commit

Permalink
Iterating over std::string
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfred Bratterud committed Oct 8, 2014
1 parent c0b0259 commit 89dc1db
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
Binary file modified examples/eastl/IncludeOS_eastl
Binary file not shown.
Binary file modified examples/eastl/IncludeOS_eastl.img.qcow2
Binary file not shown.
Binary file modified examples/eastl/IncludeOS_eastl.img.vdi
Binary file not shown.
Binary file modified examples/eastl/IncludeOS_eastl.img.vmdk
Binary file not shown.
14 changes: 13 additions & 1 deletion examples/eastl/service.cpp
Expand Up @@ -222,6 +222,18 @@ void Service::start()
std::cout << "result: " << shared2->artist <<
" (usage: " << sv[0].use_count() << " == " << shared2.use_count() << ")" << std::endl;
}


/////////////////////////////////////////////////////////////////////////////
//// std::string
/////////////////////////////////////////////////////////////////////////////

std::string s("A string!");

std::cout << s << std::endl;
for(auto it = s.begin(); it != s.end(); ++it)
std::cout << *it;
std::cout << std::endl;


std::cout << "Service out!" << std::endl;
}

0 comments on commit 89dc1db

Please sign in to comment.