std::unary_function
and std::binary_function
were depreacated in c++11. I have two doubts.
- Does
std::unary_function
or std::binary_function
come into play only if function is explicitly derived from them. like this:
struct derivedsmthing: std::unary_function<smthing> ?
- if not, i.e. some functions will get impacted even if it's not explicitly derived from these two? what are those functions?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…