Tuple#

class Tuple#

Create a small array of Exprs for defining and calling functions with multiple outputs.

Public Functions

inline size_t size() const#

The number of elements in the tuple.

inline Expr &operator[](size_t x)#

Get a reference to an element.

inline Expr operator[](size_t x) const#

Get a copy of an element.

inline explicit Tuple(Expr e)#

Construct a Tuple of a single Expr.

template<typename ...Args>
inline Tuple(const Expr &a, const Expr &b, Args&&... args)#

Construct a Tuple from some Exprs.

inline explicit Tuple(const std::vector<Expr> &e)#

Construct a Tuple from a vector of Exprs.

Tuple(const FuncRef&)#

Construct a Tuple from a function reference.

inline const std::vector<Expr> &as_vector() const#

Treat the tuple as a vector of Exprs.