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 …]
41 bool hasVal; variable46 OptionalStorage() noexcept : empty(), hasVal(false) {} in OptionalStorage()61 : value(std::forward<Args>(args)...), hasVal(true) {} in OptionalStorage()64 if (hasVal) { in reset()66 hasVal = false; in reset()70 bool hasValue() const noexcept { return hasVal; } in hasValue()73 assert(hasVal); in getValue()77 assert(hasVal); in getValue()82 assert(hasVal); in getValue()90 hasVal = true; in emplace()[all …]
42 bool hasVal; variable47 constexpr OptionalStorage() noexcept : empty(), hasVal(false) {} in OptionalStorage()62 : value(std::forward<Args>(args)...), hasVal(true) {} in OptionalStorage()65 if (hasVal) { in reset()67 hasVal = false; in reset()71 constexpr bool hasValue() const noexcept { return hasVal; } in hasValue()74 assert(hasVal); in getValue()78 assert(hasVal); in getValue()83 assert(hasVal); in getValue()91 hasVal = true; in emplace()[all …]
106 hasVal = storage.GetChildMemberWithName('hasVal').GetValueAsUnsigned(failure)107 if hasVal == failure:110 if hasVal == 0: