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

Method size

include/pybind11/detail/argument_vector.h:138–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 small_vector &operator=(small_vector &&) noexcept = default;
137
138 std::size_t size() const {
139 if (is_inline()) {
140 return m_repr.iarray.size;
141 }
142 return m_repr.hvector.vec.size();
143 }
144
145 T const *data() const {
146 if (is_inline()) {

Callers 9

eigen_array_castFunction · 0.45
sizeMethod · 0.45
operator[]Method · 0.45
~ref_small_vectorMethod · 0.45
ref_small_vectorClass · 0.45
sizeMethod · 0.45
num_registered_instancesFunction · 0.45
pybind11_meta_deallocFunction · 0.45
unicode_from_fs_nativeFunction · 0.45

Calls 1

is_inlineFunction · 0.85

Tested by

no test coverage detected