KUMI v3.1.0
Exquisite Epidote
Loading...
Searching...
No Matches
kumi::concepts::container Concept Reference

Concept specifying a type follows the Container Type semantic. More...

#include <kumi/utils/concepts.hpp>

Detailed Description

Concept specifying a type follows the Container Type semantic.

A type T models kumi::concepts::static_container if it is an homogeneous container of fixed size exposing size(), begin(), end() and data() member functions as well as value_type and size_type aliases.

Example types:

  • std::span<T,N>/std::span<T>
  • std::vector<T>;

Concept definition

template<typename T>
concept container = is_container_v<std::remove_cvref_t<T>>
Concept specifying a type follows the Container Type semantic.
Definition concepts.hpp:120