MCPcopy Create free account
hub / github.com/EricPengShuai/Interview / Myless

Class Myless

STL/functor.cpp:26–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24};
25template<typename T>
26class Myless
27{
28public:
29 bool operator()(T a, T b) { // 二元函数对象
30 return a < b;
31 }
32};
33
34template<typename T, typename Compare>
35bool compare(T a, T b, Compare comp)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected