This documentation is automatically generated by online-judge-tools/verification-helper
View the Project on GitHub luzhiled1333/comp-library
#include "src/data-structure/segment-tree/presets/monoid/operator-structure-chmax.hpp"
#pragma once #include <algorithm> #include <limits> namespace luz::monoid { template < typename T > class RangeChmaxQueryMonoid { static constexpr T identity_{std::numeric_limits< T >::min()}; public: using value_type = T; static constexpr T operation(T a, T b) { return std::max(a, b); } static constexpr T identity() { return identity_; } }; } // namespace luz::monoid
#line 2 "src/data-structure/segment-tree/presets/monoid/operator-structure-chmax.hpp" #include <algorithm> #include <limits> namespace luz::monoid { template < typename T > class RangeChmaxQueryMonoid { static constexpr T identity_{std::numeric_limits< T >::min()}; public: using value_type = T; static constexpr T operation(T a, T b) { return std::max(a, b); } static constexpr T identity() { return identity_; } }; } // namespace luz::monoid