Searched refs:hasVal (Results 1 – 5 of 5) sorted by relevance
31 bool hasVal; variable35 Optional(NoneType) : hasVal(false) {} in Optional()36 explicit Optional() : hasVal(false) {} in Optional()37 Optional(const T &y) : hasVal(true) { in Optional()40 Optional(const Optional &O) : hasVal(O.hasVal) { in Optional()41 if (hasVal) in Optional()45 Optional(T &&y) : hasVal(true) { in Optional()48 Optional(Optional<T> &&O) : hasVal(O) { in Optional()55 if (hasVal)59 hasVal = true;[all …]
34 bool hasVal = false; member38 OptionalStorage(const T &y) : hasVal(true) { new (storage.buffer) T(y); } in OptionalStorage()39 OptionalStorage(const OptionalStorage &O) : hasVal(O.hasVal) { in OptionalStorage()40 if (hasVal) in OptionalStorage()43 OptionalStorage(T &&y) : hasVal(true) { in OptionalStorage()46 OptionalStorage(OptionalStorage &&O) : hasVal(O.hasVal) { in OptionalStorage()47 if (O.hasVal) { in OptionalStorage()53 if (hasVal)57 hasVal = true;62 if (!O.hasVal)[all …]
26 unsigned hasVal : 1; variable28 explicit Optional() : x(), hasVal(false) {} in Optional()29 Optional(const T &y) : x(y), hasVal(true) {} in Optional()37 hasVal = true;41 const T* getPointer() const { assert(hasVal); return &x; } in getPointer()42 const T& getValue() const { assert(hasVal); return x; } in getValue()44 operator bool() const { return hasVal; }45 bool hasValue() const { return hasVal; } in hasValue()47 const T& operator*() const { assert(hasVal); return x; }
99 hasVal = storage.GetChildMemberWithName('hasVal').GetValueAsUnsigned(failure)100 if hasVal == failure:103 if hasVal == 0: