mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 15:01:49 +00:00
add dv::value.getType(), .empty()
This commit is contained in:
parent
9b26758519
commit
9badc0a022
1 changed files with 7 additions and 0 deletions
|
|
@ -292,11 +292,18 @@ namespace dv {
|
||||||
|
|
||||||
const objects::Object& asObject() const;
|
const objects::Object& asObject() const;
|
||||||
|
|
||||||
|
value_type getType() const {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
const size_t size() const;
|
const size_t size() const;
|
||||||
|
|
||||||
const size_t length() const {
|
const size_t length() const {
|
||||||
return size();
|
return size();
|
||||||
}
|
}
|
||||||
|
bool empty() const {
|
||||||
|
return size() == 0;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
using reference = value&;
|
using reference = value&;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue