User Tools

Site Tools


cpp:stl:containers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
cpp:stl:containers [2020/05/30 18:49] – [Αντιγραφή των στοιχείων προς ένθεση μέσα σε ένα Container] gthanoscpp:stl:containers [2020/05/30 18:50] gthanos
Line 45: Line 45:
     mylist.push_back(students[i]);     mylist.push_back(students[i]);
     //mylist.insert(mylist.end(),students[i]);                         // equivalent with push_back     //mylist.insert(mylist.end(),students[i]);                         // equivalent with push_back
-    //mylist.emplace_back(students[i].name, students[i].aem); +    //mylist.emplace_back(students[i].getName(), students[i].getAEM()); 
-    //mylist.emplace(mylist.end(), students[i].name, students[i].aem); // equivalent with emplace_back+    //mylist.emplace(mylist.end(), students[i].getName(), students[i].getAEM()); // equivalent with emplace_back
   }   }
      
cpp/stl/containers.txt · Last modified: 2022/05/26 16:49 by gthanos