2#include"../../kyopro_library/template.hpp"
7 template<
typename T, T not_exist>
10 static Type
id() {
return not_exist; }
11 static Type
op(
const Type& a,
const Type& b) {
return b==
id()?a:b; }
18 static Type
id() {
return 0; }
19 static Type
op(
const Type& a,
const Type& b) {
return a+b; }
27 static Type op(
const Type& a,
const Type& b) {
return b.second>a.second ? b : a; }
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)