tinystl icon indicating copy to clipboard operation
tinystl copied to clipboard

Tiny (as in minimal) implementation of some core STL functionality

Results 11 tinystl issues
Sort by recently updated
recently updated
newest added

This is being caught be clang's undefined behaviour sanitiser. See https://godbolt.org/z/nWf48K Normally I wouldn't worry about this sort of language-lawyer level thing but it's making tinystl unusable with the sanitiser.

In my own project I need to load a dll with static unordered map without allocation, allocation inside the dll are wrapped and the allocator is set after the loading...

Just noticed a small typo https://github.com/mendsley/tinystl/blob/master/include/TINYSTL/string_view.h#L2

I see `inline void* operator new(size_t, tinystl::placeholder, void* ptr)` in `new.h`. Why do we need the `placeholder` instead of using inplace new directly?

Based roughly on Visual Studio's conventions for containers. Added a few extra "[size]" items that equivalent containers don't always have (e.g. Microsoft's basic_string has [size], but vector does not, whereas...

Minimal std::list compatible container.

enhancement

Sorry, I accidentally closed the first pull request (https://github.com/mendsley/tinystl/pull/10), reopening again. The pull request is a bit larger than expected. It contains two features: 1. An optimized string representation: buffer...

would be great to have! :) https://msdn.microsoft.com/en-us/library/jj620914.aspx

- Fixes #26 - Fixes #25 - Fixes string::swap bug.

https://github.com/mendsley/tinystl/blob/c51bc42011eb4920df09408d996921547200e2fd/include/TINYSTL/buffer.h#L206-L207 should be: ```cpp if (!b->first || b->first + newsize > b->capacity) ``` I know it's annoying, because it sort of is super-correct if you just ignore the fact that...