Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/containers/maybe

    r79308c8e r64fc0ba  
    1818#define MAYBE_H
    1919
     20#include <stdbool.h>
    2021
    2122// DO NOT USE DIRECTLY!
    2223forall(otype T)
    2324struct maybe {
    24     _Bool has_value;
     25    bool has_value;
    2526    T value;
    2627};
     
    4041
    4142forall(otype T)
    42 _Bool ?!=?(result(T, E) this, zero_t);
     43bool ?!=?(maybe(T) this, zero_t);
    4344
    4445forall(otype T)
     
    4950
    5051forall(otype T)
    51 _Bool has_value(maybe(T) * this);
     52bool has_value(maybe(T) * this);
    5253
    5354forall(otype T)
Note: See TracChangeset for help on using the changeset viewer.