Changeset a4943d8c for src/libcfa/containers/maybe
- Timestamp:
- May 25, 2017, 12:55:12 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 58daf53, 84d58c5, cc38669
- Parents:
- bc37a83 (diff), e883a4b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/containers/maybe
rbc37a83 ra4943d8c 18 18 #define MAYBE_H 19 19 20 #include <stdbool.h> 20 21 21 22 // DO NOT USE DIRECTLY! 22 23 forall(otype T) 23 24 struct maybe { 24 _Bool has_value;25 bool has_value; 25 26 T value; 26 27 }; … … 40 41 41 42 forall(otype T) 42 _Bool ?!=?(result(T, E) this, zero_t);43 bool ?!=?(maybe(T) this, zero_t); 43 44 44 45 forall(otype T) … … 49 50 50 51 forall(otype T) 51 _Bool has_value(maybe(T) * this);52 bool has_value(maybe(T) * this); 52 53 53 54 forall(otype T)
Note:
See TracChangeset
for help on using the changeset viewer.