Project
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
o
p
q
r
s
t
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
z
Concepts
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Symbols
a
b
c
f
g
m
o
q
r
s
t
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
a
b
c
d
k
m
n
s
v
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Concepts
Loading...
Searching...
No Matches
MakeArray.h
Go to the documentation of this file.
1
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3
// All rights not expressly granted are reserved.
4
//
5
// This software is distributed under the terms of the GNU General Public
6
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7
//
8
// In applying this license CERN does not waive the privileges and immunities
9
// granted to it by virtue of its status as an Intergovernmental Organization
10
// or submit itself to any jurisdiction.
11
12
#ifndef O2_MCH_RAW_IMPL_HELPERS_MAKE_ARRAY_H
13
#define O2_MCH_RAW_IMPL_HELPERS_MAKE_ARRAY_H
14
15
#include <array>
16
#include <type_traits>
17
18
namespace
o2::mch::raw::impl
19
{
20
21
template
<
typename
CTOR,
size_t
...
S
>
22
std::array<std::invoke_result_t<CTOR, size_t>,
sizeof
...(S)>
makeArray
(CTOR&& ctor,
23
std::index_sequence<S...>)
24
{
25
return
std::array<std::invoke_result_t<CTOR, size_t>,
sizeof
...(S)>{{ctor(
S
)...}};
26
}
22
std::array<std::invoke_result_t<CTOR, size_t>,
sizeof
...(S)>
makeArray
(CTOR&& ctor, {
…
}
27
28
template
<
size_t
N,
typename
CTOR>
29
std::array<std::invoke_result_t<CTOR, size_t>, N>
makeArray
(CTOR&& ctor)
30
{
31
return
makeArray
(std::forward<CTOR>(ctor), std::make_index_sequence<N>());
32
}
29
std::array<std::invoke_result_t<CTOR, size_t>, N>
makeArray
(CTOR&& ctor) {
…
}
33
34
}
// namespace o2::mch::raw::impl
35
#endif
o2::mch::raw::impl
Definition
PageDecoder.cxx:23
o2::mch::raw::impl::makeArray
std::array< std::invoke_result_t< CTOR, size_t >, sizeof...(S)> makeArray(CTOR &&ctor, std::index_sequence< S... >)
Definition
MakeArray.h:22
S
Definition
cxx14-test-aggregate-initialization.cxx:18
Detectors
MUON
MCH
Raw
ImplHelpers
MakeArray.h
Generated on Fri Apr 4 2025 16:08:43 for Project by
1.9.8