Vector class UML

I am having a hard time understanding UML diagrams. In my textbook there is a UML diagram which I will list below. What would this look like as C++ code? Once I get a good understand of this I should be able to figure everything else out. :). Also, what do they mean by "elementType"? Thanks in advance.

+vector<elementType>(size: int)
+push_back(element: elementType): void
+pop_back(): void
+size(): unsigned int
+at(index: int): elementType
+empty(): bool
+clear(): void
+swap(v2: vector: void
It is nothing to do with the vector class in specific, it is just a way to diagram a class:
I just google searched C++ UML, because I also had no idea what it was.
Topic archived. No new replies allowed.