From 335255c0ff33f2bbc7451bd8c3165f09c1dca13e Mon Sep 17 00:00:00 2001 From: Krystian Stasiowski Date: Fri, 1 Nov 2019 00:10:08 -0400 Subject: [PATCH] Added substr docs --- include/boost/fixed_string/fixed_string.hpp | 4 ++++ 1 file changed, 4 insertions(+) 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,