Skip to content

Commit 1e759e8

Browse files
committed
moved tmp utility to utility folder.
1 parent fadb1b7 commit 1e759e8

File tree

6 files changed

+33
-0
lines changed

6 files changed

+33
-0
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#pragma once
2+
3+
namespace JSON
4+
{
5+
template <typename...>
6+
struct pack
7+
{
8+
using type = pack;
9+
};
10+
11+
template <unsigned I, typename Pack>
12+
struct pack_element
13+
{
14+
using type = typename pack_element <I - 1, Pack>::type;
15+
};
16+
17+
template <typename Head, typename... Tail>
18+
struct pack_element <0, pack <Head, Tail...>>
19+
{
20+
using type = Head;
21+
};
22+
23+
template <typename T>
24+
struct pack_front
25+
{
26+
};
27+
28+
template <typename Head, typename... Tail>
29+
struct pack_front <pack <Head, Tail...>>
30+
{
31+
using type = Head;
32+
};
33+
}

0 commit comments

Comments
 (0)