T
Thomas Kowalski
Hi,
I would like to write a template class Polygon<VertexTyp> there vertex
typ can be eigther a pointer or a value typ.
It has an attribute:
std::vector<VertexTyp> vertices;
And a methode:
VertexValueTyp& vertex(int i);
that dereferences vertices internally in case VertexTyp is a pointer
type.
How can I achieve this? Are there any step-by-step guides online?
Thanks in advance,
Thomas Kowalski
I would like to write a template class Polygon<VertexTyp> there vertex
typ can be eigther a pointer or a value typ.
It has an attribute:
std::vector<VertexTyp> vertices;
And a methode:
VertexValueTyp& vertex(int i);
that dereferences vertices internally in case VertexTyp is a pointer
type.
How can I achieve this? Are there any step-by-step guides online?
Thanks in advance,
Thomas Kowalski