1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once


#include <cstddef><--- Include file:  not found. Please note: Cppcheck does not need standard library headers to get proper results.


#include "internal/dev_env.hpp"
#include "internal/dummy.hpp"

#include "algebraic/base.hpp"
#include "algebraic/internal/concepts.hpp"


namespace uni {

namespace algebraic {


template<class T = uni::internal::dummy>
struct null : base<T>, scalar_multipliable<null<T>>::identity, associative, commutative {
    using base<T>::base;

    friend inline null operator+(const null& lhs, const null& rhs) noexcept(NO_EXCEPT) {
        if(lhs == null()) return rhs;
        return lhs;
    }

    inline null operator-() const noexcept(NO_EXCEPT)
        requires internal::invertible<T>
    {
        return -*this;
    }
};


} // namespace algebraic

} // namespace uni