Function
replace
Replaces a part of a container with another container.
replace(target, pos_begin, pos_end, source [, limit] [,resize_tag])
Include Headers
seqan/sequence.h
Parameters
target
A container that is modified.
pos_begin
Begin of replaced area.
The first position in target of the area that is replaced by source.
pos_end
End of replaced area.
The position behind the last position in target of the area that is replaced by source.
source
A container that is inserted into target.
Remarks: The function does not modify this container.
limit
The maximal length of target after the operation. (optional)
resize_tag
Specifies the strategy that is applied if target has not enough capacity to store the complete content. (optional)
Default: Specified by DefaultOverflowImplicit of the target type.
Remarks
Some compilers have difficulties if pos_begin and pos_end are both 0, since 0 can be both a position or an iterator. The workaround is to convert at least one of these arguments explicite to the position or to the interator type.
Part of Concept
See Also
SeqAn - Sequence Analysis Library - www.seqan.de
 

Page built @2014/09/02 19:30:28