commit c25a9485ce985c6d4fc75be1c3957736ec076657
parent 5d796ce5231b43eb6c06778a3e6073c7d67c53aa
Author: André Bargull <andre.bargull@gmail.com>
Date: Thu, 11 Dec 2025 14:29:20 +0000
Bug 2005488: Add make_pair, in_range, and to_array to std.py. r=sergesanspaille
Adds:
- C++11: `std::make_pair` from `<utility>`
- C++20: `std::in_range` from `<utility>` and `std::to_array` from `<array>`
Differential Revision: https://phabricator.services.mozilla.com/D275966
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/tools/lint/includes/std.py b/tools/lint/includes/std.py
@@ -101,6 +101,7 @@ api = {
],
"array": [
"array",
+ "to_array",
"size",
],
"map": [
@@ -231,6 +232,8 @@ api = {
"as_const",
"declval",
"cmp_equal",
+ "in_range",
+ "make_pair",
"pair",
"tuple_size",
"get",