MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / swap

Function swap

example/cacheHierarchy/fkYAML/node.hpp:2426–2430  ·  view source on GitHub ↗

@brief Swaps data with the given basic_str_view object. @param other A basic_str_view object to swap data with.

Source from the content-addressed store, hash-verified

2424 /// @brief Swaps data with the given basic_str_view object.
2425 /// @param other A basic_str_view object to swap data with.
2426 void swap(basic_str_view& other) noexcept {
2427 auto tmp = *this;
2428 *this = other;
2429 other = tmp;
2430 }
2431
2432 /// @brief Copys the referenced character sequence values from `pos` by `n` size.
2433 /// @warning Throws an fkyaml::out_of_range exception if the given `pos` is bigger than the length.

Callers

nothing calls this directly

Calls 2

noexceptFunction · 0.85
swapMethod · 0.45

Tested by

no test coverage detected