Skip to content

Instantly share code, notes, and snippets.

View nicksuh's full-sized avatar
😥

Hyoung Min Suh nicksuh

😥
View GitHub Profile
@leopoldcambier
leopoldcambier / template.cpp
Last active September 2, 2023 23:40
Chaining functions using C++ templates
#include<tuple>
#include<iostream>
#include<string>
// Returns the Tin of the first element
template<typename... Trs>
struct Tin_list
{
using type = typename std::tuple_element<0, std::tuple<Trs...>>::type::Tin_type;
};