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 for the latest Boost documentation.
PrevUpHomeNext

Function template find_format

boost::algorithm::find_format — Generic replace algorithm.

Synopsis

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


template<typename SequenceT, typename FinderT, typename FormatterT> 
  void find_format(SequenceT & Input, FinderT Finder, FormatterT Formatter);

Description

Use the Finder to search for a substring. Use the Formatter to format this substring and replace it in the input. The input is modified in-place.

Parameters:

Finder

A Finder object used to search for a match to be replaced

Formatter

A Formatter object used to format a match

Input

An input sequence


PrevUpHomeNext