Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

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.14 Sekunden, vorverarbeitet 2026-06-10]

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=141584
#Domains=752002