SkillAgentSearch skills...

Dynarray

Adjusted implementation of std::experimental::dynarray without stack allocation.

Install / Use

/learn @Robbepop/Dynarray
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

dynarray

Licence: MIT
Author: Robin F. (C) 2016
Depencencies: none*

Slightly adjusted custom implementation for std::experimental::dynarray container. This version of this container in contrast is not designed to be used with stack allocation schemes and so requires heap memory (like std::vector) to store its elements. This change of behaviour implies minor adjustments to the API.

Requires a C++11 conformant compiler in order to work.

Tries to be as much as possible conformant to the standard library, STL containers, algorithms and its iterator facilities.

The advantages of this container compared to std::vector is that it object size is smaller since it does not require a current-capacity pointer. This means that it could be used as a building block for std::vector. Using a large number (array) of these instances will require less memory compared to std::vector which can be important in memory critical applications.

The major disadvantage is that it cannot shrink or grow in size after initial construction of an instance of this container.

( not counting C++ standard library dependencies)*

View on GitHub
GitHub Stars11
CategoryDevelopment
Updated1y ago
Forks8

Languages

C++

Security Score

75/100

Audited on Jan 16, 2025

No findings