System::IsTuple method

System::IsTuple method

Checks if object is tuple (implements ITuple interface). Used in positional pattern implementation.

bool System::IsTuple(const SharedPtr<Object> &object, int32_t length)
ParameterTypeDescription
objectconst SharedPtr<Object>&object to check.
lengthint32_texpected tuple length

ReturnValue

is object is tuple and its length equal to expected one

See Also