手一黏便緊(UTC+9
2022-11-27 21:50:28
手巴個po都講左 pointer還pointer allocation還allocation
你咁既話仲要諗pointer to global pointer to mmap pointer to video memory blar blar blar
強力飲水
2022-11-27 22:13:38
明了。。
pointer 是pointer
New 是new
嘴遁師青花
2022-11-27 23:01:37
完全5識呢D嘢
我還能混下去嗎
:^(
力=質量x加速度
2022-11-27 23:23:25
此回覆已被刪除
手一黏便緊(UTC+9
2022-11-27 23:43:27
最純粹黎講 即係唔理啲類似type咩咩柒柒非必要而又trivial既構造 (yes pointer唔需要有type eg consider asm)
pointer is just a number that does not necessary support arithmetic. ie it is merely a handle, with implementation defined arithmetic
new “Creates and initializes objects with dynamic storage duration, that is, objects whose lifetime is not necessarily limited by the scope in which they were created.” https://en.cppreference.com/w/cpp/language/new
And yes I can code an allocator that allocate on anywhere.