This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

[v3] hashtable aliases



This patch restructures the std::unordered_* containers, as per the
tempting comment in unordered_set:

  // NB: When we get typedef templates these class definitions
  // will be unnecessary.

This required some changes in _Hashtable, forced the consolidation of
insert() logic in a base class, and necessitated the restructuring of
type definitions in the _Hashtable. I think the current form allows
some nice advantages in terms of nested types and expressiveness. 

tested x86/linux
tested x86/linux -debug

-benjamin

Attachment: 20120412-334.patch.bz2
Description: application/bzip


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