#include "lvlist.h"
void testcase4()
{
using namespace std;
list<list<int>> alist;
alist.push_back(list<int>{10, 20, 30});
alist.push_back(list<int>{40, 50, 60});
vector<vector<int>> vlist;
vlist.push_back(vector<int>{10, 20, 30});
vlist.push_back(vector<int>{40, 50, 60});
vector<vector<string>> vstrlist;
vstrlist.push_back(vector<string>{"10", "20", "30"});
vstrlist.push_back(vector<string>{"40", "50", "60"});
list<list<wstring>> strlist;
strlist.push_back(list<wstring>{L"10", L"20", L"30"});
strlist.push_back(list<wstring>{L"40", L"50", L"60"});
for (auto it : vlist)
{
int age, weight, height;
lv::tie(age, weight, height) = it;
cout << "age: " << age
<< ", weight: " << weight
<< ", height: " << height << endl << endl;
}
for (auto it : alist)
{
int age, weight, length;
lv::tie(age, weight, length) = it;
cout << "age: " << age
<< ", weight: " << weight
<< ", height: " << length << endl << endl;
}
for (auto it : vstrlist)
{
string age, weight, height;
lv::tie(age, weight, height) = it;
cout << "age: " << age
<< ", weight: " << weight
<< ", height: " << height << endl << endl;
}
for (auto it : strlist)
{
wstring age, weight, height;
lv::tie(age, weight, height) = it;
wcout << L"age: " << age
<< L", weight: " << weight
<< L", height: " << height << endl << endl;
}
}
https://github.com/GuruWand/sswitch/blob/master/include/lvlist.h
이걸 어따쓰나? db특정필드 피봇팅 해서 쓸 때?
list나 vector선언에 관여할 수 없을때?
암튼 귀차니즘이 많은 나에게는 쓸만한 것
https://github.com/GuruWand/sswitch/blob/master/include/lvtie.h
파일명 변경