MCPcopy Create free account
hub / github.com/comaps/comaps / swap

Method swap

libs/base/buffer_vector.hpp:290–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288 }
289
290 void swap(buffer_vector & rhs)
291 {
292 m_dynamic.swap(rhs.m_dynamic);
293 Swap(m_size, rhs.m_size);
294 for (size_t i = 0; i < N; ++i)
295 Swap(m_static[i], rhs.m_static[i]);
296 }
297
298 /// By value to be consistent with m_vec.push_back(m_vec[0]).
299 void push_back(T t)

Callers 1

swapFunction · 0.45

Calls 1

SwapFunction · 0.85

Tested by

no test coverage detected