With a traditional "hand-rolled" doubly-linked list, if you have a
reference to a Node, you can traverse from that node to the end of the
list easily. Just check for "pNext == NULL" to know when you're at the
end. You don't need any reference to the owning "list container"
object.
However, I can't
I have a fixed-point number class (based on libfixmath) which in code
largely behaves like a float due to various operator overloading.
Now, I am trying to generate random numbers with them.
Uniform random is easy enough — just reinterpret some random bits as
my fixedpoint type.
However, I'd like