Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify copy assignment operator for vec swizzles #678

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 40 additions & 4 deletions adoc/chapters/programming_interface.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18678,14 +18678,10 @@ __writeable_swizzle__(const __writeable_swizzle__&) = delete

__const_swizzle__() = delete
__const_swizzle__(const __const_swizzle__&) = delete

__const_swizzle__& operator=(const __const_swizzle__&) = delete
----
|====
The default constructor and copy constructor are deleted.

The copy assignment operator for [code]#+__const_swizzle__+# is deleted.

===== Destructors for the swizzled vector class templates

[frame=all,grid=none,separator="@"]
Expand Down Expand Up @@ -18860,6 +18856,46 @@ corresponds to the position [code]#index# of the swizzle operation.

'''

[frame=all,grid=none,separator="@"]
|====
a@
[source]
----
const __writeable_swizzle__&
operator=(const __writeable_swizzle__& rhs) const
----
|====
_Availability:_ Available only in [code]#+__writeable_swizzle__+#.

_Constraints:_ Available only when the [code]#+__writeable_swizzle__+# view does
not contain any repeated elements.

_Effects:_ Assigns elements from the right hand side
[code]#+__writeable_swizzle__+# view to elements of the left hand side
[code]#+__writeable_swizzle__+# view.
The value corresponding to the first element of the [code]#rhs# swizzle
operation is assigned to the element of the underlying [code]#vec# object that
corresponds to the first element of the left hand side swizzle operation, etc.

_Returns:_ A reference to the left hand side [code]#+__writeable_swizzle__+#
view.

'''

[frame=all,grid=none,separator="@"]
|====
a@
[source]
----
const __const_swizzle__&
operator=(const __const_swizzle__& rhs) const = delete;
----
|====
The copy assignment operator is deleted for the [code]#+__const_swizzle__+#
class.

'''

[frame=all,grid=none,separator="@"]
|====
a@
Expand Down
Loading