FuncVec#

class FuncVec : public std::vector<Func>#

A vector of Funcs with conveniences for constructing and consuming collections of Funcs.

Public Functions

FuncVec(const std::string &base_name, size_t count, const std::string &suffix = "")#

Construct count undefined Funcs.

A singleton is named base_name; otherwise the Funcs are named base_name + their index. suffix, if given, is appended after the name.

operator Func() const#

Convert a singleton FuncVec to its sole Func.

It is a user error if the FuncVec does not contain exactly one Func.