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

#include "higher/fold.h"
#include "function/apply.h"
#include "operation/math.h"

namespace tav {

template <typename Pair>
using Length = Fold<
	Apply<Add, Size<1>, _1>::pair_type,
	Size<0>,
	Pair
>;

}

#endif  // TYPEASVALUE_SRC_LIST_OPERATION_BASIC_H_