MCPcopy Create free account
hub / github.com/Samsung/rlottie / allocate

Method allocate

src/vector/vstackallocator.h:122–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 template <class _Up> struct rebind {using other = stack_alloc<_Up, N, alignment>;};
121
122 T* allocate(std::size_t n)
123 {
124 return reinterpret_cast<T*>(a_.template allocate<alignof(T)>(n*sizeof(T)));
125 }
126 void deallocate(T* p, std::size_t n) noexcept
127 {
128 a_.deallocate(reinterpret_cast<char*>(p), n*sizeof(T));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected