...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::algorithm::replace_head — Replace head algorithm.
template<typename SequenceT, typename CollectionT> void replace_head(SequenceT & Input, unsigned int N, const CollectionT & Format);
Replace the head of the input with the given format string. The head is a prefix of a string of given size. If the sequence is shorter then required, the whole string is considered to be the head. The input sequence is modified in-place.
Parameters
A substitute string
An input string
Length of the head
Copyright © 2002-2004 Pavol Droba |