acolomitchi / cpp-code-snippets

Space to contain - maybe disparate - examples of obscure C++ syntax and/or usecases

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cpp-code-snippets

Space to contain - maybe disparate - examples of obscure C++ syntax and/or usecases

  1. aliasing-templates_nested-templates_and_consuming-them.cpp - aliasing types is simple
        
        using alias=the_name_of_the_type; // perhaps one needs
        using alias=typename nesting_struct::the_name_of_the_type;
    
    but how do you do it when your target for alias is a template? Here's how.

About

Space to contain - maybe disparate - examples of obscure C++ syntax and/or usecases

License:The Unlicense


Languages

Language:C++ 100.0%