digitalmars.D.learn - static if "Pointer-Type"

Hi,
i have the following problem in a template:
class SomeClass(T) {
T[] elements;
...
/*code for adding and removing elements*/
...
public int contains(T x) {
/*x could be null if T is a pointer-type*/
static if("T is a Pointer-Type") { /*<- How can i do this ???*/
if(x is null){
foreach(T y;elements){
if(y is null) return true;
}
return false;
}
}
...
/*rest of the method*/
...
}
...
}
thnx Philipp

Hi,
i have the following problem in a template:
class SomeClass(T) {
T[] elements;
...
/*code for adding and removing elements*/
...
public int contains(T x) {
/*x could be null if T is a pointer-type*/
static if("T is a Pointer-Type") { /*<- How can i do this ???*/
if(x is null){
foreach(T y;elements){
if(y is null) return true;
}
return false;
}
}
...
/*rest of the method*/
...
}
...
}