std::pointer_traits::pointer_to
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>| Elemento definito nell'header <memory>
|
||
static pointer pointer_traits<Ptr>::pointer_to(element_type& r ); |
(dal C++11) | |
static pointer pointer_traits<T*>::pointer_to(element_type& r); |
(dal C++11) | |
Costruisce un puntatore dereferenceable la sua tesi.
Original:
Constructs a dereferenceable pointer to its argument.
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)
La versione di questa funzione nel non specializzato modello std::pointer_traits chiama semplicemente
Ptr::pointer_to(r), e se Ptr non fornisce una funzione di membro static pointer_to, istanze di questa funzione è un errore di compilazione.Original:
The version of this function in the non-specialized std::pointer_traits template simply calls
Ptr::pointer_to(r), and if Ptr does not provide a static member function pointer_to, instantiation of this function is a compile-time error.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)
La versione di questa funzione nella specializzazione di std::pointer_traits per i tipi di puntatore restituisce
std::addressof(r)Original:
The version of this function in the specialization of std::pointer_traits for pointer types returns
std::addressof(r)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.