diff --git a/include/boost/fixed_string/fixed_string.hpp b/include/boost/fixed_string/fixed_string.hpp index 45d2e6b..b38fb7f 100644 --- a/include/boost/fixed_string/fixed_string.hpp +++ b/include/boost/fixed_string/fixed_string.hpp @@ -1241,6 +1241,10 @@ public: string_view_type(t).substr(pos2, count2)); } + /** Returns a substring `[pos, pos + count)`. If the requested substring is greater than the size of the string, the returned substring is [pos, size()). + + @throw std::out_of_range if `pos > size()` + */ string_view_type substr( size_type pos = 0,