Scroll to navigation

std::slice_array::slice_array(3) C++ Standard Libary std::slice_array::slice_array(3)

NAME

std::slice_array::slice_array - std::slice_array::slice_array

Synopsis

private: (until C++11) slice_array(); public: (1) (since C++11) slice_array() = delete; public: (2) slice_array( const slice_array& other );

1) The default constructor is declared private and not defined (until C++11) explicitly defined as deleted (since C++11): slice_array is not DefaultConstructible. 2) Constructs a slice_array from another slice_array other.

Parameters

other - slice_array to initialize with


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

2026.11.10 http://cppreference.com