This documentation is automatically generated by online-judge-tools/verification-helper
#include "src/utility/sparseTable/bitwiseOrStructure.hpp"
Sparse Tableで区間bitwise orクエリを処理したい時に、zawa::sparseTable<T>
のstructure
に入れる構造体です。
zawa::bitwiseOrStructure<T>
T
int
やlong long
など、operator |
が定義されているもの#pragma once
namespace zawa {
template <class T>
struct bitwiseOrStructure {
using valueType = T;
static valueType operation(const valueType& a, const valueType& b) {
return (a | b);
}
};
} // namespace zawa
#line 2 "src/utility/sparseTable/bitwiseOrStructure.hpp"
namespace zawa {
template <class T>
struct bitwiseOrStructure {
using valueType = T;
static valueType operation(const valueType& a, const valueType& b) {
return (a | b);
}
};
} // namespace zawa