add dv::value.getType(), .empty()
This commit is contained in:
parent
9b26758519
commit
9badc0a022
@ -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&;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user