ce20d92a2c
* external/frozen/defines_h_constexpr_string.patch.0 is no longer necessary Downloaded from https://codeload.github.com/serge-sans-paille/frozen/tar.gz/refs/tags/1.2.0 Change-Id: Ie0b8488461860b1aaad3d18d0e76a619aa876c67 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172654 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
24 lines
1.1 KiB
Text
24 lines
1.1 KiB
Text
--- include/frozen/unordered_set.h 2024-01-22 10:42:57.125966099 +0000
|
|
+++ include/frozen/unordered_set.h 2024-01-22 10:46:07.701159961 +0000
|
|
@@ -73,13 +73,19 @@
|
|
public:
|
|
/* constructors */
|
|
unordered_set(unordered_set const &) = default;
|
|
- constexpr unordered_set(container_type keys, Hash const &hash,
|
|
+ constexpr unordered_set(container_type&& keys, Hash const &hash,
|
|
+ KeyEqual const &equal)
|
|
+ : KeyEqual{equal}
|
|
+ , keys_{std::move(keys)}
|
|
+ , tables_{bits::make_pmh_tables<storage_size>(
|
|
+ keys_, hash, bits::Get{}, default_prg_t{})} {}
|
|
+ constexpr unordered_set(const container_type& keys, Hash const &hash,
|
|
KeyEqual const &equal)
|
|
: KeyEqual{equal}
|
|
, keys_{keys}
|
|
, tables_{bits::make_pmh_tables<storage_size>(
|
|
keys_, hash, bits::Get{}, default_prg_t{})} {}
|
|
- explicit constexpr unordered_set(container_type keys)
|
|
+ explicit constexpr unordered_set(const container_type& keys)
|
|
: unordered_set{keys, Hash{}, KeyEqual{}} {}
|
|
|
|
constexpr unordered_set(std::initializer_list<Key> keys)
|