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

Function vector_to_array

include/pybind11/stl.h:381–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379// Based on https://en.cppreference.com/w/cpp/container/array/to_array
380template <typename ArrayType, size_t N, typename V>
381ArrayType vector_to_array(V &&v) {
382 return vector_to_array_impl<ArrayType, V>(std::forward<V>(v), make_index_sequence<N>{});
383}
384
385template <typename ArrayType, typename Value, bool Resizable, size_t Size = 0>
386struct array_caster {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected