Home
last modified time | relevance | path

Searched refs:unique_ptr (Results 1 – 25 of 5946) sorted by relevance

12345678910>>...238

/external/libcxx/test/std/algorithms/alg.modifying.operations/alg.move/
Dmove.pass.cpp46 std::unique_ptr<int> ia[N]; in test1()
49 std::unique_ptr<int> ib[N]; in test1()
96 test1<input_iterator<std::unique_ptr<int>*>, output_iterator<std::unique_ptr<int>*> >(); in main()
97 test1<input_iterator<std::unique_ptr<int>*>, input_iterator<std::unique_ptr<int>*> >(); in main()
98 test1<input_iterator<std::unique_ptr<int>*>, forward_iterator<std::unique_ptr<int>*> >(); in main()
99 test1<input_iterator<std::unique_ptr<int>*>, bidirectional_iterator<std::unique_ptr<int>*> >(); in main()
100 test1<input_iterator<std::unique_ptr<int>*>, random_access_iterator<std::unique_ptr<int>*> >(); in main()
101 test1<input_iterator<std::unique_ptr<int>*>, std::unique_ptr<int>*>(); in main()
103 test1<forward_iterator<std::unique_ptr<int>*>, output_iterator<std::unique_ptr<int>*> >(); in main()
104 test1<forward_iterator<std::unique_ptr<int>*>, input_iterator<std::unique_ptr<int>*> >(); in main()
[all …]
Dmove_backward.pass.cpp46 std::unique_ptr<int> ia[N]; in test1()
49 std::unique_ptr<int> ib[N]; in test1()
73 …test1<bidirectional_iterator<std::unique_ptr<int>*>, bidirectional_iterator<std::unique_ptr<int>*>… in main()
74 …test1<bidirectional_iterator<std::unique_ptr<int>*>, random_access_iterator<std::unique_ptr<int>*>… in main()
75 test1<bidirectional_iterator<std::unique_ptr<int>*>, std::unique_ptr<int>*>(); in main()
77 …test1<random_access_iterator<std::unique_ptr<int>*>, bidirectional_iterator<std::unique_ptr<int>*>… in main()
78 …test1<random_access_iterator<std::unique_ptr<int>*>, random_access_iterator<std::unique_ptr<int>*>… in main()
79 test1<random_access_iterator<std::unique_ptr<int>*>, std::unique_ptr<int>*>(); in main()
81 test1<std::unique_ptr<int>*, bidirectional_iterator<std::unique_ptr<int>*> >(); in main()
82 test1<std::unique_ptr<int>*, random_access_iterator<std::unique_ptr<int>*> >(); in main()
[all …]
/external/skia/src/sksl/
DSkSLContext.h210 const std::unique_ptr<Type> fInvalid_Type;
211 const std::unique_ptr<Type> fVoid_Type;
212 const std::unique_ptr<Type> fNull_Type;
213 const std::unique_ptr<Type> fFloatLiteral_Type;
214 const std::unique_ptr<Type> fIntLiteral_Type;
216 const std::unique_ptr<Type> fDouble_Type;
217 const std::unique_ptr<Type> fDouble2_Type;
218 const std::unique_ptr<Type> fDouble3_Type;
219 const std::unique_ptr<Type> fDouble4_Type;
221 const std::unique_ptr<Type> fFloat_Type;
[all …]
DSkSLIRGenerator.h70 std::vector<std::unique_ptr<ProgramElement>>* result);
77 std::unique_ptr<Expression> constantFold(const Expression& left,
81 std::unique_ptr<Expression> getArg(int offset, String name) const;
94 std::vector<std::unique_ptr<ProgramElement>>* inherited);
104 std::unique_ptr<VarDeclarations> convertVarDeclarations(const ASTVarDeclarations& decl,
107 std::unique_ptr<Statement> convertStatement(const ASTStatement& statement);
108 std::unique_ptr<Expression> convertExpression(const ASTExpression& expression);
109 std::unique_ptr<ModifiersDeclaration> convertModifiersDeclaration(
113 std::unique_ptr<Expression> call(int offset,
115 std::vector<std::unique_ptr<Expression>> arguments);
[all …]
DSkSLParser.h107 std::vector<std::unique_ptr<ASTDeclaration>> file();
168 std::unique_ptr<ASTDeclaration> precision();
170 std::unique_ptr<ASTDeclaration> directive();
172 std::unique_ptr<ASTDeclaration> section();
174 std::unique_ptr<ASTDeclaration> enumDeclaration();
176 std::unique_ptr<ASTDeclaration> declaration();
178 std::unique_ptr<ASTVarDeclarations> varDeclarations();
180 std::unique_ptr<ASTType> structDeclaration();
182 std::unique_ptr<ASTVarDeclarations> structVarDeclaration(Modifiers modifiers);
184 std::unique_ptr<ASTVarDeclarations> varDeclarationEnd(Modifiers modifiers,
[all …]
DSkSLParser.cpp143 std::vector<std::unique_ptr<ASTDeclaration>> Parser::file() { in file()
144 std::vector<std::unique_ptr<ASTDeclaration>> result; in file()
150 std::unique_ptr<ASTDeclaration> decl = this->directive(); in file()
157 std::unique_ptr<ASTDeclaration> section = this->section(); in file()
164 std::unique_ptr<ASTDeclaration> decl = this->declaration(); in file()
252 std::unique_ptr<ASTDeclaration> Parser::directive() { in directive()
280 return std::unique_ptr<ASTDeclaration>(new ASTExtension(start.fOffset, in directive()
290 std::unique_ptr<ASTDeclaration> Parser::section() { in section()
335 return std::unique_ptr<ASTDeclaration>(new ASTSection(start.fOffset, in section()
343 std::unique_ptr<ASTDeclaration> Parser::enumDeclaration() { in enumDeclaration()
[all …]
/external/skqp/src/sksl/
DSkSLContext.h207 const std::unique_ptr<Type> fInvalid_Type;
208 const std::unique_ptr<Type> fVoid_Type;
210 const std::unique_ptr<Type> fDouble_Type;
211 const std::unique_ptr<Type> fDouble2_Type;
212 const std::unique_ptr<Type> fDouble3_Type;
213 const std::unique_ptr<Type> fDouble4_Type;
215 const std::unique_ptr<Type> fFloat_Type;
216 const std::unique_ptr<Type> fFloat2_Type;
217 const std::unique_ptr<Type> fFloat3_Type;
218 const std::unique_ptr<Type> fFloat4_Type;
[all …]
DSkSLIRGenerator.h70 std::vector<std::unique_ptr<ProgramElement>>* result);
77 std::unique_ptr<Expression> constantFold(const Expression& left,
81 std::unique_ptr<Expression> getArg(int offset, String name) const;
94 std::vector<std::unique_ptr<ProgramElement>>* inherited);
104 std::unique_ptr<VarDeclarations> convertVarDeclarations(const ASTVarDeclarations& decl,
107 std::unique_ptr<Statement> convertStatement(const ASTStatement& statement);
108 std::unique_ptr<Expression> convertExpression(const ASTExpression& expression);
109 std::unique_ptr<ModifiersDeclaration> convertModifiersDeclaration(
113 std::unique_ptr<Expression> call(int offset,
115 std::vector<std::unique_ptr<Expression>> arguments);
[all …]
DSkSLParser.h107 std::vector<std::unique_ptr<ASTDeclaration>> file();
168 std::unique_ptr<ASTDeclaration> precision();
170 std::unique_ptr<ASTDeclaration> directive();
172 std::unique_ptr<ASTDeclaration> section();
174 std::unique_ptr<ASTDeclaration> enumDeclaration();
176 std::unique_ptr<ASTDeclaration> declaration();
178 std::unique_ptr<ASTVarDeclarations> varDeclarations();
180 std::unique_ptr<ASTType> structDeclaration();
182 std::unique_ptr<ASTVarDeclarations> structVarDeclaration(Modifiers modifiers);
184 std::unique_ptr<ASTVarDeclarations> varDeclarationEnd(Modifiers modifiers,
[all …]
DSkSLParser.cpp142 std::vector<std::unique_ptr<ASTDeclaration>> Parser::file() { in file()
143 std::vector<std::unique_ptr<ASTDeclaration>> result; in file()
149 std::unique_ptr<ASTDeclaration> decl = this->directive(); in file()
156 std::unique_ptr<ASTDeclaration> section = this->section(); in file()
163 std::unique_ptr<ASTDeclaration> decl = this->declaration(); in file()
251 std::unique_ptr<ASTDeclaration> Parser::directive() { in directive()
279 return std::unique_ptr<ASTDeclaration>(new ASTExtension(start.fOffset, in directive()
289 std::unique_ptr<ASTDeclaration> Parser::section() { in section()
334 return std::unique_ptr<ASTDeclaration>(new ASTSection(start.fOffset, in section()
342 std::unique_ptr<ASTDeclaration> Parser::enumDeclaration() { in enumDeclaration()
[all …]
/external/pdfium/xfa/fxfa/fm2js/
Dcxfa_fmparser.h21 std::unique_ptr<CXFA_FMFunctionDefinition> Parse();
33 std::vector<std::unique_ptr<CXFA_FMExpression>> ParseTopExpression();
34 std::unique_ptr<CXFA_FMExpression> ParseFunction();
35 std::unique_ptr<CXFA_FMExpression> ParseExpression();
36 std::unique_ptr<CXFA_FMExpression> ParseVarExpression();
37 std::unique_ptr<CXFA_FMExpression> ParseExpExpression();
38 std::unique_ptr<CXFA_FMExpression> ParseBlockExpression();
39 std::unique_ptr<CXFA_FMExpression> ParseIfExpression();
40 std::unique_ptr<CXFA_FMExpression> ParseWhileExpression();
41 std::unique_ptr<CXFA_FMExpression> ParseForExpression();
[all …]
Dcxfa_fmexpression.h52 std::vector<std::unique_ptr<CXFA_FMExpression>>&& expressions);
61 std::vector<std::unique_ptr<CXFA_FMExpression>> m_pExpressions;
69 std::unique_ptr<CXFA_FMExpression> pInit);
77 std::unique_ptr<CXFA_FMExpression> m_pInit;
83 std::unique_ptr<CXFA_FMSimpleExpression> pExpression);
90 std::unique_ptr<CXFA_FMSimpleExpression> m_pExpression;
97 std::vector<std::unique_ptr<CXFA_FMExpression>>&& pExpressionList);
104 std::vector<std::unique_ptr<CXFA_FMExpression>> m_ExpressionList;
109 CXFA_FMDoExpression(uint32_t line, std::unique_ptr<CXFA_FMExpression> pList);
116 std::unique_ptr<CXFA_FMExpression> m_pList;
[all …]
/external/tensorflow/tensorflow/core/platform/cloud/
Dgcs_file_system_test.cc68 GcsFileSystem fs(std::unique_ptr<AuthProvider>(new FakeAuthProvider), in TEST()
69 std::unique_ptr<HttpRequest::Factory>( in TEST()
71 std::unique_ptr<ZoneProvider>(new FakeZoneProvider), in TEST()
79 std::unique_ptr<RandomAccessFile> file; in TEST()
111 GcsFileSystem fs(std::unique_ptr<AuthProvider>(new FakeAuthProvider), in TEST()
112 std::unique_ptr<HttpRequest::Factory>( in TEST()
114 std::unique_ptr<ZoneProvider>(new FakeZoneProvider), in TEST()
122 std::unique_ptr<RandomAccessFile> file; in TEST()
153 GcsFileSystem fs(std::unique_ptr<AuthProvider>(new FakeAuthProvider), in TEST()
154 std::unique_ptr<HttpRequest::Factory>( in TEST()
[all …]
/external/libcxx/test/std/algorithms/alg.modifying.operations/alg.swap/
Dswap_ranges.pass.cpp45 std::unique_ptr<int> i[3]; in test1()
48 std::unique_ptr<int> j[3]; in test1()
132 test1<forward_iterator<std::unique_ptr<int>*>, forward_iterator<std::unique_ptr<int>*> >(); in main()
133 … test1<forward_iterator<std::unique_ptr<int>*>, bidirectional_iterator<std::unique_ptr<int>*> >(); in main()
134 … test1<forward_iterator<std::unique_ptr<int>*>, random_access_iterator<std::unique_ptr<int>*> >(); in main()
135 test1<forward_iterator<std::unique_ptr<int>*>, std::unique_ptr<int>*>(); in main()
137 … test1<bidirectional_iterator<std::unique_ptr<int>*>, forward_iterator<std::unique_ptr<int>*> >(); in main()
138 …test1<bidirectional_iterator<std::unique_ptr<int>*>, bidirectional_iterator<std::unique_ptr<int>*>… in main()
139 …test1<bidirectional_iterator<std::unique_ptr<int>*>, random_access_iterator<std::unique_ptr<int>*>… in main()
140 test1<bidirectional_iterator<std::unique_ptr<int>*>, std::unique_ptr<int>*>(); in main()
[all …]
/external/deqp-deps/SPIRV-Tools/tools/comp/
Dmarkv_model_shader_default_autogen.inc76 std::map<uint32_t, std::unique_ptr<HuffmanCodec<uint64_t>>>
78 std::map<uint32_t, std::unique_ptr<HuffmanCodec<uint64_t>>> codecs;
80 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(35, {
123 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(55, {
186 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(19, {
213 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(67, {
288 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(79, {
375 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(55, {
438 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(57, {
503 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(13, {
[all …]
/external/swiftshader/third_party/SPIRV-Tools/tools/comp/
Dmarkv_model_shader_default_autogen.inc76 std::map<uint32_t, std::unique_ptr<HuffmanCodec<uint64_t>>>
78 std::map<uint32_t, std::unique_ptr<HuffmanCodec<uint64_t>>> codecs;
80 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(35, {
123 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(55, {
186 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(19, {
213 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(67, {
288 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(79, {
375 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(55, {
438 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(57, {
503 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(13, {
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/DebugInfo/PDB/Native/
DNativeSession.h31 NativeSession(std::unique_ptr<PDBFile> PdbFile,
32 std::unique_ptr<BumpPtrAllocator> Allocator);
35 static Error createFromPdb(std::unique_ptr<MemoryBuffer> MB,
36 std::unique_ptr<IPDBSession> &Session);
38 std::unique_ptr<IPDBSession> &Session);
40 std::unique_ptr<PDBSymbolCompiland>
43 std::unique_ptr<PDBSymbolTypeEnum>
46 std::unique_ptr<IPDBEnumSymbols>
53 std::unique_ptr<PDBSymbolExe> getGlobalScope() override;
54 std::unique_ptr<PDBSymbol> getSymbolById(uint32_t SymbolId) const override;
[all …]
/external/clang/test/SemaCXX/
Drval-references-examples.cpp4 class unique_ptr { class
7unique_ptr(const unique_ptr&) = delete; // expected-note 3{{'unique_ptr' has been explicitly marke…
8unique_ptr &operator=(const unique_ptr&) = delete; // expected-note{{candidate function has been e…
10 unique_ptr() : ptr(0) { } in unique_ptr() function in unique_ptr
11 unique_ptr(unique_ptr &&other) : ptr(other.ptr) { other.ptr = 0; } in unique_ptr() function in unique_ptr
12 explicit unique_ptr(T *ptr) : ptr(ptr) { } in unique_ptr() function in unique_ptr
14 ~unique_ptr() { delete ptr; } in ~unique_ptr()
16unique_ptr &operator=(unique_ptr &&other) { // expected-note{{candidate function not viable: no kn… in operator =()
56 unique_ptr<T> make_unique_ptr(Args &&...args) { in make_unique_ptr()
57 return unique_ptr<T>(new T(forward<Args>(args)...)); in make_unique_ptr()
[all …]
/external/flatbuffers/include/flatbuffers/
Dstl_emulation.h173 template <class T> using unique_ptr = std::unique_ptr<T>;
180 template <class T> class unique_ptr : public std::unique_ptr<T> {
182 unique_ptr() {}
183 explicit unique_ptr(T* p) : std::unique_ptr<T>(p) {}
184 unique_ptr(std::unique_ptr<T>&& u) { *this = std::move(u); }
185 unique_ptr(unique_ptr&& u) { *this = std::move(u); }
186 unique_ptr& operator=(std::unique_ptr<T>&& u) {
187 std::unique_ptr<T>::reset(u.release());
190 unique_ptr& operator=(unique_ptr&& u) {
191 std::unique_ptr<T>::reset(u.release());
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/DebugInfo/PDB/DIA/
DDIASession.h28 std::unique_ptr<IPDBSession> &Session);
30 std::unique_ptr<IPDBSession> &Session);
34 std::unique_ptr<PDBSymbolExe> getGlobalScope() override;
35 std::unique_ptr<PDBSymbol> getSymbolById(uint32_t SymbolId) const override;
42 std::unique_ptr<PDBSymbol>
44 std::unique_ptr<PDBSymbol> findSymbolByRVA(uint32_t RVA,
46 std::unique_ptr<PDBSymbol>
50 std::unique_ptr<IPDBEnumLineNumbers>
53 std::unique_ptr<IPDBEnumLineNumbers>
55 std::unique_ptr<IPDBEnumLineNumbers>
[all …]
/external/bcc/src/cc/
Dbpffs_table.cc23 using std::unique_ptr;
31 virtual unique_ptr<self_type> clone() const override;
40 virtual unique_ptr<TableStorageIteratorImpl> begin() override;
41 virtual unique_ptr<TableStorageIteratorImpl> end() override;
42 virtual unique_ptr<TableStorageIteratorImpl> lower_bound(const string &k) override;
43 virtual unique_ptr<TableStorageIteratorImpl> upper_bound(const string &k) override;
44 virtual unique_ptr<TableStorageIteratorImpl> erase(const TableStorageIteratorImpl &it) override;
57 unique_ptr<TableStorageIteratorImpl> BpfFsTableStorage::begin() { return unique_ptr<iterator>(); } in begin()
58 unique_ptr<TableStorageIteratorImpl> BpfFsTableStorage::end() { return unique_ptr<iterator>(); } in end()
59 unique_ptr<TableStorageIteratorImpl> BpfFsTableStorage::lower_bound(const string &k) { in lower_bound()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/DebugInfo/PDB/
DIPDBSession.h32 virtual std::unique_ptr<PDBSymbolExe> getGlobalScope() = 0;
33 virtual std::unique_ptr<PDBSymbol> getSymbolById(uint32_t SymbolId) const = 0;
41 std::unique_ptr<T> getConcreteSymbolById(uint32_t SymbolId) const { in getConcreteSymbolById()
45 virtual std::unique_ptr<PDBSymbol>
47 virtual std::unique_ptr<PDBSymbol>
49 virtual std::unique_ptr<PDBSymbol>
53 virtual std::unique_ptr<IPDBEnumLineNumbers>
56 virtual std::unique_ptr<IPDBEnumLineNumbers>
58 virtual std::unique_ptr<IPDBEnumLineNumbers>
60 virtual std::unique_ptr<IPDBEnumLineNumbers>
[all …]
/external/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.asgn/
Dmove_convert.pass.cpp186 using U1 = std::unique_ptr<VT, DDest>; in doDeleterTest()
187 using U2 = std::unique_ptr<VT, DSource>; in doDeleterTest()
202 using U1 = std::unique_ptr<VT, GenericConvertingDeleter<0> >; in test_sfinae()
203 using U2 = std::unique_ptr<VT, GenericConvertingDeleter<1> >; in test_sfinae()
208 using U1 = std::unique_ptr<VT, GenericDeleter<0> >; in test_sfinae()
209 using U2 = std::unique_ptr<VT, GenericDeleter<1> >; in test_sfinae()
214 using U1 = std::unique_ptr<VT, GenericConvertingDeleter<0> const& >; in test_sfinae()
215 using U2 = std::unique_ptr<VT, GenericConvertingDeleter<0> >; in test_sfinae()
216 using U3 = std::unique_ptr<VT, GenericConvertingDeleter<0> &>; in test_sfinae()
217 using U4 = std::unique_ptr<VT, GenericConvertingDeleter<1> >; in test_sfinae()
[all …]
/external/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/
Dmove_convert.pass.cpp106 using U1 = std::unique_ptr<VT, GenericConvertingDeleter<0> >; in test_sfinae()
107 using U2 = std::unique_ptr<VT, GenericConvertingDeleter<1> >; in test_sfinae()
112 using U1 = std::unique_ptr<VT, GenericDeleter<0> >; in test_sfinae()
113 using U2 = std::unique_ptr<VT, GenericDeleter<1> >; in test_sfinae()
118 using U1 = std::unique_ptr<VT, GenericConvertingDeleter<0> const& >; in test_sfinae()
119 using U2 = std::unique_ptr<VT, GenericConvertingDeleter<0> >; in test_sfinae()
120 using U3 = std::unique_ptr<VT, GenericConvertingDeleter<0> &>; in test_sfinae()
121 using U4 = std::unique_ptr<VT, GenericConvertingDeleter<1> >; in test_sfinae()
122 using U5 = std::unique_ptr<VT, GenericConvertingDeleter<1> const&>; in test_sfinae()
128 using U1C = std::unique_ptr<const VT, GenericConvertingDeleter<0> const&>; in test_sfinae()
[all …]
/external/llvm/lib/DebugInfo/PDB/Raw/
DRawSession.cpp34 explicit InputByteStream(std::unique_ptr<MemoryBuffer> Buffer) in InputByteStream()
39 std::unique_ptr<MemoryBuffer> MemBuffer;
43 RawSession::RawSession(std::unique_ptr<PDBFile> PdbFile) in RawSession()
49 std::unique_ptr<IPDBSession> &Session) { in createFromPdb()
51 ErrorOr<std::unique_ptr<MemoryBuffer>> ErrorOrBuffer = in createFromPdb()
57 std::unique_ptr<MemoryBuffer> Buffer = std::move(*ErrorOrBuffer); in createFromPdb()
60 std::unique_ptr<PDBFile> File(new PDBFile(std::move(Stream))); in createFromPdb()
72 std::unique_ptr<IPDBSession> &Session) { in createFromExe()
80 std::unique_ptr<PDBSymbolExe> RawSession::getGlobalScope() const { in getGlobalScope()
84 std::unique_ptr<PDBSymbol> RawSession::getSymbolById(uint32_t SymbolId) const { in getSymbolById()
[all …]

12345678910>>...238