MCPcopy Create free account
hub / github.com/ConorWilliams/libfork / swap

Method swap

include/libfork/core/impl/stack.hpp:240–243  ·  view source on GitHub ↗

* @brief Swap `lhs` with `rhs. */

Source from the content-addressed store, hash-verified

238 * @brief Swap `lhs` with `rhs.
239 */
240 inline friend void swap(stack &lhs, stack &rhs) noexcept {
241 using std::swap;
242 swap(lhs.m_fib, rhs.m_fib);
243 }
244
245 /**
246 * @brief Destroy the stack object.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected