Skip to content

Commit

Permalink
fix docs for multi_stream_writer
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveBronder committed Dec 18, 2024
2 parents 298761e + 0e48078 commit ae3740c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/stan/callbacks/multi_writer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,17 @@ class multi_writer {
*/
template <typename T>
void operator()(T&& x) {
stan::math::for_each([&](auto&& output) {
output(x);
}, output_);
stan::math::for_each([&](auto&& output) { output(x); }, output_);
}
void operator()() {
stan::math::for_each([](auto&& output) {
output();
}, output_);
stan::math::for_each([](auto&& output) { output(); }, output_);
}

/**
* Get the underlying stream
*/
inline auto& get_stream() noexcept { return output_; }


private:
/**
* Output stream
Expand Down

0 comments on commit ae3740c

Please sign in to comment.