std::meta::reflection_range
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
#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() {}
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/meta/reflection_range