docs
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
:sig
|
||||
bool DValue::is_reference() const
|
||||
|
||||
:params
|
||||
return value : true when this node itself is a reference node
|
||||
|
||||
:see
|
||||
0_DValue
|
||||
2_DValue_reference_target
|
||||
2_DValue_deref
|
||||
|
||||
:content
|
||||
Reports whether the current node's direct type tag is the internal reference tag. Most read methods dereference automatically; this helper is mainly useful when handling reference-aware runtime state.
|
||||
|
||||
```cpp
|
||||
if(value.is_reference()) print("reference");
|
||||
```
|
||||
Reference in New Issue
Block a user