cwObject.h : Added is_type().

This commit is contained in:
kevin 2021-01-31 11:04:49 -05:00
parent b34f1e210d
commit a5d62b6e97

View File

@ -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;