OH! I see - that makes perfect sense! Thanks very much for the help. :)
Type: Posts; User: Beamu
OH! I see - that makes perfect sense! Thanks very much for the help. :)
Exceptional thank you! Although - i'm not 100% sure why it worked - would someone be so kind as to give me a quick explanation as to why I need the the struct to do the test? I thought sort would use...
Hi all,
I have a stl::vector containing pointers to objects. I need to sort this vector based on a member variable (accessible by a getter function). Can someone give me a clue as to how to go...
Yup agreed. Assume I understood what you said, and that my original pseudo code was just plain terrible. :)
Soundness in that my original naive concern was that by continually using the same...
Yup - thanks, you're right there - that was pretty poor pseudo code. But the concept is sound. Is that because the value of temp is copied during the push_back call?
Yeah - maybe i'm going about this wrong...
What i'm trying to do is store a vector of vectors of type int. Which is fine, given this scenario:
typedef std::vector <int> fooData;...
Hi all,
Just having a semantics issue with STL. Given a declaration as per the following:
typedef std::vector <int> fooData;
std::vector <fooData> m_fooData;
oh - my - god...
sorry - this is the end of a 16 hour coding session and i'm not thinking straight. Thanks!
Hi all,
I'm having some trouble getting my head around using a vector of vectors. I was wondering if anyone could set me straight with this - it's been ages since i've used vectors... :/
...
Ah yeah - thanks - I was totally reading that initial code wrong when I tried to re-implement it with iterators. Thanks guys! :)
Hi all,
Got a quick question regarding iterators and subtracting offsets and I was wondering if you can help me out here. I had some code that was accessing a vector like such:
for (int i...