Skip to content

alanzhai219/ustl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uSTL

This library is obsolete. Please use the official gcc C++ standard library.

uSTL is a partial implementation of the C++ standard library that focuses on decreasing the memory footprint of user executables. While some projects can use it to replace the standard library without any code changes, there exist important differences that you should be aware of. Please read documentation in docs/index.html before using this library in your project.

Then, after you've read it, consider whether you really want to make your project depend on a nonstandard standard library to get almost nothing for the trouble. uSTL is no longer significantly smaller than the standard library, but continues to have numerous incompatibilities that were required to get those space savings twenty years ago. So when I ask you to just use the standard library, I really do mean it!

Installation

The only dependency is a C++ compiler, gcc 5 or clang 3.6. Build configuration is in Config.mk and config.h, generated by configure. configure --help will list available configuration options.

./configure --prefix=/usr
make
make check
make install

Use

Here's a simple hello world application:

#include <ustl.h>
using namespace ustl;

int main (void)
{
    cout << "Hello world!\n";
    return EXIT_SUCCESS;
}

Compile the sources with g++, but link the executable with gcc. g++ will link with -lstdc++ by default, but to use uSTL you need to link with -lustl -lsupc++ instead. The right way to get this list of libraries is to use pkg-config --libs ustl. The pkg-config description file for uSTL is installed if you have pkg-config on your system.

Bugs

Report bugs on the github issue tracker

About

A size-optimized STL implementation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 97.0%
  • C 2.3%
  • Makefile 0.7%