MCPcopy Create free account
hub / github.com/Tessil/ordered-map / load_factor

Method load_factor

include/tsl/ordered_hash.h:938–944  ·  view source on GitHub ↗

* Hash policy */

Source from the content-addressed store, hash-verified

936 * Hash policy
937 */
938 float load_factor() const {
939 if (bucket_count() == 0) {
940 return 0;
941 }
942
943 return float(size()) / float(bucket_count());
944 }
945
946 float max_load_factor() const { return m_max_load_factor; }
947

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected