aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Partitioning.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Partitioning.h')
-rw-r--r--src/Partitioning.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Partitioning.h b/src/Partitioning.h
index d1887e325..9237df0fa 100644
--- a/src/Partitioning.h
+++ b/src/Partitioning.h
@@ -102,7 +102,7 @@ public:
~Partitioning() {
}
- T Partitions() const {
+ T Partitions() const noexcept {
return static_cast<T>(body->Length())-1;
}
@@ -154,7 +154,7 @@ public:
body->Delete(partition);
}
- T PositionFromPartition(T partition) const {
+ T PositionFromPartition(T partition) const noexcept {
PLATFORM_ASSERT(partition >= 0);
PLATFORM_ASSERT(partition < body->Length());
const ptrdiff_t lengthBody = body->Length();
@@ -168,7 +168,7 @@ public:
}
/// Return value in range [0 .. Partitions() - 1] even for arguments outside interval
- T PartitionFromPosition(T pos) const {
+ T PartitionFromPosition(T pos) const noexcept {
if (body->Length() <= 1)
return 0;
if (pos >= (PositionFromPartition(Partitions())))