Template Struct success
Defined in File expected.hpp
Struct Documentation
-
template<typename T = void>
struct success helper struct to create an expected which is signalling success more easily
- Param T:
type which the success helper class should contain
cxx::expected<int, float> callMe() { //... return cxx::success<int>(55); }
Public Functions
-
success(const T &t) noexcept
constructor which creates a success helper class by copying the value of t
- Parameters:
t – [in] value which should be later stored in an expected