ViewVC Help
View File
|
Revision Log
|
Show Annotations
|
Download File
/
cvs
/
deliantra
/
dclient
/
include
/
adt
/
array.h
Revision:
1.1
Committed:
Sun Oct 17 08:14:44 2010 UTC
(13 years, 8 months ago) by
sf-pippijn
Content type:
text/plain
Branch:
MAIN
CVS Tags:
HEAD
Log Message:
initial import
File Contents
#
Content
1
#pragma once
2
3
#include <array>
4
5
template<typename T, typename... Args>
6
std::array<T, sizeof... (Args) + 1>
7
array (T const &first, Args const &...rest)
8
{
9
return std::array<T, sizeof... (Args) + 1> { { first, rest... } };
10
}