Libmagicxx v10.0.3
A modern C++23 wrapper for libmagic — the library that powers the Unix file command.
Loading...
Searching...
No Matches
Recognition::Utility::RangeContainer Concept Reference

Concept for types that are ranges with an accessible value_type. More...

#include <utility.hpp>

Concept definition

template<typename ContainerT>
concept Recognition::Utility::RangeContainer = std::ranges::range<ContainerT>
&& requires(ContainerT c) {
typename ContainerT::value_type;
}
Concept for types that are ranges with an accessible value_type.
Definition utility.hpp:127

Detailed Description

Concept for types that are ranges with an accessible value_type.

A type satisfies RangeContainer if:

  • It satisfies std::ranges::range
  • It has a nested value_type type alias
Template Parameters
ContainerTThe container type to check.

Example Types

Types that satisfy this concept:

  • std::vector<T>
  • std::list<T>
  • std::set<T>
  • std::array<T, N>
Since
10.0.0