aboutsummaryrefslogtreecommitdiff
path: root/src/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/list.h')
-rw-r--r--src/list.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/list.h b/src/list.h
index ea67f45..4131987 100644
--- a/src/list.h
+++ b/src/list.h
@@ -344,6 +344,26 @@ namespace Bu
344 { 344 {
345 return nSize; 345 return nSize;
346 } 346 }
347
348 value &first()
349 {
350 return *pFirst->pValue;
351 }
352
353 const value &first() const
354 {
355 return *pFirst->pValue;
356 }
357
358 value &last()
359 {
360 return *pLast->pValue;
361 }
362
363 const value &last() const
364 {
365 return *pLast->pValue;
366 }
347 367
348 private: 368 private:
349 Link *pFirst; 369 Link *pFirst;