Modernes C++ programmieren

Okt 23, 2024

lst-0831-godb.cpp

//#(compile) c++; compiler:g132; options:"-std=c++23"; libs:-
// https://godbolt.org/z/j9ozax8qE 
#include <ranges> // zip_transform
// 
auto res = std::views::zip_transform(f, a, b);  // Range-Adapter
for(auto s: res) { std::cout << s << " "; };
std::cout << '\n';        // Ausgabe: N1 C7 C0 -1