SpECTRE Documentation Coverage Report
Current view: top level - Utilities - GetOutput.hpp Hit Total Coverage
Commit: aabde07399ba7837e5db64eedfd0a21f31f96922 Lines: 1 2 50.0 %
Date: 2024-04-26 02:38:13
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