Aracılığıyla paylaş


list::emplace_back

Listesinin başına bir yerde oluşturulmuş bir öğe ekler.

void emplace_back(
   Type&& _Val
); 

Parametreler

Parametre

Description

_Val

Sonuna eklenen öðe list Class.

Notlar

Bir özel durum oluşursa, list sol değiştirmeden ve özel durum rethrown.

Örnek

// list_emplace_back.cpp
// compile with: /EHsc
#include <list>
#include <iostream>
#include <string>

int main( ) 
{
   using namespace std;
   list <string> c2;
   string str("a");

   c2.emplace_back( move( str ) );
   cout << "Moved first element: " << c2.back( ) << endl;
}
  

Gereksinimler

Başlık: <list>

Namespace: std

Ayrıca bkz.

Başvuru

list Class

Standart Şablon Kütüphanesi