cpp/experimental/function/get memory resource