Void test_foreach () {using namespace boost: Assign; STD: vector <int> V; V + = 1, 2, 3, 4, 5, 6, 7, 8, 9; boost_foreach (int x, v) {STD: cout <x <"," ;}std: cout <STD: Endl; STD :: string STR ("Boost foreach"); boost_foreach (char & X, STR) {STD: cout <x <"-";} STD: cout <STD:: Endl;} void test_minmax () {struct comp {bool operator () (const STD: string & A, const STD: string & B) {return (A <B) | (B. find ("boss ")! = STD: String: NPOs) ;}}; STD: String S1 ("5000"), S2 ("123 boss"); boost_auto (x, MINMAX (S1, s2); STD: cout <X. second <"" <X. first <STD: Endl; boost_auto (Y, MINMAX (S1, S2, comp (); STD: cout <Y. second <"" <Y. first <STD: Endl;} void test_minmax_element () {STD: vector <int> V = boost: Assign: list_of (633) (90) (67) (83) (2) (100); boost_auto (x, boost: minmax_element (v. begin (), V. end (); STD: cout <"Min:" <* X. first <STD: Endl; STD: cout <"MAX:" <* X. second <STD: Endl ;}