Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

C++ Language/Templates/Traits/UnaryTransformTraits

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

A "transform trait" specifies a type that is similar to some other type, but with some added (or removed) characteristics. In this example, variable m_iMember will be a int data member for both specializations T=int and T=int&:template<typename T> class CRClass { std::remove_reference<T>::type m_iMember; };. Additional information about unary transform traits