Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2019-05-27 00:38:07 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2019-05-27 00:38:07 +0300
commit14d5c7fe0ff391d9fcf93e98ca8a6f25bfca1374 (patch)
treec2765806da91737ff4c57c6e56e12def3ac399e8 /example
parent19115c0eb238e6ab5e159c246d88ff551b134e9c (diff)
Remove map_view<T>, as attached<T> has supplanted it. This bring LLFIO up to date with P1031R2.
Diffstat (limited to 'example')
-rw-r--r--example/use_cases.cpp4
1 files changed, 2 insertions, 2 deletions
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<char> p2(mh);
+ llfio::attached<char> 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<int> one_trillion_int_array(mfh);
+ llfio::attached<int> 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;