Namespaces
Variants
Actions

std::indirect_array<T>::indirect_array

From cppreference.com
 
C++
 
Numerics library
 
std::valarray
Member functions
Non-member functions
Helper classes
Deduction guides (C++17)
 
std::indirect_array
(1)
private:
indirect_array();
(until C++11)
public:
indirect_array() = delete;
(since C++11)
public:
indirect_array( const indirect_array& other );
(2)
1) The default constructor is declared private and not defined(until C++11)explicitly defined as deleted(since C++11): indirect_array is not DefaultConstructible.
2) Constructs a indirect_array from another indirect_array other.

[edit] Parameters

other - indirect_array to initialize with

[edit] Defect reports

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

DR Applied to Behavior as published Correct behavior
LWG 253 C++98 the copy constructor was private made public

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant