File: example2.h

package info (click to toggle)
android-platform-development 10.0.0%2Br36-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 135,564 kB
  • sloc: java: 160,253; xml: 127,434; python: 40,579; cpp: 17,579; sh: 2,569; javascript: 1,612; ansic: 879; lisp: 261; ruby: 183; makefile: 172; sql: 140; perl: 88
file content (82 lines) | stat: -rw-r--r-- 1,288 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#ifndef EXAMPLE2_H_
#define EXAMPLE2_H_
#include <memory>
#include <vector>
#include <string>
#include <tuple>
#include "example3.h"

template <typename T, int size>
class fooray {
  T foor[size];
};

template <class _T1, class _T2>
struct __find_exactly_one_check {
    static constexpr bool __matches[] = {std::is_same<_T1, _T2>::value};
};

namespace test2 {
struct HelloAgain {
  std::vector<HelloAgain *> foo_again;
  int bar_again;
  static int hello_forever;
  virtual int again();
  virtual ~HelloAgain() {}
};
struct NowWeCrash;
}  // namespace test2

enum Foo_s {
  foosball = 10,
  foosbat
};

static constexpr bool __test_var[] = {true, false};

namespace test3 {
template <typename T>
struct ByeAgain {
  T foo_again;
  int bar_again;
  T method_foo(T);
};

template<>
struct ByeAgain<float> {
  float foo_again;
  static int foo_forever;
  float bar_Again;
  float method_foo(int);
};

ByeAgain<double> double_bye;

template <typename T1, typename T2>
bool Begin( T1 arg1, T2 arg2, int c);

bool End ( float arg = 2.0) {
  bool ret = Begin(arg, 2, 2);
  return true;
}


enum Kind {
  kind1 = 24,
  kind2 = 2312
};

class Outer {
 public:
  int a;
 private:
  class Inner {
    int b;
  };
};

std::vector<int *> Dummy(int t);

}  // namespace test3

#endif  // EXAMPLE2_H_