#include #include //stridx template concept HasStrIndex = requires(Type tp) { tp[std::string{}]; }; template auto value(Type &obj, std::string const &key) { return obj[key]; } int main() { std::map msd; value(msd, "hi"); } //=