Fixing whitespace problems
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@111758 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -50,5 +50,5 @@ int main()
|
|||||||
assert(f2.sgetc() == L'2');
|
assert(f2.sgetc() == L'2');
|
||||||
}
|
}
|
||||||
remove("test.dat");
|
remove("test.dat");
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// template <class charT, class traits = char_traits<charT> >
|
// template <class charT, class traits = char_traits<charT> >
|
||||||
// class basic_filebuf
|
// class basic_filebuf
|
||||||
|
|
||||||
// template <class charT, class traits>
|
// template <class charT, class traits>
|
||||||
// void
|
// void
|
||||||
// swap(basic_filebuf<charT, traits>& x, basic_filebuf<charT, traits>& y);
|
// swap(basic_filebuf<charT, traits>& x, basic_filebuf<charT, traits>& y);
|
||||||
|
|
||||||
|
|||||||
@@ -27,4 +27,4 @@ int main()
|
|||||||
std::wfilebuf f;
|
std::wfilebuf f;
|
||||||
assert(!f.is_open());
|
assert(!f.is_open());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,5 +48,5 @@ int main()
|
|||||||
assert(f2.sgetc() == L'2');
|
assert(f2.sgetc() == L'2');
|
||||||
}
|
}
|
||||||
remove("test.dat");
|
remove("test.dat");
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,4 +46,4 @@ int main()
|
|||||||
assert(f.sbumpc() == L'3');
|
assert(f.sbumpc() == L'3');
|
||||||
}
|
}
|
||||||
remove("test.dat");
|
remove("test.dat");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -137,4 +137,4 @@ int main()
|
|||||||
assert(f.sbumpc() == -1);
|
assert(f.sbumpc() == -1);
|
||||||
}
|
}
|
||||||
std::remove("overflow.dat");
|
std::remove("overflow.dat");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,4 +53,4 @@ int main()
|
|||||||
assert(f.sbumpc() == 'a');
|
assert(f.sbumpc() == 'a');
|
||||||
assert(f.sgetc() == '2');
|
assert(f.sgetc() == '2');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,9 +9,9 @@
|
|||||||
|
|
||||||
// <fstream>
|
// <fstream>
|
||||||
|
|
||||||
// pos_type seekoff(off_type off, ios_base::seekdir way,
|
// pos_type seekoff(off_type off, ios_base::seekdir way,
|
||||||
// ios_base::openmode which = ios_base::in | ios_base::out);
|
// ios_base::openmode which = ios_base::in | ios_base::out);
|
||||||
// pos_type seekpos(pos_type sp,
|
// pos_type seekpos(pos_type sp,
|
||||||
// ios_base::openmode which = ios_base::in | ios_base::out);
|
// ios_base::openmode which = ios_base::in | ios_base::out);
|
||||||
|
|
||||||
// This test is not entirely portable
|
// This test is not entirely portable
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
123456789
|
123456789
|
||||||
|
|||||||
@@ -116,4 +116,4 @@ int main()
|
|||||||
assert(f.sbumpc() == 0x4E53);
|
assert(f.sbumpc() == 0x4E53);
|
||||||
assert(f.sbumpc() == -1);
|
assert(f.sbumpc() == -1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,5 +44,5 @@ int main()
|
|||||||
assert(x == 3.25);
|
assert(x == 3.25);
|
||||||
}
|
}
|
||||||
std::remove("test.dat");
|
std::remove("test.dat");
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// template <class charT, class traits = char_traits<charT> >
|
// template <class charT, class traits = char_traits<charT> >
|
||||||
// class basic_fstream
|
// class basic_fstream
|
||||||
|
|
||||||
// template <class charT, class traits>
|
// template <class charT, class traits>
|
||||||
// void swap(basic_fstream<charT, traits>& x, basic_fstream<charT, traits>& y);
|
// void swap(basic_fstream<charT, traits>& x, basic_fstream<charT, traits>& y);
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|||||||
@@ -42,5 +42,5 @@ int main()
|
|||||||
assert(x == 3.25);
|
assert(x == 3.25);
|
||||||
}
|
}
|
||||||
std::remove("test.dat");
|
std::remove("test.dat");
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,5 +36,5 @@ int main()
|
|||||||
fs >> x;
|
fs >> x;
|
||||||
assert(x == 3.25);
|
assert(x == 3.25);
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// template <class charT, class traits = char_traits<charT> >
|
// template <class charT, class traits = char_traits<charT> >
|
||||||
// class basic_ifstream
|
// class basic_ifstream
|
||||||
|
|
||||||
// template <class charT, class traits>
|
// template <class charT, class traits>
|
||||||
// void swap(basic_ifstream<charT, traits>& x, basic_ifstream<charT, traits>& y);
|
// void swap(basic_ifstream<charT, traits>& x, basic_ifstream<charT, traits>& y);
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|||||||
@@ -34,5 +34,5 @@ int main()
|
|||||||
fs >> x;
|
fs >> x;
|
||||||
assert(x == 3.25);
|
assert(x == 3.25);
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,5 +46,5 @@ int main()
|
|||||||
assert(x == 3.25);
|
assert(x == 3.25);
|
||||||
}
|
}
|
||||||
remove("test.dat");
|
remove("test.dat");
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// template <class charT, class traits = char_traits<charT> >
|
// template <class charT, class traits = char_traits<charT> >
|
||||||
// class basic_ofstream
|
// class basic_ofstream
|
||||||
|
|
||||||
// template <class charT, class traits>
|
// template <class charT, class traits>
|
||||||
// void swap(basic_ofstream<charT, traits>& x, basic_ofstream<charT, traits>& y);
|
// void swap(basic_ofstream<charT, traits>& x, basic_ofstream<charT, traits>& y);
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|||||||
@@ -44,5 +44,5 @@ int main()
|
|||||||
assert(x == 3.25);
|
assert(x == 3.25);
|
||||||
}
|
}
|
||||||
remove("test.dat");
|
remove("test.dat");
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,11 +33,11 @@ struct test_iostream
|
|||||||
typedef std::basic_iostream<CharT> base;
|
typedef std::basic_iostream<CharT> base;
|
||||||
test_iostream(testbuf<CharT>* sb) : base(sb) {}
|
test_iostream(testbuf<CharT>* sb) : base(sb) {}
|
||||||
|
|
||||||
test_iostream& operator=(test_iostream&& s)
|
test_iostream& operator=(test_iostream&& s)
|
||||||
{base::operator=(std::move(s)); return *this;}
|
{base::operator=(std::move(s)); return *this;}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@@ -88,5 +88,5 @@ int main()
|
|||||||
assert(is2.precision() == 6);
|
assert(is2.precision() == 6);
|
||||||
assert(is2.getloc().name() == "C");
|
assert(is2.getloc().name() == "C");
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,11 +33,11 @@ struct test_iostream
|
|||||||
typedef std::basic_iostream<CharT> base;
|
typedef std::basic_iostream<CharT> base;
|
||||||
test_iostream(testbuf<CharT>* sb) : base(sb) {}
|
test_iostream(testbuf<CharT>* sb) : base(sb) {}
|
||||||
|
|
||||||
test_iostream(test_iostream&& s)
|
test_iostream(test_iostream&& s)
|
||||||
: base(std::move(s)) {}
|
: base(std::move(s)) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@@ -74,5 +74,5 @@ int main()
|
|||||||
assert(is.precision() == 6);
|
assert(is.precision() == 6);
|
||||||
assert(is.getloc().name() == "C");
|
assert(is.getloc().name() == "C");
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
// <istream>
|
// <istream>
|
||||||
|
|
||||||
// template<class charT, class traits>
|
// template<class charT, class traits>
|
||||||
// basic_istream<charT,traits>& operator>>(basic_istream<charT,traits>&& in, charT& c);
|
// basic_istream<charT,traits>& operator>>(basic_istream<charT,traits>&& in, charT& c);
|
||||||
|
|
||||||
#include <istream>
|
#include <istream>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
// <istream>
|
// <istream>
|
||||||
|
|
||||||
// template<class traits>
|
// template<class traits>
|
||||||
// basic_istream<char,traits>& operator>>(basic_istream<char,traits>&& in, signed char& c);
|
// basic_istream<char,traits>& operator>>(basic_istream<char,traits>&& in, signed char& c);
|
||||||
|
|
||||||
#include <istream>
|
#include <istream>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
// <istream>
|
// <istream>
|
||||||
|
|
||||||
// template<class traits>
|
// template<class traits>
|
||||||
// basic_istream<char,traits>& operator>>(basic_istream<char,traits>&& in, signed char* s);
|
// basic_istream<char,traits>& operator>>(basic_istream<char,traits>&& in, signed char* s);
|
||||||
|
|
||||||
#include <istream>
|
#include <istream>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
// <istream>
|
// <istream>
|
||||||
|
|
||||||
// template<class traits>
|
// template<class traits>
|
||||||
// basic_istream<char,traits>& operator>>(basic_istream<char,traits>&& in, unsigned char& c);
|
// basic_istream<char,traits>& operator>>(basic_istream<char,traits>&& in, unsigned char& c);
|
||||||
|
|
||||||
#include <istream>
|
#include <istream>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
// <istream>
|
// <istream>
|
||||||
|
|
||||||
// template<class traits>
|
// template<class traits>
|
||||||
// basic_istream<char,traits>& operator>>(basic_istream<char,traits>&& in, unsigned char* s);
|
// basic_istream<char,traits>& operator>>(basic_istream<char,traits>&& in, unsigned char* s);
|
||||||
|
|
||||||
#include <istream>
|
#include <istream>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
// <istream>
|
// <istream>
|
||||||
|
|
||||||
// template<class charT, class traits>
|
// template<class charT, class traits>
|
||||||
// basic_istream<charT,traits>& operator>>(basic_istream<charT,traits>&& in, charT* s);
|
// basic_istream<charT,traits>& operator>>(basic_istream<charT,traits>&& in, charT* s);
|
||||||
|
|
||||||
#include <istream>
|
#include <istream>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
// <istream>
|
// <istream>
|
||||||
|
|
||||||
// template <class charT, class traits>
|
// template <class charT, class traits>
|
||||||
// basic_istream<charT,traits>&
|
// basic_istream<charT,traits>&
|
||||||
// ws(basic_istream<charT,traits>& is);
|
// ws(basic_istream<charT,traits>& is);
|
||||||
|
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
|
|
||||||
// <istream>
|
// <istream>
|
||||||
|
|
||||||
// template <class charT, class traits, class T>
|
// template <class charT, class traits, class T>
|
||||||
// basic_istream<charT, traits>&
|
// basic_istream<charT, traits>&
|
||||||
// operator>>(basic_istream<charT, traits>&& is, T& x);
|
// operator>>(basic_istream<charT, traits>&& is, T& x);
|
||||||
|
|
||||||
#include <istream>
|
#include <istream>
|
||||||
@@ -42,7 +42,7 @@ public:
|
|||||||
CharT* egptr() const {return base::egptr();}
|
CharT* egptr() const {return base::egptr();}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@@ -59,5 +59,5 @@ int main()
|
|||||||
std::wistream(&sb) >> i;
|
std::wistream(&sb) >> i;
|
||||||
assert(i == 123);
|
assert(i == 123);
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
// <istream>
|
// <istream>
|
||||||
|
|
||||||
// basic_istream<charT,traits>& get(basic_streambuf<char_type,traits>& sb);
|
// basic_istream<charT,traits>& get(basic_streambuf<char_type,traits>& sb);
|
||||||
|
|
||||||
#include <istream>
|
#include <istream>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
|
|
||||||
// <istream>
|
// <istream>
|
||||||
|
|
||||||
// basic_istream<charT,traits>& get(basic_streambuf<char_type,traits>& sb,
|
// basic_istream<charT,traits>& get(basic_streambuf<char_type,traits>& sb,
|
||||||
// char_type delim);
|
// char_type delim);
|
||||||
|
|
||||||
#include <istream>
|
#include <istream>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
// <istream>
|
// <istream>
|
||||||
|
|
||||||
// basic_istream<charT,traits>&
|
// basic_istream<charT,traits>&
|
||||||
// ignore(streamsize n = 1, int_type delim = traits::eof());
|
// ignore(streamsize n = 1, int_type delim = traits::eof());
|
||||||
|
|
||||||
#include <istream>
|
#include <istream>
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ struct test_istream
|
|||||||
{base::operator=(std::move(s)); return *this;}
|
{base::operator=(std::move(s)); return *this;}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@@ -88,5 +88,5 @@ int main()
|
|||||||
assert(is2.precision() == 6);
|
assert(is2.precision() == 6);
|
||||||
assert(is2.getloc().name() == "C");
|
assert(is2.getloc().name() == "C");
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ struct test_istream
|
|||||||
: base(std::move(s)) {}
|
: base(std::move(s)) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@@ -74,5 +74,5 @@ int main()
|
|||||||
assert(is.precision() == 6);
|
assert(is.precision() == 6);
|
||||||
assert(is.getloc().name() == "C");
|
assert(is.getloc().name() == "C");
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ struct test_ostream
|
|||||||
{base::operator=(std::move(s)); return *this;}
|
{base::operator=(std::move(s)); return *this;}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@@ -88,5 +88,5 @@ int main()
|
|||||||
assert(os2.precision() == 6);
|
assert(os2.precision() == 6);
|
||||||
assert(os2.getloc().name() == "C");
|
assert(os2.getloc().name() == "C");
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ struct test_ostream
|
|||||||
: base(std::move(s)) {}
|
: base(std::move(s)) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@@ -70,5 +70,5 @@ int main()
|
|||||||
assert(os.precision() == 6);
|
assert(os.precision() == 6);
|
||||||
assert(os.getloc().name() == "C");
|
assert(os.getloc().name() == "C");
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// template <class charT, class traits = char_traits<charT> >
|
// template <class charT, class traits = char_traits<charT> >
|
||||||
// class basic_ostream;
|
// class basic_ostream;
|
||||||
|
|
||||||
// template<class charT, class traits>
|
// template<class charT, class traits>
|
||||||
// basic_ostream<charT,traits>& operator<<(basic_ostream<charT,traits>& out, charT c);
|
// basic_ostream<charT,traits>& operator<<(basic_ostream<charT,traits>& out, charT c);
|
||||||
|
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// template <class charT, class traits = char_traits<charT> >
|
// template <class charT, class traits = char_traits<charT> >
|
||||||
// class basic_ostream;
|
// class basic_ostream;
|
||||||
|
|
||||||
// template<class charT, class traits>
|
// template<class charT, class traits>
|
||||||
// basic_ostream<charT,traits>& operator<<(basic_ostream<charT,traits>& out, const charT* s);
|
// basic_ostream<charT,traits>& operator<<(basic_ostream<charT,traits>& out, const charT* s);
|
||||||
|
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// template <class charT, class traits = char_traits<charT> >
|
// template <class charT, class traits = char_traits<charT> >
|
||||||
// class basic_ostream;
|
// class basic_ostream;
|
||||||
|
|
||||||
// template<class char, class traits>
|
// template<class char, class traits>
|
||||||
// basic_ostream<char,traits>& operator<<(basic_ostream<char,traits>& out, char c);
|
// basic_ostream<char,traits>& operator<<(basic_ostream<char,traits>& out, char c);
|
||||||
|
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// template <class charT, class traits = char_traits<charT> >
|
// template <class charT, class traits = char_traits<charT> >
|
||||||
// class basic_ostream;
|
// class basic_ostream;
|
||||||
|
|
||||||
// template<class traits>
|
// template<class traits>
|
||||||
// basic_ostream<char,traits>& operator<<(basic_ostream<char,traits>& out, const char* s);
|
// basic_ostream<char,traits>& operator<<(basic_ostream<char,traits>& out, const char* s);
|
||||||
|
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// template <class charT, class traits = char_traits<charT> >
|
// template <class charT, class traits = char_traits<charT> >
|
||||||
// class basic_ostream;
|
// class basic_ostream;
|
||||||
|
|
||||||
// template<class charT, class traits>
|
// template<class charT, class traits>
|
||||||
// basic_ostream<charT,traits>& operator<<(basic_ostream<charT,traits>& out, char c);
|
// basic_ostream<charT,traits>& operator<<(basic_ostream<charT,traits>& out, char c);
|
||||||
|
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// template <class charT, class traits = char_traits<charT> >
|
// template <class charT, class traits = char_traits<charT> >
|
||||||
// class basic_ostream;
|
// class basic_ostream;
|
||||||
|
|
||||||
// template<class charT, class traits>
|
// template<class charT, class traits>
|
||||||
// basic_ostream<charT,traits>& operator<<(basic_ostream<charT,traits>& out, const char* s);
|
// basic_ostream<charT,traits>& operator<<(basic_ostream<charT,traits>& out, const char* s);
|
||||||
|
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// template <class charT, class traits = char_traits<charT> >
|
// template <class charT, class traits = char_traits<charT> >
|
||||||
// class basic_ostream;
|
// class basic_ostream;
|
||||||
|
|
||||||
// template<class char, class traits>
|
// template<class char, class traits>
|
||||||
// basic_ostream<char,traits>& operator<<(basic_ostream<char,traits>& out, signed char c);
|
// basic_ostream<char,traits>& operator<<(basic_ostream<char,traits>& out, signed char c);
|
||||||
|
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// template <class charT, class traits = char_traits<charT> >
|
// template <class charT, class traits = char_traits<charT> >
|
||||||
// class basic_ostream;
|
// class basic_ostream;
|
||||||
|
|
||||||
// template<class traits>
|
// template<class traits>
|
||||||
// basic_ostream<char,traits>& operator<<(basic_ostream<char,traits>& out, const signed char* s);
|
// basic_ostream<char,traits>& operator<<(basic_ostream<char,traits>& out, const signed char* s);
|
||||||
|
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// template <class charT, class traits = char_traits<charT> >
|
// template <class charT, class traits = char_traits<charT> >
|
||||||
// class basic_ostream;
|
// class basic_ostream;
|
||||||
|
|
||||||
// template<class char, class traits>
|
// template<class char, class traits>
|
||||||
// basic_ostream<char,traits>& operator<<(basic_ostream<char,traits>& out, unsigned char c);
|
// basic_ostream<char,traits>& operator<<(basic_ostream<char,traits>& out, unsigned char c);
|
||||||
|
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// template <class charT, class traits = char_traits<charT> >
|
// template <class charT, class traits = char_traits<charT> >
|
||||||
// class basic_ostream;
|
// class basic_ostream;
|
||||||
|
|
||||||
// template<class traits>
|
// template<class traits>
|
||||||
// basic_ostream<char,traits>& operator<<(basic_ostream<char,traits>& out, const unsigned char* s);
|
// basic_ostream<char,traits>& operator<<(basic_ostream<char,traits>& out, const unsigned char* s);
|
||||||
|
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
|||||||
@@ -12,8 +12,8 @@
|
|||||||
// template <class charT, class traits = char_traits<charT> >
|
// template <class charT, class traits = char_traits<charT> >
|
||||||
// class basic_ostream;
|
// class basic_ostream;
|
||||||
|
|
||||||
// basic_ostream<charT,traits>& operator<<
|
// basic_ostream<charT,traits>& operator<<
|
||||||
// (basic_ostream<charT,traits>& (*pf)(basic_ostream<charT,traits>&))
|
// (basic_ostream<charT,traits>& (*pf)(basic_ostream<charT,traits>&))
|
||||||
|
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// template <class charT, class traits = char_traits<charT> >
|
// template <class charT, class traits = char_traits<charT> >
|
||||||
// class basic_ostream;
|
// class basic_ostream;
|
||||||
|
|
||||||
// template <class charT, class traits>
|
// template <class charT, class traits>
|
||||||
// basic_ostream<charT,traits>& endl(basic_ostream<charT,traits>& os);
|
// basic_ostream<charT,traits>& endl(basic_ostream<charT,traits>& os);
|
||||||
|
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// template <class charT, class traits = char_traits<charT> >
|
// template <class charT, class traits = char_traits<charT> >
|
||||||
// class basic_ostream;
|
// class basic_ostream;
|
||||||
|
|
||||||
// template <class charT, class traits>
|
// template <class charT, class traits>
|
||||||
// basic_ostream<charT,traits>& ends(basic_ostream<charT,traits>& os);
|
// basic_ostream<charT,traits>& ends(basic_ostream<charT,traits>& os);
|
||||||
|
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// template <class charT, class traits = char_traits<charT> >
|
// template <class charT, class traits = char_traits<charT> >
|
||||||
// class basic_ostream;
|
// class basic_ostream;
|
||||||
|
|
||||||
// template <class charT, class traits>
|
// template <class charT, class traits>
|
||||||
// basic_ostream<charT,traits>& flush(basic_ostream<charT,traits>& os);
|
// basic_ostream<charT,traits>& flush(basic_ostream<charT,traits>& os);
|
||||||
|
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
|||||||
@@ -12,8 +12,8 @@
|
|||||||
// template <class charT, class traits = char_traits<charT> >
|
// template <class charT, class traits = char_traits<charT> >
|
||||||
// class basic_ostream;
|
// class basic_ostream;
|
||||||
|
|
||||||
// template <class charT, class traits, class T>
|
// template <class charT, class traits, class T>
|
||||||
// basic_ostream<charT, traits>&
|
// basic_ostream<charT, traits>&
|
||||||
// operator<<(basic_ostream<charT, traits>&& os, const T& x);
|
// operator<<(basic_ostream<charT, traits>&& os, const T& x);
|
||||||
|
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
@@ -53,7 +53,7 @@ protected:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@@ -68,5 +68,5 @@ int main()
|
|||||||
std::wostream(&sb) << L"123";
|
std::wostream(&sb) << L"123";
|
||||||
assert(sb.str() == L"123");
|
assert(sb.str() == L"123");
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ struct testbuf
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
typename base::pos_type
|
typename base::pos_type
|
||||||
seekpos(typename base::pos_type sp, std::ios_base::openmode which)
|
seekpos(typename base::pos_type sp, std::ios_base::openmode which)
|
||||||
{
|
{
|
||||||
++seekpos_called;
|
++seekpos_called;
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ struct testbuf
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
typename base::pos_type
|
typename base::pos_type
|
||||||
seekoff(typename base::off_type off, std::ios_base::seekdir way,
|
seekoff(typename base::off_type off, std::ios_base::seekdir way,
|
||||||
std::ios_base::openmode which)
|
std::ios_base::openmode which)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ struct testbuf
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
typename base::pos_type
|
typename base::pos_type
|
||||||
seekoff(typename base::off_type off, std::ios_base::seekdir way, std::ios_base::openmode which)
|
seekoff(typename base::off_type off, std::ios_base::seekdir way, std::ios_base::openmode which)
|
||||||
{
|
{
|
||||||
assert(off == 0);
|
assert(off == 0);
|
||||||
|
|||||||
@@ -21,5 +21,5 @@ int main()
|
|||||||
#else
|
#else
|
||||||
assert(std::cerr.tie() == &std::cout);
|
assert(std::cerr.tie() == &std::cout);
|
||||||
assert(std::cerr.flags() & std::ios_base::unitbuf);
|
assert(std::cerr.flags() & std::ios_base::unitbuf);
|
||||||
#endif
|
#endif // 0
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ int main()
|
|||||||
std::cout << "Enter a number: ";
|
std::cout << "Enter a number: ";
|
||||||
std::cin >> i;
|
std::cin >> i;
|
||||||
std::cout << "The number is : " << i << '\n';
|
std::cout << "The number is : " << i << '\n';
|
||||||
#else
|
#else // 0
|
||||||
assert(std::cin.tie() == &std::cout);
|
assert(std::cin.tie() == &std::cout);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ int main()
|
|||||||
std::cout << "Enter a number: ";
|
std::cout << "Enter a number: ";
|
||||||
std::cin >> i;
|
std::cin >> i;
|
||||||
std::cout << "The number is : " << i << '\n';
|
std::cout << "The number is : " << i << '\n';
|
||||||
#else
|
#else // 0
|
||||||
(void)std::cout;
|
(void)std::cout;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,5 +21,5 @@ int main()
|
|||||||
#else
|
#else
|
||||||
assert(std::wcerr.tie() == &std::wcout);
|
assert(std::wcerr.tie() == &std::wcout);
|
||||||
assert(std::wcerr.flags() & std::ios_base::unitbuf);
|
assert(std::wcerr.flags() & std::ios_base::unitbuf);
|
||||||
#endif
|
#endif // 0
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ int main()
|
|||||||
std::wcout << L"Enter a number: ";
|
std::wcout << L"Enter a number: ";
|
||||||
std::wcin >> i;
|
std::wcin >> i;
|
||||||
std::wcout << L"The number is : " << i << L'\n';
|
std::wcout << L"The number is : " << i << L'\n';
|
||||||
#else
|
#else // 0
|
||||||
assert(std::wcin.tie() == &std::wcout);
|
assert(std::wcin.tie() == &std::wcout);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,21 +11,21 @@
|
|||||||
|
|
||||||
// class ios_base
|
// class ios_base
|
||||||
|
|
||||||
// static const fmtflags boolalpha;
|
// static const fmtflags boolalpha;
|
||||||
// static const fmtflags dec;
|
// static const fmtflags dec;
|
||||||
// static const fmtflags fixed;
|
// static const fmtflags fixed;
|
||||||
// static const fmtflags hex;
|
// static const fmtflags hex;
|
||||||
// static const fmtflags internal;
|
// static const fmtflags internal;
|
||||||
// static const fmtflags left;
|
// static const fmtflags left;
|
||||||
// static const fmtflags oct;
|
// static const fmtflags oct;
|
||||||
// static const fmtflags right;
|
// static const fmtflags right;
|
||||||
// static const fmtflags scientific;
|
// static const fmtflags scientific;
|
||||||
// static const fmtflags showbase;
|
// static const fmtflags showbase;
|
||||||
// static const fmtflags showpoint;
|
// static const fmtflags showpoint;
|
||||||
// static const fmtflags showpos;
|
// static const fmtflags showpos;
|
||||||
// static const fmtflags skipws;
|
// static const fmtflags skipws;
|
||||||
// static const fmtflags unitbuf;
|
// static const fmtflags unitbuf;
|
||||||
// static const fmtflags uppercase;
|
// static const fmtflags uppercase;
|
||||||
// static const fmtflags adjustfield = left | right | internal;
|
// static const fmtflags adjustfield = left | right | internal;
|
||||||
// static const fmtflags basefield = dec | oct | hex;
|
// static const fmtflags basefield = dec | oct | hex;
|
||||||
// static const fmtflags floatfield = scientific | fixed;
|
// static const fmtflags floatfield = scientific | fixed;
|
||||||
|
|||||||
@@ -12,8 +12,8 @@
|
|||||||
// class ios_base
|
// class ios_base
|
||||||
|
|
||||||
// static const iostate badbit;
|
// static const iostate badbit;
|
||||||
// static const iostate eofbit;
|
// static const iostate eofbit;
|
||||||
// static const iostate failbit;
|
// static const iostate failbit;
|
||||||
// static const iostate goodbit = 0;
|
// static const iostate goodbit = 0;
|
||||||
|
|
||||||
#include <ios>
|
#include <ios>
|
||||||
|
|||||||
@@ -12,11 +12,11 @@
|
|||||||
// class ios_base
|
// class ios_base
|
||||||
|
|
||||||
// static const openmode app;
|
// static const openmode app;
|
||||||
// static const openmode ate;
|
// static const openmode ate;
|
||||||
// static const openmode binary;
|
// static const openmode binary;
|
||||||
// static const openmode in;
|
// static const openmode in;
|
||||||
// static const openmode out;
|
// static const openmode out;
|
||||||
// static const openmode trunc;
|
// static const openmode trunc;
|
||||||
|
|
||||||
#include <ios>
|
#include <ios>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|||||||
@@ -12,8 +12,8 @@
|
|||||||
// class ios_base
|
// class ios_base
|
||||||
|
|
||||||
// static const seekdir beg;
|
// static const seekdir beg;
|
||||||
// static const seekdir cur;
|
// static const seekdir cur;
|
||||||
// static const seekdir end;
|
// static const seekdir end;
|
||||||
|
|
||||||
#include <ios>
|
#include <ios>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|||||||
@@ -9,15 +9,15 @@
|
|||||||
|
|
||||||
// <ios>
|
// <ios>
|
||||||
|
|
||||||
// template <class charT, class traits = char_traits<charT> >
|
// template <class charT, class traits = char_traits<charT> >
|
||||||
// class basic_ios : public ios_base
|
// class basic_ios : public ios_base
|
||||||
// {
|
// {
|
||||||
// public:
|
// public:
|
||||||
// typedef charT char_type;
|
// typedef charT char_type;
|
||||||
// typedef typename traits::int_type int_type;
|
// typedef typename traits::int_type int_type;
|
||||||
// typedef typename traits::pos_type pos_type;
|
// typedef typename traits::pos_type pos_type;
|
||||||
// typedef typename traits::off_type off_type;
|
// typedef typename traits::off_type off_type;
|
||||||
// typedef traits traits_type;
|
// typedef traits traits_type;
|
||||||
|
|
||||||
#include <ios>
|
#include <ios>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// template <class charT, class traits = char_traits<charT> >
|
// template <class charT, class traits = char_traits<charT> >
|
||||||
// class basic_streambuf;
|
// class basic_streambuf;
|
||||||
|
|
||||||
// pos_type pubseekoff(off_type off, ios_base::seekdir way,
|
// pos_type pubseekoff(off_type off, ios_base::seekdir way,
|
||||||
// ios_base::openmode which = ios_base::in | ios_base::out);
|
// ios_base::openmode which = ios_base::in | ios_base::out);
|
||||||
|
|
||||||
#include <streambuf>
|
#include <streambuf>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// template <class charT, class traits = char_traits<charT> >
|
// template <class charT, class traits = char_traits<charT> >
|
||||||
// class basic_streambuf;
|
// class basic_streambuf;
|
||||||
|
|
||||||
// pos_type pubseekpos(pos_type sp,
|
// pos_type pubseekpos(pos_type sp,
|
||||||
// ios_base::openmode which = ios_base::in | ios_base::out;
|
// ios_base::openmode which = ios_base::in | ios_base::out;
|
||||||
|
|
||||||
#include <streambuf>
|
#include <streambuf>
|
||||||
|
|||||||
@@ -46,5 +46,5 @@ int main()
|
|||||||
ss >> i;
|
ss >> i;
|
||||||
assert(i == 456);
|
assert(i == 456);
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
|
// template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
|
||||||
// class basic_istringstream
|
// class basic_istringstream
|
||||||
|
|
||||||
// template <class charT, class traits, class Allocator>
|
// template <class charT, class traits, class Allocator>
|
||||||
// void
|
// void
|
||||||
// swap(basic_istringstream<charT, traits, Allocator>& x,
|
// swap(basic_istringstream<charT, traits, Allocator>& x,
|
||||||
// basic_istringstream<charT, traits, Allocator>& y);
|
// basic_istringstream<charT, traits, Allocator>& y);
|
||||||
|
|||||||
@@ -44,5 +44,5 @@ int main()
|
|||||||
ss >> i;
|
ss >> i;
|
||||||
assert(i == 456);
|
assert(i == 456);
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
|
// template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
|
||||||
// class basic_istringstream
|
// class basic_istringstream
|
||||||
|
|
||||||
// explicit basic_istringstream(const basic_string<charT,traits,allocator>& str,
|
// explicit basic_istringstream(const basic_string<charT,traits,allocator>& str,
|
||||||
// ios_base::openmode which = ios_base::in);
|
// ios_base::openmode which = ios_base::in);
|
||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|||||||
@@ -42,5 +42,5 @@ int main()
|
|||||||
ss << i << ' ' << 567;;
|
ss << i << ' ' << 567;;
|
||||||
assert(ss.str() == L"234 5676");
|
assert(ss.str() == L"234 5676");
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,5 +40,5 @@ int main()
|
|||||||
ss << i << ' ' << 567;;
|
ss << i << ' ' << 567;;
|
||||||
assert(ss.str() == L"234 5676");
|
assert(ss.str() == L"234 5676");
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
|
// template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
|
||||||
// class basic_ostringstream
|
// class basic_ostringstream
|
||||||
|
|
||||||
// explicit basic_ostringstream(const basic_string<charT,traits,allocator>& str,
|
// explicit basic_ostringstream(const basic_string<charT,traits,allocator>& str,
|
||||||
// ios_base::openmode which = ios_base::in);
|
// ios_base::openmode which = ios_base::in);
|
||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|||||||
@@ -12,8 +12,8 @@
|
|||||||
// template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
|
// template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
|
||||||
// class basic_stringbuf
|
// class basic_stringbuf
|
||||||
|
|
||||||
// template <class charT, class traits, class Allocator>
|
// template <class charT, class traits, class Allocator>
|
||||||
// void swap(basic_stringbuf<charT, traits, Allocator>& x,
|
// void swap(basic_stringbuf<charT, traits, Allocator>& x,
|
||||||
// basic_stringbuf<charT, traits, Allocator>& y);
|
// basic_stringbuf<charT, traits, Allocator>& y);
|
||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
|
// template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
|
||||||
// class basic_stringbuf
|
// class basic_stringbuf
|
||||||
|
|
||||||
// explicit basic_stringbuf(const basic_string<charT,traits,Allocator>& s,
|
// explicit basic_stringbuf(const basic_string<charT,traits,Allocator>& s,
|
||||||
// ios_base::openmode which = ios_base::in | ios_base::out);
|
// ios_base::openmode which = ios_base::in | ios_base::out);
|
||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
|
// template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
|
||||||
// class basic_stringbuf
|
// class basic_stringbuf
|
||||||
|
|
||||||
// pos_type seekoff(off_type off, ios_base::seekdir way,
|
// pos_type seekoff(off_type off, ios_base::seekdir way,
|
||||||
// ios_base::openmode which = ios_base::in | ios_base::out);
|
// ios_base::openmode which = ios_base::in | ios_base::out);
|
||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|||||||
@@ -48,5 +48,5 @@ int main()
|
|||||||
ss << i << ' ' << 123;
|
ss << i << ' ' << 123;
|
||||||
assert(ss.str() == L"456 1236 ");
|
assert(ss.str() == L"456 1236 ");
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
|
// template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
|
||||||
// class basic_stringstream
|
// class basic_stringstream
|
||||||
|
|
||||||
// explicit basic_stringstream(const basic_string<charT,traits,Allocator>& str,
|
// explicit basic_stringstream(const basic_string<charT,traits,Allocator>& str,
|
||||||
// ios_base::openmode which = ios_base::out|ios_base::in);
|
// ios_base::openmode which = ios_base::out|ios_base::in);
|
||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|||||||
@@ -50,5 +50,5 @@ int main()
|
|||||||
ss << i << ' ' << 123;
|
ss << i << ' ' << 123;
|
||||||
assert(ss.str() == L"456 1236 ");
|
assert(ss.str() == L"456 1236 ");
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,9 +12,9 @@
|
|||||||
// template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
|
// template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
|
||||||
// class basic_stringstream
|
// class basic_stringstream
|
||||||
|
|
||||||
// template <class charT, class traits, class Allocator>
|
// template <class charT, class traits, class Allocator>
|
||||||
// void
|
// void
|
||||||
// swap(basic_stringstream<charT, traits, Allocator>& x,
|
// swap(basic_stringstream<charT, traits, Allocator>& x,
|
||||||
// basic_stringstream<charT, traits, Allocator>& y);
|
// basic_stringstream<charT, traits, Allocator>& y);
|
||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|||||||
Reference in New Issue
Block a user