Why does std::map code compile when operator < is not defined for its data type?

后端 未结 0 1904
醉梦人生
醉梦人生 2020-11-29 11:21

I\'ve learned that passing a user-defined type to a std::map (as well as many other STL data structures) requires the definition of the operator <

相关标签:
回答
  • 消灭零回复
提交回复
热议问题