acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
_impl.h
1//
2// Created by camilo on 22/11/22.
3//
4#pragma once
5
6
7template<typename T1, typename T2>
8inline void sort_non_negative(T1& t1, T2& t2)
9{
10
11 if (t1 < ::numeric_info<T1>::null())
12 {
13
14 return;
15
16 }
17
18 if (t2 < ::numeric_info<T2>::null())
19 {
20
21 return;
22
23 }
24
25 if (t1 > t2)
26 {
27
28 auto t = t2;
29
30 t2 = t1;
31
32 t1 = t;
33
34 }
35
36}
37
38
39
40