Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/container/unordered set/load factor"

From cppreference.com
m (Add link to edit the included template)
m (r2.7.3) (Robot: Adding de, es, fr, it, ja, pt, ru, zh)
Line 1: Line 1:
 
{{page template|cpp/container/load_factor|unordered_set}}
 
{{page template|cpp/container/load_factor|unordered_set}}
 +
 +
[[de:cpp/container/unordered set/load factor]]
 +
[[es:cpp/container/unordered set/load factor]]
 +
[[fr:cpp/container/unordered set/load factor]]
 +
[[it:cpp/container/unordered set/load factor]]
 +
[[ja:cpp/container/unordered set/load factor]]
 +
[[pt:cpp/container/unordered set/load factor]]
 +
[[ru:cpp/container/unordered set/load factor]]
 +
[[zh:cpp/container/unordered set/load factor]]

Revision as of 17:23, 2 November 2012

 
 
 
 
float load_factor() const;
(since C++11)

Returns the average number of elements per bucket, that is, size() divided by bucket_count().

Contents

Parameters

(none)

Return value

Average number of elements per bucket.

Complexity

Constant.

See also

manages maximum average number of elements per bucket
(public member function) [edit]