Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/containers/maybe

    r64fc0ba r79308c8e  
    1818#define MAYBE_H
    1919
    20 #include <stdbool.h>
    2120
    2221// DO NOT USE DIRECTLY!
    2322forall(otype T)
    2423struct maybe {
    25     bool has_value;
     24    _Bool has_value;
    2625    T value;
    2726};
     
    4140
    4241forall(otype T)
    43 bool ?!=?(maybe(T) this, zero_t);
     42_Bool ?!=?(result(T, E) this, zero_t);
    4443
    4544forall(otype T)
     
    5049
    5150forall(otype T)
    52 bool has_value(maybe(T) * this);
     51_Bool has_value(maybe(T) * this);
    5352
    5453forall(otype T)
Note: See TracChangeset for help on using the changeset viewer.