Rcpp Version 1.1.2
Loading...
Searching...
No Matches
is_bool.h
Go to the documentation of this file.
1#ifndef Rcpp__traits__is_bool__h
2#define Rcpp__traits__is_bool__h
3
4namespace Rcpp{ namespace traits {
5
6template<typename>
7struct is_bool
8 : public false_type { };
9
10template<>
11struct is_bool<bool>
12 : public true_type { };
13
14template<>
15struct is_bool<const bool>
16 : public true_type { };
17
18template<>
19struct is_bool<volatile bool>
20 : public true_type { };
21
22}}
23
24#endif
traits used to dispatch wrap
Definition Date.h:27
integral_constant< bool, true > true_type
integral_constant< bool, false > false_type
Rcpp API.
Definition algo.h:28