Common System 0.2.0
Common interfaces and patterns for system integration
Loading...
Searching...
No Matches
kcenon::common::concepts::SequenceContainer Concept Referenceexport

A container that provides sequential access and modification. More...

#include <container.h>

Concept definition

template<typename T>
concept kcenon::common::concepts::SequenceContainer = Container<T> && requires(T t, typename T::value_type v) {
{ t.push_back(v) };
{ t.front() } -> std::same_as<typename T::value_type&>;
{ t.back() } -> std::same_as<typename T::value_type&>;
}
A type that satisfies basic container requirements.
Definition container.h:48
A container that provides sequential access and modification.
Definition container.h:73

Detailed Description

A container that provides sequential access and modification.

Sequential container requirements.

Sequence containers support push_back, pop_back, and front/back access.

Example usage:

template<SequenceContainer C>
void append(C& container, typename C::value_type value) {
container.push_back(std::move(value));
}

Definition at line 73 of file container.h.