//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // template // basic_ostream& // operator<<(basic_ostream& o, const complex& x); #include #include #include int main() { std::complex c(1, 2); std::ostringstream os; os << c; assert(os.str() == "(1,2)"); }