add dv::value.getType(), .empty()

This commit is contained in:
MihailRis 2024-09-16 20:49:39 +03:00
parent 9b26758519
commit 9badc0a022

View File

@ -292,11 +292,18 @@ namespace dv {
const objects::Object& asObject() const;
value_type getType() const {
return type;
}
const size_t size() const;
const size_t length() const {
return size();
}
bool empty() const {
return size() == 0;
}
};
using reference = value&;