Module dlib.core.compound

Tuple + struct hybrid

Description

This template can be used to construct data types on-the-fly and return them from functions, which cannot be done with pure tuples. One possible use case for such types is returning result and error message from function instead of throwing an exception.

Functions

NameDescription
compound(args) Returns a Compound consisting of args

Structs

NameDescription
Compound A struct that consists of a tuple T. Allows square bracket access to the members of a tuple