As_Pair concept map

Back to Deprecated

Pairs of objects occur repeatedly in programming, most often to denote 2d coordinates, an association between two objects, or simply a logical grouping. Since it is such a fundamental data structure, and because it is also something to which many data structures simplify to, a pair of objects can be found in various guises even inside the same library. In Pastel, a pair can be given as a std::pair, or a Tuple. Thus a concept map is needed to map the syntactically different types to a uniform concept. This concept map is called the As_Pair.

Files

An aggregate file for As_Pair objects.

As_Pair concept

Tuple as a Pair

std::pair as a Pair