Abilitare JavaScript per vedere questo sito.

Interroga la dimensione del dizionario .

Sintassi

uint size() const

Risultato

Rende la dimensione del dizionario in [associazioni] (0=vuoto)

Esempio di utilizzo:

class MyObject { ... };

 

dictionary objects;

objects.set("jerry", MyObject("Jerry", 54, 1000));

objects.set("david", MyObject("David", 34, 1200));

objects.set("charles", MyObject("Charles", 60, 2000));

objects.set("robert", MyObject("Robert", 56, 1900));

uint size1 = objects.size(); /* Rende valore 4 */

 

dictionary objects2;

uint size2 = objects2.size(); /* Rende valore 0 */

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC