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] Add tr1::hash<long long> and <unsigned long long>


Hi,

as a reasonable (long long will be in C++0x) small extension.

Tested x86-linux, committed mainline and 4_2-branch.

Paolo.

/////////////
2006-11-19  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/functional (hash(long long), hash(unsigned long long)):
	Add specializations.
Index: include/tr1/functional
===================================================================
--- include/tr1/functional	(revision 118987)
+++ include/tr1/functional	(working copy)
@@ -1123,9 +1123,11 @@
   _TR1_hashtable_define_trivial_hash(short);
   _TR1_hashtable_define_trivial_hash(int);
   _TR1_hashtable_define_trivial_hash(long);
+  _TR1_hashtable_define_trivial_hash(long long);
   _TR1_hashtable_define_trivial_hash(unsigned short);
   _TR1_hashtable_define_trivial_hash(unsigned int);
   _TR1_hashtable_define_trivial_hash(unsigned long);
+  _TR1_hashtable_define_trivial_hash(unsigned long long);
 
 #undef _TR1_hashtable_define_trivial_hash
 

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