File: enable_if.h

package info (click to toggle)
rcpp 1.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,480 kB
  • sloc: cpp: 27,436; ansic: 7,778; sh: 53; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 247 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef RCPP_TRAITS_ENABLE_IF_H
#define RCPP_TRAITS_ENABLE_IF_H

namespace Rcpp {
namespace traits {

template <bool B, typename T = void>
struct enable_if {};

template <typename T>
struct enable_if<true, T> {
    typedef T type;
};

}
}

#endif