Ignore:
Timestamp:
01/12/17 13:16:48 (8 years ago)
Author:
epyon
Message:
  • getting rid of size_t
  • datatypes now restricted to uint32 size
  • 64-bit compatibility
  • copyright updates where modified
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/stl/container/hash_table_policy.hh

    r432 r533  
    145145        {
    146146                template< typename H >
    147                 static enable_if_t< is_integral< H >::value, size_t >
    148                 get_index( H h, size_t n ) { return h % n; }
     147                static enable_if_t< is_integral< H >::value, uint32 >
     148                get_index( H h, uint32 n ) { return h % n; }
    149149
    150150                template< typename H >
    151                 static enable_if_t< is_class< H >::value, size_t >
    152                 get_index( H h, size_t n ) { return h.value() % n; }
     151                static enable_if_t< is_class< H >::value, uint32 >
     152                get_index( H h, uint32 n ) { return h.value() % n; }
    153153
    154154
Note: See TracChangeset for help on using the changeset viewer.