search for: longvector

Displaying 5 results from an estimated 5 matches for "longvector".

Did you mean: longvectors
2013 Apr 16
2
[LLVMdev] How to implement list in llvm
...:add (int pos, B elem) { > myList.insert(myList.begin()+pos, elem); > } > > Then, wherever you'll use this class, you should define for which class B > your class List should match (such as "List<int> intList;" or "List< > std::vector<long> > longVectors;"). > > -- > Cristianno Martins > > On Monday, 15 de April de 2013 at 07:13, B B wrote: > > Hi! > I want to implement a list (which operates like ArrayList in Java). > > I can use ArrayType from llvm, but at creation time I have to specify > size so there is a...
2013 Apr 15
0
[LLVMdev] How to implement list in llvm
...<class B> void List::add (int pos, B elem) { myList.insert(myList.begin()+pos, elem); } Then, wherever you'll use this class, you should define for which class B your class List should match (such as "List<int> intList;" or "List< std::vector<long> > longVectors;"). -- Cristianno Martins On Monday, 15 de April de 2013 at 07:13, B B wrote: > Hi! > I want to implement a list (which operates like ArrayList in Java). > > I can use ArrayType from llvm, but at creation time I have to specify > size so there is a problem when I want to...
2013 Apr 15
2
[LLVMdev] How to implement list in llvm
Hi! I want to implement a list (which operates like ArrayList in Java). I can use ArrayType from llvm, but at creation time I have to specify size so there is a problem when I want to extend it (I can reallocate it ofc). Moreover I need to implement all the operations (inserting, removing etc.) manually. I though that maybe I can use std::vector, but there is another problem - std::vector is a
2013 Apr 16
0
[LLVMdev] How to implement list in llvm
...s, B elem) { > > myList.insert(myList.begin()+pos, elem); > > } > > > > Then, wherever you'll use this class, you should define for which class B your class List should match (such as "List<int> intList;" or "List< std::vector<long> > longVectors;"). > > > > -- > > Cristianno Martins > > > > > > On Monday, 15 de April de 2013 at 07:13, B B wrote: > > > > > > > > > Hi! > > > I want to implement a list (which operates like ArrayList in Java). > > >...
2013 Apr 19
2
[LLVMdev] How to implement list in llvm
...:add (int pos, B elem) { > myList.insert(myList.begin()+pos, elem); > } > > Then, wherever you'll use this class, you should define for which class B > your class List should match (such as "List<int> intList;" or "List< > std::vector<long> > longVectors;"). > > -- > Cristianno Martins > > On Monday, 15 de April de 2013 at 07:13, B B wrote: > > Hi! > I want to implement a list (which operates like ArrayList in Java). > > I can use ArrayType from llvm, but at creation time I have to specify > size so there is a...