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

Method contains

tests/test_sequences_and_iterators.cpp:242–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240 float &operator[](size_t index) { return m_data[index]; }
241
242 bool contains(float v) const {
243 for (size_t i = 0; i < m_size; ++i) {
244 if (v == m_data[i]) {
245 return true;
246 }
247 }
248 return false;
249 }
250
251 Sequence reversed() const {
252 Sequence result(m_size);

Callers 3

TEST_SUBMODULEFunction · 0.45
TEST_SUBMODULEFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected