// '()' is public by default!struct mycompare : public std::binary_function<int, int, bool>{bool operator()(int first, int second){ return first < second; }};
class mycompare : public std::binary_function<int, int, bool>{public:bool operator()(int first, int second){ return first < second; }};
// C access Header to a C++ library#ifdef __cppextern "C" {#endif
// Put your C struct's herestruct foo{...};// NOTE: the typedef is used because C does not automatically generate// a typedef with the same name as a struct like C++.typedef struct foo foo;
// Put your C API functions herevoid bar(foo *fun);
#ifdef __cpp}#endif