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-06-13 12:53:29 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2019-06-13 12:53:29 +0300
commit748ef4600d59d65686d7e289f79c4601d7bed5c5 (patch)
tree865377c283ba0f674158b88ceb0f5d984e6eb275 /example/use_cases.cpp
parent01ae411e1ffa9038cf1ce90ee7f002b6d131fb35 (diff)
parent14d5c7fe0ff391d9fcf93e98ca8a6f25bfca1374 (diff)
Merge branch 'develop' of github.com:ned14/boost.afio into develop
Diffstat (limited to 'example/use_cases.cpp')
-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 160bcc9f..93448075 100644
--- a/example/use_cases.cpp
+++ b/example/use_cases.cpp
@@ -227,7 +227,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
@@ -383,7 +383,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;