Re: Вопрос про шаблоны класса
От: cupuyc.  
Дата: 19.03.13 13:06
Оценка:
сорри кусок с ошибкой вот этот:

template <class Predicate> 
class binary_negate 
    : public binary_function<Predicate::first_argument_type,
                 Predicate::second_argument_type, bool> {
protected:
    Predicate pred;
public:
    binary_negate(const Predicate& x) : pred(x) {}
    bool operator()(const first_argument_type& x, 
            const second_argument_type& y) const {
    return !pred(x, y); 
    }
};
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.