4 ms·
std::array<char, 26> foo{}; foo.data(); // <- returns a pointer to foo's data inheriting it's type. so we get *char here std::string would work in a similar wa
by bierjunge 5y ago
std::array<char, 26> foo{};
foo.data(); // <- returns a pointer to foo's data inheriting it's type. so we get *char here
std::string would work in a similar way, except it would be `const`