Skip to content
Snippets Groups Projects
MemoryProcessing.h 370 B
Newer Older
  • Learn to ignore specific revisions
  • 数学の武士's avatar
    数学の武士 committed
    #pragma once
    #include "TemplateParameters.h"
    #include <cstddef>
    
    template <MemType memtype>
    bool realloc(void *&array, size_t &allocated_size, const size_t new_size);
    
    template<MemType memtype>
    bool dealloc(void *&array, size_t &allocated_size);
    
    template <MemType dst_memtype, MemType src_memtype>
    bool memcopy(void *dst, const void* src, const size_t copy_elem_size);