diff options
Diffstat (limited to 'src/list.h')
-rw-r--r-- | src/list.h | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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; |