HepMC3 event record library
|
#include <iostream.h>
Public Member Functions | |
scoped_estream_redirect (std::ostream &costream=std::cerr, object pyostream=module_::import("sys").attr("stderr")) | |
Protected Attributes | |
std::streambuf * | old |
std::ostream & | costream |
detail::pythonbuf | buffer |
\rst Like `scoped_ostream_redirect`, but redirects cerr by default. This class is provided primary to make ``py::call_guard`` easier to make. .. code-block:: cpp m.def("noisy_func", &noisy_func, py::call_guard<scoped_ostream_redirect, scoped_estream_redirect>());
Definition at line 145 of file iostream.h.