diff options
author | Tor Egge <Tor.Egge@online.no> | 2024-04-22 14:31:15 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2024-04-22 14:31:15 +0200 |
commit | e06f2f17471bdf54ebb4126da67dcfaa0f52a161 (patch) | |
tree | 2105e16af0ab30184fd3a48e4acf7c35707113d0 /eval | |
parent | 67b83227941ad3327207b5dbbdc9ebbf72f684f6 (diff) |
Return max distance when typed cells are invalid.
Diffstat (limited to 'eval')
-rw-r--r-- | eval/src/vespa/eval/eval/typed_cells.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/eval/src/vespa/eval/eval/typed_cells.h b/eval/src/vespa/eval/eval/typed_cells.h index 6cb8675cd5f..3dd8c30a3a9 100644 --- a/eval/src/vespa/eval/eval/typed_cells.h +++ b/eval/src/vespa/eval/eval/typed_cells.h @@ -36,6 +36,7 @@ struct TypedCells { TypedCells(const TypedCells &other) noexcept = default; TypedCells & operator= (TypedCells &&other) noexcept = default; TypedCells & operator= (const TypedCells &other) noexcept = default; + bool valid() const noexcept { return size != 0; } }; } // namespace |