Home | History | Annotate | Download | only in base

Lines Matching refs:BinaryOp

388 template<typename Pair, typename BinaryOp>
390 : public std::binary_function<Pair, Pair, typename BinaryOp::result_type> {
395 BinaryOperateOnFirst(const BinaryOp& f) : f_(f) {
398 typename BinaryOp::result_type operator()(const Pair& p1,
404 BinaryOp f_;
407 template<typename Pair, typename BinaryOp>
408 BinaryOperateOnFirst<Pair, BinaryOp> BinaryOperate1st(const BinaryOp& f) {
409 return BinaryOperateOnFirst<Pair, BinaryOp>(f);
412 template<typename Pair, typename BinaryOp>
414 : public std::binary_function<Pair, Pair, typename BinaryOp::result_type> {
419 BinaryOperateOnSecond(const BinaryOp& f) : f_(f) {
422 typename BinaryOp::result_type operator()(const Pair& p1,
428 BinaryOp f_;
431 template<typename Pair, typename BinaryOp>
432 BinaryOperateOnSecond<Pair, BinaryOp> BinaryOperate2nd(const BinaryOp& f) {
433 return BinaryOperateOnSecond<Pair, BinaryOp>(f);