JKQTPlotter trunk/v5.0.0
an extensive Qt5+Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
|
an "expected" datatype, which can either represent a function result of type T
or an error of type E
More...
#include <jkqtpexpected.h>
Public Member Functions | |
JKQTPExpected ()=delete | |
JKQTPExpected (const JKQTPExpected< T, E > &other)=default | |
JKQTPExpected (const T &value_) | |
JKQTPExpected (JKQTPExpectedUnexpectedType, const E &error_) | |
const E & | error () const |
bool | has_value () const |
operator bool () const | |
const T & | value () const |
Private Attributes | |
const E | m_error |
const bool | m_hasValue |
const T | m_value |
an "expected" datatype, which can either represent a function result of type T
or an error of type E
Usage example:
|
delete |
|
inline |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |