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