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
Run this code
#include <meta>
#include <span>
#include <vector>
static_assert(
not std::meta::reflection_range<std::meta::info> and
std::meta::reflection_range<std::vector<std::meta::info>> and
std::meta::reflection_range<std::span<const std::meta::info>> and
std::meta::reflection_range<std::initializer_list<std::meta::info>>
);
int main() {}
See also
(C++26) |
checks if reflection represents a concept (function) |
(C++26) |
the type of reflection values (typedef) |