mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
missing files
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
e0ac5bd585
commit
905cf08e5d
2 changed files with 56 additions and 0 deletions
21
src/util/sstream.h
Normal file
21
src/util/sstream.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
|
||||
|
||||
/*
|
||||
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
|
||||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
|
||||
Author: Leonardo de Moura
|
||||
*/
|
||||
#pragma once
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
|
||||
namespace lean {
|
||||
/** \brief Wrapper for std::ostringstream */
|
||||
class sstream {
|
||||
std::ostringstream m_strm;
|
||||
public:
|
||||
std::string str() const { return m_strm.str(); }
|
||||
template<typename T> sstream & operator<<(T const & t) { m_strm << t; return *this; }
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue