Skip to content

EntropyEngine::Core::IO::PackageResult

Result type for package operations. More…

#include <PackageTypes.h>

Name
boolsuccess() const
PackageResult< T >ok(T val)
boolfailed() const
PackageResult< T >err(PackageError e, std::string msg ="")
Name
Tvalue
std::stringerrorMessage
PackageErrorerror
template <typename T >
struct EntropyEngine::Core::IO::PackageResult;

Result type for package operations.

Similar to std::expected but compatible with C++20.

inline bool success() const
static inline PackageResult< T > ok(
T val
)
inline bool failed() const
static inline PackageResult< T > err(
PackageError e,
std::string msg =""
)
T value {};
std::string errorMessage;
PackageError error = PackageError::None;

Updated on 2026-01-26 at 17:14:35 -0500