Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
A class for containing one or multiple instances of a data types.
Every container has its own advantages and disadvantages. For example a std::vector has random-access reading/writing, but new elements can only be added at the begin and end of the container. For a std::list, this is the other way around.
This page is about one-dimensional containers (that is a container in which one value is needed to retrieve an element). For two-dimensional containers, go to the matrix page.
SGI extension containers (incomplete list)
- bit_vector
- hash_set
- hash_map
- hash_multiset
- hash_multimap
- hash
- rope
For two-dimensional containers, go to the matrix page.
- ContainerToStr, convert a container to a std::string
- Convert a container to a std::string, ContainerToStr
- Copy the first element of the std::pairs in a std::vector, CopyFirst
- Copy the second element of the std::pairs in a std::vector, CopySecond
- CopyFirst, copy the first element of the std::pairs in a std::vector
- CopySecond, copy the second element of the std::pairs in a std::vector
- CoutContainer, std::cout a container
- ExtractIds, extract the ID's for a std::vector of Persons
- Extract the ID's for a std::vector of Persons, ExtractIds
- Get the mean value of all elements in a container, GetMean
- Get the sum of all elements in a container, GetSum
- Get the three lowest elements of a container, GetMinThree
- GetMean, get the mean value of all elements in a container
- GetMinThree, obtain the three lowest elements of a container
- GetSum, get the sum of all elements in a container
- LoopReader, reading a container looped
- Reading a container looped, LoopReader
- Reciprocal, replace all values in a container by their reciprocal
- Replace all values in a container by their reciprocal, Reciprocal
- Save a container to file, SaveContainer
- SaveContainer, save a container to file
- std::cout a container, CoutContainer
- Triple all values in a container, Triple
- Triple, triple all values in a container
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.
