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

Function reserve_maybe

include/pybind11/stl.h:165–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163private:
164 template <typename T = Type, enable_if_t<has_reserve_method<T>::value, int> = 0>
165 void reserve_maybe(const anyset &s, Type *) {
166 value.reserve(s.size());
167 }
168 void reserve_maybe(const anyset &, void *) {}
169
170 bool convert_iterable(const iterable &itbl, bool convert) {

Callers 3

convert_anysetFunction · 0.85
convert_elementsMethod · 0.85
convert_elementsMethod · 0.85

Calls 2

reserveMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected