problemscpp
A collection of my answers to algorithm problems in c++.
Public 成员函数 | 所有成员列表
acwing::acwing149::Compare结构体 参考

#include <acwing408.h>

Public 成员函数

bool operator() (huff_tree *const &a, huff_tree *const &b)
 

详细描述

在文件 acwing408.h112 行定义.

成员函数说明

◆ operator()()

bool acwing::acwing149::Compare::operator() ( huff_tree *const &  a,
huff_tree *const &  b 
)

在文件 acwing408.cpp529 行定义.

529 {
530 if(a->val != b->val)
531 return a->val > b->val;
532 else
533 return a->height > b->height;
534 }

引用了 acwing::acwing149::huff_tree::height , 以及 acwing::acwing149::huff_tree::val.


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