daylight-library

This documentation is automatically generated by competitive-verifier/competitive-verifier

View the Project on GitHub daylight-pro/daylight-library

:warning: daylight/structure/abel.hpp

Required by

Code

#pragma once
template<typename T>
struct AbelAdd {
	using value_type = T;
	static constexpr T op(const T& a, const T& b) noexcept {
		return a + b;
	}
	static constexpr T inv(const T& a) noexcept {
		return -a;
	}
	static constexpr T e() {
		return T(0);
	}
};
template<typename T>
struct AbelXor {
	using value_type = T;
	static constexpr T op(const T& a, const T& b) noexcept {
		return a ^ b;
	}
	static constexpr T inv(const T& a) noexcept {
		return a;
	}
	static constexpr T e() {
		return T(0);
	}
};
#line 2 "daylight/structure/abel.hpp"
template<typename T>
struct AbelAdd {
	using value_type = T;
	static constexpr T op(const T& a, const T& b) noexcept {
		return a + b;
	}
	static constexpr T inv(const T& a) noexcept {
		return -a;
	}
	static constexpr T e() {
		return T(0);
	}
};
template<typename T>
struct AbelXor {
	using value_type = T;
	static constexpr T op(const T& a, const T& b) noexcept {
		return a ^ b;
	}
	static constexpr T inv(const T& a) noexcept {
		return a;
	}
	static constexpr T e() {
		return T(0);
	}
};
Back to top page