summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/checkers/readability-uppercase-literal-suffix.h
blob: 680321e734cc7005744994ef2da12902d3b75df3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
template <class T, T v>
struct integral_constant {
  static constexpr T value = v;
  typedef T value_type;
  typedef integral_constant type; // using injected-class-name
  constexpr operator value_type() const noexcept { return value; }
};

using false_type = integral_constant<bool, false>;
using true_type = integral_constant<bool, true>;

template <class T, class U>
struct is_same : false_type {};

template <class T>
struct is_same<T, T> : true_type {};
OpenPOWER on IntegriCloud