File: is_bool.h

package info (click to toggle)
rcpp 1.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,224 kB
  • sloc: cpp: 27,429; ansic: 7,797; sh: 55; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 376 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef Rcpp__traits__is_bool__h
#define Rcpp__traits__is_bool__h

namespace Rcpp{ namespace traits {

template<typename>
struct is_bool
    : public false_type { };

template<>
struct is_bool<bool>
    : public true_type { };

template<>
struct is_bool<const bool>
    : public true_type { };

template<>
struct is_bool<volatile bool>
    : public true_type { };

}}

#endif