std::locale::facet::facet(3)

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

πŸ¦‹ NAME πŸ¦‹

std::locale::facet::facet β€” okay so this is the constructor page for std::locale::facet, straight from the C++ Standard Libary manual. It’s giving β€œhow do I make a facet, and why can’t I copy it?” energy. ✨

πŸ’– Synopsis πŸ’–

It’s defined in the header <locale>:

explicit facet( std::size_t refs = 0 ); (1)
facet( const facet& ) = delete;         (2)
  1. Constructor (1) creates a facet with starting reference count refs. If refs is non-zero, the facet will not be deleted when the last locale referencing it goes out of scope. A facet with static or dynamic storage duration should always be constructed with a non-zero refs.
  2. Constructor (2) is the copy constructor, and it’s = deleted β€” so std::locale::facet is not copyable. Periodt. πŸ’…

That’s the whole vibe, bestie 🫢 β€” this page came from http://cppreference.com, and the version/date on it is 2024.06.10. mwah πŸ’‹

πŸ“¦ where this page comes from