diff --git a/src/Type.h b/src/Type.h index cae2429719..fc5e1aa6c9 100644 --- a/src/Type.h +++ b/src/Type.h @@ -920,6 +920,12 @@ inline bool IsVector(TypeTag t) { return (t == TYPE_VECTOR); } // True if the given type type is a string. inline bool IsString(TypeTag t) { return (t == TYPE_STRING); } +// True if the given type is a container aggregate. +inline bool IsAggr(TypeTag tag) + { + return tag == TYPE_VECTOR || tag == TYPE_TABLE || tag == TYPE_RECORD; + } + // True if the given type tag corresponds to the error type. inline bool IsErrorType(TypeTag t) { return (t == TYPE_ERROR); }