std::add_pointer
Материал из cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Заголовочный файл <type_traits>
|
||
| template< class T > struct add_pointer; |
(начиная с C++11) | |
Обеспечивает член ЬурейеЕ
type, который является типом T*. Если T является ссылкой типа, то type является указателем на упомянутых типа.Original:
Provides the member typedef
type which is the type T*. If T is a reference type, then type is a pointer to the referred type.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.
Содержание |
[править] Член типов
| Имя
Original: Name The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
type
|
Указатель на
T или типа ссылается TOriginal: pointer to T or to the type referenced by TThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[править] Возможная реализация
template< class T > struct add_pointer { typedef typename std::remove_reference<T>::type* type; }; |
[править] Пример
| Этот раздел не завершён Причина: нет примера |
[править] См. также
| (C++11) |
проверяет, является ли тип указателя Original: checks if a type is a pointer type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (шаблон класса) |
| (C++11) |
удаляет указатель от данного типа Original: removes pointer from the given type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (шаблон класса) |