xref: /Universal-ctags/Units/parser-cxx.r/templates2.d/input.cpp (revision d796698bb33bac9add5b167120900fc65e0d51e1)
1 /* bug reported by akrzyz on 2016.03.10: no tags were emitted */
2 
3 #include <vector>
4 #include <map>
5 
6 template<template<class...> class Container, class Elem>
foo1(const Container<Elem> & p_container)7 auto foo1(const Container<Elem> & p_container)
8 {
9     return Container<Elem>{};
10 }
11 
12 template<template<class...> class Container, class Key, class Elem>
foo2(const Container<Key,Elem> & p_container)13 auto foo2(const Container<Key,Elem> & p_container)
14 {
15     return Container<Key,Elem>{};
16 }
17 
bar()18 void bar()
19 {
20 }
21 
main()22 int main()
23 {
24     auto v = foo1(std::vector<int>{1,2,3});
25     auto m = foo2(std::map<int,int>{{1,2}});
26     return 0;
27 }
28