Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Function template replace_range

boost::algorithm::replace_range — Replace range algorithm.

Synopsis

// In header: <boost/algorithm/string/replace.hpp>


template<typename SequenceT, typename RangeT> 
  void replace_range(SequenceT & Input, 
                     const iterator_range< typename range_iterator< SequenceT >::type > & SearchRange, 
                     const RangeT & Format);

Description

Replace the given range in the input string. The input sequence is modified in-place.

Parameters:

Format

A substitute string

Input

An input string

SearchRange

A range in the input to be substituted


PrevUpHomeNext