#include <leetcode.h>
|
void | assign (unsigned l, unsigned r, type val=false) |
|
bool | check (unsigned l, unsigned r) |
|
auto | split (unsigned pos) |
|
◆ type
◆ assign()
void leetcode::range_module::Chtholly::assign |
( |
unsigned | l, |
|
|
unsigned | r, |
|
|
type | val = false ) |
|
inline |
◆ check()
bool leetcode::range_module::Chtholly::check |
( |
unsigned | l, |
|
|
unsigned | r ) |
|
inline |
在文件 leetcode.h 第 3350 行定义.
3350 {
3351 const auto it =
split(r + 1);
3352 return std::all_of(
split(l), it, [](
auto &&n) {
return n.data; });
3353 }
引用了 split().
◆ split()
auto leetcode::range_module::Chtholly::split |
( |
unsigned | pos | ) |
|
|
inline |
在文件 leetcode.h 第 3334 行定义.
3334 {
3335 auto it =
s.lower_bound({pos});
3336 if(it !=
s.end() && it->l == pos)
3337 return it;
3338 auto [l, r, d]{*--it};
3340 s.emplace(l, pos - 1, d);
3341 return s.emplace(pos, r, d).first;
3342 }
引用了 s.
被这些函数引用 assign() , 以及 check().
set<Node> leetcode::range_module::Chtholly::s |
该类的文档由以下文件生成: