From 249d8b72996a7fada5a59c5b88b3cb9c496bd218 Mon Sep 17 00:00:00 2001 From: cvarni Date: Sat, 13 Jul 2024 12:27:50 +0200 Subject: [PATCH] format --- .../Acts/Seeding/detail/UtilityFunctions.hpp | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/Core/include/Acts/Seeding/detail/UtilityFunctions.hpp b/Core/include/Acts/Seeding/detail/UtilityFunctions.hpp index 547ff5e9e2c..5598224f884 100644 --- a/Core/include/Acts/Seeding/detail/UtilityFunctions.hpp +++ b/Core/include/Acts/Seeding/detail/UtilityFunctions.hpp @@ -16,23 +16,24 @@ namespace Acts::details { template concept isCollectionThatSupportsPushBack = std::ranges::range && requires { - typename external_t::value_type; - } && requires(external_t coll, typename external_t::value_type val) { - coll.push_back(val); - }; + typename external_t::value_type; +} && requires(external_t coll, typename external_t::value_type val) { + coll.push_back(val); +}; template concept isCollectionThatSupportsInsert = std::ranges::range && requires { - typename external_t::value_type; - } && requires(external_t coll, typename external_t::value_type val) { - coll.insert(std::ranges::end(coll), val); - }; + typename external_t::value_type; +} && requires(external_t coll, typename external_t::value_type val) { + coll.insert(std::ranges::end(coll), val); +}; template -concept isCollectionThatSupportsEmplace = - std::ranges::range && - requires(external_t coll, args_t... vals) { coll.emplace_back(vals...); }; +concept isCollectionThatSupportsEmplace = std::ranges::range && + requires(external_t coll, args_t... vals) { + coll.emplace_back(vals...); +}; // Define some functions template @@ -47,9 +48,9 @@ void insert(Acts::details::isCollectionThatSupportsPushBack auto& storage, } template - requires(!Acts::details::isCollectionThatSupportsPushBack && - Acts::details::isCollectionThatSupportsInsert) -void insert(storage_t& storage, value_t&& value) { +requires(!Acts::details::isCollectionThatSupportsPushBack && + Acts::details::isCollectionThatSupportsInsert< + storage_t>) void insert(storage_t& storage, value_t&& value) { storage.insert(std::ranges::end(storage), std::forward(value)); }