@@ -119,6 +119,15 @@ public:
return *this;
}
+ template<typename Z>
+ size_t size() const
+ {
+
+ assert(is_type<Z>());
+ return _size / sizeof(Z);
+ }
std::string to_string() const
{
if (empty()) {