rttrorg / rttr

C++ Reflection Library
https://www.rttr.org
MIT License
3.17k stars 439 forks source link

Reflecting container key and value types #258

Open Jasu opened 4 years ago

Jasu commented 4 years ago

Is it possible to reflect the contained key and value types of associative and sequential containers, given only the rttr::type of the container?

I don't see a way of doing that, apart from get_template_arguments, but I think that it is a no-go since the positions of key and value types depend on the underlying container type.

Edit. My goal is to recursively visit an rttr::type and find specific kinds of metadata.