aboutsummaryrefslogtreecommitdiff
path: root/src/list/operation/delete_nth.h
blob: a83415035d15d76b7aa8d71bc81f1a50a48e8f24 (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 Sequence
>
using DeleteNth = Append<
	Take<Index, Sequence>,
	Drop<Add<Index, Size<1>>, Sequence>
>;

}

#endif  // TYPEASVALUE_SRC_LIST_OPERATION_DELETE_NTH_H_