std::make_exception_ptr(3)
π NAME π
Okay bestie, welcome to the std::make_exception_ptr(3) page from the C++ Standard Libary manual π
. The name on the tin is literally:
std::make_exception_ptr β std::make_exception_ptr
β¨ Synopsis β¨
Defined in header <exception>
template< class E > (since C++11)
std::exception_ptr make_exception_ptr( E e ) noexcept;
So this one creates an std::exception_ptr that holds a reference to a copy of e π. It does that as if this code was executing:
try {
throw e;
} catch(...) {
return std::current_exception();
}
πΈ Parameters πΈ
Literally none: (none) π«Ά.
π¦ Return value π¦
An instance of std::exception_ptr holding a reference to the copy of e, or to an instance of std::bad_alloc or to an instance of std::bad_exception (see std::current_exception) β¨.
π Notes π
The parameter is passed by value and is subject to slicing π. Thatβs the note, bestie β slicing is the vibe check it can fail, so keep it in mind π .
π See also π
current_exceptionβ captures the current exception in astd::exception_ptr(C++11) (function)
Source/version/date: http://cppreference.com β’ 2024.06.10 β’ std::make_exception_ptr(3) β bye bestie, slay your exceptions πβ¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms