template<typename T>
struct kumi::is_container< T >
Traits detecting types behaving like a kumi::container.
To be treated like a container, a user defined type must expose a type and a statically know size encoded in the type. It shall also provide general container utilities.
- Note
- The type shall be templated on the type and the size to be picked up.
Helper value
Traits detecting types behaving like a kumi::container.
Definition traits.hpp:195
Example:
#include <kumi/kumi.hpp>
#include <iostream>
#include <array>
#include <span>
#include <vector>
int main()
{
auto data = std::array{1,2,3,4,5,6,7,8,9,10};
std::cout << "\n";
auto my_span = std::span(data);
}
Concept specifying a type follows the Product Type semantic.
Definition concepts.hpp:87
Concept specifying a type follows the Container Type semantic.
Definition concepts.hpp:134