diff options
| author | swarmer <[email protected]> | 2025-06-08 01:34:30 +0300 |
|---|---|---|
| committer | swarmer <[email protected]> | 2025-06-08 01:49:17 +0300 |
| commit | 34373eed70ab488a62709077127516eb1970f112 (patch) | |
| tree | 9b1751f74e676cfcf2a981b2814301c1fe2fe5f3 /contrib/python/prompt-toolkit/py3/prompt_toolkit/shortcuts/prompt.py | |
| parent | 583b82616d7bbbec4f0834de2e91632de29863bb (diff) | |
[util] the THashSet::operator== must compare elements using their comparison operators.
The C++ standard describes the requirements for comparing unordered containers in [unord.req.general]:
> Two unordered containers a and b compare equal if a.size() == b.size() and,
> for every equivalent-key group [Ea1, Ea2) obtained from a.equal_range(Ea1),
> there exists an equivalent-key group [Eb1, Eb2) obtained from b.equal_range(Ea1),
> such that is_permutation(Ea1, Ea2, Eb1, Eb2) returns true.
THashSet should use the same comparison logic.
commit_hash:b897cd7387d275324bb22268d0be79da4e74bf16
Diffstat (limited to 'contrib/python/prompt-toolkit/py3/prompt_toolkit/shortcuts/prompt.py')
0 files changed, 0 insertions, 0 deletions
