summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/datastore/datastorebase.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/vespalib/src/vespa/vespalib/datastore/datastorebase.h b/vespalib/src/vespa/vespalib/datastore/datastorebase.h
index 6af3f0ba034..bce2d2096f2 100644
--- a/vespalib/src/vespa/vespalib/datastore/datastorebase.h
+++ b/vespalib/src/vespa/vespalib/datastore/datastorebase.h
@@ -105,22 +105,22 @@ public:
void reclaim_all_memory();
template <typename EntryType, typename RefType>
- EntryType *getEntry(RefType ref) {
+ EntryType *getEntry(RefType ref) noexcept {
return static_cast<EntryType *>(_buffers[ref.bufferId()].get_buffer_relaxed()) + ref.offset();
}
template <typename EntryType, typename RefType>
- const EntryType *getEntry(RefType ref) const {
+ const EntryType *getEntry(RefType ref) const noexcept {
return static_cast<const EntryType *>(_buffers[ref.bufferId()].get_buffer_acquire()) + ref.offset();
}
template <typename EntryType, typename RefType>
- EntryType *getEntryArray(RefType ref, size_t arraySize) {
+ EntryType *getEntryArray(RefType ref, size_t arraySize) noexcept {
return static_cast<EntryType *>(_buffers[ref.bufferId()].get_buffer_relaxed()) + (ref.offset() * arraySize);
}
template <typename EntryType, typename RefType>
- const EntryType *getEntryArray(RefType ref, size_t arraySize) const {
+ const EntryType *getEntryArray(RefType ref, size_t arraySize) const noexcept {
return static_cast<const EntryType *>(_buffers[ref.bufferId()].get_buffer_acquire()) + (ref.offset() * arraySize);
}