mirror of
https://github.com/boostorg/poly_collection.git
synced 2026-07-21 13:33:37 +00:00
made it clear non-restituted types also get processed
This commit is contained in:
@@ -149,8 +149,8 @@ int main()
|
||||
//[algorithms_7
|
||||
const char* comma="";
|
||||
boost::poly_collection::for_each
|
||||
<warrior,juggernaut,goblin,std::string,window>( //restituted types
|
||||
c.begin(),c.end(),[&](const auto& x){
|
||||
<warrior,juggernaut,goblin>( // restituted types
|
||||
c.begin(),c.end(),[&](const auto& x){ // loop traverses *all* elements
|
||||
std::cout<<comma<<x;
|
||||
comma=",";
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user