std::tuple
Në shqip përdoret i njëjti emër.
ShpjegimiSQ
std::tuple grupon disa vlera të tipeve të ndryshme — si std::pair, por me sa elemente të duash. I lexon me std::get<0>(t) ose, më mirë, me structured bindings.
EnglishEN
std::tuple groups several values of different types — like std::pair, but with as many items as you like. You read them with std::get<0>(t) or, better, with structured bindings.
Si ta mendosh
Si një qese me disa gjëra të ndryshme që i mban bashkë.
Lexoje në anglisht
Like a bag holding several different things together.
Shembull kodicpp
std::tuple<std::string, int, double> n{"Arta", 16, 4.8};
auto [emri, mosha, mesatarja] = n;