Рассмотрим простой тип ключа, нечувствительный к регистру, который будет использоваться, например, с std::set или std:
Код: Выделить всё
// Represents case insensitive keys
struct CiKey : std::string {
using std::string::string;
using std::string::operator=;
bool operator
Подробнее здесь: [url]https://stackoverflow.com/questions/66497269/more-silent-behaviour-changes-with-c20-three-way-comparison[/url]
Мобильная версия