API
Catch::ReusableStringStream Class Reference

#include <catch.hpp>

Inheritance diagram for Catch::ReusableStringStream:
Inheritance graph
Collaboration diagram for Catch::ReusableStringStream:
Collaboration graph

Public Member Functions

 ReusableStringStream ()
 
 ~ReusableStringStream ()
 
auto str () const -> std::string
 
template<typename T >
auto operator<< (T const &value) -> ReusableStringStream &
 
auto get () -> std::ostream &
 

Private Attributes

std::size_t m_index
 
std::ostream * m_oss
 

Detailed Description

Definition at line 1440 of file catch.hpp.

Constructor & Destructor Documentation

◆ ReusableStringStream()

Catch::ReusableStringStream::ReusableStringStream ( )

◆ ~ReusableStringStream()

Catch::ReusableStringStream::~ReusableStringStream ( )

Member Function Documentation

◆ get()

auto Catch::ReusableStringStream::get ( ) -> std::ostream&
inline

Definition at line 1454 of file catch.hpp.

◆ operator<<()

template<typename T >
auto Catch::ReusableStringStream::operator<< ( T const &  value) -> ReusableStringStream&
inline

Definition at line 1450 of file catch.hpp.

◆ str()

auto Catch::ReusableStringStream::str ( ) const -> std::string

Member Data Documentation

◆ m_index

std::size_t Catch::ReusableStringStream::m_index
private

Definition at line 1441 of file catch.hpp.

◆ m_oss

std::ostream* Catch::ReusableStringStream::m_oss
private

Definition at line 1442 of file catch.hpp.

Referenced by get(), and operator<<().


The documentation for this class was generated from the following file: