This is the home page for LibGoSTL.
About LibGoSTL
LibGoSTL is a variant of STL extension. It provides new containers and functionality.
Contents of the library
- class LibGo::MemoryPool - very fast fixed-sized memory pool;
- class LibGo::MemoryPoolAllocator - STL-compliant allocator based on LibGo::MemoryPool,
it's ideal for list or map or any other container with fixed-sized nodes.
- class LibGo::Array - vector-like container, but much more customisable
(additional template arguments specifies parameters of reallocation new elements are added
to this container)
- class LibGo::Buffer - vector-like container too, can be used instead small buffers on stack.
It doesn't use dynamic allocation while it has a small size, however it can use dynamic memory allocation
if it extends to larger size). It works much faster than ordinary vector for small sizes.
This container is very useful for creating a small local buffer in a functions.
- class LibGo::StringStream - very fast string stream, based on LibGo::Buffer.
- class LibGo::CommandLineArgs - simple parser for command-line arguments.
- class LibGo::Thread, class LibGo::Mutex, class LibGo::Semaphore - cross-platform thread and
synchronization support.
- class LibGo::SWMRGuard - single writer/multiple readers guard (for multi-thread synchronization).
- class LibGo::Time - cross-platform time support (get local time; get utc time; convert time to
unix/dos format; get time components, etc.).
- class LibGo::UnicodeUtil - operations with Unicode (UTF-8).
- class LibGo::UnicodeConverter - converter to/from UTF-8.
Currently supports only encodings: "cp1251", "ascii7", "utf-16", "utf-32"
but can be easily extended for more encodings.
Platform
The source code was written initially to be cross-platform and working under
Windows and Unix/Linux, however I've tested it only under Windows,
so some components can work incorrectly under Unix/Linux.
License
This program is free software: you can redistribute it and/or modify it under the terms of the MIT license.
Getting LibGoSTL
You can download my source code as a single archive:
http://downloads.sourceforge.net/project/libgostl/current/LibGoSTL-src.zip
or via SVN:
http://svn.code.sf.net/p/libgostl/code/trunk/
Development
LibGoSTL is maintained and distributed via a Sourceforge project.
Copyright (c) 2009-2011 Vitaly Baranov; baranovve@mail.ru