Search code examples
Is it safe to use the std::string::c_str() of a temporary string?...


c++stllanguage-lawyerstdstringtemporary-objects

Read More
Unexpected result when storing c_str() of temporary std::string in a variable...


c++pointersmemory-managementstdstringtemporary-objects

Read More
Why std::locale doesn't work with std::u32string?...


c++localestdstring

Read More
How to store either std::string or std::string_view in a std::variant?...


c++c++20stdstringstring-viewstd-variant

Read More
split a string by a vector of strings...


c++stdvectorstdstring

Read More
Weird behavior with std::string reference class member...


c++pass-by-referencestdstringpass-by-valuepass-by-const-reference

Read More
What does string::npos mean in this code?...


c++stdstringstd

Read More
Compile error with templates - no matching function for call...


c++templatestype-conversionstdstring

Read More
How to write a custom exception class derived from std::invalid_argument?...


c++exceptionc-stringsstdstringmicro-optimization

Read More
Can I change a std::string, which has been assigned to a std::string_view...


c++c++17stdstringstring-view

Read More
Can not create a wrapper around std::string that results in only "syntax sugar"...


c++inheritancestdstring

Read More
Rules for concatenating a CRLF (Carriage Return, Line Feed) to a std::string...


c++string-literalsstdstring

Read More
C++ pass string by reference vs pass char array by reference...


c++arrayspointersstdstring

Read More
What is the most efficent way to convert a QStringView to a std::string?...


c++qtc++20stdstringqt6

Read More
Return std::string as const reference...


c++stringreferenceconstantsstdstring

Read More
Curly Brace Initialisation with std::string...


c++stdstringcurly-braces

Read More
C++ call to function by reference and copy...


c++copy-constructorstdstring

Read More
SSO for strings stored in std::map...


c++stdmapstdstring

Read More
How to read value of <std::vector<std::string>> *...


c++stdvectorstdstring

Read More
How many temporary std::string object be created in the code? (Effective Modern C++ materials)...


c++c++14stdstring

Read More
Is it bad to depend on index 0 of an empty std::string?...


c++stdstring

Read More
strprintf - is this implementation safe and portable?...


c++printfstdstring

Read More
c++ builder, label.caption, std::string to unicode conversion...


c++c++buildervclstdstring

Read More
What is the correct way to “clear" a std::string_view?...


c++c++17stdstringstring-view

Read More
How does constexpr std::string in C++20 work?...


c++c++20constexprstdstring

Read More
How do I access STL classes like std::string in gdb postmortem?...


gdbstdstringcoredump

Read More
Run time error: "/home/keith/builds/mingw/gcc........" in VS Code while working with strin...


c++visual-studio-codegccruntime-errorstdstring

Read More
Why does std::string store content at the same address inside a loop?...


c++charstdstdstring

Read More
How to accept an unknown number of lines in c++, each line has two strings...


c++inputcinstdstring

Read More
How do I construct a std::string from a DWORD?...


c++numericstdstring

Read More
BackNext