Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
tuple_list_of
#include <boost/assign/list_of.hpp> #include <vector> #include <boost/foreach.hpp> using namespace std; using namespace boost::assign; int main() { typedef boost::tuple<std::string,std::string> tuple; vector<tuple> aVectorTuple = tuple_list_of ( "A", "B" ) ( "C", "D" ) ( "E", "F" ) ( "G", "H" ); BOOST_FOREACH(tuple& aTuple, aVectorTuple) { std::cout << boost::get<0>(aTuple) << "-" << boost::get<1>(aTuple) << std::endl; } }
run
|
edit
|
history
|
help
0
OperatorOverload
HCF
code
BoauthCPP
4C test
C++ virtual dispose
CharSearch
String match with test
Polimorfizm :)
pure virtual function with non-fixed number of parameters