HandmadeHero/project/platform/generics.hpp

11 lines
113 B
C++
Raw Normal View History

2023-09-17 18:20:11 -07:00
#pragma once
template< class Type >
void swap( Type& a, Type& b )
{
Type
temp = a;
a = b;
b = temp;
}