zawatins-library

This documentation is automatically generated by online-judge-tools/verification-helper

View the Project on GitHub zawa-tin/zawatins-library

:warning: bitwiseAndStructure (Sparse Table)
(src/utility/sparseTable/bitwiseAndStructure.hpp)

概要

Sparse Tableで区間bitwise andクエリを処理したい時に、zawa::sparseTable<structure>structureに入れる構造体です。

機能

zawa::bitwiseAndStructure<T>

Code

#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
Back to top page