Changes in src/libcfa/containers/maybe [64fc0ba:79308c8e]
- File:
-
- 1 edited
-
src/libcfa/containers/maybe (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/containers/maybe
r64fc0ba r79308c8e 18 18 #define MAYBE_H 19 19 20 #include <stdbool.h>21 20 22 21 // DO NOT USE DIRECTLY! 23 22 forall(otype T) 24 23 struct maybe { 25 bool has_value;24 _Bool has_value; 26 25 T value; 27 26 }; … … 41 40 42 41 forall(otype T) 43 bool ?!=?(maybe(T) this, zero_t);42 _Bool ?!=?(result(T, E) this, zero_t); 44 43 45 44 forall(otype T) … … 50 49 51 50 forall(otype T) 52 bool has_value(maybe(T) * this);51 _Bool has_value(maybe(T) * this); 53 52 54 53 forall(otype T)
Note:
See TracChangeset
for help on using the changeset viewer.