diff options
Diffstat (limited to 'arm_compute/core/Types.h')
-rw-r--r-- | arm_compute/core/Types.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arm_compute/core/Types.h b/arm_compute/core/Types.h index c0e0683fe6..42e42cc2d6 100644 --- a/arm_compute/core/Types.h +++ b/arm_compute/core/Types.h @@ -337,6 +337,28 @@ struct BorderSize return size; } + /** Check equality with another BorderSize struct + * + * @param[in] rhs other struct to check against + * + * @return true if they are equal + */ + bool operator==(const BorderSize &rhs) + { + return (top == rhs.top) && (right == rhs.right) && (bottom == rhs.bottom) && (left == rhs.left); + } + + /** Check non-equality with another BorderSize struct + * + * @param[in] rhs other struct to check against + * + * @return true if they are different + */ + bool operator!=(const BorderSize &rhs) + { + return !(*this == rhs); + } + /** Limit this border size. * * @param[in] limit Border size to limit this border size to. |