Searched refs:inout (Results 1 – 2 of 2) sorted by relevance
23 std::strstream inout(buf, 0); in main() local24 assert(inout.str() == std::string("123 4.5 dog")); in main()28 inout >> i; in main()29 assert(inout.fail()); in main()30 inout.clear(); in main()31 inout << i << ' ' << d << ' ' << s; in main()32 assert(inout.str() == std::string("321 5.5 cat")); in main()36 inout >> i >> d >> s; in main()43 std::strstream inout(buf, 11, std::ios::app); in main() local44 assert(inout.str() == std::string("123 4.5 dog")); in main()[all …]
21 std::strstream inout; in main() local25 inout << i << ' ' << d << ' ' << s << std::ends; in main()26 assert(inout.str() == std::string("123 4.5 dog")); in main()30 inout >> i >> d >> s; in main()