Skip to content

Commit

Permalink
Require array index subscript for AnyView
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Feb 29, 2024
1 parent 9fa0ee7 commit 97a7dd9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/llama/Concepts.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,13 @@ namespace llama
{
cv.blobs()
} -> std::same_as<const Array<typename V::BlobType, V::Mapping::blobCount>&>;

v(std::declval<typename V::ArrayIndex>());
cv(std::declval<typename V::ArrayIndex>());
v[std::declval<typename V::ArrayIndex>()];
cv[std::declval<typename V::ArrayIndex>()];
// operator(i0, i1, ...)
// operator[i0, i1, ...]
};
#endif

Expand Down

0 comments on commit 97a7dd9

Please sign in to comment.