EntropyEngine::Core::IO::PackageResult
EntropyEngine::Core::IO::PackageResult
Section titled “EntropyEngine::Core::IO::PackageResult”Result type for package operations. More…
#include <PackageTypes.h>
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| bool | success() const |
| PackageResult< T > | ok(T val) |
| bool | failed() const |
| PackageResult< T > | err(PackageError e, std::string msg ="") |
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| T | value |
| std::string | errorMessage |
| PackageError | error |
Detailed Description
Section titled “Detailed Description”template <typename T >struct EntropyEngine::Core::IO::PackageResult;Result type for package operations.
Similar to std::expected but compatible with C++20.
Public Functions Documentation
Section titled “Public Functions Documentation”function success
Section titled “function success”inline bool success() constfunction ok
Section titled “function ok”static inline PackageResult< T > ok( T val)function failed
Section titled “function failed”inline bool failed() constfunction err
Section titled “function err”static inline PackageResult< T > err( PackageError e, std::string msg ="")Public Attributes Documentation
Section titled “Public Attributes Documentation”variable value
Section titled “variable value”T value {};variable errorMessage
Section titled “variable errorMessage”std::string errorMessage;variable error
Section titled “variable error”PackageError error = PackageError::None;Updated on 2026-01-26 at 17:14:35 -0500