mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21: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;
|
||||
|
||||
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…
Add table
Add a link
Reference in a new issue