aboutsummaryrefslogtreecommitdiff
path: root/src/list/operation/delete_nth.h
blob: 18e52bf48e1149cec968658f0e9b7eb251f4546a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef TYPEASVALUE_SRC_LIST_OPERATION_DELETE_NTH_H_
#define TYPEASVALUE_SRC_LIST_OPERATION_DELETE_NTH_H_

#include "list/operation/append.h"
#include "list/operation/take.h"
#include "list/operation/drop.h"

namespace tav {

template <
	typename Index,
	typename List
>
using DeleteNth = Append<
	Take<Index, List>,
	Drop<Add<Index, Size<1>>, List>
>;

}

#endif  // TYPEASVALUE_SRC_LIST_OPERATION_DELETE_NTH_H_