//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. 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)"); }