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
jh::concepts::collectable_container_for Concept Reference

Concept verifying that a container C can collect elements from a range R via incremental insertion. More...

#include <jh/conceptual/collectable_container.h>

Concept definition

template<typename C, typename R>
std::ranges::input_range<R> &&
detail::collectable_container_for_impl<C, R>::value
Concept verifying that a container C can collect elements from a range R via incremental insertion.
Definition collectable_container.h:317

Detailed Description

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.).

Requirements

  • R must model std::ranges::input_range.
  • detail::compute_collectable_status<C, R> must not return none.
Template Parameters
Ccontainer type to check
Rrange type providing input