Skip to content

Commit e4b6c5c

Browse files
committed
format code
1 parent 215580e commit e4b6c5c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

parallel_hashmap/phmap_dump.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include <functional>
21
#if !defined(phmap_dump_h_guard_)
32
#define phmap_dump_h_guard_
43

@@ -22,7 +21,7 @@
2221

2322
#include <iostream>
2423
#include <fstream>
25-
#include <sstream>
24+
#include <functional>
2625
#include "phmap.h"
2726
namespace phmap
2827
{
@@ -169,8 +168,10 @@ bool parallel_hash_set<N, RefSet, Mtx_, Policy, Hash, Eq, Alloc>::phmap_load(Inp
169168
class BinaryOutputArchive {
170169
public:
171170
BinaryOutputArchive(const char *file_path) {
172-
os_ = new std::ofstream(file_path, std::ofstream::out | std::ofstream::trunc | std::ofstream::binary);
173-
destruct_ = [this]() { delete os_; };
171+
os_ = new std::ofstream(file_path, std::ofstream::out |
172+
std::ofstream::trunc |
173+
std::ofstream::binary);
174+
destruct_ = [this]() { delete os_; };
174175
}
175176

176177
BinaryOutputArchive(std::ostream &os) : os_(&os) {}
@@ -203,7 +204,7 @@ class BinaryOutputArchive {
203204
}
204205

205206
private:
206-
std::ostream* os_{nullptr};
207+
std::ostream* os_;
207208
std::function<void()> destruct_;
208209
};
209210

@@ -246,7 +247,7 @@ class BinaryInputArchive {
246247
}
247248

248249
private:
249-
std::istream* is_{nullptr};
250+
std::istream* is_;
250251
std::function<void()> destruct_;
251252
};
252253

0 commit comments

Comments
 (0)