Forwarding Referenceseverything and cheap to instantiate CppCon 2023 | Forwarding References Summary 55• Use const MyType& when a read access is only needed – binds to everything and cheap to instantiate • Use both const MyType& Summary 55• Use const MyType& when a read access is only needed – binds to everything and cheap to instantiate • Use both const MyType& and MyType&& for sinks where it is not too expensive – consider MyType Summary 55• Use const MyType& when a read access is only needed – binds to everything and cheap to instantiate • Use both const MyType& and MyType&& for sinks where it is not too expensive – consider MyType0 码力 | 107 页 | 3.72 MB | 6 月前3
Back to Basics: Templates - Part 1the specialization to create • For class templates, implicit instantiation doesn't necessarily instantiate all the members of the class • The compiler might not generate non-virtual member functions or definition of the corresponding specialization • If you explicitly instantiate a template in one translation unit, you must not explicitly instantiate in another translation unit 62 //- Source file my_foo.cpp0 码力 | 68 页 | 436.75 KB | 6 月前3
Conan 2.10 Documentationlocal-recipes-index repositories point to local folders in the filesystem. While users may choose to sync that folder with a git repository or other version control mechanisms, Conan is agnostic to this, conanfile.py 469 Conan Documentation, Release 2.10.1 But the generate() method can explicitly instantiate those generators, use them conditionally (like using one build system in Windows, and another build the package_info() is a CppInfo object, so in most cases it will not be necessary to explicitly instantiate it, and using it as explained in the package_info() section would be enough. This section describes0 码力 | 803 页 | 5.02 MB | 10 月前3
Conan 2.6 Documentationlocal-recipes-index repositories point to local folders in the filesystem. While users may choose to sync that folder with a git repository or other version control mechanisms, Conan is agnostic to this, Pkg(ConanFile): generators = "CMakeDeps", "CMakeToolchain" But the generate() method can explicitly instantiate those generators, use them conditionally (like using one build system in Windows, and another build the package_info() is a CppInfo object, so in most cases it will not be necessary to explicitly instantiate it, and using it as explained in the package_info() section would be enough. This section describes0 码力 | 777 页 | 4.91 MB | 10 月前3
Conan 2.9 Documentationlocal-recipes-index repositories point to local folders in the filesystem. While users may choose to sync that folder with a git repository or other version control mechanisms, Conan is agnostic to this, Pkg(ConanFile): generators = "CMakeDeps", "CMakeToolchain" But the generate() method can explicitly instantiate those generators, use them conditionally (like using one build system in Windows, and another build the package_info() is a CppInfo object, so in most cases it will not be necessary to explicitly instantiate it, and using it as explained in the package_info() section would be enough. This section describes0 码力 | 795 页 | 4.99 MB | 10 月前3
Conan 2.7 Documentationlocal-recipes-index repositories point to local folders in the filesystem. While users may choose to sync that folder with a git repository or other version control mechanisms, Conan is agnostic to this, Pkg(ConanFile): generators = "CMakeDeps", "CMakeToolchain" But the generate() method can explicitly instantiate those generators, use them conditionally (like using one build system in Windows, and another build the package_info() is a CppInfo object, so in most cases it will not be necessary to explicitly instantiate it, and using it as explained in the package_info() section would be enough. This section describes0 码力 | 779 页 | 4.93 MB | 10 月前3
Conan 2.8 Documentationlocal-recipes-index repositories point to local folders in the filesystem. While users may choose to sync that folder with a git repository or other version control mechanisms, Conan is agnostic to this, Pkg(ConanFile): generators = "CMakeDeps", "CMakeToolchain" But the generate() method can explicitly instantiate those generators, use them conditionally (like using one build system in Windows, and another build the package_info() is a CppInfo object, so in most cases it will not be necessary to explicitly instantiate it, and using it as explained in the package_info() section would be enough. This section describes0 码力 | 785 页 | 4.95 MB | 10 月前3
A Multithreaded, Transaction-Based Locking Strategy for Containers14Copyright © 2020 Bob Steagall K E W B C O M P U T I N G Some Solutions – Per-Container Mutex • Instantiate a per-container mutex and perform updates in a single critical section guarded by the mutex • 16Copyright © 2020 Bob Steagall K E W B C O M P U T I N G Some Solutions – Per-Element Mutex • Instantiate a per-element mutex, acquire the mutexes for all the elements in the update group, then update 17Copyright © 2020 Bob Steagall K E W B C O M P U T I N G Some Solutions – Per-Element Mutex • Instantiate a per-element mutex, acquire the mutexes for all the elements in the update group, then update0 码力 | 142 页 | 474.78 KB | 6 月前3
Modern C++ Tutorial: C++11/14/17/20 On the Flysyntax of the original manda- tory compiler to instantiate a template at a specific location, allowing us to explicitly tell the compiler when to instantiate the template: 26 2.5 Templates CHAPTER 02: shared variable reading and writing, the introduction of the std::atomic template, so that we instantiate an atomic type, will be an Atomic type read and write operations are minimized from a set of instructions0 码力 | 92 页 | 1.79 MB | 1 年前3
Conan 2.3 Documentationlocal-recipes-index repositories point to local folders in the filesystem. While users may choose to sync that folder with a git repository or other version control mechanisms, Conan is agnostic to this, Pkg(ConanFile): generators = "CMakeDeps", "CMakeToolchain" But the generate() method can explicitly instantiate those generators, use them conditionally (like using one build system in Windows, and another build the package_info() is a CppInfo object, so in most cases it will not be necessary to explicitly instantiate it, and using it as explained in the package_info() section would be enough. This section describes0 码力 | 748 页 | 4.65 MB | 1 年前3
共 102 条
- 1
- 2
- 3
- 4
- 5
- 6
- 11













