Lines Matching refs:constructed
112 void setConstructed(bool constructed) { mConstructed = constructed; } in setConstructed() argument
113 constexpr bool constructed() const { return mConstructed; } in constructed() function
114 constexpr operator bool() const { return constructed(); }
115 bool hasValue() const { return constructed(); } in hasValue()
117 constexpr OptionalFlagBase(bool constructed = false)
118 : mConstructed(constructed) {} in mConstructed() argument
196 Optional(const Optional& other) : base_flag(other.constructed()) { in Optional()
197 if (this->constructed()) { in Optional()
201 Optional(Optional&& other) : base_flag(other.constructed()) { in Optional()
202 if (this->constructed()) { in Optional()
211 Optional(const Optional<U>& other) : base_flag(other.constructed()) { in Optional()
212 if (this->constructed()) { in Optional()
221 Optional(Optional<U>&& other) : base_flag(other.constructed()) { in Optional()
222 if (this->constructed()) { in Optional()
252 if (this->constructed()) {
253 if (other.constructed()) {
260 if (other.constructed()) {
272 if (this->constructed()) {
273 if (other.constructed()) {
280 if (other.constructed()) {
294 if (this->constructed()) {
295 if (other.constructed()) {
302 if (other.constructed()) {
316 if (this->constructed()) {
317 if (other.constructed()) {
324 if (other.constructed()) {
342 if (this->constructed()) {
356 if (!constructed()) { in value()
363 if (!constructed()) { in value()
371 return this->constructed() ? &get() : nullptr; in ptr()
374 return this->constructed() ? &get() : nullptr; in ptr()
381 return this->constructed() ? get() : std::move(defaultValue); in valueOr()
386 if (!constructed()) {
393 if (!constructed()) {
401 if (!constructed()) {
408 if (!constructed()) {
416 if (this->constructed()) { in ~Optional()
422 if (this->constructed()) { in clear()
437 if (this->constructed()) { in emplace()
450 if (this->constructed()) { in emplace()