std::experi...al::in_place(3)

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

🌸 NAME 🌸

Hiiii bestie! This is the std::experi...al::in_place(3) page from the C++ Standard Libary manual β€” yes, β€œLibary” is literally spelled like that up top, and we are respecting the typo, periodt. πŸ’…

std::experimental::in_place β€” std::experimental::in_place (she’s self-titled and iconic πŸ‘‘)


✨ Synopsis ✨

Defined in header <experimental/optional>:

constexpr in_place_t in_place{};

That declaration is the (library fundamentals TS) version, bestie. Keep it exact β€” no cap. 🫢

Okay so std::experimental::in_place is a constant of type std::experimental::in_place_t that is used to disambiguate the overloads of constructors and member functions that take arguments (possibly a parameter pack) for in-place construction of some value. It’s giving β€œtiny tag, huge job” 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

source/version: http://cppreference.com β€” dated 2024.06.10. Mwah πŸ’‹ catch you in the next manpage, bestie! πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from