MCPcopy Create free account
hub / github.com/davisking/dlib / array_t

Function array_t

dlib/external/pybind11/include/pybind11/numpy.h:1159–1164  ·  view source on GitHub ↗

Delegating constructor needed when both moving and accessing in the same constructor

Source from the content-addressed store, hash-verified

1157 struct private_ctor {};
1158 // Delegating constructor needed when both moving and accessing in the same constructor
1159 array_t(private_ctor,
1160 ShapeContainer &&shape,
1161 StridesContainer &&strides,
1162 const T *ptr,
1163 handle base)
1164 : array(std::move(shape), std::move(strides), ptr, base) {}
1165
1166public:
1167 static_assert(!detail::array_info<T>::is_array, "Array types cannot be used with array_t");

Callers

nothing calls this directly

Calls 5

moveFunction · 0.85
f_stridesFunction · 0.85
itemsizeFunction · 0.85
c_stridesFunction · 0.85
handleFunction · 0.70

Tested by

no test coverage detected