std::gslice...gslice_array(3)

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

πŸ’– NAME πŸ’–

Okay so this is the std::gslice...gslice_array(3) page from the C++ Standard Libary manual, bestie. It’s all about std::gslice_array::gslice_array β€” literally std::gslice_array::gslice_array, no cap. Constructor lore.


✨ Synopsis ✨

          private:                                           (until C++11)
          gslice_array();
          public:                                    (1)     (since C++11)
          gslice_array() = delete;
          public:                                        (2)
          gslice_array( const gslice_array& other );
  1. (1) The default constructor is declared private and not defined until C++11, and it’s explicitly defined as deleted since C++11: gslice_array is not DefaultConstructible. The vibes are intentionally unavailable πŸ’…
  2. (2) Constructs a gslice_array from another gslice_array other. Copying era, but make it slice-aware πŸ¦‹

πŸŽ€ Parameters πŸŽ€

  • other β€” the gslice_array to initialize with 🫢

πŸ’œ Defect reports πŸ’œ

The following behavior-changing defect reports were applied retroactively to previously published C++ standards. Retroactive glow-ups, fr fr ✨

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

Signed, sealed, and sourced from cppreference.com πŸ’Œ β€” page dated 2024.06.10 🌸✨

πŸ“¦ where this page comes from