mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-24 14:15:11 +00:00
Inconsistent comments between 2 templates of unchecked()
. (#4519)
This comment is unrelated to having T in tparam or not. Probably a typo. Copied the correct one here. Resolve https://github.com/pybind/pybind11/issues/4518
This commit is contained in:
parent
68211d41c1
commit
a19daeac16
@ -1121,10 +1121,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 & {
|
||||||
|
Loading…
Reference in New Issue
Block a user