Is there any runtime cost or overhead for having defined too many types in C++? For example, is there any difference at all between these two piece of code:

```
int main()
{
    int x, y;
    double fx, fy;

    return 0;
}

```

And:

```
template<typename T>
struct Point
{ 
    T x, y;
};

int main()
{
    Point<int> p;
    Point<double> fp;

    return 0;
}

```

Imagine a code which has many templated types, so that at compile time it generates even more concrete types: is it going to have any impact at runtime? My main concern is about static memory consumption.