Changes in src/libcfa/containers/result [6b0b624:b1672e1]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/containers/result
r6b0b624 rb1672e1 28 28 struct result { 29 29 bool has_value; 30 in ner_result(T, E);30 inline union inner_result(T, E); 31 31 }; 32 32 33 33 34 34 forall(otype T, otype E) 35 void ?{}(result(T, E) *this);35 void ?{}(result(T, E) & this); 36 36 37 37 forall(otype T, otype E) 38 void ?{}(result(T, E) *this, one_t, T value);38 void ?{}(result(T, E) & this, one_t, T value); 39 39 40 40 forall(otype T, otype E) 41 void ?{}(result(T, E) *this, zero_t, E error);41 void ?{}(result(T, E) & this, zero_t, E error); 42 42 43 43 forall(otype T, otype E) 44 void ?{}(result(T, E) *this, result(T, E) other);44 void ?{}(result(T, E) & this, result(T, E) other); 45 45 46 46 forall(otype T, otype E) 47 void ^?{}(result(T, E) *this);47 void ^?{}(result(T, E) & this); 48 48 49 49 forall(otype T, otype E) 50 result(T, E) ?=?(result(T, E) *this, result(T, E) other);50 result(T, E) ?=?(result(T, E) & this, result(T, E) other); 51 51 52 52 forall(otype T, otype E)
Note: See TracChangeset
for help on using the changeset viewer.