Merge branch 'pybind:master' into master

This commit is contained in:
Steve R. Sun 2023-02-21 08:31:54 +08:00 committed by GitHub
commit f6cf8ce91c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1270,10 +1270,10 @@ public:
/** /**
* Returns a proxy object that provides const access to the array's data without bounds or * Returns a proxy object that provides const access to the array's data without bounds or
* dimensionality checking. Unlike `unchecked()`, this does not require that the underlying * dimensionality checking. Unlike `mutable_unchecked()`, this does not require that the
* array have the `writable` flag. Use with care: the array must not be destroyed or reshaped * underlying array have the `writable` flag. Use with care: the array must not be destroyed
* for the duration of the returned object, and the caller must take care not to access invalid * or reshaped for the duration of the returned object, and the caller must take care not to
* dimensions or dimension indices. * access invalid dimensions or dimension indices.
*/ */
template <ssize_t Dims = -1> template <ssize_t Dims = -1>
detail::unchecked_reference<T, Dims> unchecked() const & { detail::unchecked_reference<T, Dims> unchecked() const & {