cp-documentation

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

View the Project on GitHub zawa-tin/cp-documentation

:heavy_check_mark: Src/Algebra/Group/XorGroup.hpp

Verified with

Code

#pragma once

namespace zawa {

template <class T>
class XorGroup {
public:
    using Element = T;
    static constexpr Element identity() noexcept {
        return Element{};
    }
    static constexpr Element operation(const Element& l, const Element& r) noexcept {
        return l ^ r;
    }
    static constexpr Element inverse(const Element& v) noexcept {
        return v;
    }
};

} // namespace zawa
#line 2 "Src/Algebra/Group/XorGroup.hpp"

namespace zawa {

template <class T>
class XorGroup {
public:
    using Element = T;
    static constexpr Element identity() noexcept {
        return Element{};
    }
    static constexpr Element operation(const Element& l, const Element& r) noexcept {
        return l ^ r;
    }
    static constexpr Element inverse(const Element& v) noexcept {
        return v;
    }
};

} // namespace zawa
Back to top page