zawatins-library

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

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

:heavy_check_mark: minStructure (Sparse Table)
(src/utility/sparseTable/minStructure.hpp)

概要

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

機能

zawa::minStructure<T>

Verified with

Code

#pragma once

#include <algorithm>

namespace zawa {

template <class T>
struct minStructure {
	using valueType = T;
	static valueType operation(const valueType& a, const valueType& b) {
		return std::min(a, b);
	}
};

} // namespace zawa
#line 2 "src/utility/sparseTable/minStructure.hpp"

#include <algorithm>

namespace zawa {

template <class T>
struct minStructure {
	using valueType = T;
	static valueType operation(const valueType& a, const valueType& b) {
		return std::min(a, b);
	}
};

} // namespace zawa
Back to top page