48 #ifndef GOOGLETEST_INCLUDE_GTEST_GTEST_MESSAGE_H_ 49 #define GOOGLETEST_INCLUDE_GTEST_GTEST_MESSAGE_H_ 64 void operator<<(const
testing::internal::Secret&,
int);
98 typedef std::ostream& (*BasicNarrowIoManip)(std::ostream&);
110 explicit Message(
const char* str) : ss_(new ::
std::stringstream) {
115 template <
typename T>
149 template <
typename T>
151 if (pointer ==
nullptr) {
178 #if GTEST_HAS_STD_WSTRING 182 #endif // GTEST_HAS_STD_WSTRING 188 std::string GetString()
const;
192 const std::unique_ptr< ::std::stringstream> ss_;
196 void operator=(
const Message&);
210 template <
typename T>
212 return (
Message() << streamable).GetString();
220 #endif // GOOGLETEST_INCLUDE_GTEST_GTEST_MESSAGE_H_
#define GTEST_DISABLE_MSC_WARNINGS_POP_()
Message & operator<<(const T &val)
std::ostream & operator<<(std::ostream &os, const Message &sb)
Message(const Message &msg)
std::string StreamableToString(const T &streamable)
#define GTEST_DISABLE_MSC_WARNINGS_PUSH_(warnings)
Message & operator<<(BasicNarrowIoManip val)
std::string GetString() const
Message & operator<<(T *const &pointer)
Message & operator<<(bool b)