Freigeben über


deque::reference

Ein Typ, der einen Verweis auf ein Element enthält, in einer gespeicherten Doppelschlange.

typedef typename Allocator::reference reference;

Beispiel

// deque_reference.cpp
// compile with: /EHsc
#include <deque>
#include <iostream>

int main( ) 
{
   using namespace std;
   deque <int> c1;
   
   c1.push_back( 10 );
   c1.push_back( 20 );

   const int &i = c1.front( );
   int &j = c1.back( );
   cout << "The first element is " << i << endl;
   cout << "The second element is " << j << endl;
}
  

Anforderungen

Header: <deque>

Namespace: std

Siehe auch

Referenz

deque-Klasse

Standardvorlagenbibliothek