This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [doc patch] whatis vs. ptype - the difference


On Friday 15 July 2011 16:33:35, Jan Kratochvil wrote:
> (*) That is a class typedef, not a subject of ptype unrolling.  class typedef
>     is IMO an uncommon construct:
>       class C { typedef int t; t i; } c;

It is very common with templates, things like:

template<class T> struct Foo {
  typedef std::map<std::string, T> MapType;
  ...
};

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]