zawatins-library

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

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

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

概要

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

機能

zawa::bitwiseOrStructure<T>

Code

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