helper struct to create an expected which is signalling success more easily
More...
#include <expected.hpp>
|
| success (const T &t) noexcept |
| constructor which creates a success helper class by copying the value of t More...
|
|
| success (T &&t) noexcept |
| constructor which creates a success helper class by moving the value of t More...
|
|
template<typename... Targs> |
| success (Targs &&... args) noexcept |
| constructor which creates a success helper class by forwarding arguments to the constructor of T More...
|
|
template<typename T = void>
struct iox::cxx::success< T >
helper struct to create an expected which is signalling success more easily
- Parameters
-
T | type which the success helper class should contain cxx::expected<int, float> callMe() {
return cxx::success<int>(55);
}
|
◆ success() [1/3]
constructor which creates a success helper class by copying the value of t
- Parameters
-
[in] | t | value which should be later stored in an expected |
◆ success() [2/3]
constructor which creates a success helper class by moving the value of t
- Parameters
-
[in] | t | value which should be later moved into an expected |
◆ success() [3/3]
template<typename T >
template<typename... Targs>
constructor which creates a success 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 files:
- iceoryx_utils/cxx/expected.hpp
- iceoryx_utils/internal/cxx/expected.inl