std::basic_regex::assign
Da cppreference.com.
                    
                                        
                    < cpp | regex | basic regex
                    
                                                            
                    |  | 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. | 
| basic_regex& assign( const basic_regex& other ); | (1) | (dal C++11) | 
| basic_regex& assign( basic_regex&& that ); | (2) | (dal C++11) | 
| basic_regex& assign( const CharT* s,  flag_type f = std::regex_constants::ECMAScript ); | (3) | (dal C++11) | 
| basic_regex& assign( const charT* ptr, size_t count, flag_type f = regex_constants::ECMAScript ); | (4) | (dal C++11) | 
| template< class ST, class SA > basic_regex& assign( const std::basic_string<CharT,ST,SA>& str, | (5) | (dal C++11) | 
| template< class InputIt > basic_regex& assign( InputIt first, InputIt last, | (6) | (dal C++11) | 
| basic_regex& assign( std::initializer_list<CharT> ilist, flag_type f = std::regex_constants::ECMAScript ); | (7) | (dal C++11) | 
Assegna il contenuto per l'espressione regolare. 
Original:
Assigns the contents to the regular expression. 
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.
1) 
Assegna il contenuto di 
other. flags() mark_count() e sono equivalenti ai valori di other.flags() e other.mark_count() dopo la chiamata.Original:
Assigns the contents of 
other. flags() and mark_count() are equivalent to the values of other.flags() and other.mark_count() after the call.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.
2) 
Assegna il contenuto di 
other con semantica spostamento. flags() mark_count() e sono equivalenti ai valori di other.flags() e other.mark_count() prima della cessione. Dopo la chiamata, other è in uno stato valido, ma non specificato.Original:
Assigns the contents of 
other using move semantics. flags() and mark_count() are equivalent to the values of other.flags() and other.mark_count() before the assignment. After the call, other is in a valid, but unspecified state.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.
3-7) 
Assegna una sequenza di caratteri per l'espressione regolare. Le bandiere di sintassi sono impostati 
f. mark_count() restituisce il numero di sottoespressioni segnalati all'interno della sottoespressione risultante dopo la chiamata.Original:
Assigns a sequence of characters to the regular expression. The syntax flags are set to 
f. mark_count() returns the number of marked subexpressions within the resulting subexpression after the call.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.
3) 
Assegna una stringa null-terminated puntata da 
s.Original:
Assigns a null-terminated string pointed to by 
s.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.
4) 
Assegna una sequenza di caratteri 
count, rilevata dal s.Original:
Assigns a sequence of 
count characters, pointed to by s.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.
5) 
Assegna il 
str stringa.Original:
Assigns the string 
str.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.
6) 
Assegna i caratteri nella 
[first, last) gamma.Original:
Assigns the characters in the range 
[first, last).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.
7) 
Assegna i personaggi del 
ilist lista di inizializzazione.Original:
Assigns the characters in the initializer list 
ilist.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.
| Indice | 
[modifica] Parametri
| other | - |  un'altra espressione regolare da assegnare Original:  another regular expression to assign The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | 
| s | - |  puntatore a una sequenza di caratteri da assegnare Original:  pointer to a character sequence to assign The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | 
| str | - |  stringa da assegnare Original:  string to assign The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | 
| first, last | - |  la gamma di caratteri da assegnare Original:  the range of characters to assign The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | 
| ilist | - |  inizializzatore elenco contenente i caratteri da assegnare Original:  initializer list containing characters to assign The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | 
| Type requirements | ||
| - InputItmust meet the requirements ofInputIterator. | ||
[modifica] Valore di ritorno
*this
[modifica] Eccezioni
1) 
(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.
You can help to correct and verify the translation. Click here for instructions.
2) 
3-7) 
std::regex_error se l'espressione regolare in dotazione non è valido. L'oggetto non viene modificato in questo caso.
Original:
std::regex_error if the supplied regular expression is not valid. The object is not modified in that case.
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.
[modifica] Esempio
| This section is incomplete Reason: no example | 
[modifica] Vedi anche
|  assegna il contenuto Original:  assigns the contents The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (metodo pubblico) | |


