Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::unordered_set<Key,Hash,KeyEqual,Allocator>::max_load_factor

      From cppreference.com
      <cpp‎ |container‎ |unordered set

      [edit template]
       
       
       
      std::unordered_set
      Member types
      Member functions
      Non-member functions
      Deduction guides(C++17)
       
      float max_load_factor()const;
      (1)(since C++11)
      void max_load_factor(float ml);
      (2)(since C++11)

      Manages the maximum load factor (number of elements per bucket). The container automatically increases the number of buckets if the load factor exceeds this threshold.

      1) Returns current maximum load factor.
      2) Sets the maximum load factor toml.

      Contents

      [edit]Parameters

      ml - new maximum load factor setting

      [edit]Return value

      1) Current maximum load factor.
      2) (none)

      [edit]Complexity

      Constant.

      [edit]See also

      returns average number of elements per bucket
      (public member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/container/unordered_set/max_load_factor&oldid=135982"

      [8]ページ先頭

      ©2009-2025 Movatter.jp