mirror of
https://github.com/boostorg/leaf.git
synced 2026-02-14 00:42:36 +00:00
22 lines
485 B
Plaintext
22 lines
485 B
Plaintext
.#include <boost/leaf/try.hpp>
|
|
[source,c++]
|
|
----
|
|
namespace boost { namespace leaf {
|
|
|
|
template <class TryBlock, class... Handler>
|
|
decltype(std::declval<TryBlock>()()) try_( TryBlock && try_block, Handler && ... handler );
|
|
|
|
template <class E, typename deduced-type<E>::type... V>
|
|
struct match;
|
|
|
|
template <class... Ex>
|
|
struct catch_;
|
|
|
|
error_id get_error_id( std::exception const & ex ) noexcept;
|
|
|
|
} }
|
|
----
|
|
|
|
[.text-right]
|
|
<<try_>> | <<match>> | <<catch_>> | <<get_error_id>>
|