Skip to content

Commit 452ad8e

Browse files
committed
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
1 parent 8aca589 commit 452ad8e

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

stan/math/rev/core/profiling.hpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -116,24 +116,24 @@ class profile_info {
116116

117117
using profile_key = std::pair<std::string, std::thread::id>;
118118

119-
120119
namespace internal {
121-
struct hash_profile_key {
122-
std::size_t operator()(const profile_key& key) const {
123-
return std::hash<std::string>()(key.first)
124-
^ std::hash<std::thread::id>()(key.second);
125-
}
126-
};
127-
struct equal_profile_key {
128-
bool operator()(const profile_key& lhs, const profile_key& rhs) const {
129-
return lhs.first == rhs.first && lhs.second == rhs.second;
130-
}
131-
};
120+
struct hash_profile_key {
121+
std::size_t operator()(const profile_key& key) const {
122+
return std::hash<std::string>()(key.first)
123+
^ std::hash<std::thread::id>()(key.second);
124+
}
125+
};
126+
struct equal_profile_key {
127+
bool operator()(const profile_key& lhs, const profile_key& rhs) const {
128+
return lhs.first == rhs.first && lhs.second == rhs.second;
129+
}
130+
};
132131

133-
}
132+
} // namespace internal
134133

135-
using profile_map = tbb::concurrent_unordered_map<profile_key,
136-
profile_info, internal::hash_profile_key, internal::equal_profile_key>;
134+
using profile_map = tbb::concurrent_unordered_map<profile_key, profile_info,
135+
internal::hash_profile_key,
136+
internal::equal_profile_key>;
137137

138138
/**
139139
* Profiles C++ lines where the object is in scope.

0 commit comments

Comments
 (0)