ludus::foundation::filesystem::Result¶
Ludus Wiki · API overview · Browse API
Struct
Status and optional native error number; success has no native error.
Declared in modules/foundation/filesystem/include/ludus/foundation/filesystem/filesystem.hpp
#include <ludus/foundation/filesystem/filesystem.hpp>
struct ludus::foundation::filesystem::Result final
Fields¶
Code¶
Status ludus::foundation::filesystem::Result::Code = Status::Ok
Portable outcome.
Related types: Status
Declared in modules/foundation/filesystem/include/ludus/foundation/filesystem/filesystem.hpp
NativeCode¶
int32 ludus::foundation::filesystem::Result::NativeCode = 0
Native errno or Windows error code on failure; zero otherwise.
Related types: int32
Declared in modules/foundation/filesystem/include/ludus/foundation/filesystem/filesystem.hpp
Methods¶
Succeeded¶
bool ludus::foundation::filesystem::Result::Succeeded() const noexcept
Returns whether the operation succeeded.
Declared in modules/foundation/filesystem/include/ludus/foundation/filesystem/filesystem.hpp