/third_party/boost/libs/smart_ptr/doc/smart_ptr/ |
D | make_unique.adoc | 11 [#make_unique] anchor 12 # make_unique: Creating unique_ptr 19 The `make_unique` function templates provide convenient and safe ways to 25 `make_unique` utility like `std::make_shared` that provided the same 28 standard introducing `std::make_unique`), this library provided it due to 31 This library also provides additional overloads of `make_unique` for 34 feature with `std::make_unique`. 38 `make_unique` is defined in `<boost/smart_ptr/make_unique.hpp>`. 45 std::unique_ptr<T> make_unique(Args&&... args); 49 std::unique_ptr<T> make_unique(type_identity_t<T>&& v); [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MCA/ |
D | Context.cpp | 35 auto RCU = std::make_unique<RetireControlUnit>(SM); in createDefaultPipeline() 36 auto PRF = std::make_unique<RegisterFile>(SM, MRI, Opts.RegisterFileSize); in createDefaultPipeline() 37 auto LSU = std::make_unique<LSUnit>(SM, Opts.LoadQueueSize, in createDefaultPipeline() 39 auto HWS = std::make_unique<Scheduler>(SM, *LSU); in createDefaultPipeline() 42 auto Fetch = std::make_unique<EntryStage>(SrcMgr); in createDefaultPipeline() 43 auto Dispatch = std::make_unique<DispatchStage>(STI, MRI, Opts.DispatchWidth, in createDefaultPipeline() 46 std::make_unique<ExecuteStage>(*HWS, Opts.EnableBottleneckAnalysis); in createDefaultPipeline() 47 auto Retire = std::make_unique<RetireStage>(*RCU, *PRF, *LSU); in createDefaultPipeline() 56 auto StagePipeline = std::make_unique<Pipeline>(); in createDefaultPipeline() 59 StagePipeline->appendStage(std::make_unique<MicroOpQueueStage>( in createDefaultPipeline()
|
/third_party/flutter/engine/flutter/shell/common/ |
D | pipeline_unittests.cc | 26 continuation.Complete(std::make_unique<int>(test_val)); in TEST() 40 continuation.Complete(std::make_unique<int>(test_val)); in TEST() 45 continuation.Complete(std::make_unique<int>(test_val)); in TEST() 51 continuation.Complete(std::make_unique<int>(test_val)); in TEST() 63 continuation_1.Complete(std::make_unique<int>(test_val_1)); in TEST() 64 continuation_2.Complete(std::make_unique<int>(test_val_2)); in TEST() 80 continuation_1.Complete(std::make_unique<int>(test_val_1)); in TEST() 81 continuation_2.Complete(std::make_unique<int>(test_val_2)); in TEST() 100 continuation_1.Complete(std::make_unique<int>(test_val_1)); in TEST() 101 continuation_2.Complete(std::make_unique<int>(test_val_2)); in TEST() [all …]
|
/third_party/cef/libcef/browser/ |
D | browser_platform_delegate_create.cc | 43 return std::make_unique<CefBrowserPlatformDelegateNativeWin>( in CreateNativeDelegate() 46 return std::make_unique<CefBrowserPlatformDelegateNativeMac>( in CreateNativeDelegate() 49 return std::make_unique<CefBrowserPlatformDelegateNativeLinux>( in CreateNativeDelegate() 59 return std::make_unique<CefBrowserPlatformDelegateOsrWin>( in CreateOSRDelegate() 62 return std::make_unique<CefBrowserPlatformDelegateOsrMac>( in CreateOSRDelegate() 65 return std::make_unique<CefBrowserPlatformDelegateOsrLinux>( in CreateOSRDelegate() 89 return std::make_unique<CefBrowserPlatformDelegateChromeViews>( in Create() 94 return std::make_unique<CefBrowserPlatformDelegateChrome>( in Create() 122 return std::make_unique<CefBrowserPlatformDelegateBackground>( in Create() 130 return std::make_unique<CefBrowserPlatformDelegateViews>( in Create()
|
/third_party/skia/third_party/externals/tint/src/ |
D | castable_test.cc | 55 std::unique_ptr<CastableBase> frog = std::make_unique<Frog>(); in TEST() 56 std::unique_ptr<CastableBase> bear = std::make_unique<Bear>(); in TEST() 57 std::unique_ptr<CastableBase> gecko = std::make_unique<Gecko>(); in TEST() 79 auto frog = std::make_unique<Frog>(); in TEST() 80 auto bear = std::make_unique<Bear>(); in TEST() 81 auto gecko = std::make_unique<Gecko>(); in TEST() 101 std::unique_ptr<CastableBase> frog = std::make_unique<Frog>(); in TEST() 120 std::unique_ptr<CastableBase> frog = std::make_unique<Frog>(); in TEST() 121 std::unique_ptr<CastableBase> bear = std::make_unique<Bear>(); in TEST() 122 std::unique_ptr<CastableBase> gecko = std::make_unique<Gecko>(); in TEST() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/XRay/ |
D | FDRRecordProducer.cpp | 43 return std::make_unique<NewBufferRecord>(); in metadataRecordType() 50 return std::make_unique<EndBufferRecord>(); in metadataRecordType() 52 return std::make_unique<NewCPUIDRecord>(); in metadataRecordType() 54 return std::make_unique<TSCWrapRecord>(); in metadataRecordType() 56 return std::make_unique<WallclockRecord>(); in metadataRecordType() 59 return std::make_unique<CustomEventRecordV5>(); in metadataRecordType() 60 return std::make_unique<CustomEventRecord>(); in metadataRecordType() 62 return std::make_unique<CallArgRecord>(); in metadataRecordType() 64 return std::make_unique<BufferExtents>(); in metadataRecordType() 66 return std::make_unique<TypedEventRecord>(); in metadataRecordType() [all …]
|
/third_party/gn/src/gn/ |
D | scope_per_file_provider.cc | 51 current_toolchain_ = std::make_unique<Value>( in GetCurrentToolchain() 60 default_toolchain_ = std::make_unique<Value>( in GetDefaultToolchain() 70 gn_version_ = std::make_unique<Value>( in GetGnVersion() 78 python_path_ = std::make_unique<Value>( in GetPythonPath() 87 root_build_dir_ = std::make_unique<Value>( in GetRootBuildDir() 96 root_gen_dir_ = std::make_unique<Value>( in GetRootGenDir() 105 root_out_dir_ = std::make_unique<Value>( in GetRootOutDir() 114 target_gen_dir_ = std::make_unique<Value>( in GetTargetGenDir() 123 target_out_dir_ = std::make_unique<Value>( in GetTargetOutDir()
|
D | tool.cc | 245 return std::make_unique<CTool>(CTool::kCToolCc); in CreateTool() 247 return std::make_unique<CTool>(CTool::kCToolCxx); in CreateTool() 249 return std::make_unique<CTool>(CTool::kCToolObjC); in CreateTool() 251 return std::make_unique<CTool>(CTool::kCToolObjCxx); in CreateTool() 253 return std::make_unique<CTool>(CTool::kCToolRc); in CreateTool() 255 return std::make_unique<CTool>(CTool::kCToolAsm); in CreateTool() 257 return std::make_unique<CTool>(CTool::kCToolAlink); in CreateTool() 259 return std::make_unique<CTool>(CTool::kCToolSolink); in CreateTool() 261 return std::make_unique<CTool>(CTool::kCToolSolinkModule); in CreateTool() 263 return std::make_unique<CTool>(CTool::kCToolLink); in CreateTool() [all …]
|
/third_party/boost/libs/smart_ptr/test/ |
D | make_unique_array_test.cpp | 35 std::unique_ptr<int[]> result = boost::make_unique<int[]>(3); in main() 43 boost::make_unique<int[][2]>(2); in main() 52 boost::make_unique<const int[]>(3); in main() 60 boost::make_unique<const int[][2]>(2); in main() 70 boost::make_unique<type[]>(3); in main() 79 boost::make_unique<type[][2]>(2); in main() 88 boost::make_unique<const type[]>(3); in main() 97 boost::make_unique<const type[][2]>(2); in main()
|
D | make_unique_args_test.cpp | 51 std::unique_ptr<type> result = boost::make_unique<type>(); in main() 61 std::unique_ptr<type> result = boost::make_unique<type>(1); in main() 70 std::unique_ptr<type> result = boost::make_unique<type>(1, 2); in main() 80 boost::make_unique<type>(1, 2, 3); in main() 90 boost::make_unique<type>(1, 2, 3, 4); in main() 100 boost::make_unique<type>(1, 2, 3, 4, 5); in main() 110 boost::make_unique<type>(1, 2, 3, 4, 5, 6); in main() 120 boost::make_unique<type>(1, 2, 3, 4, 5, 6, 7); in main() 130 boost::make_unique<type>(1, 2, 3, 4, 5, 6, 7, 8); in main() 140 boost::make_unique<type>(1, 2, 3, 4, 5, 6, 7, 8, 9); in main()
|
/third_party/skia/third_party/externals/oboe/src/common/ |
D | DataConversionFlowGraph.cpp | 111 mSourceCaller = std::make_unique<SourceFloatCaller>(sourceChannelCount, in configure() 115 mSourceCaller = std::make_unique<SourceI16Caller>(sourceChannelCount, in configure() 129 mSource = std::make_unique<SourceFloat>(sourceChannelCount); in configure() 132 mSource = std::make_unique<SourceI16>(sourceChannelCount); in configure() 144 mAppBuffer = std::make_unique<uint8_t[]>( in configure() 154 mMultiToMonoConverter = std::make_unique<MultiToMonoConverter>(sourceChannelCount); in configure() 158 mChannelCountConverter = std::make_unique<ChannelCountConverter>( in configure() 175 mRateConverter = std::make_unique<SampleRateConverter>(lastOutput->getSamplesPerFrame(), in configure() 184 mMonoToMultiConverter = std::make_unique<MonoToMultiConverter>(sinkChannelCount); in configure() 188 mChannelCountConverter = std::make_unique<ChannelCountConverter>( in configure() [all …]
|
/third_party/boost/libs/container/test/ |
D | vector_test.hpp | 137 ::boost::movelib::make_unique<MyBoostVector>(boostvector); in vector_copyable_only() 139 ::boost::movelib::make_unique<MyStdVector>(stdvector); in vector_copyable_only() 152 …::boost::movelib::make_unique<MyBoostVector>(boostvector, typename MyBoostVector::allocator_type()… in vector_copyable_only() 154 ::boost::movelib::make_unique<MyStdVector>(stdvector); in vector_copyable_only() 167 ::boost::movelib::make_unique<MyStdVector>(100, int(5)); in vector_copyable_only() 169 ::boost::movelib::make_unique<MyBoostVector>(100, IntType(5)); in vector_copyable_only() 174 ::boost::movelib::make_unique<MyStdVector>(100, int(5)); in vector_copyable_only() 176 …::boost::movelib::make_unique<MyBoostVector>(100, IntType(5), typename MyBoostVector::allocator_ty… in vector_copyable_only() 181 ::boost::movelib::make_unique<MyStdVector>(100); in vector_copyable_only() 183 ::boost::movelib::make_unique<MyBoostVector>(100); in vector_copyable_only() [all …]
|
D | list_test.hpp | 74 ::boost::movelib::unique_ptr<V1> const pv1 = ::boost::movelib::make_unique<V1>(boostlist); in list_copyable_only() 75 ::boost::movelib::unique_ptr<V2> const pv2 = ::boost::movelib::make_unique<V2>(stdlist); in list_copyable_only() 87 …::boost::movelib::unique_ptr<V1> const pv1 = ::boost::movelib::make_unique<V1>(boostlist, typename… in list_copyable_only() 88 ::boost::movelib::unique_ptr<V2> const pv2 = ::boost::movelib::make_unique<V2>(stdlist); in list_copyable_only() 178 …::boost::movelib::unique_ptr<MyBoostList> const pboostlist = ::boost::movelib::make_unique<MyBoost… in list_test() 179 …::boost::movelib::unique_ptr<MyStdList> const pstdlist = ::boost::movelib::make_unique<MyStdList>(… in list_test() 183 …::boost::movelib::unique_ptr<MyBoostList> const pboostlist = ::boost::movelib::make_unique<MyBoost… in list_test() 184 …::boost::movelib::unique_ptr<MyStdList> const pstdlist = ::boost::movelib::make_unique<MyStdList>(… in list_test() 188 …::boost::movelib::unique_ptr<MyStdList> const stdlistp = ::boost::movelib::make_unique<MyStdList>(… in list_test() 189 …::boost::movelib::unique_ptr<MyBoostList> const boostlistp = ::boost::movelib::make_unique<MyBoost… in list_test() [all …]
|
/third_party/skia/tests/ |
D | PDFTaggedTest.cpp | 39 auto root = std::make_unique<PDFTag>(); in DEF_TEST() 44 auto h1 = std::make_unique<PDFTag>(); in DEF_TEST() 50 auto p = std::make_unique<PDFTag>(); in DEF_TEST() 57 auto div = std::make_unique<PDFTag>(); in DEF_TEST() 63 auto l = std::make_unique<PDFTag>(); in DEF_TEST() 67 auto lm1 = std::make_unique<PDFTag>(); in DEF_TEST() 72 auto li1 = std::make_unique<PDFTag>(); in DEF_TEST() 77 auto lm2 = std::make_unique<PDFTag>(); in DEF_TEST() 81 auto li2 = std::make_unique<PDFTag>(); in DEF_TEST() 89 auto p2 = std::make_unique<PDFTag>(); in DEF_TEST() [all …]
|
D | VkProtectedContextTest.cpp | 72 auto nonprotectedTestHelper = std::make_unique<VkTestHelper>(false); in DEF_GPUTEST() 77 auto protectedTestHelper = std::make_unique<VkTestHelper>(true); in DEF_GPUTEST() 84 auto protectedTestHelper = std::make_unique<VkTestHelper>(true); in DEF_GPUTEST() 96 auto protectedTestHelper = std::make_unique<VkTestHelper>(true); in DEF_GPUTEST() 112 auto protectedTestHelper = std::make_unique<VkTestHelper>(false); in DEF_GPUTEST() 128 auto protectedTestHelper = std::make_unique<VkTestHelper>(true); in DEF_GPUTEST() 155 auto protectedTestHelper = std::make_unique<VkTestHelper>(true); in DEF_GPUTEST() 182 auto protectedTestHelper = std::make_unique<VkTestHelper>(true); in DEF_GPUTEST() 198 auto protectedTestHelper = std::make_unique<VkTestHelper>(true); in DEF_GPUTEST() 215 auto protectedTestHelper = std::make_unique<VkTestHelper>(true); in DEF_GPUTEST() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Remarks/ |
D | RemarkSerializer.cpp | 28 return std::make_unique<YAMLRemarkSerializer>(OS, Mode); in createRemarkSerializer() 30 return std::make_unique<YAMLStrTabRemarkSerializer>(OS, Mode); in createRemarkSerializer() 32 return std::make_unique<BitstreamRemarkSerializer>(OS, Mode); in createRemarkSerializer() 45 return std::make_unique<YAMLRemarkSerializer>(OS, Mode, std::move(StrTab)); in createRemarkSerializer() 47 return std::make_unique<YAMLStrTabRemarkSerializer>(OS, Mode, in createRemarkSerializer() 50 return std::make_unique<BitstreamRemarkSerializer>(OS, Mode, in createRemarkSerializer()
|
/third_party/boost/libs/hana/example/tutorial/ |
D | integral-branching.cpp | 19 std::unique_ptr<T> make_unique(Args&&... args) { in make_unique() function 32 std::unique_ptr<T> make_unique(Args&&... args) { in make_unique() function 48 std::unique_ptr<int> a = ns1::make_unique<int>(3); in main() 49 std::unique_ptr<Student> b = ns1::make_unique<Student>("Bob", 25); in main() 52 std::unique_ptr<int> a = ns2::make_unique<int>(3); in main() 53 std::unique_ptr<Student> b = ns2::make_unique<Student>("Bob", 25); in main()
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/ |
D | ResultTests.cpp | 86 Result<void, int> result(std::make_unique<int>(dummyError)); in TEST() 92 Result<void, int> result(std::make_unique<int>(dummyError)); in TEST() 100 return {std::make_unique<int>(dummyError)}; in TEST() 135 Result<float*, int> result(std::make_unique<int>(dummyError)); in TEST() 141 Result<float*, int> result(std::make_unique<int>(dummyError)); in TEST() 149 return {std::make_unique<int>(dummyError)}; in TEST() 206 Result<const float*, int> result(std::make_unique<int>(dummyError)); in TEST() 212 Result<const float*, int> result(std::make_unique<int>(dummyError)); in TEST() 220 return {std::make_unique<int>(dummyError)}; in TEST() 252 Result<Ref<AClass>, int> result(std::make_unique<int>(dummyError)); in TEST() [all …]
|
/third_party/flutter/engine/flutter/shell/platform/windows/ |
D | win32_flutter_window.cc | 12 surface_manager = std::make_unique<AngleSurfaceManager>(); in Win32FlutterWindow() 34 auto state = std::make_unique<FlutterDesktopWindowControllerState>(); in CreateWin32FlutterWindow() 35 state->window = std::make_unique<flutter::Win32FlutterWindow>(title, 10, 10, in CreateWin32FlutterWindow() 40 state->window_wrapper = std::make_unique<FlutterDesktopWindow>(); in CreateWin32FlutterWindow() 48 auto messenger = std::make_unique<FlutterDesktopMessenger>(); in SetState() 50 std::make_unique<flutter::IncomingMessageDispatcher>(messenger.get()); in SetState() 54 window_wrapper_ = std::make_unique<FlutterDesktopWindow>(); in SetState() 57 plugin_registrar_ = std::make_unique<FlutterDesktopPluginRegistrar>(); in SetState() 62 std::make_unique<flutter::PluginRegistrar>(plugin_registrar_.get()); in SetState() 67 std::make_unique<flutter::KeyEventHandler>(internal_plugin_messenger)); in SetState() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/DIA/ |
D | DIASession.cpp | 153 auto RawSymbol = std::make_unique<DIARawSymbol>(*this, GlobalScope); in getGlobalScope() 188 auto RawSymbol = std::make_unique<DIARawSymbol>(*this, LocatedSymbol); in getSymbolById() 205 auto RawSymbol = std::make_unique<DIARawSymbol>(*this, Symbol); in findSymbolByAddress() 217 auto RawSymbol = std::make_unique<DIARawSymbol>(*this, Symbol); in findSymbolByRVA() 230 auto RawSymbol = std::make_unique<DIARawSymbol>(*this, Symbol); in findSymbolBySectOffset() 246 return std::make_unique<DIAEnumLineNumbers>(LineNumbers); in findLineNumbers() 260 return std::make_unique<DIAEnumLineNumbers>(LineNumbers); in findLineNumbersByAddress() 269 return std::make_unique<DIAEnumLineNumbers>(LineNumbers); in findLineNumbersByRVA() 279 return std::make_unique<DIAEnumLineNumbers>(LineNumbers); in findLineNumbersBySectOffset() 301 return std::make_unique<DIAEnumSourceFiles>(*this, SourceFiles); in findSourceFiles() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Orc/ |
D | LLJIT.cpp | 43 return std::make_unique<ObjectLinkingLayer>( in prepareForConstruction() 44 ES, std::make_unique<jitlink::InProcessMemoryManager>()); in prepareForConstruction() 95 auto GetMemMgr = []() { return std::make_unique<SectionMemoryManager>(); }; in createObjectLinkingLayer() 97 std::make_unique<RTDyldObjectLinkingLayer>(ES, std::move(GetMemMgr)); in createObjectLinkingLayer() 121 return std::make_unique<ConcurrentIRCompiler>(std::move(JTMB)); in createCompileFunction() 127 return std::make_unique<TMOwningSimpleCompiler>(std::move(*TM)); in createCompileFunction() 131 : ES(S.ES ? std::move(S.ES) : std::make_unique<ExecutionSession>()), in LLJIT() 152 CompileLayer = std::make_unique<IRCompileLayer>( in LLJIT() 158 CompileThreads = std::make_unique<ThreadPool>(S.NumCompileThreads); in LLJIT() 255 TransformLayer = std::make_unique<IRTransformLayer>(*ES, *CompileLayer); in LLLazyJIT() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldCOFF.cpp | 54 return std::make_unique<RuntimeDyldCOFFI386>(MemMgr, Resolver); in create() 56 return std::make_unique<RuntimeDyldCOFFThumb>(MemMgr, Resolver); in create() 58 return std::make_unique<RuntimeDyldCOFFX86_64>(MemMgr, Resolver); in create() 60 return std::make_unique<RuntimeDyldCOFFAArch64>(MemMgr, Resolver); in create() 67 return std::make_unique<LoadedCOFFObjectInfo>(*this, *ObjSectionToIDOrErr); in loadObject()
|
/third_party/skia/src/sksl/ir/ |
D | SkSLLiteral.h | 32 return std::make_unique<Literal>(line, value, context.fTypes.fFloatLiteral.get()); in MakeFloat() 38 return std::make_unique<Literal>(line, value, type); in MakeFloat() 43 return std::make_unique<Literal>(line, value, context.fTypes.fIntLiteral.get()); in MakeInt() 53 return std::make_unique<Literal>(line, value, type); in MakeInt() 58 return std::make_unique<Literal>(line, value, context.fTypes.fBool.get()); in MakeBool() 65 return std::make_unique<Literal>(line, value, type); in MakeBool() 128 return std::make_unique<Literal>(fLine, this->value(), &this->type()); in clone()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/container/ |
D | node_hash_set_test.cc | 62 set1.insert(absl::make_unique<int>(7)); in TEST() 63 set1.insert(absl::make_unique<int>(17)); in TEST() 65 set2.insert(absl::make_unique<int>(7)); in TEST() 66 set2.insert(absl::make_unique<int>(19)); in TEST() 76 auto node = set1.extract(absl::make_unique<int>(7)); in TEST() 90 node = set1.extract(absl::make_unique<int>(17)); in TEST() 95 node.value() = absl::make_unique<int>(23); in TEST()
|
/third_party/abseil-cpp/absl/container/ |
D | node_hash_set_test.cc | 62 set1.insert(absl::make_unique<int>(7)); in TEST() 63 set1.insert(absl::make_unique<int>(17)); in TEST() 65 set2.insert(absl::make_unique<int>(7)); in TEST() 66 set2.insert(absl::make_unique<int>(19)); in TEST() 76 auto node = set1.extract(absl::make_unique<int>(7)); in TEST() 90 node = set1.extract(absl::make_unique<int>(17)); in TEST() 95 node.value() = absl::make_unique<int>(23); in TEST()
|