StackOverflow Questions for Tag: stdstring

WilliamKF
WilliamKF

Reputation: 43179

How to replace all occurrences of one character with two characters using std::string?

Score: 24

Views: 28770

Answers: 7

Read More
Sullivan
Sullivan

Reputation: 471

c++ std::string use overwrites values

Score: -2

Views: 57

Answers: 1

Read More
Jonathan Prior
Jonathan Prior

Reputation: 6294

convert a char* to std::string

Score: 370

Views: 907281

Answers: 13

Read More
iammilind
iammilind

Reputation: 70078

Why is assignment of 0 or nullptr to std::string allowed, even when it results in a straight forward runtime exception?

Score: 1

Views: 742

Answers: 2

Read More
truf
truf

Reputation: 3111

Disable std:string's SSO

Score: 5

Views: 2404

Answers: 2

Read More
Wawa
Wawa

Reputation:

How do you append an int to a string in C++?

Score: 216

Views: 654536

Answers: 20

Read More
venyanwarrior
venyanwarrior

Reputation: 21

std::string constructor not creating string from iterators

Score: 1

Views: 53

Answers: 0

Read More
minimanimo
minimanimo

Reputation: 195

"std::string const" versus "const std::string"

Score: 0

Views: 5551

Answers: 1

Read More
Adi Shavit
Adi Shavit

Reputation: 17295

Avoid Copying string from ostringstream

Score: 12

Views: 2215

Answers: 4

Read More
Ivan Gorin
Ivan Gorin

Reputation: 391

std::string comparison not constexpr in clang?

Score: 8

Views: 205

Answers: 0

Read More
glades
glades

Reputation: 4848

snprintf to pre-sized std::string doesn't work?

Score: 2

Views: 99

Answers: 2

Read More
MikyMax
MikyMax

Reputation: 11

Optimise C++ const std::string literal declaration for compile time initialization and runtime performance

Score: 1

Views: 108

Answers: 1

Read More
Max Frai
Max Frai

Reputation: 64356

std::string formatting like sprintf

Score: 653

Views: 1445529

Answers: 43

Read More
ezpresso
ezpresso

Reputation: 8126

How to implode a vector of strings into a string (the elegant way)

Score: 136

Views: 177490

Answers: 24

Read More
Bill
Bill

Reputation: 1363

How do you construct a std::string with an embedded null?

Score: 109

Views: 59469

Answers: 12

Read More
Involute
Involute

Reputation: 245

How to define a generalisation to_string and to_wstring to avoid code duplication

Score: 1

Views: 126

Answers: 1

Read More
mister
mister

Reputation: 3433

Does std::string have a null terminator?

Score: 135

Views: 125339

Answers: 6

Read More
WhiteKSI
WhiteKSI

Reputation: 21

String unshuffler returning different results on windows and linux

Score: 2

Views: 88

Answers: 1

Read More
einpoklum
einpoklum

Reputation: 132118

Using strings in switch statements - where do we stand with C++17?

Score: 16

Views: 13632

Answers: 10

Read More
bewilderex63
bewilderex63

Reputation: 437

Is it safe to pass an `std::string` temporary into an `std::string_view` parameter?

Score: 6

Views: 3004

Answers: 4

Read More
PreviousPage 1Next