diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2009-09-15 08:56:48 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2009-09-15 08:56:48 +0000 |
| commit | f27b485eaf1088fa4895d1af4aee9abc2b801872 (patch) | |
| tree | 8718dee14fcaae070cb83583ab712f18d36b0067 /src/list.h | |
| parent | c6523112b63839a418648a3107f1b07026b9ce2d (diff) | |
| download | libbu++-f27b485eaf1088fa4895d1af4aee9abc2b801872.tar.gz libbu++-f27b485eaf1088fa4895d1af4aee9abc2b801872.tar.bz2 libbu++-f27b485eaf1088fa4895d1af4aee9abc2b801872.tar.xz libbu++-f27b485eaf1088fa4895d1af4aee9abc2b801872.zip | |
Minor change, added a new constructor for lists that lets you append the first
element to the list in the constructor.
Diffstat (limited to '')
| -rw-r--r-- | src/list.h | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -217,6 +217,11 @@ namespace Bu | |||
| 217 | SharedCore< Core >( src ) | 217 | SharedCore< Core >( src ) |
| 218 | { | 218 | { |
| 219 | } | 219 | } |
| 220 | |||
| 221 | List( const value &v ) | ||
| 222 | { | ||
| 223 | append( v ); | ||
| 224 | } | ||
| 220 | 225 | ||
| 221 | ~List() | 226 | ~List() |
| 222 | { | 227 | { |
