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