flatbuffers/include/flatbuffers
rmawatson 53a897731e this is allow custom allocator for obj-api structs/tables. (#4520)
added "native_custom_alloc" attribute to tables/structs, eg.

table parent_table( native_custom_alloc:"custom_alloc_name" ) {
...
}

with a custom allocator defined as

template <typename T> class custom_alloc_name : public std::allocator<T> {
public:

 typedef T*       pointer;

 template <class U>
 struct rebind {
  typedef custom_alloc_name<U> other;
 };

 pointer allocate(const std::size_t n) {
      return ....;
 }

 void deallocate(T* ptr, std::size_t n) {
    ...
 }

 custom_alloc_name() throw() {}
 template <class U> custom_alloc_name(const custom_alloc_name<U>&) throw() {}
};
};
2017-12-01 09:15:41 -08:00
..
base.h Updated version numbers to 1.8.0 2017-11-20 09:46:03 -08:00
code_generators.h Made codegen always output a file, even on an empty schema. 2017-05-12 16:08:58 -07:00
flatbuffers.h this is allow custom allocator for obj-api structs/tables. (#4520) 2017-12-01 09:15:41 -08:00
flatc.h Made codegen always output a file, even on an empty schema. 2017-05-12 16:08:58 -07:00
flexbuffers.h Add template version for As method. (#4443) 2017-10-02 14:38:38 -07:00
grpc.h gRPC: fix memory leak (#4351) 2017-06-13 08:50:27 -07:00
hash.h Fix #3497: Add support for compiling in g++ 4.4 and 4.5 2016-01-09 06:30:50 -06:00
idl.h this is allow custom allocator for obj-api structs/tables. (#4520) 2017-12-01 09:15:41 -08:00
minireflect.h Added support for mini-reflection tables. 2017-09-22 16:17:02 -07:00
reflection.h C++98 (stlport) support for core FlatBuffers and FlexBuffers. 2017-07-20 11:01:00 -07:00
reflection_generated.h Trimmed vtables of trailing zeroes. 2017-08-24 09:35:54 -07:00
registry.h C++98 (stlport) support for core FlatBuffers and FlexBuffers. 2017-07-20 11:01:00 -07:00
stl_emulation.h Made stl_emulation.h usable by itself. 2017-11-09 15:48:35 -08:00
util.h C++98 (stlport) support for core FlatBuffers and FlexBuffers. 2017-07-20 11:01:00 -07:00