Skip to content

Commit

Permalink
add memory_range::empty() method
Browse files Browse the repository at this point in the history
  • Loading branch information
wbenny committed Mar 13, 2019
1 parent 830e51b commit 4d934b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hvpp/hvpp/ia32/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ class memory_range
std::byte* end() const noexcept { return end_; }
void* data() const noexcept { return begin_; }
size_t size() const noexcept { return end_ - begin_; }
bool empty() const noexcept { return size() == 0; }

private:
std::byte* begin_;
Expand Down

0 comments on commit 4d934b0

Please sign in to comment.