Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/diasurgical/DevilutionX
/ ptr
Method
ptr
Source/utils/static_vector.hpp:113–116 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
111
alignas(alignof(T)) std::byte data[sizeof(T)];
112
113
[[nodiscard]] const T *ptr() const
114
{
115
return std::launder(reinterpret_cast<const T *>(data));
116
}
117
118
[[nodiscard]] T *ptr()
119
{
Callers
2
data
Method · 0.80
StaticVector
Class · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected