algo — C++23 日本語リファレンス GitHub

is_nested

関数 · 区間演算

// (1)
template <std::integral T>
bool is_nested(T l1, T r1, T l2, T r2);

// (2)
template <std::integral T>
bool is_nested(std::pair<T, T> a, std::pair<T, T> b);

概要

2つの半開区間が入れ子(一方が他方を包含する)であれば true を返す

計算量

関連項目