aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-09-15 08:56:48 +0000
committerMike Buland <eichlan@xagasoft.com>2009-09-15 08:56:48 +0000
commitf27b485eaf1088fa4895d1af4aee9abc2b801872 (patch)
tree8718dee14fcaae070cb83583ab712f18d36b0067
parentc6523112b63839a418648a3107f1b07026b9ce2d (diff)
downloadlibbu++-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.
-rw-r--r--src/list.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/list.h b/src/list.h
index cce29fe..c587c1a 100644
--- a/src/list.h
+++ b/src/list.h
@@ -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 {