Fix STL wrappers to not generate <: digraphs.
For example std::vector<::X::Y> was sometimes generated, now corrected to std::vector< ::X::Y >.
This commit is contained in:
parent
625a405b8e
commit
6b4e57245d
33 changed files with 339 additions and 303 deletions
|
|
@ -35,11 +35,11 @@
|
|||
|
||||
deque();
|
||||
deque(unsigned int size, const T& value=T());
|
||||
deque(const deque<T> &);
|
||||
deque(const deque< T > &);
|
||||
~deque();
|
||||
|
||||
void assign(unsigned int n, const T& value);
|
||||
void swap(deque<T> &x);
|
||||
void swap(deque< T > &x);
|
||||
unsigned int size() const;
|
||||
unsigned int max_size() const;
|
||||
void resize(unsigned int n, T c = T());
|
||||
|
|
@ -78,17 +78,17 @@
|
|||
throw std::out_of_range("deque index out of range");
|
||||
}
|
||||
}
|
||||
std::deque<T> getslice(int i, int j) {
|
||||
std::deque< T > getslice(int i, int j) {
|
||||
int size = int(self->size());
|
||||
if (i<0) i = size+i;
|
||||
if (j<0) j = size+j;
|
||||
if (i<0) i = 0;
|
||||
if (j>size) j = size;
|
||||
std::deque<T > tmp(j-i);
|
||||
std::deque< T > tmp(j-i);
|
||||
std::copy(self->begin()+i,self->begin()+j,tmp.begin());
|
||||
return tmp;
|
||||
}
|
||||
void setslice(int i, int j, const std::deque<T>& v) {
|
||||
void setslice(int i, int j, const std::deque< T >& v) {
|
||||
int size = int(self->size());
|
||||
if (i<0) i = size+i;
|
||||
if (j<0) j = size+j;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue