-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite docs for std::ptr
#49767
Rewrite docs for std::ptr
#49767
Commits on Apr 7, 2018
-
- Add links to the GNU libc docs for `memmove`, `memcpy`, and `memset`, as well as internally linking to other functions in `std::ptr` - List sources of UB for all functions. - Add example to `ptr::drop_in_place` and compares it to `ptr::read`. - Add examples which more closely mirror real world uses for the functions in `std::ptr`. Also, move the reimplementation of `mem::swap` to the examples of `ptr::read` and use a more interesting example for `copy_nonoverlapping`. - Change module level description
Configuration menu - View commit details
-
Copy full SHA for 8b8091d - Browse repository at this point
Copy the full SHA 8b8091dView commit details -
Change
write_bytes
test causing UB tono_run
This also fixes improper text wrapping.
Configuration menu - View commit details
-
Copy full SHA for ee259e4 - Browse repository at this point
Copy the full SHA ee259e4View commit details
Commits on Apr 8, 2018
-
Configuration menu - View commit details
-
Copy full SHA for b564c4a - Browse repository at this point
Copy the full SHA b564c4aView commit details -
Don't link "Undefined Behavior" heading
The rendered version does not make clear that this is a link to another page, and it breaks the anchor link.
Configuration menu - View commit details
-
Copy full SHA for 6eceb94 - Browse repository at this point
Copy the full SHA 6eceb94View commit details -
Configuration menu - View commit details
-
Copy full SHA for 422b616 - Browse repository at this point
Copy the full SHA 422b616View commit details -
Configuration menu - View commit details
-
Copy full SHA for d7ce9a2 - Browse repository at this point
Copy the full SHA d7ce9a2View commit details
Commits on Apr 9, 2018
-
Fix various nits from PR review
- Remove redundant "unsafe" from module description. - Add a missing `Safety` heading to `read_unaligned`. - Remove weasel words in `Undefined Behavior` description for `write{,_unaligned,_bytes}`.
Configuration menu - View commit details
-
Copy full SHA for d7209d5 - Browse repository at this point
Copy the full SHA d7209d5View commit details
Commits on May 9, 2018
-
Use the "Safety" heading instead of "Undefined Behavior"
Dylan MacKenzie committedMay 9, 2018 Configuration menu - View commit details
-
Copy full SHA for e350ba4 - Browse repository at this point
Copy the full SHA e350ba4View commit details -
Shorten ownership safety discussion in
read_volatile
Non-`Copy` types should not be in volatile memory.
Dylan MacKenzie committedMay 9, 2018 Configuration menu - View commit details
-
Copy full SHA for 827251e - Browse repository at this point
Copy the full SHA 827251eView commit details