proconlib

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

View the Project on GitHub KodamaD/proconlib

:heavy_check_mark: traits/reversed_monoid.cpp

Required by

Verified with

Code

#pragma once

template <class M> struct ReversedMonoid {
    using Type = typename M::Type;
    static constexpr Type identity() { return M::identity(); }
    static constexpr Type operation(const Type& l, const Type& r) { return M::operation(r, l); }
};
#line 2 "traits/reversed_monoid.cpp"

template <class M> struct ReversedMonoid {
    using Type = typename M::Type;
    static constexpr Type identity() { return M::identity(); }
    static constexpr Type operation(const Type& l, const Type& r) { return M::operation(r, l); }
};
Back to top page