SAL
A C++ library for spatial audio.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
sal
include
array.h
Go to the documentation of this file.
1
/*
2
array.h
3
Spatial Audio Library (SAL)
4
Copyright (c) 2011, Enzo De Sena
5
All rights reserved.
6
7
Authors: Enzo De Sena, enzodesena@gmail.com
8
9
This file contains several types, macros and supporting classes definitions.
10
11
*/
12
13
#ifndef SAL_ARRAY_H
14
#define SAL_ARRAY_H
15
16
#include "
salconstants.h
"
17
18
namespace
sal {
19
20
template
<
typename
T, std::
size_t
N>
21
class
Array
{
22
public
:
23
T
elems
[N];
24
25
T&
operator[]
(std::size_t i) {
26
ASSERT(i < N);
27
return
elems
[i];
28
}
29
};
30
31
}
// namespace sal
32
33
#endif
Generated on Tue Mar 31 2020 18:28:03 for SAL by
1.8.2