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

#include <pat.h>

Public 成员函数

bool operator< (const Person &p) const
 

Public 属性

int height {}
 
string name
 

详细描述

在文件 pat.h333 行定义.

成员函数说明

◆ operator<()

bool pat::b::b1055::Person::operator< ( const Person p) const

在文件 pat.cpp1958 行定义.

1958 {
1959 if(this->height < p.height) {
1960 return true;
1961 }
1962 if(this->height > p.height) {
1963 return false;
1964 }
1965 return this->name > p.name;
1966 }

引用了 height , 以及 name.

类成员变量说明

◆ height

int pat::b::b1055::Person::height {}

在文件 pat.h335 行定义.

被这些函数引用 operator<().

◆ name

string pat::b::b1055::Person::name

在文件 pat.h334 行定义.

被这些函数引用 operator<().


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