
Manipulators with Multiple Parameters 77
Explanation: In the above program, middle is a user-defined parameterized manipulator. It re-
ceives a value strlen (m), that is, string length. The header file IOMANIO.H defines a macro,
OMANIO (int). It is expanded to class_OMANIP_int. Due to this, the definition consists
of a constructor and an overloaded ostream insertion operator. When middle() function is
added into the stream, it invokes the constructor which generates and returns an OMANIP_int
object. The fc() function is called by the object constructor.
3.16 MANIPULATORS WITH MULTIPLE PARAMETERS
In this type of manipulators, multiple arguments ...