Concept AssignableConcept
A type with an assignment operator.

All Subcl's AlphabetConcept, AlphabetWithGapsConcept, AlphabetWithQualitiesConcept, AlphabetWithUnknownValueConcept, ContainerConcept, FiniteOrderedAlphabetConcept, FormattedFileHeaderConcept, FormattedFileRecordConcept, ForwardContainerConcept, IntegerConcept, OrderedAlphabetConcept, RandomAccessContainerConcept, ReversibleContainerConcept, SegmentableConcept, SignedIntegerConcept, StringConcept, UnsignedIntegerConcept
Defined in <seqan/basic.h>
Signature Assignable<T>

Detailed Description

Expects instances of type T to be assignable into each other.

Valid Expressions

a = b;  // a, b are of type T

See Also

Member Function Overview

Interface Function Overview

Member Functions Detail

T & T::operator=(T const & other);

C++ built-in assignment operator.

The C++ standard requires the assignment operator to be a member function.

Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

Interface Functions Detail

void assign(target, source);

Assigns one object to another object.

Parameters

target Reference to assign to.
source Value to assign.

Assign value of source to target.

Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

void move(target, source);

Hands over content from one object to another object.

Parameters

target Where to move source to.
source What to move to target.

The default implementation will call assign and classes implementing AssignableConcept can override move to provide a more efficient implementation.

Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

set(target, source);

Assigns one object to another object avoiding to copy contents.

Parameters

target Reference to the set to source.
source Value to set to target.

The default implementation copies. Types implementing AssignableConcept can implement more efficient variants.

Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.