Skip to content

Commit 8d9914f

Browse files
author
Clang Robot
committed
🎨 Committing clang-format changes
1 parent aeac6c2 commit 8d9914f

9 files changed

Lines changed: 290 additions & 391 deletions

File tree

include/json2cpp/constexpr_json.hpp

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ struct json
7171
}
7272
}
7373

74-
constexpr const json *operator->() const {
75-
return &(*(*this));
76-
}
74+
constexpr const json *operator->() const { return &(*(*this)); }
7775

7876
constexpr std::size_t index() const { return index_; }
7977

@@ -177,13 +175,10 @@ struct json
177175
}
178176
}
179177

180-
constexpr iterator find(const std::string_view key) const
178+
constexpr iterator find(const std::string_view key) const
181179
{
182-
for (auto itr = begin(); itr != end(); ++itr)
183-
{
184-
if (itr.key() == key) {
185-
return itr;
186-
}
180+
for (auto itr = begin(); itr != end(); ++itr) {
181+
if (itr.key() == key) { return itr; }
187182
}
188183

189184
return end();

0 commit comments

Comments
 (0)