template<typename ... T>
struct std::tuple< T >
Adapter for std::tuple
s.
Modeled concepts
A std::tuple
is a model of the Sequence
concept, and all the concepts it refines. That makes it essentially the same as a Hana tuple, although the complexity of some operations might differ from that of Hana's tuple.
#include <string>
#include <tuple>
struct Fish { std::string name; };
struct Cat { std::string name; };
struct Dog { std::string name; };
int main() {
return a.name;
});
names,
std::make_tuple("Moby Dick", "Garfield", "Snoopy")
));
}