Home
last modified time | relevance | path

Searched refs:__has_value (Results 1 – 18 of 18) sorted by relevance

/llvm-project-15.0.7/libcxx/test/libcxx/ranges/range.adaptors/range.copy.wrap/
H A Dassign.move.pass.cpp38 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 …]
H A Dassign.copy.pass.cpp38 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 …]
H A Dctor.default.pass.cpp41 assert(box.__has_value()); in test()
48 assert(box.__has_value()); in test()
55 assert(box.__has_value()); in test()
H A Dhas_value.pass.cpp25 assert(x.__has_value()); in check()
44 assert(!x.__has_value()); in main()
H A Dtypes.h152 assert(!box1.__has_value()); in create_empty_box()
/llvm-project-15.0.7/libcxx/test/libcxx/ranges/range.nonprop.cache/
H A Dassign.move.pass.cpp53 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()
H A Dassign.copy.pass.cpp54 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()
H A Dctor.move.pass.cpp39 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()
H A Dctor.copy.pass.cpp46 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()
H A Dhas_value.pass.cpp25 assert(!cache.__has_value()); in test()
31 assert(cache.__has_value()); in test()
H A Dctor.default.pass.cpp27 assert(!cache.__has_value()); in test()
/llvm-project-15.0.7/libcxx/src/
H A Dfuture.cpp86 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()
/llvm-project-15.0.7/libcxx/include/__ranges/
H A Dcopyable_box.h69 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() function
170 _LIBCPP_HIDE_FROM_ABI constexpr bool __has_value() const noexcept { return true; } in __has_value() function
H A Dnon_propagating_cache.h92 constexpr bool __has_value() const { return __value_.has_value(); } in __has_value() function
H A Dfilter_view.h80 …_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()
H A Dreverse_view.h65 if (__cached_begin_.__has_value()) in begin()
H A Ddrop_view.h86 if (__cached_begin_.__has_value()) in begin()
/llvm-project-15.0.7/libcxx/include/
H A Dfuture562 bool __has_value() const
663 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 …]