Get the node at a chain offset.
- Parameters
-
- Returns
- the i-th node
- Exceptions
-
Definition at line 105 of file chain.hpp.
References likely, csdbg::node< T >::link(), and unlikely.
108 throw exception(
"offset out of chain bounds (%d >= %d)", i,
m_size);
118 node<T> *prev = NULL, *next;
119 while (
likely(j-- > 0) ) {
120 next = cur->link(prev);
#define likely(expr)
Offer a hint (positive) to the pipeline branch predictor.
node< T > * m_tail
Chain tail.
node< T > * m_head
Chain head.
int i32
32-bit signed integer
#define unlikely(expr)
Offer a hint (negative) to the pipeline branch predictor.