deal.II version GIT relicensing-2206-gaa53ff9447 2024-12-02 09:10:00+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
Functions
SUNDIALS::Utilities Namespace Reference

Functions

template<typename F , typename... Args>
int call_and_possibly_capture_exception (const F &f, std::exception_ptr &eptr, Args &&...args)
 

Function Documentation

◆ call_and_possibly_capture_exception()

template<typename F , typename... Args>
int SUNDIALS::Utilities::call_and_possibly_capture_exception ( const F &  f,
std::exception_ptr &  eptr,
Args &&...  args 
)

A function that calls the function object given by its first argument with the set of arguments following at the end. If the call returns regularly, the current function returns zero to indicate success. If the call fails with an exception of type RecoverableUserCallbackError, then the current function returns 1 to indicate that the called function object thought the error it encountered is recoverable. If the call fails with any other exception, then the current function returns with an error code of -1. In each of the last two cases, the exception thrown by f is captured and eptr is set to the exception. In case of success, eptr is set to nullptr.

Definition at line 45 of file utilities.h.