std::meta::reflection_range
From cppreference.com
| Defined in header <meta>
|
||
template< class T >
concept reflection_range =
ranges::input_range<T> &&
std::same_as<ranges::range_value_t<T>, std::meta::info> &&
std::same_as<std::remove_cvref_t<ranges::range_reference_t<T>>, std::meta::info>;
|
(since C++26) | |
The reflection_range concept defines the requirements of a type that represents a sequence of reflection values and can be passed to reflection functions.
Example
Can be previewed on Compiler Explorer.
Run this code
#include <meta>
#include <span>
#include <vector>
static_assert(std::meta::reflection_range<std::vector<std::meta::info>>);
static_assert(std::meta::reflection_range<std::span<const std::meta::info>>);
static_assert(std::meta::reflection_range<std::initializer_list<std::meta::info>>);
int main() {}