JH-Toolkit v1.4.1
An engineering-oriented C++20 toolkit with duck-typed concepts, static design, async coroutines, and semantic containers — header-only, RTTI-free, and concurrency-friendly.
Loading...
Searching...
No Matches
adapt.h File Reference

Range adaptor promoting jh::concepts::sequence to std::ranges::range. More...

Go to the source code of this file.

Namespaces

namespace  jh::ranges
 Semantic pipeline namespace for JH range operations.

Variables

constexpr detail::adapt_fn jh::ranges::adapt {}
 The user-facing adapt adaptor.

Detailed Description

Range adaptor promoting jh::concepts::sequence to std::ranges::range.

Author
JeongHan-Bae mastr.nosp@m.opse.nosp@m.udo@g.nosp@m.mail.nosp@m..com

The jh::ranges::adapt adaptor provides a unified interface to convert any jh::concepts::sequence-compatible object into a valid std::ranges::viewable_range.

It is a pipeline-friendly wrapper around jh::to_range(), providing both direct and pipe usage forms:

using namespace jh::ranges;
auto r1 = adapt(seq); // direct
auto r2 = seq | adapt(); // pipe
Semantic pipeline namespace for JH range operations.
Definition sequence.h:156
constexpr detail::adapt_fn adapt
The user-facing adapt adaptor.
Definition adapt.h:169
Version
1.3.x
Date
2025