sparse-map
Classes | Typedefs | Functions
tsl::detail_sparse_hash Namespace Reference

Classes

struct  has_is_transparent
 
struct  has_is_transparent< T, typename make_void< typename T::is_transparent >::type >
 
struct  is_power_of_two_policy
 
struct  is_power_of_two_policy< tsl::sh::power_of_two_growth_policy< GrowthFactor > >
 
struct  make_void
 
class  sparse_array
 
class  sparse_hash
 

Typedefs

using slz_size_type = std::uint64_t
 

Functions

constexpr bool is_power_of_two (std::size_t value)
 
std::size_t round_up_to_power_of_two (std::size_t value)
 

Typedef Documentation

◆ slz_size_type

using tsl::detail_sparse_hash::slz_size_type = typedef std::uint64_t

Fixed size type used to represent size_type values on serialization. Need to be big enough to represent a std::size_t on 32 and 64 bits platforms, and must be the same size on both platforms.

Function Documentation

◆ is_power_of_two()

constexpr bool tsl::detail_sparse_hash::is_power_of_two ( std::size_t  value)
inline

◆ round_up_to_power_of_two()

std::size_t tsl::detail_sparse_hash::round_up_to_power_of_two ( std::size_t  value)
inline