auto Int8PtrTy = Type::getInt8PtrTy(M.getContext()); auto Int8PtrTy = PointerType::getUnqual(M.getContext()); Global = new GlobalVariable(M, Int8PtrTy, false, GlobalValue::ExternalWeakLinkage, nullptr, SymbolName); Expand Down 8 changes: 4 additions & 4 deletions 8 llvm/lib/...
C++ hasenable_shared_from_thiswhich lets you obtain a strong reference to the current object. If the current object has started destruction, then it throwsstd::bad_weak_ptr. If you don’t want an exception if the object has started destruction, you can doweak_from_this().lock(), which ...
unique_ptr (C++11) shared_ptr (C++11) weak_ptr (C++11) auto_ptr (until C++17*) owner_less (C++11) owner_less<void> (C++17) owner_hash (C++26) owner_equal (C++26) enable_shared_from_this (C++11) bad_weak_ptr (C++11) default_delete (C++11) out_ptr_t (C++23) inout_ptr_t...
std::swap(std::shared_ptr) std::swap(std::tuple) std::swap(std::unique_ptr) std::swap(std::variant) std::swap(std::weak_ptr) std::system std::system_category std::system_error std::system_error::code std::system_error::system_error std::system_error::what std::terminate std:...
std::unique_ptr<Module> llvm::CloneModule(constModule *M, ValueToValueMapTy &VMap,std::function<bool(constGlobalValue *)> ShouldCloneDefinition) {// First off, we need to create the new module.std::unique_ptr<Module> New = llvm::make_unique<Module>(M->getModuleIdentifier(), M->get...
std::swap(std::shared_ptr) std::swap(std::tuple) std::swap(std::unique_ptr) std::swap(std::variant) std::swap(std::weak_ptr) std::system std::system_category std::system_error std::system_error::code std::system_error::system_error std::system_error::what std::terminate std:...
std::hash <std::unique_ptr> std::hash <std::variant> std::hash(std::shared_ptr) std::hash::hash std::hash<std::error_code> std::hash<std::error_condition> std::hash<std::type_index> std::has_unique_object_representations std::has_virtual_destructor std::holds_alternative std::ig...
std::unique_ptr<std::string_view> actual{ awaitable_get(std::move(awaitable)) }; // Assert REQUIRE(expected == *actual); } TEST_CASE("awaitable_get<T&> waits until resume from suspension") { // Arrange callback_thread callbackThread{}; atomic_acq_rel<bool> waited{ false }; bool...
PinName = InSourcePinName + FString::FromInt(Index); }returnPinName; } }returnSuper::CreateUniquePinName(InSourcePinName); } 开发者ID:JustDo1989,项目名称:UnrealEngine4.11-HairWorks,代码行数:26,代码来源:K2Node_Tunnel.cpp 示例5: ModifyOwner ...
weak_factory_.GetWeakPtr()), base::SequencedTaskRunnerHandle::Get())); pref_change_registrar_.Add( prefs::kDevToolsFileSystemPaths, base::BindRepeating(&DevToolsFileHelper::FileSystemPathsSettingChanged, base::Unretained(this))); } for (auto file_system_path : file_system_paths_) { ...