User Tools

Site Tools


snippets:golang:containers:start

**This is an old revision of the document!**

golang

simple example containers

Datenstrukturen um Daten innerhalb eines Programms zu verwalten.

The Containers library is a generic collection of class templates and algorithms that allow programmers to easily implement common data structures like queues, lists and stacks. There are three classes of containers – sequence containers, associative containers, and unordered associative containers – each of which is designed to support a different set of operations.

The container manages the storage space that is allocated for its elements and provides member functions to access them, either directly or through iterators (objects with properties similar to pointers).

Most containers have at least several member functions in common, and share functionalities. Which container is the best for the particular application depends not only on the offered functionality, but also on its efficiency for different workloads.

http://en.cppreference.com/w/cpp/container

snippets/golang/containers/start.1521550807.txt.gz · Last modified: by allspark