Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 7d68787a8a48da3837a540b43108c75317737c1f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//![temp.names] examples abschnitt 4/1
//%CPP
T* p1 = p->template alloc<100>();

//![temp.names] examples abschnitt 4/2, didn't work cause of Bug# 164482
//%CPP
template<class T> 
void f(T* p)
{
    T::template adjust<100>();
}

//![temp.alias] Template alias declaration
//%CPP
template<typename T> struct S
{
};
template<typename T> using Alias = S<T>;
Alias<int> sInt;

Back to the top