Add new file-variable 'comment-column'
[senf.git] / Packets / ParseListS.ct
index 56388a8..a96196f 100644 (file)
@@ -80,9 +80,8 @@ template <class Parser, class Sentinel, class Container>
 template <class Value>
 prefix_ void
 senf::Parse_ListS_wrapper<Parser,Sentinel,Container>::insert(iterator pos,
-                                                                    Value const & t)
+                                                             Value const & t)
 {
-    /** \fixme What, if pos == end() / default constructed iterator ? */
     size_type ix (pos.raw()-container_.begin());
     container_.insert(pos.raw(),t.bytes(),0);
     Parser(container_.begin()+ix).value(t);
@@ -92,7 +91,7 @@ template <class Parser, class Sentinel, class Container>
 template <class Value>
 prefix_ void
 senf::Parse_ListS_wrapper<Parser,Sentinel,Container>::insert(iterator pos, size_type n,
-                                                                    Value const & t)
+                                                             Value const & t)
 {
     size_type ix (pos.raw()-container_.begin());
     container_.insert(pos.raw(),n*t.bytes(),0);
@@ -105,9 +104,10 @@ template <class Parser, class Sentinel, class Container>
 template <class InputIterator>
 prefix_ void
 senf::Parse_ListS_wrapper<Parser,Sentinel,Container>::insert(iterator pos,
-                                                                    InputIterator f,
-                                                                    InputIterator l)
+                                                             InputIterator f,
+                                                             InputIterator l)
 {
+    /** \todo Optimize this for random-access and multi-pass iterators */
     for (;f!=l;++f,++pos) insert(pos,*f);
 }
 
@@ -121,4 +121,6 @@ senf::Parse_ListS_wrapper<Parser,Sentinel,Container>::insert(iterator pos,
 // c-file-style: "senf"
 // indent-tabs-mode: nil
 // ispell-local-dictionary: "american"
+// compile-command: "scons -u test"
+// comment-column: 40
 // End: