From 14d5c7fe0ff391d9fcf93e98ca8a6f25bfca1374 Mon Sep 17 00:00:00 2001 From: "Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)" Date: Sun, 26 May 2019 22:38:07 +0100 Subject: Remove map_view, as attached has supplanted it. This bring LLFIO up to date with P1031R2. --- example/use_cases.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example') diff --git a/example/use_cases.cpp b/example/use_cases.cpp index 9237f5e1..1daf07f7 100644 --- a/example/use_cases.cpp +++ b/example/use_cases.cpp @@ -224,7 +224,7 @@ void malloc1() mh.do_not_store({mh.address(), mh.length()}).value(); // Fill the memory with 'b' C++ style, probably faulting new pages into existence - llfio::map_view p2(mh); + llfio::attached p2(mh); std::fill(p2.begin(), p2.end(), 'b'); // Kick the contents of the memory out to the swap file so it is no longer cached in RAM @@ -380,7 +380,7 @@ void sparse_array() (void) mfh.truncate(1000000000000ULL * sizeof(int)); // Create a typed view of the one trillion integers - llfio::map_view one_trillion_int_array(mfh); + llfio::attached one_trillion_int_array(mfh); // Write and read as you see fit, if you exceed physical RAM it'll be paged out one_trillion_int_array[0] = 5; -- cgit v1.2.3