All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
test.cpp
Go to the documentation of this file.
1 #include <iostream>
2 
3 namespace A{
4  template <typename T>
5  inline bool function(T &v) {
6  return true;
7  }
8 }
9 
10 namespace B {
11  template <class T>
12  class TestClass{
13  public:
14 
15  };
16 }
17 namespace A {
18 template <typename T1>
19 inline bool function(B::TestClass<T1> &v) {
20  return false;
21 }
22 }
23 int main() {
24  int i;
25  std::cout << A::function(i) << std::endl;
27  std::cout << A::function(t) << std::endl;
28  return 0;
29 }
int main()
Definition: test.cpp:23
bool function(T &v)
Definition: test.cpp:5
list i
Definition: ana.py:128