MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / aligned_space_for

Function aligned_space_for

extlibs/sol3/include/sol/sol.hpp:9300–9304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9298
9299 template <typename... Args>
9300 std::size_t aligned_space_for(void* alignment = nullptr) {
9301 char* start = static_cast<char*>(alignment);
9302 (void)detail::swallow { int {}, (align_one(std::alignment_of_v<Args>, sizeof(Args), alignment), int {})... };
9303 return static_cast<char*>(alignment) - start;
9304 }
9305
9306 inline void* align_usertype_pointer(void* ptr) {
9307 using use_align = std::integral_constant<bool,

Callers

nothing calls this directly

Calls 1

align_oneFunction · 0.85

Tested by

no test coverage detected