|
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.
|
Concept verifying that a container C can collect elements from a range R via incremental insertion.
More...
#include <jh/conceptual/collectable_container.h>
Concept verifying that a container C can collect elements from a range R via incremental insertion.
This concept represents the compile-time contract that a container type C supports an insertion form compatible with the semantics of jh::ranges::collect. Unlike closable_container_for, which checks for complete constructibility, this concept checks for valid incremental collection semantics (e.g. push_back, emplace, etc.).
R must model std::ranges::input_range. detail::compute_collectable_status<C, R> must not return none. | C | container type to check |
| R | range type providing input |