#
DIFF.BLOG
New
Following
Discover
Jobs
More
Top Writers
Suggest a blog
Upvotes plugin
Report bug
Contact
About
Sign up
The home for great developer writing.
We surface the best developer writing from thousands of independent blogs, updated daily.
Join Diff.blog
TOPICS
How can you swap two adjacent blocks of memory using only forward iterators?
1
·
Raymond Chen
·
Jan. 2, 2026, 3:10 p.m.
Old New Thing
Code
Memory Management
iterators
Algorithm Design
programming techniques
Summary
This blog post discusses a unique algorithm for swapping two adjacent memory blocks specifically utilizing forward iterators, showcasing a clever approach to a programming challenge.
Read full post on devblogs.microsoft.com →
MORE POSTS LIKE THIS
How can you swap two non-adjacent blocks of memory using only forward iterators?
Raymond Chen ·
Jan 5, 2026
Old New Thing
Code
Cloning an Rc from its pointer
Users Rust Lang ·
Jul 26, 2026
Rust
Memory Management
Ante: A New Way to Blend Borrow Checking and Reference Counting
Evan Ovadia ·
Jun 28, 2026
programming-languages
Mojo Programming Language
Let's Decode the Mystery Bytes!
Casey Muratori ·
Jun 22, 2026
Memory Management
Debugging
Memory Management in C++ by Patrice Roy
Sandordargo ·
Jun 17, 2026
books
C++
MOVE_ALLOC extended to derived types containing allocatable components
Fortran Lang Discourse ·
May 22, 2026
Fortran
programming techniques
Discover more posts →
AUTHOR
RECENT POSTS FROM THE AUTHOR
Choose how you want to continue.
Continue with GitHub
Continue with Google