diff options
| author | Hannes Schulze <haschu0103@outlook.de> | 2025-02-06 19:57:16 +0100 |
|---|---|---|
| committer | Hannes Schulze <haschu0103@outlook.de> | 2025-02-06 19:57:16 +0100 |
| commit | da7032b81a37a6c591d69d9fe72715cac6d0c37c (patch) | |
| tree | 90b36e275d3d8771ea6baf653933b84168644c2a /lib/nes/common/containers/span.hh | |
| parent | 64ebfde8bcd6408e3b6925624e8680c314db6efc (diff) | |
whatever
Diffstat (limited to 'lib/nes/common/containers/span.hh')
| -rw-r--r-- | lib/nes/common/containers/span.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/nes/common/containers/span.hh b/lib/nes/common/containers/span.hh index 6779c37..4e66eb8 100644 --- a/lib/nes/common/containers/span.hh +++ b/lib/nes/common/containers/span.hh @@ -65,6 +65,7 @@ namespace nes auto get_data() const -> T* { return data_; } auto get_length() const -> u32 { return length_; } + auto is_empty() const -> bool { return length_ == 0; } auto begin() const -> iterator { return data_; } auto end() const -> iterator { return data_ + length_; } |
