Skip to main content

All Questions

Tagged with
3 votes
2 answers
6k views

Custom STL Vector in C++

This is my first time I tried to implement a custom STL vector with iterator. I have some questions: What are better ways to write an iterator? I know that there is a ...
Newbie's user avatar
  • 700
2 votes
2 answers
872 views

Speeding up and shortening a loop [closed]

I'm still relatively new to C++ and I've written a program that could do with being a bit shorter and faster. I use this same set of for loops many times to cycle through the whole tree of values. I'...
fiz's user avatar
  • 139
8 votes
1 answer
793 views

A pointer vector sorted by its member function

I'm asking for suggestions on a random accessed vector with allocated elements sorted by its key obtained from its member function. I use it with Qt tree view where the access, add and deletion of ...
user1899020's user avatar