Home | History | Annotate | Download | only in coroutine.handle.prom

Lines Matching defs:Promise

15 // template <class Promise>
16 // struct coroutine_handle<Promise>;
18 // Promise& promise() const
51 assert(&h.promise() == this);
52 assert(&h2.promise() == this);
53 assert(&h3.promise() == this);
64 template <class Promise>
65 void do_test(coro::coroutine_handle<Promise>&& H) {
69 ASSERT_SAME_TYPE(decltype(H.promise()), Promise&);
70 LIBCPP_ASSERT_NOT_NOEXCEPT(H.promise());
74 ASSERT_SAME_TYPE(decltype(CH.promise()), Promise&);
75 LIBCPP_ASSERT_NOT_NOEXCEPT(CH.promise());