This documentation is automatically generated by online-judge-tools/verification-helper
#include "src/utility/monoid/xorMonoid.hpp"
xor演算のモノイドを表現した構造体です。
zawa::xorMonoid<T>
T
: int
long long
などoperator ^
が定義されているもの、0が代入できるものメンバ
using valueType = T
static constexpr valueType identity
static valueType operation(const valueType& a, const valueType& b)
a ^ b
#pragma once
namespace zawa {
template <class T>
struct xorMonoid {
using valueType = T;
static constexpr valueType identity{};
static valueType operation(const valueType& a, const valueType& b) {
return (a ^ b);
}
};
} // namespace zawa
#line 2 "src/utility/monoid/xorMonoid.hpp"
namespace zawa {
template <class T>
struct xorMonoid {
using valueType = T;
static constexpr valueType identity{};
static valueType operation(const valueType& a, const valueType& b) {
return (a ^ b);
}
};
} // namespace zawa