Add example to std::os documentation.

Just opening a pull request for adding code examples and documentation to std::os.

More to come soon.