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. |
| Defined in header <type_traits>
|
||
| template< class T > struct add_pointer; |
(C + + 11以来) | |
タイプ
typeあるメンバのtypedefT*を提供しています。 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へまたはTによって参照型へのポインタOriginal: 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; }; |
[編集] 例
| This section is incomplete Reason: no example |
[編集] も参照してください
| (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. (クラステンプレート) |