Move nohash<> from TracyWorker to flat hash map.

This commit is contained in:
Bartosz Taudul 2018-03-20 15:40:11 +01:00
parent 37808ec4c7
commit 765a1ececf
2 changed files with 7 additions and 7 deletions

View File

@ -24,13 +24,6 @@ namespace tracy
class FileRead;
class FileWrite;
template<typename T>
struct nohash
{
size_t operator()( const T& v ) { return (size_t)v; }
typedef tracy::power_of_two_hash_policy hash_policy;
};
class Worker
{
#pragma pack( 1 )

View File

@ -26,6 +26,13 @@ namespace tracy
struct prime_number_hash_policy;
struct power_of_two_hash_policy;
template<typename T>
struct nohash
{
size_t operator()( const T& v ) { return (size_t)v; }
typedef tracy::power_of_two_hash_policy hash_policy;
};
namespace detailv3
{
template<typename Result, typename Functor>