MCPcopy Create free account
hub / github.com/Norbyte/bg3se / try_get

Method try_get

CoreLib/Base/SparseArray.h:77–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 }
76
77 inline T const* try_get(size_type index) const
78 {
79 se_assert(index < values_.size());
80 if (!mask_[index]) {
81 return nullptr;
82 } else {
83 return &values_[index];
84 }
85 }
86
87 inline T* try_get(size_type index)
88 {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected