Skip to content

mikolajskalka/DynamicArray-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Dynamic array class template

This is my implementation of dynamic array template in C++.

It is supposed to work exactly as <vector> template, but was made on my C++ classes, so please don't be too certain about it.

It is not finished. Still have to add few more fetures.

Use and features

Template contains two private fields, defining size of an array, and a pointer to dynamicly allocated array of objects. It has iterator, as well as const iterator.

Template has defined:

  • constructor,
  • copy constructor,
  • copy assignment operator,
  • move constructor,
  • move assignment operator,
  • destructor

Methods and overloaded operators:

  • output operator <<,
  • operator[],
  • getElem(),
  • setElem(),
  • size(),
  • push_back(),
  • pop_back(),
  • begin(),
  • end().

About

Dynamic array class template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages