iceoryx_hoofs 2.0.8
Loading...
Searching...
No Matches
iox::cxx::success< void > Struct Reference

helper struct to create an error only expected which is signalling success more easily More...

#include <iceoryx_hoofs/cxx/expected.hpp>

Public Member Functions

 success (const void &t) noexcept
 constructor which creates a success helper class by copying the value of t

Public Attributes

void value

Detailed Description

helper struct to create an error only expected which is signalling success more easily

cxx::expected<float> callMe() {
//...
return cxx::success<>();
}
helper struct to create an expected which is signalling success more easily
Definition expected.hpp:49

Constructor & Destructor Documentation

◆ success()

iox::cxx::success< void >::success ( const void & t)
noexcept

constructor which creates a success helper class by copying the value of t

Parameters
[in]tvalue which should be later stored in an expected

The documentation for this struct was generated from the following file: