From 8d8ceb04561135642091648d86d88fb38545c53a Mon Sep 17 00:00:00 2001 From: Myles Busig Date: Thu, 7 Mar 2024 16:09:32 -0700 Subject: [PATCH] Document istring::insert --- include/mtl/string.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/mtl/string.hpp b/include/mtl/string.hpp index b4ba97e..f6cd944 100644 --- a/include/mtl/string.hpp +++ b/include/mtl/string.hpp @@ -107,7 +107,11 @@ public: void clear(); - // Insert from self only works if index is after input range + /** + * \brief Insert a string at the given index + * + * Inserting a substring of the destination string is not supported. + */ istring& insert(size_t index, const istring& str); istring& insert(size_t index, const istring& str, size_t s_index, size_t count = npos); istring& insert(size_t index, const string_view& str);