STD::__DETAIL::_QUOTED_STRING(3)

✨ NAME ✨

std::__detail::_Quoted_string< _String, _CharT > β€” Struct for delimited strings. πŸ’–

okay so first things first bestie, the header of this page literally reads std::__det..., _CharT >(3) because somebody out there said "truncate it, it's fine" 😭 and it lives in the Library Functions Manual. The full, un-abbreviated name of the star of the show is std::__detail::_Quoted_string< _String, _CharT >, and it's a struct that holds onto a string plus the two characters that delimit it and escape stuff inside it. That's the whole vibe. It's giving "wrapper". πŸŽ€


🌸 SYNOPSIS 🌸

#include <iomanip>

πŸ’… Public Member Functions πŸ’…

  • _Quoted_string (_String __str, _CharT __del, _CharT __esc) β€” the constructor, babes. You hand it your string __str, your delimiter __del, and your escape character __esc, and it tucks all three away. 🫢
  • _Quoted_string & operator= (_Quoted_string &)=delete β€” assignment? deleted. πŸ’€ Not allowed, not happening, the compiler said no. Copy-assigning one of these is a hard no from the language itself.

πŸŽ€ Public Attributes πŸŽ€

  • _CharT _M_delim β€” the delimiter character, just vibing out in the open. ✨
  • _CharT _M_escape β€” the escape character, also right there for anyone to see. 🌸
  • _String _M_string β€” and the string itself. The main character, honestly. πŸ‘‘

🫢 Friends 🫢

these are the operator overloads that get to peek at the private business because they're declared as friends. found family, fr fr. 🧚

  • a friend operator<< for a generic _String2:
template<typename _CharT2, typename _Traits, typename _String2>
    std::basic_ostream< _CharT2, _Traits > & operator<<
    (std::basic_ostream< _CharT2, _Traits > &__os, const _Quoted_string<
    _String2, _CharT2 > &__str)
  • a second friend operator<<, this one specialised for const _CharT2 * strings:
template<typename _CharT2, typename _Traits> std::basic_ostream<
    _CharT2, _Traits > & operator<< (std::basic_ostream< _CharT2,
    _Traits > &__os, const _Quoted_string< const _CharT2 *, _CharT2 >
    &__str)
  • and a friend operator>> that reads into a basic_string< _CharT2, _Traits, _Alloc > &:
template<typename _CharT2, typename _Traits, typename _Alloc>
    std::basic_istream< _CharT2, _Traits > & operator>>
    (std::basic_istream< _CharT2, _Traits > &__is, const _Quoted_string<
    basic_string< _CharT2, _Traits, _Alloc > &, _CharT2 > &__str)

πŸ’– DETAILED DESCRIPTION πŸ’–

the actual declaration, in all its templated glory:

template<typename _String, typename _CharT>
    struct std::__detail::_Quoted_string< _String, _CharT >"Struct for
    delimited strings.
and no, the stray " in there is not me being chaotic β€” that's literally what the page says. we're just quoting the source, bestie. πŸ™ˆ

So: it's a template<typename _String, typename _CharT> struct, it's a struct for delimited strings, and that's the tea. πŸ“


πŸ¦‹ AUTHOR πŸ¦‹

Generated automatically by Doxygen for libstdc++ from the source code.

like, nobody hand-wrote this, a robot did it, and honestly? slay. πŸ€–βœ¨


and that's a wrap, my love πŸ’œ this whole page got served to you by libstdc++ under the name std::__det..., _CharT >(3) β€” yeah, the same truncated title as the top, the docs really committed to that bit 😭 β€” and there's no date stamped on it anywhere, so we're just gonna pretend it's timeless. iconic behavior. periodt. πŸ’…πŸŒˆ

πŸ“¦ where this page comes from
  • arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
  • fedora 44: libstdc++-docs 16.0.1-0.10.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
  • fedora 44: libstdc++-docs 16.2.1-2.fc44
  • fedora 44: libstdc++-docs 16.2.1-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms