Namespace
Varianti

cpp/container/stack/size: differenze tra le versioni

Da cppreference.com.
< cpp‎ | container‎ | stack
m (r2.7.3) (Bot: Aggiungo en, es, pl, pt, ru)
(Translated from the English version using Google Translate)
Riga 1: Riga 1:
{{title|size}}
+
{{|size }}
Sintassi:
+
  
<syntaxhighlight lang="cpp">
 
    #include <stack>
 
    size_type size() const;
 
</syntaxhighlight>
 
 
La funzione size() ritorna il numero di elementi nello stack.
 
 
Argomenti correlati: [[cpp/container/stack/empty | empty]]
 
 
[[en:cpp/container/stack/size]]
 
 
[[es:cpp/container/stack/size]]
 
[[es:cpp/container/stack/size]]
 +
 
[[pl:cpp/container/stack/size]]
 
[[pl:cpp/container/stack/size]]
 
[[pt:cpp/container/stack/size]]
 
[[pt:cpp/container/stack/size]]
 
[[ru:cpp/container/stack/size]]
 
[[ru:cpp/container/stack/size]]

Versione delle 07:00, 26 ott 2012

 
 
 
std :: stack
Membri funzioni
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
stack::stack
stack::~stack
stack::operator=
Elemento accesso
Original:
Element access
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
stack::top
Capacità
Original:
Capacity
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
stack::empty
stack::size
Modificatori
Original:
Modifiers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
stack::push
stack::emplace
stack::pop
stack::swap
 
size_type size() const;
Restituisce il numero di elementi nel contenitore sottostante, vale a dire, c.size().
Original:
Returns the number of elements in the underlying container, i.e, c.size().
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Indice

Parametri

(Nessuno)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Valore di ritorno

il numero di elementi nel contenitore
Original:
the number of elements in the container
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Complessità

Constant
Original:
Constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Vedi anche

verifica se il contenitore sottostante è vuoto
Original:
checks whether the underlying container is empty
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(metodo pubblico) [modifica]