std::bitset::test
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<metanoindex/>
<tbody> </tbody> bool test( size_t pos ) const; |
||
Restituisce il valore del bit nella
pos posizione.Original:
Returns the value of the bit at the position
pos.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
A differenza di
operator[](), esegue un controllo limiti e getta std::out_of_range pos se non corrisponde ad una posizione valida nel bitset.Original:
Unlike
operator[](), performs a bounds check and throws std::out_of_range if pos does not correspond to a valid position in the bitset.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Parametri
| pos | - | posizione del bit di ritornare
Original: position of the bit to return 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
true se il bit richiesto è impostato, false altrimenti.Original:
true if the requested bit is set, false otherwise.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Eccezioni
std::out_of_range
pos se non corrisponde ad una posizione valida all'interno del bitset.Original:
std::out_of_range if