C++ Standard Library merge() Sample

Description

merge() merges two sorted element sequences, placing the result in a new output sequence.

Declaration

	template <class In, class In2, class Out>
	    Out merge(In, In, In2, In2, Out);
	template <class In, class In2, class Out, class Cmp>
	    Out merge(In, In, In2, In2, Out, Cmp);

Concept

The sample program sets up two C-style strings, and then merges them together into a new output string. The displayed result is 12345678.

Supported
Supported
Supported