commonlib
vector_with_keys.h File Reference

VectorWithKeys is a vector that has keys assigned to it's elements. More...

#include <vector>
#include <map>
#include "vector_with_keys_iterator.h"

Go to the source code of this file.

Classes

class  VectorWithKeys< KeyType, ValueType >
 

Detailed Description

VectorWithKeys is a vector that has keys assigned to it's elements.

Author
Luka Jerman
Date
09/08/2019
Version
1.0

DESCRIPTION

Standard dictionaries can not keep an order based on programmer preference and don't provide random access. VectorWithKey combines storage and access to elements similar to std::vector but also keeps unique keys assigned to it's elements. Like a dictionary it offers search by key value.