Copyright Matus Chochlik. Distributed under the Boost Software License, Version 1.0. See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
#include <iostream>
auto main() -> int {
using std::cout;
auto fn1 =
for(int i = 0; i < 20; ++i) {
fn1(i);
}
cout << std::endl;
[](
string_view s) { cout << s; }, []() { cout <<
"}{"; });
cout << '{';
{v("January"),
v("February"),
v("March"),
v("April"),
v("May"),
v("June"),
v("July"),
v("August"),
v("September"),
v("October"),
v("November"),
v("December")})) {
fn2(name);
}
cout << '}' << std::endl;
return 0;
}
basic_string_span< const char > string_view
Alias for const string views.
Definition: string_span.hpp:116
Common code is placed in this namespace.
Definition: eagine.hpp:21
static constexpr auto view(T *addr, S size) noexcept -> const_span< T >
Creates a view starting at the specified pointer and specified length.
Definition: span.hpp:458
Callable class that interleaves calls to a function with a separator function.
Definition: interleaved_call.hpp:20