-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinterface_D.h
More file actions
51 lines (47 loc) · 1.27 KB
/
interface_D.h
File metadata and controls
51 lines (47 loc) · 1.27 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef XYZ_PROTOCOL_INTERFACE_D_H
#define XYZ_PROTOCOL_INTERFACE_D_H
#include <compare>
namespace xyz {
struct D {
int operator+(int x) const;
int operator-(int x) const;
int operator*(int x) const;
int operator/(int x) const;
int operator%(int x) const;
int operator^(int x) const;
int operator&(int x) const;
int operator|(int x) const;
int operator~() const;
bool operator!() const;
void operator=(int x);
bool operator<(int x) const;
bool operator>(int x) const;
void operator+=(int x);
void operator-=(int x);
void operator*=(int x);
void operator/=(int x);
void operator%=(int x);
void operator^=(int x);
void operator&=(int x);
void operator|=(int x);
int operator<<(int x) const;
int operator>>(int x) const;
void operator<<=(int x);
void operator>>=(int x);
bool operator==(int x) const;
bool operator!=(int x) const;
bool operator<=(int x) const;
bool operator>=(int x) const;
std::strong_ordering operator<=>(int x) const;
bool operator&&(bool x) const;
bool operator||(bool x) const;
void operator++();
void operator--();
int operator,(int x) const;
int operator->*(int x) const;
int* operator->();
int operator()();
int operator[](int x) const;
};
} // namespace xyz
#endif // XYZ_PROTOCOL_INTERFACE_D_H