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.

Members

Functions

compound
Compound!(T) compound(T args)

Returns a Compound consisting of args

Structs

Compound
struct Compound(T...)

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

Meta

Authors

Timur Gafarov