mirror of
https://github.com/Ed94/HandmadeHero.git
synced 2024-11-13 21:04:51 -08:00
11 lines
113 B
C++
11 lines
113 B
C++
|
#pragma once
|
||
|
|
||
|
template< class Type >
|
||
|
void swap( Type& a, Type& b )
|
||
|
{
|
||
|
Type
|
||
|
temp = a;
|
||
|
a = b;
|
||
|
b = temp;
|
||
|
}
|