I've been reading up on templates and they just seem like so much hastle for so little reward. I can't find anyway to effectively use it over vectors. I am just having a lot of trouble learning them because the concept seems so weird.
Manutebecker
0
Junior Poster in Training
Recommended Answers
Jump to PostI've been reading up on templates and they just seem like so much hastle for so little reward. I can't find anyway to effectively use it over vectors. I am just having a lot of trouble learning them because the concept seems so weird.
Google "C++ templates tutorial"
Lots of …
Jump to PostI've been reading up on templates and they just seem like so much hastle for so little reward. I can't find anyway to effectively use it over vectors.
The standard vector is a template. A std::vector<int> is a different thing from a std::vector<double>, but both are implemented (within the library …
All 7 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Rashakil Fol
commented:
What the fuck are you talking about?
-1
ArkM
1,090
Postaholic
grumpier
149
Posting Whiz in Training
kodak
0
Newbie Poster
spanigrahi_situ
0
Newbie Poster
StuXYZ
731
Practically a Master Poster
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.