¡@

Home 

c++ Programming Glossary: scratchmem

Shared memory buffers in C++ without violating strict aliasing rules

http://stackoverflow.com/questions/18624449/shared-memory-buffers-in-c-without-violating-strict-aliasing-rules

as something like void foo ... some arguments here ... int scratchMem new int 1000 Allocate. Do stuff... delete scratchMem Free. Then.. int scratchMem new int 1000 Allocate. Do stuff... delete scratchMem Free. Then I have another function that does some other stuff.. also needs a scratch buffer void bar ...arguments... float scratchMem new float 1000 Allocate. Do other stuff... delete scratchMem..