Searched refs:__has_value (Results 1 – 18 of 18) sorted by relevance
38 assert(x.__has_value()); in test()39 assert(y.__has_value()); in test()48 assert(x.__has_value()); in test()65 assert(x.__has_value()); in test()66 assert(y.__has_value()); in test()76 assert(x.__has_value()); in test()94 assert(x.__has_value()); in test()95 assert(y.__has_value()); in test()105 assert(x.__has_value()); in test()183 assert(x.__has_value()); in test_empty_state()[all …]
38 assert(x.__has_value()); in test()39 assert(y.__has_value()); in test()48 assert(x.__has_value()); in test()65 assert(x.__has_value()); in test()66 assert(y.__has_value()); in test()76 assert(x.__has_value()); in test()125 assert(x.__has_value()); in test_empty_state()126 assert(y.__has_value()); in test_empty_state()136 assert(!x.__has_value()); in test_empty_state()137 assert(!y.__has_value()); in test_empty_state()[all …]
41 assert(box.__has_value()); in test()48 assert(box.__has_value()); in test()55 assert(box.__has_value()); in test()
25 assert(x.__has_value()); in check()44 assert(!x.__has_value()); in main()
152 assert(!box1.__has_value()); in create_empty_box()
53 assert(!b.__has_value()); // make sure we don't propagate in test()54 assert(!a.__has_value()); // make sure we disengage the source in test()64 assert(!b.__has_value()); // make sure we don't propagate in test()65 assert(!a.__has_value()); // make sure we disengage the source in test()74 assert(!b.__has_value()); in test()83 assert(!b.__has_value()); in test()
54 assert(!b.__has_value()); // make sure we don't propagate in test()56 assert(a.__has_value()); // make sure we don't "steal" from the source in test()67 assert(!b.__has_value()); // make sure we don't propagate in test()69 assert(a.__has_value()); // make sure we don't "steal" from the source in test()78 assert(!b.__has_value()); in test()86 assert(b.__has_value()); in test()
39 assert(!b.__has_value()); // make sure we don't propagate in test()40 assert(!a.__has_value()); // make sure we disengage the source in test()49 assert(!b.__has_value()); // make sure we don't propagate in test()50 assert(!a.__has_value()); // make sure we disengage the source in test()
46 assert(!b.__has_value()); // make sure we don't propagate in test()48 assert(a.__has_value()); // make sure we don't "steal" from the source in test()55 assert(!b.__has_value()); // make sure we don't propagate in test()57 assert(a.__has_value()); // make sure we don't "steal" from the source in test()
25 assert(!cache.__has_value()); in test()31 assert(cache.__has_value()); in test()
27 assert(!cache.__has_value()); in test()
86 if (__has_value()) in set_value()96 if (__has_value()) in set_value_at_thread_exit()106 if (__has_value()) in set_exception()117 if (__has_value()) in set_exception_at_thread_exit()201 if (!__state_->__has_value() && __state_->use_count() > 1) in ~promise()
69 if (__other.__has_value()) __val_.emplace(*__other); in noexcept()83 if (__other.__has_value()) __val_.emplace(std::move(*__other)); in noexcept()95 _LIBCPP_HIDE_FROM_ABI constexpr bool __has_value() const noexcept { return __val_.has_value(); } in __has_value() function170 _LIBCPP_HIDE_FROM_ABI constexpr bool __has_value() const noexcept { return true; } in __has_value() function
92 constexpr bool __has_value() const { return __value_.has_value(); } in __has_value() function
80 …_LIBCPP_ASSERT(__pred_.__has_value(), "Trying to call begin() on a filter_view that does not have … in begin()82 if (!__cached_begin_.__has_value()) { in begin()
65 if (__cached_begin_.__has_value()) in begin()
86 if (__cached_begin_.__has_value()) in begin()
562 bool __has_value() const663 if (this->__has_value())676 if (this->__has_value())735 if (this->__has_value())747 if (this->__has_value())1350 if (!__state_->__has_value() && __state_->use_count() > 1)1493 if (!__state_->__has_value() && __state_->use_count() > 1)1947 if (__p_.__state_->__has_value())1969 if (__p_.__state_->__has_value())2062 if (__p_.__state_->__has_value())[all …]