Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      C++ named requirements:CopyAssignable

      From cppreference.com
      <cpp‎ |named req
       
       
      C++ named requirements
       

      Specifies that an instance of the type can be copy-assigned from anlvalue expression.

      [edit]Requirements

      The typeT satisfiesCopyAssignable if

      Given

      The following expressions must be valid and have their specified effects.

      ExpressionReturn typeReturn valuePost-conditions
      t= vT&tThe value oft is equivalent to the value ofv.

      The value ofv is unchanged.

      [edit]See also

      checks if a type has a copy assignment operator
      (class template)[edit]
      specifies that a type is assignable from another type
      (concept)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/named_req/CopyAssignable&oldid=156433"

      [8]ページ先頭

      ©2009-2025 Movatter.jp