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

Method reversed

tests/test_sequences_and_iterators.cpp:251–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249 }
250
251 Sequence reversed() const {
252 Sequence result(m_size);
253 for (size_t i = 0; i < m_size; ++i) {
254 result[m_size - i - 1] = m_data[i];
255 }
256 return result;
257 }
258
259 size_t size() const { return m_size; }
260

Callers 1

TEST_SUBMODULEFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected