Rcpp Version 1.1.2
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
4namespace Rcpp {
5namespace traits {
11 template <int...>
12 struct index_sequence {};
13
14 template <int N, int... Is>
15 struct make_index_sequence : make_index_sequence<N-1, N-1, Is...> {};
16
17 template <int... Is>
18 struct make_index_sequence<0, Is...> : index_sequence<Is...> {};
19}
20}
21
22#endif
traits used to dispatch wrap
Definition Date.h:27
Rcpp API.
Definition algo.h:28