Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/LibreOffice/external/frozen/   (Office von Apache Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 1 kB image not shown  

Quelle  cid1532449_use_move_ctor.0   Sprache: unbekannt

 
Spracherkennung für: .0 vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

--- include/frozen/unordered_map.h 2023-06-25 14:47:35.486459668 +0100
+++ include/frozen/unordered_map.h 2023-06-25 14:55:58.787858570 +0100
@@ -78,14 +78,24 @@
 public:
   /* constructors */
   unordered_map(unordered_map const &) = default;
-  constexpr unordered_map(container_type items,
+  constexpr unordered_map(container_type&& items,
+                          Hash const &hash, KeyEqual const &equal)
+      : KeyEqual{equal}
+      , items_(std::move(items))
+      , tables_{
+            bits::make_pmh_tables<storage_size>(
+                items_, hash, bits::GetKey{}, default_prg_t{})} {}
+  explicit constexpr unordered_map(container_type&& items)
+      : unordered_map{items, Hash{}, KeyEqual{}} {}
+
+  constexpr unordered_map(const container_type& items,
                           Hash const &hash, KeyEqual const &equal)
       : KeyEqual{equal}
       , items_{items}
       , tables_{
             bits::make_pmh_tables<storage_size>(
                 items_, hash, bits::GetKey{}, default_prg_t{})} {}
-  explicit constexpr unordered_map(container_type items)
+  explicit constexpr unordered_map(const container_type& items)
       : unordered_map{items, Hash{}, KeyEqual{}} {}
 
   constexpr unordered_map(std::initializer_list<value_type> items,

[ Dauer der Verarbeitung: 0.28 Sekunden  ]