/external/libcxx/test/std/algorithms/alg.modifying.operations/alg.move/ |
D | move.pass.cpp | 48 std::unique_ptr<int> ia[N]; in test1() 51 std::unique_ptr<int> ib[N]; in test1() 99 test1<input_iterator<std::unique_ptr<int>*>, output_iterator<std::unique_ptr<int>*> >(); in main() 100 test1<input_iterator<std::unique_ptr<int>*>, input_iterator<std::unique_ptr<int>*> >(); in main() 101 test1<input_iterator<std::unique_ptr<int>*>, forward_iterator<std::unique_ptr<int>*> >(); in main() 102 test1<input_iterator<std::unique_ptr<int>*>, bidirectional_iterator<std::unique_ptr<int>*> >(); in main() 103 test1<input_iterator<std::unique_ptr<int>*>, random_access_iterator<std::unique_ptr<int>*> >(); in main() 104 test1<input_iterator<std::unique_ptr<int>*>, std::unique_ptr<int>*>(); in main() 106 test1<forward_iterator<std::unique_ptr<int>*>, output_iterator<std::unique_ptr<int>*> >(); in main() 107 test1<forward_iterator<std::unique_ptr<int>*>, input_iterator<std::unique_ptr<int>*> >(); in main() [all …]
|
D | move_backward.pass.cpp | 48 std::unique_ptr<int> ia[N]; in test1() 51 std::unique_ptr<int> ib[N]; in test1() 76 …test1<bidirectional_iterator<std::unique_ptr<int>*>, bidirectional_iterator<std::unique_ptr<int>*>… in main() 77 …test1<bidirectional_iterator<std::unique_ptr<int>*>, random_access_iterator<std::unique_ptr<int>*>… in main() 78 test1<bidirectional_iterator<std::unique_ptr<int>*>, std::unique_ptr<int>*>(); in main() 80 …test1<random_access_iterator<std::unique_ptr<int>*>, bidirectional_iterator<std::unique_ptr<int>*>… in main() 81 …test1<random_access_iterator<std::unique_ptr<int>*>, random_access_iterator<std::unique_ptr<int>*>… in main() 82 test1<random_access_iterator<std::unique_ptr<int>*>, std::unique_ptr<int>*>(); in main() 84 test1<std::unique_ptr<int>*, bidirectional_iterator<std::unique_ptr<int>*> >(); in main() 85 test1<std::unique_ptr<int>*, random_access_iterator<std::unique_ptr<int>*> >(); in main() [all …]
|
/external/libcxx/test/std/algorithms/alg.modifying.operations/alg.swap/ |
D | swap_ranges.pass.cpp | 47 std::unique_ptr<int> i[3]; in test1() 50 std::unique_ptr<int> j[3]; in test1() 136 test1<forward_iterator<std::unique_ptr<int>*>, forward_iterator<std::unique_ptr<int>*> >(); in main() 137 … test1<forward_iterator<std::unique_ptr<int>*>, bidirectional_iterator<std::unique_ptr<int>*> >(); in main() 138 … test1<forward_iterator<std::unique_ptr<int>*>, random_access_iterator<std::unique_ptr<int>*> >(); in main() 139 test1<forward_iterator<std::unique_ptr<int>*>, std::unique_ptr<int>*>(); in main() 141 … test1<bidirectional_iterator<std::unique_ptr<int>*>, forward_iterator<std::unique_ptr<int>*> >(); in main() 142 …test1<bidirectional_iterator<std::unique_ptr<int>*>, bidirectional_iterator<std::unique_ptr<int>*>… in main() 143 …test1<bidirectional_iterator<std::unique_ptr<int>*>, random_access_iterator<std::unique_ptr<int>*>… in main() 144 test1<bidirectional_iterator<std::unique_ptr<int>*>, std::unique_ptr<int>*>(); in main() [all …]
|
/external/clang/test/SemaCXX/ |
D | rval-references-examples.cpp | 4 class unique_ptr { class 7 …unique_ptr(const unique_ptr&) = delete; // expected-note 3{{'unique_ptr' has been explicitly marke… 8 …unique_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() 16 …unique_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/skia/include/private/ |
D | SkUniquePtr.h | 37 template <typename T, typename D = default_delete<T>> class unique_ptr { 100 /*constexpr*/ unique_ptr() /*noexcept*/ : data() { 104 /*constexpr*/ unique_ptr(std::nullptr_t) /*noexcept*/ : unique_ptr() { } 106 explicit unique_ptr(pointer ptr) /*noexcept*/ : data(ptr, deleter_type()) { 110 unique_ptr(pointer ptr, 116 unique_ptr(pointer ptr, remove_reference_t<deleter_type>&& d) /*noexcept*/ 124 unique_ptr(unique_ptr&& that) /*noexcept*/ 129 is_convertible<typename unique_ptr<U, ThatD>::pointer, pointer>::value && 134 unique_ptr(unique_ptr<U, ThatD>&& that) /*noexcept*/ 138 ~unique_ptr() /*noexcept*/ { [all …]
|
/external/llvm/examples/Kaleidoscope/Chapter2/ |
D | toy.cpp | 14 typename std::enable_if<!std::is_array<T>::value, std::unique_ptr<T>>::type 16 return std::unique_ptr<T>(new T(std::forward<Args>(args)...)); in make_unique() 121 std::unique_ptr<ExprAST> LHS, RHS; 124 BinaryExprAST(char Op, std::unique_ptr<ExprAST> LHS, in BinaryExprAST() 125 std::unique_ptr<ExprAST> RHS) in BinaryExprAST() 132 std::vector<std::unique_ptr<ExprAST>> Args; 136 std::vector<std::unique_ptr<ExprAST>> Args) in CallExprAST() 154 std::unique_ptr<PrototypeAST> Proto; 155 std::unique_ptr<ExprAST> Body; 158 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() [all …]
|
/external/libbrillo/brillo/ |
D | value_conversion.cc | 23 std::unique_ptr<base::ListValue>* out_value) { in FromValue() 32 std::unique_ptr<base::DictionaryValue>* out_value) { in FromValue() 40 std::unique_ptr<base::Value> ToValue(int value) { in ToValue() 41 return std::unique_ptr<base::Value>{new base::FundamentalValue{value}}; in ToValue() 44 std::unique_ptr<base::Value> ToValue(bool value) { in ToValue() 45 return std::unique_ptr<base::Value>{new base::FundamentalValue{value}}; in ToValue() 48 std::unique_ptr<base::Value> ToValue(double value) { in ToValue() 49 return std::unique_ptr<base::Value>{new base::FundamentalValue{value}}; in ToValue() 52 std::unique_ptr<base::Value> ToValue(const char* value) { in ToValue() 53 return std::unique_ptr<base::Value>{new base::StringValue{value}}; in ToValue() [all …]
|
/external/libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.special/ |
D | eq.pass.cpp | 51 const std::unique_ptr<A, Deleter<A> > p1(new A); in main() 52 const std::unique_ptr<A, Deleter<A> > p2(new A); in main() 57 const std::unique_ptr<A, Deleter<A> > p1(new A); in main() 58 const std::unique_ptr<B, Deleter<B> > p2(new B); in main() 63 const std::unique_ptr<A[], Deleter<A[]> > p1(new A[3]); in main() 64 const std::unique_ptr<A[], Deleter<A[]> > p2(new A[3]); in main() 69 const std::unique_ptr<A[], Deleter<A[]> > p1(new A[3]); in main() 70 const std::unique_ptr<B[], Deleter<B[]> > p2(new B[3]); in main() 75 const std::unique_ptr<A, Deleter<A> > p1; in main() 76 const std::unique_ptr<A, Deleter<A> > p2; in main() [all …]
|
D | rel.pass.cpp | 59 const std::unique_ptr<A, Deleter<A> > p1(new A); in main() 60 const std::unique_ptr<A, Deleter<A> > p2(new A); in main() 66 const std::unique_ptr<A, Deleter<A> > p1(new A); in main() 67 const std::unique_ptr<B, Deleter<B> > p2(new B); in main() 73 const std::unique_ptr<A[], Deleter<A[]> > p1(new A[3]); in main() 74 const std::unique_ptr<A[], Deleter<A[]> > p2(new A[3]); in main() 80 const std::unique_ptr<A[], Deleter<A[]> > p1(new A[3]); in main() 81 const std::unique_ptr<B[], Deleter<B[]> > p2(new B[3]); in main() 87 const std::unique_ptr<A, Deleter<A> > p1; in main() 88 const std::unique_ptr<A, Deleter<A> > p2; in main() [all …]
|
/external/llvm/include/llvm/DebugInfo/PDB/ |
D | PDBSymbol.h | 44 PDBSymbol(const IPDBSession &PDBSession, std::unique_ptr<IPDBRawSymbol> Symbol); 47 static std::unique_ptr<PDBSymbol> 48 create(const IPDBSession &PDBSession, std::unique_ptr<IPDBRawSymbol> Symbol); 61 template <typename T> std::unique_ptr<T> findOneChild() const { in findOneChild() 67 std::unique_ptr<ConcreteSymbolEnumerator<T>> findAllChildren() const { in findAllChildren() 71 std::unique_ptr<IPDBEnumSymbols> findAllChildren(PDB_SymType Type) const; 72 std::unique_ptr<IPDBEnumSymbols> findAllChildren() const; 74 std::unique_ptr<IPDBEnumSymbols> 77 std::unique_ptr<IPDBEnumSymbols> findChildrenByRVA(PDB_SymType Type, 81 std::unique_ptr<IPDBEnumSymbols> findInlineFramesByRVA(uint32_t RVA) const; [all …]
|
D | IPDBSession.h | 30 virtual std::unique_ptr<PDBSymbolExe> getGlobalScope() const = 0; 31 virtual std::unique_ptr<PDBSymbol> getSymbolById(uint32_t SymbolId) const = 0; 34 std::unique_ptr<T> getConcreteSymbolById(uint32_t SymbolId) const { in getConcreteSymbolById() 43 return std::unique_ptr<T>(ConcreteSymbol); in getConcreteSymbolById() 46 virtual std::unique_ptr<PDBSymbol> 48 virtual std::unique_ptr<IPDBEnumLineNumbers> 51 virtual std::unique_ptr<IPDBEnumSourceFiles> getAllSourceFiles() const = 0; 52 virtual std::unique_ptr<IPDBEnumSourceFiles> 54 virtual std::unique_ptr<IPDBSourceFile> 57 virtual std::unique_ptr<IPDBEnumDataStreams> getDebugStreams() const = 0;
|
D | ConcreteSymbolEnumerator.h | 22 ConcreteSymbolEnumerator(std::unique_ptr<IPDBEnumSymbols> SymbolEnumerator) in ConcreteSymbolEnumerator() 31 std::unique_ptr<ChildType> getChildAtIndex(uint32_t Index) const override { in getChildAtIndex() 32 std::unique_ptr<PDBSymbol> Child = Enumerator->getChildAtIndex(Index); in getChildAtIndex() 36 std::unique_ptr<ChildType> getNext() override { in getNext() 37 std::unique_ptr<PDBSymbol> Child = Enumerator->getNext(); in getNext() 44 std::unique_ptr<IPDBEnumSymbols> WrappedClone(Enumerator->clone()); in clone() 49 std::unique_ptr<ChildType> 50 make_concrete_child(std::unique_ptr<PDBSymbol> Child) const { in make_concrete_child() 52 return std::unique_ptr<ChildType>(ConcreteChild); in make_concrete_child() 55 std::unique_ptr<IPDBEnumSymbols> Enumerator;
|
/external/llvm/include/llvm/DebugInfo/PDB/DIA/ |
D | DIASession.h | 23 std::unique_ptr<IPDBSession> &Session); 25 std::unique_ptr<IPDBSession> &Session); 29 std::unique_ptr<PDBSymbolExe> getGlobalScope() const override; 30 std::unique_ptr<PDBSymbol> getSymbolById(uint32_t SymbolId) const override; 32 std::unique_ptr<PDBSymbol> 35 std::unique_ptr<IPDBEnumLineNumbers> 38 std::unique_ptr<IPDBEnumSourceFiles> getAllSourceFiles() const override; 39 std::unique_ptr<IPDBEnumSourceFiles> getSourceFilesForCompiland( 41 std::unique_ptr<IPDBSourceFile> 44 std::unique_ptr<IPDBEnumDataStreams> getDebugStreams() const override;
|
/external/llvm/unittests/Support/ |
D | ErrorOrTest.cpp | 40 ErrorOr<std::unique_ptr<int> > t3() { in t3() 41 return std::unique_ptr<int>(new int(3)); in t3() 61 ErrorOr<std::unique_ptr<B> > b1(ErrorOr<std::unique_ptr<D> >(nullptr)); in TEST() 62 b1 = ErrorOr<std::unique_ptr<D> >(nullptr); in TEST() 64 ErrorOr<std::unique_ptr<int>> b2(ErrorOr<int *>(nullptr)); in TEST() 66 ErrorOr<std::unique_ptr<int>> b4(b3); in TEST() 78 ErrorOr<std::unique_ptr<int>>>::value, 85 ErrorOr<std::unique_ptr<int>>>::value, 91 static_assert(!std::is_assignable<ErrorOr<std::unique_ptr<int>>, 97 static_assert(!std::is_assignable<ErrorOr<std::unique_ptr<int>>,
|
/external/llvm/include/llvm/LTO/ |
D | LTOModule.h | 48 std::unique_ptr<LLVMContext> OwnedContext; 52 std::unique_ptr<object::IRObjectFile> IRFile; 53 std::unique_ptr<TargetMachine> _target; 61 LTOModule(std::unique_ptr<object::IRObjectFile> Obj, TargetMachine *TM); 62 LTOModule(std::unique_ptr<object::IRObjectFile> Obj, TargetMachine *TM, 63 std::unique_ptr<LLVMContext> Context); 83 static std::unique_ptr<MemoryBuffer> 94 static ErrorOr<std::unique_ptr<LTOModule>> 96 static ErrorOr<std::unique_ptr<LTOModule>> 99 static ErrorOr<std::unique_ptr<LTOModule>> [all …]
|
/external/llvm/examples/Kaleidoscope/Chapter5/ |
D | toy.cpp | 141 std::unique_ptr<ExprAST> LHS, RHS; 144 BinaryExprAST(char Op, std::unique_ptr<ExprAST> LHS, in BinaryExprAST() 145 std::unique_ptr<ExprAST> RHS) in BinaryExprAST() 153 std::vector<std::unique_ptr<ExprAST>> Args; 157 std::vector<std::unique_ptr<ExprAST>> Args) in CallExprAST() 164 std::unique_ptr<ExprAST> Cond, Then, Else; 167 IfExprAST(std::unique_ptr<ExprAST> Cond, std::unique_ptr<ExprAST> Then, in IfExprAST() 168 std::unique_ptr<ExprAST> Else) in IfExprAST() 176 std::unique_ptr<ExprAST> Start, End, Step, Body; 179 ForExprAST(const std::string &VarName, std::unique_ptr<ExprAST> Start, in ForExprAST() [all …]
|
/external/libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.runtime/unique.ptr.runtime.ctor/ |
D | move02.pass.cpp | 35 std::unique_ptr<A[]> 38 return std::unique_ptr<A[]>(new A[3]); in source1() 41 void sink1(std::unique_ptr<A[]> p) in sink1() 45 std::unique_ptr<A[], Deleter<A[]> > 48 return std::unique_ptr<A[], Deleter<A[]> >(new A[3]); in source2() 51 void sink2(std::unique_ptr<A[], Deleter<A[]> > p) in sink2() 55 std::unique_ptr<A[], NCDeleter<A[]>&> 59 return std::unique_ptr<A[], NCDeleter<A[]>&>(new A[3], d); in source3() 62 void sink3(std::unique_ptr<A[], NCDeleter<A[]>&> p) in sink3()
|
/external/llvm/examples/Kaleidoscope/Chapter4/ |
D | toy.cpp | 124 std::unique_ptr<ExprAST> LHS, RHS; 127 BinaryExprAST(char Op, std::unique_ptr<ExprAST> LHS, in BinaryExprAST() 128 std::unique_ptr<ExprAST> RHS) in BinaryExprAST() 136 std::vector<std::unique_ptr<ExprAST>> Args; 140 std::vector<std::unique_ptr<ExprAST>> Args) in CallExprAST() 161 std::unique_ptr<PrototypeAST> Proto; 162 std::unique_ptr<ExprAST> Body; 165 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() 166 std::unique_ptr<ExprAST> Body) in FunctionAST() 199 std::unique_ptr<ExprAST> Error(const char *Str) { in Error() [all …]
|
/external/llvm/lib/Support/ |
D | MemoryBuffer.cpp | 100 static ErrorOr<std::unique_ptr<MemoryBuffer>> 104 std::unique_ptr<MemoryBuffer> 109 return std::unique_ptr<MemoryBuffer>(Ret); in getMemBuffer() 112 std::unique_ptr<MemoryBuffer> 114 return std::unique_ptr<MemoryBuffer>(getMemBuffer( in getMemBuffer() 118 std::unique_ptr<MemoryBuffer> 120 std::unique_ptr<MemoryBuffer> Buf = in getMemBufferCopy() 129 std::unique_ptr<MemoryBuffer> 152 return std::unique_ptr<MemoryBuffer>(Ret); in getNewUninitMemBuffer() 155 std::unique_ptr<MemoryBuffer> [all …]
|
/external/llvm/examples/Kaleidoscope/Chapter7/ |
D | toy.cpp | 155 std::unique_ptr<ExprAST> Operand; 158 UnaryExprAST(char Opcode, std::unique_ptr<ExprAST> Operand) in UnaryExprAST() 166 std::unique_ptr<ExprAST> LHS, RHS; 169 BinaryExprAST(char Op, std::unique_ptr<ExprAST> LHS, in BinaryExprAST() 170 std::unique_ptr<ExprAST> RHS) in BinaryExprAST() 178 std::vector<std::unique_ptr<ExprAST>> Args; 182 std::vector<std::unique_ptr<ExprAST>> Args) in CallExprAST() 189 std::unique_ptr<ExprAST> Cond, Then, Else; 192 IfExprAST(std::unique_ptr<ExprAST> Cond, std::unique_ptr<ExprAST> Then, in IfExprAST() 193 std::unique_ptr<ExprAST> Else) in IfExprAST() [all …]
|
/external/llvm/examples/Kaleidoscope/Chapter6/ |
D | toy.cpp | 149 std::unique_ptr<ExprAST> Operand; 152 UnaryExprAST(char Opcode, std::unique_ptr<ExprAST> Operand) in UnaryExprAST() 160 std::unique_ptr<ExprAST> LHS, RHS; 163 BinaryExprAST(char Op, std::unique_ptr<ExprAST> LHS, in BinaryExprAST() 164 std::unique_ptr<ExprAST> RHS) in BinaryExprAST() 172 std::vector<std::unique_ptr<ExprAST>> Args; 176 std::vector<std::unique_ptr<ExprAST>> Args) in CallExprAST() 183 std::unique_ptr<ExprAST> Cond, Then, Else; 186 IfExprAST(std::unique_ptr<ExprAST> Cond, std::unique_ptr<ExprAST> Then, in IfExprAST() 187 std::unique_ptr<ExprAST> Else) in IfExprAST() [all …]
|
/external/pdfium/core/src/fxcodec/jbig2/ |
D | JBig2_SddProc.cpp | 42 std::unique_ptr<CJBig2_ArithIaidDecoder> IAID; in decode_Arith() 43 std::unique_ptr<CJBig2_SymbolDict> pDict; in decode_Arith() 44 std::unique_ptr<CJBig2_ArithIntDecoder> IADH(new CJBig2_ArithIntDecoder); in decode_Arith() 45 std::unique_ptr<CJBig2_ArithIntDecoder> IADW(new CJBig2_ArithIntDecoder); in decode_Arith() 46 std::unique_ptr<CJBig2_ArithIntDecoder> IAAI(new CJBig2_ArithIntDecoder); in decode_Arith() 47 std::unique_ptr<CJBig2_ArithIntDecoder> IARDX(new CJBig2_ArithIntDecoder); in decode_Arith() 48 std::unique_ptr<CJBig2_ArithIntDecoder> IARDY(new CJBig2_ArithIntDecoder); in decode_Arith() 49 std::unique_ptr<CJBig2_ArithIntDecoder> IAEX(new CJBig2_ArithIntDecoder); in decode_Arith() 50 std::unique_ptr<CJBig2_ArithIntDecoder> IADT(new CJBig2_ArithIntDecoder); in decode_Arith() 51 std::unique_ptr<CJBig2_ArithIntDecoder> IAFS(new CJBig2_ArithIntDecoder); in decode_Arith() [all …]
|
/external/llvm/examples/Kaleidoscope/Chapter3/ |
D | toy.cpp | 118 std::unique_ptr<ExprAST> LHS, RHS; 121 BinaryExprAST(char Op, std::unique_ptr<ExprAST> LHS, in BinaryExprAST() 122 std::unique_ptr<ExprAST> RHS) in BinaryExprAST() 130 std::vector<std::unique_ptr<ExprAST>> Args; 134 std::vector<std::unique_ptr<ExprAST>> Args) in CallExprAST() 155 std::unique_ptr<PrototypeAST> Proto; 156 std::unique_ptr<ExprAST> Body; 159 FunctionAST(std::unique_ptr<PrototypeAST> Proto, in FunctionAST() 160 std::unique_ptr<ExprAST> Body) in FunctionAST() 193 std::unique_ptr<ExprAST> Error(const char *Str) { in Error() [all …]
|
/external/llvm/include/llvm/Support/ |
D | MemoryBuffer.h | 71 static ErrorOr<std::unique_ptr<MemoryBuffer>> 78 static ErrorOr<std::unique_ptr<MemoryBuffer>> 88 static ErrorOr<std::unique_ptr<MemoryBuffer>> 94 static std::unique_ptr<MemoryBuffer> 98 static std::unique_ptr<MemoryBuffer> 103 static std::unique_ptr<MemoryBuffer> 109 static std::unique_ptr<MemoryBuffer> 115 static std::unique_ptr<MemoryBuffer> 119 static ErrorOr<std::unique_ptr<MemoryBuffer>> getSTDIN(); 123 static ErrorOr<std::unique_ptr<MemoryBuffer>> [all …]
|
/external/llvm/include/llvm/ProfileData/ |
D | SampleProfWriter.h | 60 static ErrorOr<std::unique_ptr<SampleProfileWriter>> 65 static ErrorOr<std::unique_ptr<SampleProfileWriter>> 66 create(std::unique_ptr<raw_ostream> &OS, SampleProfileFormat Format); 69 SampleProfileWriter(std::unique_ptr<raw_ostream> &OS) in SampleProfileWriter() 77 std::unique_ptr<raw_ostream> OutputStream; 86 SampleProfileWriterText(std::unique_ptr<raw_ostream> &OS) in SampleProfileWriterText() 100 friend ErrorOr<std::unique_ptr<SampleProfileWriter>> 101 SampleProfileWriter::create(std::unique_ptr<raw_ostream> &OS, 111 SampleProfileWriterBinary(std::unique_ptr<raw_ostream> &OS) in SampleProfileWriterBinary() 125 friend ErrorOr<std::unique_ptr<SampleProfileWriter>> [all …]
|