- 🌏 The official ISO C++ Get Started! page
- 🎥 Herb Sutter: (Not Your Father’s) C++
- 🎥 Beginning with C++ by Jens Weller
| /** | |
| * @file endianness.h | |
| * @brief Convert Endianness of shorts, longs, long longs, regardless of architecture/OS | |
| * | |
| * Defines (without pulling in platform-specific network include headers): | |
| * bswap16, bswap32, bswap64, ntoh16, hton16, ntoh32 hton32, ntoh64, hton64 | |
| * | |
| * Should support linux / macos / solaris / windows. | |
| * Supports GCC (on any platform, including embedded), MSVC2015, and clang, | |
| * and should support intel, solaris, and ibm compilers as well. |
| struct Connection { | |
| void disconnected() | |
| { | |
| m_connection = Disconnected(); | |
| } | |
| void interrupted() | |
| { | |
| m_connection = std::visit(InterruptedEvent(*this), m_connection); | |
| } |
| data:text/html, <style type="text/css">.e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div class="e" id="editor"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("editor");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> | |
| <!-- | |
| For other language: Instead of `ace/mode/ruby`, Use | |
| Markdown -> `ace/mode/markdown` | |
| Python -> `ace/mode/python` | |
| C/C++ -> `ace/mode/c_cpp` | |
| Javscript -> `ace/mode/javascript` | |
| Java -> `ace/mode/java` | |
| Scala- -> `ace/mode/scala` |