SpECTRE Documentation Coverage Report
Current view: top level - Utilities - GetOutput.hpp Hit Total Coverage
Commit: 817e13c5144619b701c7cd870655d8dbf94ab8ce Lines: 1 2 50.0 %
Date: 2024-07-19 22:17:05
Legend: Lines: hit not hit

          Line data    Source code
       1           0 : // Distributed under the MIT License.
       2             : // See LICENSE.txt for details.
       3             : 
       4             : #pragma once
       5             : 
       6             : #include <sstream>
       7             : #include <string>
       8             : 
       9             : /*!
      10             :  * \ingroup UtilitiesGroup
      11             :  * \brief Get the streamed output of `t` as a `std::string`
      12             :  */
      13             : template <typename T>
      14           1 : std::string get_output(const T& t) {
      15             :   std::ostringstream os;
      16             :   os << t;
      17             :   return os.str();
      18             : }

Generated by: LCOV version 1.14