A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/language/../error/error_code/../make_exception_ptr.html below:

std::make_exception_ptr - cppreference.com

(since C++11)
(constexpr since C++26)

Creates an std::exception_ptr that holds a reference to a copy of e. This is done as if executing the following code:

[edit] Parameters e - exception object to create a reference to the copy of [edit] 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).

[edit] Notes

The parameter is passed by value and is subject to slicing.

[edit] Example [edit] See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4