| 133 | } // namespace |
| 134 | |
| 135 | MMap::MMap(const std::filesystem::path &Path) noexcept : Handle(nullptr) { |
| 136 | auto NativeHandle = std::make_unique<Implement>(Path); |
| 137 | if (!NativeHandle->ok()) { |
| 138 | return; |
| 139 | } |
| 140 | |
| 141 | Handle = NativeHandle.release(); |
| 142 | } |
| 143 | |
| 144 | MMap::~MMap() noexcept { |
| 145 | if (!Handle) { |