+namespace internal {
+
+struct GMappedFileDeleter final
+{
+ void operator()(GMappedFile * const f)
+ {
+ g_mapped_file_unref(f);
+ }
+};
+
+} /* namespace internal */
+
+using GMappedFileUP = std::unique_ptr<GMappedFile, internal::GMappedFileDeleter>;
+