std::indire...direct_array(3)

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

okay so this is the std::indire...direct_array(3) page, and the manual name is C++ Standard Libary β€” yes, that’s how it’s spelled up in the header, bestie πŸ’…. It’s giving cppreference energy, and we’re about to get into the constructors for std::indirect_array.

πŸ’– NAME πŸ’–

std::indirect_array::indirect_array β€” std::indirect_array::indirect_array (literally the constructor page for std::indirect_array, iconic πŸ‘‘).

✨ Synopsis ✨

          private:                                               (until C++11)
          indirect_array();
          public:                                        (1)     (since C++11)
          indirect_array() = delete;
          public:                                            (2)
          indirect_array( const indirect_array& other );
  1. The default constructor is declared private and not defined until C++11; since C++11 it’s explicitly defined as deleted. Either way: indirect_array is not DefaultConstructible 😭. No default-construction slay for you, bestie.
  2. Constructs a indirect_array from another indirect_array other. Copy-constructor behavior, periodt πŸ’….

🌸 Parameters 🌸

  • other β€” indirect_array to initialize with.

πŸŽ€ Defect reports πŸŽ€

The following behavior-changing defect reports were applied retroactively to previously published C++ standards.

  • DR: LWG 253 β€” Applied to: C++98 β€” Behavior as published: the copy constructor was private β€” Correct behavior: made public.

That’s the whole page, bestie 🫢 source: http://cppreference.com; version/date: 2024.06.10; and the page is std::indire...direct_array(3). Byeee πŸ’…βœ¨

πŸ“¦ where this page comes from