Namespaces
Variants

std::generator<Ref,V,Allocator>::promise_type::unhandled_exception

From cppreference.com
 
 
Utilities library
General utilities
Relational operators (deprecated in C++20)
Integer comparison functions
(C++20)(C++20)(C++20)    
(C++20)
Swap and type operations
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
Common vocabulary types
(C++11)
(C++17)
(C++17)
(C++17)
(C++11)
(C++17)
(C++23)



 
Coroutine support
Coroutine traits
Coroutine handle
No-op coroutines
Trivial awaitables
Range generators
(C++23)
Coroutine tasks
 
Ranges library
Range adaptors
 
 
void unhandled_exception();
(since C++23)

Let x be some generator object.

If a handle referring to the coroutine whose promise object is *this is at the top of *active_ of x:

  • If the handle referring to the coroutine whose promise object is *this is the only element of *x.active_, equivalent to throw;.
  • Otherwise, assigns std::current_exception() to except_.

Otherwise, the behavior is undefined.

Exceptions

May throw.