mirror of
https://github.com/Ed94/HandmadeHero.git
synced 2024-11-10 03:44:53 -08:00
15 lines
204 B
C++
15 lines
204 B
C++
#pragma once
|
|
|
|
template< class Type >
|
|
void swap( Type& a, Type& b )
|
|
{
|
|
Type
|
|
temp = a;
|
|
a = b;
|
|
b = temp;
|
|
}
|
|
|
|
#define Zero( type ) tmpl_zero<type>()
|
|
template< class Type >
|
|
constexpr Type tmpl_zero();
|