std::experi...path::assign(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– NAME πŸ’–

okay bestie, welcome to std::experi...path::assign(3) from the C++ Standard Libary manual β€” and yes, that’s literally how the manual spells β€œLibary,” we are not fixing it, periodt. The actual name is std::experimental::filesystem::path::assign, and then the page gives you std::experimental::filesystem::path::assign again after a dash like it’s giving echo-y main character energy. Both are here, no cap.


✨ Synopsis ✨

template< class Source >                     (1) (filesystem TS)
path& assign( const Source& source );
template< class InputIt >                    (2) (filesystem TS)
path& assign( InputIt first, InputIt last );

Assigns the contents to the path object. No, literally β€” that’s the whole flex.

  1. Assigns the range of source.

This section is incomplete 😭 (the docs said it, not me).

  1. Assigns the pathname identified by range [first, last).

🌸 Parameters 🌸

  • source β€” a range to assign.
  • first, last β€” a range to assign.

πŸŽ€ Type requirements πŸŽ€

  • InputIt must meet the requirements of LegacyInputIterator.
  • The value type of InputIt must be one of the encoded character types (char, wchar_t, char16_t and char32_t).

πŸ‘‘ Return value πŸ‘‘

  • *this β€” that’s it. It returns itself, lowkey iconic.

πŸ’€ Exceptions πŸ’€

This section is incomplete 😭 β€” again, docs todo, not a personality flaw.


πŸ” See also πŸ”

  • operator= β€” assigns another path (public member function).

🏷️ Categories 🏷️

  • Noindexed pages
  • Todo without reason

🫢 source/version check, bestie: http://cppreference.com Β· 2024.06.10 Β· std::experi...path::assign(3). That’s the footer, and we are out β€” mwah! πŸ’‹βœ¨
πŸ“¦ where this page comes from