The Many Shades of reference_wrappersome_object; if (cond) dialog = some_other_object; // ?? process(dialog); 3 CppCon 2020C++ reference can only be bound once auto& dialog = [&]() -> auto& { if (cond) return some_object; else return 2020Reference “assignment” 8 CppCon 2020 Python dialog = some_object if cond: dialog = some_other_object C++ auto& dialog = some_object; if (cond) dialog = some_other_object;C++ reference • initialization initialization binds the object to the reference • assignment assigns to the bounded object (so called “assign-through”) 9 CppCon 2020What if initialization and assignment both bind objects? • initialization0 码力 | 49 页 | 575.61 KB | 6 月前3
Lock-Free Atomic Shared Pointers Without a Split Reference Count? It Can Be Done!Atomics and concurrency patterns • How existing atomicare implemented (the split reference count technique) • Deferred reclamation, i.e., garbage collection in C++ Some assumed knowledge Atomics and concurrency patterns • How existing atomic are implemented (the split reference count technique) • Deferred reclamation, i.e., garbage collection in C++ Some assumed knowledge control_block pointer as a lock26 Daniel Anderson -- danielanderson.net Solution #2: The split reference count • Used by Folly (Facebook open-source library, used in production), • Used by JustThreads 0 码力 | 45 页 | 5.12 MB | 6 月前3
Conan 2.5 Documentationexamples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285 8 Reference 299 8.1 Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . too. 1.4 All platforms, all build systems and compilers Conan works on Windows, Linux (Ubuntu, Debian, RedHat, ArchLinux, Raspbian), OSX, FreeBSD, and SunOS, and, as it is portable, it might work in tool or behavior. They do not have a conducting thread, they should be navigated by topic. • The reference is the source of truth for the interfaces of every public command, class, method, helper, API and0 码力 | 769 页 | 4.70 MB | 1 年前3
Conan 2.4 Documentationexamples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285 8 Reference 299 8.1 Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . too. 1.4 All platforms, all build systems and compilers Conan works on Windows, Linux (Ubuntu, Debian, RedHat, ArchLinux, Raspbian), OSX, FreeBSD, and SunOS, and, as it is portable, it might work in tool or behavior. They do not have a conducting thread, they should be navigated by topic. • The reference is the source of truth for the interfaces of every public command, class, method, helper, API and0 码力 | 769 页 | 4.69 MB | 1 年前3
Conan 2.3 Documentationexamples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279 8 Reference 293 8.1 Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . too. 1.4 All platforms, all build systems and compilers Conan works on Windows, Linux (Ubuntu, Debian, RedHat, ArchLinux, Raspbian), OSX, FreeBSD, and SunOS, and, as it is portable, it might work in tool or behavior. They do not have a conducting thread, they should be navigated by topic. • The reference is the source of truth for the interfaces of every public command, class, method, helper, API and0 码力 | 748 页 | 4.65 MB | 1 年前3
Conan 2.0 Documentationcommands examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235 8 Reference 241 8.1 Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . too. 1.4 All platforms, all build systems and compilers Conan works on Windows, Linux (Ubuntu, Debian, RedHat, ArchLinux, Raspbian), OSX, FreeBSD, and SunOS, and, as it is portable, it might work in tool or behavior. They do not have a conducting thread, they should be navigated by topic. • The reference is the source of truth for the interfaces of every public command, class, method, helper, API and0 码力 | 652 页 | 4.00 MB | 1 年前3
Conan 1.46 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376 18 Reference 381 18.1 Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . too. 1.4 All platforms, all build systems and compilers Conan works on Windows, Linux (Ubuntu, Debian, RedHat, ArchLinux, Raspbian), OSX, FreeBSD, and SunOS, and, as it is portable, it might work in visual cheatsheet for basic Conan commands and concepts which users can print out and use as a handy reference. It is available as both a PDF and PNG. PDF Format PNG Format 7 Conan Documentation, Release0 码力 | 893 页 | 7.46 MB | 1 年前3
Conan 1.45 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374 18 Reference 379 18.1 Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . too. 1.4 All platforms, all build systems and compilers Conan works on Windows, Linux (Ubuntu, Debian, RedHat, ArchLinux, Raspbian), OSX, FreeBSD, and SunOS, and, as it is portable, it might work in visual cheatsheet for basic Conan commands and concepts which users can print out and use as a handy reference. It is available as both a PDF and PNG. PDF Format PNG Format 7 Conan Documentation, Release0 码力 | 865 页 | 7.46 MB | 1 年前3
Conan 2.10 Documentationexamples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292 8 Reference 305 8.1 Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . too. 1.4 All platforms, all build systems and compilers Conan works on Windows, Linux (Ubuntu, Debian, RedHat, ArchLinux, Raspbian), OSX, FreeBSD, and SunOS, and, as it is portable, it might work in tool or behavior. They do not have a conducting thread, they should be navigated by topic. • The reference is the source of truth for the interfaces of every public command, class, method, helper, API and0 码力 | 803 页 | 5.02 MB | 10 月前3
Conan 2.9 Documentationexamples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292 8 Reference 305 8.1 Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . too. 1.4 All platforms, all build systems and compilers Conan works on Windows, Linux (Ubuntu, Debian, RedHat, ArchLinux, Raspbian), OSX, FreeBSD, and SunOS, and, as it is portable, it might work in tool or behavior. They do not have a conducting thread, they should be navigated by topic. • The reference is the source of truth for the interfaces of every public command, class, method, helper, API and0 码力 | 795 页 | 4.99 MB | 10 月前3
共 216 条
- 1
- 2
- 3
- 4
- 5
- 6
- 22













