Classes | Functions
test_decl.cxx File Reference
#include <iostream>
#include <typeinfo>

Go to the source code of this file.

Classes

struct  Base
 
struct  A
 
struct  B
 

Functions

Basemake_a ()
 
Basemake_b ()
 
int main ()
 

Function Documentation

int main ( void  )

Definition at line 34 of file test_decl.cxx.

35 {
36  auto *a = make_a(), *b = make_b();
37  a->any();
38  b->any();
39 
40  typedef decltype(*a) MyA;
41  cerr << typeid(MyA).name() << endl;
42 
43  // decltype(*a)* aa = dynamic_cast<decltype(*a)*>(a);
44 
45  // aa->any();
46  // aa->a();
47 
48 
49  return 0;
50 }
static QCString name
Definition: declinfo.cpp:673
Base * make_b()
Definition: test_decl.cxx:32
Base * make_a()
Definition: test_decl.cxx:31
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition: pointer.h:1124
static bool * b
Definition: config.cpp:1043
QTextStream & endl(QTextStream &s)
Base* make_a ( )

Definition at line 31 of file test_decl.cxx.

31 { return new A; }
#define A
Definition: memgrp.cpp:38
Base* make_b ( )

Definition at line 32 of file test_decl.cxx.

32 { return new B; }