std::ostream &operator<<(std::ostream & os,constS & s) { os <<"("<< s.a <<","<< s.b <<")";returnos; } //typedef std::string T; typedefS T; intmain(){ std::size_tN =100; std::allocator<T> mem; T * data = mem.allocate(N); new(data)T[N](); for(std::size...
接受std::initializer_list<char>的构造函数只能用于从多个字符创建字符串,而不能从多个其他字符串创建...