المتغيرات
فضاءات التسمية
أفعال

std::{{{1}}}::bucket

من cppreference.com
size_type bucket( const Key& key ) const;
قالب:mark since none

Returns the index of the bucket for key ‎key‎. Elements (if any) with keys equivalent to ‎key‎ are always found in this bucket. The returned value is valid only for instances of the container for which bucket_count()‎ returns the same value.

The behavior is undefined if bucket_count()‎ is zero.

محتويات

[تعديل] Parameters

key - the value of the key to examine

[تعديل] Return value

Bucket index for the key ‎key‎.

[تعديل] Complexity

Constant.

[تعديل] See also

قالب:dsc mem fun