problemscpp
A collection of my answers to algorithm problems in c++.
Public 成员函数 | Public 属性 | 所有成员列表
leetcode::find_k_pairs_with_smallest_sums::pair结构体 参考

#include <leetcode.h>

Public 成员函数

 pair (int u, int v)
 
bool operator< (const pair &) const
 

Public 属性

int u
 
int v
 

详细描述

在文件 leetcode.h421 行定义.

构造及析构函数说明

◆ pair()

leetcode::find_k_pairs_with_smallest_sums::pair::pair ( int  u,
int  v 
)
inline

成员函数说明

◆ operator<()

bool leetcode::find_k_pairs_with_smallest_sums::pair::operator< ( const pair p) const

在文件 leetcode.cpp996 行定义.

996{ return this->u + this->v > p.u + p.v; }

引用了 u , 以及 v.

类成员变量说明

◆ u

int leetcode::find_k_pairs_with_smallest_sums::pair::u

在文件 leetcode.h422 行定义.

被这些函数引用 leetcode::find_k_pairs_with_smallest_sums::Solution::kSmallestPairs() , 以及 operator<().

◆ v

int leetcode::find_k_pairs_with_smallest_sums::pair::v

在文件 leetcode.h423 行定义.

被这些函数引用 leetcode::find_k_pairs_with_smallest_sums::Solution::kSmallestPairs() , 以及 operator<().


该结构体的文档由以下文件生成: