2#include"../../kyopro_library/template.hpp"
8 template<
typename T, T max_value=
INF>
11 static Type
id() {
return max_value; }
12 static Type
op(
const Type& a,
const Type& b) {
return min(a,b); }
17 template<
typename T, T min_value=-
INF>
20 static Type
id() {
return min_value; }
21 static Type
op(
const Type& a,
const Type& b) {
return max(a,b); }
28 static Type
id() {
return 0; }
29 static Type
op(
const Type& a,
const Type& b) {
return a+b; }
36 static Type id() {
return make_pair(T(0),0); }
37 static Type op(
const Type& a,
const Type& b) {
return {a.first+b.first,a.second+b.second}; }
static Type op(const Type &a, const Type &b)
static Type op(const Type &a, const Type &b)
static Type op(const Type &a, const Type &b)
static Type op(const Type &a, const Type &b)