new[]
gives us consecutive memory.
C++23 draft N4928, chapter 6.7.5.5.2 (2) “Allocation functions”, emphasis mine:
An allocation function attempts to allocate the requested amount of storage. If it is successful, it returns
the address of the start of a block of storage whose length in bytes is at least as large as the requested size.
Does the C++ specification specify whether that block of memory is actually in physical RAM after the allocation, or may it be in virtual RAM only and thus completely or partially paged to disk?
Origin of this question is a discussion in the comments of this question.