A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://timsong-cpp.github.io/cppwp/n4659/meta.trans.ref below:

[meta.trans.ref]

23 General utilities library [utilities] 23.15 Metaprogramming and type traits [meta] 23.15.7 Transformations between types [meta.trans] 23.15.7.2 Reference modifications [meta.trans.ref]

Table

46

— Reference modifications


Template Comments template <class T>
struct remove_­reference;
If T has type “reference to T1” then the member typedef type names T1; otherwise, type names T. template <class T>
struct add_­lvalue_­reference;
If T names a referenceable type then the member typedef type names T&; otherwise, type names T. [Note: This rule reflects the semantics of reference collapsing ([dcl.ref]). end note] template <class T>
struct add_­rvalue_­reference; If T names a referenceable type then the member typedef type names T&&; otherwise, type names T. [Note: This rule reflects the semantics of reference collapsing ([dcl.ref]). For example, when a type T names a type T1&, the type add_­rvalue_­reference_­t<T> is not an rvalue reference. end note]

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4