From 9bb25445f574a69df97af8909a12658230fa78cd Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Thu, 22 May 2025 10:54:02 +0200 Subject: [PATCH] formatting --- slsSupportLib/include/sls/StaticVector.h | 8 +++++--- slsSupportLib/tests/test-StaticVector.cpp | 4 ---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/slsSupportLib/include/sls/StaticVector.h b/slsSupportLib/include/sls/StaticVector.h index cf72aa05d..931ea17fa 100644 --- a/slsSupportLib/include/sls/StaticVector.h +++ b/slsSupportLib/include/sls/StaticVector.h @@ -113,10 +113,12 @@ template class StaticVector { // auto begin() noexcept -> decltype(data_.begin()) { return data_.begin(); // } const_iterator begin() const noexcept { return data_.begin(); } - iterator end() noexcept { return data_.begin()+current_size; } - const_iterator end() const noexcept { return data_.begin()+current_size; } + iterator end() noexcept { return data_.begin() + current_size; } + const_iterator end() const noexcept { return data_.begin() + current_size; } const_iterator cbegin() const noexcept { return data_.cbegin(); } - const_iterator cend() const noexcept { return data_.cbegin()+current_size; } + const_iterator cend() const noexcept { + return data_.cbegin() + current_size; + } void size_check(size_type s) const { if (s > Capacity) { diff --git a/slsSupportLib/tests/test-StaticVector.cpp b/slsSupportLib/tests/test-StaticVector.cpp index 2ff548fce..fc40f1a0f 100644 --- a/slsSupportLib/tests/test-StaticVector.cpp +++ b/slsSupportLib/tests/test-StaticVector.cpp @@ -8,15 +8,12 @@ #include #include - using sls::StaticVector; TEST_CASE("StaticVector is a container") { REQUIRE(sls::is_container>::value == true); } - - TEST_CASE("Comparing StaticVector containers") { StaticVector a{0, 1, 2}; StaticVector b{0, 1, 2}; @@ -344,4 +341,3 @@ TEST_CASE("StaticVector stream") { oss << vec; REQUIRE(oss.str() == "[33, 85667, 2]"); } -