Add noexcept to basic functions

This commit is contained in:
jeremy 2022-11-30 16:49:32 +01:00
parent 5e64b19745
commit b0b8c0a5c9

View File

@ -49,9 +49,9 @@ class FrameWithValidity final : public Frame<TypedValue> {
FrameWithValidity(int64_t size, utils::MemoryResource *memory) : Frame<TypedValue>(size, memory), is_valid_(false) {}
bool IsValid() const { return is_valid_; }
void MakeValid() { is_valid_ = true; }
void MakeInvalid() { is_valid_ = false; }
bool IsValid() const noexcept { return is_valid_; }
void MakeValid() noexcept { is_valid_ = true; }
void MakeInvalid() noexcept { is_valid_ = false; }
private:
bool is_valid_;