MCPcopy Create free account
hub / github.com/YatSenOS/YatSenOS-Tutorial-Volume-1 / swap

Function swap

lab6/src/3/src/utils/stdlib.cpp:4–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2
3template<typename T>
4void swap(T &x, T &y) {
5 T z = x;
6 x = y;
7 y = z;
8}
9
10
11void itos(char *numStr, uint32 num, uint32 mod) {

Callers 1

itosFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected