From f30b5056ccffe31a0a490c7e6c74a565d4cddcf5 Mon Sep 17 00:00:00 2001 From: Richard Thier Date: Thu, 11 Mar 2021 22:39:53 +0100 Subject: [PATCH] noexcept --- magyarsort.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/magyarsort.h b/magyarsort.h index 46b3b37..cebd485 100644 --- a/magyarsort.h +++ b/magyarsort.h @@ -51,7 +51,7 @@ namespace MagyarSort { } }; - static inline void countOccurences(uint32_t arr[], size_t size, size_t *radicsOut) { + static inline void countOccurences(uint32_t arr[], size_t size, size_t *radicsOut) noexcept { for(size_t i = 0; i < size; ++i) { // Creates no object, struct is empty OccurenceMagic(arr, i, radicsOut); @@ -59,7 +59,7 @@ namespace MagyarSort { } template - static inline void prefixSum(size_t *radics) { + static inline void prefixSum(size_t *radics) noexcept { static constexpr int DSTART = DIGIT_CHOICE * DIGIT_RANGE; size_t prev = 0; for(int i = DSTART; i < (DSTART + DIGIT_RANGE); ++i) {