What is this? This is a new, never seen, useless container.
real_array is like a normal array, but with one difference: to access to the n-th element of the array you have to use [n] instead of [n-1]. What? Yes you have understood perfectly...we say enough to range errors!
What can I do? You can do whatever you want. This class template provides all common methods like: size, front, back, at and others. It provides iterators, exceptions for wrong indexing, and useful operator overloading. You can also initialize a real_array using initializer_list. Run examples.cpp to see some examples.
Note that jfet::real_array transfers its constness to the contained objects.
Read the wiki!
#code4fun
This template class is being created to access to the n-th element of an array using [n] instead of [n-1]. I'm creating an useless new type to replace arrays.
License
jfet97/real_array
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
This template class is being created to access to the n-th element of an array using [n] instead of [n-1]. I'm creating an useless new type to replace arrays.
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published