mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 04:03:39 +00:00
Merge pull request #1884 from janisozaur/const-ret
Remove superfluous const from returned types
This commit is contained in:
commit
40ea00be4b
|
@ -156,9 +156,9 @@ namespace smt {
|
||||||
row_entry & operator[](unsigned idx) { return m_entries[idx]; }
|
row_entry & operator[](unsigned idx) { return m_entries[idx]; }
|
||||||
row_entry const & operator[](unsigned idx) const { return m_entries[idx]; }
|
row_entry const & operator[](unsigned idx) const { return m_entries[idx]; }
|
||||||
typename vector<row_entry>::iterator begin_entries() { return m_entries.begin(); }
|
typename vector<row_entry>::iterator begin_entries() { return m_entries.begin(); }
|
||||||
const typename vector<row_entry>::const_iterator begin_entries() const { return m_entries.begin(); }
|
typename vector<row_entry>::const_iterator begin_entries() const { return m_entries.begin(); }
|
||||||
typename vector<row_entry>::iterator end_entries() { return m_entries.end(); }
|
typename vector<row_entry>::iterator end_entries() { return m_entries.end(); }
|
||||||
const typename vector<row_entry>::const_iterator end_entries() const { return m_entries.end(); }
|
typename vector<row_entry>::const_iterator end_entries() const { return m_entries.end(); }
|
||||||
row_entry & add_row_entry(int & pos_idx);
|
row_entry & add_row_entry(int & pos_idx);
|
||||||
void del_row_entry(unsigned idx);
|
void del_row_entry(unsigned idx);
|
||||||
void compress(vector<column> & cols);
|
void compress(vector<column> & cols);
|
||||||
|
@ -195,9 +195,9 @@ namespace smt {
|
||||||
col_entry & operator[](unsigned idx) { return m_entries[idx]; }
|
col_entry & operator[](unsigned idx) { return m_entries[idx]; }
|
||||||
col_entry const & operator[](unsigned idx) const { return m_entries[idx]; }
|
col_entry const & operator[](unsigned idx) const { return m_entries[idx]; }
|
||||||
typename svector<col_entry>::iterator begin_entries() { return m_entries.begin(); }
|
typename svector<col_entry>::iterator begin_entries() { return m_entries.begin(); }
|
||||||
const typename svector<col_entry>::const_iterator begin_entries() const { return m_entries.begin(); }
|
typename svector<col_entry>::const_iterator begin_entries() const { return m_entries.begin(); }
|
||||||
typename svector<col_entry>::iterator end_entries() { return m_entries.end(); }
|
typename svector<col_entry>::iterator end_entries() { return m_entries.end(); }
|
||||||
const typename svector<col_entry>::const_iterator end_entries() const { return m_entries.end(); }
|
typename svector<col_entry>::const_iterator end_entries() const { return m_entries.end(); }
|
||||||
col_entry & add_col_entry(int & pos_idx);
|
col_entry & add_col_entry(int & pos_idx);
|
||||||
void del_col_entry(unsigned idx);
|
void del_col_entry(unsigned idx);
|
||||||
};
|
};
|
||||||
|
|
|
@ -93,7 +93,7 @@ public:
|
||||||
unsigned m_row;
|
unsigned m_row;
|
||||||
public:
|
public:
|
||||||
ref_row(const static_matrix & m, unsigned row): m_matrix(m), m_row(row) {}
|
ref_row(const static_matrix & m, unsigned row): m_matrix(m), m_row(row) {}
|
||||||
const T operator[](unsigned col) const { return m_matrix.get_elem(m_row, col); }
|
T operator[](unsigned col) const { return m_matrix.get_elem(m_row, col); }
|
||||||
};
|
};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in a new issue