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

Function swap

lab8/src/5/src/utils/stdlib.cpp:4–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

itosFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected