mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-31 11:42:28 +00:00 
			
		
		
		
	na
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									785c9a18ca
								
							
						
					
					
						commit
						9ea1cf3c5c
					
				
					 8 changed files with 497 additions and 4 deletions
				
			
		|  | @ -33,6 +33,7 @@ public: | |||
|     void pop_back() { SASSERT(!empty()); set(size()-1, nullptr); m_vector.pop_back(); } | ||||
|     T * back() const { return m_vector.back(); } | ||||
|     T * operator[](unsigned idx) const { return m_vector[idx]; } | ||||
|     T * get(unsigned idx, T* d = nullptr) const { return (0 <= idx && idx < m_vector.size()) ? (*this)[idx] : d; } | ||||
|     void set(unsigned idx, T * ptr) {  | ||||
|         if (m_vector[idx] == ptr)  | ||||
|             return;  | ||||
|  | @ -52,6 +53,11 @@ public: | |||
|                 push_back(nullptr); | ||||
|         } | ||||
|     } | ||||
|     void reserve(unsigned sz) { | ||||
|         if (sz >= m_vector.size()) | ||||
|             resize(sz); | ||||
|     } | ||||
| 
 | ||||
|     //!< swap last element with given pointer
 | ||||
|     void swap_back(scoped_ptr<T> & ptr) { | ||||
|         SASSERT(!empty()); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue