namespace hezlik{
template<class type>
class add_group{
public:
type operator () ()const{return type(0);}
type operator () (const type &x)const{return -x;}
type operator () (const type &x,const type &y)const{return x+y;}
};
template<class type>
class mul_group{
public:
type operator () ()const{return type(1);}
type operator () (const type &x)const{return type(1)/x;}
type operator () (const type &x,const type &y)const{return x*y;}
};
}剪贴板
剪贴板 uv5pv0yf
剪贴板信息
剪贴板信息
- 收录
- 更新