Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andreasfertig/programming-with-cpp20
/ storage_t
Method
storage_t
01.32-optional5/main.cpp:51–51 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
49
aligned_storage_t data;
50
51
storage_t() = default;
52
53
T* as() { return reinterpret_cast<T*>(&data); }
54
// use placement new to create an instance of T inside this
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected