substr -- basic_stringをconstexprに対応 #688

1 · cpprefjp · Oct. 6, 2022, 10:33 a.m.
diff --git a/reference/string/basic_string/substr.md b/reference/string/basic_string/substr.md index 304678e87..0e0d9c152 100644 --- a/reference/string/basic_string/substr.md +++ b/reference/string/basic_string/substr.md @@ -5,7 +5,12 @@ * function[meta id-type] ```cpp -basic_string substr(size_type pos = 0, size_type n = npos) const; +basic_string + substr(size_type pos = 0, + size_type n = npos) const; // (1) C++03 +constexpr basic_string + substr(size_type pos = 0, + siz...