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-update.hpp"
#pragma once namespace luz::monoid { template < typename T, T ID > class RangeUpdateQueryMonoid { public: using value_type = T; static constexpr T operation(T a, T b) { return b == ID ? a : b; } static constexpr T identity() { return ID; } }; } // namespace luz::monoid
#line 2 "src/data-structure/segment-tree/presets/monoid/operator-structure-update.hpp" namespace luz::monoid { template < typename T, T ID > class RangeUpdateQueryMonoid { public: using value_type = T; static constexpr T operation(T a, T b) { return b == ID ? a : b; } static constexpr T identity() { return ID; } }; } // namespace luz::monoid