際際滷

際際滷Share a Scribd company logo
std::tuple
tuple 企?
2螳 伎 螳  覲襦 覓苦  蟆 伎朱 library
std::tuple<int, float, std::string> t1
= std::tuple<int, float, std::string>( 1, 3.0f, "tuple" );
企至 襷?
  var() 覦襦 螳 蟇磯
std::tuple<int, float, std::string> t1( 1, 3.0f, "tuple is good" );
瑚骸 狩 tuple 襷れ伎 蟇磯,( 貊)
make_tuple襦  螳 襷れ j碓   
std::make_tuple( 1, 3.0f,"tuple is good" );
企至 襷?
auto  螳,
讌企 auto  make_tuple襦  t4 螳 覲譟壱 螳ロ.
(襭 企至  讌 覈襯企 蟆 磯蟆 譬 ...)
企至 磯?
std::get<#>(var) 朱 碁 襭 襯 伎 蟶朱伎  .
襭   std::get<#>(var) = var2 朱   .
tuple 螳 覈 螳 讌 企至?
std::tuple_size<decltype(var)>::value 襦 蟲  .
覦 螳 unsigned 企.
蠏 ..
谿語^ 一危磯ゼ 螳讌 tuple 襷るる
std::tie(var1, var2 .. ) 襯 .
蠏 ..
tuple 覲れ  覯 伎朱る
std::tie(var1, var2 .. ) 襯 蟇郁掌襦 .
蠏 ..
tupleれ 豺る std::tuple_cat(tuple1, tuple2) .
Ad

Recommended

[Swift] Tuple
[Swift] Tuple
Bill Kim
危磯 C++ 789 螻給
危磯 C++ 789 螻給
quxn6
=求メ 罪,п,覓語
=求メ 罪,п,覓語
HoYong Na
2.linear regression and logistic regression
2.linear regression and logistic regression
Haesun Park
4.representing data and engineering features
4.representing data and engineering features
Haesun Park
2.supervised learning(epoch#2)-1
2.supervised learning(epoch#2)-1
Haesun Park
2.supervised learning(epoch#2)-3
2.supervised learning(epoch#2)-3
Haesun Park
Python basic grammer
Python basic grammer
Core.Today
[GPG ろ磯] 1.4 蟆襦蠏碁覦 STL
[GPG ろ磯] 1.4 蟆襦蠏碁覦 STL
Sehyeon Nam
6.algorithm chains and piplines(epoch#2)
6.algorithm chains and piplines(epoch#2)
Haesun Park
2.supervised learning(epoch#2)-2
2.supervised learning(epoch#2)-2
Haesun Park
2015 Kitel C 語 螳譬3
2015 Kitel C 語 螳譬3
ssuseraf62e91
7.woring with text data(epoch#2)
7.woring with text data(epoch#2)
Haesun Park
PINTOS Operating system homework 2
PINTOS Operating system homework 2
Gichan Lee
Swift (tuples)
Swift (tuples)
譯殊 蟾
Stl vector, list, map
Stl vector, list, map
Nam Hyeonuk
Std bind
Std bind
覓語
STL study (skyLab)
STL study (skyLab)
Gyeongwook Choi
Haskell study 2
Haskell study 2
Nam Hyeonuk
襦蠏碁覦 : C++11 伎手鍵
襦蠏碁覦 : C++11 伎手鍵
Jongwook Choi
C++11
C++11
2 swift =釈,п,過 午пメ
2 swift =釈,п,過 午пメ
Changwon National University
10 2
10 2
Changwon National University
05喝皆意晦貉企襴
05喝皆意晦貉企襴
noerror
amugona study 1
amugona study 1
who7117
覈伎危磯 C++ 5,6
覈伎危磯 C++ 5,6
quxn6
覈 危磯 c++ 5 ろ磯
覈 危磯 c++ 5 ろ磯
quxn6
覈伎危磯 C++ 3,4 , ろ磯
覈伎危磯 C++ 3,4 , ろ磯
quxn6
覈 危磯 c++ 1,2 ろ磯
覈 危磯 c++ 1,2 ろ磯
quxn6
危磯 C++ 5,6 ろ磯
危磯 C++ 5,6 ろ磯
quxn6

More Related Content

What's hot (8)

[GPG ろ磯] 1.4 蟆襦蠏碁覦 STL
[GPG ろ磯] 1.4 蟆襦蠏碁覦 STL
Sehyeon Nam
6.algorithm chains and piplines(epoch#2)
6.algorithm chains and piplines(epoch#2)
Haesun Park
2.supervised learning(epoch#2)-2
2.supervised learning(epoch#2)-2
Haesun Park
2015 Kitel C 語 螳譬3
2015 Kitel C 語 螳譬3
ssuseraf62e91
7.woring with text data(epoch#2)
7.woring with text data(epoch#2)
Haesun Park
PINTOS Operating system homework 2
PINTOS Operating system homework 2
Gichan Lee
Swift (tuples)
Swift (tuples)
譯殊 蟾
Stl vector, list, map
Stl vector, list, map
Nam Hyeonuk
[GPG ろ磯] 1.4 蟆襦蠏碁覦 STL
[GPG ろ磯] 1.4 蟆襦蠏碁覦 STL
Sehyeon Nam
6.algorithm chains and piplines(epoch#2)
6.algorithm chains and piplines(epoch#2)
Haesun Park
2.supervised learning(epoch#2)-2
2.supervised learning(epoch#2)-2
Haesun Park
2015 Kitel C 語 螳譬3
2015 Kitel C 語 螳譬3
ssuseraf62e91
7.woring with text data(epoch#2)
7.woring with text data(epoch#2)
Haesun Park
PINTOS Operating system homework 2
PINTOS Operating system homework 2
Gichan Lee
Swift (tuples)
Swift (tuples)
譯殊 蟾
Stl vector, list, map
Stl vector, list, map
Nam Hyeonuk

Similar to C++11 Tuple (9)

Std bind
Std bind
覓語
STL study (skyLab)
STL study (skyLab)
Gyeongwook Choi
Haskell study 2
Haskell study 2
Nam Hyeonuk
襦蠏碁覦 : C++11 伎手鍵
襦蠏碁覦 : C++11 伎手鍵
Jongwook Choi
C++11
C++11
2 swift =釈,п,過 午пメ
2 swift =釈,п,過 午пメ
Changwon National University
10 2
10 2
Changwon National University
05喝皆意晦貉企襴
05喝皆意晦貉企襴
noerror
amugona study 1
amugona study 1
who7117
Ad

More from quxn6 (12)

覈伎危磯 C++ 5,6
覈伎危磯 C++ 5,6
quxn6
覈 危磯 c++ 5 ろ磯
覈 危磯 c++ 5 ろ磯
quxn6
覈伎危磯 C++ 3,4 , ろ磯
覈伎危磯 C++ 3,4 , ろ磯
quxn6
覈 危磯 c++ 1,2 ろ磯
覈 危磯 c++ 1,2 ろ磯
quxn6
危磯 C++ 5,6 ろ磯
危磯 C++ 5,6 ろ磯
quxn6
觜れ襷- 企
觜れ襷- 企
quxn6
危磯 C++ 螻給
危磯 C++ 螻給
quxn6
譴蠍 貅襦蠏碁覦
譴蠍 貅襦蠏碁覦
quxn6
危磯 C++ ろ磯
危磯 C++ ろ磯
quxn6
豌伎匡豌襴
豌伎匡豌襴
quxn6
introduce unity3D and playmaker basic
introduce unity3D and playmaker basic
quxn6
TCP echo 覯 覦 企殊伎誤 ろ磯
TCP echo 覯 覦 企殊伎誤 ろ磯
quxn6
覈伎危磯 C++ 5,6
覈伎危磯 C++ 5,6
quxn6
覈 危磯 c++ 5 ろ磯
覈 危磯 c++ 5 ろ磯
quxn6
覈伎危磯 C++ 3,4 , ろ磯
覈伎危磯 C++ 3,4 , ろ磯
quxn6
覈 危磯 c++ 1,2 ろ磯
覈 危磯 c++ 1,2 ろ磯
quxn6
危磯 C++ 5,6 ろ磯
危磯 C++ 5,6 ろ磯
quxn6
觜れ襷- 企
觜れ襷- 企
quxn6
危磯 C++ 螻給
危磯 C++ 螻給
quxn6
譴蠍 貅襦蠏碁覦
譴蠍 貅襦蠏碁覦
quxn6
危磯 C++ ろ磯
危磯 C++ ろ磯
quxn6
豌伎匡豌襴
豌伎匡豌襴
quxn6
introduce unity3D and playmaker basic
introduce unity3D and playmaker basic
quxn6
TCP echo 覯 覦 企殊伎誤 ろ磯
TCP echo 覯 覦 企殊伎誤 ろ磯
quxn6
Ad

C++11 Tuple

  • 2. tuple 企? 2螳 伎 螳 覲襦 覓苦 蟆 伎朱 library std::tuple<int, float, std::string> t1 = std::tuple<int, float, std::string>( 1, 3.0f, "tuple" );
  • 3. 企至 襷? var() 覦襦 螳 蟇磯 std::tuple<int, float, std::string> t1( 1, 3.0f, "tuple is good" ); 瑚骸 狩 tuple 襷れ伎 蟇磯,( 貊) make_tuple襦 螳 襷れ j碓 std::make_tuple( 1, 3.0f,"tuple is good" );
  • 4. 企至 襷? auto 螳, 讌企 auto make_tuple襦 t4 螳 覲譟壱 螳ロ. (襭 企至 讌 覈襯企 蟆 磯蟆 譬 ...)
  • 5. 企至 磯? std::get<#>(var) 朱 碁 襭 襯 伎 蟶朱伎 . 襭 std::get<#>(var) = var2 朱 .
  • 6. tuple 螳 覈 螳 讌 企至? std::tuple_size<decltype(var)>::value 襦 蟲 . 覦 螳 unsigned 企.
  • 7. 蠏 .. 谿語^ 一危磯ゼ 螳讌 tuple 襷るる std::tie(var1, var2 .. ) 襯 .
  • 8. 蠏 .. tuple 覲れ 覯 伎朱る std::tie(var1, var2 .. ) 襯 蟇郁掌襦 .
  • 9. 蠏 .. tupleれ 豺る std::tuple_cat(tuple1, tuple2) .