Rcpp Version 1.0.14
Loading...
Searching...
No Matches
index_sequence.h
Go to the documentation of this file.
1#ifndef RCPP_TRAITS_INDEX_SEQUENCE_H
2#define RCPP_TRAITS_INDEX_SEQUENCE_H
3
4
5#if defined(HAS_VARIADIC_TEMPLATES)
6
7namespace Rcpp {
8namespace traits {
14 template <int...>
15 struct index_sequence {};
16
17 template <int N, int... Is>
18 struct make_index_sequence : make_index_sequence<N-1, N-1, Is...> {};
19
20 template <int... Is>
21 struct make_index_sequence<0, Is...> : index_sequence<Is...> {};
22}
23}
24
25#endif
26
27#endif
Rcpp API.
Definition algo.h:28
T as(SEXP x)
Definition as.h:151