std::remove_reference
提供: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 remove_reference; |
(C + + 11以来) | |
タイプ
Tが参照型の場合、typeによって参照型であるメンバのtypedefTを提供しています。さもなければtypeですT.Original:
If the type
T is a reference type, provides the member typedef type which is the type, referred to by T. Otherwise type is T.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: the type referred by T or T if it is not a referenceThe 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 remove_reference {typedef T type;}; template< class T > struct remove_reference<T&> {typedef T type;}; template< class T > struct remove_reference<T&&> {typedef T type;}; |
[編集] 例
| This section is incomplete Reason: no example |
[編集] も参照してください
| (C++11) |
タイプかどうかをチェックするには、どちらか左辺値参照や右辺値参照です Original: checks if a type is either lvalue reference or rvalue reference The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |
| (C++11) (C++11) |
左辺値指定された型にや'右辺値参照が追加されます Original: adds lvalue or rvalue reference to 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. (クラステンプレート) |