summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-06-01 14:08:26 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-06-01 14:08:26 +0100
commit950cf865ba59b50f7ea0589b26391080d8974d25 (patch)
tree0fd6e173b1f6f73ae9c3ff748119158b88b5fe8c /lib
parentAdd missing include (diff)
downloadilt-950cf865ba59b50f7ea0589b26391080d8974d25.tar.bz2
ilt-950cf865ba59b50f7ea0589b26391080d8974d25.tar.xz
ilt-950cf865ba59b50f7ea0589b26391080d8974d25.zip
Reformat with new clang-format
Diffstat (limited to 'lib')
-rw-r--r--lib/collections.h8
-rw-r--r--lib/enumDetails.h4
2 files changed, 4 insertions, 8 deletions
diff --git a/lib/collections.h b/lib/collections.h
index 5711fc3..ea5d5dc 100644
--- a/lib/collections.h
+++ b/lib/collections.h
@@ -10,12 +10,8 @@
template<typename T, typename E>
concept SequentialCollection = requires(T c) {
- {
- c.size()
- } -> std::integral;
- {
- c.data()
- } -> std::same_as<const E *>;
+ { c.size() } -> std::integral;
+ { c.data() } -> std::same_as<const E *>;
};
template<typename T>
concept IterableCollection = std::is_same_v<decltype(std::declval<T>().begin()), decltype(std::declval<T>().end())>;
diff --git a/lib/enumDetails.h b/lib/enumDetails.h
index b6ff046..c68f7e8 100644
--- a/lib/enumDetails.h
+++ b/lib/enumDetails.h
@@ -108,8 +108,8 @@ private:
constexpr static auto valid_count {std::count_if(valid_flags.begin(), valid_flags.end(), std::identity {})};
constexpr static auto
- lookup(const auto key, const auto & search, const auto & out)
- -> std::optional<typename std::decay_t<decltype(out)>::value_type>
+ lookup(const auto key, const auto & search,
+ const auto & out) -> std::optional<typename std::decay_t<decltype(out)>::value_type>
{
if (const auto itr = std::find(search.begin(), search.end(), key); itr != search.end()) {
return out[static_cast<std::size_t>(std::distance(search.begin(), itr))];