Fixing whitespace problems

llvm-svn: 111761
This commit is contained in:
Howard Hinnant 2010-08-22 00:39:25 +00:00
parent b5a4c50a03
commit 3bad6b61e5
78 changed files with 297 additions and 299 deletions

View File

@ -11,7 +11,7 @@
// template <class charT> class collate_byname
// int compare(const charT* low1, const charT* high1,
// int compare(const charT* low1, const charT* high1,
// const charT* low2, const charT* high2) const;
// I'm currently unable to confirm that collation based on named locales

View File

@ -9,16 +9,16 @@
// <locale>
// template <class charT>
// template <class charT>
// class collate_byname
// : public collate<charT>
// {
// public:
// typedef basic_string<charT> string_type;
// explicit collate_byname(const char*, size_t refs = 0);
// explicit collate_byname(const string&, size_t refs = 0);
// protected:
// ~collate_byname();
// public:
// typedef basic_string<charT> string_type;
// explicit collate_byname(const char*, size_t refs = 0);
// explicit collate_byname(const string&, size_t refs = 0);
// protected:
// ~collate_byname();
// };
#include <locale>

View File

@ -11,13 +11,12 @@
// template <class charT> class collate;
// int compare(const charT* low1, const charT* high1,
// int compare(const charT* low1, const charT* high1,
// const charT* low2, const charT* high2) const;
#include <locale>
#include <cassert>
int main()
{
std::locale l = std::locale::classic();

View File

@ -17,7 +17,6 @@
#include <string>
#include <cassert>
int main()
{
std::locale l = std::locale::classic();

View File

@ -9,13 +9,13 @@
// <locale>
// template <class charT>
// template <class charT>
// class collate
// : public locale::facet {
// public:
// typedef charT char_type;
// : public locale::facet {
// public:
// typedef charT char_type;
// typedef basic_string<charT>string_type;
//
//
// static locale::id id;
// };

View File

@ -10,22 +10,22 @@
// <locale>
// class ctype_base
// {
// public:
// typedef T mask;
//
// // numeric values are for exposition only.
// static const mask space = 1 << 0;
// static const mask print = 1 << 1;
// static const mask cntrl = 1 << 2;
// static const mask upper = 1 << 3;
// static const mask lower = 1 << 4;
// static const mask alpha = 1 << 5;
// static const mask digit = 1 << 6;
// static const mask punct = 1 << 7;
// static const mask xdigit = 1 << 8;
// static const mask alnum = alpha | digit;
// static const mask graph = alnum | punct;
// {
// public:
// typedef T mask;
//
// // numeric values are for exposition only.
// static const mask space = 1 << 0;
// static const mask print = 1 << 1;
// static const mask cntrl = 1 << 2;
// static const mask upper = 1 << 3;
// static const mask lower = 1 << 4;
// static const mask alpha = 1 << 5;
// static const mask digit = 1 << 6;
// static const mask punct = 1 << 7;
// static const mask xdigit = 1 << 8;
// static const mask alnum = alpha | digit;
// static const mask graph = alnum | punct;
// };
#include <locale>
@ -54,4 +54,4 @@ int main()
& std::ctype_base::xdigit) == 0);
assert(std::ctype_base::alnum == (std::ctype_base::alpha | std::ctype_base::digit));
assert(std::ctype_base::graph == (std::ctype_base::alnum | std::ctype_base::punct));
}
}

View File

@ -9,13 +9,13 @@
// <locale>
// template <>
// template <>
// class ctype<char>
// : public locale::facet,
// public ctype_base
// {
// public:
// typedef char char_type;
// public:
// typedef char char_type;
// };
#include <locale>

View File

@ -11,7 +11,7 @@
// class codecvt_base
// {
// public:
// public:
// enum result {ok, partial, error, noconv};
// };

View File

@ -11,8 +11,8 @@
// template <> class codecvt<char16_t, char, mbstate_t>
// result in(stateT& state,
// const externT* from, const externT* from_end, const externT*& from_next,
// result in(stateT& state,
// const externT* from, const externT* from_end, const externT*& from_next,
// internT* to, internT* to_end, internT*& to_next) const;
#include <locale>

View File

@ -11,8 +11,8 @@
// template <> class codecvt<char16_t, char, mbstate_t>
// result out(stateT& state,
// const internT* from, const internT* from_end, const internT*& from_next,
// result out(stateT& state,
// const internT* from, const internT* from_end, const internT*& from_next,
// externT* to, externT* to_end, externT*& to_next) const;
#include <locale>

View File

@ -11,8 +11,8 @@
// template <> class codecvt<char32_t, char, mbstate_t>
// result in(stateT& state,
// const externT* from, const externT* from_end, const externT*& from_next,
// result in(stateT& state,
// const externT* from, const externT* from_end, const externT*& from_next,
// internT* to, internT* to_end, internT*& to_next) const;
#include <locale>

View File

@ -11,8 +11,8 @@
// template <> class codecvt<char32_t, char, mbstate_t>
// result out(stateT& state,
// const internT* from, const internT* from_end, const internT*& from_next,
// result out(stateT& state,
// const internT* from, const internT* from_end, const internT*& from_next,
// externT* to, externT* to_end, externT*& to_next) const;
#include <locale>

View File

@ -11,8 +11,8 @@
// template <> class codecvt<char, char, mbstate_t>
// result in(stateT& state,
// const externT* from, const externT* from_end, const externT*& from_next,
// result in(stateT& state,
// const externT* from, const externT* from_end, const externT*& from_next,
// internT* to, internT* to_end, internT*& to_next) const;
#include <locale>

View File

@ -11,8 +11,8 @@
// template <> class codecvt<char, char, mbstate_t>
// result out(stateT& state,
// const internT* from, const internT* from_end, const internT*& from_next,
// result out(stateT& state,
// const internT* from, const internT* from_end, const internT*& from_next,
// externT* to, externT* to_end, externT*& to_next) const;
#include <locale>

View File

@ -11,8 +11,8 @@
// template <> class codecvt<wchar_t, char, mbstate_t>
// result in(stateT& state,
// const externT* from, const externT* from_end, const externT*& from_next,
// result in(stateT& state,
// const externT* from, const externT* from_end, const externT*& from_next,
// internT* to, internT* to_end, internT*& to_next) const;
#include <locale>

View File

@ -11,8 +11,8 @@
// template <> class codecvt<wchar_t, char, mbstate_t>
// result out(stateT& state,
// const internT* from, const internT* from_end, const internT*& from_next,
// result out(stateT& state,
// const internT* from, const internT* from_end, const internT*& from_next,
// externT* to, externT* to_end, externT*& to_next) const;
#include <locale>

View File

@ -14,10 +14,10 @@
// : public locale::facet,
// public codecvt_base
// {
// public:
// typedef char intern_type;
// typedef char extern_type;
// typedef mbstate_t state_type;
// public:
// typedef char intern_type;
// typedef char extern_type;
// typedef mbstate_t state_type;
// ...
// };

View File

@ -14,10 +14,10 @@
// : public locale::facet,
// public codecvt_base
// {
// public:
// typedef char16_t intern_type;
// typedef char extern_type;
// typedef mbstate_t state_type;
// public:
// typedef char16_t intern_type;
// typedef char extern_type;
// typedef mbstate_t state_type;
// ...
// };

View File

@ -14,10 +14,10 @@
// : public locale::facet,
// public codecvt_base
// {
// public:
// typedef char32_t intern_type;
// typedef char extern_type;
// typedef mbstate_t state_type;
// public:
// typedef char32_t intern_type;
// typedef char extern_type;
// typedef mbstate_t state_type;
// ...
// };

View File

@ -14,10 +14,10 @@
// : public locale::facet,
// public codecvt_base
// {
// public:
// typedef wchar_t intern_type;
// typedef char extern_type;
// typedef mbstate_t state_type;
// public:
// typedef wchar_t intern_type;
// typedef char extern_type;
// typedef mbstate_t state_type;
// ...
// };

View File

@ -24,37 +24,37 @@ int main()
{
typedef std::ctype<wchar_t> F;
const F& f = std::use_facet<F>(l);
assert(f.is(F::space, L' '));
assert(!f.is(F::space, L'A'));
assert(f.is(F::print, L' '));
assert(!f.is(F::print, L'\x07'));
assert(f.is(F::cntrl, L'\x07'));
assert(!f.is(F::cntrl, L' '));
assert(f.is(F::upper, L'A'));
assert(!f.is(F::upper, L'a'));
assert(f.is(F::lower, L'a'));
assert(!f.is(F::lower, L'A'));
assert(f.is(F::alpha, L'a'));
assert(!f.is(F::alpha, L'1'));
assert(f.is(F::digit, L'1'));
assert(!f.is(F::digit, L'a'));
assert(f.is(F::punct, L'.'));
assert(!f.is(F::punct, L'a'));
assert(f.is(F::xdigit, L'a'));
assert(!f.is(F::xdigit, L'g'));
assert(f.is(F::alnum, L'a'));
assert(!f.is(F::alnum, L'.'));
assert(f.is(F::graph, L'.'));
assert(!f.is(F::graph, L'\x07'));
@ -67,37 +67,37 @@ int main()
{
typedef std::ctype<wchar_t> F;
const F& f = std::use_facet<F>(l);
assert(f.is(F::space, L' '));
assert(!f.is(F::space, L'A'));
assert(f.is(F::print, L' '));
assert(!f.is(F::print, L'\x07'));
assert(f.is(F::cntrl, L'\x07'));
assert(!f.is(F::cntrl, L' '));
assert(f.is(F::upper, L'A'));
assert(!f.is(F::upper, L'a'));
assert(f.is(F::lower, L'a'));
assert(!f.is(F::lower, L'A'));
assert(f.is(F::alpha, L'a'));
assert(!f.is(F::alpha, L'1'));
assert(f.is(F::digit, L'1'));
assert(!f.is(F::digit, L'a'));
assert(f.is(F::punct, L'.'));
assert(!f.is(F::punct, L'a'));
assert(f.is(F::xdigit, L'a'));
assert(!f.is(F::xdigit, L'g'));
assert(f.is(F::alnum, L'a'));
assert(!f.is(F::alnum, L'.'));
assert(f.is(F::graph, L'.'));
assert(!f.is(F::graph, L'\x07'));

View File

@ -31,7 +31,7 @@ int main()
std::vector<F::mask> m(in.size());
const wchar_t* h = f.is(in.data(), in.data() + in.size(), m.data());
assert(h == in.data() + in.size());
// L'\x00DA'
assert(!(m[0] & F::space));
assert( (m[0] & F::print));
@ -45,7 +45,7 @@ int main()
assert(!(m[0] & F::blank));
assert( (m[0] & F::alnum));
assert( (m[0] & F::graph));
// L' '
assert( (m[1] & F::space));
assert( (m[1] & F::print));
@ -59,7 +59,7 @@ int main()
assert( (m[1] & F::blank));
assert(!(m[1] & F::alnum));
assert(!(m[1] & F::graph));
// L'A'
assert(!(m[2] & F::space));
assert( (m[2] & F::print));
@ -73,7 +73,7 @@ int main()
assert(!(m[2] & F::blank));
assert( (m[2] & F::alnum));
assert( (m[2] & F::graph));
// L'\x07'
assert(!(m[3] & F::space));
assert(!(m[3] & F::print));
@ -87,7 +87,7 @@ int main()
assert(!(m[3] & F::blank));
assert(!(m[3] & F::alnum));
assert(!(m[3] & F::graph));
// L'.'
assert(!(m[4] & F::space));
assert( (m[4] & F::print));
@ -101,7 +101,7 @@ int main()
assert(!(m[4] & F::blank));
assert(!(m[4] & F::alnum));
assert( (m[4] & F::graph));
// L'a'
assert(!(m[5] & F::space));
assert( (m[5] & F::print));
@ -115,7 +115,7 @@ int main()
assert(!(m[5] & F::blank));
assert( (m[5] & F::alnum));
assert( (m[5] & F::graph));
// L'1'
assert(!(m[6] & F::space));
assert( (m[6] & F::print));
@ -140,7 +140,7 @@ int main()
std::vector<F::mask> m(in.size());
const wchar_t* h = f.is(in.data(), in.data() + in.size(), m.data());
assert(h == in.data() + in.size());
// L'\x00DA'
assert(!(m[0] & F::space));
assert(!(m[0] & F::print));
@ -154,7 +154,7 @@ int main()
assert(!(m[0] & F::blank));
assert(!(m[0] & F::alnum));
assert(!(m[0] & F::graph));
// L' '
assert( (m[1] & F::space));
assert( (m[1] & F::print));
@ -168,7 +168,7 @@ int main()
assert( (m[1] & F::blank));
assert(!(m[1] & F::alnum));
assert(!(m[1] & F::graph));
// L'A'
assert(!(m[2] & F::space));
assert( (m[2] & F::print));
@ -182,7 +182,7 @@ int main()
assert(!(m[2] & F::blank));
assert( (m[2] & F::alnum));
assert( (m[2] & F::graph));
// L'\x07'
assert(!(m[3] & F::space));
assert(!(m[3] & F::print));
@ -196,7 +196,7 @@ int main()
assert(!(m[3] & F::blank));
assert(!(m[3] & F::alnum));
assert(!(m[3] & F::graph));
// L'.'
assert(!(m[4] & F::space));
assert( (m[4] & F::print));
@ -210,7 +210,7 @@ int main()
assert(!(m[4] & F::blank));
assert(!(m[4] & F::alnum));
assert( (m[4] & F::graph));
// L'a'
assert(!(m[5] & F::space));
assert( (m[5] & F::print));
@ -224,7 +224,7 @@ int main()
assert(!(m[5] & F::blank));
assert( (m[5] & F::alnum));
assert( (m[5] & F::graph));
// L'1'
assert(!(m[6] & F::space));
assert( (m[6] & F::print));

View File

@ -23,7 +23,7 @@ int main()
{
typedef std::ctype<wchar_t> F;
const F& f = std::use_facet<F>(l);
assert(f.narrow(L' ', '*') == ' ');
assert(f.narrow(L'A', '*') == 'A');
assert(f.narrow(L'\x07', '*') == '\x07');
@ -38,7 +38,7 @@ int main()
{
typedef std::ctype<wchar_t> F;
const F& f = std::use_facet<F>(l);
assert(f.narrow(L' ', '*') == ' ');
assert(f.narrow(L'A', '*') == 'A');
assert(f.narrow(L'\x07', '*') == '\x07');

View File

@ -27,7 +27,7 @@ int main()
const F& f = std::use_facet<F>(l);
std::wstring in(L" A\x07.a1\xDA");
std::vector<char> v(in.size());
assert(f.narrow(&in[0], in.data() + in.size(), '*', v.data()) == in.data() + in.size());
assert(v[0] == ' ');
assert(v[1] == 'A');
@ -45,7 +45,7 @@ int main()
const F& f = std::use_facet<F>(l);
std::wstring in(L" A\x07.a1\xDA");
std::vector<char> v(in.size());
assert(f.narrow(&in[0], in.data() + in.size(), '*', v.data()) == in.data() + in.size());
assert(v[0] == ' ');
assert(v[1] == 'A');

View File

@ -23,7 +23,7 @@ int main()
{
typedef std::ctype<char> F;
const F& f = std::use_facet<F>(l);
assert(f.tolower(' ') == ' ');
assert(f.tolower('A') == 'a');
assert(f.tolower('\x07') == '\x07');
@ -39,7 +39,7 @@ int main()
{
typedef std::ctype<char> F;
const F& f = std::use_facet<F>(l);
assert(f.tolower(' ') == ' ');
assert(f.tolower('A') == 'a');
assert(f.tolower('\x07') == '\x07');
@ -55,7 +55,7 @@ int main()
{
typedef std::ctype<wchar_t> F;
const F& f = std::use_facet<F>(l);
assert(f.tolower(L' ') == L' ');
assert(f.tolower(L'A') == L'a');
assert(f.tolower(L'\x07') == L'\x07');
@ -71,7 +71,7 @@ int main()
{
typedef std::ctype<wchar_t> F;
const F& f = std::use_facet<F>(l);
assert(f.tolower(L' ') == L' ');
assert(f.tolower(L'A') == L'a');
assert(f.tolower(L'\x07') == L'\x07');

View File

@ -25,7 +25,7 @@ int main()
typedef std::ctype<char> F;
const F& f = std::use_facet<F>(l);
std::string in("\xDA A\x07.a1");
assert(f.tolower(&in[0], in.data() + in.size()) == in.data() + in.size());
assert(in[0] == '\xDA');
assert(in[1] == ' ');
@ -42,7 +42,7 @@ int main()
typedef std::ctype<char> F;
const F& f = std::use_facet<F>(l);
std::string in("\xDA A\x07.a1");
assert(f.tolower(&in[0], in.data() + in.size()) == in.data() + in.size());
assert(in[0] == '\xDA');
assert(in[1] == ' ');
@ -59,7 +59,7 @@ int main()
typedef std::ctype<wchar_t> F;
const F& f = std::use_facet<F>(l);
std::wstring in(L"\xDA A\x07.a1");
assert(f.tolower(&in[0], in.data() + in.size()) == in.data() + in.size());
assert(in[0] == L'\xFA');
assert(in[1] == L' ');
@ -76,7 +76,7 @@ int main()
typedef std::ctype<wchar_t> F;
const F& f = std::use_facet<F>(l);
std::wstring in(L"\xDA A\x07.a1");
assert(f.tolower(&in[0], in.data() + in.size()) == in.data() + in.size());
assert(in[0] == L'\xDA');
assert(in[1] == L' ');

View File

@ -23,7 +23,7 @@ int main()
{
typedef std::ctype<char> F;
const F& f = std::use_facet<F>(l);
assert(f.toupper(' ') == ' ');
assert(f.toupper('A') == 'A');
assert(f.toupper('\x07') == '\x07');
@ -39,7 +39,7 @@ int main()
{
typedef std::ctype<char> F;
const F& f = std::use_facet<F>(l);
assert(f.toupper(' ') == ' ');
assert(f.toupper('A') == 'A');
assert(f.toupper('\x07') == '\x07');
@ -55,7 +55,7 @@ int main()
{
typedef std::ctype<wchar_t> F;
const F& f = std::use_facet<F>(l);
assert(f.toupper(L' ') == L' ');
assert(f.toupper(L'A') == L'A');
assert(f.toupper(L'\x07') == L'\x07');
@ -71,7 +71,7 @@ int main()
{
typedef std::ctype<wchar_t> F;
const F& f = std::use_facet<F>(l);
assert(f.toupper(L' ') == L' ');
assert(f.toupper(L'A') == L'A');
assert(f.toupper(L'\x07') == L'\x07');

View File

@ -25,7 +25,7 @@ int main()
typedef std::ctype<char> F;
const F& f = std::use_facet<F>(l);
std::string in("\xFA A\x07.a1");
assert(f.toupper(&in[0], in.data() + in.size()) == in.data() + in.size());
assert(in[0] == '\xFA');
assert(in[1] == ' ');
@ -42,7 +42,7 @@ int main()
typedef std::ctype<char> F;
const F& f = std::use_facet<F>(l);
std::string in("\xFA A\x07.a1");
assert(f.toupper(&in[0], in.data() + in.size()) == in.data() + in.size());
assert(in[0] == '\xFA');
assert(in[1] == ' ');
@ -59,7 +59,7 @@ int main()
typedef std::ctype<wchar_t> F;
const F& f = std::use_facet<F>(l);
std::wstring in(L"\xFA A\x07.a1");
assert(f.toupper(&in[0], in.data() + in.size()) == in.data() + in.size());
assert(in[0] == L'\xDA');
assert(in[1] == L' ');
@ -76,7 +76,7 @@ int main()
typedef std::ctype<wchar_t> F;
const F& f = std::use_facet<F>(l);
std::wstring in(L"\xFA A\x07.a1");
assert(f.toupper(&in[0], in.data() + in.size()) == in.data() + in.size());
assert(in[0] == L'\xFA');
assert(in[1] == L' ');

View File

@ -13,12 +13,12 @@
// class ctype_byname
// : public ctype<CharT>
// {
// public:
// explicit ctype_byname(const char*, size_t = 0);
// explicit ctype_byname(const string&, size_t = 0);
//
// protected:
// ~ctype_byname();
// public:
// explicit ctype_byname(const char*, size_t = 0);
// explicit ctype_byname(const string&, size_t = 0);
//
// protected:
// ~ctype_byname();
// };
#include <locale>

View File

@ -26,7 +26,7 @@ int main()
{
typedef std::ctype<wchar_t> F;
const F& f = std::use_facet<F>(l);
assert(f.widen(' ') == L' ');
assert(f.widen('A') == L'A');
assert(f.widen('\x07') == L'\x07');
@ -41,7 +41,7 @@ int main()
{
typedef std::ctype<wchar_t> F;
const F& f = std::use_facet<F>(l);
assert(f.widen(' ') == L' ');
assert(f.widen('A') == L'A');
assert(f.widen('\x07') == L'\x07');

View File

@ -29,7 +29,7 @@ int main()
const F& f = std::use_facet<F>(l);
std::string in(" A\x07.a1\x85");
std::vector<wchar_t> v(in.size());
assert(f.widen(&in[0], in.data() + in.size(), v.data()) == in.data() + in.size());
assert(v[0] == L' ');
assert(v[1] == L'A');
@ -47,7 +47,7 @@ int main()
const F& f = std::use_facet<F>(l);
std::string in(" A\x07.a1\x85");
std::vector<wchar_t> v(in.size());
assert(f.widen(&in[0], in.data() + in.size(), v.data()) == in.data() + in.size());
assert(v[0] == L' ');
assert(v[1] == L'A');

View File

@ -9,13 +9,13 @@
// <locale>
// template <class CharT>
// template <class CharT>
// class ctype
// : public locale::facet,
// public ctype_base
// {
// public:
// typedef CharT char_type;
// public:
// typedef CharT char_type;
// };
#include <locale>

View File

@ -52,4 +52,4 @@ operator!=(const input_iterator<T>& x, const input_iterator<U>& y)
return !(x == y);
}
#endif
#endif // ITERATORS_H

View File

@ -30,4 +30,4 @@ public:
{output_iterator tmp(*this); ++(*this); return tmp;}
};
#endif
#endif // ITERATORS_H

View File

@ -30,4 +30,4 @@ public:
{output_iterator tmp(*this); ++(*this); return tmp;}
};
#endif
#endif // ITERATORS_H

View File

@ -9,12 +9,12 @@
// <locale>
// template <class charT, class OutputIterator = ostreambuf_iterator<charT> >
// template <class charT, class OutputIterator = ostreambuf_iterator<charT> >
// class num_put
// : public locale::facet
// {
// public:
// typedef charT char_type;
// public:
// typedef charT char_type;
// typedef OutputIterator iter_type;
#include <locale>

View File

@ -60,7 +60,7 @@ int main()
const char str[] = "1";
std::ios_base::iostate err = ios.goodbit;
bool b;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, b);
@ -72,7 +72,7 @@ int main()
const char str[] = "0";
std::ios_base::iostate err = ios.goodbit;
bool b;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, b);
@ -84,7 +84,7 @@ int main()
const char str[] = "12";
std::ios_base::iostate err = ios.goodbit;
bool b;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, b);
@ -96,7 +96,7 @@ int main()
const char str[] = "*12";
std::ios_base::iostate err = ios.goodbit;
bool b;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, b);
@ -109,7 +109,7 @@ int main()
const char str[] = "1";
std::ios_base::iostate err = ios.goodbit;
bool b;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, b);
@ -121,7 +121,7 @@ int main()
const char str[] = "true";
std::ios_base::iostate err = ios.goodbit;
bool b;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, b);
@ -133,7 +133,7 @@ int main()
const char str[] = "false";
std::ios_base::iostate err = ios.goodbit;
bool b;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, b);
@ -146,7 +146,7 @@ int main()
const char str[] = "a";
std::ios_base::iostate err = ios.goodbit;
bool b;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+1),
ios, err, b);
@ -158,7 +158,7 @@ int main()
const char str[] = "abc";
std::ios_base::iostate err = ios.goodbit;
bool b;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+3),
ios, err, b);
@ -170,7 +170,7 @@ int main()
const char str[] = "acc";
std::ios_base::iostate err = ios.goodbit;
bool b;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+3),
ios, err, b);
@ -183,7 +183,7 @@ int main()
const char str[] = "a";
std::ios_base::iostate err = ios.goodbit;
bool b;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+1),
ios, err, b);
@ -195,7 +195,7 @@ int main()
const char str[] = "ab";
std::ios_base::iostate err = ios.goodbit;
bool b;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+2),
ios, err, b);
@ -207,7 +207,7 @@ int main()
const char str[] = "abc";
std::ios_base::iostate err = ios.goodbit;
bool b;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+3),
ios, err, b);
@ -219,7 +219,7 @@ int main()
const char str[] = "ac";
std::ios_base::iostate err = ios.goodbit;
bool b;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+2),
ios, err, b);

View File

@ -53,7 +53,7 @@ int main()
assert((ios.flags() & ios.basefield) == ios.dec);
assert(ios.getloc().name() == "C");
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -64,7 +64,7 @@ int main()
{
const char str[] = "-123";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -75,7 +75,7 @@ int main()
{
const char str[] = "123.5";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -87,7 +87,7 @@ int main()
const char str[] = "125e-1";
hex(ios);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -99,7 +99,7 @@ int main()
const char str[] = "0x125p-1";
hex(ios);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -111,7 +111,7 @@ int main()
const char str[] = "inf";
hex(ios);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -123,7 +123,7 @@ int main()
const char str[] = "INF";
hex(ios);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -135,7 +135,7 @@ int main()
const char str[] = "-inf";
hex(ios);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -147,7 +147,7 @@ int main()
const char str[] = "-INF";
hex(ios);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -159,7 +159,7 @@ int main()
const char str[] = "nan";
hex(ios);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -171,7 +171,7 @@ int main()
const char str[] = "NAN";
hex(ios);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -183,7 +183,7 @@ int main()
v = -1;
const char str[] = "123_456_78_9;125";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -196,7 +196,7 @@ int main()
v = -1;
const char str[] = "123_456_78_9;125";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -218,7 +218,7 @@ int main()
"1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_"
"1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);

View File

@ -41,7 +41,7 @@ int main()
assert((ios.flags() & ios.basefield) == ios.dec);
assert(ios.getloc().name() == "C");
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -52,7 +52,7 @@ int main()
{
const char str[] = "-123";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -63,7 +63,7 @@ int main()
{
const char str[] = "123.5";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -75,7 +75,7 @@ int main()
const char str[] = "125e-1";
hex(ios);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -87,7 +87,7 @@ int main()
const char str[] = "0x125p-1";
hex(ios);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -99,7 +99,7 @@ int main()
const char str[] = "inf";
hex(ios);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -111,7 +111,7 @@ int main()
const char str[] = "INF";
hex(ios);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -123,7 +123,7 @@ int main()
const char str[] = "-inf";
hex(ios);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -135,7 +135,7 @@ int main()
const char str[] = "-INF";
hex(ios);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -147,7 +147,7 @@ int main()
const char str[] = "nan";
hex(ios);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -159,7 +159,7 @@ int main()
const char str[] = "NAN";
hex(ios);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);

View File

@ -51,7 +51,7 @@ int main()
assert((ios.flags() & ios.basefield) == ios.dec);
assert(ios.getloc().name() == "C");
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -64,7 +64,7 @@ int main()
assert((ios.flags() & ios.basefield) == ios.dec);
assert(ios.getloc().name() == "C");
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -76,7 +76,7 @@ int main()
const char str[] = "123";
oct(ios);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -88,7 +88,7 @@ int main()
const char str[] = "123";
hex(ios);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -100,7 +100,7 @@ int main()
const char str[] = "0x123";
hex(ios);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -112,7 +112,7 @@ int main()
const char str[] = "123";
ios.setf(0, ios.basefield);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -124,7 +124,7 @@ int main()
const char str[] = "0x123";
ios.setf(0, ios.basefield);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -136,7 +136,7 @@ int main()
const char str[] = "0123";
ios.setf(0, ios.basefield);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -150,7 +150,7 @@ int main()
v = -1;
const char str[] = "123";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -162,7 +162,7 @@ int main()
v = -1;
const char str[] = "+1";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -174,7 +174,7 @@ int main()
v = -1;
const char str[] = "+1_";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -186,7 +186,7 @@ int main()
v = -1;
const char str[] = "+_1";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -198,7 +198,7 @@ int main()
v = -1;
const char str[] = "_+1";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -210,7 +210,7 @@ int main()
v = -1;
const char str[] = "+1__";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -222,7 +222,7 @@ int main()
v = -1;
const char str[] = "+_1_";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -234,7 +234,7 @@ int main()
v = -1;
const char str[] = "_+1_";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -246,7 +246,7 @@ int main()
v = -1;
const char str[] = "+__1";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -258,7 +258,7 @@ int main()
v = -1;
const char str[] = "_+_1";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -270,7 +270,7 @@ int main()
v = -1;
const char str[] = "__+1";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -282,7 +282,7 @@ int main()
v = -1;
const char str[] = "+1_2";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -294,7 +294,7 @@ int main()
v = -1;
const char str[] = "+12_";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -306,7 +306,7 @@ int main()
v = -1;
const char str[] = "+_12";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -318,7 +318,7 @@ int main()
v = -1;
const char str[] = "+1__2";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -330,7 +330,7 @@ int main()
v = -1;
const char str[] = "+12_3";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -342,7 +342,7 @@ int main()
v = -1;
const char str[] = "+1_23";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -354,7 +354,7 @@ int main()
v = -1;
const char str[] = "+1_23_4";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -366,7 +366,7 @@ int main()
v = -1;
const char str[] = "+123_4";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -378,7 +378,7 @@ int main()
v = -1;
const char str[] = "+12_34";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -390,7 +390,7 @@ int main()
v = -1;
const char str[] = "+12_34_5";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -402,7 +402,7 @@ int main()
v = -1;
const char str[] = "+123_45_6";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -414,7 +414,7 @@ int main()
v = -1;
const char str[] = "+1_23_45_6";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -426,7 +426,7 @@ int main()
v = -1;
const char str[] = "+1_234_56_7";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -438,7 +438,7 @@ int main()
v = -1;
const char str[] = "+1_234_567_89_0";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -450,7 +450,7 @@ int main()
v = -1;
const char str[] = "-1_234_567_89_0";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -462,7 +462,7 @@ int main()
v = -1;
const char str[] = "1_234_567_89_0";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -474,7 +474,7 @@ int main()
v = -1;
const char str[] = "1234_567_89_0";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -496,7 +496,7 @@ int main()
"1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_"
"1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_1_2_3_4_5_6_7_8_9_0_";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);

View File

@ -41,7 +41,7 @@ int main()
assert((ios.flags() & ios.basefield) == ios.dec);
assert(ios.getloc().name() == "C");
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -52,7 +52,7 @@ int main()
{
const char str[] = "-123";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -63,7 +63,7 @@ int main()
{
const char str[] = "123.5";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -75,7 +75,7 @@ int main()
const char str[] = "125e-1";
hex(ios);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -87,7 +87,7 @@ int main()
const char str[] = "0x125p-1";
hex(ios);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -99,7 +99,7 @@ int main()
const char str[] = "inf";
hex(ios);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -111,7 +111,7 @@ int main()
const char str[] = "INF";
hex(ios);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -123,7 +123,7 @@ int main()
const char str[] = "-inf";
hex(ios);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -135,7 +135,7 @@ int main()
const char str[] = "-INF";
hex(ios);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -147,7 +147,7 @@ int main()
const char str[] = "nan";
hex(ios);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -159,7 +159,7 @@ int main()
const char str[] = "NAN";
hex(ios);
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);

View File

@ -49,7 +49,7 @@ int main()
{
const char str[] = "0";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -60,7 +60,7 @@ int main()
{
const char str[] = "1";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -71,7 +71,7 @@ int main()
{
const char str[] = "-1";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -83,7 +83,7 @@ int main()
{
const char str[] = "0x7FFFFFFFFFFFFFFF";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -94,7 +94,7 @@ int main()
{
const char str[] = "-0x8000000000000000";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);

View File

@ -38,7 +38,7 @@ int main()
const char str[] = "0x0";
std::ios_base::iostate err = ios.goodbit;
void* p;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, p);
@ -50,7 +50,7 @@ int main()
const char str[] = "0x73";
std::ios_base::iostate err = ios.goodbit;
void* p;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, p);

View File

@ -49,7 +49,7 @@ int main()
{
const char str[] = "0";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -60,7 +60,7 @@ int main()
{
const char str[] = "1";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -72,7 +72,7 @@ int main()
{
const char str[] = "0xFFFFFFFF";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);

View File

@ -49,7 +49,7 @@ int main()
{
const char str[] = "0";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -60,7 +60,7 @@ int main()
{
const char str[] = "1";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -72,7 +72,7 @@ int main()
{
const char str[] = "0xFFFFFFFF";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);

View File

@ -49,7 +49,7 @@ int main()
{
const char str[] = "0";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -60,7 +60,7 @@ int main()
{
const char str[] = "1";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -72,7 +72,7 @@ int main()
{
const char str[] = "0xFFFFFFFFFFFFFFFF";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);

View File

@ -49,7 +49,7 @@ int main()
{
const char str[] = "0";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -60,7 +60,7 @@ int main()
{
const char str[] = "1";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);
@ -72,7 +72,7 @@ int main()
{
const char str[] = "0xFFFF";
std::ios_base::iostate err = ios.goodbit;
input_iterator<const char*> iter =
input_iterator<const char*> iter =
f.get(input_iterator<const char*>(str),
input_iterator<const char*>(str+sizeof(str)),
ios, err, v);

View File

@ -248,4 +248,4 @@ operator-(const random_access_iterator<T>& x, const random_access_iterator<U>& y
return x.base() - y.base();
}
#endif
#endif // ITERATORS_H

View File

@ -9,12 +9,12 @@
// <locale>
// template <class charT, class InputIterator = istreambuf_iterator<charT> >
// template <class charT, class InputIterator = istreambuf_iterator<charT> >
// class num_get
// : public locale::facet
// {
// public:
// typedef charT char_type;
// public:
// typedef charT char_type;
// typedef InputIterator iter_type;
#include <locale>

View File

@ -11,7 +11,7 @@
// class time_get_byname<charT, InputIterator>
// iter_type get(iter_type s, iter_type end, ios_base& f,
// iter_type get(iter_type s, iter_type end, ios_base& f,
// ios_base::iostate& err, tm *t, char format, char modifier = 0) const;
#include <locale>

View File

@ -11,7 +11,7 @@
// class time_get_byname<charT, InputIterator>
// iter_type get(iter_type s, iter_type end, ios_base& f,
// iter_type get(iter_type s, iter_type end, ios_base& f,
// ios_base::iostate& err, tm *t, char format, char modifier = 0) const;
#include <locale>

View File

@ -11,7 +11,7 @@
// class time_get_byname<charT, InputIterator>
// iter_type get_year(iter_type s, iter_type end, ios_base& str,
// iter_type get_year(iter_type s, iter_type end, ios_base& str,
// ios_base::iostate& err, tm* t) const;
#include <locale>

View File

@ -11,7 +11,7 @@
// class time_get_byname<charT, InputIterator>
// iter_type get_year(iter_type s, iter_type end, ios_base& str,
// iter_type get_year(iter_type s, iter_type end, ios_base& str,
// ios_base::iostate& err, tm* t) const;
#include <locale>

View File

@ -52,4 +52,4 @@ operator!=(const input_iterator<T>& x, const input_iterator<U>& y)
return !(x == y);
}
#endif
#endif // ITERATORS_H

View File

@ -11,7 +11,7 @@
// class time_get<charT, InputIterator>
// iter_type get(iter_type s, iter_type end, ios_base& f,
// iter_type get(iter_type s, iter_type end, ios_base& f,
// ios_base::iostate& err, tm *t, char format, char modifier = 0) const;
#include <locale>

View File

@ -11,7 +11,7 @@
// class time_get<charT, InputIterator>
// iter_type get_year(iter_type s, iter_type end, ios_base& str,
// iter_type get_year(iter_type s, iter_type end, ios_base& str,
// ios_base::iostate& err, tm* t) const;
#include <locale>

View File

@ -52,4 +52,4 @@ operator!=(const input_iterator<T>& x, const input_iterator<U>& y)
return !(x == y);
}
#endif
#endif // ITERATORS_H

View File

@ -14,14 +14,14 @@
// public:
// enum dateorder {no_order, dmy, mdy, ymd, ydm};
// };
//
// template <class charT, class InputIterator = istreambuf_iterator<charT> >
//
// template <class charT, class InputIterator = istreambuf_iterator<charT> >
// class time_get
// : public locale::facet,
// public time_base
// {
// public:
// typedef charT char_type;
// public:
// typedef charT char_type;
// typedef InputIterator iter_type;
#include <locale>

View File

@ -30,4 +30,4 @@ public:
{output_iterator tmp(*this); ++(*this); return tmp;}
};
#endif
#endif // ITERATORS_H

View File

@ -16,7 +16,7 @@
// public:
// explicit time_put_byname(const char* nm, size_t refs = 0);
// explicit time_put_byname(const string& nm, size_t refs = 0);
//
//
// protected:
// ~time_put_byname();
// };

View File

@ -30,4 +30,4 @@ public:
{output_iterator tmp(*this); ++(*this); return tmp;}
};
#endif
#endif // ITERATORS_H

View File

@ -11,7 +11,7 @@
// class time_put<charT, OutputIterator>
// iter_type put(iter_type s, ios_base& str, char_type fill, const tm* t,
// iter_type put(iter_type s, ios_base& str, char_type fill, const tm* t,
// const charT* pattern, const charT* pat_end) const;
#include <locale>

View File

@ -11,7 +11,7 @@
// class time_put<charT, OutputIterator>
// iter_type put(iter_type s, ios_base& str, char_type fill, const tm* t,
// iter_type put(iter_type s, ios_base& str, char_type fill, const tm* t,
// char format, char modifier = 0) const;
#include <locale>

View File

@ -9,12 +9,12 @@
// <locale>
// template <class charT, class OutputIterator = ostreambuf_iterator<charT> >
// template <class charT, class OutputIterator = ostreambuf_iterator<charT> >
// class time_put
// : public locale::facet
// {
// public:
// typedef charT char_type;
// public:
// typedef charT char_type;
// typedef OutputIterator iter_type;
#include <locale>

View File

@ -9,13 +9,13 @@
// <locale>
// template <class charT>
// template <class charT>
// class numpunct
// : public locale::facet
// {
// public:
// typedef charT char_type;
// typedef basic_string<charT> string_type;
// {
// public:
// typedef charT char_type;
// typedef basic_string<charT> string_type;
// static locale::id id;
#include <locale>

View File

@ -17,7 +17,7 @@
// // unspecified
// };
// int length(stateT& state, const externT* from, const externT* from_end,
// int length(stateT& state, const externT* from, const externT* from_end,
// size_t max) const;
#include <codecvt>

View File

@ -18,7 +18,7 @@
// };
// result
// unshift(stateT& state,
// unshift(stateT& state,
// externT* to, externT* to_end, externT*& to_next) const;
#include <codecvt>

View File

@ -17,7 +17,7 @@
// // unspecified
// };
// int length(stateT& state, const externT* from, const externT* from_end,
// int length(stateT& state, const externT* from, const externT* from_end,
// size_t max) const;
#include <codecvt>

View File

@ -18,7 +18,7 @@
// };
// result
// unshift(stateT& state,
// unshift(stateT& state,
// externT* to, externT* to_end, externT*& to_next) const;
#include <codecvt>

View File

@ -17,7 +17,7 @@
// // unspecified
// };
// int length(stateT& state, const externT* from, const externT* from_end,
// int length(stateT& state, const externT* from, const externT* from_end,
// size_t max) const;
#include <codecvt>

View File

@ -18,7 +18,7 @@
// };
// result
// unshift(stateT& state,
// unshift(stateT& state,
// externT* to, externT* to_end, externT*& to_next) const;
#include <codecvt>

View File

@ -97,4 +97,4 @@ int main()
assert(f.get() == -1);
}
std::remove("overflow.dat");
}
}

View File

@ -56,4 +56,4 @@ int main()
assert(f.sbumpc() == L'2');
assert(f.sgetc() == L'3');
}
}
}

View File

@ -11,9 +11,9 @@
// wbuffer_convert<Codecvt, Elem, Tr>
// 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);
// pos_type seekpos(pos_type sp,
// pos_type seekpos(pos_type sp,
// ios_base::openmode which = ios_base::in | ios_base::out);
// This test is not entirely portable

View File

@ -81,4 +81,4 @@ int main()
assert(f.sbumpc() == 0x4E53);
assert(f.sbumpc() == -1);
}
}
}

View File

@ -9,8 +9,8 @@
// <locale>
// template <class charT, class Traits, class Allocator>
// bool operator()(const basic_string<charT,Traits,Allocator>& s1,
// template <class charT, class Traits, class Allocator>
// bool operator()(const basic_string<charT,Traits,Allocator>& s1,
// const basic_string<charT,Traits,Allocator>& s2) const;
#include <locale>

View File

@ -10,12 +10,12 @@
// <locale>
// class locale::facet
// {
// protected:
// explicit facet(size_t refs = 0);
// virtual ~facet();
// facet(const facet&) = delete;
// void operator=(const facet&) = delete;
// {
// protected:
// explicit facet(size_t refs = 0);
// virtual ~facet();
// facet(const facet&) = delete;
// void operator=(const facet&) = delete;
// };
// This test isn't portable

View File

@ -11,7 +11,7 @@
// class locale::id
// {
// public:
// public:
// id();
// void operator=(const id&) = delete;
// id(const id&) = delete;