Created
June 18, 2020 01:04
-
-
Save Karsten1987/53c587aa956f095c1e909d3853b457de to your computer and use it in GitHub Desktop.
FixedSizeVector
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from here: https://stackoverflow.com/a/28878360/4583130 | |
| template <class T, class A = std::allocator<T>> | |
| struct FixedVector : private std::vector<T, A> | |
| { | |
| using FixedVector::vector::vector; | |
| using FixedVector::vector::operator=; | |
| using FixedVector::vector::get_allocator; | |
| using FixedVector::vector::at; | |
| using FixedVector::vector::front; | |
| using FixedVector::vector::back; | |
| using FixedVector::vector::data; | |
| using FixedVector::vector::begin; | |
| using FixedVector::vector::cbegin | |
| using FixedVector::vector::end; | |
| using FixedVector::vector::cend; | |
| using FixedVector::vector::empty; | |
| using FixedVector::vector::size; | |
| using FixedVector::vector::operator[]; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment