MCPcopy Create free account
hub / github.com/ThePhD/sol2 / aligned_space_for

Function aligned_space_for

include/sol/stack_core.hpp:103–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101
102 template <typename... Args>
103 constexpr std::size_t aligned_space_for(std::uintptr_t ptr) {
104 std::uintptr_t end = ptr;
105 ((end = align_one(alignof(Args), sizeof(Args), end)), ...);
106 return static_cast<std::size_t>(end - ptr);
107 }
108
109 template <typename... Args>
110 constexpr std::size_t aligned_space_for() {

Callers

nothing calls this directly

Calls 1

align_oneFunction · 0.85

Tested by

no test coverage detected