Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nodejs/node-addon-api
/ UnwrapOr
Method
UnwrapOr
napi-inl.h:588–590 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
586
587
template <class T>
588
T Maybe<T>::UnwrapOr(const T& default_value) const {
589
return _has_value ? _value : default_value;
590
}
591
592
template <class T>
593
bool Maybe<T>::UnwrapTo(T* out) const {
Callers
3
VoidCallback
Function · 0.80
NormalJsCallback
Function · 0.80
MaybeUnwrapOr
Function · 0.80
Calls
no outgoing calls
Tested by
1
MaybeUnwrapOr
Function · 0.64