 Modern C++ Tutorial: C++11/14/17/20 On the Flystd::shared_ptr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 5.3 std::unique_ptr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 << std::endl; std::cout << "pointer.use_count() = " << pointer.use_count() << std::endl; // 2 58 5.3 std::unique_ptr CHAPTER 05 SMART POINTERS AND MEMORY MANAGEMENT std::cout << "pointer2.use_count() std::cout << "pointer3.use_count() = " << pointer3.use_count() << std::endl; // pointer3 has reset, 0 5.3 std::unique_ptr std::unique_ptr is an exclusive smart pointer that prohibits other smart pointers0 码力 | 92 页 | 1.79 MB | 1 年前3 Modern C++ Tutorial: C++11/14/17/20 On the Flystd::shared_ptr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 5.3 std::unique_ptr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 << std::endl; std::cout << "pointer.use_count() = " << pointer.use_count() << std::endl; // 2 58 5.3 std::unique_ptr CHAPTER 05 SMART POINTERS AND MEMORY MANAGEMENT std::cout << "pointer2.use_count() std::cout << "pointer3.use_count() = " << pointer3.use_count() << std::endl; // pointer3 has reset, 0 5.3 std::unique_ptr std::unique_ptr is an exclusive smart pointer that prohibits other smart pointers0 码力 | 92 页 | 1.79 MB | 1 年前3
 现代C++ 教程:高速上手C++11/14/17/20std::shared_ptr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 5.3 std::unique_ptr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 std::make_shared 现代C++ 教程:高速上手C++11/14/17/20std::shared_ptr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 5.3 std::unique_ptr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 std::make_shared- (10); auto pointer2 = pointer; // 引用计数 +1 auto pointer3 = pointer; // 引用计数 +1 53 5.3 std::unique_ptr 第 5 章智能指针与内存管理 int *p = pointer.get(); // 这样不会增加引用计数 std::cout << "pointer.use_count() std::cout << "pointer3.use_count() = " << pointer3.use_count() << std::endl; // pointer3 已 reset; 0 5.3 std::unique_ptr std::unique_ptr 是一种独占的智能指针,它禁止其他智能指针与其共享同一个对象,从而保证代 码的安全: std::unique_ptr - pointer 0 码力 | 83 页 | 2.42 MB | 1 年前3
 Conan 1.16 DocumentationSources in a Different Repo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 5.3 Recipe and Sources in the Same Repo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . not necessary in most cases. 36 Chapter 5. Creating Packages conan Documentation, Release 1.16.1 5.3 Recipe and Sources in the Same Repo Sometimes it is more convenient to have the recipe and source dst="lib", keep_path=False) self.copy("*.dll", dst="bin", keep_path=False) (continues on next page) 5.3. Recipe and Sources in the Same Repo 37 conan Documentation, Release 1.16.1 (continued from previous0 码力 | 545 页 | 4.34 MB | 1 年前3 Conan 1.16 DocumentationSources in a Different Repo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 5.3 Recipe and Sources in the Same Repo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . not necessary in most cases. 36 Chapter 5. Creating Packages conan Documentation, Release 1.16.1 5.3 Recipe and Sources in the Same Repo Sometimes it is more convenient to have the recipe and source dst="lib", keep_path=False) self.copy("*.dll", dst="bin", keep_path=False) (continues on next page) 5.3. Recipe and Sources in the Same Repo 37 conan Documentation, Release 1.16.1 (continued from previous0 码力 | 545 页 | 4.34 MB | 1 年前3
 Conan 1.15 DocumentationSources in a Different Repo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 5.3 Recipe and Sources in the Same Repo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . not necessary in most cases. 36 Chapter 5. Creating Packages conan Documentation, Release 1.15.1 5.3 Recipe and Sources in the Same Repo Sometimes it is more convenient to have the recipe and source dst="lib", keep_path=False) self.copy("*.dll", dst="bin", keep_path=False) (continues on next page) 5.3. Recipe and Sources in the Same Repo 37 conan Documentation, Release 1.15.1 (continued from previous0 码力 | 540 页 | 4.22 MB | 1 年前3 Conan 1.15 DocumentationSources in a Different Repo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 5.3 Recipe and Sources in the Same Repo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . not necessary in most cases. 36 Chapter 5. Creating Packages conan Documentation, Release 1.15.1 5.3 Recipe and Sources in the Same Repo Sometimes it is more convenient to have the recipe and source dst="lib", keep_path=False) self.copy("*.dll", dst="bin", keep_path=False) (continues on next page) 5.3. Recipe and Sources in the Same Repo 37 conan Documentation, Release 1.15.1 (continued from previous0 码力 | 540 页 | 4.22 MB | 1 年前3
 Conan 1.3 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 5.3 Workflows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . settings file: gcc: version: ["4.1", "4.4", "4.5", "4.6", "4.7", "4.8", "4.9", "5", "5.1", "5.2", "5.3", "5.4", "6", "6.1", "6.2", "6.3", "6.4", "7", "7.1", "7.2"] Most package creators want to use the $ conan install . -pr=./poco_clang_3.5 See also: Read more about Profiles for full reference. 5.3 Workflows This section summarizes some possible layouts and workflows while using conan together with0 码力 | 397 页 | 2.77 MB | 1 年前3 Conan 1.3 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 5.3 Workflows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . settings file: gcc: version: ["4.1", "4.4", "4.5", "4.6", "4.7", "4.8", "4.9", "5", "5.1", "5.2", "5.3", "5.4", "6", "6.1", "6.2", "6.3", "6.4", "7", "7.1", "7.2"] Most package creators want to use the $ conan install . -pr=./poco_clang_3.5 See also: Read more about Profiles for full reference. 5.3 Workflows This section summarizes some possible layouts and workflows while using conan together with0 码力 | 397 页 | 2.77 MB | 1 年前3
 Conan 2.0 Documentationthird-party sources with Conan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 5.3 Managing package metadata files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . access to our remote backup is now configured to allow anonymous read but authenticated upload. 5.3 Managing package metadata files Warning: This feature is experimental and subject to breaking changes src=self.recipe_folder, dst=os.path.join(self.recipe_metadata_folder, "logs")) (continues on next page) 5.3. Managing package metadata files 147 Conan Documentation, Release 2.0.17 (continued from previous0 码力 | 652 页 | 4.00 MB | 1 年前3 Conan 2.0 Documentationthird-party sources with Conan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 5.3 Managing package metadata files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . access to our remote backup is now configured to allow anonymous read but authenticated upload. 5.3 Managing package metadata files Warning: This feature is experimental and subject to breaking changes src=self.recipe_folder, dst=os.path.join(self.recipe_metadata_folder, "logs")) (continues on next page) 5.3. Managing package metadata files 147 Conan Documentation, Release 2.0.17 (continued from previous0 码力 | 652 页 | 4.00 MB | 1 年前3
 Conan 1.17 DocumentationSources in a Different Repo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 5.3 Recipe and Sources in the Same Repo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . not necessary in most cases. 36 Chapter 5. Creating Packages conan Documentation, Release 1.17.2 5.3 Recipe and Sources in the Same Repo Sometimes it is more convenient to have the recipe and source dst="lib", keep_path=False) self.copy("*.dll", dst="bin", keep_path=False) (continues on next page) 5.3. Recipe and Sources in the Same Repo 37 conan Documentation, Release 1.17.2 (continued from previous0 码力 | 567 页 | 4.53 MB | 1 年前3 Conan 1.17 DocumentationSources in a Different Repo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 5.3 Recipe and Sources in the Same Repo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . not necessary in most cases. 36 Chapter 5. Creating Packages conan Documentation, Release 1.17.2 5.3 Recipe and Sources in the Same Repo Sometimes it is more convenient to have the recipe and source dst="lib", keep_path=False) self.copy("*.dll", dst="bin", keep_path=False) (continues on next page) 5.3. Recipe and Sources in the Same Repo 37 conan Documentation, Release 1.17.2 (continued from previous0 码力 | 567 页 | 4.53 MB | 1 年前3
 Conan 1.4 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 5.3 Workflows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . settings file: gcc: version: ["4.1", "4.4", "4.5", "4.6", "4.7", "4.8", "4.9", "5", "5.1", "5.2", "5.3", "5.4", "6", "6.1", "6.2", "6.3", "6.4", "7", "7.1", "7.2"] Most package creators want to use the $ conan install . -pr=./poco_clang_3.5 See also: Read more about Profiles for full reference. 5.3 Workflows This section summarizes some possible layouts and workflows while using conan together with0 码力 | 421 页 | 2.84 MB | 1 年前3 Conan 1.4 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 5.3 Workflows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . settings file: gcc: version: ["4.1", "4.4", "4.5", "4.6", "4.7", "4.8", "4.9", "5", "5.1", "5.2", "5.3", "5.4", "6", "6.1", "6.2", "6.3", "6.4", "7", "7.1", "7.2"] Most package creators want to use the $ conan install . -pr=./poco_clang_3.5 See also: Read more about Profiles for full reference. 5.3 Workflows This section summarizes some possible layouts and workflows while using conan together with0 码力 | 421 页 | 2.84 MB | 1 年前3
 Conan 1.5 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 5.3 Workflows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . settings file: gcc: version: ["4.1", "4.4", "4.5", "4.6", "4.7", "4.8", "4.9", "5", "5.1", "5.2", "5.3", "5.4", "6", "6.1", "6.2", "6.3", "6.4", "7", "7.1", "7.2"] Most package creators want to use the $ conan install . -pr=./poco_clang_3.5 See also: Read more about Profiles for full reference. 5.3 Workflows This section summarizes some possible layouts and workflows while using conan together with0 码力 | 422 页 | 2.85 MB | 1 年前3 Conan 1.5 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 5.3 Workflows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . settings file: gcc: version: ["4.1", "4.4", "4.5", "4.6", "4.7", "4.8", "4.9", "5", "5.1", "5.2", "5.3", "5.4", "6", "6.1", "6.2", "6.3", "6.4", "7", "7.1", "7.2"] Most package creators want to use the $ conan install . -pr=./poco_clang_3.5 See also: Read more about Profiles for full reference. 5.3 Workflows This section summarizes some possible layouts and workflows while using conan together with0 码力 | 422 页 | 2.85 MB | 1 年前3
 Conan 1.12 DocumentationSources in a Different Repo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 5.3 Recipe and Sources in the Same Repo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . not necessary in most cases. 36 Chapter 5. Creating Packages conan Documentation, Release 1.12.3 5.3 Recipe and Sources in the Same Repo Sometimes it is more convenient to have the recipe and source dst="lib", keep_path=False) self.copy("*.dll", dst="bin", keep_path=False) (continues on next page) 5.3. Recipe and Sources in the Same Repo 37 conan Documentation, Release 1.12.3 (continued from previous0 码力 | 505 页 | 4.10 MB | 1 年前3 Conan 1.12 DocumentationSources in a Different Repo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 5.3 Recipe and Sources in the Same Repo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . not necessary in most cases. 36 Chapter 5. Creating Packages conan Documentation, Release 1.12.3 5.3 Recipe and Sources in the Same Repo Sometimes it is more convenient to have the recipe and source dst="lib", keep_path=False) self.copy("*.dll", dst="bin", keep_path=False) (continues on next page) 5.3. Recipe and Sources in the Same Repo 37 conan Documentation, Release 1.12.3 (continued from previous0 码力 | 505 页 | 4.10 MB | 1 年前3
共 86 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













