From e4b6c5c852f3b9ab9a721ae36d6eba020116476e Mon Sep 17 00:00:00 2001 From: tang-hi Date: Sun, 19 Jan 2025 10:19:25 +0800 Subject: [PATCH] format code --- parallel_hashmap/phmap_dump.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/parallel_hashmap/phmap_dump.h b/parallel_hashmap/phmap_dump.h index d097608..197b92f 100644 --- a/parallel_hashmap/phmap_dump.h +++ b/parallel_hashmap/phmap_dump.h @@ -1,4 +1,3 @@ -#include #if !defined(phmap_dump_h_guard_) #define phmap_dump_h_guard_ @@ -22,7 +21,7 @@ #include #include -#include +#include #include "phmap.h" namespace phmap { @@ -169,8 +168,10 @@ bool parallel_hash_set::phmap_load(Inp class BinaryOutputArchive { public: BinaryOutputArchive(const char *file_path) { - os_ = new std::ofstream(file_path, std::ofstream::out | std::ofstream::trunc | std::ofstream::binary); - destruct_ = [this]() { delete os_; }; + os_ = new std::ofstream(file_path, std::ofstream::out | + std::ofstream::trunc | + std::ofstream::binary); + destruct_ = [this]() { delete os_; }; } BinaryOutputArchive(std::ostream &os) : os_(&os) {} @@ -203,7 +204,7 @@ class BinaryOutputArchive { } private: - std::ostream* os_{nullptr}; + std::ostream* os_; std::function destruct_; }; @@ -246,7 +247,7 @@ class BinaryInputArchive { } private: - std::istream* is_{nullptr}; + std::istream* is_; std::function destruct_; };