MCPcopy Create free account
hub / github.com/RenderKit/embree / operator *

Method operator *

tutorials/external/catch.hpp:6820–6837  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6818 return m_iterators != other.m_iterators;
6819 }
6820 auto operator *() const -> std::string {
6821 std::string row, padding;
6822
6823 for (size_t i = 0; i < m_columns.size(); ++i) {
6824 auto width = m_columns[i].width();
6825 if (m_iterators[i] != m_columns[i].end()) {
6826 std::string col = *m_iterators[i];
6827 row += padding + col;
6828 if (col.size() < width)
6829 padding = std::string(width - col.size(), ' ');
6830 else
6831 padding = "";
6832 } else {
6833 padding += std::string(width, ' ');
6834 }
6835 }
6836 return row;
6837 }
6838 auto operator ++() -> iterator& {
6839 for (size_t i = 0; i < m_columns.size(); ++i) {
6840 if (m_iterators[i] != m_columns[i].end())

Callers

nothing calls this directly

Calls 3

widthMethod · 0.80
sizeMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected