MCPcopy Create free account
hub / github.com/pybind/pybind11 / ~OneDBufferLRefNoexcept

Method ~OneDBufferLRefNoexcept

tests/test_buffers.cpp:534–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532 py::ssize_t m_n;
533 explicit OneDBufferLRefNoexcept(py::ssize_t n) : m_data(new float[(size_t) n]()), m_n(n) {}
534 ~OneDBufferLRefNoexcept() { delete[] m_data; }
535 // Exercises def_buffer(Return (Class::*)(Args...) & noexcept)
536 py::buffer_info get_buffer() & noexcept {
537 return py::buffer_info(m_data,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected