Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::unordered_map<Key,T,Hash,KeyEqual,Allocator>::bucket_size

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

      [edit template]
       
       
       
      std::unordered_map
      Member types
      Member functions
      Non-member functions
      Deduction guides(C++17)
       
      size_type bucket_size( size_type n)const;
      (since C++11)

      Returns the number of elements in the bucket with indexn.

      Contents

      [edit]Parameters

      n - the index of the bucket to examine

      [edit]Return value

      The number of elements in the bucketn.

      [edit]Complexity

      Linear in the size of the bucketn.

      [edit]See also

      returns the number of buckets
      (public member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/container/unordered_map/bucket_size&oldid=136046"

      [8]ページ先頭

      ©2009-2025 Movatter.jp