std::experi...::in_place_t(3)

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

πŸ’… NAME πŸ’…

std::experimental::in_place_t - std::experimental::in_place_t

okay bestie, welcome to std::experi...::in_place_t(3) from the C++ Standard Libary man pages πŸ’– this one is short but iconic.


✨ Synopsis ✨

Defined in header <experimental/optional>:

struct in_place_t {};

(library fundamentals TS)

So std::experimental::in_place_t is an empty class type, and its whole job is to disambiguate the overloads of constructors and member functions of that take arguments (possibly a parameter pack) for in-place construction of some value. lowkey a tiny little tag with main character energy πŸŽ€


🫢 See also 🫢

  • in_place, in_place_type, in_place_index β€” in-place construction tag
  • in_place_t β€” (tag)
  • in_place_type_t
  • in_place_index_t β€” (C++17)
  • optional β€” a wrapper that may or may not hold an object (C++17) (class template)

🌸 Category 🌸

  • Noindexed pages

mwah πŸ’‹ β€” source http://cppreference.com, dated 2024.06.10, page std::experi...::in_place_t(3) ✨

πŸ“¦ where this page comes from