38 hash_tablet::iterator it=
hash_table.find(string_ptr);
61 hash_tablet::iterator it=
hash_table.find(string_ptr);
84 out <<
"String container statistics:"
90 <<
"\n total memory usage: " << total_memory_usage.to_string() <<
'\n';
99 sizeof(string_vectort::value_type) *
string_vector.capacity());
104 [](std::size_t sz,
const std::string *s) {
return sz + s->capacity(); }));
std::string to_string() const
static memory_sizet from_bytes(std::size_t bytes)
unsigned get(const char *s)
string_vectort string_vector
string_container_statisticst compute_statistics() const
int memcmp(const void *s1, const void *s2, size_t n)
size_t strlen(const char *s)
Has estimated statistics about string container (estimated because this only uses public information,...
memory_sizet vector_memory_usage
void dump_on_stream(std::ostream &out) const
memory_sizet strings_memory_usage
memory_sizet list_memory_usage
memory_sizet map_memory_usage
string_ptrt(const char *_s)
bool operator==(const string_ptrt &other) const