aboutsummaryrefslogtreecommitdiff
path: root/src/list/operation/nth.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/list/operation/nth.h')
-rw-r--r--src/list/operation/nth.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/list/operation/nth.h b/src/list/operation/nth.h
index 6020dcb..076add4 100644
--- a/src/list/operation/nth.h
+++ b/src/list/operation/nth.h
@@ -26,6 +26,20 @@ struct Nth<Index, void> {
typedef void type;
};
+template <>
+struct Nth<Size<0>, void> {
+ typedef void type;
+};
+
+template <typename List>
+using First = typename Nth<Size<0>, List>::type;
+
+template <typename List>
+using Second = typename Nth<Size<1>, List>::type;
+
+template <typename List>
+using Third = typename Nth<Size<2>, List>::type;
+
}
#endif // TYPEASVALUE_SRC_LIST_OPERATION_NTH_H_