MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / allocate

Method allocate

common/allocator.h:168–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166 [[maybe_unused]] const NewDeleteAllocator<U>& other) noexcept {}
167
168 pointer allocate(size_type n, const void* /*hint*/ = nullptr) {
169 return reinterpret_cast<pointer>(internal::AlignedNew(
170 n * sizeof(T), static_cast<std::align_val_t>(alignof(T))));
171 }
172
173#if defined(__cpp_lib_allocate_at_least) && \
174 __cpp_lib_allocate_at_least >= 202302L

Callers

nothing calls this directly

Calls 1

AlignedNewFunction · 0.85

Tested by

no test coverage detected