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

Function mybind1st

C++2.0/bind_function.cpp:70–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68// 自定义绑定器,返回类型是一个函数模板,重载 operator()
69template<typename Compare, typename T>
70_mybind1st<Compare, T> mybind1st(Compare comp, const T &val)
71{
72 // 直接使用函数模板好处就是可以直接进行类型的推演
73 return _mybind1st<Compare, T>(comp, val);
74}
75
76// find_if 函数模板
77template<typename Iterator, typename Compare>

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected