Searched refs:custom_allocator (Results 1 – 2 of 2) sorted by relevance
171 bool custom_allocator = (pAllocator != nullptr); in CreateObject() local180 pNewObjNode->status = custom_allocator ? OBJSTATUS_CUSTOM_ALLOCATOR : OBJSTATUS_NONE; in CreateObject()229 bool custom_allocator = pAllocator != nullptr; in ValidateDestroyObject() local244 …if (allocated_with_custom && !custom_allocator && expected_custom_allocator_code != kVUIDUndefined… in ValidateDestroyObject()252 …} else if (!allocated_with_custom && custom_allocator && expected_default_allocator_code != kVUIDU… in ValidateDestroyObject()
140 - `native_custom_alloc`:"custom_allocator" (on a table or struct): When using the151 table mytable(native_custom_alloc:"custom_allocator") {155 with custom_allocator defined before flatbuffers.h is included, as:157 template <typename T> struct custom_allocator : public std::allocator<T> {163 typedef custom_allocator<U> other;174 custom_allocator() throw() {}176 custom_allocator(const custom_allocator<U>&) throw() {}