Logo white

Hu Chunming / mvpt_dq_ascend_arm

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • mvpt_dq_ascend_arm
  • 3rdparty
  • gb28181_3rd
  • jrtplib-3.11.2
  • tools
  • arrayalloc.cpp
  • 初次提交,代码大体完成编写,完善中
    6fdcb6a5
    Hu Chunming authored
    2025-03-24 16:01:22 +0800  
    Browse Code »
arrayalloc.cpp 297 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#include <sys/types.h>
#include <new>

inline void *operator new[](size_t numbytes, int memtype)
{
	return operator new[](numbytes);
}

inline void operator delete[](void *buffer, int memtype)
{
	operator delete[](buffer);
}

int main(void)
{
	int j = 10;
	char *a = new(j) char[10];
	return 0;
}