]> git.llucax.com Git - software/posixx.git/commit
Add posix::basic_buffer template and posix::buffer class
authorLeandro Lucarella <llucarella@integratech.com.ar>
Wed, 8 Oct 2008 16:40:50 +0000 (13:40 -0300)
committerLeandro Lucarella <llucarella@integratech.com.ar>
Wed, 8 Oct 2008 19:03:46 +0000 (16:03 -0300)
commit5cc37d5e30b015c36f850c0d49a7da35c925c321
treeac46187806b8c83b3de60f274df5c0ebd846f68d
parentfc84bcdd047461660433cba82c839a1f23dde5cc
Add posix::basic_buffer template and posix::buffer class

posixx::basic_buffer provides easy to use, STL-container-lke and
exception-safe class to manipulate buffers. It's a pseudo-static array
(you can resize it but you can't append or insert/remove arbitrary
elements). It's parametrized to support different kinds of allocators (not
in the STL-sense, it uses a realloc-like function).

posix::buffer is just a posix::basic_buffer< &realloc >.
src/basic_buffer.hpp [new file with mode: 0644]
src/buffer.hpp [new file with mode: 0644]
test/buffer.cpp [new file with mode: 0644]