#pragma once
#include <optional><--- Include file: not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include "internal/dev_env.hpp"
#include "algebraic/base.hpp"
namespace uni {
namespace algebraic {
template<class T>
struct assignment : base<std::optional<T>>, scalar_multipliable<assignment<T>>::identity, associative {
using base<std::optional<T>>::base;
friend inline assignment operator+(const assignment& lhs, const assignment& rhs) noexcept(NO_EXCEPT) {
if(lhs->has_value()) return lhs;
return rhs;
}
};
} // namespace algebraic
} // namespace uni