helper struct to create an expected which is signalling an error more easily
More...
#include <iceoryx_hoofs/cxx/expected.hpp>
|
| error (const T &t) noexcept |
| constructor which creates a error helper class by copying the value of t More...
|
|
| error (T &&t) noexcept |
| constructor which creates a error helper class by moving the value of t More...
|
|
template<typename... Targs> |
| error (Targs &&... args) noexcept |
| constructor which creates a error helper class by forwarding arguments to the constructor of T More...
|
|
template<typename T>
struct iox::cxx::error< T >
helper struct to create an expected which is signalling an error more easily
- Parameters
-
T | type which the success helper class should contain cxx::expected<float> callMe() {
return cxx::error<float>(12.34f);
}
|
◆ error() [1/3]
constructor which creates a error helper class by copying the value of t
- Parameters
-
[in] | t | value which should be later stored in an expected |
◆ error() [2/3]
constructor which creates a error helper class by moving the value of t
- Parameters
-
[in] | t | value which should be later moved into an expected |
◆ error() [3/3]
template<typename T >
template<typename... Targs>
constructor which creates a error helper class by forwarding arguments to the constructor of T
- Parameters
-
[in] | args... | arguments which will be perfectly forwarded to the constructor |
The documentation for this struct was generated from the following file: