-
Notifications
You must be signed in to change notification settings - Fork 0
C++11_Notes
jiayy2 edited this page Jan 29, 2018
·
1 revision
This wiki will introduce some knowledge about C++ coding;
1、std::tuple<a, b> std::tie(a,b);
coding: #include #include using namespace std; int main(int argc, char** argv) { std::string name("Caroline"); int year(2013);
std::string myname;
int birthday;
std::tuple<std::string, int> me=std::make_tuple(name, year);
std::tie(myname,birthday) =me;
// auto my_year=std::get<1>(me);
}