MCPcopy Create free account
hub / github.com/pybind/pybind11 / data

Method data

include/pybind11/detail/argument_vector.h:145–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143 }
144
145 T const *data() const {
146 if (is_inline()) {
147 return m_repr.iarray.arr.data();
148 }
149 return m_repr.hvector.vec.data();
150 }
151
152 T &operator[](std::size_t idx) {
153 assert(idx < size());

Callers 2

dataMethod · 0.45
pybind11_getbufferFunction · 0.45

Calls 1

is_inlineFunction · 0.85

Tested by

no test coverage detected