Lines Matching refs:UnaryOp
342 template<typename Pair, typename UnaryOp>
344 : public std::unary_function<Pair, typename UnaryOp::result_type> {
349 UnaryOperateOnFirst(const UnaryOp& f) : f_(f) {
352 typename UnaryOp::result_type operator()(const Pair& p) const {
357 UnaryOp f_;
360 template<typename Pair, typename UnaryOp>
361 UnaryOperateOnFirst<Pair, UnaryOp> UnaryOperate1st(const UnaryOp& f) {
362 return UnaryOperateOnFirst<Pair, UnaryOp>(f);
365 template<typename Pair, typename UnaryOp>
367 : public std::unary_function<Pair, typename UnaryOp::result_type> {
372 UnaryOperateOnSecond(const UnaryOp& f) : f_(f) {
375 typename UnaryOp::result_type operator()(const Pair& p) const {
380 UnaryOp f_;
383 template<typename Pair, typename UnaryOp>
384 UnaryOperateOnSecond<Pair, UnaryOp> UnaryOperate2nd(const UnaryOp& f) {
385 return UnaryOperateOnSecond<Pair, UnaryOp>(f);