MCPcopy Create free account
hub / github.com/Extra-Creativity/Modern-Cpp-Basics / FormatLine

Function FormatLine

13-Multithreading/code/barrier_example.cpp:7–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <print>
6
7auto FormatLine(auto&& view)
8{
9 return view | std::views::transform([](auto num) {
10 return std::format("{}", num);
11 }) | std::views::join_with('\t')
12 | std::ranges::to<std::string>();
13}
14
15std::vector<int> results(9);
16std::barrier barrier{ 9, []() noexcept {

Callers 2

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected