|
iceoryx_hoofs 2.0.6
|
helper struct to create an expected which is signalling an error more easily More...
#include <iceoryx_hoofs/cxx/expected.hpp>
Public Member Functions | |
| error (const T &t) noexcept | |
| constructor which creates a error helper class by copying the value of t | |
| error (T &&t) noexcept | |
| constructor which creates a error helper class by moving the value of t | |
| template<typename... Targs> | |
| error (Targs &&... args) noexcept | |
| constructor which creates a error helper class by forwarding arguments to the constructor of T | |
Public Attributes | |
| T | value |
helper struct to create an expected which is signalling an error more easily
| T | type which the success helper class should contain cxx::expected<float> callMe() {
//...
return cxx::error<float>(12.34f);
}
helper struct to create an expected which is signalling an error more easily Definition expected.hpp:92 |
|
noexcept |
constructor which creates a error helper class by copying the value of t
| [in] | t | value which should be later stored in an expected |
|
noexcept |
constructor which creates a error helper class by moving the value of t
| [in] | t | value which should be later moved into an expected |
|
noexcept |
constructor which creates a error helper class by forwarding arguments to the constructor of T
| [in] | args... | arguments which will be perfectly forwarded to the constructor |