<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.1" version="1.1">
  <file original="NoName" source-language="en" datatype="plaintext" target-language="zh_Hans">
    <body>
      <trans-unit xml:space="preserve" approved="no" id="6424de926373e2f1" weblate-flags="safe-html, strict-same">
        <source>:idprefix: buckets_</source>
        <target state="translated">:idprefix: buckets_</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">2</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="9d16d818e2121f48" weblate-flags="safe-html, strict-same">
        <source>= Basics of Hash Tables</source>
        <target state="translated">= 哈希表基础</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">4</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="ffb4e50840d4edf4" weblate-flags="safe-html, strict-same">
        <source>The containers are made up of a number of _buckets_, each of which can contain any number of elements. For example, the following diagram shows a `xref:reference/unordered_set.adoc#unordered_set[boost::unordered_set]` with 7 buckets containing 5 elements, `A`, `B`, `C`, `D` and `E` (this is just for illustration, containers will typically have more buckets).</source>
        <target state="translated">该容器由若干__桶__组成，每个桶可容纳任意数量的元素。例如，下图展示了一个包含7个桶的 xref:reference/unordered_set.adoc#unordered_set[boost::unordered_set]，其中存储着5个元素（ `A` 、 `B` 、 `C` 、 `D` 和 `E` ）（此示意图仅为演示用途，实际容器通常包含更多桶）。</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">6</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="b84d857c477d492a" weblate-flags="safe-html, strict-same">
        <source>image::buckets.png[]</source>
        <target state="translated">image::buckets.png[]</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">11</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="48e10416a0b5b6df" weblate-flags="safe-html, strict-same">
        <source>In order to decide which bucket to place an element in, the container applies the hash function, `Hash`, to the element's key (for sets the key is the whole element, but is referred to as the key so that the same terminology can be used for sets and maps). This returns a value of type `std::size_t`. `std::size_t` has a much greater range of values then the number of buckets, so the container applies another transformation to that value to choose a bucket to place the element in.</source>
        <target state="translated">容器通过哈希函数 `Hash` 作用于元素的键来确定其所属的桶（对于集合而言，键即元素本身，但为统一集合与映射表的术语仍称作键）。该函数返回 `std::size_t` 类型的值。由于 `std::size_t` 的取值范围远大于桶的数量，容器会对此值进行二次转换以确定元素应存入的桶。</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">13</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="84466f0d6b6fbd30" weblate-flags="safe-html, strict-same">
        <source>Retrieving the elements for a given key is simple. The same process is applied to the key to find the correct bucket. Then the key is compared with the elements in the bucket to find any elements that match (using the equality predicate `Pred`). If the hash function has worked well the elements will be evenly distributed amongst the buckets so only a small number of elements will need to be examined.</source>
        <target state="translated">根据指定键检索元素的过程非常简单：首先对键执行相同处理以定位对应桶，随后通过相等性谓词 `Pred` 将键与桶内元素进行比较以寻找匹配项。若哈希函数表现良好，元素将均匀分布于各桶中，此时仅需检查少量元素即可完成检索。</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">20</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="58cdabe7426b9cbd" weblate-flags="safe-html, strict-same">
        <source>There is xref:hash_equality.adoc#hash_equality[more information on hash functions and equality predicates in the next section].</source>
        <target state="translated">关于哈希函数与相等性谓词的详细说明请参阅 xref:hash_equality.adoc#hash_equality[后续章节] 。</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">27</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="ee3d8c5be92de676" weblate-flags="safe-html, strict-same">
        <source>You can see in the diagram that `A` &amp; `D` have been placed in the same bucket. When looking for elements in this bucket up to 2 comparisons are made, making the search slower. This is known as a *collision*. To keep things fast we try to keep collisions to a minimum.</source>
        <target state="translated">如图所示， `A` 与 `D` 被置于同一桶内。在此桶内查找元素时最多需要进行 2 次比对，这会降低检索效率，该现象称为**冲突**。为维持高效运作，我们需尽可能减少冲突的发生。</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">30</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="164f9c4c31550b88" weblate-flags="safe-html, strict-same">
        <source>If instead of `boost::unordered_set` we had used `xref:reference/unordered_flat_set.adoc[boost::unordered_flat_set]`, the diagram would look as follows:</source>
        <target state="translated">若使用 xref:reference/unordered_flat_set.adoc[boost::unordered_flat_set]替代 `boost::unordered_set` ，其结构示意图将呈现如下形式：</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">35</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="f0538c53d551ffce" weblate-flags="safe-html, strict-same">
        <source>image::buckets-oa.png[]</source>
        <target state="translated">image::buckets-oa.png[]</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">38</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="53750b8170279bf9" weblate-flags="safe-html, strict-same">
        <source>In open-addressing containers, buckets can hold at most one element; if a collision happens (like is the case of `D` in the example), the element uses some other available bucket in the vicinity of the original position. Given this simpler scenario, Boost.Unordered open-addressing containers offer a very limited API for accessing buckets.</source>
        <target state="translated">在开放寻址式容器中，每个桶最多只能容纳一个元素；若发生冲突（如示例中的元素 `D` 的情况），该元素将使用原始位置附近的其他可用桶。基于此简化设计，Boost.Unordered开放寻址容器仅提供极其有限的桶访问API。</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">40</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id=":48" weblate-flags="safe-html, strict-same">
        <source>2+^h| *All containers* h|*Method* h|*Description*</source>
        <target state="translated">2+^h| *所有容器* h|*方法* h|*描述*</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">48</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="021e93f900fc04fc" weblate-flags="safe-html, strict-same">
        <source>`size_type bucket_count() const`</source>
        <target state="translated">`size_type bucket_count() const`</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">51</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="e236947d056d9c3f" weblate-flags="safe-html, strict-same">
        <source>The number of buckets.</source>
        <target state="translated">桶的数量。</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">51</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="e2244a3fcccefbd7" weblate-flags="safe-html, strict-same">
        <source>2+^h| *Closed-addressing containers only* h|*Method* h|*Description*</source>
        <target state="translated">2+^h| *仅限闭寻址容器* h|*方法* h|*描述*</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">54</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="7f271b9cadfd9268" weblate-flags="safe-html, strict-same">
        <source>`size_type max_bucket_count() const`</source>
        <target state="translated">`size_type max_bucket_count() const`</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">57</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="18f67cd8f9d89d57" weblate-flags="safe-html, strict-same">
        <source>An upper bound on the number of buckets.</source>
        <target state="translated">桶数量的上限。</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">57</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="49db1d9e29045aa2" weblate-flags="safe-html, strict-same">
        <source>`size_type bucket_size(size_type n) const`</source>
        <target state="translated">`size_type bucket_size(size_type n) const`</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">57</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="8b6221a5f072fc73" weblate-flags="safe-html, strict-same">
        <source>The number of elements in bucket `n`.</source>
        <target state="translated">返回桶 `n` 中的元素数量。</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">57</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="53fc828373fa6ae7" weblate-flags="safe-html, strict-same">
        <source>`size_type bucket(key_type const&amp; k) const`</source>
        <target state="translated">`size_type bucket(key_type const&amp;amp; k) const`</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">57</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="942f675df0a0d21b" weblate-flags="safe-html, strict-same">
        <source>Returns the index of the bucket which would contain `k`.</source>
        <target state="translated">返回键 `k` 所对应的桶的索引。</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">57</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="5413003f483943fc" weblate-flags="safe-html, strict-same">
        <source>`local_iterator begin(size_type n)`</source>
        <target state="translated">`local_iterator begin(size_type n)`</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">57</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="9f8614737a00a734" weblate-flags="safe-html, strict-same">
        <source>1.6+|Return begin and end iterators for bucket `n`.</source>
        <target state="translated">1.6+|返回编号为 `n` 的桶的起始与末尾迭代器。</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">66</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="04837044c2a9bcee" weblate-flags="safe-html, strict-same">
        <source>`local_iterator end(size_type n)`</source>
        <target state="translated">`local_iterator end(size_type n)`</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">68</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="cbd48fb7be79696d" weblate-flags="safe-html, strict-same">
        <source>`const_local_iterator begin(size_type n) const`</source>
        <target state="translated">`const_local_iterator begin(size_type n) const`</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">68</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="3a7359d6553d8bfc" weblate-flags="safe-html, strict-same">
        <source>`const_local_iterator end(size_type n) const`</source>
        <target state="translated">`const_local_iterator end(size_type n) const`</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">68</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="527c9ab3b77c8c03" weblate-flags="safe-html, strict-same">
        <source>`const_local_iterator cbegin(size_type n) const`</source>
        <target state="translated">`const_local_iterator cbegin(size_type n) const`</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">68</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="df253cbdf02166ae" weblate-flags="safe-html, strict-same">
        <source>`const_local_iterator cend(size_type n) const`</source>
        <target state="translated">`const_local_iterator cend(size_type n) const`</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">68</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="072c875b7c3b74b8" weblate-flags="safe-html, strict-same">
        <source>Controlling the Number of Buckets</source>
        <target state="translated">桶数量控制</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">80</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="9849c70644df2b3a" weblate-flags="safe-html, strict-same">
        <source>As more elements are added to an unordered associative container, the number of collisions will increase causing performance to degrade. To combat this the containers increase the bucket count as elements are inserted. You can also tell the container to change the bucket count (if required) by calling `rehash`.</source>
        <target state="translated">当无序关联容器中的元素不断增加时，冲突次数会随之上升，从而导致性能下降。为解决此问题，容器会在插入元素过程中自动增加桶的数量。用户也可以通过调用 `rehash` 方法来按需调整容器的桶数量。</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">82</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="25c3c917b0eb57ed" weblate-flags="safe-html, strict-same">
        <source>The standard leaves a lot of freedom to the implementer to decide how the number of buckets is chosen, but it does make some requirements based on the container's _load factor_, the number of elements divided by the number of buckets. Containers also have a _maximum load factor_ which they should try to keep the load factor below.</source>
        <target state="translated">标准规范虽未强制规定桶数量的具体选择方式，但基于容器的__负载因子__（即元素数量与桶数量的比值）提出了若干要求。同时，容器还设有一个__最大负载因子__，其运行过程中需始终将实际负载因子维持在该阈值以下。</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">88</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="03ed2db204686958" weblate-flags="safe-html, strict-same">
        <source>You can't control the bucket count directly but there are two ways to influence it:</source>
        <target state="translated">用户无法直接控制桶的数量，但可通过以下两种方式间接调控：</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">94</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="5bab91ec5ffb746e" weblate-flags="safe-html, strict-same">
        <source>Specify the minimum number of buckets when constructing a container or when calling `rehash`.</source>
        <target state="translated">用户可在构造容器或调用 `rehash` 方法时指定桶数量的最小值。</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">97</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="5b1c5c5761918cc3" weblate-flags="safe-html, strict-same">
        <source>Suggest a maximum load factor by calling `max_load_factor`.</source>
        <target state="translated">用户可通过调用 `max_load_factor` 方法来设定最大负载因子的建议值。</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">98</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="10016492b034a219" weblate-flags="safe-html, strict-same">
        <source>`max_load_factor` doesn't let you set the maximum load factor yourself, it just lets you give a _hint_. And even then, the standard doesn't actually require the container to pay much attention to this value. The only time the load factor is _required_ to be less than the maximum is following a call to `rehash`. But most implementations will try to keep the number of elements below the max load factor, and set the maximum load factor to be the same as or close to the hint - unless your hint is unreasonably small or large.</source>
        <target state="translated">`max_load_factor` 并不允许用户自行设定最大负载因子，该方法仅用于提供__提示__。即便如此，标准也并未强制要求容器必须严格遵守该数值。唯一强制要求负载因子必须小于最大值的场景是在调用 `rehash` 方法之后。但大多数实现会尝试将元素数量维持在最大负载因子以下，并将最大负载因子设定为与提示值相同或接近——除非用户提供的提示值过小或过大。</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">100</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id=":111" weblate-flags="safe-html, strict-same">
        <source>2+^h| *All containers* h|*Method* h|*Description*</source>
        <target state="translated">2+^h| *所有容器* h|*方法* h|*描述*</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">111</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="ed1f917cffa6ae02" weblate-flags="safe-html, strict-same">
        <source>`X(size_type n)`</source>
        <target state="translated">`X(size_type n)`</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">114</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="d490e3acb0bd5f9e" weblate-flags="safe-html, strict-same">
        <source>Construct an empty container with at least `n` buckets (`X` is the container type).</source>
        <target state="translated">构造一个至少包含 `n` 个桶的空容器（ `X` 表示容器类型）。</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">114</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="2c88b0df66f3e21d" weblate-flags="safe-html, strict-same">
        <source>`X(InputIterator i, InputIterator j, size_type n)`</source>
        <target state="translated">`X(InputIterator i, InputIterator j, size_type n)`</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">114</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="f49eef521845ba82" weblate-flags="safe-html, strict-same">
        <source>Construct an empty container with at least `n` buckets and insert elements from the range `[i, j)` (`X` is the container type).</source>
        <target state="translated">构造一个至少包含 `n` 个桶的空容器，并插入范围 `[i, j)` 中的元素（ `X` 表示容器类型）。</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">114</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="4088bf19c841bab6" weblate-flags="safe-html, strict-same">
        <source>`float load_factor() const`</source>
        <target state="translated">`float load_factor() const`</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">114</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="ed54c726c863f454" weblate-flags="safe-html, strict-same">
        <source>The average number of elements per bucket.</source>
        <target state="translated">返回每个桶的平均元素数量。</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">114</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="895e4ad15a378a7e" weblate-flags="safe-html, strict-same">
        <source>`float max_load_factor() const`</source>
        <target state="translated">`float max_load_factor() const`</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">114</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="5255b1e9e53e3a38" weblate-flags="safe-html, strict-same">
        <source>Returns the current maximum load factor.</source>
        <target state="translated">返回当前的最大负载因子。</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">114</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="bee3b7fc3fb04cc5" weblate-flags="safe-html, strict-same">
        <source>`float max_load_factor(float z)`</source>
        <target state="translated">`float max_load_factor(float z)`</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">114</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="69965373ae7d3a44" weblate-flags="safe-html, strict-same">
        <source>Changes the container's maximum load factor, using `z` as a hint. +</source>
        <target state="translated">以 `z` 作为提示值来更改容器的最大负载因子。 +</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">114</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="9404f6dcf57f66e7" weblate-flags="safe-html, strict-same">
        <source>**Open-addressing and concurrent containers:** this function does nothing: users are not allowed to change the maximum load factor.</source>
        <target state="translated">**开放寻址与并发容器：**此函数无效，用户不允许更改最大负载因子。</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">128</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="e5f31430faed5b18" weblate-flags="safe-html, strict-same">
        <source>`void rehash(size_type n)`</source>
        <target state="translated">`void rehash(size_type n)`</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">130</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="08843826339c9580" weblate-flags="safe-html, strict-same">
        <source>Changes the number of buckets so that there at least `n` buckets, and so that the load factor is less than the maximum load factor.</source>
        <target state="translated">调整桶的数量，使其至少为 `n` ，并确保负载因子小于最大负载因子。</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">130</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="9d173f82b16ff5ea" weblate-flags="safe-html, strict-same">
        <source>2+^h| *Open-addressing and concurrent containers only* h|*Method* h|*Description*</source>
        <target state="translated">2+^h| *仅限开放寻址与并发容器* h|*方法* h|*描述*</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">133</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="37e6c8dc2e9f605e" weblate-flags="safe-html, strict-same">
        <source>`size_type max_load() const`</source>
        <target state="translated">`size_type max_load() const`</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">136</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="4db23a0309edc108" weblate-flags="safe-html, strict-same">
        <source>Returns the maximum number of allowed elements in the container before rehash.</source>
        <target state="translated">返回容器触发重新哈希前所允许容纳的最大元素数量。</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">136</context>
        </context-group>
      </trans-unit>
      <trans-unit xml:space="preserve" approved="no" id="2290eab3eaa38706" weblate-flags="safe-html, strict-same">
        <source>A note on `max_load` for open-addressing and concurrent containers: the maximum load will be (`max_load_factor() * bucket_count()`) right after `rehash` or on container creation, but may slightly decrease when erasing elements in high-load situations. For instance, if we have a `xref:reference/unordered_flat_map.adoc#unordered_flat_map[boost::unordered_flat_map]` with `size()` almost at `max_load()` level and then erase 1,000 elements, `max_load()` may decrease by around a few dozen elements. This is done internally by Boost.Unordered in order to keep its performance stable, and must be taken into account when planning for rehash-free insertions.</source>
        <target state="translated">关于开放寻址与并发容器的 `max_load` 注意事项：在容器创建或执行 `rehash` 后，最大负载值将保持为 `max_load_factor() * bucket_count()` ；但在高负载场景下执行元素删除操作时，该值可能轻微下降。例如，若某个 xref:reference/unordered_flat_map.adoc#unordered_flat_map[boost::unordered_flat_map] 的 `size()` 已接近 `max_load()` 阈值，随后删除 1,000 个元素时， `max_load()` 可能减少约数十个元素。此机制是Boost.Unordered为保持性能稳定而采取的内部机制，用户在规划无重组插入操作时需予以考虑。</target>
        <context-group name="" purpose="location">
          <context context-type="sourcefile"></context>
          <context context-type="linenumber">141</context>
        </context-group>
      </trans-unit>
    </body>
  </file>
</xliff>
