rcpl

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

View the Project on GitHub ruthen71/rcpl

:heavy_check_mark: algebra/monoid/monoid_and.hpp

Verified with

Code

#pragma once

template <class T> struct MonoidAnd {
    using value_type = T;
    static constexpr T operation(const T& a, const T& b) noexcept {
        return a & b;
    }
    static constexpr T identity() noexcept { return T(-1); }
    static constexpr bool commutative = true;
};
#line 2 "algebra/monoid/monoid_and.hpp"

template <class T> struct MonoidAnd {
    using value_type = T;
    static constexpr T operation(const T& a, const T& b) noexcept {
        return a & b;
    }
    static constexpr T identity() noexcept { return T(-1); }
    static constexpr bool commutative = true;
};
Back to top page