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

Method swap

include/Eigen/Eigen/src/SparseCore/SparseCompressedBase.h:401–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399 }
400 inline operator value_type() const { return value_type(key(), value()); }
401 inline friend void swap(const StorageRef& a, const StorageRef& b) {
402 std::iter_swap(a.keyPtr(), b.keyPtr());
403 std::iter_swap(a.valuePtr(), b.valuePtr());
404 }
405
406 inline const StorageIndex& key() const { return *m_innerIndexIterator; }
407 inline StorageIndex& key() { return *m_innerIndexIterator; }

Callers

nothing calls this directly

Calls 2

keyPtrMethod · 0.80
valuePtrMethod · 0.45

Tested by

no test coverage detected