System::IsTuple メソッド

System::IsTuple method

オブジェクトがタプルかどうか(ITuple インターフェイスを実装しているか)をチェックします。位置パターン実装で使用されます。

bool System::IsTuple(const SharedPtr<Object> &object, int32_t length)
パラメーター説明
オブジェクトconst SharedPtr<Object>&チェック対象のオブジェクト。
lengthint32_t期待されるタプルの長さ

ReturnValue

オブジェクトがタプルであり、その長さが期待値と等しいかどうか

参照