Content-Length: 234276 | pFad | http://github.com/gusenov/examples-cpp/blob/master/tpl/intro-to-traits

67DC70F2 examples-cpp/tpl/intro-to-traits at master · gusenov/examples-cpp · GitHub
Skip to content

Latest commit

 

History

History

intro-to-traits

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Traits - это шаблоны классов в которых есть вложенный type alias, который называется (по соглашению) type.

Примеры trait-ов в Standard Library:

  • std::remove_reference
  • std::is_void

Alias - это синоним для типа.

В C++11 появились alias templates, которые являются именами отсылающими к семейству типов.

Alias templates упрощают синтаксис шаблонов и сглаживают различия интерфейсов.









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/gusenov/examples-cpp/blob/master/tpl/intro-to-traits

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy