small_vector icon indicating copy to clipboard operation
small_vector copied to clipboard

Small small_vector

Results 2 small_vector issues
Sort by recently updated
recently updated
newest added

`std::vector::reserve` is not noexcept, It can throw `std::length_error` and `std::bad_alloc`. `small_vector()` and `small_vector(small_vector&& other)` are marked with `noexcept` but uses the `reserve` function

https://github.com/KonanM/small_vector/blob/c9bba3e05ded04af2822ac0d2b64d3c322d17be8/include/small_vector/small_vector.h#L68 It would be better to use private inheritance here. There is a risk that someone will destroy the instance through the base class.