From 3c9ffb32d1fee8bd5c55ad7213f304ccb4b13e42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Ch=C4=99tkowski?= Date: Tue, 5 Nov 2024 20:00:07 +0100 Subject: [PATCH] Style issues --- include/dr/mp/algorithms/for_each.hpp | 6 +++--- include/dr/mp/halo.hpp | 8 ++++---- include/dr/mp/halo/instance.hpp | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/dr/mp/algorithms/for_each.hpp b/include/dr/mp/algorithms/for_each.hpp index ef624e7c3e..2b1bafe1c7 100644 --- a/include/dr/mp/algorithms/for_each.hpp +++ b/include/dr/mp/algorithms/for_each.hpp @@ -77,7 +77,7 @@ namespace __detail { auto zipped = zip_view(seg0_begin, seg0_end); auto distance = zipped | std::views::transform(sub); - if ((distance | std::views::filter(is_zero)).empty()) + if (rng::empty(distance | std::views::filter(is_zero))) return; auto seg_infos = dr::__detail::tuple_transform(segs, [begin](auto &&seg) { @@ -123,7 +123,7 @@ namespace __detail { auto zipped = zip_view(seg0_begin, seg0_end); auto distance = zipped | std::views::transform(sub); - if ((distance | std::views::filter(is_zero)).empty()) + if (rng::empty(distance | std::views::filter(is_zero))) return; auto seg_infos = dr::__detail::tuple_transform(segs, [&begin](auto &&seg) { @@ -176,7 +176,7 @@ namespace __detail { auto zipped = zip_view(seg0_begin, seg0_end); auto distance = zipped | std::views::transform(sub); - if ((distance | std::views::filter(is_zero)).empty()) + if (rng::empty(distance | std::views::filter(is_zero))) return; auto seg_infos = dr::__detail::tuple_transform(segs, [&begin](auto &&seg) { diff --git a/include/dr/mp/halo.hpp b/include/dr/mp/halo.hpp index 53cabb853c..cdf884f169 100644 --- a/include/dr/mp/halo.hpp +++ b/include/dr/mp/halo.hpp @@ -4,7 +4,7 @@ #pragma once -#include "halo/halo.hpp" -#include "halo/group.hpp" -#include "halo/instance.hpp" -#include "halo/format.hpp" +#include +#include +#include +#include diff --git a/include/dr/mp/halo/instance.hpp b/include/dr/mp/halo/instance.hpp index 5fdb4555a1..4541962135 100644 --- a/include/dr/mp/halo/instance.hpp +++ b/include/dr/mp/halo/instance.hpp @@ -6,8 +6,8 @@ #include #include -#include "halo.hpp" -#include "group.hpp" +#include +#include namespace dr::mp { template