A base library for C++11 and beyond.
Operating System | Compiler | Status |
---|---|---|
Windows | MSVC 2015/2017 | |
Linux | Clang | |
Linux | GCC | |
MacOS | Clang |
-
Portability - Sticking to C++98 headers from the STL, while using C++11,C++14,C++17 features allow us to use a front end that accepts new modern C++ language features, while still being able to target the standard library to an older version. This is specifically useful when targeting MacOSX 10.6 or lower, because I can use C++11 language features and use libstdc++ as libc++ requires MacOSX 10.7 or higher.
-
Consistency - The lot of implementations of the STL are implementation defined. I want a toolbox that I can use across multiple toolchains and be the same. For example, Small String Optimization inside of my String library.
-
Less Bloat - The STL is a huge toolbox. I doubt that I have ever even used half of what is available in the STL, and it keeps growing. Look at the bloat with streams...
-
Control - I like to have control over fixing bugs instead of relying on compiler vendors to hopefully fix the bugs (Some of the STL had regressions going from Visual studio 2010 and haven't been fixed just until the latest update to VS2015, or take the whole std::chrono debacle where the high precision timer wasn't being used for a long time)
-
Performance - Take std::unordered_map and how many different heap allocations it does. Sure, I could go out of my way to write a custom allocator. Also, there are quite a few inefficiencies between standard libraries versions. For example, small string optimization is implemented in some versions of the STL while others are not. I want consistency in performance.
-
Debug times in some implementations are extremely slow because of error checking and exceptions. I realize that debug is supposed to be slower, but in my own opinion it was sometimes excessive.
-
Personal Learning - I wanted to practice writing data structures and understand the work that the STL hides from the programmer.
- MSVC Community Edition 2015 (Latest Update) (CI)
- MSVC Community Edition 2017 (Latest Update) (CI)
- Apple XCode 8.3.3 with Clang (CI)
- Clang 3.5 (CI)
- GCC 4.8.4 (CI)
This library has been relicensed under the MIT License, from the 3 Clause BSD License. See LICENSE for more information.