From a5d62b6e9724eee85c4c981eaa9d46d9c83aa0fc Mon Sep 17 00:00:00 2001 From: kevin Date: Sun, 31 Jan 2021 11:04:49 -0500 Subject: [PATCH] cwObject.h : Added is_type(). --- cwObject.h | 1 + 1 file changed, 1 insertion(+) diff --git a/cwObject.h b/cwObject.h index cfb5728..c50097a 100644 --- a/cwObject.h +++ b/cwObject.h @@ -115,6 +115,7 @@ namespace cw inline bool is_pair() const { return type != nullptr && type->id == kPairTId; } inline bool is_dict() const { return type != nullptr && type->id == kDictTId; } inline bool is_list() const { return type != nullptr && type->id == kListTId; } + inline bool is_type( unsigned tid ) const { return type != nullptr && type->id == tid; } rc_t value( void* dst, unsigned dstTypeId ); rc_t value( char& v ) const;