Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about string-view

Read more about string-view

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - string-view

Inconsistent output from gcount()

I have written the following simple MRE that regenerates a bug in my program: #include <iostream> #include <utility> #include <sstream> #include <string_view> #include <arra...
test-img

digito_evo

c++

stringstream

stringtokenizer

string-view

Votes: 0

Answers: 1

Latest Answer

The basic problem you have is with the operator<< functions. You've tried two of them: operator<<(ostream &, const char *) which will take characters from the pointer up to (and not ...
test-img

Chris Dodd

Transforming a string_view in-place

std::transform, as of C++20, is declared constexpr. I have a bunch of string utility functions that take std::string arguments, but a lot of the usage ends up just passing in small, short, character l...
test-img

Casey

c++

c++20

string-view

toupper

tolower

Votes: 0

Answers: 2

Latest Answer

You can't in-place transform a std::string_view - what if it has been constructed from char const*? a lot of the usage ends up just passing in small, short, character literal sequences at compile-tim...
test-img

passing_through

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved