Use this tag for questions about the C++ standard library template std::tuple.
How can I iterate over a tuple (using C++11)? I tried the following: for(int i=0; i<std::tuple_…
c++ c++11 iteration template-meta-programming stdtupleIs there a difference between an std::pair and an std::tuple with only two members? (Besides the obvious that …
c++ visual-studio-2010 tuples std-pair stdtupleI want to use tuple consisting of int,char,char in my unordered_map. I am doing like this: #include &…
c++ hashmap unordered-map stdtupleI want to use a triplet class, as similar as possible to std::pair. STL doesn't seem to have one. …
c++ c++-standard-library stdtuple tripletYou can get the value of the nth element of an std::tuple using std::get<n>(tuple). …
c++ reference stdtupleHere is the code for testing. Tuple test: using namespace std; int main(){ vector<tuple<int,int>&…
performance c++11 std-pair stdtupleI want to return some values from a function and I want to pack it in a tuple. So I …
c++ c++11 stdtupleI mean why does std::make_tuple exist? I know that there are situations where the function reduces the amount …
c++ c++11 stdtupleThe following minimal example compiles with g++ -std=c++11 -Wall tuple.cpp -o tuple: #include <tuple> #include <…
c++ c++11 stdtuple