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
Good1
Summation Of Primes
macros
LIS
Example of range-base for loop
replace_copy_if-30-Seconds-of-C++
next permutation leetcode
TraceMarrix
Projekt misker
runtime template mode processor