19 std::string
str()
const;
34 template <
size_t... Ints>
41 template <
class Sequence1,
class Sequence2>
44 template <
size_t... I1,
size_t... I2>
50 typename make_index_sequence<N - N / 2>::type> {};
std::string str() const
return the string
static constexpr std::size_t size() noexcept
~RedirectCout()
destructor – redirect stdout buffer to its original buffer
std::streambuf * coutBuffer_
std::stringstream ssBuffer_
RedirectCout()
constructor – redirect stdout buffer to a stringstream buffer