Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Boost adapters foreach
//Boost adapters foreach //g++ 4.9.1 #include <iostream> #include <boost/range/adaptors.hpp> #include <boost/foreach.hpp> #include <boost/assign/list_of.hpp> #include <boost/phoenix/phoenix.hpp> #include <set> int main() { std::set<std::string> aElementsSet = boost::assign::list_of("C")("D")("E")("F"); BOOST_FOREACH(const std::string& elementSet, aElementsSet | boost::adaptors::filtered(boost::phoenix::placeholders::arg1 == "C" || boost::phoenix::placeholders::arg1 == "F" ) ) { std::cout << elementSet << std::endl; } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
poker.hpp
SIP_parser_with_std_regex_need_help_to_improve_it.cc
LRU - DLL
Undefined behaviour
parallel_for_each
Cuantos dedos
<string> Indirect include of <errno.h> with gcc
ADAKOHL - hpclearn
D. Traveling Graph
PrintShapePointer
Please log in to post a comment.