Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::gslice_array<T>::operator=

      From cppreference.com
      <cpp‎ |numeric‎ |valarray‎ |gslice array

      [edit template]
       
       
       
      std::valarray
      Member functions
      Non-member functions
      Helper classes
      Deduction guides(C++17)
       
       
      void operator=(const T& value)const;
      (1)
      void operator=(conststd::valarray<T>& val_arr)const;
      (2)
      const gslice_array& operator=(const gslice_array& other_arr)const;
      (3)

      Assigns values to all referred elements.

      1) Assignsvalue to all of the elements.
      2) Assigns the elements ofval_arr to the referred to elements of*this.
      3) Assigns the selected elements fromother_arr to the referred to elements of*this.

      Contents

      [edit]Parameters

      value - a value to assign to all of the referred elements
      val_arr -std::valarray to assign
      other_arr -std::gslice_array to assign

      [edit]Return value

      1,2) (none)
      3)*this

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]Defect reports

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

      DRApplied toBehavior as publishedCorrect behavior
      LWG 123C++98overload (2) was non-constmade const
      LWG 253C++98the copy assignment operator was privatemade public
      LWG 621C++98the copy assignment operator was non-constmade const
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/numeric/valarray/gslice_array/operator%3D&oldid=120736"

      [8]ページ先頭

      ©2009-2025 Movatter.jp