Skip to content

mhfrantz/dynarray

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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)*

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%