#include <LineFormatter.h>
Definition at line 14 of file LineFormatter.h.
◆ LineFormatter()
| LineFormatter::LineFormatter |
( |
std::size_t | perline | ) |
|
|
inline |
◆ operator()()
template<typename T>
| std::string LineFormatter::operator() |
( |
const std::vector< T > & | v | ) |
|
|
inline |
Definition at line 19 of file LineFormatter.h.
19 {
21 std::size_t linecount{0};
22 std::ostringstream oss{"", std::ios::ate};
23 oss << linecount << '|' << " ";
24 for (const auto& e : v){
28 oss << '\n'<<linecount<< '|' << " ";
29 }
32 }
33
34 return oss.str();
35 }
int count(std::string s, const std::string ®x)
count how many occurances of a regx are in a string
◆ m_perline
| std::size_t LineFormatter::m_perline |
|
private |
The documentation for this class was generated from the following file: