mirror of
https://github.com/Z3Prover/z3
synced 2025-06-13 17:36:15 +00:00
add to_string method to make it easier to use without <<
This commit is contained in:
parent
7ce4be8455
commit
0c53c139da
2 changed files with 2 additions and 0 deletions
|
@ -599,6 +599,7 @@ namespace z3 {
|
|||
iterator begin() const noexcept { return iterator(this, 0); }
|
||||
iterator end() const { return iterator(this, size()); }
|
||||
friend std::ostream & operator<<(std::ostream & out, ast_vector_tpl const & v) { out << Z3_ast_vector_to_string(v.ctx(), v); return out; }
|
||||
std::string to_string() const { return std::string(Z3_ast_vector_to_string(ctx(), m_vector); }
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue