X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2FListParser.hh;h=d7c19a18a0f56c8fcfe6eff959d99b3581689fde;hb=6aa7b87666f6f06e6e5cff5eb9b3d357e303abcd;hp=7986f36f88d16cbad24cb0add2640a16b7b12e4f;hpb=601d1f509f5bb24df167a4dd5a20da67a0af9af8;p=senf.git diff --git a/senf/Packets/ListParser.hh b/senf/Packets/ListParser.hh index 7986f36..d7c19a1 100644 --- a/senf/Packets/ListParser.hh +++ b/senf/Packets/ListParser.hh @@ -101,10 +101,10 @@ namespace senf { value_type front() const; value_type back() const; - template void push_back (Value value, size_type n=1) const; - void push_back_space (size_type n=1) const; - template void push_front (Value value, size_type n=1) const; - void push_front_space (size_type n=1) const; + template void push_back (Value const & value, size_type n=1) const; + value_type push_back_space (size_type n=1) const; + template void push_front (Value const & value, size_type n=1) const; + value_type push_front_space (size_type n=1) const; void resize (size_type n) const; template void resize (size_type n, Value value) const; @@ -183,7 +183,7 @@ namespace senf { ///@{ // All these operations can be quite inefficient depending on the list type - void shift(iterator pos, size_type n=1); + value_type shift(iterator pos, size_type n=1); template void insert(iterator pos, Value const & t); template @@ -200,11 +200,11 @@ namespace senf { void erase(iterator f, iterator l); void clear(); - template void push_back (Value value, size_type n=1); - void push_back_space (size_type n=1); - template void push_front (Value value, size_type n=1); - void push_front_space (size_type n=1); - void resize (size_type n); + template void push_back (Value const & value, size_type n=1); + value_type push_back_space (size_type n=1); + template void push_front (Value const & value, size_type n=1); + value_type push_front_space (size_type n=1); + void resize (size_type n); template void resize (size_type n, Value value); ///@}