[doc patch] whatis vs. ptype - the difference

Pedro Alves pedro@codesourcery.com
Tue Jul 19 13:52:00 GMT 2011


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



More information about the Gdb-patches mailing list