仅提供English版本
C++ operator not found which takes a left operand of type 'const _Ty'
When using the count(const) algorithm in STL, an error operator not found which takes a left operand of type 'const _Ty' occurred.
The reason is that the custom doubly linked list class did not overload the left operator ==. Adding the overload operation fixes it.
Author: Broccoli
Copyright Notice: All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.
Related Articles
2022-06-10
C++ 检测程序是否在运行
2020-06-14
C++ Primer & PrimerPlus Notes
2021-08-06
Issue with C++ remove_if causing data duplication
2020-12-02
C++ Get all files in a folder and rename to Hex

2020-12-31
C++ Virtual Inheritance

2021-05-09
Use C++ for Revit Secondary Development