diff options
Diffstat (limited to 'source/core/slang-array-view.h')
| -rw-r--r-- | source/core/slang-array-view.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/core/slang-array-view.h b/source/core/slang-array-view.h index f6ac92004..99609ef69 100644 --- a/source/core/slang-array-view.h +++ b/source/core/slang-array-view.h @@ -72,6 +72,11 @@ namespace Slang return -1; } + bool containsMemory(const ThisType& rhs) const + { + return rhs.getBuffer() >= getBuffer() && rhs.end() <= end(); + } + bool operator==(const ThisType& rhs) const { if (&rhs == this) |
