git-svn-id: svn://db.shs.com.ru/pip@843 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -315,4 +315,16 @@ __PIBYTEARRAY_SIMPLE_TYPE__(double)
|
||||
__PIBYTEARRAY_SIMPLE_TYPE__(ldouble)
|
||||
__PIBYTEARRAY_SIMPLE_TYPE__(PIChar)
|
||||
|
||||
|
||||
|
||||
template<typename T>
|
||||
inline uint piHash(const T & v) {
|
||||
PIByteArray ba;
|
||||
ba << v;
|
||||
return ba.hash();
|
||||
}
|
||||
|
||||
template<> inline uint piHash(const PIByteArray & ba) {return ba.hash();}
|
||||
|
||||
|
||||
#endif // PIBYTEARRAY_H
|
||||
|
||||
Reference in New Issue
Block a user