Gromacs
2022.2
|
#include <gromacs/utility/exceptions.h>
Stores additional context information for exceptions.
Tag | Tag type (typically, a forward-declared struct that is not defined anywhere) that makes all ExceptionInfo types unique, even if they have the same value type. |
T | Type of value this object stores. Needs to be copy-constructible. |
Example of declaring a new info type that stores an integer:
Public Types | |
typedef T | value_type |
The type of value stored in this object. | |
Public Member Functions | |
ExceptionInfo (const T &value) | |
Creates an info object from given value. | |
const T & | value () const |
Returns the stored value. | |
Public Member Functions inherited from gmx::internal::IExceptionInfo | |
IExceptionInfo (const IExceptionInfo &)=default | |
IExceptionInfo (IExceptionInfo &&) noexcept=default | |
IExceptionInfo & | operator= (const IExceptionInfo &)=default |
IExceptionInfo & | operator= (IExceptionInfo &&) noexcept=default |