public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/6732: misaligned objects created by new
@ 2002-08-03 13:46 Gabriel Dos Reis
0 siblings, 0 replies; 7+ messages in thread
From: Gabriel Dos Reis @ 2002-08-03 13:46 UTC (permalink / raw)
To: bkoz; +Cc: gcc-prs
The following reply was made to PR libstdc++/6732; it has been noted by GNATS.
From: Gabriel Dos Reis <gdr@integrable-solutions.net>
To: bkoz@gcc.gnu.org
Cc: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org,
wesslen@users.sourceforge.net, gcc-gnats@gcc.gnu.org
Subject: Re: libstdc++/6732: misaligned objects created by new
Date: 03 Aug 2002 22:39:07 +0200
bkoz@gcc.gnu.org writes:
| State-Changed-Why:
| Supposedly, __sligned only works on up to 8 byte boundaries.
|
| See:
| http://gcc.gnu.org/onlinedocs/gcc/Type-Attributes.html#Type%20Attributes
Thanks for the pointer. Actually, the largest alignment is the
linker's call. It may be that on an IA-32, the linker can't support
alignment higher than 8. I can't see the exact reference in the
binutils documentation.
-- Gaby
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: libstdc++/6732: misaligned objects created by new
@ 2002-08-03 13:27 bkoz
0 siblings, 0 replies; 7+ messages in thread
From: bkoz @ 2002-08-03 13:27 UTC (permalink / raw)
To: bkoz, gcc-bugs, gcc-prs, nobody, wesslen
Synopsis: misaligned objects created by new
Responsible-Changed-From-To: unassigned->bkoz
Responsible-Changed-By: bkoz
Responsible-Changed-When: Sat Aug 3 13:27:01 2002
Responsible-Changed-Why:
Mine.
State-Changed-From-To: analyzed->closed
State-Changed-By: bkoz
State-Changed-When: Sat Aug 3 13:27:01 2002
State-Changed-Why:
Supposedly, __sligned only works on up to 8 byte boundaries.
See:
http://gcc.gnu.org/onlinedocs/gcc/Type-Attributes.html#Type%20Attributes
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6732
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: libstdc++/6732: misaligned objects created by new
@ 2002-07-03 22:51 bkoz
0 siblings, 0 replies; 7+ messages in thread
From: bkoz @ 2002-07-03 22:51 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, wesslen
Synopsis: misaligned objects created by new
State-Changed-From-To: open->analyzed
State-Changed-By: bkoz
State-Changed-When: Wed Jul 3 22:51:48 2002
State-Changed-Why:
I'm not quite convinced that this is a C++ library problem.
It seems like "C" also has the same issue.
Note that gcc-2.96, others also have the same behavior.
#include <iostream>
struct vec4
{
float x, y, z, w;
} __attribute__((__aligned__(16)));
int main()
{
std::allocator<vec4> a;
for (int i = 0; i < 10; ++i)
{
vec4* p = new vec4;
std::cerr << reinterpret_cast<void*>(p) << " ";
std::cerr << reinterpret_cast<std::size_t>(p) % 16 << " ";
std::cerr << std::endl;
}
for (int i = 0; i < 10; ++i)
{
vec4* p = reinterpret_cast<vec4*>(malloc(sizeof(vec4)));
std::cerr << reinterpret_cast<void*>(p) << " ";
std::cerr << reinterpret_cast<std::size_t>(p) % 16 << " ";
std::cerr << std::endl;
}
}
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6732
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: libstdc++/6732: misaligned objects created by new
@ 2002-05-27 5:36 bkoz
0 siblings, 0 replies; 7+ messages in thread
From: bkoz @ 2002-05-27 5:36 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, wesslen
Synopsis: misaligned objects created by new
State-Changed-From-To: feedback->open
State-Changed-By: bkoz
State-Changed-When: Mon May 27 04:57:13 2002
State-Changed-Why:
Appears to be a bug.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6732
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: libstdc++/6732: misaligned objects created by new
@ 2002-05-20 5:46 Daniel Wesslén
0 siblings, 0 replies; 7+ messages in thread
From: Daniel Wesslén @ 2002-05-20 5:46 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR libstdc++/6732; it has been noted by GNATS.
From: =?iso-8859-1?Q?Daniel_Wessl=E9n?= <wesslen@post.netlink.se>
To: <gcc-gnats@gcc.gnu.org>, <gcc-prs@gcc.gnu.org>,
<wesslen@users.sourceforge.net>, <gcc-bugs@gcc.gnu.org>,
<nobody@gcc.gnu.org>
Cc:
Subject: Re: libstdc++/6732: misaligned objects created by new
Date: Mon, 20 May 2002 14:38:54 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_0001_01C2000C.14E98110
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
I didn't actually, there was a problem when I submitted. Anyway, here it
is.
Preprocessed version attached.
More info:
Reading specs from /usr/local/lib/gcc-lib/i686-pc-cygwin/3.1/specs
Configured with: /usr/src/gcc/gcc-3.1/configure
Thread model: single
gcc version 3.1
Program:
#include <iostream>
struct vec4 {
float x, y, z, w;
} __attribute__((__aligned__(16)));
int main()
{
std::allocator<vec4> a;
for (;;) {
vec4 *p = new vec4;
std::cerr << unsigned(p) % 16 << ' ';
}
}
------=_NextPart_000_0001_01C2000C.14E98110
Content-Type: application/octet-stream;
name="bug.ii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="bug.ii"
# 1 "bug.cc"=0A=
# 1 "<built-in>"=0A=
# 1 "<command line>"=0A=
# 1 "bug.cc"=0A=
# 1 "/usr/local/include/g++-v3/iostream" 1 3=0A=
# 43 "/usr/local/include/g++-v3/iostream" 3=0A=
=0A=
# 1 "/usr/local/include/g++-v3/i686-pc-cygwin/bits/c++config.h" 1 3=0A=
# 34 "/usr/local/include/g++-v3/i686-pc-cygwin/bits/c++config.h" 3=0A=
# 1 "/usr/local/include/g++-v3/i686-pc-cygwin/bits/os_defines.h" 1 3=0A=
# 35 "/usr/local/include/g++-v3/i686-pc-cygwin/bits/c++config.h" 2 3=0A=
# 45 "/usr/local/include/g++-v3/iostream" 2 3=0A=
# 1 "/usr/local/include/g++-v3/ostream" 1 3=0A=
# 44 "/usr/local/include/g++-v3/ostream" 3=0A=
=0A=
# 1 "/usr/local/include/g++-v3/ios" 1 3=0A=
# 43 "/usr/local/include/g++-v3/ios" 3=0A=
=0A=
# 1 "/usr/local/include/g++-v3/iosfwd" 1 3=0A=
# 43 "/usr/local/include/g++-v3/iosfwd" 3=0A=
=0A=
=0A=
# 1 "/usr/local/include/g++-v3/bits/stringfwd.h" 1 3=0A=
# 43 "/usr/local/include/g++-v3/bits/stringfwd.h" 3=0A=
=0A=
=0A=
=0A=
namespace std=0A=
{=0A=
template<class _CharT>=0A=
struct char_traits;=0A=
=0A=
template<> struct char_traits<char>;=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _Alloc>=0A=
class allocator;=0A=
=0A=
template<typename _CharT, typename _Traits =3D char_traits<_CharT>,=0A=
typename _Alloc =3D allocator<_CharT> >=0A=
class basic_string;=0A=
=0A=
typedef basic_string<char> string;=0A=
typedef basic_string<wchar_t> wstring;=0A=
}=0A=
# 46 "/usr/local/include/g++-v3/iosfwd" 2 3=0A=
# 1 "/usr/local/include/g++-v3/bits/fpos.h" 1 3=0A=
# 43 "/usr/local/include/g++-v3/bits/fpos.h" 3=0A=
=0A=
# 1 "/usr/local/include/g++-v3/i686-pc-cygwin/bits/c++io.h" 1 3=0A=
# 35 "/usr/local/include/g++-v3/i686-pc-cygwin/bits/c++io.h" 3=0A=
# 1 "/usr/local/include/g++-v3/cstdio" 1 3=0A=
# 48 "/usr/local/include/g++-v3/cstdio" 3=0A=
=0A=
=0A=
# 1 "/usr/local/include/g++-v3/cstddef" 1 3=0A=
# 47 "/usr/local/include/g++-v3/cstddef" 3=0A=
=0A=
# 1 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.1/include/stddef.h" 1 3=0A=
# 147 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.1/include/stddef.h" 3=0A=
typedef int ptrdiff_t;=0A=
# 201 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.1/include/stddef.h" 3=0A=
typedef unsigned int size_t;=0A=
# 49 "/usr/local/include/g++-v3/cstddef" 2 3=0A=
=0A=
namespace std=0A=
{=0A=
using ::ptrdiff_t;=0A=
using ::size_t;=0A=
}=0A=
# 51 "/usr/local/include/g++-v3/cstdio" 2 3=0A=
=0A=
# 1 "/usr/include/stdio.h" 1 3=0A=
# 28 "/usr/include/stdio.h" 3=0A=
extern "C" {=0A=
=0A=
=0A=
=0A=
# 1 "/usr/include/_ansi.h" 1 3=0A=
# 15 "/usr/include/_ansi.h" 3=0A=
# 1 "/usr/include/sys/config.h" 1 3=0A=
# 132 "/usr/include/sys/config.h" 3=0A=
typedef int __int32_t;=0A=
typedef unsigned int __uint32_t;=0A=
# 16 "/usr/include/_ansi.h" 2 3=0A=
# 33 "/usr/include/stdio.h" 2 3=0A=
=0A=
=0A=
=0A=
=0A=
# 1 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.1/include/stddef.h" 1 3=0A=
# 38 "/usr/include/stdio.h" 2 3=0A=
=0A=
=0A=
# 1 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.1/include/stdarg.h" 1 3=0A=
# 43 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.1/include/stdarg.h" 3=0A=
typedef __builtin_va_list __gnuc_va_list;=0A=
# 41 "/usr/include/stdio.h" 2 3=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
# 1 "/usr/include/sys/reent.h" 1 3=0A=
# 9 "/usr/include/sys/reent.h" 3=0A=
extern "C" {=0A=
=0A=
=0A=
=0A=
=0A=
# 1 "/usr/include/sys/_types.h" 1 3=0A=
# 12 "/usr/include/sys/_types.h" 3=0A=
typedef long _off_t;=0A=
typedef long _ssize_t;=0A=
# 15 "/usr/include/sys/reent.h" 2 3=0A=
# 28 "/usr/include/sys/reent.h" 3=0A=
typedef __uint32_t __ULong;=0A=
=0A=
=0A=
struct _glue=0A=
{=0A=
struct _glue *_next;=0A=
int _niobs;=0A=
struct __sFILE *_iobs;=0A=
};=0A=
=0A=
struct _Bigint=0A=
{=0A=
struct _Bigint *_next;=0A=
int _k, _maxwds, _sign, _wds;=0A=
__ULong _x[1];=0A=
};=0A=
=0A=
=0A=
struct __tm=0A=
{=0A=
int __tm_sec;=0A=
int __tm_min;=0A=
int __tm_hour;=0A=
int __tm_mday;=0A=
int __tm_mon;=0A=
int __tm_year;=0A=
int __tm_wday;=0A=
int __tm_yday;=0A=
int __tm_isdst;=0A=
};=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
struct _atexit {=0A=
struct _atexit *_next;=0A=
int _ind;=0A=
void (*_fns[32])(void);=0A=
};=0A=
# 78 "/usr/include/sys/reent.h" 3=0A=
struct __sbuf {=0A=
unsigned char *_base;=0A=
int _size;=0A=
};=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
typedef long _fpos_t;=0A=
# 116 "/usr/include/sys/reent.h" 3=0A=
struct __sFILE {=0A=
unsigned char *_p;=0A=
int _r;=0A=
int _w;=0A=
short _flags;=0A=
short _file;=0A=
struct __sbuf _bf;=0A=
int _lbfsize;=0A=
=0A=
=0A=
void * _cookie;=0A=
=0A=
_ssize_t __attribute__((__cdecl__)) (*_read) (void * _cookie, char =
*_buf, int _n);=0A=
_ssize_t __attribute__((__cdecl__)) (*_write) (void * _cookie, const =
char *_buf, int _n);=0A=
=0A=
_fpos_t __attribute__((__cdecl__)) (*_seek) (void * _cookie, _fpos_t =
_offset, int _whence);=0A=
int __attribute__((__cdecl__)) (*_close) (void * _cookie);=0A=
=0A=
=0A=
struct __sbuf _ub;=0A=
unsigned char *_up;=0A=
int _ur;=0A=
=0A=
=0A=
unsigned char _ubuf[3];=0A=
unsigned char _nbuf[1];=0A=
=0A=
=0A=
struct __sbuf _lb;=0A=
=0A=
=0A=
int _blksize;=0A=
int _offset;=0A=
=0A=
struct _reent *_data;=0A=
};=0A=
# 174 "/usr/include/sys/reent.h" 3=0A=
struct _rand48 {=0A=
unsigned short _seed[3];=0A=
unsigned short _mult[3];=0A=
unsigned short _add;=0A=
};=0A=
# 188 "/usr/include/sys/reent.h" 3=0A=
struct _reent=0A=
{=0A=
=0A=
int _errno;=0A=
=0A=
=0A=
=0A=
=0A=
struct __sFILE *_stdin, *_stdout, *_stderr;=0A=
=0A=
int _inc;=0A=
char _emergency[25];=0A=
=0A=
int _current_category;=0A=
const char *_current_locale;=0A=
=0A=
int __sdidinit;=0A=
=0A=
void __attribute__((__cdecl__)) (*__cleanup) (struct _reent *);=0A=
=0A=
=0A=
struct _Bigint *_result;=0A=
int _result_k;=0A=
struct _Bigint *_p5s;=0A=
struct _Bigint **_freelist;=0A=
=0A=
=0A=
int _cvtlen;=0A=
char *_cvtbuf;=0A=
=0A=
union=0A=
{=0A=
struct=0A=
{=0A=
unsigned int _unused_rand;=0A=
char * _strtok_last;=0A=
char _asctime_buf[26];=0A=
struct __tm _localtime_buf;=0A=
int _gamma_signgam;=0A=
__extension__ unsigned long long _rand_next;=0A=
struct _rand48 _r48;=0A=
} _reent;=0A=
=0A=
=0A=
=0A=
struct=0A=
{=0A=
=0A=
unsigned char * _nextf[30];=0A=
unsigned int _nmalloc[30];=0A=
} _unused;=0A=
} _new;=0A=
=0A=
=0A=
struct _atexit *_atexit;=0A=
struct _atexit _atexit0;=0A=
=0A=
=0A=
void (**(_sig_func))(int);=0A=
=0A=
=0A=
=0A=
=0A=
struct _glue __sglue;=0A=
struct __sFILE __sf[3];=0A=
};=0A=
# 273 "/usr/include/sys/reent.h" 3=0A=
extern struct _reent *_impure_ptr ;=0A=
=0A=
void _reclaim_reent (struct _reent *);=0A=
# 284 "/usr/include/sys/reent.h" 3=0A=
}=0A=
# 49 "/usr/include/stdio.h" 2 3=0A=
=0A=
typedef _fpos_t fpos_t;=0A=
=0A=
typedef struct __sFILE FILE;=0A=
# 150 "/usr/include/stdio.h" 3=0A=
FILE * __attribute__((__cdecl__)) tmpfile (void);=0A=
char * __attribute__((__cdecl__)) tmpnam (char *);=0A=
int __attribute__((__cdecl__)) fclose (FILE *);=0A=
int __attribute__((__cdecl__)) fflush (FILE *);=0A=
FILE * __attribute__((__cdecl__)) freopen (const char *, const char *, =
FILE *);=0A=
void __attribute__((__cdecl__)) setbuf (FILE *, char *);=0A=
int __attribute__((__cdecl__)) setvbuf (FILE *, char *, int, size_t);=0A=
int __attribute__((__cdecl__)) fprintf (FILE *, const char *, ...);=0A=
int __attribute__((__cdecl__)) fscanf (FILE *, const char *, ...);=0A=
int __attribute__((__cdecl__)) printf (const char *, ...);=0A=
int __attribute__((__cdecl__)) scanf (const char *, ...);=0A=
int __attribute__((__cdecl__)) sscanf (const char *, const char *, ...);=0A=
int __attribute__((__cdecl__)) vfprintf (FILE *, const char *, =
__gnuc_va_list);=0A=
int __attribute__((__cdecl__)) vprintf (const char *, __gnuc_va_list);=0A=
int __attribute__((__cdecl__)) vsprintf (char *, const char *, =
__gnuc_va_list);=0A=
int __attribute__((__cdecl__)) fgetc (FILE *);=0A=
char * __attribute__((__cdecl__)) fgets (char *, int, FILE *);=0A=
int __attribute__((__cdecl__)) fputc (int, FILE *);=0A=
int __attribute__((__cdecl__)) fputs (const char *, FILE *);=0A=
int __attribute__((__cdecl__)) getc (FILE *);=0A=
int __attribute__((__cdecl__)) getchar (void);=0A=
char * __attribute__((__cdecl__)) gets (char *);=0A=
int __attribute__((__cdecl__)) putc (int, FILE *);=0A=
int __attribute__((__cdecl__)) putchar (int);=0A=
int __attribute__((__cdecl__)) puts (const char *);=0A=
int __attribute__((__cdecl__)) ungetc (int, FILE *);=0A=
size_t __attribute__((__cdecl__)) fread (void *, size_t _size, size_t =
_n, FILE *);=0A=
size_t __attribute__((__cdecl__)) fwrite (const void * , size_t _size, =
size_t _n, FILE *);=0A=
int __attribute__((__cdecl__)) fgetpos (FILE *, fpos_t *);=0A=
int __attribute__((__cdecl__)) fseek (FILE *, long, int);=0A=
int __attribute__((__cdecl__)) fsetpos (FILE *, const fpos_t *);=0A=
long __attribute__((__cdecl__)) ftell ( FILE *);=0A=
void __attribute__((__cdecl__)) rewind (FILE *);=0A=
void __attribute__((__cdecl__)) clearerr (FILE *);=0A=
int __attribute__((__cdecl__)) feof (FILE *);=0A=
int __attribute__((__cdecl__)) ferror (FILE *);=0A=
void __attribute__((__cdecl__)) perror (const char *);=0A=
=0A=
FILE * __attribute__((__cdecl__)) fopen (const char *_name, const char =
*_type);=0A=
int __attribute__((__cdecl__)) sprintf (char *, const char *, ...);=0A=
int __attribute__((__cdecl__)) remove (const char *);=0A=
int __attribute__((__cdecl__)) rename (const char *, const char *);=0A=
=0A=
=0A=
int __attribute__((__cdecl__)) vfiprintf (FILE *, const char *, =
__gnuc_va_list);=0A=
int __attribute__((__cdecl__)) iprintf (const char *, ...);=0A=
int __attribute__((__cdecl__)) fiprintf (FILE *, const char *, ...);=0A=
int __attribute__((__cdecl__)) siprintf (char *, const char *, ...);=0A=
char * __attribute__((__cdecl__)) tempnam (const char *, const char *);=0A=
int __attribute__((__cdecl__)) vsnprintf (char *, size_t, const char *, =
__gnuc_va_list);=0A=
int __attribute__((__cdecl__)) vfscanf (FILE *, const char *, =
__gnuc_va_list);=0A=
int __attribute__((__cdecl__)) vscanf (const char *, __gnuc_va_list);=0A=
int __attribute__((__cdecl__)) vsscanf (const char *, const char *, =
__gnuc_va_list);=0A=
=0A=
int __attribute__((__cdecl__)) snprintf (char *, size_t, const char *, =
...);=0A=
# 214 "/usr/include/stdio.h" 3=0A=
FILE * __attribute__((__cdecl__)) fdopen (int, const char *);=0A=
=0A=
int __attribute__((__cdecl__)) fileno (FILE *);=0A=
int __attribute__((__cdecl__)) getw (FILE *);=0A=
int __attribute__((__cdecl__)) pclose (FILE *);=0A=
FILE * __attribute__((__cdecl__)) popen (const char *, const char *);=0A=
int __attribute__((__cdecl__)) putw (int, FILE *);=0A=
void __attribute__((__cdecl__)) setbuffer (FILE *, char *, int);=0A=
int __attribute__((__cdecl__)) setlinebuf (FILE *);=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
FILE * __attribute__((__cdecl__)) _fdopen_r (struct _reent *, int, const =
char *);=0A=
FILE * __attribute__((__cdecl__)) _fopen_r (struct _reent *, const char =
*, const char *);=0A=
int __attribute__((__cdecl__)) _fscanf_r (struct _reent *, FILE *, const =
char *, ...);=0A=
int __attribute__((__cdecl__)) _getchar_r (struct _reent *);=0A=
char * __attribute__((__cdecl__)) _gets_r (struct _reent *, char *);=0A=
int __attribute__((__cdecl__)) _iprintf_r (struct _reent *, const char =
*, ...);=0A=
int __attribute__((__cdecl__)) _mkstemp_r (struct _reent *, char *);=0A=
char * __attribute__((__cdecl__)) _mktemp_r (struct _reent *, char *);=0A=
void __attribute__((__cdecl__)) _perror_r (struct _reent *, const char =
*);=0A=
int __attribute__((__cdecl__)) _printf_r (struct _reent *, const char *, =
...);=0A=
int __attribute__((__cdecl__)) _putchar_r (struct _reent *, int);=0A=
int __attribute__((__cdecl__)) _puts_r (struct _reent *, const char *);=0A=
int __attribute__((__cdecl__)) _remove_r (struct _reent *, const char *);=0A=
int __attribute__((__cdecl__)) _rename_r (struct _reent *, const char =
*_old, const char *_new);=0A=
=0A=
int __attribute__((__cdecl__)) _scanf_r (struct _reent *, const char *, =
...);=0A=
int __attribute__((__cdecl__)) _sprintf_r (struct _reent *, char *, =
const char *, ...);=0A=
int __attribute__((__cdecl__)) _snprintf_r (struct _reent *, char *, =
size_t, const char *, ...);=0A=
int __attribute__((__cdecl__)) _sscanf_r (struct _reent *, const char *, =
const char *, ...);=0A=
char * __attribute__((__cdecl__)) _tempnam_r (struct _reent *, const =
char *, const char *);=0A=
FILE * __attribute__((__cdecl__)) _tmpfile_r (struct _reent *);=0A=
char * __attribute__((__cdecl__)) _tmpnam_r (struct _reent *, char *);=0A=
int __attribute__((__cdecl__)) _vfprintf_r (struct _reent *, FILE *, =
const char *, __gnuc_va_list);=0A=
int __attribute__((__cdecl__)) _vprintf_r (struct _reent *, const char =
*, __gnuc_va_list);=0A=
int __attribute__((__cdecl__)) _vsprintf_r (struct _reent *, char *, =
const char *, __gnuc_va_list);=0A=
int __attribute__((__cdecl__)) _vsnprintf_r (struct _reent *, char *, =
size_t, const char *, __gnuc_va_list);=0A=
int __attribute__((__cdecl__)) _vfscanf_r (struct _reent *, FILE *, =
const char *, __gnuc_va_list);=0A=
int __attribute__((__cdecl__)) _vscanf_r (struct _reent *, const char *, =
__gnuc_va_list);=0A=
int __attribute__((__cdecl__)) _vsscanf_r (struct _reent *, const char =
*, const char *, __gnuc_va_list);=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
int __attribute__((__cdecl__)) __srget (FILE *);=0A=
int __attribute__((__cdecl__)) __swbuf (int, FILE *);=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
FILE *__attribute__((__cdecl__)) funopen (const void * _cookie, int =
(*readfn)(void * _cookie, char *_buf, int _n), int (*writefn)(void * =
_cookie, const char *_buf, int _n), fpos_t (*seekfn)(void * _cookie, =
fpos_t _off, int _whence), int (*closefn)(void * _cookie));=0A=
# 288 "/usr/include/stdio.h" 3=0A=
static __inline__ int __sgetc(FILE *__p)=0A=
{=0A=
int __c =3D (--(__p)->_r < 0 ? __srget(__p) : (int)(*(__p)->_p++));=0A=
if ((__p->_flags & 0x4000) && (__c =3D=3D '\r'))=0A=
{=0A=
int __c2 =3D (--(__p)->_r < 0 ? __srget(__p) : =
(int)(*(__p)->_p++));=0A=
if (__c2 =3D=3D '\n')=0A=
__c =3D __c2;=0A=
else=0A=
ungetc(__c2, __p);=0A=
}=0A=
return __c;=0A=
}=0A=
# 371 "/usr/include/stdio.h" 3=0A=
}=0A=
# 53 "/usr/local/include/g++-v3/cstdio" 2 3=0A=
# 97 "/usr/local/include/g++-v3/cstdio" 3=0A=
namespace std=0A=
{=0A=
using ::FILE;=0A=
using ::fpos_t;=0A=
=0A=
using ::clearerr;=0A=
using ::fclose;=0A=
using ::feof;=0A=
using ::ferror;=0A=
using ::fflush;=0A=
using ::fgetc;=0A=
using ::fgetpos;=0A=
using ::fgets;=0A=
using ::fopen;=0A=
using ::fprintf;=0A=
using ::fputc;=0A=
using ::fputs;=0A=
using ::fread;=0A=
using ::freopen;=0A=
using ::fscanf;=0A=
using ::fseek;=0A=
using ::fsetpos;=0A=
using ::ftell;=0A=
using ::fwrite;=0A=
using ::getc;=0A=
using ::getchar;=0A=
using ::gets;=0A=
using ::perror;=0A=
using ::printf;=0A=
using ::putc;=0A=
using ::putchar;=0A=
using ::puts;=0A=
using ::remove;=0A=
using ::rename;=0A=
using ::rewind;=0A=
using ::scanf;=0A=
using ::setbuf;=0A=
using ::setvbuf;=0A=
using ::sprintf;=0A=
using ::sscanf;=0A=
using ::tmpfile;=0A=
using ::tmpnam;=0A=
using ::ungetc;=0A=
using ::vfprintf;=0A=
using ::vprintf;=0A=
using ::vsprintf;=0A=
}=0A=
# 36 "/usr/local/include/g++-v3/i686-pc-cygwin/bits/c++io.h" 2 3=0A=
=0A=
# 1 "/usr/local/include/g++-v3/i686-pc-cygwin/bits/gthr.h" 1 3=0A=
# 102 "/usr/local/include/g++-v3/i686-pc-cygwin/bits/gthr.h" 3=0A=
# 1 "/usr/local/include/g++-v3/i686-pc-cygwin/bits/gthr-single.h" 1 3=0A=
# 34 "/usr/local/include/g++-v3/i686-pc-cygwin/bits/gthr-single.h" 3=0A=
typedef int __gthread_mutex_t;=0A=
# 211 "/usr/local/include/g++-v3/i686-pc-cygwin/bits/gthr-single.h" 3=0A=
static inline int=0A=
__gthread_active_p (void)=0A=
{=0A=
return 0;=0A=
}=0A=
=0A=
static inline int=0A=
__gthread_mutex_lock (__gthread_mutex_t * )=0A=
{=0A=
return 0;=0A=
}=0A=
=0A=
static inline int=0A=
__gthread_mutex_trylock (__gthread_mutex_t * )=0A=
{=0A=
return 0;=0A=
}=0A=
=0A=
static inline int=0A=
__gthread_mutex_unlock (__gthread_mutex_t * )=0A=
{=0A=
return 0;=0A=
}=0A=
# 103 "/usr/local/include/g++-v3/i686-pc-cygwin/bits/gthr.h" 2 3=0A=
# 38 "/usr/local/include/g++-v3/i686-pc-cygwin/bits/c++io.h" 2 3=0A=
=0A=
namespace std=0A=
{=0A=
=0A=
typedef long streamoff;=0A=
typedef ptrdiff_t streamsize;=0A=
=0A=
=0A=
=0A=
typedef fpos_t __c_streampos;=0A=
=0A=
typedef __gthread_mutex_t __c_lock;=0A=
=0A=
=0A=
typedef FILE __c_file;=0A=
=0A=
=0A=
struct __ios_flags=0A=
{=0A=
typedef short __int_type;=0A=
=0A=
static const __int_type _S_boolalpha =3D 0x0001;=0A=
static const __int_type _S_dec =3D 0x0002;=0A=
static const __int_type _S_fixed =3D 0x0004;=0A=
static const __int_type _S_hex =3D 0x0008;=0A=
static const __int_type _S_internal =3D 0x0010;=0A=
static const __int_type _S_left =3D 0x0020;=0A=
static const __int_type _S_oct =3D 0x0040;=0A=
static const __int_type _S_right =3D 0x0080;=0A=
static const __int_type _S_scientific =3D 0x0100;=0A=
static const __int_type _S_showbase =3D 0x0200;=0A=
static const __int_type _S_showpoint =3D 0x0400;=0A=
static const __int_type _S_showpos =3D 0x0800;=0A=
static const __int_type _S_skipws =3D 0x1000;=0A=
static const __int_type _S_unitbuf =3D 0x2000;=0A=
static const __int_type _S_uppercase =3D 0x4000;=0A=
static const __int_type _S_adjustfield =3D 0x0020 | 0x0080 | 0x0010;=0A=
static const __int_type _S_basefield =3D 0x0002 | 0x0040 | 0x0008;=0A=
static const __int_type _S_floatfield =3D 0x0100 | 0x0004;=0A=
=0A=
=0A=
static const __int_type _S_badbit =3D 0x01;=0A=
static const __int_type _S_eofbit =3D 0x02;=0A=
static const __int_type _S_failbit =3D 0x04;=0A=
=0A=
=0A=
static const __int_type _S_app =3D 0x01;=0A=
static const __int_type _S_ate =3D 0x02;=0A=
static const __int_type _S_bin =3D 0x04;=0A=
static const __int_type _S_in =3D 0x08;=0A=
static const __int_type _S_out =3D 0x10;=0A=
static const __int_type _S_trunc =3D 0x20;=0A=
};=0A=
}=0A=
# 45 "/usr/local/include/g++-v3/bits/fpos.h" 2 3=0A=
# 1 "/usr/local/include/g++-v3/cwchar" 1 3=0A=
# 48 "/usr/local/include/g++-v3/cwchar" 3=0A=
=0A=
=0A=
=0A=
# 1 "/usr/local/include/g++-v3/ctime" 1 3=0A=
# 48 "/usr/local/include/g++-v3/ctime" 3=0A=
=0A=
=0A=
=0A=
# 1 "/usr/include/time.h" 1 3=0A=
# 13 "/usr/include/time.h" 3=0A=
extern "C" {=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
# 1 "/usr/include/machine/time.h" 1 3=0A=
# 22 "/usr/include/time.h" 2 3=0A=
# 30 "/usr/include/time.h" 3=0A=
# 1 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.1/include/stddef.h" 1 3=0A=
# 31 "/usr/include/time.h" 2 3=0A=
=0A=
# 1 "/usr/include/sys/types.h" 1 3=0A=
# 31 "/usr/include/sys/types.h" 3=0A=
# 1 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.1/include/stddef.h" 1 3=0A=
# 32 "/usr/include/sys/types.h" 2 3=0A=
# 1 "/usr/include/machine/types.h" 1 3=0A=
# 33 "/usr/include/sys/types.h" 2 3=0A=
# 54 "/usr/include/sys/types.h" 3=0A=
typedef unsigned char u_char;=0A=
typedef unsigned short u_short;=0A=
typedef unsigned int u_int;=0A=
typedef unsigned long u_long;=0A=
=0A=
=0A=
=0A=
typedef unsigned short ushort;=0A=
typedef unsigned int uint;=0A=
=0A=
=0A=
=0A=
typedef unsigned long clock_t;=0A=
=0A=
=0A=
=0A=
=0A=
typedef long time_t;=0A=
=0A=
=0A=
=0A=
=0A=
struct timespec {=0A=
time_t tv_sec;=0A=
long tv_nsec;=0A=
};=0A=
=0A=
struct itimerspec {=0A=
struct timespec it_interval;=0A=
struct timespec it_value;=0A=
};=0A=
=0A=
=0A=
typedef long daddr_t;=0A=
typedef char * caddr_t;=0A=
=0A=
=0A=
typedef unsigned long ino_t;=0A=
# 101 "/usr/include/sys/types.h" 3=0A=
typedef unsigned long vm_offset_t;=0A=
typedef unsigned long vm_size_t;=0A=
=0A=
=0A=
=0A=
typedef char int8_t;=0A=
typedef unsigned char u_int8_t;=0A=
typedef short int16_t;=0A=
typedef unsigned short u_int16_t;=0A=
typedef int int32_t;=0A=
typedef unsigned int u_int32_t;=0A=
typedef long long int64_t;=0A=
typedef unsigned long long u_int64_t;=0A=
typedef int32_t register_t;=0A=
# 128 "/usr/include/sys/types.h" 3=0A=
typedef short dev_t;=0A=
=0A=
=0A=
typedef long off_t;=0A=
=0A=
typedef unsigned short uid_t;=0A=
typedef unsigned short gid_t;=0A=
typedef int pid_t;=0A=
typedef long key_t;=0A=
typedef long ssize_t;=0A=
=0A=
=0A=
typedef char * addr_t;=0A=
typedef int mode_t;=0A=
# 154 "/usr/include/sys/types.h" 3=0A=
typedef unsigned short nlink_t;=0A=
# 176 "/usr/include/sys/types.h" 3=0A=
typedef long fd_mask;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
typedef struct _types_fd_set {=0A=
fd_mask fds_bits[(((64)+(((sizeof (fd_mask) * 8))-1))/((sizeof =
(fd_mask) * 8)))];=0A=
} _types_fd_set;=0A=
# 212 "/usr/include/sys/types.h" 3=0A=
typedef unsigned long clockid_t;=0A=
=0A=
=0A=
=0A=
=0A=
typedef unsigned long timer_t;=0A=
=0A=
=0A=
=0A=
=0A=
typedef long useconds_t;=0A=
=0A=
=0A=
# 1 "/usr/include/sys/features.h" 1 3=0A=
# 25 "/usr/include/sys/features.h" 3=0A=
extern "C" {=0A=
# 92 "/usr/include/sys/features.h" 3=0A=
}=0A=
# 226 "/usr/include/sys/types.h" 2 3=0A=
# 330 "/usr/include/sys/types.h" 3=0A=
# 1 "/usr/include/cygwin/types.h" 1 3=0A=
# 13 "/usr/include/cygwin/types.h" 3=0A=
extern "C"=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
typedef void *pthread_t;=0A=
typedef void *pthread_mutex_t;=0A=
=0A=
typedef void *pthread_key_t;=0A=
typedef void *pthread_attr_t;=0A=
typedef void *pthread_mutexattr_t;=0A=
typedef void *pthread_condattr_t;=0A=
typedef void *pthread_cond_t;=0A=
=0A=
=0A=
typedef struct=0A=
{=0A=
pthread_mutex_t mutex;=0A=
int state;=0A=
}=0A=
pthread_once_t;=0A=
typedef void *pthread_rwlock_t;=0A=
typedef void *pthread_rwlockattr_t;=0A=
# 62 "/usr/include/cygwin/types.h" 3=0A=
}=0A=
# 331 "/usr/include/sys/types.h" 2 3=0A=
# 33 "/usr/include/time.h" 2 3=0A=
=0A=
struct tm=0A=
{=0A=
int tm_sec;=0A=
int tm_min;=0A=
int tm_hour;=0A=
int tm_mday;=0A=
int tm_mon;=0A=
int tm_year;=0A=
int tm_wday;=0A=
int tm_yday;=0A=
int tm_isdst;=0A=
};=0A=
=0A=
clock_t __attribute__((__cdecl__)) clock (void);=0A=
double __attribute__((__cdecl__)) difftime (time_t _time2, time_t =
_time1);=0A=
time_t __attribute__((__cdecl__)) mktime (struct tm *_timeptr);=0A=
time_t __attribute__((__cdecl__)) time (time_t *_timer);=0A=
=0A=
char *__attribute__((__cdecl__)) asctime (const struct tm *_tblock);=0A=
char *__attribute__((__cdecl__)) ctime (const time_t *_time);=0A=
struct tm *__attribute__((__cdecl__)) gmtime (const time_t *_timer);=0A=
struct tm *__attribute__((__cdecl__)) localtime (const time_t *_timer);=0A=
=0A=
size_t __attribute__((__cdecl__)) strftime (char *_s, size_t _maxsize, =
const char *_fmt, const struct tm *_t);=0A=
=0A=
char *__attribute__((__cdecl__)) asctime_r (const struct tm *, char *);=0A=
char *__attribute__((__cdecl__)) ctime_r (const time_t *, char *);=0A=
struct tm *__attribute__((__cdecl__)) gmtime_r (const time_t *, struct =
tm *);=0A=
struct tm *__attribute__((__cdecl__)) localtime_r (const time_t *, =
struct tm *);=0A=
=0A=
=0A=
char *__attribute__((__cdecl__)) strptime (const char *, const char *, =
struct tm *);=0A=
=0A=
extern __attribute__((dllimport)) time_t _timezone;=0A=
extern __attribute__((dllimport)) int _daylight;=0A=
extern __attribute__((dllimport)) char *_tzname[2];=0A=
# 82 "/usr/include/time.h" 3=0A=
char *__attribute__((__cdecl__)) timezone (void);=0A=
=0A=
void __attribute__((__cdecl__)) tzset (void);=0A=
# 189 "/usr/include/time.h" 3=0A=
}=0A=
# 52 "/usr/local/include/g++-v3/ctime" 2 3=0A=
# 64 "/usr/local/include/g++-v3/ctime" 3=0A=
namespace std=0A=
{=0A=
using ::clock_t;=0A=
using ::time_t;=0A=
using ::tm;=0A=
=0A=
using ::clock;=0A=
using ::difftime;=0A=
using ::mktime;=0A=
using ::time;=0A=
using ::asctime;=0A=
using ::ctime;=0A=
using ::gmtime;=0A=
using ::localtime;=0A=
using ::strftime;=0A=
}=0A=
# 52 "/usr/local/include/g++-v3/cwchar" 2 3=0A=
=0A=
=0A=
# 1 "/usr/include/wchar.h" 1 3=0A=
# 14 "/usr/include/wchar.h" 3=0A=
# 1 "/usr/include/sys/cdefs.h" 1 3=0A=
# 15 "/usr/include/wchar.h" 2 3=0A=
=0A=
=0A=
=0A=
=0A=
# 1 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.1/include/stddef.h" 1 3=0A=
# 321 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.1/include/stddef.h" 3=0A=
typedef unsigned int wint_t;=0A=
# 20 "/usr/include/wchar.h" 2 3=0A=
=0A=
extern "C" {=0A=
=0A=
int wcscmp (const wchar_t *__s1, const wchar_t *__s2);=0A=
size_t wcslen (const wchar_t *__s1);=0A=
=0A=
}=0A=
# 55 "/usr/local/include/g++-v3/cwchar" 2 3=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
extern "C"=0A=
{=0A=
typedef struct=0A=
{=0A=
int __fill[6];=0A=
} mbstate_t;=0A=
}=0A=
=0A=
=0A=
namespace std=0A=
{=0A=
using ::mbstate_t;=0A=
}=0A=
# 46 "/usr/local/include/g++-v3/bits/fpos.h" 2 3=0A=
=0A=
namespace std=0A=
{=0A=
=0A=
=0A=
=0A=
template<typename _StateT>=0A=
class fpos=0A=
{=0A=
public:=0A=
=0A=
typedef _StateT __state_type;=0A=
=0A=
private:=0A=
streamoff _M_off;=0A=
__state_type _M_st;=0A=
=0A=
public:=0A=
__state_type=0A=
state() const { return _M_st; }=0A=
=0A=
void=0A=
state(__state_type __st) { _M_st =3D __st; }=0A=
=0A=
=0A=
=0A=
fpos(): _M_off(streamoff()), _M_st(__state_type()) { }=0A=
=0A=
fpos(streamoff __off, __state_type __st =3D __state_type())=0A=
: _M_off(__off), _M_st(__st) { }=0A=
=0A=
operator streamoff() const { return _M_off; }=0A=
=0A=
fpos&=0A=
operator+=3D(streamoff __off) { _M_off +=3D __off; return *this; }=0A=
=0A=
fpos&=0A=
operator-=3D(streamoff __off) { _M_off -=3D __off; return *this; }=0A=
=0A=
fpos=0A=
operator+(streamoff __off)=0A=
{=0A=
fpos __t(*this);=0A=
__t +=3D __off;=0A=
return __t;=0A=
}=0A=
=0A=
fpos=0A=
operator-(streamoff __off)=0A=
{=0A=
fpos __t(*this);=0A=
__t -=3D __off;=0A=
return __t;=0A=
}=0A=
=0A=
bool=0A=
operator=3D=3D(const fpos& __pos) const=0A=
{ return _M_off =3D=3D __pos._M_off; }=0A=
=0A=
bool=0A=
operator!=3D(const fpos& __pos) const=0A=
{ return _M_off !=3D __pos._M_off; }=0A=
=0A=
streamoff=0A=
_M_position() const { return _M_off; }=0A=
=0A=
void=0A=
_M_position(streamoff __off) { _M_off =3D __off; }=0A=
};=0A=
=0A=
=0A=
typedef fpos<mbstate_t> streampos;=0A=
=0A=
=0A=
=0A=
}=0A=
# 47 "/usr/local/include/g++-v3/iosfwd" 2 3=0A=
# 1 "/usr/local/include/g++-v3/bits/functexcept.h" 1 3=0A=
# 34 "/usr/local/include/g++-v3/bits/functexcept.h" 3=0A=
# 1 "/usr/local/include/g++-v3/exception_defines.h" 1 3=0A=
# 35 "/usr/local/include/g++-v3/bits/functexcept.h" 2 3=0A=
=0A=
namespace std=0A=
{=0A=
=0A=
void=0A=
__throw_bad_exception(void);=0A=
=0A=
=0A=
void=0A=
__throw_bad_alloc(void);=0A=
=0A=
=0A=
void=0A=
__throw_bad_cast(void);=0A=
=0A=
void=0A=
__throw_bad_typeid(void);=0A=
=0A=
=0A=
void=0A=
__throw_logic_error(const char* __s);=0A=
=0A=
void=0A=
__throw_domain_error(const char* __s);=0A=
=0A=
void=0A=
__throw_invalid_argument(const char* __s);=0A=
=0A=
void=0A=
__throw_length_error(const char* __s);=0A=
=0A=
void=0A=
__throw_out_of_range(const char* __s);=0A=
=0A=
void=0A=
__throw_runtime_error(const char* __s);=0A=
=0A=
void=0A=
__throw_range_error(const char* __s);=0A=
=0A=
void=0A=
__throw_overflow_error(const char* __s);=0A=
=0A=
void=0A=
__throw_underflow_error(const char* __s);=0A=
=0A=
=0A=
void=0A=
__throw_ios_failure(const char* __s);=0A=
}=0A=
# 48 "/usr/local/include/g++-v3/iosfwd" 2 3=0A=
=0A=
namespace std=0A=
{=0A=
template<typename _CharT, typename _Traits =3D char_traits<_CharT> >=0A=
class basic_ios;=0A=
=0A=
template<typename _CharT, typename _Traits =3D char_traits<_CharT> >=0A=
class basic_streambuf;=0A=
=0A=
template<typename _CharT, typename _Traits =3D char_traits<_CharT> >=0A=
class basic_istream;=0A=
=0A=
template<typename _CharT, typename _Traits =3D char_traits<_CharT> >=0A=
class basic_ostream;=0A=
=0A=
template<typename _CharT, typename _Traits =3D char_traits<_CharT> >=0A=
class basic_iostream;=0A=
=0A=
template<typename _CharT, typename _Traits =3D char_traits<_CharT>,=0A=
typename _Alloc =3D allocator<_CharT> >=0A=
class basic_stringbuf;=0A=
=0A=
template<typename _CharT, typename _Traits =3D char_traits<_CharT>,=0A=
typename _Alloc =3D allocator<_CharT> >=0A=
class basic_istringstream;=0A=
=0A=
template<typename _CharT, typename _Traits =3D char_traits<_CharT>,=0A=
typename _Alloc =3D allocator<_CharT> >=0A=
class basic_ostringstream;=0A=
=0A=
template<typename _CharT, typename _Traits =3D char_traits<_CharT>,=0A=
typename _Alloc =3D allocator<_CharT> >=0A=
class basic_stringstream;=0A=
=0A=
template<typename _CharT, typename _Traits =3D char_traits<_CharT> >=0A=
class basic_filebuf;=0A=
=0A=
template<typename _CharT, typename _Traits =3D char_traits<_CharT> >=0A=
class basic_ifstream;=0A=
=0A=
template<typename _CharT, typename _Traits =3D char_traits<_CharT> >=0A=
class basic_ofstream;=0A=
=0A=
template<typename _CharT, typename _Traits =3D char_traits<_CharT> >=0A=
class basic_fstream;=0A=
=0A=
template<typename _CharT, typename _Traits =3D char_traits<_CharT> >=0A=
class istreambuf_iterator;=0A=
=0A=
template<typename _CharT, typename _Traits =3D char_traits<_CharT> >=0A=
class ostreambuf_iterator;=0A=
=0A=
=0A=
=0A=
class ios_base;=0A=
=0A=
=0A=
typedef basic_ios<char> ios;=0A=
typedef basic_streambuf<char> streambuf;=0A=
typedef basic_istream<char> istream;=0A=
typedef basic_ostream<char> ostream;=0A=
typedef basic_iostream<char> iostream;=0A=
typedef basic_stringbuf<char> stringbuf;=0A=
typedef basic_istringstream<char> istringstream;=0A=
typedef basic_ostringstream<char> ostringstream;=0A=
typedef basic_stringstream<char> stringstream;=0A=
typedef basic_filebuf<char> filebuf;=0A=
typedef basic_ifstream<char> ifstream;=0A=
typedef basic_ofstream<char> ofstream;=0A=
typedef basic_fstream<char> fstream;=0A=
=0A=
typedef basic_ios<wchar_t> wios;=0A=
typedef basic_streambuf<wchar_t> wstreambuf;=0A=
typedef basic_istream<wchar_t> wistream;=0A=
typedef basic_ostream<wchar_t> wostream;=0A=
typedef basic_iostream<wchar_t> wiostream;=0A=
typedef basic_stringbuf<wchar_t> wstringbuf;=0A=
typedef basic_istringstream<wchar_t> wistringstream;=0A=
typedef basic_ostringstream<wchar_t> wostringstream;=0A=
typedef basic_stringstream<wchar_t> wstringstream;=0A=
typedef basic_filebuf<wchar_t> wfilebuf;=0A=
typedef basic_ifstream<wchar_t> wifstream;=0A=
typedef basic_ofstream<wchar_t> wofstream;=0A=
typedef basic_fstream<wchar_t> wfstream;=0A=
}=0A=
# 45 "/usr/local/include/g++-v3/ios" 2 3=0A=
# 1 "/usr/local/include/g++-v3/exception" 1 3=0A=
# 40 "/usr/local/include/g++-v3/exception" 3=0A=
extern "C++" {=0A=
=0A=
namespace std=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
class exception=0A=
{=0A=
public:=0A=
exception() throw() { }=0A=
virtual ~exception() throw();=0A=
=0A=
=0A=
virtual const char* what() const throw();=0A=
};=0A=
=0A=
=0A=
=0A=
class bad_exception : public exception=0A=
{=0A=
public:=0A=
bad_exception() throw() { }=0A=
=0A=
=0A=
virtual ~bad_exception() throw();=0A=
};=0A=
=0A=
=0A=
typedef void (*terminate_handler) ();=0A=
=0A=
typedef void (*unexpected_handler) ();=0A=
=0A=
=0A=
terminate_handler set_terminate(terminate_handler) throw();=0A=
=0A=
=0A=
void terminate() __attribute__ ((__noreturn__));=0A=
=0A=
=0A=
unexpected_handler set_unexpected(unexpected_handler) throw();=0A=
=0A=
=0A=
void unexpected() __attribute__ ((__noreturn__));=0A=
# 98 "/usr/local/include/g++-v3/exception" 3=0A=
bool uncaught_exception() throw();=0A=
}=0A=
=0A=
namespace __gnu_cxx=0A=
{=0A=
# 111 "/usr/local/include/g++-v3/exception" 3=0A=
void __verbose_terminate_handler ();=0A=
}=0A=
=0A=
}=0A=
# 46 "/usr/local/include/g++-v3/ios" 2 3=0A=
# 1 "/usr/local/include/g++-v3/bits/char_traits.h" 1 3=0A=
# 43 "/usr/local/include/g++-v3/bits/char_traits.h" 3=0A=
=0A=
# 1 "/usr/local/include/g++-v3/cstring" 1 3=0A=
# 48 "/usr/local/include/g++-v3/cstring" 3=0A=
=0A=
=0A=
=0A=
# 1 "/usr/include/string.h" 1 3=0A=
# 11 "/usr/include/string.h" 3=0A=
extern "C" {=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
# 1 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.1/include/stddef.h" 1 3=0A=
# 19 "/usr/include/string.h" 2 3=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
void * __attribute__((__cdecl__)) memchr (const void *, int, size_t);=0A=
int __attribute__((__cdecl__)) memcmp (const void *, const void *, =
size_t);=0A=
void * __attribute__((__cdecl__)) memcpy (void *, const void *, size_t);=0A=
void * __attribute__((__cdecl__)) memmove (void *, const void *, size_t);=0A=
void * __attribute__((__cdecl__)) memset (void *, int, size_t);=0A=
char *__attribute__((__cdecl__)) strcat (char *, const char *);=0A=
char *__attribute__((__cdecl__)) strchr (const char *, int);=0A=
int __attribute__((__cdecl__)) strcmp (const char *, const char *);=0A=
int __attribute__((__cdecl__)) strcoll (const char *, const char *);=0A=
char *__attribute__((__cdecl__)) strcpy (char *, const char *);=0A=
size_t __attribute__((__cdecl__)) strcspn (const char *, const char *);=0A=
char *__attribute__((__cdecl__)) strerror (int);=0A=
size_t __attribute__((__cdecl__)) strlen (const char *);=0A=
char *__attribute__((__cdecl__)) strncat (char *, const char *, size_t);=0A=
int __attribute__((__cdecl__)) strncmp (const char *, const char *, =
size_t);=0A=
char *__attribute__((__cdecl__)) strncpy (char *, const char *, size_t);=0A=
char *__attribute__((__cdecl__)) strpbrk (const char *, const char *);=0A=
char *__attribute__((__cdecl__)) strrchr (const char *, int);=0A=
size_t __attribute__((__cdecl__)) strspn (const char *, const char *);=0A=
char *__attribute__((__cdecl__)) strstr (const char *, const char *);=0A=
=0A=
=0A=
char *__attribute__((__cdecl__)) strtok (char *, const char *);=0A=
=0A=
=0A=
size_t __attribute__((__cdecl__)) strxfrm (char *, const char *, size_t);=0A=
=0A=
=0A=
char *__attribute__((__cdecl__)) strtok_r (char *, const char *, char =
**);=0A=
=0A=
int __attribute__((__cdecl__)) bcmp (const char *, const char *, size_t);=0A=
void __attribute__((__cdecl__)) bcopy (const char *, char *, size_t);=0A=
void __attribute__((__cdecl__)) bzero (char *, size_t);=0A=
int __attribute__((__cdecl__)) ffs (int);=0A=
char *__attribute__((__cdecl__)) index (const char *, int);=0A=
void * __attribute__((__cdecl__)) memccpy (void *, const void *, int, =
size_t);=0A=
char *__attribute__((__cdecl__)) rindex (const char *, int);=0A=
int __attribute__((__cdecl__)) strcasecmp (const char *, const char *);=0A=
char *__attribute__((__cdecl__)) strdup (const char *);=0A=
char *__attribute__((__cdecl__)) _strdup_r (struct _reent *, const char =
*);=0A=
int __attribute__((__cdecl__)) strncasecmp (const char *, const char *, =
size_t);=0A=
char *__attribute__((__cdecl__)) strsep (char **, const char *);=0A=
char *__attribute__((__cdecl__)) strlwr (char *);=0A=
char *__attribute__((__cdecl__)) strupr (char *);=0A=
=0A=
=0A=
const char *__attribute__((__cdecl__)) strsignal (int __signo);=0A=
=0A=
int __attribute__((__cdecl__)) strtosigno (const char *__name);=0A=
# 92 "/usr/include/string.h" 3=0A=
}=0A=
# 52 "/usr/local/include/g++-v3/cstring" 2 3=0A=
# 77 "/usr/local/include/g++-v3/cstring" 3=0A=
namespace std=0A=
{=0A=
using ::memcpy;=0A=
using ::memmove;=0A=
using ::strcpy;=0A=
using ::strncpy;=0A=
using ::strcat;=0A=
using ::strncat;=0A=
using ::memcmp;=0A=
using ::strcmp;=0A=
using ::strcoll;=0A=
using ::strncmp;=0A=
using ::strxfrm;=0A=
using ::strcspn;=0A=
using ::strspn;=0A=
using ::strtok;=0A=
using ::memset;=0A=
using ::strerror;=0A=
using ::strlen;=0A=
=0A=
using ::memchr;=0A=
=0A=
inline void*=0A=
memchr(void* __p, int __c, size_t __n)=0A=
{ return memchr(const_cast<const void*>(__p), __c, __n); }=0A=
=0A=
using ::strchr;=0A=
=0A=
inline char*=0A=
strchr(char* __s1, int __n)=0A=
{ return __builtin_strchr(const_cast<const char*>(__s1), __n); }=0A=
=0A=
using ::strpbrk;=0A=
=0A=
inline char*=0A=
strpbrk(char* __s1, const char* __s2)=0A=
{ return __builtin_strpbrk(const_cast<const char*>(__s1), __s2); }=0A=
=0A=
using ::strrchr;=0A=
=0A=
inline char*=0A=
strrchr(char* __s1, int __n)=0A=
{ return __builtin_strrchr(const_cast<const char*>(__s1), __n); }=0A=
=0A=
using ::strstr;=0A=
=0A=
inline char*=0A=
strstr(char* __s1, const char* __s2)=0A=
{ return __builtin_strstr(const_cast<const char*>(__s1), __s2); }=0A=
}=0A=
# 45 "/usr/local/include/g++-v3/bits/char_traits.h" 2 3=0A=
=0A=
=0A=
namespace std=0A=
{=0A=
=0A=
=0A=
=0A=
template<class _CharT>=0A=
struct char_traits=0A=
{=0A=
typedef _CharT char_type;=0A=
=0A=
typedef unsigned long int_type;=0A=
typedef streampos pos_type;=0A=
typedef streamoff off_type;=0A=
typedef mbstate_t state_type;=0A=
=0A=
static void=0A=
assign(char_type& __c1, const char_type& __c2)=0A=
{ __c1 =3D __c2; }=0A=
=0A=
static bool=0A=
eq(const char_type& __c1, const char_type& __c2)=0A=
{ return __c1 =3D=3D __c2; }=0A=
=0A=
static bool=0A=
lt(const char_type& __c1, const char_type& __c2)=0A=
{ return __c1 < __c2; }=0A=
=0A=
static int=0A=
compare(const char_type* __s1, const char_type* __s2, size_t __n)=0A=
{=0A=
for (size_t __i =3D 0; __i < __n; ++__i)=0A=
if (!eq(__s1[__i], __s2[__i]))=0A=
return lt(__s1[__i], __s2[__i]) ? -1 : 1;=0A=
return 0;=0A=
}=0A=
=0A=
static size_t=0A=
length(const char_type* __s)=0A=
{=0A=
const char_type* __p =3D __s;=0A=
while (*__p) ++__p;=0A=
return (__p - __s);=0A=
}=0A=
=0A=
static const char_type*=0A=
find(const char_type* __s, size_t __n, const char_type& __a)=0A=
{=0A=
for (const char_type* __p =3D __s; size_t(__p - __s) < __n; =
++__p)=0A=
if (*__p =3D=3D __a) return __p;=0A=
return 0;=0A=
}=0A=
=0A=
static char_type*=0A=
move(char_type* __s1, const char_type* __s2, size_t __n)=0A=
{ return (char_type*) memmove(__s1, __s2, __n * =
sizeof(char_type)); }=0A=
=0A=
static char_type*=0A=
copy(char_type* __s1, const char_type* __s2, size_t __n)=0A=
{ return (char_type*) memcpy(__s1, __s2, __n * sizeof(char_type)); =
}=0A=
=0A=
static char_type*=0A=
assign(char_type* __s, size_t __n, char_type __a)=0A=
{=0A=
for (char_type* __p =3D __s; __p < __s + __n; ++__p)=0A=
assign(*__p, __a);=0A=
return __s;=0A=
}=0A=
=0A=
static char_type=0A=
to_char_type(const int_type& __c)=0A=
{ return char_type(__c); }=0A=
=0A=
static int_type=0A=
to_int_type(const char_type& __c) { return int_type(__c); }=0A=
=0A=
static bool=0A=
eq_int_type(const int_type& __c1, const int_type& __c2)=0A=
{ return __c1 =3D=3D __c2; }=0A=
=0A=
static int_type=0A=
eof() { return static_cast<int_type>(-1); }=0A=
=0A=
static int_type=0A=
not_eof(const int_type& __c)=0A=
{ return eq_int_type(__c, eof()) ? int_type(0) : __c; }=0A=
};=0A=
=0A=
=0A=
=0A=
template<>=0A=
struct char_traits<char>=0A=
{=0A=
typedef char char_type;=0A=
typedef int int_type;=0A=
typedef streampos pos_type;=0A=
typedef streamoff off_type;=0A=
typedef mbstate_t state_type;=0A=
=0A=
static void=0A=
assign(char_type& __c1, const char_type& __c2)=0A=
{ __c1 =3D __c2; }=0A=
=0A=
static bool=0A=
eq(const char_type& __c1, const char_type& __c2)=0A=
{ return __c1 =3D=3D __c2; }=0A=
=0A=
static bool=0A=
lt(const char_type& __c1, const char_type& __c2)=0A=
{ return __c1 < __c2; }=0A=
=0A=
static int=0A=
compare(const char_type* __s1, const char_type* __s2, size_t __n)=0A=
{ return memcmp(__s1, __s2, __n); }=0A=
=0A=
static size_t=0A=
length(const char_type* __s)=0A=
{ return strlen(__s); }=0A=
=0A=
static const char_type*=0A=
find(const char_type* __s, size_t __n, const char_type& __a)=0A=
{ return static_cast<const char_type*>(memchr(__s, __a, __n)); }=0A=
=0A=
static char_type*=0A=
move(char_type* __s1, const char_type* __s2, size_t __n)=0A=
{ return static_cast<char_type*>(memmove(__s1, __s2, __n)); }=0A=
=0A=
static char_type*=0A=
copy(char_type* __s1, const char_type* __s2, size_t __n)=0A=
{ return static_cast<char_type*>(memcpy(__s1, __s2, __n)); }=0A=
=0A=
static char_type*=0A=
assign(char_type* __s, size_t __n, char_type __a)=0A=
{ return static_cast<char_type*>(memset(__s, __a, __n)); }=0A=
=0A=
static char_type=0A=
to_char_type(const int_type& __c)=0A=
{ return static_cast<char_type>(__c); }=0A=
=0A=
=0A=
=0A=
static int_type=0A=
to_int_type(const char_type& __c)=0A=
{ return static_cast<int_type>(static_cast<unsigned char>(__c)); }=0A=
=0A=
static bool=0A=
eq_int_type(const int_type& __c1, const int_type& __c2)=0A=
{ return __c1 =3D=3D __c2; }=0A=
=0A=
static int_type=0A=
eof() { return static_cast<int_type>((-1)); }=0A=
=0A=
static int_type=0A=
not_eof(const int_type& __c)=0A=
{ return (__c =3D=3D eof()) ? 0 : __c; }=0A=
};=0A=
# 269 "/usr/local/include/g++-v3/bits/char_traits.h" 3=0A=
template<typename _CharT, typename _Traits>=0A=
struct _Char_traits_match=0A=
{=0A=
_CharT _M_c;=0A=
_Char_traits_match(_CharT const& __c) : _M_c(__c) { }=0A=
=0A=
bool=0A=
operator()(_CharT const& __a) { return _Traits::eq(_M_c, __a); }=0A=
};=0A=
}=0A=
# 47 "/usr/local/include/g++-v3/ios" 2 3=0A=
=0A=
# 1 "/usr/local/include/g++-v3/bits/localefwd.h" 1 3=0A=
# 44 "/usr/local/include/g++-v3/bits/localefwd.h" 3=0A=
=0A=
=0A=
# 1 "/usr/local/include/g++-v3/i686-pc-cygwin/bits/c++locale.h" 1 3=0A=
# 36 "/usr/local/include/g++-v3/i686-pc-cygwin/bits/c++locale.h" 3=0A=
# 1 "/usr/local/include/g++-v3/clocale" 1 3=0A=
# 48 "/usr/local/include/g++-v3/clocale" 3=0A=
=0A=
# 1 "/usr/include/locale.h" 1 3=0A=
# 9 "/usr/include/locale.h" 3=0A=
extern "C" {=0A=
# 27 "/usr/include/locale.h" 3=0A=
struct lconv=0A=
{=0A=
char *decimal_point;=0A=
char *thousands_sep;=0A=
char *grouping;=0A=
char *int_curr_symbol;=0A=
char *currency_symbol;=0A=
char *mon_decimal_point;=0A=
char *mon_thousands_sep;=0A=
char *mon_grouping;=0A=
char *positive_sign;=0A=
char *negative_sign;=0A=
char int_frac_digits;=0A=
char frac_digits;=0A=
char p_cs_precedes;=0A=
char p_sep_by_space;=0A=
char n_cs_precedes;=0A=
char n_sep_by_space;=0A=
char p_sign_posn;=0A=
char n_sign_posn;=0A=
};=0A=
=0A=
=0A=
char *__attribute__((__cdecl__)) setlocale (int category, const char =
*locale);=0A=
struct lconv *__attribute__((__cdecl__)) localeconv (void);=0A=
=0A=
=0A=
struct _reent;=0A=
char *__attribute__((__cdecl__)) _setlocale_r (struct _reent *, int =
category, const char *locale);=0A=
struct lconv *__attribute__((__cdecl__)) _localeconv_r (struct _reent *);=0A=
=0A=
=0A=
}=0A=
# 50 "/usr/local/include/g++-v3/clocale" 2 3=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
namespace std=0A=
{=0A=
using ::lconv;=0A=
using ::setlocale;=0A=
using ::localeconv;=0A=
}=0A=
# 37 "/usr/local/include/g++-v3/i686-pc-cygwin/bits/c++locale.h" 2 3=0A=
=0A=
namespace std=0A=
{=0A=
typedef int* __c_locale;=0A=
}=0A=
# 47 "/usr/local/include/g++-v3/bits/localefwd.h" 2 3=0A=
# 1 "/usr/local/include/g++-v3/climits" 1 3=0A=
# 48 "/usr/local/include/g++-v3/climits" 3=0A=
=0A=
# 1 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.1/include/limits.h" 1 3=0A=
# 11 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.1/include/limits.h" 3=0A=
# 1 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.1/include/syslimits.h" 1 3=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
# 1 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.1/include/limits.h" 1 3=0A=
# 132 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.1/include/limits.h" 3=0A=
# 1 "/usr/include/limits.h" 1 3=0A=
# 133 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.1/include/limits.h" 2 3=0A=
# 8 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.1/include/syslimits.h" 2 3=0A=
# 12 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.1/include/limits.h" 2 3=0A=
# 50 "/usr/local/include/g++-v3/climits" 2 3=0A=
# 48 "/usr/local/include/g++-v3/bits/localefwd.h" 2 3=0A=
# 1 "/usr/local/include/g++-v3/cctype" 1 3=0A=
# 47 "/usr/local/include/g++-v3/cctype" 3=0A=
=0A=
=0A=
# 1 "/usr/include/ctype.h" 1 3=0A=
=0A=
=0A=
extern "C" {=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
int __attribute__((__cdecl__)) isalnum (int __c);=0A=
int __attribute__((__cdecl__)) isalpha (int __c);=0A=
int __attribute__((__cdecl__)) iscntrl (int __c);=0A=
int __attribute__((__cdecl__)) isdigit (int __c);=0A=
int __attribute__((__cdecl__)) isgraph (int __c);=0A=
int __attribute__((__cdecl__)) islower (int __c);=0A=
int __attribute__((__cdecl__)) isprint (int __c);=0A=
int __attribute__((__cdecl__)) ispunct (int __c);=0A=
int __attribute__((__cdecl__)) isspace (int __c);=0A=
int __attribute__((__cdecl__)) isupper (int __c);=0A=
int __attribute__((__cdecl__)) isxdigit (int __c);=0A=
int __attribute__((__cdecl__)) tolower (int __c);=0A=
int __attribute__((__cdecl__)) toupper (int __c);=0A=
=0A=
=0A=
int __attribute__((__cdecl__)) isascii (int __c);=0A=
int __attribute__((__cdecl__)) toascii (int __c);=0A=
int __attribute__((__cdecl__)) _tolower (int __c);=0A=
int __attribute__((__cdecl__)) _toupper (int __c);=0A=
# 39 "/usr/include/ctype.h" 3=0A=
extern __attribute__((dllimport)) const char _ctype_[];=0A=
# 69 "/usr/include/ctype.h" 3=0A=
}=0A=
# 50 "/usr/local/include/g++-v3/cctype" 2 3=0A=
# 66 "/usr/local/include/g++-v3/cctype" 3=0A=
namespace std=0A=
{=0A=
using ::isalnum;=0A=
using ::isalpha;=0A=
using ::iscntrl;=0A=
using ::isdigit;=0A=
using ::isgraph;=0A=
using ::islower;=0A=
using ::isprint;=0A=
using ::ispunct;=0A=
using ::isspace;=0A=
using ::isupper;=0A=
using ::isxdigit;=0A=
using ::tolower;=0A=
using ::toupper;=0A=
}=0A=
# 49 "/usr/local/include/g++-v3/bits/localefwd.h" 2 3=0A=
# 1 "/usr/local/include/g++-v3/string" 1 3=0A=
# 44 "/usr/local/include/g++-v3/string" 3=0A=
=0A=
=0A=
=0A=
=0A=
# 1 "/usr/local/include/g++-v3/memory" 1 3=0A=
# 53 "/usr/local/include/g++-v3/memory" 3=0A=
=0A=
# 1 "/usr/local/include/g++-v3/bits/stl_algobase.h" 1 3=0A=
# 67 "/usr/local/include/g++-v3/bits/stl_algobase.h" 3=0A=
# 1 "/usr/local/include/g++-v3/cstdlib" 1 3=0A=
# 48 "/usr/local/include/g++-v3/cstdlib" 3=0A=
=0A=
=0A=
=0A=
=0A=
# 1 "/usr/include/stdlib.h" 1 3=0A=
# 9 "/usr/include/stdlib.h" 3=0A=
extern "C" {=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
# 1 "/usr/local/lib/gcc-lib/i686-pc-cygwin/3.1/include/stddef.h" 1 3=0A=
# 18 "/usr/include/stdlib.h" 2 3=0A=
=0A=
=0A=
=0A=
=0A=
# 1 "/usr/include/alloca.h" 1 3=0A=
# 23 "/usr/include/stdlib.h" 2 3=0A=
=0A=
=0A=
typedef struct=0A=
{=0A=
int quot;=0A=
int rem;=0A=
} div_t;=0A=
=0A=
typedef struct=0A=
{=0A=
long quot;=0A=
long rem;=0A=
} ldiv_t;=0A=
# 46 "/usr/include/stdlib.h" 3=0A=
extern __attribute__((dllimport)) int __mb_cur_max;=0A=
=0A=
=0A=
=0A=
void __attribute__((__cdecl__)) abort (void) __attribute__ ((noreturn));=0A=
int __attribute__((__cdecl__)) abs (int);=0A=
int __attribute__((__cdecl__)) atexit (void (*__func)(void));=0A=
double __attribute__((__cdecl__)) atof (const char *__nptr);=0A=
=0A=
float __attribute__((__cdecl__)) atoff (const char *__nptr);=0A=
=0A=
int __attribute__((__cdecl__)) atoi (const char *__nptr);=0A=
long __attribute__((__cdecl__)) atol (const char *__nptr);=0A=
void * __attribute__((__cdecl__)) bsearch (const void * __key, const =
void * __base, size_t __nmemb, size_t __size, int (* =
__attribute__((__cdecl__)) _compar) (const void *, const void *));=0A=
=0A=
=0A=
=0A=
=0A=
void * __attribute__((__cdecl__)) calloc (size_t __nmemb, size_t __size);=0A=
div_t __attribute__((__cdecl__)) div (int __numer, int __denom);=0A=
void __attribute__((__cdecl__)) exit (int __status) __attribute__ =
((noreturn));=0A=
void __attribute__((__cdecl__)) free (void *);=0A=
char * __attribute__((__cdecl__)) getenv (const char *__string);=0A=
char * __attribute__((__cdecl__)) _getenv_r (struct _reent *, const char =
*__string);=0A=
char * __attribute__((__cdecl__)) _findenv (const char *, int *);=0A=
char * __attribute__((__cdecl__)) _findenv_r (struct _reent *, const =
char *, int *);=0A=
long __attribute__((__cdecl__)) labs (long);=0A=
ldiv_t __attribute__((__cdecl__)) ldiv (long __numer, long __denom);=0A=
void * __attribute__((__cdecl__)) malloc (size_t __size);=0A=
int __attribute__((__cdecl__)) mblen (const char *, size_t);=0A=
int __attribute__((__cdecl__)) _mblen_r (struct _reent *, const char *, =
size_t, int *);=0A=
int __attribute__((__cdecl__)) mbtowc (wchar_t *, const char *, size_t);=0A=
int __attribute__((__cdecl__)) _mbtowc_r (struct _reent *, wchar_t *, =
const char *, size_t, int *);=0A=
int __attribute__((__cdecl__)) wctomb (char *, wchar_t);=0A=
int __attribute__((__cdecl__)) _wctomb_r (struct _reent *, char *, =
wchar_t, int *);=0A=
size_t __attribute__((__cdecl__)) mbstowcs (wchar_t *, const char *, =
size_t);=0A=
size_t __attribute__((__cdecl__)) _mbstowcs_r (struct _reent *, wchar_t =
*, const char *, size_t, int *);=0A=
size_t __attribute__((__cdecl__)) wcstombs (char *, const wchar_t *, =
size_t);=0A=
size_t __attribute__((__cdecl__)) _wcstombs_r (struct _reent *, char *, =
const wchar_t *, size_t, int *);=0A=
=0A=
=0A=
int __attribute__((__cdecl__)) mkstemp (char *);=0A=
char * __attribute__((__cdecl__)) mktemp (char *);=0A=
=0A=
=0A=
void __attribute__((__cdecl__)) qsort (void * __base, size_t __nmemb, =
size_t __size, int(*_compar)(const void *, const void *));=0A=
int __attribute__((__cdecl__)) rand (void);=0A=
void * __attribute__((__cdecl__)) realloc (void * __r, size_t __size);=0A=
void __attribute__((__cdecl__)) srand (unsigned __seed);=0A=
double __attribute__((__cdecl__)) strtod (const char *__n, char =
**__end_PTR);=0A=
double __attribute__((__cdecl__)) _strtod_r (struct _reent *,const char =
*__n, char **__end_PTR);=0A=
=0A=
float __attribute__((__cdecl__)) strtodf (const char *__n, char =
**__end_PTR);=0A=
=0A=
long __attribute__((__cdecl__)) strtol (const char *__n, char =
**__end_PTR, int __base);=0A=
long __attribute__((__cdecl__)) _strtol_r (struct _reent *,const char =
*__n, char **__end_PTR, int __base);=0A=
unsigned long __attribute__((__cdecl__)) strtoul (const char *__n, char =
**__end_PTR, int __base);=0A=
unsigned long __attribute__((__cdecl__)) _strtoul_r (struct _reent =
*,const char *__n, char **__end_PTR, int __base);=0A=
=0A=
int __attribute__((__cdecl__)) system (const char *__string);=0A=
=0A=
=0A=
int __attribute__((__cdecl__)) putenv (const char *__string);=0A=
int __attribute__((__cdecl__)) _putenv_r (struct _reent *, const char =
*__string);=0A=
int __attribute__((__cdecl__)) setenv (const char *__string, const char =
*__value, int __overwrite);=0A=
int __attribute__((__cdecl__)) _setenv_r (struct _reent *, const char =
*__string, const char *__value, int __overwrite);=0A=
=0A=
char * __attribute__((__cdecl__)) gcvt (double,int,char *);=0A=
char * __attribute__((__cdecl__)) gcvtf (float,int,char *);=0A=
char * __attribute__((__cdecl__)) fcvt (double,int,int *,int *);=0A=
char * __attribute__((__cdecl__)) fcvtf (float,int,int *,int *);=0A=
char * __attribute__((__cdecl__)) ecvt (double,int,int *,int *);=0A=
char * __attribute__((__cdecl__)) ecvtbuf (double, int, int*, int*, char =
*);=0A=
char * __attribute__((__cdecl__)) fcvtbuf (double, int, int*, int*, char =
*);=0A=
char * __attribute__((__cdecl__)) ecvtf (float,int,int *,int *);=0A=
char * __attribute__((__cdecl__)) dtoa (double, int, int, int *, int*, =
char**);=0A=
int __attribute__((__cdecl__)) rand_r (unsigned *__seed);=0A=
=0A=
double __attribute__((__cdecl__)) drand48 (void);=0A=
double __attribute__((__cdecl__)) _drand48_r (struct _reent *);=0A=
double __attribute__((__cdecl__)) erand48 (unsigned short [3]);=0A=
double __attribute__((__cdecl__)) _erand48_r (struct _reent *, unsigned =
short [3]);=0A=
long __attribute__((__cdecl__)) jrand48 (unsigned short [3]);=0A=
long __attribute__((__cdecl__)) _jrand48_r (struct _reent *, unsigned =
short [3]);=0A=
void __attribute__((__cdecl__)) lcong48 (unsigned short [7]);=0A=
void __attribute__((__cdecl__)) _lcong48_r (struct _reent *, unsigned =
short [7]);=0A=
long __attribute__((__cdecl__)) lrand48 (void);=0A=
long __attribute__((__cdecl__)) _lrand48_r (struct _reent *);=0A=
long __attribute__((__cdecl__)) mrand48 (void);=0A=
long __attribute__((__cdecl__)) _mrand48_r (struct _reent *);=0A=
long __attribute__((__cdecl__)) nrand48 (unsigned short [3]);=0A=
long __attribute__((__cdecl__)) _nrand48_r (struct _reent *, unsigned =
short [3]);=0A=
unsigned short *=0A=
__attribute__((__cdecl__)) seed48 (unsigned short [3]);=0A=
unsigned short *=0A=
__attribute__((__cdecl__)) _seed48_r (struct _reent *, unsigned =
short [3]);=0A=
void __attribute__((__cdecl__)) srand48 (long);=0A=
void __attribute__((__cdecl__)) _srand48_r (struct _reent *, long);=0A=
long long __attribute__((__cdecl__)) strtoll (const char *__n, char =
**__end_PTR, int __base);=0A=
long long __attribute__((__cdecl__)) _strtoll_r (struct _reent *, const =
char *__n, char **__end_PTR, int __base);=0A=
unsigned long long __attribute__((__cdecl__)) strtoull (const char *__n, =
char **__end_PTR, int __base);=0A=
unsigned long long __attribute__((__cdecl__)) _strtoull_r (struct _reent =
*, const char *__n, char **__end_PTR, int __base);=0A=
=0A=
=0A=
=0A=
=0A=
char * __attribute__((__cdecl__)) realpath (const char *, char *);=0A=
void __attribute__((__cdecl__)) unsetenv (const char *__string);=0A=
void __attribute__((__cdecl__)) _unsetenv_r (struct _reent *, const char =
*__string);=0A=
int __attribute__((__cdecl__)) random (void);=0A=
long __attribute__((__cdecl__)) srandom (unsigned __seed);=0A=
char * __attribute__((__cdecl__)) ptsname (int);=0A=
int __attribute__((__cdecl__)) grantpt (int);=0A=
int __attribute__((__cdecl__)) unlockpt (int);=0A=
=0A=
=0A=
=0A=
=0A=
char * __attribute__((__cdecl__)) _dtoa_r (struct _reent *, double, int, =
int, int *, int*, char**);=0A=
void * __attribute__((__cdecl__)) _malloc_r (struct _reent *, size_t);=0A=
void * __attribute__((__cdecl__)) _calloc_r (struct _reent *, size_t, =
size_t);=0A=
void __attribute__((__cdecl__)) _free_r (struct _reent *, void *);=0A=
void * __attribute__((__cdecl__)) _realloc_r (struct _reent *, void *, =
size_t);=0A=
void __attribute__((__cdecl__)) _mstats_r (struct _reent *, char *);=0A=
int __attribute__((__cdecl__)) _system_r (struct _reent *, const char *);=0A=
=0A=
void __attribute__((__cdecl__)) __eprintf (const char *, const char *, =
unsigned int, const char *);=0A=
=0A=
=0A=
}=0A=
# 53 "/usr/local/include/g++-v3/cstdlib" 2 3=0A=
# 84 "/usr/local/include/g++-v3/cstdlib" 3=0A=
namespace std=0A=
{=0A=
using ::div_t;=0A=
using ::ldiv_t;=0A=
=0A=
using ::abort;=0A=
using ::abs;=0A=
using ::atexit;=0A=
using ::atof;=0A=
using ::atoi;=0A=
using ::atol;=0A=
using ::bsearch;=0A=
using ::calloc;=0A=
using ::div;=0A=
using ::exit;=0A=
using ::free;=0A=
using ::getenv;=0A=
using ::labs;=0A=
using ::ldiv;=0A=
using ::malloc;=0A=
using ::mblen;=0A=
using ::mbstowcs;=0A=
using ::mbtowc;=0A=
using ::qsort;=0A=
using ::rand;=0A=
using ::realloc;=0A=
using ::srand;=0A=
using ::strtod;=0A=
using ::strtol;=0A=
using ::strtoul;=0A=
using ::system;=0A=
using ::wcstombs;=0A=
using ::wctomb;=0A=
=0A=
inline long=0A=
abs(long __i) { return labs(__i); }=0A=
=0A=
inline ldiv_t=0A=
div(long __i, long __j) { return ldiv(__i, __j); }=0A=
}=0A=
# 68 "/usr/local/include/g++-v3/bits/stl_algobase.h" 2 3=0A=
=0A=
# 1 "/usr/local/include/g++-v3/new" 1 3=0A=
# 44 "/usr/local/include/g++-v3/new" 3=0A=
extern "C++" {=0A=
=0A=
namespace std=0A=
{=0A=
=0A=
=0A=
class bad_alloc : public exception=0A=
{=0A=
public:=0A=
bad_alloc() throw() { }=0A=
=0A=
=0A=
virtual ~bad_alloc() throw();=0A=
};=0A=
=0A=
struct nothrow_t { };=0A=
extern const nothrow_t nothrow;=0A=
=0A=
=0A=
typedef void (*new_handler)();=0A=
=0A=
new_handler set_new_handler(new_handler);=0A=
}=0A=
# 79 "/usr/local/include/g++-v3/new" 3=0A=
void* operator new(std::size_t) throw (std::bad_alloc);=0A=
void* operator new[](std::size_t) throw (std::bad_alloc);=0A=
void operator delete(void*) throw();=0A=
void operator delete[](void*) throw();=0A=
void* operator new(std::size_t, const std::nothrow_t&) throw();=0A=
void* operator new[](std::size_t, const std::nothrow_t&) throw();=0A=
void operator delete(void*, const std::nothrow_t&) throw();=0A=
void operator delete[](void*, const std::nothrow_t&) throw();=0A=
=0A=
=0A=
inline void* operator new(std::size_t, void* __p) throw() { return __p; }=0A=
inline void* operator new[](std::size_t, void* __p) throw() { return =
__p; }=0A=
=0A=
}=0A=
# 70 "/usr/local/include/g++-v3/bits/stl_algobase.h" 2 3=0A=
=0A=
# 1 "/usr/local/include/g++-v3/bits/stl_pair.h" 1 3=0A=
# 64 "/usr/local/include/g++-v3/bits/stl_pair.h" 3=0A=
namespace std=0A=
{=0A=
=0A=
=0A=
template <class _T1, class _T2>=0A=
struct pair {=0A=
typedef _T1 first_type;=0A=
typedef _T2 second_type;=0A=
=0A=
_T1 first;=0A=
_T2 second;=0A=
=0A=
=0A=
=0A=
=0A=
pair() : first(), second() {}=0A=
=0A=
=0A=
=0A=
=0A=
pair(const _T1& __a, const _T2& __b) : first(__a), second(__b) {}=0A=
=0A=
=0A=
template <class _U1, class _U2>=0A=
pair(const pair<_U1, _U2>& __p) : first(__p.first), second(__p.second) =
{}=0A=
};=0A=
=0A=
=0A=
template <class _T1, class _T2>=0A=
inline bool operator=3D=3D(const pair<_T1, _T2>& __x, const pair<_T1, =
_T2>& __y)=0A=
{=0A=
return __x.first =3D=3D __y.first && __x.second =3D=3D __y.second;=0A=
}=0A=
=0A=
=0A=
template <class _T1, class _T2>=0A=
inline bool operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& =
__y)=0A=
{=0A=
return __x.first < __y.first ||=0A=
(!(__y.first < __x.first) && __x.second < __y.second);=0A=
}=0A=
=0A=
=0A=
template <class _T1, class _T2>=0A=
inline bool operator!=3D(const pair<_T1, _T2>& __x, const pair<_T1, =
_T2>& __y) {=0A=
return !(__x =3D=3D __y);=0A=
}=0A=
=0A=
=0A=
template <class _T1, class _T2>=0A=
inline bool operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& =
__y) {=0A=
return __y < __x;=0A=
}=0A=
=0A=
=0A=
template <class _T1, class _T2>=0A=
inline bool operator<=3D(const pair<_T1, _T2>& __x, const pair<_T1, =
_T2>& __y) {=0A=
return !(__y < __x);=0A=
}=0A=
=0A=
=0A=
template <class _T1, class _T2>=0A=
inline bool operator>=3D(const pair<_T1, _T2>& __x, const pair<_T1, =
_T2>& __y) {=0A=
return !(__x < __y);=0A=
}=0A=
# 140 "/usr/local/include/g++-v3/bits/stl_pair.h" 3=0A=
template <class _T1, class _T2>=0A=
=0A=
=0A=
inline pair<_T1, _T2> make_pair(_T1 __x, _T2 __y)=0A=
=0A=
=0A=
=0A=
{=0A=
return pair<_T1, _T2>(__x, __y);=0A=
}=0A=
=0A=
}=0A=
# 72 "/usr/local/include/g++-v3/bits/stl_algobase.h" 2 3=0A=
# 1 "/usr/local/include/g++-v3/bits/type_traits.h" 1 3=0A=
# 53 "/usr/local/include/g++-v3/bits/type_traits.h" 3=0A=
# 90 "/usr/local/include/g++-v3/bits/type_traits.h" 3=0A=
struct __true_type {};=0A=
struct __false_type {};=0A=
=0A=
template <class _Tp>=0A=
struct __type_traits {=0A=
typedef __true_type this_dummy_member_must_be_first;=0A=
# 113 "/usr/local/include/g++-v3/bits/type_traits.h" 3=0A=
typedef __false_type has_trivial_default_constructor;=0A=
typedef __false_type has_trivial_copy_constructor;=0A=
typedef __false_type has_trivial_assignment_operator;=0A=
typedef __false_type has_trivial_destructor;=0A=
typedef __false_type is_POD_type;=0A=
};=0A=
=0A=
=0A=
=0A=
=0A=
template<> struct __type_traits<bool> {=0A=
typedef __true_type has_trivial_default_constructor;=0A=
typedef __true_type has_trivial_copy_constructor;=0A=
typedef __true_type has_trivial_assignment_operator;=0A=
typedef __true_type has_trivial_destructor;=0A=
typedef __true_type is_POD_type;=0A=
};=0A=
=0A=
template<> struct __type_traits<char> {=0A=
typedef __true_type has_trivial_default_constructor;=0A=
typedef __true_type has_trivial_copy_constructor;=0A=
typedef __true_type has_trivial_assignment_operator;=0A=
typedef __true_type has_trivial_destructor;=0A=
typedef __true_type is_POD_type;=0A=
};=0A=
=0A=
template<> struct __type_traits<signed char> {=0A=
typedef __true_type has_trivial_default_constructor;=0A=
typedef __true_type has_trivial_copy_constructor;=0A=
typedef __true_type has_trivial_assignment_operator;=0A=
typedef __true_type has_trivial_destructor;=0A=
typedef __true_type is_POD_type;=0A=
};=0A=
=0A=
template<> struct __type_traits<unsigned char> {=0A=
typedef __true_type has_trivial_default_constructor;=0A=
typedef __true_type has_trivial_copy_constructor;=0A=
typedef __true_type has_trivial_assignment_operator;=0A=
typedef __true_type has_trivial_destructor;=0A=
typedef __true_type is_POD_type;=0A=
};=0A=
=0A=
template<> struct __type_traits<wchar_t> {=0A=
typedef __true_type has_trivial_default_constructor;=0A=
typedef __true_type has_trivial_copy_constructor;=0A=
typedef __true_type has_trivial_assignment_operator;=0A=
typedef __true_type has_trivial_destructor;=0A=
typedef __true_type is_POD_type;=0A=
};=0A=
=0A=
template<> struct __type_traits<short> {=0A=
typedef __true_type has_trivial_default_constructor;=0A=
typedef __true_type has_trivial_copy_constructor;=0A=
typedef __true_type has_trivial_assignment_operator;=0A=
typedef __true_type has_trivial_destructor;=0A=
typedef __true_type is_POD_type;=0A=
};=0A=
=0A=
template<> struct __type_traits<unsigned short> {=0A=
typedef __true_type has_trivial_default_constructor;=0A=
typedef __true_type has_trivial_copy_constructor;=0A=
typedef __true_type has_trivial_assignment_operator;=0A=
typedef __true_type has_trivial_destructor;=0A=
typedef __true_type is_POD_type;=0A=
};=0A=
=0A=
template<> struct __type_traits<int> {=0A=
typedef __true_type has_trivial_default_constructor;=0A=
typedef __true_type has_trivial_copy_constructor;=0A=
typedef __true_type has_trivial_assignment_operator;=0A=
typedef __true_type has_trivial_destructor;=0A=
typedef __true_type is_POD_type;=0A=
};=0A=
=0A=
template<> struct __type_traits<unsigned int> {=0A=
typedef __true_type has_trivial_default_constructor;=0A=
typedef __true_type has_trivial_copy_constructor;=0A=
typedef __true_type has_trivial_assignment_operator;=0A=
typedef __true_type has_trivial_destructor;=0A=
typedef __true_type is_POD_type;=0A=
};=0A=
=0A=
template<> struct __type_traits<long> {=0A=
typedef __true_type has_trivial_default_constructor;=0A=
typedef __true_type has_trivial_copy_constructor;=0A=
typedef __true_type has_trivial_assignment_operator;=0A=
typedef __true_type has_trivial_destructor;=0A=
typedef __true_type is_POD_type;=0A=
};=0A=
=0A=
template<> struct __type_traits<unsigned long> {=0A=
typedef __true_type has_trivial_default_constructor;=0A=
typedef __true_type has_trivial_copy_constructor;=0A=
typedef __true_type has_trivial_assignment_operator;=0A=
typedef __true_type has_trivial_destructor;=0A=
typedef __true_type is_POD_type;=0A=
};=0A=
=0A=
template<> struct __type_traits<long long> {=0A=
typedef __true_type has_trivial_default_constructor;=0A=
typedef __true_type has_trivial_copy_constructor;=0A=
typedef __true_type has_trivial_assignment_operator;=0A=
typedef __true_type has_trivial_destructor;=0A=
typedef __true_type is_POD_type;=0A=
};=0A=
=0A=
template<> struct __type_traits<unsigned long long> {=0A=
typedef __true_type has_trivial_default_constructor;=0A=
typedef __true_type has_trivial_copy_constructor;=0A=
typedef __true_type has_trivial_assignment_operator;=0A=
typedef __true_type has_trivial_destructor;=0A=
typedef __true_type is_POD_type;=0A=
};=0A=
=0A=
template<> struct __type_traits<float> {=0A=
typedef __true_type has_trivial_default_constructor;=0A=
typedef __true_type has_trivial_copy_constructor;=0A=
typedef __true_type has_trivial_assignment_operator;=0A=
typedef __true_type has_trivial_destructor;=0A=
typedef __true_type is_POD_type;=0A=
};=0A=
=0A=
template<> struct __type_traits<double> {=0A=
typedef __true_type has_trivial_default_constructor;=0A=
typedef __true_type has_trivial_copy_constructor;=0A=
typedef __true_type has_trivial_assignment_operator;=0A=
typedef __true_type has_trivial_destructor;=0A=
typedef __true_type is_POD_type;=0A=
};=0A=
=0A=
template<> struct __type_traits<long double> {=0A=
typedef __true_type has_trivial_default_constructor;=0A=
typedef __true_type has_trivial_copy_constructor;=0A=
typedef __true_type has_trivial_assignment_operator;=0A=
typedef __true_type has_trivial_destructor;=0A=
typedef __true_type is_POD_type;=0A=
};=0A=
=0A=
template <class _Tp>=0A=
struct __type_traits<_Tp*> {=0A=
typedef __true_type has_trivial_default_constructor;=0A=
typedef __true_type has_trivial_copy_constructor;=0A=
typedef __true_type has_trivial_assignment_operator;=0A=
typedef __true_type has_trivial_destructor;=0A=
typedef __true_type is_POD_type;=0A=
};=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template <class _Tp> struct _Is_integer {=0A=
typedef __false_type _Integral;=0A=
};=0A=
=0A=
template<> struct _Is_integer<bool> {=0A=
typedef __true_type _Integral;=0A=
};=0A=
=0A=
template<> struct _Is_integer<char> {=0A=
typedef __true_type _Integral;=0A=
};=0A=
=0A=
template<> struct _Is_integer<signed char> {=0A=
typedef __true_type _Integral;=0A=
};=0A=
=0A=
template<> struct _Is_integer<unsigned char> {=0A=
typedef __true_type _Integral;=0A=
};=0A=
=0A=
template<> struct _Is_integer<wchar_t> {=0A=
typedef __true_type _Integral;=0A=
};=0A=
=0A=
template<> struct _Is_integer<short> {=0A=
typedef __true_type _Integral;=0A=
};=0A=
=0A=
template<> struct _Is_integer<unsigned short> {=0A=
typedef __true_type _Integral;=0A=
};=0A=
=0A=
template<> struct _Is_integer<int> {=0A=
typedef __true_type _Integral;=0A=
};=0A=
=0A=
template<> struct _Is_integer<unsigned int> {=0A=
typedef __true_type _Integral;=0A=
};=0A=
=0A=
template<> struct _Is_integer<long> {=0A=
typedef __true_type _Integral;=0A=
};=0A=
=0A=
template<> struct _Is_integer<unsigned long> {=0A=
typedef __true_type _Integral;=0A=
};=0A=
=0A=
template<> struct _Is_integer<long long> {=0A=
typedef __true_type _Integral;=0A=
};=0A=
=0A=
template<> struct _Is_integer<unsigned long long> {=0A=
typedef __true_type _Integral;=0A=
};=0A=
=0A=
template<typename _Tp> struct _Is_normal_iterator {=0A=
typedef __false_type _Normal;=0A=
};=0A=
=0A=
=0A=
namespace __gnu_cxx=0A=
{=0A=
template<typename _Iterator, typename _Container> class =
__normal_iterator;=0A=
}=0A=
=0A=
template<typename _Iterator, typename _Container>=0A=
struct _Is_normal_iterator< __gnu_cxx::__normal_iterator<_Iterator, =
_Container> > {=0A=
typedef __true_type _Normal;=0A=
};=0A=
# 73 "/usr/local/include/g++-v3/bits/stl_algobase.h" 2 3=0A=
# 1 "/usr/local/include/g++-v3/bits/stl_iterator_base_types.h" 1 3=0A=
# 68 "/usr/local/include/g++-v3/bits/stl_iterator_base_types.h" 3=0A=
=0A=
namespace std=0A=
{=0A=
# 80 "/usr/local/include/g++-v3/bits/stl_iterator_base_types.h" 3=0A=
struct input_iterator_tag {};=0A=
=0A=
struct output_iterator_tag {};=0A=
=0A=
struct forward_iterator_tag : public input_iterator_tag {};=0A=
=0A=
struct bidirectional_iterator_tag : public forward_iterator_tag {};=0A=
=0A=
struct random_access_iterator_tag : public bidirectional_iterator_tag =
{};=0A=
# 100 "/usr/local/include/g++-v3/bits/stl_iterator_base_types.h" 3=0A=
template<typename _Category, typename _Tp, typename _Distance =3D =
ptrdiff_t,=0A=
typename _Pointer =3D _Tp*, typename _Reference =3D _Tp&>=0A=
struct iterator {=0A=
=0A=
typedef _Category iterator_category;=0A=
=0A=
typedef _Tp value_type;=0A=
=0A=
typedef _Distance difference_type;=0A=
=0A=
typedef _Pointer pointer;=0A=
=0A=
typedef _Reference reference;=0A=
};=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _Iterator>=0A=
struct iterator_traits {=0A=
typedef typename _Iterator::iterator_category iterator_category;=0A=
typedef typename _Iterator::value_type value_type;=0A=
typedef typename _Iterator::difference_type difference_type;=0A=
typedef typename _Iterator::pointer pointer;=0A=
typedef typename _Iterator::reference reference;=0A=
};=0A=
=0A=
template<typename _Tp>=0A=
struct iterator_traits<_Tp*> {=0A=
typedef random_access_iterator_tag iterator_category;=0A=
typedef _Tp value_type;=0A=
typedef ptrdiff_t difference_type;=0A=
typedef _Tp* pointer;=0A=
typedef _Tp& reference;=0A=
};=0A=
=0A=
template<typename _Tp>=0A=
struct iterator_traits<const _Tp*> {=0A=
typedef random_access_iterator_tag iterator_category;=0A=
typedef _Tp value_type;=0A=
typedef ptrdiff_t difference_type;=0A=
typedef const _Tp* pointer;=0A=
typedef const _Tp& reference;=0A=
};=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _Iter>=0A=
inline typename iterator_traits<_Iter>::iterator_category=0A=
__iterator_category(const _Iter&)=0A=
{ return typename iterator_traits<_Iter>::iterator_category(); }=0A=
=0A=
}=0A=
# 74 "/usr/local/include/g++-v3/bits/stl_algobase.h" 2 3=0A=
# 1 "/usr/local/include/g++-v3/bits/stl_iterator_base_funcs.h" 1 3=0A=
# 68 "/usr/local/include/g++-v3/bits/stl_iterator_base_funcs.h" 3=0A=
# 1 "/usr/local/include/g++-v3/bits/concept_check.h" 1 3=0A=
# 39 "/usr/local/include/g++-v3/bits/concept_check.h" 3=0A=
# 69 "/usr/local/include/g++-v3/bits/stl_iterator_base_funcs.h" 2 3=0A=
=0A=
=0A=
=0A=
=0A=
namespace std=0A=
{=0A=
template<typename _InputIterator>=0A=
inline typename iterator_traits<_InputIterator>::difference_type=0A=
__distance(_InputIterator __first, _InputIterator __last, =
input_iterator_tag)=0A=
{=0A=
=0A=
=0A=
=0A=
typename iterator_traits<_InputIterator>::difference_type __n =3D 0;=0A=
while (__first !=3D __last) {=0A=
++__first; ++__n;=0A=
}=0A=
return __n;=0A=
}=0A=
=0A=
template<typename _RandomAccessIterator>=0A=
inline typename iterator_traits<_RandomAccessIterator>::difference_type=0A=
__distance(_RandomAccessIterator __first, _RandomAccessIterator __last,=0A=
random_access_iterator_tag)=0A=
{=0A=
=0A=
=0A=
return __last - __first;=0A=
}=0A=
# 111 "/usr/local/include/g++-v3/bits/stl_iterator_base_funcs.h" 3=0A=
template<typename _InputIterator>=0A=
inline typename iterator_traits<_InputIterator>::difference_type=0A=
distance(_InputIterator __first, _InputIterator __last)=0A=
{=0A=
=0A=
return __distance(__first, __last, __iterator_category(__first));=0A=
}=0A=
=0A=
template<typename _InputIter, typename _Distance>=0A=
inline void=0A=
__advance(_InputIter& __i, _Distance __n, input_iterator_tag)=0A=
{=0A=
=0A=
=0A=
while (__n--) ++__i;=0A=
}=0A=
=0A=
template<typename _BidirectionalIterator, typename _Distance>=0A=
inline void=0A=
__advance(_BidirectionalIterator& __i, _Distance __n,=0A=
bidirectional_iterator_tag)=0A=
{=0A=
=0A=
=0A=
=0A=
if (__n > 0)=0A=
while (__n--) ++__i;=0A=
else=0A=
while (__n++) --__i;=0A=
}=0A=
=0A=
template<typename _RandomAccessIterator, typename _Distance>=0A=
inline void=0A=
__advance(_RandomAccessIterator& __i, _Distance __n,=0A=
random_access_iterator_tag)=0A=
{=0A=
=0A=
=0A=
__i +=3D __n;=0A=
}=0A=
# 164 "/usr/local/include/g++-v3/bits/stl_iterator_base_funcs.h" 3=0A=
template<typename _InputIterator, typename _Distance>=0A=
inline void=0A=
advance(_InputIterator& __i, _Distance __n)=0A=
{=0A=
=0A=
__advance(__i, __n, __iterator_category(__i));=0A=
}=0A=
=0A=
}=0A=
# 75 "/usr/local/include/g++-v3/bits/stl_algobase.h" 2 3=0A=
# 1 "/usr/local/include/g++-v3/bits/stl_iterator.h" 1 3=0A=
# 68 "/usr/local/include/g++-v3/bits/stl_iterator.h" 3=0A=
namespace std=0A=
{=0A=
# 89 "/usr/local/include/g++-v3/bits/stl_iterator.h" 3=0A=
template<typename _Iterator>=0A=
class reverse_iterator=0A=
: public iterator<typename =
iterator_traits<_Iterator>::iterator_category,=0A=
typename iterator_traits<_Iterator>::value_type,=0A=
typename =
iterator_traits<_Iterator>::difference_type,=0A=
typename iterator_traits<_Iterator>::pointer,=0A=
typename iterator_traits<_Iterator>::reference>=0A=
{=0A=
protected:=0A=
_Iterator current;=0A=
=0A=
public:=0A=
typedef _Iterator iterator_type;=0A=
typedef typename iterator_traits<_Iterator>::difference_type=0A=
=
difference_type;=0A=
typedef typename iterator_traits<_Iterator>::reference reference;=0A=
typedef typename iterator_traits<_Iterator>::pointer pointer;=0A=
=0A=
public:=0A=
=0A=
=0A=
=0A=
reverse_iterator() { }=0A=
=0A=
=0A=
=0A=
=0A=
explicit=0A=
reverse_iterator(iterator_type __x) : current(__x) { }=0A=
=0A=
=0A=
=0A=
=0A=
reverse_iterator(const reverse_iterator& __x)=0A=
: current(__x.current) { }=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _Iter>=0A=
reverse_iterator(const reverse_iterator<_Iter>& __x)=0A=
: current(__x.base()) { }=0A=
=0A=
=0A=
=0A=
=0A=
iterator_type=0A=
base() const { return current; }=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
reference=0A=
operator*() const=0A=
{=0A=
_Iterator __tmp =3D current;=0A=
return *--__tmp;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
pointer=0A=
operator->() const { return &(operator*()); }=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
reverse_iterator&=0A=
operator++()=0A=
{=0A=
--current;=0A=
return *this;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
reverse_iterator=0A=
operator++(int)=0A=
{=0A=
reverse_iterator __tmp =3D *this;=0A=
--current;=0A=
return __tmp;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
reverse_iterator&=0A=
operator--()=0A=
{=0A=
++current;=0A=
return *this;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
reverse_iterator operator--(int)=0A=
{=0A=
reverse_iterator __tmp =3D *this;=0A=
++current;=0A=
return __tmp;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
reverse_iterator=0A=
operator+(difference_type __n) const=0A=
{ return reverse_iterator(current - __n); }=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
reverse_iterator&=0A=
operator+=3D(difference_type __n)=0A=
{=0A=
current -=3D __n;=0A=
return *this;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
reverse_iterator=0A=
operator-(difference_type __n) const=0A=
{ return reverse_iterator(current + __n); }=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
reverse_iterator&=0A=
operator-=3D(difference_type __n)=0A=
{=0A=
current +=3D __n;=0A=
return *this;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
reference=0A=
operator[](difference_type __n) const { return *(*this + __n); }=0A=
};=0A=
# 269 "/usr/local/include/g++-v3/bits/stl_iterator.h" 3=0A=
template<typename _Iterator>=0A=
inline bool=0A=
operator=3D=3D(const reverse_iterator<_Iterator>& __x,=0A=
const reverse_iterator<_Iterator>& __y)=0A=
{ return __x.base() =3D=3D __y.base(); }=0A=
=0A=
template<typename _Iterator>=0A=
inline bool=0A=
operator<(const reverse_iterator<_Iterator>& __x,=0A=
const reverse_iterator<_Iterator>& __y)=0A=
{ return __y.base() < __x.base(); }=0A=
=0A=
template<typename _Iterator>=0A=
inline bool=0A=
operator!=3D(const reverse_iterator<_Iterator>& __x,=0A=
const reverse_iterator<_Iterator>& __y)=0A=
{ return !(__x =3D=3D __y); }=0A=
=0A=
template<typename _Iterator>=0A=
inline bool=0A=
operator>(const reverse_iterator<_Iterator>& __x,=0A=
const reverse_iterator<_Iterator>& __y)=0A=
{ return __y < __x; }=0A=
=0A=
template<typename _Iterator>=0A=
inline bool=0A=
operator<=3D(const reverse_iterator<_Iterator>& __x,=0A=
const reverse_iterator<_Iterator>& __y)=0A=
{ return !(__y < __x); }=0A=
=0A=
template<typename _Iterator>=0A=
inline bool=0A=
operator>=3D(const reverse_iterator<_Iterator>& __x,=0A=
const reverse_iterator<_Iterator>& __y)=0A=
{ return !(__x < __y); }=0A=
=0A=
template<typename _Iterator>=0A=
inline typename reverse_iterator<_Iterator>::difference_type=0A=
operator-(const reverse_iterator<_Iterator>& __x,=0A=
const reverse_iterator<_Iterator>& __y)=0A=
{ return __y.base() - __x.base(); }=0A=
=0A=
template<typename _Iterator>=0A=
inline reverse_iterator<_Iterator>=0A=
operator+(typename reverse_iterator<_Iterator>::difference_type __n,=0A=
const reverse_iterator<_Iterator>& __x)=0A=
{ return reverse_iterator<_Iterator>(__x.base() - __n); }=0A=
# 327 "/usr/local/include/g++-v3/bits/stl_iterator.h" 3=0A=
template<typename _Container>=0A=
class back_insert_iterator=0A=
: public iterator<output_iterator_tag, void, void, void, void>=0A=
{=0A=
protected:=0A=
_Container* container;=0A=
=0A=
public:=0A=
=0A=
typedef _Container container_type;=0A=
=0A=
=0A=
explicit=0A=
back_insert_iterator(_Container& __x) : container(&__x) { }=0A=
# 353 "/usr/local/include/g++-v3/bits/stl_iterator.h" 3=0A=
back_insert_iterator&=0A=
operator=3D(typename _Container::const_reference __value)=0A=
{=0A=
container->push_back(__value);=0A=
return *this;=0A=
}=0A=
=0A=
=0A=
back_insert_iterator&=0A=
operator*() { return *this; }=0A=
=0A=
=0A=
back_insert_iterator&=0A=
operator++() { return *this; }=0A=
=0A=
=0A=
back_insert_iterator=0A=
operator++(int) { return *this; }=0A=
};=0A=
# 384 "/usr/local/include/g++-v3/bits/stl_iterator.h" 3=0A=
template<typename _Container>=0A=
inline back_insert_iterator<_Container>=0A=
back_inserter(_Container& __x)=0A=
{ return back_insert_iterator<_Container>(__x); }=0A=
# 397 "/usr/local/include/g++-v3/bits/stl_iterator.h" 3=0A=
template<typename _Container>=0A=
class front_insert_iterator=0A=
: public iterator<output_iterator_tag, void, void, void, void>=0A=
{=0A=
protected:=0A=
_Container* container;=0A=
=0A=
public:=0A=
=0A=
typedef _Container container_type;=0A=
=0A=
=0A=
explicit front_insert_iterator(_Container& __x) : container(&__x) =
{ }=0A=
# 422 "/usr/local/include/g++-v3/bits/stl_iterator.h" 3=0A=
front_insert_iterator&=0A=
operator=3D(typename _Container::const_reference __value)=0A=
{=0A=
container->push_front(__value);=0A=
return *this;=0A=
}=0A=
=0A=
=0A=
front_insert_iterator&=0A=
operator*() { return *this; }=0A=
=0A=
=0A=
front_insert_iterator&=0A=
operator++() { return *this; }=0A=
=0A=
=0A=
front_insert_iterator=0A=
operator++(int) { return *this; }=0A=
};=0A=
# 453 "/usr/local/include/g++-v3/bits/stl_iterator.h" 3=0A=
template<typename _Container>=0A=
inline front_insert_iterator<_Container>=0A=
front_inserter(_Container& __x)=0A=
{ return front_insert_iterator<_Container>(__x); }=0A=
# 470 "/usr/local/include/g++-v3/bits/stl_iterator.h" 3=0A=
template<typename _Container>=0A=
class insert_iterator=0A=
: public iterator<output_iterator_tag, void, void, void, void>=0A=
{=0A=
protected:=0A=
_Container* container;=0A=
typename _Container::iterator iter;=0A=
=0A=
public:=0A=
=0A=
typedef _Container container_type;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
insert_iterator(_Container& __x, typename _Container::iterator __i)=0A=
: container(&__x), iter(__i) {}=0A=
# 512 "/usr/local/include/g++-v3/bits/stl_iterator.h" 3=0A=
insert_iterator&=0A=
operator=3D(const typename _Container::const_reference __value)=0A=
{=0A=
iter =3D container->insert(iter, __value);=0A=
++iter;=0A=
return *this;=0A=
}=0A=
=0A=
=0A=
insert_iterator&=0A=
operator*() { return *this; }=0A=
=0A=
=0A=
insert_iterator&=0A=
operator++() { return *this; }=0A=
=0A=
=0A=
insert_iterator&=0A=
operator++(int) { return *this; }=0A=
};=0A=
# 544 "/usr/local/include/g++-v3/bits/stl_iterator.h" 3=0A=
template<typename _Container, typename _Iterator>=0A=
inline insert_iterator<_Container>=0A=
inserter(_Container& __x, _Iterator __i)=0A=
{=0A=
return insert_iterator<_Container>(__x,=0A=
typename =
_Container::iterator(__i));=0A=
}=0A=
}=0A=
=0A=
namespace __gnu_cxx=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
using std::iterator_traits;=0A=
using std::iterator;=0A=
template<typename _Iterator, typename _Container>=0A=
class __normal_iterator=0A=
: public iterator<typename =
iterator_traits<_Iterator>::iterator_category,=0A=
typename iterator_traits<_Iterator>::value_type,=0A=
typename =
iterator_traits<_Iterator>::difference_type,=0A=
typename iterator_traits<_Iterator>::pointer,=0A=
typename iterator_traits<_Iterator>::reference>=0A=
{=0A=
protected:=0A=
_Iterator _M_current;=0A=
=0A=
public:=0A=
typedef typename iterator_traits<_Iterator>::difference_type=0A=
=
difference_type;=0A=
typedef typename iterator_traits<_Iterator>::reference reference;=0A=
typedef typename iterator_traits<_Iterator>::pointer pointer;=0A=
=0A=
__normal_iterator() : _M_current(_Iterator()) { }=0A=
=0A=
explicit=0A=
__normal_iterator(const _Iterator& __i) : _M_current(__i) { }=0A=
=0A=
=0A=
template<typename _Iter>=0A=
inline __normal_iterator(const __normal_iterator<_Iter, =
_Container>& __i)=0A=
: _M_current(__i.base()) { }=0A=
=0A=
=0A=
reference=0A=
operator*() const { return *_M_current; }=0A=
=0A=
pointer=0A=
operator->() const { return _M_current; }=0A=
=0A=
__normal_iterator&=0A=
operator++() { ++_M_current; return *this; }=0A=
=0A=
__normal_iterator=0A=
operator++(int) { return __normal_iterator(_M_current++); }=0A=
=0A=
=0A=
__normal_iterator&=0A=
operator--() { --_M_current; return *this; }=0A=
=0A=
__normal_iterator=0A=
operator--(int) { return __normal_iterator(_M_current--); }=0A=
=0A=
=0A=
reference=0A=
operator[](const difference_type& __n) const=0A=
{ return _M_current[__n]; }=0A=
=0A=
__normal_iterator&=0A=
operator+=3D(const difference_type& __n)=0A=
{ _M_current +=3D __n; return *this; }=0A=
=0A=
__normal_iterator=0A=
operator+(const difference_type& __n) const=0A=
{ return __normal_iterator(_M_current + __n); }=0A=
=0A=
__normal_iterator&=0A=
operator-=3D(const difference_type& __n)=0A=
{ _M_current -=3D __n; return *this; }=0A=
=0A=
__normal_iterator=0A=
operator-(const difference_type& __n) const=0A=
{ return __normal_iterator(_M_current - __n); }=0A=
=0A=
difference_type=0A=
operator-(const __normal_iterator& __i) const=0A=
{ return _M_current - __i._M_current; }=0A=
=0A=
const _Iterator&=0A=
base() const { return _M_current; }=0A=
};=0A=
# 649 "/usr/local/include/g++-v3/bits/stl_iterator.h" 3=0A=
template<typename _IteratorL, typename _IteratorR, typename _Container>=0A=
inline bool=0A=
operator=3D=3D(const __normal_iterator<_IteratorL, _Container>& __lhs,=0A=
const __normal_iterator<_IteratorR, _Container>& __rhs)=0A=
{ return __lhs.base() =3D=3D __rhs.base(); }=0A=
=0A=
template<typename _Iterator, typename _Container>=0A=
inline bool=0A=
operator=3D=3D(const __normal_iterator<_Iterator, _Container>& __lhs,=0A=
const __normal_iterator<_Iterator, _Container>& __rhs)=0A=
{ return __lhs.base() =3D=3D __rhs.base(); }=0A=
=0A=
template<typename _IteratorL, typename _IteratorR, typename _Container>=0A=
inline bool=0A=
operator!=3D(const __normal_iterator<_IteratorL, _Container>& __lhs,=0A=
const __normal_iterator<_IteratorR, _Container>& __rhs)=0A=
{ return __lhs.base() !=3D __rhs.base(); }=0A=
=0A=
template<typename _Iterator, typename _Container>=0A=
inline bool=0A=
operator!=3D(const __normal_iterator<_Iterator, _Container>& __lhs,=0A=
const __normal_iterator<_Iterator, _Container>& __rhs)=0A=
{ return __lhs.base() !=3D __rhs.base(); }=0A=
=0A=
=0A=
template<typename _IteratorL, typename _IteratorR, typename _Container>=0A=
inline bool=0A=
operator<(const __normal_iterator<_IteratorL, _Container>& __lhs,=0A=
const __normal_iterator<_IteratorR, _Container>& __rhs)=0A=
{ return __lhs.base() < __rhs.base(); }=0A=
=0A=
template<typename _Iterator, typename _Container>=0A=
inline bool=0A=
operator<(const __normal_iterator<_Iterator, _Container>& __lhs,=0A=
const __normal_iterator<_Iterator, _Container>& __rhs)=0A=
{ return __lhs.base() < __rhs.base(); }=0A=
=0A=
template<typename _IteratorL, typename _IteratorR, typename _Container>=0A=
inline bool=0A=
operator>(const __normal_iterator<_IteratorL, _Container>& __lhs,=0A=
const __normal_iterator<_IteratorR, _Container>& __rhs)=0A=
{ return __lhs.base() > __rhs.base(); }=0A=
=0A=
template<typename _Iterator, typename _Container>=0A=
inline bool=0A=
operator>(const __normal_iterator<_Iterator, _Container>& __lhs,=0A=
const __normal_iterator<_Iterator, _Container>& __rhs)=0A=
{ return __lhs.base() > __rhs.base(); }=0A=
=0A=
template<typename _IteratorL, typename _IteratorR, typename _Container>=0A=
inline bool=0A=
operator<=3D(const __normal_iterator<_IteratorL, _Container>& __lhs,=0A=
const __normal_iterator<_IteratorR, _Container>& __rhs)=0A=
{ return __lhs.base() <=3D __rhs.base(); }=0A=
=0A=
template<typename _Iterator, typename _Container>=0A=
inline bool=0A=
operator<=3D(const __normal_iterator<_Iterator, _Container>& __lhs,=0A=
const __normal_iterator<_Iterator, _Container>& __rhs)=0A=
{ return __lhs.base() <=3D __rhs.base(); }=0A=
=0A=
template<typename _IteratorL, typename _IteratorR, typename _Container>=0A=
inline bool=0A=
operator>=3D(const __normal_iterator<_IteratorL, _Container>& __lhs,=0A=
const __normal_iterator<_IteratorR, _Container>& __rhs)=0A=
{ return __lhs.base() >=3D __rhs.base(); }=0A=
=0A=
template<typename _Iterator, typename _Container>=0A=
inline bool=0A=
operator>=3D(const __normal_iterator<_Iterator, _Container>& __lhs,=0A=
const __normal_iterator<_Iterator, _Container>& __rhs)=0A=
{ return __lhs.base() >=3D __rhs.base(); }=0A=
=0A=
template<typename _Iterator, typename _Container>=0A=
inline __normal_iterator<_Iterator, _Container>=0A=
operator+(typename __normal_iterator<_Iterator, =
_Container>::difference_type __n,=0A=
const __normal_iterator<_Iterator, _Container>& __i)=0A=
{ return __normal_iterator<_Iterator, _Container>(__i.base() + __n); }=0A=
}=0A=
# 76 "/usr/local/include/g++-v3/bits/stl_algobase.h" 2 3=0A=
=0A=
=0A=
namespace std=0A=
{=0A=
# 91 "/usr/local/include/g++-v3/bits/stl_algobase.h" 3=0A=
template<typename _ForwardIter1, typename _ForwardIter2>=0A=
inline void=0A=
iter_swap(_ForwardIter1 __a, _ForwardIter2 __b)=0A=
{=0A=
typedef typename iterator_traits<_ForwardIter1>::value_type =
_ValueType1;=0A=
typedef typename iterator_traits<_ForwardIter2>::value_type =
_ValueType2;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
_ValueType1 __tmp =3D *__a;=0A=
*__a =3D *__b;=0A=
*__b =3D __tmp;=0A=
}=0A=
# 118 "/usr/local/include/g++-v3/bits/stl_algobase.h" 3=0A=
template<typename _Tp>=0A=
inline void=0A=
swap(_Tp& __a, _Tp& __b)=0A=
{=0A=
=0A=
=0A=
=0A=
_Tp __tmp =3D __a;=0A=
__a =3D __b;=0A=
__b =3D __tmp;=0A=
}=0A=
# 146 "/usr/local/include/g++-v3/bits/stl_algobase.h" 3=0A=
template<typename _Tp>=0A=
inline const _Tp&=0A=
min(const _Tp& __a, const _Tp& __b)=0A=
{=0A=
=0A=
=0A=
=0A=
if (__b < __a) return __b; return __a;=0A=
}=0A=
# 166 "/usr/local/include/g++-v3/bits/stl_algobase.h" 3=0A=
template<typename _Tp>=0A=
inline const _Tp&=0A=
max(const _Tp& __a, const _Tp& __b)=0A=
{=0A=
=0A=
=0A=
=0A=
if (__a < __b) return __b; return __a;=0A=
}=0A=
# 186 "/usr/local/include/g++-v3/bits/stl_algobase.h" 3=0A=
template<typename _Tp, typename _Compare>=0A=
inline const _Tp&=0A=
min(const _Tp& __a, const _Tp& __b, _Compare __comp)=0A=
{=0A=
=0A=
if (__comp(__b, __a)) return __b; return __a;=0A=
}=0A=
# 204 "/usr/local/include/g++-v3/bits/stl_algobase.h" 3=0A=
template<typename _Tp, typename _Compare>=0A=
inline const _Tp&=0A=
max(const _Tp& __a, const _Tp& __b, _Compare __comp)=0A=
{=0A=
=0A=
if (__comp(__a, __b)) return __b; return __a;=0A=
}=0A=
# 221 "/usr/local/include/g++-v3/bits/stl_algobase.h" 3=0A=
template<typename _InputIter, typename _OutputIter>=0A=
inline _OutputIter=0A=
__copy(_InputIter __first, _InputIter __last,=0A=
_OutputIter __result,=0A=
input_iterator_tag)=0A=
{=0A=
for ( ; __first !=3D __last; ++__result, ++__first)=0A=
*__result =3D *__first;=0A=
return __result;=0A=
}=0A=
=0A=
template<typename _RandomAccessIter, typename _OutputIter>=0A=
inline _OutputIter=0A=
__copy(_RandomAccessIter __first, _RandomAccessIter __last,=0A=
_OutputIter __result,=0A=
random_access_iterator_tag)=0A=
{=0A=
typedef typename =
iterator_traits<_RandomAccessIter>::difference_type=0A=
_Distance;=0A=
for (_Distance __n =3D __last - __first; __n > 0; --__n) {=0A=
*__result =3D *__first;=0A=
++__first;=0A=
++__result;=0A=
}=0A=
return __result;=0A=
}=0A=
=0A=
template<typename _Tp>=0A=
inline _Tp*=0A=
__copy_trivial(const _Tp* __first, const _Tp* __last, _Tp* __result)=0A=
{=0A=
memmove(__result, __first, sizeof(_Tp) * (__last - __first));=0A=
return __result + (__last - __first);=0A=
}=0A=
=0A=
template<typename _InputIter, typename _OutputIter>=0A=
inline _OutputIter=0A=
__copy_aux2(_InputIter __first, _InputIter __last,=0A=
_OutputIter __result, __false_type)=0A=
{ return __copy(__first, __last, __result, =
__iterator_category(__first)); }=0A=
=0A=
template<typename _InputIter, typename _OutputIter>=0A=
inline _OutputIter=0A=
__copy_aux2(_InputIter __first, _InputIter __last,=0A=
_OutputIter __result, __true_type)=0A=
{ return __copy(__first, __last, __result, =
__iterator_category(__first)); }=0A=
=0A=
template<typename _Tp>=0A=
inline _Tp*=0A=
__copy_aux2(_Tp* __first, _Tp* __last,=0A=
_Tp* __result, __true_type)=0A=
{ return __copy_trivial(__first, __last, __result); }=0A=
=0A=
template<typename _Tp>=0A=
inline _Tp*=0A=
__copy_aux2(const _Tp* __first, const _Tp* __last,=0A=
_Tp* __result, __true_type)=0A=
{ return __copy_trivial(__first, __last, __result); }=0A=
=0A=
template<typename _InputIter, typename _OutputIter>=0A=
inline _OutputIter=0A=
__copy_ni2(_InputIter __first, _InputIter __last,=0A=
_OutputIter __result, __true_type)=0A=
{=0A=
typedef typename iterator_traits<_InputIter>::value_type=0A=
_ValueType;=0A=
typedef typename =
__type_traits<_ValueType>::has_trivial_assignment_operator=0A=
_Trivial;=0A=
return _OutputIter(__copy_aux2(__first, __last,=0A=
__result.base(),=0A=
_Trivial()));=0A=
}=0A=
=0A=
template<typename _InputIter, typename _OutputIter>=0A=
inline _OutputIter=0A=
__copy_ni2(_InputIter __first, _InputIter __last,=0A=
_OutputIter __result, __false_type)=0A=
{=0A=
typedef typename iterator_traits<_InputIter>::value_type=0A=
_ValueType;=0A=
typedef typename =
__type_traits<_ValueType>::has_trivial_assignment_operator=0A=
_Trivial;=0A=
return __copy_aux2(__first, __last,=0A=
__result,=0A=
_Trivial());=0A=
}=0A=
=0A=
template<typename _InputIter, typename _OutputIter>=0A=
inline _OutputIter=0A=
__copy_ni1(_InputIter __first, _InputIter __last,=0A=
_OutputIter __result, __true_type)=0A=
{=0A=
typedef typename _Is_normal_iterator<_OutputIter>::_Normal =
__Normal;=0A=
return __copy_ni2(__first.base(), __last.base(), __result, =
__Normal());=0A=
}=0A=
=0A=
template<typename _InputIter, typename _OutputIter>=0A=
inline _OutputIter=0A=
__copy_ni1(_InputIter __first, _InputIter __last,=0A=
_OutputIter __result, __false_type)=0A=
{=0A=
typedef typename _Is_normal_iterator<_OutputIter>::_Normal =
__Normal;=0A=
return __copy_ni2(__first, __last, __result, __Normal());=0A=
}=0A=
# 339 "/usr/local/include/g++-v3/bits/stl_algobase.h" 3=0A=
template<typename _InputIter, typename _OutputIter>=0A=
inline _OutputIter=0A=
copy(_InputIter __first, _InputIter __last, _OutputIter __result)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
typedef typename _Is_normal_iterator<_InputIter>::_Normal =
__Normal;=0A=
return __copy_ni1(__first, __last, __result, __Normal());=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _BidirectionalIter1, typename _BidirectionalIter2>=0A=
inline _BidirectionalIter2=0A=
__copy_backward(_BidirectionalIter1 __first, _BidirectionalIter1 =
__last,=0A=
_BidirectionalIter2 __result,=0A=
bidirectional_iterator_tag)=0A=
{=0A=
while (__first !=3D __last)=0A=
*--__result =3D *--__last;=0A=
return __result;=0A=
}=0A=
=0A=
template<typename _RandomAccessIter, typename _BidirectionalIter>=0A=
inline _BidirectionalIter=0A=
__copy_backward(_RandomAccessIter __first, _RandomAccessIter __last,=0A=
_BidirectionalIter __result,=0A=
random_access_iterator_tag)=0A=
{=0A=
typename iterator_traits<_RandomAccessIter>::difference_type __n;=0A=
for (__n =3D __last - __first; __n > 0; --__n)=0A=
*--__result =3D *--__last;=0A=
return __result;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _BidirectionalIter1, typename _BidirectionalIter2,=0A=
typename _BoolType>=0A=
struct __copy_backward_dispatch=0A=
{=0A=
static _BidirectionalIter2=0A=
copy(_BidirectionalIter1 __first, _BidirectionalIter1 __last,=0A=
_BidirectionalIter2 __result)=0A=
{=0A=
return __copy_backward(__first, __last,=0A=
__result,=0A=
__iterator_category(__first));=0A=
}=0A=
};=0A=
=0A=
template<typename _Tp>=0A=
struct __copy_backward_dispatch<_Tp*, _Tp*, __true_type>=0A=
{=0A=
static _Tp*=0A=
copy(const _Tp* __first, const _Tp* __last, _Tp* __result)=0A=
{=0A=
const ptrdiff_t _Num =3D __last - __first;=0A=
memmove(__result - _Num, __first, sizeof(_Tp) * _Num);=0A=
return __result - _Num;=0A=
}=0A=
};=0A=
=0A=
template<typename _Tp>=0A=
struct __copy_backward_dispatch<const _Tp*, _Tp*, __true_type>=0A=
{=0A=
static _Tp*=0A=
copy(const _Tp* __first, const _Tp* __last, _Tp* __result)=0A=
{=0A=
return __copy_backward_dispatch<_Tp*, _Tp*, __true_type>=0A=
::copy(__first, __last, __result);=0A=
}=0A=
};=0A=
=0A=
template<typename _BI1, typename _BI2>=0A=
inline _BI2=0A=
__copy_backward_aux(_BI1 __first, _BI1 __last, _BI2 __result)=0A=
{=0A=
typedef typename __type_traits<typename =
iterator_traits<_BI2>::value_type>=0A=
::has_trivial_assignment_operator _Trivial;=0A=
return __copy_backward_dispatch<_BI1, _BI2, _Trivial>=0A=
::copy(__first, __last, __result);=0A=
}=0A=
=0A=
template <typename _BI1, typename _BI2>=0A=
inline _BI2=0A=
__copy_backward_output_normal_iterator(_BI1 __first, _BI1 __last,=0A=
_BI2 __result, __true_type)=0A=
{ return _BI2(__copy_backward_aux(__first, __last, =
__result.base())); }=0A=
=0A=
template <typename _BI1, typename _BI2>=0A=
inline _BI2=0A=
__copy_backward_output_normal_iterator(_BI1 __first, _BI1 __last,=0A=
_BI2 __result, __false_type)=0A=
{ return __copy_backward_aux(__first, __last, __result); }=0A=
=0A=
template <typename _BI1, typename _BI2>=0A=
inline _BI2=0A=
__copy_backward_input_normal_iterator(_BI1 __first, _BI1 __last,=0A=
_BI2 __result, __true_type)=0A=
{=0A=
typedef typename _Is_normal_iterator<_BI2>::_Normal __Normal;=0A=
return __copy_backward_output_normal_iterator(__first.base(), =
__last.base(),=0A=
__result, =
__Normal());=0A=
}=0A=
=0A=
template <typename _BI1, typename _BI2>=0A=
inline _BI2=0A=
__copy_backward_input_normal_iterator(_BI1 __first, _BI1 __last,=0A=
_BI2 __result, __false_type)=0A=
{=0A=
typedef typename _Is_normal_iterator<_BI2>::_Normal __Normal;=0A=
return __copy_backward_output_normal_iterator(__first, __last, =
__result,=0A=
__Normal());=0A=
}=0A=
# 477 "/usr/local/include/g++-v3/bits/stl_algobase.h" 3=0A=
template <typename _BI1, typename _BI2>=0A=
inline _BI2=0A=
copy_backward(_BI1 __first, _BI1 __last, _BI2 __result)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
typedef typename _Is_normal_iterator<_BI1>::_Normal __Normal;=0A=
return __copy_backward_input_normal_iterator(__first, __last, =
__result,=0A=
__Normal());=0A=
}=0A=
# 509 "/usr/local/include/g++-v3/bits/stl_algobase.h" 3=0A=
template<typename _ForwardIter, typename _Tp>=0A=
void=0A=
fill(_ForwardIter __first, _ForwardIter __last, const _Tp& __value)=0A=
{=0A=
=0A=
=0A=
=0A=
for ( ; __first !=3D __last; ++__first)=0A=
*__first =3D __value;=0A=
}=0A=
# 531 "/usr/local/include/g++-v3/bits/stl_algobase.h" 3=0A=
template<typename _OutputIter, typename _Size, typename _Tp>=0A=
_OutputIter=0A=
fill_n(_OutputIter __first, _Size __n, const _Tp& __value)=0A=
{=0A=
=0A=
=0A=
=0A=
for ( ; __n > 0; --__n, ++__first)=0A=
*__first =3D __value;=0A=
return __first;=0A=
}=0A=
=0A=
=0A=
=0A=
inline void=0A=
fill(unsigned char* __first, unsigned char* __last, const unsigned =
char& __c)=0A=
{=0A=
unsigned char __tmp =3D __c;=0A=
memset(__first, __tmp, __last - __first);=0A=
}=0A=
=0A=
inline void=0A=
fill(signed char* __first, signed char* __last, const signed char& __c)=0A=
{=0A=
signed char __tmp =3D __c;=0A=
memset(__first, static_cast<unsigned char>(__tmp), __last - __first);=0A=
}=0A=
=0A=
inline void=0A=
fill(char* __first, char* __last, const char& __c)=0A=
{=0A=
char __tmp =3D __c;=0A=
memset(__first, static_cast<unsigned char>(__tmp), __last - __first);=0A=
}=0A=
=0A=
template<typename _Size>=0A=
inline unsigned char*=0A=
fill_n(unsigned char* __first, _Size __n, const unsigned char& __c)=0A=
{=0A=
fill(__first, __first + __n, __c);=0A=
return __first + __n;=0A=
}=0A=
=0A=
template<typename _Size>=0A=
inline signed char*=0A=
fill_n(char* __first, _Size __n, const signed char& __c)=0A=
{=0A=
fill(__first, __first + __n, __c);=0A=
return __first + __n;=0A=
}=0A=
=0A=
template<typename _Size>=0A=
inline char*=0A=
fill_n(char* __first, _Size __n, const char& __c)=0A=
{=0A=
fill(__first, __first + __n, __c);=0A=
return __first + __n;=0A=
}=0A=
# 606 "/usr/local/include/g++-v3/bits/stl_algobase.h" 3=0A=
template<typename _InputIter1, typename _InputIter2>=0A=
pair<_InputIter1, _InputIter2>=0A=
mismatch(_InputIter1 __first1, _InputIter1 __last1,=0A=
_InputIter2 __first2)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
while (__first1 !=3D __last1 && *__first1 =3D=3D *__first2) {=0A=
++__first1;=0A=
++__first2;=0A=
}=0A=
return pair<_InputIter1, _InputIter2>(__first1, __first2);=0A=
}=0A=
# 640 "/usr/local/include/g++-v3/bits/stl_algobase.h" 3=0A=
template<typename _InputIter1, typename _InputIter2, typename =
_BinaryPredicate>=0A=
pair<_InputIter1, _InputIter2>=0A=
mismatch(_InputIter1 __first1, _InputIter1 __last1,=0A=
_InputIter2 __first2,=0A=
_BinaryPredicate __binary_pred)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
while (__first1 !=3D __last1 && __binary_pred(*__first1, =
*__first2)) {=0A=
++__first1;=0A=
++__first2;=0A=
}=0A=
return pair<_InputIter1, _InputIter2>(__first1, __first2);=0A=
}=0A=
# 668 "/usr/local/include/g++-v3/bits/stl_algobase.h" 3=0A=
template<typename _InputIter1, typename _InputIter2>=0A=
inline bool=0A=
equal(_InputIter1 __first1, _InputIter1 __last1,=0A=
_InputIter2 __first2)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
for ( ; __first1 !=3D __last1; ++__first1, ++__first2)=0A=
if (!(*__first1 =3D=3D *__first2))=0A=
return false;=0A=
return true;=0A=
}=0A=
# 699 "/usr/local/include/g++-v3/bits/stl_algobase.h" 3=0A=
template<typename _InputIter1, typename _InputIter2, typename =
_BinaryPredicate>=0A=
inline bool=0A=
equal(_InputIter1 __first1, _InputIter1 __last1,=0A=
_InputIter2 __first2,=0A=
_BinaryPredicate __binary_pred)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
for ( ; __first1 !=3D __last1; ++__first1, ++__first2)=0A=
if (!__binary_pred(*__first1, *__first2))=0A=
return false;=0A=
return true;=0A=
}=0A=
# 732 "/usr/local/include/g++-v3/bits/stl_algobase.h" 3=0A=
template<typename _InputIter1, typename _InputIter2>=0A=
bool=0A=
lexicographical_compare(_InputIter1 __first1, _InputIter1 __last1,=0A=
_InputIter2 __first2, _InputIter2 __last2)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
for ( ; __first1 !=3D __last1 && __first2 !=3D __last2=0A=
; ++__first1, ++__first2) {=0A=
if (*__first1 < *__first2)=0A=
return true;=0A=
if (*__first2 < *__first1)=0A=
return false;=0A=
}=0A=
return __first1 =3D=3D __last1 && __first2 !=3D __last2;=0A=
}=0A=
# 767 "/usr/local/include/g++-v3/bits/stl_algobase.h" 3=0A=
template<typename _InputIter1, typename _InputIter2, typename _Compare>=0A=
bool=0A=
lexicographical_compare(_InputIter1 __first1, _InputIter1 __last1,=0A=
_InputIter2 __first2, _InputIter2 __last2,=0A=
_Compare __comp)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
for ( ; __first1 !=3D __last1 && __first2 !=3D __last2=0A=
; ++__first1, ++__first2) {=0A=
if (__comp(*__first1, *__first2))=0A=
return true;=0A=
if (__comp(*__first2, *__first1))=0A=
return false;=0A=
}=0A=
return __first1 =3D=3D __last1 && __first2 !=3D __last2;=0A=
}=0A=
=0A=
inline bool=0A=
lexicographical_compare(const unsigned char* __first1, const unsigned =
char* __last1,=0A=
const unsigned char* __first2, const unsigned =
char* __last2)=0A=
{=0A=
const size_t __len1 =3D __last1 - __first1;=0A=
const size_t __len2 =3D __last2 - __first2;=0A=
const int __result =3D memcmp(__first1, __first2, min(__len1, =
__len2));=0A=
return __result !=3D 0 ? __result < 0 : __len1 < __len2;=0A=
}=0A=
=0A=
inline bool=0A=
lexicographical_compare(const char* __first1, const char* __last1,=0A=
const char* __first2, const char* __last2)=0A=
{=0A=
=0A=
return lexicographical_compare((const signed char*) __first1,=0A=
(const signed char*) __last1,=0A=
(const signed char*) __first2,=0A=
(const signed char*) __last2);=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
}=0A=
=0A=
}=0A=
# 55 "/usr/local/include/g++-v3/memory" 2 3=0A=
# 1 "/usr/local/include/g++-v3/bits/stl_alloc.h" 1 3=0A=
# 84 "/usr/local/include/g++-v3/bits/stl_alloc.h" 3=0A=
# 1 "/usr/local/include/g++-v3/cassert" 1 3=0A=
# 47 "/usr/local/include/g++-v3/cassert" 3=0A=
=0A=
# 1 "/usr/include/assert.h" 1 3=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
extern "C" {=0A=
# 25 "/usr/include/assert.h" 3=0A=
void __attribute__((__cdecl__)) __assert (const char *, int, const char =
*);=0A=
=0A=
=0A=
}=0A=
# 49 "/usr/local/include/g++-v3/cassert" 2 3=0A=
# 85 "/usr/local/include/g++-v3/bits/stl_alloc.h" 2 3=0A=
# 1 "/usr/local/include/g++-v3/bits/functexcept.h" 1 3=0A=
# 34 "/usr/local/include/g++-v3/bits/functexcept.h" 3=0A=
# 1 "/usr/local/include/g++-v3/exception_defines.h" 1 3=0A=
# 35 "/usr/local/include/g++-v3/bits/functexcept.h" 2 3=0A=
=0A=
namespace std=0A=
{=0A=
=0A=
void=0A=
__throw_bad_exception(void);=0A=
=0A=
=0A=
void=0A=
__throw_bad_alloc(void);=0A=
=0A=
=0A=
void=0A=
__throw_bad_cast(void);=0A=
=0A=
void=0A=
__throw_bad_typeid(void);=0A=
=0A=
=0A=
void=0A=
__throw_logic_error(const char* __s);=0A=
=0A=
void=0A=
__throw_domain_error(const char* __s);=0A=
=0A=
void=0A=
__throw_invalid_argument(const char* __s);=0A=
=0A=
void=0A=
__throw_length_error(const char* __s);=0A=
=0A=
void=0A=
__throw_out_of_range(const char* __s);=0A=
=0A=
void=0A=
__throw_runtime_error(const char* __s);=0A=
=0A=
void=0A=
__throw_range_error(const char* __s);=0A=
=0A=
void=0A=
__throw_overflow_error(const char* __s);=0A=
=0A=
void=0A=
__throw_underflow_error(const char* __s);=0A=
=0A=
=0A=
void=0A=
__throw_ios_failure(const char* __s);=0A=
}=0A=
# 86 "/usr/local/include/g++-v3/bits/stl_alloc.h" 2 3=0A=
# 1 "/usr/local/include/g++-v3/bits/stl_threads.h" 1 3=0A=
# 54 "/usr/local/include/g++-v3/bits/stl_threads.h" 3=0A=
namespace std=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
struct _Refcount_Base=0A=
{=0A=
=0A=
typedef size_t _RC_t;=0A=
=0A=
=0A=
volatile _RC_t _M_ref_count;=0A=
=0A=
=0A=
__gthread_mutex_t _M_ref_count_lock;=0A=
=0A=
_Refcount_Base(_RC_t __n) : _M_ref_count(__n)=0A=
{=0A=
=0A=
__gthread_mutex_t __tmp =3D 0;=0A=
_M_ref_count_lock =3D __tmp;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
}=0A=
=0A=
void=0A=
_M_incr()=0A=
{=0A=
__gthread_mutex_lock(&_M_ref_count_lock);=0A=
++_M_ref_count;=0A=
__gthread_mutex_unlock(&_M_ref_count_lock);=0A=
}=0A=
=0A=
_RC_t=0A=
_M_decr()=0A=
{=0A=
__gthread_mutex_lock(&_M_ref_count_lock);=0A=
volatile _RC_t __tmp =3D --_M_ref_count;=0A=
__gthread_mutex_unlock(&_M_ref_count_lock);=0A=
return __tmp;=0A=
}=0A=
};=0A=
# 109 "/usr/local/include/g++-v3/bits/stl_threads.h" 3=0A=
template<int __dummy>=0A=
struct _Swap_lock_struct=0A=
{ static __gthread_mutex_t _S_swap_lock; };=0A=
=0A=
template<int __dummy>=0A=
__gthread_mutex_t=0A=
_Swap_lock_struct<__dummy>::_S_swap_lock =3D 0;=0A=
=0A=
=0A=
=0A=
inline unsigned long=0A=
_Atomic_swap(unsigned long * __p, unsigned long __q)=0A=
{=0A=
__gthread_mutex_lock(&_Swap_lock_struct<0>::_S_swap_lock);=0A=
unsigned long __result =3D *__p;=0A=
*__p =3D __q;=0A=
__gthread_mutex_unlock(&_Swap_lock_struct<0>::_S_swap_lock);=0A=
return __result;=0A=
}=0A=
# 151 "/usr/local/include/g++-v3/bits/stl_threads.h" 3=0A=
struct _STL_mutex_lock=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
__gthread_mutex_t _M_lock;=0A=
=0A=
void=0A=
_M_initialize()=0A=
{=0A=
# 184 "/usr/local/include/g++-v3/bits/stl_threads.h" 3=0A=
}=0A=
=0A=
void=0A=
_M_acquire_lock()=0A=
{=0A=
=0A=
=0A=
=0A=
__gthread_mutex_lock(&_M_lock);=0A=
}=0A=
=0A=
void=0A=
_M_release_lock()=0A=
{=0A=
=0A=
=0A=
=0A=
__gthread_mutex_unlock(&_M_lock);=0A=
}=0A=
};=0A=
# 220 "/usr/local/include/g++-v3/bits/stl_threads.h" 3=0A=
struct _STL_auto_lock=0A=
{=0A=
_STL_mutex_lock& _M_lock;=0A=
=0A=
_STL_auto_lock(_STL_mutex_lock& __lock) : _M_lock(__lock)=0A=
{ _M_lock._M_acquire_lock(); }=0A=
=0A=
~_STL_auto_lock() { _M_lock._M_release_lock(); }=0A=
=0A=
private:=0A=
void operator=3D(const _STL_auto_lock&);=0A=
_STL_auto_lock(const _STL_auto_lock&);=0A=
};=0A=
=0A=
}=0A=
# 87 "/usr/local/include/g++-v3/bits/stl_alloc.h" 2 3=0A=
=0A=
namespace std=0A=
{=0A=
# 98 "/usr/local/include/g++-v3/bits/stl_alloc.h" 3=0A=
class __new_alloc=0A=
{=0A=
public:=0A=
static void*=0A=
allocate(size_t __n)=0A=
{ return ::operator new(__n); }=0A=
=0A=
static void=0A=
deallocate(void* __p, size_t)=0A=
{ ::operator delete(__p); }=0A=
};=0A=
# 121 "/usr/local/include/g++-v3/bits/stl_alloc.h" 3=0A=
template <int __inst>=0A=
class __malloc_alloc_template=0A=
{=0A=
private:=0A=
static void* _S_oom_malloc(size_t);=0A=
static void* _S_oom_realloc(void*, size_t);=0A=
static void (* __malloc_alloc_oom_handler)();=0A=
=0A=
public:=0A=
static void*=0A=
allocate(size_t __n)=0A=
{=0A=
void* __result =3D malloc(__n);=0A=
if (0 =3D=3D __result) __result =3D _S_oom_malloc(__n);=0A=
return __result;=0A=
}=0A=
=0A=
static void=0A=
deallocate(void* __p, size_t )=0A=
{ free(__p); }=0A=
=0A=
static void*=0A=
reallocate(void* __p, size_t , size_t __new_sz)=0A=
{=0A=
void* __result =3D realloc(__p, __new_sz);=0A=
if (0 =3D=3D __result) __result =3D _S_oom_realloc(__p, =
__new_sz);=0A=
return __result;=0A=
}=0A=
=0A=
static void (* __set_malloc_handler(void (*__f)()))()=0A=
{=0A=
void (* __old)() =3D __malloc_alloc_oom_handler;=0A=
__malloc_alloc_oom_handler =3D __f;=0A=
return(__old);=0A=
}=0A=
};=0A=
=0A=
=0A=
template <int __inst>=0A=
void (* =
__malloc_alloc_template<__inst>::__malloc_alloc_oom_handler)() =3D 0;=0A=
=0A=
template <int __inst>=0A=
void*=0A=
__malloc_alloc_template<__inst>::_S_oom_malloc(size_t __n)=0A=
{=0A=
void (* __my_malloc_handler)();=0A=
void* __result;=0A=
=0A=
for (;;)=0A=
{=0A=
__my_malloc_handler =3D __malloc_alloc_oom_handler;=0A=
if (0 =3D=3D __my_malloc_handler)=0A=
std::__throw_bad_alloc();=0A=
(*__my_malloc_handler)();=0A=
__result =3D malloc(__n);=0A=
if (__result)=0A=
return(__result);=0A=
}=0A=
}=0A=
=0A=
template <int __inst>=0A=
void*=0A=
__malloc_alloc_template<__inst>::_S_oom_realloc(void* __p, size_t =
__n)=0A=
{=0A=
void (* __my_malloc_handler)();=0A=
void* __result;=0A=
=0A=
for (;;)=0A=
{=0A=
__my_malloc_handler =3D __malloc_alloc_oom_handler;=0A=
if (0 =3D=3D __my_malloc_handler)=0A=
std::__throw_bad_alloc();=0A=
(*__my_malloc_handler)();=0A=
__result =3D realloc(__p, __n);=0A=
if (__result)=0A=
return(__result);=0A=
}=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
typedef __new_alloc __mem_interface;=0A=
# 219 "/usr/local/include/g++-v3/bits/stl_alloc.h" 3=0A=
template<class _Tp, class _Alloc>=0A=
class __simple_alloc=0A=
{=0A=
public:=0A=
static _Tp* allocate(size_t __n)=0A=
{ return 0 =3D=3D __n ? 0 : (_Tp*) _Alloc::allocate(__n * sizeof =
(_Tp)); }=0A=
=0A=
static _Tp* allocate()=0A=
{ return (_Tp*) _Alloc::allocate(sizeof (_Tp)); }=0A=
=0A=
static void deallocate(_Tp* __p, size_t __n)=0A=
{ if (0 !=3D __n) _Alloc::deallocate(__p, __n * sizeof (_Tp)); }=0A=
=0A=
static void deallocate(_Tp* __p)=0A=
{ _Alloc::deallocate(__p, sizeof (_Tp)); }=0A=
};=0A=
# 251 "/usr/local/include/g++-v3/bits/stl_alloc.h" 3=0A=
template <class _Alloc>=0A=
class __debug_alloc=0A=
{=0A=
private:=0A=
enum {_S_extra =3D 8};=0A=
=0A=
=0A=
public:=0A=
=0A=
static void* allocate(size_t __n)=0A=
{=0A=
char* __result =3D (char*)_Alloc::allocate(__n + (int) _S_extra);=0A=
*(size_t*)__result =3D __n;=0A=
return __result + (int) _S_extra;=0A=
}=0A=
=0A=
static void deallocate(void* __p, size_t __n)=0A=
{=0A=
char* __real_p =3D (char*)__p - (int) _S_extra;=0A=
((*(size_t*)__real_p =3D=3D __n) ? (void)0 : =
__assert("/usr/local/include/g++-v3/bits/stl_alloc.h", 270, =
"*(size_t*)__real_p =3D=3D __n"));=0A=
_Alloc::deallocate(__real_p, __n + (int) _S_extra);=0A=
}=0A=
=0A=
static void* reallocate(void* __p, size_t __old_sz, size_t __new_sz)=0A=
{=0A=
char* __real_p =3D (char*)__p - (int) _S_extra;=0A=
((*(size_t*)__real_p =3D=3D __old_sz) ? (void)0 : =
__assert("/usr/local/include/g++-v3/bits/stl_alloc.h", 277, =
"*(size_t*)__real_p =3D=3D __old_sz"));=0A=
char* __result =3D (char*)=0A=
_Alloc::reallocate(__real_p, __old_sz + (int) _S_extra,=0A=
__new_sz + (int) _S_extra);=0A=
*(size_t*)__result =3D __new_sz;=0A=
return __result + (int) _S_extra;=0A=
}=0A=
};=0A=
# 324 "/usr/local/include/g++-v3/bits/stl_alloc.h" 3=0A=
template<bool __threads, int __inst>=0A=
class __default_alloc_template=0A=
{=0A=
private:=0A=
enum {_ALIGN =3D 8};=0A=
enum {_MAX_BYTES =3D 128};=0A=
enum {_NFREELISTS =3D _MAX_BYTES / _ALIGN};=0A=
=0A=
union _Obj=0A=
{=0A=
union _Obj* _M_free_list_link;=0A=
char _M_client_data[1];=0A=
};=0A=
=0A=
static _Obj* volatile _S_free_list[_NFREELISTS];=0A=
=0A=
=0A=
static char* _S_start_free;=0A=
static char* _S_end_free;=0A=
static size_t _S_heap_size;=0A=
=0A=
static _STL_mutex_lock _S_node_allocator_lock;=0A=
=0A=
static size_t=0A=
_S_round_up(size_t __bytes)=0A=
{ return (((__bytes) + (size_t) _ALIGN-1) & ~((size_t) _ALIGN - 1)); =
}=0A=
=0A=
static size_t=0A=
_S_freelist_index(size_t __bytes)=0A=
{ return (((__bytes) + (size_t)_ALIGN-1)/(size_t)_ALIGN - 1); }=0A=
=0A=
=0A=
=0A=
static void*=0A=
_S_refill(size_t __n);=0A=
=0A=
=0A=
=0A=
static char*=0A=
_S_chunk_alloc(size_t __size, int& __nobjs);=0A=
=0A=
=0A=
=0A=
class _Lock=0A=
{=0A=
public:=0A=
_Lock() { if (__threads) _S_node_allocator_lock._M_acquire_lock(); =
}=0A=
~_Lock() { if (__threads) =
_S_node_allocator_lock._M_release_lock(); }=0A=
} __attribute__ ((__unused__));=0A=
friend class _Lock;=0A=
=0A=
public:=0A=
=0A=
static void*=0A=
allocate(size_t __n)=0A=
{=0A=
void* __ret =3D 0;=0A=
=0A=
if (__n > (size_t) _MAX_BYTES)=0A=
__ret =3D __mem_interface::allocate(__n);=0A=
else=0A=
{=0A=
_Obj* volatile* __my_free_list =3D _S_free_list=0A=
+ _S_freelist_index(__n);=0A=
=0A=
=0A=
=0A=
_Lock __lock_instance;=0A=
_Obj* __restrict__ __result =3D *__my_free_list;=0A=
if (__result =3D=3D 0)=0A=
__ret =3D _S_refill(_S_round_up(__n));=0A=
else=0A=
{=0A=
*__my_free_list =3D __result -> _M_free_list_link;=0A=
__ret =3D __result;=0A=
}=0A=
}=0A=
return __ret;=0A=
};=0A=
=0A=
=0A=
static void=0A=
deallocate(void* __p, size_t __n)=0A=
{=0A=
if (__n > (size_t) _MAX_BYTES)=0A=
__mem_interface::deallocate(__p, __n);=0A=
else=0A=
{=0A=
_Obj* volatile* __my_free_list=0A=
=3D _S_free_list + _S_freelist_index(__n);=0A=
_Obj* __q =3D (_Obj*)__p;=0A=
=0A=
=0A=
=0A=
_Lock __lock_instance;=0A=
__q -> _M_free_list_link =3D *__my_free_list;=0A=
*__my_free_list =3D __q;=0A=
}=0A=
}=0A=
=0A=
static void*=0A=
reallocate(void* __p, size_t __old_sz, size_t __new_sz);=0A=
};=0A=
=0A=
=0A=
template<bool __threads, int __inst>=0A=
inline bool=0A=
operator=3D=3D(const __default_alloc_template<__threads, __inst>&,=0A=
const __default_alloc_template<__threads, __inst>&)=0A=
{ return true; }=0A=
=0A=
template<bool __threads, int __inst>=0A=
inline bool=0A=
operator!=3D(const __default_alloc_template<__threads, __inst>&,=0A=
const __default_alloc_template<__threads, __inst>&)=0A=
{ return false; }=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<bool __threads, int __inst>=0A=
char*=0A=
__default_alloc_template<__threads, __inst>::_S_chunk_alloc(size_t =
__size,=0A=
int& =
__nobjs)=0A=
{=0A=
char* __result;=0A=
size_t __total_bytes =3D __size * __nobjs;=0A=
size_t __bytes_left =3D _S_end_free - _S_start_free;=0A=
=0A=
if (__bytes_left >=3D __total_bytes)=0A=
{=0A=
__result =3D _S_start_free;=0A=
_S_start_free +=3D __total_bytes;=0A=
return(__result);=0A=
}=0A=
else if (__bytes_left >=3D __size)=0A=
{=0A=
__nobjs =3D (int)(__bytes_left/__size);=0A=
__total_bytes =3D __size * __nobjs;=0A=
__result =3D _S_start_free;=0A=
_S_start_free +=3D __total_bytes;=0A=
return(__result);=0A=
}=0A=
else=0A=
{=0A=
size_t __bytes_to_get =3D=0A=
2 * __total_bytes + _S_round_up(_S_heap_size >> 4);=0A=
=0A=
if (__bytes_left > 0)=0A=
{=0A=
_Obj* volatile* __my_free_list =3D=0A=
_S_free_list + _S_freelist_index(__bytes_left);=0A=
=0A=
((_Obj*)_S_start_free) -> _M_free_list_link =3D =
*__my_free_list;=0A=
*__my_free_list =3D (_Obj*)_S_start_free;=0A=
}=0A=
_S_start_free =3D (char*) =
__mem_interface::allocate(__bytes_to_get);=0A=
if (0 =3D=3D _S_start_free)=0A=
{=0A=
size_t __i;=0A=
_Obj* volatile* __my_free_list;=0A=
_Obj* __p;=0A=
=0A=
=0A=
=0A=
__i =3D __size;=0A=
for (; __i <=3D (size_t) _MAX_BYTES; __i +=3D (size_t) =
_ALIGN)=0A=
{=0A=
__my_free_list =3D _S_free_list + =
_S_freelist_index(__i);=0A=
__p =3D *__my_free_list;=0A=
if (0 !=3D __p)=0A=
{=0A=
*__my_free_list =3D __p -> _M_free_list_link;=0A=
_S_start_free =3D (char*)__p;=0A=
_S_end_free =3D _S_start_free + __i;=0A=
return(_S_chunk_alloc(__size, __nobjs));=0A=
=0A=
=0A=
}=0A=
}=0A=
_S_end_free =3D 0;=0A=
_S_start_free =3D =
(char*)__mem_interface::allocate(__bytes_to_get);=0A=
=0A=
=0A=
}=0A=
_S_heap_size +=3D __bytes_to_get;=0A=
_S_end_free =3D _S_start_free + __bytes_to_get;=0A=
return(_S_chunk_alloc(__size, __nobjs));=0A=
}=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<bool __threads, int __inst>=0A=
void*=0A=
__default_alloc_template<__threads, __inst>::_S_refill(size_t __n)=0A=
{=0A=
int __nobjs =3D 20;=0A=
char* __chunk =3D _S_chunk_alloc(__n, __nobjs);=0A=
_Obj* volatile* __my_free_list;=0A=
_Obj* __result;=0A=
_Obj* __current_obj;=0A=
_Obj* __next_obj;=0A=
int __i;=0A=
=0A=
if (1 =3D=3D __nobjs) return(__chunk);=0A=
__my_free_list =3D _S_free_list + _S_freelist_index(__n);=0A=
=0A=
=0A=
__result =3D (_Obj*)__chunk;=0A=
*__my_free_list =3D __next_obj =3D (_Obj*)(__chunk + __n);=0A=
for (__i =3D 1; ; __i++) {=0A=
__current_obj =3D __next_obj;=0A=
__next_obj =3D (_Obj*)((char*)__next_obj + __n);=0A=
if (__nobjs - 1 =3D=3D __i) {=0A=
__current_obj -> _M_free_list_link =3D 0;=0A=
break;=0A=
} else {=0A=
__current_obj -> _M_free_list_link =3D __next_obj;=0A=
}=0A=
}=0A=
return(__result);=0A=
}=0A=
=0A=
=0A=
template<bool threads, int inst>=0A=
void*=0A=
__default_alloc_template<threads, inst>::reallocate(void* __p,=0A=
size_t __old_sz,=0A=
size_t __new_sz)=0A=
{=0A=
void* __result;=0A=
size_t __copy_sz;=0A=
=0A=
if (__old_sz > (size_t) _MAX_BYTES && __new_sz > (size_t) =
_MAX_BYTES) {=0A=
return(realloc(__p, __new_sz));=0A=
}=0A=
if (_S_round_up(__old_sz) =3D=3D _S_round_up(__new_sz)) =
return(__p);=0A=
__result =3D allocate(__new_sz);=0A=
__copy_sz =3D __new_sz > __old_sz? __old_sz : __new_sz;=0A=
memcpy(__result, __p, __copy_sz);=0A=
deallocate(__p, __old_sz);=0A=
return(__result);=0A=
}=0A=
=0A=
template<bool __threads, int __inst>=0A=
_STL_mutex_lock=0A=
__default_alloc_template<__threads, __inst>::_S_node_allocator_lock=0A=
=3D { 0 };=0A=
=0A=
template<bool __threads, int __inst>=0A=
char* __default_alloc_template<__threads, __inst>::_S_start_free =3D 0;=0A=
=0A=
template<bool __threads, int __inst>=0A=
char* __default_alloc_template<__threads, __inst>::_S_end_free =3D 0;=0A=
=0A=
template<bool __threads, int __inst>=0A=
size_t __default_alloc_template<__threads, __inst>::_S_heap_size =3D 0;=0A=
=0A=
template<bool __threads, int __inst>=0A=
typename __default_alloc_template<__threads, __inst>::_Obj* volatile=0A=
__default_alloc_template<__threads, __inst>::_S_free_list[_NFREELISTS];=0A=
=0A=
typedef __default_alloc_template<true, 0> __alloc;=0A=
typedef __default_alloc_template<false, 0> __single_client_alloc;=0A=
# 613 "/usr/local/include/g++-v3/bits/stl_alloc.h" 3=0A=
template <class _Tp>=0A=
class allocator=0A=
{=0A=
typedef __alloc _Alloc;=0A=
public:=0A=
typedef size_t size_type;=0A=
typedef ptrdiff_t difference_type;=0A=
typedef _Tp* pointer;=0A=
typedef const _Tp* const_pointer;=0A=
typedef _Tp& reference;=0A=
typedef const _Tp& const_reference;=0A=
typedef _Tp value_type;=0A=
=0A=
template <class _Tp1> struct rebind {=0A=
typedef allocator<_Tp1> other;=0A=
};=0A=
=0A=
allocator() throw() {}=0A=
allocator(const allocator&) throw() {}=0A=
template <class _Tp1> allocator(const allocator<_Tp1>&) throw() {}=0A=
~allocator() throw() {}=0A=
=0A=
pointer address(reference __x) const { return &__x; }=0A=
const_pointer address(const_reference __x) const { return &__x; }=0A=
=0A=
=0A=
=0A=
_Tp* allocate(size_type __n, const void* =3D 0) {=0A=
return __n !=3D 0 ? static_cast<_Tp*>(_Alloc::allocate(__n * =
sizeof(_Tp)))=0A=
: 0;=0A=
}=0A=
=0A=
=0A=
void deallocate(pointer __p, size_type __n)=0A=
{ _Alloc::deallocate(__p, __n * sizeof(_Tp)); }=0A=
=0A=
size_type max_size() const throw()=0A=
{ return size_t(-1) / sizeof(_Tp); }=0A=
=0A=
void construct(pointer __p, const _Tp& __val) { new(__p) _Tp(__val); }=0A=
void destroy(pointer __p) { __p->~_Tp(); }=0A=
};=0A=
=0A=
template<>=0A=
class allocator<void> {=0A=
public:=0A=
typedef size_t size_type;=0A=
typedef ptrdiff_t difference_type;=0A=
typedef void* pointer;=0A=
typedef const void* const_pointer;=0A=
typedef void value_type;=0A=
=0A=
template <class _Tp1> struct rebind {=0A=
typedef allocator<_Tp1> other;=0A=
};=0A=
};=0A=
=0A=
=0A=
template <class _T1, class _T2>=0A=
inline bool operator=3D=3D(const allocator<_T1>&, const allocator<_T2>&)=0A=
{=0A=
return true;=0A=
}=0A=
=0A=
template <class _T1, class _T2>=0A=
inline bool operator!=3D(const allocator<_T1>&, const allocator<_T2>&)=0A=
{=0A=
return false;=0A=
}=0A=
# 695 "/usr/local/include/g++-v3/bits/stl_alloc.h" 3=0A=
template <class _Tp, class _Alloc>=0A=
struct __allocator=0A=
{=0A=
_Alloc __underlying_alloc;=0A=
=0A=
typedef size_t size_type;=0A=
typedef ptrdiff_t difference_type;=0A=
typedef _Tp* pointer;=0A=
typedef const _Tp* const_pointer;=0A=
typedef _Tp& reference;=0A=
typedef const _Tp& const_reference;=0A=
typedef _Tp value_type;=0A=
=0A=
template <class _Tp1> struct rebind {=0A=
typedef __allocator<_Tp1, _Alloc> other;=0A=
};=0A=
=0A=
__allocator() throw() {}=0A=
__allocator(const __allocator& __a) throw()=0A=
: __underlying_alloc(__a.__underlying_alloc) {}=0A=
template <class _Tp1>=0A=
__allocator(const __allocator<_Tp1, _Alloc>& __a) throw()=0A=
: __underlying_alloc(__a.__underlying_alloc) {}=0A=
~__allocator() throw() {}=0A=
=0A=
pointer address(reference __x) const { return &__x; }=0A=
const_pointer address(const_reference __x) const { return &__x; }=0A=
=0A=
=0A=
_Tp* allocate(size_type __n, const void* =3D 0) {=0A=
return __n !=3D 0=0A=
? static_cast<_Tp*>(__underlying_alloc.allocate(__n * =
sizeof(_Tp)))=0A=
: 0;=0A=
}=0A=
=0A=
=0A=
void deallocate(pointer __p, size_type __n)=0A=
{ __underlying_alloc.deallocate(__p, __n * sizeof(_Tp)); }=0A=
=0A=
size_type max_size() const throw()=0A=
{ return size_t(-1) / sizeof(_Tp); }=0A=
=0A=
void construct(pointer __p, const _Tp& __val) { new(__p) _Tp(__val); }=0A=
void destroy(pointer __p) { __p->~_Tp(); }=0A=
};=0A=
=0A=
template <class _Alloc>=0A=
class __allocator<void, _Alloc> {=0A=
typedef size_t size_type;=0A=
typedef ptrdiff_t difference_type;=0A=
typedef void* pointer;=0A=
typedef const void* const_pointer;=0A=
typedef void value_type;=0A=
=0A=
template <class _Tp1> struct rebind {=0A=
typedef __allocator<_Tp1, _Alloc> other;=0A=
};=0A=
};=0A=
=0A=
template <class _Tp, class _Alloc>=0A=
inline bool operator=3D=3D(const __allocator<_Tp, _Alloc>& __a1,=0A=
const __allocator<_Tp, _Alloc>& __a2)=0A=
{=0A=
return __a1.__underlying_alloc =3D=3D __a2.__underlying_alloc;=0A=
}=0A=
=0A=
template <class _Tp, class _Alloc>=0A=
inline bool operator!=3D(const __allocator<_Tp, _Alloc>& __a1,=0A=
const __allocator<_Tp, _Alloc>& __a2)=0A=
{=0A=
return __a1.__underlying_alloc !=3D __a2.__underlying_alloc;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template <int inst>=0A=
inline bool operator=3D=3D(const __malloc_alloc_template<inst>&,=0A=
const __malloc_alloc_template<inst>&)=0A=
{=0A=
return true;=0A=
}=0A=
=0A=
template <int __inst>=0A=
inline bool operator!=3D(const __malloc_alloc_template<__inst>&,=0A=
const __malloc_alloc_template<__inst>&)=0A=
{=0A=
return false;=0A=
}=0A=
=0A=
template <class _Alloc>=0A=
inline bool operator=3D=3D(const __debug_alloc<_Alloc>&,=0A=
const __debug_alloc<_Alloc>&) {=0A=
return true;=0A=
}=0A=
=0A=
template <class _Alloc>=0A=
inline bool operator!=3D(const __debug_alloc<_Alloc>&,=0A=
const __debug_alloc<_Alloc>&) {=0A=
return false;=0A=
}=0A=
# 840 "/usr/local/include/g++-v3/bits/stl_alloc.h" 3=0A=
template <class _Tp, class _Allocator>=0A=
struct _Alloc_traits=0A=
{=0A=
static const bool _S_instanceless =3D false;=0A=
typedef typename _Allocator::template rebind<_Tp>::other =
allocator_type;=0A=
};=0A=
=0A=
template <class _Tp, class _Allocator>=0A=
const bool _Alloc_traits<_Tp, _Allocator>::_S_instanceless;=0A=
=0A=
=0A=
template <class _Tp, class _Tp1>=0A=
struct _Alloc_traits<_Tp, allocator<_Tp1> >=0A=
{=0A=
static const bool _S_instanceless =3D true;=0A=
typedef __simple_alloc<_Tp, __alloc> _Alloc_type;=0A=
typedef allocator<_Tp> allocator_type;=0A=
};=0A=
=0A=
=0A=
=0A=
=0A=
template <class _Tp, int __inst>=0A=
struct _Alloc_traits<_Tp, __malloc_alloc_template<__inst> >=0A=
{=0A=
static const bool _S_instanceless =3D true;=0A=
typedef __simple_alloc<_Tp, __malloc_alloc_template<__inst> > =
_Alloc_type;=0A=
typedef __allocator<_Tp, __malloc_alloc_template<__inst> > =
allocator_type;=0A=
};=0A=
=0A=
=0A=
template <class _Tp, bool __threads, int __inst>=0A=
struct _Alloc_traits<_Tp, __default_alloc_template<__threads, __inst> >=0A=
{=0A=
static const bool _S_instanceless =3D true;=0A=
typedef __simple_alloc<_Tp, __default_alloc_template<__threads, =
__inst> >=0A=
_Alloc_type;=0A=
typedef __allocator<_Tp, __default_alloc_template<__threads, __inst> >=0A=
allocator_type;=0A=
};=0A=
=0A=
=0A=
template <class _Tp, class _Alloc>=0A=
struct _Alloc_traits<_Tp, __debug_alloc<_Alloc> >=0A=
{=0A=
static const bool _S_instanceless =3D true;=0A=
typedef __simple_alloc<_Tp, __debug_alloc<_Alloc> > _Alloc_type;=0A=
typedef __allocator<_Tp, __debug_alloc<_Alloc> > allocator_type;=0A=
};=0A=
=0A=
=0A=
=0A=
=0A=
template <class _Tp, class _Tp1, int __inst>=0A=
struct _Alloc_traits<_Tp,=0A=
__allocator<_Tp1, __malloc_alloc_template<__inst> > =
>=0A=
{=0A=
static const bool _S_instanceless =3D true;=0A=
typedef __simple_alloc<_Tp, __malloc_alloc_template<__inst> > =
_Alloc_type;=0A=
typedef __allocator<_Tp, __malloc_alloc_template<__inst> > =
allocator_type;=0A=
};=0A=
=0A=
=0A=
template <class _Tp, class _Tp1, bool __thr, int __inst>=0A=
struct _Alloc_traits<_Tp,=0A=
__allocator<_Tp1,=0A=
__default_alloc_template<__thr, =
__inst> > >=0A=
{=0A=
static const bool _S_instanceless =3D true;=0A=
typedef __simple_alloc<_Tp, __default_alloc_template<__thr,__inst> >=0A=
_Alloc_type;=0A=
typedef __allocator<_Tp, __default_alloc_template<__thr,__inst> >=0A=
allocator_type;=0A=
};=0A=
=0A=
=0A=
template <class _Tp, class _Tp1, class _Alloc>=0A=
struct _Alloc_traits<_Tp, __allocator<_Tp1, __debug_alloc<_Alloc> > >=0A=
{=0A=
static const bool _S_instanceless =3D true;=0A=
typedef __simple_alloc<_Tp, __debug_alloc<_Alloc> > _Alloc_type;=0A=
typedef __allocator<_Tp, __debug_alloc<_Alloc> > allocator_type;=0A=
};=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
extern template class allocator<char>;=0A=
extern template class allocator<wchar_t>;=0A=
=0A=
=0A=
=0A=
extern template class __default_alloc_template<true, 0>;=0A=
=0A=
}=0A=
# 56 "/usr/local/include/g++-v3/memory" 2 3=0A=
# 1 "/usr/local/include/g++-v3/bits/stl_construct.h" 1 3=0A=
# 67 "/usr/local/include/g++-v3/bits/stl_construct.h" 3=0A=
namespace std=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template <class _T1, class _T2>=0A=
inline void=0A=
_Construct(_T1* __p, const _T2& __value)=0A=
{ new (static_cast<void*>(__p)) _T1(__value); }=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template <class _T1>=0A=
inline void=0A=
_Construct(_T1* __p)=0A=
{ new (static_cast<void*>(__p)) _T1(); }=0A=
# 98 "/usr/local/include/g++-v3/bits/stl_construct.h" 3=0A=
template <class _ForwardIterator>=0A=
inline void=0A=
__destroy_aux(_ForwardIterator __first, _ForwardIterator __last, =
__false_type)=0A=
{ for ( ; __first !=3D __last; ++__first) _Destroy(&*__first); }=0A=
# 112 "/usr/local/include/g++-v3/bits/stl_construct.h" 3=0A=
template <class _ForwardIterator>=0A=
inline void=0A=
__destroy_aux(_ForwardIterator, _ForwardIterator, __true_type)=0A=
{ }=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template <class _Tp>=0A=
inline void=0A=
_Destroy(_Tp* __pointer)=0A=
{ __pointer->~_Tp(); }=0A=
# 134 "/usr/local/include/g++-v3/bits/stl_construct.h" 3=0A=
template <class _ForwardIterator>=0A=
inline void=0A=
_Destroy(_ForwardIterator __first, _ForwardIterator __last)=0A=
{=0A=
typedef typename iterator_traits<_ForwardIterator>::value_type=0A=
_Value_type;=0A=
typedef typename __type_traits<_Value_type>::has_trivial_destructor=0A=
_Has_trivial_destructor;=0A=
=0A=
__destroy_aux(__first, __last, _Has_trivial_destructor());=0A=
}=0A=
}=0A=
# 57 "/usr/local/include/g++-v3/memory" 2 3=0A=
=0A=
# 1 "/usr/local/include/g++-v3/bits/stl_uninitialized.h" 1 3=0A=
# 66 "/usr/local/include/g++-v3/bits/stl_uninitialized.h" 3=0A=
namespace std=0A=
{=0A=
=0A=
=0A=
=0A=
template<typename _InputIter, typename _ForwardIter>=0A=
inline _ForwardIter=0A=
__uninitialized_copy_aux(_InputIter __first, _InputIter __last,=0A=
_ForwardIter __result,=0A=
__true_type)=0A=
{ return copy(__first, __last, __result); }=0A=
=0A=
template<typename _InputIter, typename _ForwardIter>=0A=
_ForwardIter=0A=
__uninitialized_copy_aux(_InputIter __first, _InputIter __last,=0A=
_ForwardIter __result,=0A=
__false_type)=0A=
{=0A=
_ForwardIter __cur =3D __result;=0A=
try {=0A=
for ( ; __first !=3D __last; ++__first, ++__cur)=0A=
_Construct(&*__cur, *__first);=0A=
return __cur;=0A=
}=0A=
catch(...)=0A=
{=0A=
_Destroy(__result, __cur);=0A=
throw;=0A=
}=0A=
}=0A=
# 106 "/usr/local/include/g++-v3/bits/stl_uninitialized.h" 3=0A=
template<typename _InputIter, typename _ForwardIter>=0A=
inline _ForwardIter=0A=
uninitialized_copy(_InputIter __first, _InputIter __last, =
_ForwardIter __result)=0A=
{=0A=
typedef typename iterator_traits<_ForwardIter>::value_type =
_ValueType;=0A=
typedef typename __type_traits<_ValueType>::is_POD_type _Is_POD;=0A=
return __uninitialized_copy_aux(__first, __last, __result, =
_Is_POD());=0A=
}=0A=
=0A=
inline char*=0A=
uninitialized_copy(const char* __first, const char* __last, char* =
__result)=0A=
{=0A=
memmove(__result, __first, __last - __first);=0A=
return __result + (__last - __first);=0A=
}=0A=
=0A=
inline wchar_t*=0A=
uninitialized_copy(const wchar_t* __first, const wchar_t* __last,=0A=
wchar_t* __result)=0A=
{=0A=
memmove(__result, __first, sizeof(wchar_t) * (__last - __first));=0A=
return __result + (__last - __first);=0A=
}=0A=
=0A=
=0A=
=0A=
template<typename _ForwardIter, typename _Tp>=0A=
inline void=0A=
__uninitialized_fill_aux(_ForwardIter __first, _ForwardIter __last,=0A=
const _Tp& __x, __true_type)=0A=
{ fill(__first, __last, __x); }=0A=
=0A=
template<typename _ForwardIter, typename _Tp>=0A=
void=0A=
__uninitialized_fill_aux(_ForwardIter __first, _ForwardIter __last,=0A=
const _Tp& __x, __false_type)=0A=
{=0A=
_ForwardIter __cur =3D __first;=0A=
try {=0A=
for ( ; __cur !=3D __last; ++__cur)=0A=
_Construct(&*__cur, __x);=0A=
}=0A=
catch(...)=0A=
{=0A=
_Destroy(__first, __cur);=0A=
throw;=0A=
}=0A=
}=0A=
# 164 "/usr/local/include/g++-v3/bits/stl_uninitialized.h" 3=0A=
template<typename _ForwardIter, typename _Tp>=0A=
inline void=0A=
uninitialized_fill(_ForwardIter __first, _ForwardIter __last, const =
_Tp& __x)=0A=
{=0A=
typedef typename iterator_traits<_ForwardIter>::value_type =
_ValueType;=0A=
typedef typename __type_traits<_ValueType>::is_POD_type _Is_POD;=0A=
__uninitialized_fill_aux(__first, __last, __x, _Is_POD());=0A=
}=0A=
=0A=
=0A=
=0A=
template<typename _ForwardIter, typename _Size, typename _Tp>=0A=
inline _ForwardIter=0A=
__uninitialized_fill_n_aux(_ForwardIter __first, _Size __n,=0A=
const _Tp& __x, __true_type)=0A=
{=0A=
return fill_n(__first, __n, __x);=0A=
}=0A=
=0A=
template<typename _ForwardIter, typename _Size, typename _Tp>=0A=
_ForwardIter=0A=
__uninitialized_fill_n_aux(_ForwardIter __first, _Size __n,=0A=
const _Tp& __x, __false_type)=0A=
{=0A=
_ForwardIter __cur =3D __first;=0A=
try {=0A=
for ( ; __n > 0; --__n, ++__cur)=0A=
_Construct(&*__cur, __x);=0A=
return __cur;=0A=
}=0A=
catch(...)=0A=
{=0A=
_Destroy(__first, __cur);=0A=
throw;=0A=
}=0A=
}=0A=
# 210 "/usr/local/include/g++-v3/bits/stl_uninitialized.h" 3=0A=
template<typename _ForwardIter, typename _Size, typename _Tp>=0A=
inline _ForwardIter=0A=
uninitialized_fill_n(_ForwardIter __first, _Size __n, const _Tp& __x)=0A=
{=0A=
typedef typename iterator_traits<_ForwardIter>::value_type =
_ValueType;=0A=
typedef typename __type_traits<_ValueType>::is_POD_type _Is_POD;=0A=
return __uninitialized_fill_n_aux(__first, __n, __x, _Is_POD());=0A=
}=0A=
# 227 "/usr/local/include/g++-v3/bits/stl_uninitialized.h" 3=0A=
template<typename _InputIter1, typename _InputIter2, typename =
_ForwardIter>=0A=
inline _ForwardIter=0A=
__uninitialized_copy_copy(_InputIter1 __first1, _InputIter1 __last1,=0A=
_InputIter2 __first2, _InputIter2 __last2,=0A=
_ForwardIter __result)=0A=
{=0A=
_ForwardIter __mid =3D uninitialized_copy(__first1, __last1, =
__result);=0A=
try {=0A=
return uninitialized_copy(__first2, __last2, __mid);=0A=
}=0A=
catch(...)=0A=
{=0A=
_Destroy(__result, __mid);=0A=
throw;=0A=
}=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _ForwardIter, typename _Tp, typename _InputIter>=0A=
inline _ForwardIter=0A=
__uninitialized_fill_copy(_ForwardIter __result, _ForwardIter __mid,=0A=
const _Tp& __x,=0A=
_InputIter __first, _InputIter __last)=0A=
{=0A=
uninitialized_fill(__result, __mid, __x);=0A=
try {=0A=
return uninitialized_copy(__first, __last, __mid);=0A=
}=0A=
catch(...)=0A=
{=0A=
_Destroy(__result, __mid);=0A=
throw;=0A=
}=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _InputIter, typename _ForwardIter, typename _Tp>=0A=
inline void=0A=
__uninitialized_copy_fill(_InputIter __first1, _InputIter __last1,=0A=
_ForwardIter __first2, _ForwardIter =
__last2,=0A=
const _Tp& __x)=0A=
{=0A=
_ForwardIter __mid2 =3D uninitialized_copy(__first1, __last1, =
__first2);=0A=
try {=0A=
uninitialized_fill(__mid2, __last2, __x);=0A=
}=0A=
catch(...)=0A=
{=0A=
_Destroy(__first2, __mid2);=0A=
throw;=0A=
}=0A=
}=0A=
=0A=
}=0A=
# 59 "/usr/local/include/g++-v3/memory" 2 3=0A=
# 1 "/usr/local/include/g++-v3/bits/stl_raw_storage_iter.h" 1 3=0A=
# 64 "/usr/local/include/g++-v3/bits/stl_raw_storage_iter.h" 3=0A=
namespace std=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
template <class _ForwardIterator, class _Tp>=0A=
class raw_storage_iterator=0A=
: public iterator<output_iterator_tag, void, void, void, void>=0A=
{=0A=
protected:=0A=
_ForwardIterator _M_iter;=0A=
=0A=
public:=0A=
explicit=0A=
raw_storage_iterator(_ForwardIterator __x) : _M_iter(__x) {}=0A=
=0A=
raw_storage_iterator&=0A=
operator*() { return *this; }=0A=
=0A=
raw_storage_iterator&=0A=
operator=3D(const _Tp& __element)=0A=
{=0A=
_Construct(&*_M_iter, __element);=0A=
return *this;=0A=
}=0A=
=0A=
raw_storage_iterator<_ForwardIterator, _Tp>&=0A=
operator++()=0A=
{=0A=
++_M_iter;=0A=
return *this;=0A=
}=0A=
=0A=
raw_storage_iterator<_ForwardIterator, _Tp>=0A=
operator++(int)=0A=
{=0A=
raw_storage_iterator<_ForwardIterator, _Tp> __tmp =3D *this;=0A=
++_M_iter;=0A=
return __tmp;=0A=
}=0A=
};=0A=
}=0A=
# 60 "/usr/local/include/g++-v3/memory" 2 3=0A=
=0A=
namespace std=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template <class _Tp>=0A=
pair<_Tp*, ptrdiff_t>=0A=
__get_temporary_buffer(ptrdiff_t __len, _Tp*)=0A=
{=0A=
if (__len > ptrdiff_t(2147483647 / sizeof(_Tp)))=0A=
__len =3D 2147483647 / sizeof(_Tp);=0A=
=0A=
while (__len > 0) {=0A=
_Tp* __tmp =3D (_Tp*) std::malloc((std::size_t)__len * =
sizeof(_Tp));=0A=
if (__tmp !=3D 0)=0A=
return pair<_Tp*, ptrdiff_t>(__tmp, __len);=0A=
__len /=3D 2;=0A=
}=0A=
=0A=
return pair<_Tp*, ptrdiff_t>((_Tp*)0, 0);=0A=
}=0A=
# 102 "/usr/local/include/g++-v3/memory" 3=0A=
template <class _Tp>=0A=
inline pair<_Tp*, ptrdiff_t> get_temporary_buffer(ptrdiff_t __len) {=0A=
return __get_temporary_buffer(__len, (_Tp*) 0);=0A=
}=0A=
# 114 "/usr/local/include/g++-v3/memory" 3=0A=
template <class _Tp>=0A=
void return_temporary_buffer(_Tp* __p) {=0A=
std::free(__p);=0A=
}=0A=
=0A=
=0A=
template <class _Tp1>=0A=
struct auto_ptr_ref=0A=
{=0A=
_Tp1* _M_ptr;=0A=
auto_ptr_ref(_Tp1* __p) : _M_ptr(__p) {}=0A=
};=0A=
=0A=
=0A=
=0A=
=0A=
template <class _Tp>=0A=
class auto_ptr=0A=
{=0A=
private:=0A=
_Tp* _M_ptr;=0A=
=0A=
public:=0A=
typedef _Tp element_type;=0A=
=0A=
explicit auto_ptr(_Tp* __p =3D 0) throw() : _M_ptr(__p) {}=0A=
auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) {}=0A=
=0A=
template <class _Tp1> auto_ptr(auto_ptr<_Tp1>& __a) throw()=0A=
: _M_ptr(__a.release()) {}=0A=
=0A=
auto_ptr& operator=3D(auto_ptr& __a) throw() {=0A=
reset(__a.release());=0A=
return *this;=0A=
}=0A=
=0A=
template <class _Tp1>=0A=
auto_ptr& operator=3D(auto_ptr<_Tp1>& __a) throw() {=0A=
reset(__a.release());=0A=
return *this;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
~auto_ptr() { delete _M_ptr; }=0A=
=0A=
_Tp& operator*() const throw() {=0A=
return *_M_ptr;=0A=
}=0A=
_Tp* operator->() const throw() {=0A=
return _M_ptr;=0A=
}=0A=
_Tp* get() const throw() {=0A=
return _M_ptr;=0A=
}=0A=
_Tp* release() throw() {=0A=
_Tp* __tmp =3D _M_ptr;=0A=
_M_ptr =3D 0;=0A=
return __tmp;=0A=
}=0A=
void reset(_Tp* __p =3D 0) throw() {=0A=
if (__p !=3D _M_ptr) {=0A=
delete _M_ptr;=0A=
_M_ptr =3D __p;=0A=
}=0A=
}=0A=
=0A=
public:=0A=
auto_ptr(auto_ptr_ref<_Tp> __ref) throw()=0A=
: _M_ptr(__ref._M_ptr) {}=0A=
=0A=
auto_ptr& operator=3D(auto_ptr_ref<_Tp> __ref) throw() {=0A=
if (__ref._M_ptr !=3D this->get()) {=0A=
delete _M_ptr;=0A=
_M_ptr =3D __ref._M_ptr;=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template <class _Tp1> operator auto_ptr_ref<_Tp1>() throw()=0A=
{ return auto_ptr_ref<_Tp>(this->release()); }=0A=
template <class _Tp1> operator auto_ptr<_Tp1>() throw()=0A=
{ return auto_ptr<_Tp1>(this->release()); }=0A=
};=0A=
=0A=
}=0A=
# 49 "/usr/local/include/g++-v3/string" 2 3=0A=
=0A=
=0A=
=0A=
# 1 "/usr/local/include/g++-v3/bits/stl_function.h" 1 3=0A=
# 64 "/usr/local/include/g++-v3/bits/stl_function.h" 3=0A=
namespace std=0A=
{=0A=
# 101 "/usr/local/include/g++-v3/bits/stl_function.h" 3=0A=
template <class _Arg, class _Result>=0A=
struct unary_function {=0A=
typedef _Arg argument_type;=0A=
typedef _Result result_type;=0A=
};=0A=
=0A=
=0A=
=0A=
=0A=
template <class _Arg1, class _Arg2, class _Result>=0A=
struct binary_function {=0A=
typedef _Arg1 first_argument_type;=0A=
typedef _Arg2 second_argument_type;=0A=
typedef _Result result_type;=0A=
};=0A=
# 127 "/usr/local/include/g++-v3/bits/stl_function.h" 3=0A=
template <class _Tp>=0A=
struct plus : public binary_function<_Tp,_Tp,_Tp> {=0A=
_Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x + =
__y; }=0A=
};=0A=
=0A=
=0A=
template <class _Tp>=0A=
struct minus : public binary_function<_Tp,_Tp,_Tp> {=0A=
_Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x - =
__y; }=0A=
};=0A=
=0A=
=0A=
template <class _Tp>=0A=
struct multiplies : public binary_function<_Tp,_Tp,_Tp> {=0A=
_Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x * =
__y; }=0A=
};=0A=
=0A=
=0A=
template <class _Tp>=0A=
struct divides : public binary_function<_Tp,_Tp,_Tp> {=0A=
_Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x / =
__y; }=0A=
};=0A=
=0A=
=0A=
template <class _Tp>=0A=
struct modulus : public binary_function<_Tp,_Tp,_Tp>=0A=
{=0A=
_Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x % =
__y; }=0A=
};=0A=
=0A=
=0A=
template <class _Tp>=0A=
struct negate : public unary_function<_Tp,_Tp>=0A=
{=0A=
_Tp operator()(const _Tp& __x) const { return -__x; }=0A=
};=0A=
# 173 "/usr/local/include/g++-v3/bits/stl_function.h" 3=0A=
template <class _Tp>=0A=
struct equal_to : public binary_function<_Tp,_Tp,bool>=0A=
{=0A=
bool operator()(const _Tp& __x, const _Tp& __y) const { return __x =
=3D=3D __y; }=0A=
};=0A=
=0A=
=0A=
template <class _Tp>=0A=
struct not_equal_to : public binary_function<_Tp,_Tp,bool>=0A=
{=0A=
bool operator()(const _Tp& __x, const _Tp& __y) const { return __x =
!=3D __y; }=0A=
};=0A=
=0A=
=0A=
template <class _Tp>=0A=
struct greater : public binary_function<_Tp,_Tp,bool>=0A=
{=0A=
bool operator()(const _Tp& __x, const _Tp& __y) const { return __x > =
__y; }=0A=
};=0A=
=0A=
=0A=
template <class _Tp>=0A=
struct less : public binary_function<_Tp,_Tp,bool>=0A=
{=0A=
bool operator()(const _Tp& __x, const _Tp& __y) const { return __x < =
__y; }=0A=
};=0A=
=0A=
=0A=
template <class _Tp>=0A=
struct greater_equal : public binary_function<_Tp,_Tp,bool>=0A=
{=0A=
bool operator()(const _Tp& __x, const _Tp& __y) const { return __x =
>=3D __y; }=0A=
};=0A=
=0A=
=0A=
template <class _Tp>=0A=
struct less_equal : public binary_function<_Tp,_Tp,bool>=0A=
{=0A=
bool operator()(const _Tp& __x, const _Tp& __y) const { return __x =
<=3D __y; }=0A=
};=0A=
# 222 "/usr/local/include/g++-v3/bits/stl_function.h" 3=0A=
template <class _Tp>=0A=
struct logical_and : public binary_function<_Tp,_Tp,bool>=0A=
{=0A=
bool operator()(const _Tp& __x, const _Tp& __y) const { return __x && =
__y; }=0A=
};=0A=
=0A=
=0A=
template <class _Tp>=0A=
struct logical_or : public binary_function<_Tp,_Tp,bool>=0A=
{=0A=
bool operator()(const _Tp& __x, const _Tp& __y) const { return __x || =
__y; }=0A=
};=0A=
=0A=
=0A=
template <class _Tp>=0A=
struct logical_not : public unary_function<_Tp,bool>=0A=
{=0A=
bool operator()(const _Tp& __x) const { return !__x; }=0A=
};=0A=
# 271 "/usr/local/include/g++-v3/bits/stl_function.h" 3=0A=
template <class _Predicate>=0A=
class unary_negate=0A=
: public unary_function<typename _Predicate::argument_type, bool> {=0A=
protected:=0A=
_Predicate _M_pred;=0A=
public:=0A=
explicit unary_negate(const _Predicate& __x) : _M_pred(__x) {}=0A=
bool operator()(const typename _Predicate::argument_type& __x) const {=0A=
return !_M_pred(__x);=0A=
}=0A=
};=0A=
=0A=
=0A=
template <class _Predicate>=0A=
inline unary_negate<_Predicate>=0A=
not1(const _Predicate& __pred)=0A=
{=0A=
return unary_negate<_Predicate>(__pred);=0A=
}=0A=
=0A=
=0A=
template <class _Predicate>=0A=
class binary_negate=0A=
: public binary_function<typename _Predicate::first_argument_type,=0A=
typename _Predicate::second_argument_type,=0A=
bool> {=0A=
protected:=0A=
_Predicate _M_pred;=0A=
public:=0A=
explicit binary_negate(const _Predicate& __x) : _M_pred(__x) {}=0A=
bool operator()(const typename _Predicate::first_argument_type& __x,=0A=
const typename _Predicate::second_argument_type& __y) =
const=0A=
{=0A=
return !_M_pred(__x, __y);=0A=
}=0A=
};=0A=
=0A=
=0A=
template <class _Predicate>=0A=
inline binary_negate<_Predicate>=0A=
not2(const _Predicate& __pred)=0A=
{=0A=
return binary_negate<_Predicate>(__pred);=0A=
}=0A=
# 349 "/usr/local/include/g++-v3/bits/stl_function.h" 3=0A=
template <class _Operation>=0A=
class binder1st=0A=
: public unary_function<typename _Operation::second_argument_type,=0A=
typename _Operation::result_type> {=0A=
protected:=0A=
_Operation op;=0A=
typename _Operation::first_argument_type value;=0A=
public:=0A=
binder1st(const _Operation& __x,=0A=
const typename _Operation::first_argument_type& __y)=0A=
: op(__x), value(__y) {}=0A=
typename _Operation::result_type=0A=
operator()(const typename _Operation::second_argument_type& __x) const =
{=0A=
return op(value, __x);=0A=
}=0A=
=0A=
=0A=
typename _Operation::result_type=0A=
operator()(typename _Operation::second_argument_type& __x) const {=0A=
return op(value, __x);=0A=
}=0A=
=0A=
};=0A=
=0A=
=0A=
template <class _Operation, class _Tp>=0A=
inline binder1st<_Operation>=0A=
bind1st(const _Operation& __fn, const _Tp& __x)=0A=
{=0A=
typedef typename _Operation::first_argument_type _Arg1_type;=0A=
return binder1st<_Operation>(__fn, _Arg1_type(__x));=0A=
}=0A=
=0A=
=0A=
template <class _Operation>=0A=
class binder2nd=0A=
: public unary_function<typename _Operation::first_argument_type,=0A=
typename _Operation::result_type> {=0A=
protected:=0A=
_Operation op;=0A=
typename _Operation::second_argument_type value;=0A=
public:=0A=
binder2nd(const _Operation& __x,=0A=
const typename _Operation::second_argument_type& __y)=0A=
: op(__x), value(__y) {}=0A=
typename _Operation::result_type=0A=
operator()(const typename _Operation::first_argument_type& __x) const {=0A=
return op(__x, value);=0A=
}=0A=
=0A=
=0A=
typename _Operation::result_type=0A=
operator()(typename _Operation::first_argument_type& __x) const {=0A=
return op(__x, value);=0A=
}=0A=
=0A=
};=0A=
=0A=
=0A=
template <class _Operation, class _Tp>=0A=
inline binder2nd<_Operation>=0A=
bind2nd(const _Operation& __fn, const _Tp& __x)=0A=
{=0A=
typedef typename _Operation::second_argument_type _Arg2_type;=0A=
return binder2nd<_Operation>(__fn, _Arg2_type(__x));=0A=
}=0A=
# 438 "/usr/local/include/g++-v3/bits/stl_function.h" 3=0A=
template <class _Arg, class _Result>=0A=
class pointer_to_unary_function : public unary_function<_Arg, _Result> {=0A=
protected:=0A=
_Result (*_M_ptr)(_Arg);=0A=
public:=0A=
pointer_to_unary_function() {}=0A=
explicit pointer_to_unary_function(_Result (*__x)(_Arg)) : _M_ptr(__x) =
{}=0A=
_Result operator()(_Arg __x) const { return _M_ptr(__x); }=0A=
};=0A=
=0A=
=0A=
template <class _Arg, class _Result>=0A=
inline pointer_to_unary_function<_Arg, _Result> ptr_fun(_Result =
(*__x)(_Arg))=0A=
{=0A=
return pointer_to_unary_function<_Arg, _Result>(__x);=0A=
}=0A=
=0A=
=0A=
template <class _Arg1, class _Arg2, class _Result>=0A=
class pointer_to_binary_function :=0A=
public binary_function<_Arg1,_Arg2,_Result> {=0A=
protected:=0A=
_Result (*_M_ptr)(_Arg1, _Arg2);=0A=
public:=0A=
pointer_to_binary_function() {}=0A=
explicit pointer_to_binary_function(_Result (*__x)(_Arg1, _Arg2))=0A=
: _M_ptr(__x) {}=0A=
_Result operator()(_Arg1 __x, _Arg2 __y) const {=0A=
return _M_ptr(__x, __y);=0A=
}=0A=
};=0A=
=0A=
=0A=
template <class _Arg1, class _Arg2, class _Result>=0A=
inline pointer_to_binary_function<_Arg1,_Arg2,_Result>=0A=
ptr_fun(_Result (*__x)(_Arg1, _Arg2)) {=0A=
return pointer_to_binary_function<_Arg1,_Arg2,_Result>(__x);=0A=
}=0A=
=0A=
=0A=
template <class _Tp>=0A=
struct _Identity : public unary_function<_Tp,_Tp> {=0A=
_Tp& operator()(_Tp& __x) const { return __x; }=0A=
const _Tp& operator()(const _Tp& __x) const { return __x; }=0A=
};=0A=
=0A=
template <class _Pair>=0A=
struct _Select1st : public unary_function<_Pair, typename =
_Pair::first_type> {=0A=
typename _Pair::first_type& operator()(_Pair& __x) const {=0A=
return __x.first;=0A=
}=0A=
const typename _Pair::first_type& operator()(const _Pair& __x) const {=0A=
return __x.first;=0A=
}=0A=
};=0A=
=0A=
template <class _Pair>=0A=
struct _Select2nd : public unary_function<_Pair, typename =
_Pair::second_type>=0A=
{=0A=
typename _Pair::second_type& operator()(_Pair& __x) const {=0A=
return __x.second;=0A=
}=0A=
const typename _Pair::second_type& operator()(const _Pair& __x) const {=0A=
return __x.second;=0A=
}=0A=
};=0A=
# 528 "/usr/local/include/g++-v3/bits/stl_function.h" 3=0A=
template <class _Ret, class _Tp>=0A=
class mem_fun_t : public unary_function<_Tp*,_Ret> {=0A=
public:=0A=
explicit mem_fun_t(_Ret (_Tp::*__pf)()) : _M_f(__pf) {}=0A=
_Ret operator()(_Tp* __p) const { return (__p->*_M_f)(); }=0A=
private:=0A=
_Ret (_Tp::*_M_f)();=0A=
};=0A=
=0A=
=0A=
template <class _Ret, class _Tp>=0A=
class const_mem_fun_t : public unary_function<const _Tp*,_Ret> {=0A=
public:=0A=
explicit const_mem_fun_t(_Ret (_Tp::*__pf)() const) : _M_f(__pf) {}=0A=
_Ret operator()(const _Tp* __p) const { return (__p->*_M_f)(); }=0A=
private:=0A=
_Ret (_Tp::*_M_f)() const;=0A=
};=0A=
=0A=
=0A=
template <class _Ret, class _Tp>=0A=
class mem_fun_ref_t : public unary_function<_Tp,_Ret> {=0A=
public:=0A=
explicit mem_fun_ref_t(_Ret (_Tp::*__pf)()) : _M_f(__pf) {}=0A=
_Ret operator()(_Tp& __r) const { return (__r.*_M_f)(); }=0A=
private:=0A=
_Ret (_Tp::*_M_f)();=0A=
};=0A=
=0A=
=0A=
template <class _Ret, class _Tp>=0A=
class const_mem_fun_ref_t : public unary_function<_Tp,_Ret> {=0A=
public:=0A=
explicit const_mem_fun_ref_t(_Ret (_Tp::*__pf)() const) : _M_f(__pf) {}=0A=
_Ret operator()(const _Tp& __r) const { return (__r.*_M_f)(); }=0A=
private:=0A=
_Ret (_Tp::*_M_f)() const;=0A=
};=0A=
=0A=
=0A=
template <class _Ret, class _Tp, class _Arg>=0A=
class mem_fun1_t : public binary_function<_Tp*,_Arg,_Ret> {=0A=
public:=0A=
explicit mem_fun1_t(_Ret (_Tp::*__pf)(_Arg)) : _M_f(__pf) {}=0A=
_Ret operator()(_Tp* __p, _Arg __x) const { return (__p->*_M_f)(__x); }=0A=
private:=0A=
_Ret (_Tp::*_M_f)(_Arg);=0A=
};=0A=
=0A=
=0A=
template <class _Ret, class _Tp, class _Arg>=0A=
class const_mem_fun1_t : public binary_function<const _Tp*,_Arg,_Ret> {=0A=
public:=0A=
explicit const_mem_fun1_t(_Ret (_Tp::*__pf)(_Arg) const) : _M_f(__pf) =
{}=0A=
_Ret operator()(const _Tp* __p, _Arg __x) const=0A=
{ return (__p->*_M_f)(__x); }=0A=
private:=0A=
_Ret (_Tp::*_M_f)(_Arg) const;=0A=
};=0A=
=0A=
=0A=
template <class _Ret, class _Tp, class _Arg>=0A=
class mem_fun1_ref_t : public binary_function<_Tp,_Arg,_Ret> {=0A=
public:=0A=
explicit mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg)) : _M_f(__pf) {}=0A=
_Ret operator()(_Tp& __r, _Arg __x) const { return (__r.*_M_f)(__x); }=0A=
private:=0A=
_Ret (_Tp::*_M_f)(_Arg);=0A=
};=0A=
=0A=
=0A=
template <class _Ret, class _Tp, class _Arg>=0A=
class const_mem_fun1_ref_t : public binary_function<_Tp,_Arg,_Ret> {=0A=
public:=0A=
explicit const_mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg) const) : =
_M_f(__pf) {}=0A=
_Ret operator()(const _Tp& __r, _Arg __x) const { return =
(__r.*_M_f)(__x); }=0A=
private:=0A=
_Ret (_Tp::*_M_f)(_Arg) const;=0A=
};=0A=
=0A=
=0A=
template <class _Tp>=0A=
class mem_fun_t<void, _Tp> : public unary_function<_Tp*,void> {=0A=
public:=0A=
explicit mem_fun_t(void (_Tp::*__pf)()) : _M_f(__pf) {}=0A=
void operator()(_Tp* __p) const { (__p->*_M_f)(); }=0A=
private:=0A=
void (_Tp::*_M_f)();=0A=
};=0A=
=0A=
=0A=
template <class _Tp>=0A=
class const_mem_fun_t<void, _Tp> : public unary_function<const =
_Tp*,void> {=0A=
public:=0A=
explicit const_mem_fun_t(void (_Tp::*__pf)() const) : _M_f(__pf) {}=0A=
void operator()(const _Tp* __p) const { (__p->*_M_f)(); }=0A=
private:=0A=
void (_Tp::*_M_f)() const;=0A=
};=0A=
=0A=
=0A=
template <class _Tp>=0A=
class mem_fun_ref_t<void, _Tp> : public unary_function<_Tp,void> {=0A=
public:=0A=
explicit mem_fun_ref_t(void (_Tp::*__pf)()) : _M_f(__pf) {}=0A=
void operator()(_Tp& __r) const { (__r.*_M_f)(); }=0A=
private:=0A=
void (_Tp::*_M_f)();=0A=
};=0A=
=0A=
=0A=
template <class _Tp>=0A=
class const_mem_fun_ref_t<void, _Tp> : public unary_function<_Tp,void> {=0A=
public:=0A=
explicit const_mem_fun_ref_t(void (_Tp::*__pf)() const) : _M_f(__pf) {}=0A=
void operator()(const _Tp& __r) const { (__r.*_M_f)(); }=0A=
private:=0A=
void (_Tp::*_M_f)() const;=0A=
};=0A=
=0A=
=0A=
template <class _Tp, class _Arg>=0A=
class mem_fun1_t<void, _Tp, _Arg> : public =
binary_function<_Tp*,_Arg,void> {=0A=
public:=0A=
explicit mem_fun1_t(void (_Tp::*__pf)(_Arg)) : _M_f(__pf) {}=0A=
void operator()(_Tp* __p, _Arg __x) const { (__p->*_M_f)(__x); }=0A=
private:=0A=
void (_Tp::*_M_f)(_Arg);=0A=
};=0A=
=0A=
=0A=
template <class _Tp, class _Arg>=0A=
class const_mem_fun1_t<void, _Tp, _Arg>=0A=
: public binary_function<const _Tp*,_Arg,void> {=0A=
public:=0A=
explicit const_mem_fun1_t(void (_Tp::*__pf)(_Arg) const) : _M_f(__pf) =
{}=0A=
void operator()(const _Tp* __p, _Arg __x) const { (__p->*_M_f)(__x); }=0A=
private:=0A=
void (_Tp::*_M_f)(_Arg) const;=0A=
};=0A=
=0A=
=0A=
template <class _Tp, class _Arg>=0A=
class mem_fun1_ref_t<void, _Tp, _Arg>=0A=
: public binary_function<_Tp,_Arg,void> {=0A=
public:=0A=
explicit mem_fun1_ref_t(void (_Tp::*__pf)(_Arg)) : _M_f(__pf) {}=0A=
void operator()(_Tp& __r, _Arg __x) const { (__r.*_M_f)(__x); }=0A=
private:=0A=
void (_Tp::*_M_f)(_Arg);=0A=
};=0A=
=0A=
=0A=
template <class _Tp, class _Arg>=0A=
class const_mem_fun1_ref_t<void, _Tp, _Arg>=0A=
: public binary_function<_Tp,_Arg,void> {=0A=
public:=0A=
explicit const_mem_fun1_ref_t(void (_Tp::*__pf)(_Arg) const) : =
_M_f(__pf) {}=0A=
void operator()(const _Tp& __r, _Arg __x) const { (__r.*_M_f)(__x); }=0A=
private:=0A=
void (_Tp::*_M_f)(_Arg) const;=0A=
};=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template <class _Ret, class _Tp>=0A=
inline mem_fun_t<_Ret,_Tp> mem_fun(_Ret (_Tp::*__f)())=0A=
{ return mem_fun_t<_Ret,_Tp>(__f); }=0A=
=0A=
template <class _Ret, class _Tp>=0A=
inline const_mem_fun_t<_Ret,_Tp> mem_fun(_Ret (_Tp::*__f)() const)=0A=
{ return const_mem_fun_t<_Ret,_Tp>(__f); }=0A=
=0A=
template <class _Ret, class _Tp>=0A=
inline mem_fun_ref_t<_Ret,_Tp> mem_fun_ref(_Ret (_Tp::*__f)())=0A=
{ return mem_fun_ref_t<_Ret,_Tp>(__f); }=0A=
=0A=
template <class _Ret, class _Tp>=0A=
inline const_mem_fun_ref_t<_Ret,_Tp> mem_fun_ref(_Ret (_Tp::*__f)() =
const)=0A=
{ return const_mem_fun_ref_t<_Ret,_Tp>(__f); }=0A=
=0A=
template <class _Ret, class _Tp, class _Arg>=0A=
inline mem_fun1_t<_Ret,_Tp,_Arg> mem_fun(_Ret (_Tp::*__f)(_Arg))=0A=
{ return mem_fun1_t<_Ret,_Tp,_Arg>(__f); }=0A=
=0A=
template <class _Ret, class _Tp, class _Arg>=0A=
inline const_mem_fun1_t<_Ret,_Tp,_Arg> mem_fun(_Ret (_Tp::*__f)(_Arg) =
const)=0A=
{ return const_mem_fun1_t<_Ret,_Tp,_Arg>(__f); }=0A=
=0A=
template <class _Ret, class _Tp, class _Arg>=0A=
inline mem_fun1_ref_t<_Ret,_Tp,_Arg> mem_fun_ref(_Ret (_Tp::*__f)(_Arg))=0A=
{ return mem_fun1_ref_t<_Ret,_Tp,_Arg>(__f); }=0A=
=0A=
template <class _Ret, class _Tp, class _Arg>=0A=
inline const_mem_fun1_ref_t<_Ret,_Tp,_Arg>=0A=
mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const)=0A=
{ return const_mem_fun1_ref_t<_Ret,_Tp,_Arg>(__f); }=0A=
=0A=
=0A=
=0A=
}=0A=
# 53 "/usr/local/include/g++-v3/string" 2 3=0A=
# 1 "/usr/local/include/g++-v3/bits/basic_string.h" 1 3=0A=
# 44 "/usr/local/include/g++-v3/bits/basic_string.h" 3=0A=
=0A=
# 1 "/usr/local/include/g++-v3/i686-pc-cygwin/bits/atomicity.h" 1 3=0A=
# 33 "/usr/local/include/g++-v3/i686-pc-cygwin/bits/atomicity.h" 3=0A=
typedef int _Atomic_word;=0A=
=0A=
static inline _Atomic_word=0A=
__attribute__ ((__unused__))=0A=
__exchange_and_add (volatile _Atomic_word *__mem, int __val)=0A=
{=0A=
register _Atomic_word __result;=0A=
__asm__ __volatile__ ("lock; xaddl %0,%2"=0A=
: "=3Dr" (__result)=0A=
: "0" (__val), "m" (*__mem)=0A=
: "memory");=0A=
return __result;=0A=
}=0A=
=0A=
static inline void=0A=
__attribute__ ((__unused__))=0A=
__atomic_add (volatile _Atomic_word* __mem, int __val)=0A=
{=0A=
__asm__ __volatile__ ("lock; addl %0,%1"=0A=
: : "ir" (__val), "m" (*__mem) : "memory");=0A=
}=0A=
# 46 "/usr/local/include/g++-v3/bits/basic_string.h" 2 3=0A=
=0A=
namespace std=0A=
{=0A=
# 88 "/usr/local/include/g++-v3/bits/basic_string.h" 3=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
class basic_string=0A=
{=0A=
=0A=
public:=0A=
typedef _Traits traits_type;=0A=
typedef typename _Traits::char_type value_type;=0A=
typedef _Alloc allocator_type;=0A=
typedef typename _Alloc::size_type size_type;=0A=
typedef typename _Alloc::difference_type difference_type;=0A=
typedef typename _Alloc::reference reference;=0A=
typedef typename _Alloc::const_reference const_reference;=0A=
typedef typename _Alloc::pointer pointer;=0A=
typedef typename _Alloc::const_pointer const_pointer;=0A=
typedef __gnu_cxx::__normal_iterator<pointer, basic_string> =
iterator;=0A=
typedef __gnu_cxx::__normal_iterator<const_pointer, basic_string>=0A=
=
const_iterator;=0A=
typedef reverse_iterator<const_iterator> const_reverse_iterator;=0A=
typedef reverse_iterator<iterator> reverse_iterator;=0A=
=0A=
private:=0A=
# 123 "/usr/local/include/g++-v3/bits/basic_string.h" 3=0A=
struct _Rep=0A=
{=0A=
=0A=
typedef typename _Alloc::template rebind<char>::other =
_Raw_bytes_alloc;=0A=
# 141 "/usr/local/include/g++-v3/bits/basic_string.h" 3=0A=
static const size_type _S_max_size;=0A=
static const _CharT _S_terminal;=0A=
=0A=
size_type _M_length;=0A=
size_type _M_capacity;=0A=
_Atomic_word _M_references;=0A=
=0A=
bool=0A=
_M_is_leaked() const=0A=
{ return _M_references < 0; }=0A=
=0A=
bool=0A=
_M_is_shared() const=0A=
{ return _M_references > 0; }=0A=
=0A=
void=0A=
_M_set_leaked()=0A=
{ _M_references =3D -1; }=0A=
=0A=
void=0A=
_M_set_sharable()=0A=
{ _M_references =3D 0; }=0A=
=0A=
_CharT*=0A=
_M_refdata() throw()=0A=
{ return reinterpret_cast<_CharT*>(this + 1); }=0A=
=0A=
_CharT&=0A=
operator[](size_t __s) throw()=0A=
{ return _M_refdata() [__s]; }=0A=
=0A=
_CharT*=0A=
_M_grab(const _Alloc& __alloc1, const _Alloc& __alloc2)=0A=
{=0A=
return (!_M_is_leaked() && __alloc1 =3D=3D __alloc2)=0A=
? _M_refcopy() : _M_clone(__alloc1);=0A=
}=0A=
=0A=
=0A=
static _Rep*=0A=
_S_create(size_t, const _Alloc&);=0A=
=0A=
void=0A=
_M_dispose(const _Alloc& __a)=0A=
{=0A=
if (__exchange_and_add(&_M_references, -1) <=3D 0)=0A=
_M_destroy(__a);=0A=
}=0A=
=0A=
void=0A=
_M_destroy(const _Alloc&) throw();=0A=
=0A=
_CharT*=0A=
_M_refcopy() throw()=0A=
{=0A=
__atomic_add(&_M_references, 1);=0A=
return _M_refdata();=0A=
}=0A=
=0A=
_CharT*=0A=
_M_clone(const _Alloc&, size_type __res =3D 0);=0A=
};=0A=
=0A=
=0A=
struct _Alloc_hider : _Alloc=0A=
{=0A=
_Alloc_hider(_CharT* __dat, const _Alloc& __a)=0A=
: _Alloc(__a), _M_p(__dat) { }=0A=
=0A=
_CharT* _M_p;=0A=
};=0A=
=0A=
public:=0A=
=0A=
=0A=
=0A=
static const size_type npos =3D static_cast<size_type>(-1);=0A=
=0A=
private:=0A=
=0A=
mutable _Alloc_hider _M_dataplus;=0A=
=0A=
=0A=
=0A=
static size_type _S_empty_rep_storage[(sizeof(_Rep) + =
sizeof(_CharT) + sizeof(size_type) - 1)/sizeof(size_type)];=0A=
=0A=
_CharT*=0A=
_M_data() const=0A=
{ return _M_dataplus._M_p; }=0A=
=0A=
_CharT*=0A=
_M_data(_CharT* __p)=0A=
{ return (_M_dataplus._M_p =3D __p); }=0A=
=0A=
_Rep*=0A=
_M_rep() const=0A=
{ return &((reinterpret_cast<_Rep*> (_M_data()))[-1]); }=0A=
=0A=
=0A=
=0A=
iterator=0A=
_M_ibegin() const { return iterator(_M_data()); }=0A=
=0A=
iterator=0A=
_M_iend() const { return iterator(_M_data() + this->size()); }=0A=
=0A=
void=0A=
_M_leak()=0A=
{=0A=
if (!_M_rep()->_M_is_leaked())=0A=
_M_leak_hard();=0A=
}=0A=
=0A=
iterator=0A=
_M_check(size_type __pos) const=0A=
{=0A=
if (__pos > this->size())=0A=
__throw_out_of_range("basic_string::_M_check");=0A=
return _M_ibegin() + __pos;=0A=
}=0A=
=0A=
=0A=
iterator=0A=
_M_fold(size_type __pos, size_type __off) const=0A=
{=0A=
bool __testoff =3D __off < this->size() - __pos;=0A=
size_type __newoff =3D __testoff ? __off : this->size() - __pos;=0A=
return (_M_ibegin() + __pos + __newoff);=0A=
}=0A=
=0A=
=0A=
=0A=
template<class _Iterator>=0A=
static void=0A=
_S_copy_chars(_CharT* __p, _Iterator __k1, _Iterator __k2)=0A=
{=0A=
for (; __k1 !=3D __k2; ++__k1, ++__p)=0A=
traits_type::assign(*__p, *__k1);=0A=
}=0A=
=0A=
static void=0A=
_S_copy_chars(_CharT* __p, iterator __k1, iterator __k2)=0A=
{ _S_copy_chars(__p, __k1.base(), __k2.base()); }=0A=
=0A=
static void=0A=
_S_copy_chars(_CharT* __p, const_iterator __k1, const_iterator =
__k2)=0A=
{ _S_copy_chars(__p, __k1.base(), __k2.base()); }=0A=
=0A=
static void=0A=
_S_copy_chars(_CharT* __p, _CharT* __k1, _CharT* __k2)=0A=
{ traits_type::copy(__p, __k1, __k2 - __k1); }=0A=
=0A=
static void=0A=
_S_copy_chars(_CharT* __p, const _CharT* __k1, const _CharT* __k2)=0A=
{ traits_type::copy(__p, __k1, __k2 - __k1); }=0A=
=0A=
void=0A=
_M_mutate(size_type __pos, size_type __len1, size_type __len2);=0A=
=0A=
void=0A=
_M_leak_hard();=0A=
=0A=
static _Rep&=0A=
_S_empty_rep()=0A=
{ return *reinterpret_cast<_Rep*>(&_S_empty_rep_storage); }=0A=
=0A=
public:=0A=
=0A=
=0A=
=0A=
=0A=
inline=0A=
basic_string();=0A=
=0A=
explicit=0A=
basic_string(const _Alloc& __a);=0A=
=0A=
=0A=
basic_string(const basic_string& __str);=0A=
basic_string(const basic_string& __str, size_type __pos,=0A=
size_type __n =3D npos);=0A=
basic_string(const basic_string& __str, size_type __pos,=0A=
size_type __n, const _Alloc& __a);=0A=
=0A=
basic_string(const _CharT* __s, size_type __n,=0A=
const _Alloc& __a =3D _Alloc());=0A=
basic_string(const _CharT* __s, const _Alloc& __a =3D _Alloc());=0A=
basic_string(size_type __n, _CharT __c, const _Alloc& __a =3D =
_Alloc());=0A=
=0A=
template<class _InputIterator>=0A=
basic_string(_InputIterator __beg, _InputIterator __end,=0A=
const _Alloc& __a =3D _Alloc());=0A=
=0A=
~basic_string()=0A=
{ _M_rep()->_M_dispose(this->get_allocator()); }=0A=
=0A=
basic_string&=0A=
operator=3D(const basic_string& __str) { return =
this->assign(__str); }=0A=
=0A=
basic_string&=0A=
operator=3D(const _CharT* __s) { return this->assign(__s); }=0A=
=0A=
basic_string&=0A=
operator=3D(_CharT __c) { return this->assign(1, __c); }=0A=
=0A=
=0A=
iterator=0A=
begin()=0A=
{=0A=
_M_leak();=0A=
return iterator(_M_data());=0A=
}=0A=
=0A=
const_iterator=0A=
begin() const=0A=
{ return const_iterator(_M_data()); }=0A=
=0A=
iterator=0A=
end()=0A=
{=0A=
_M_leak();=0A=
return iterator(_M_data() + this->size());=0A=
}=0A=
=0A=
const_iterator=0A=
end() const=0A=
{ return const_iterator(_M_data() + this->size()); }=0A=
=0A=
reverse_iterator=0A=
rbegin()=0A=
{ return reverse_iterator(this->end()); }=0A=
=0A=
const_reverse_iterator=0A=
rbegin() const=0A=
{ return const_reverse_iterator(this->end()); }=0A=
=0A=
reverse_iterator=0A=
rend()=0A=
{ return reverse_iterator(this->begin()); }=0A=
=0A=
const_reverse_iterator=0A=
rend() const=0A=
{ return const_reverse_iterator(this->begin()); }=0A=
=0A=
public:=0A=
=0A=
size_type=0A=
size() const { return _M_rep()->_M_length; }=0A=
=0A=
size_type=0A=
length() const { return _M_rep()->_M_length; }=0A=
=0A=
size_type=0A=
max_size() const { return _Rep::_S_max_size; }=0A=
=0A=
void=0A=
resize(size_type __n, _CharT __c);=0A=
=0A=
void=0A=
resize(size_type __n) { this->resize(__n, _CharT()); }=0A=
=0A=
size_type=0A=
capacity() const { return _M_rep()->_M_capacity; }=0A=
=0A=
void=0A=
reserve(size_type __res_arg =3D 0);=0A=
=0A=
void=0A=
clear() { _M_mutate(0, this->size(), 0); }=0A=
=0A=
bool=0A=
empty() const { return this->size() =3D=3D 0; }=0A=
=0A=
=0A=
const_reference=0A=
operator[] (size_type __pos) const=0A=
{ return _M_data()[__pos]; }=0A=
=0A=
reference=0A=
operator[](size_type __pos)=0A=
{=0A=
_M_leak();=0A=
return _M_data()[__pos];=0A=
}=0A=
=0A=
const_reference=0A=
at(size_type __n) const=0A=
{=0A=
if (__n >=3D this->size())=0A=
__throw_out_of_range("basic_string::at");=0A=
return _M_data()[__n];=0A=
}=0A=
=0A=
reference=0A=
at(size_type __n)=0A=
{=0A=
if (__n >=3D size())=0A=
__throw_out_of_range("basic_string::at");=0A=
_M_leak();=0A=
return _M_data()[__n];=0A=
}=0A=
=0A=
=0A=
basic_string&=0A=
operator+=3D(const basic_string& __str) { return =
this->append(__str); }=0A=
=0A=
basic_string&=0A=
operator+=3D(const _CharT* __s) { return this->append(__s); }=0A=
=0A=
basic_string&=0A=
operator+=3D(_CharT __c) { return this->append(size_type(1), __c); =
}=0A=
=0A=
basic_string&=0A=
append(const basic_string& __str);=0A=
=0A=
basic_string&=0A=
append(const basic_string& __str, size_type __pos, size_type __n);=0A=
=0A=
basic_string&=0A=
append(const _CharT* __s, size_type __n);=0A=
=0A=
basic_string&=0A=
append(const _CharT* __s)=0A=
{ return this->append(__s, traits_type::length(__s)); }=0A=
=0A=
basic_string&=0A=
append(size_type __n, _CharT __c);=0A=
=0A=
template<class _InputIterator>=0A=
basic_string&=0A=
append(_InputIterator __first, _InputIterator __last)=0A=
{ return this->replace(_M_iend(), _M_iend(), __first, __last); }=0A=
=0A=
void=0A=
push_back(_CharT __c)=0A=
{ this->replace(_M_iend(), _M_iend(), 1, __c); }=0A=
=0A=
basic_string&=0A=
assign(const basic_string& __str);=0A=
=0A=
basic_string&=0A=
assign(const basic_string& __str, size_type __pos, size_type __n)=0A=
{=0A=
const size_type __strsize =3D __str.size();=0A=
if (__pos > __strsize)=0A=
__throw_out_of_range("basic_string::assign");=0A=
const bool __testn =3D __n < __strsize - __pos;=0A=
const size_type __newsize =3D __testn ? __n : __strsize - __pos;=0A=
return this->assign(__str._M_data() + __pos, __newsize);=0A=
}=0A=
=0A=
basic_string&=0A=
assign(const _CharT* __s, size_type __n)=0A=
{=0A=
if (__n > this->max_size())=0A=
__throw_length_error("basic_string::assign");=0A=
if (_M_rep()->_M_is_shared() || less<const _CharT*>()(__s, =
_M_data())=0A=
|| less<const _CharT*>()(_M_data() + this->size(), __s))=0A=
return _M_replace_safe(_M_ibegin(), _M_iend(), __s, __s + __n);=0A=
else=0A=
{=0A=
=0A=
const size_type __pos =3D __s - _M_data();=0A=
if (__pos >=3D __n)=0A=
traits_type::copy(_M_data(), __s, __n);=0A=
else if (__pos)=0A=
traits_type::move(_M_data(), __s, __n);=0A=
_M_rep()->_M_length =3D __n;=0A=
_M_data()[__n] =3D _Rep::_S_terminal;=0A=
return *this;=0A=
}=0A=
}=0A=
=0A=
basic_string&=0A=
assign(const _CharT* __s)=0A=
{ return this->assign(__s, traits_type::length(__s)); }=0A=
=0A=
basic_string&=0A=
assign(size_type __n, _CharT __c)=0A=
{ return this->replace(_M_ibegin(), _M_iend(), __n, __c); }=0A=
=0A=
template<class _InputIterator>=0A=
basic_string&=0A=
assign(_InputIterator __first, _InputIterator __last)=0A=
{ return this->replace(_M_ibegin(), _M_iend(), __first, __last); =
}=0A=
=0A=
void=0A=
insert(iterator __p, size_type __n, _CharT __c)=0A=
{ this->replace(__p, __p, __n, __c); }=0A=
=0A=
template<class _InputIterator>=0A=
void insert(iterator __p, _InputIterator __beg, _InputIterator =
__end)=0A=
{ this->replace(__p, __p, __beg, __end); }=0A=
=0A=
basic_string&=0A=
insert(size_type __pos1, const basic_string& __str)=0A=
{ return this->insert(__pos1, __str, 0, __str.size()); }=0A=
=0A=
basic_string&=0A=
insert(size_type __pos1, const basic_string& __str,=0A=
size_type __pos2, size_type __n)=0A=
{=0A=
const size_type __strsize =3D __str.size();=0A=
if (__pos2 > __strsize)=0A=
__throw_out_of_range("basic_string::insert");=0A=
const bool __testn =3D __n < __strsize - __pos2;=0A=
const size_type __newsize =3D __testn ? __n : __strsize - __pos2;=0A=
return this->insert(__pos1, __str._M_data() + __pos2, __newsize);=0A=
}=0A=
=0A=
basic_string&=0A=
insert(size_type __pos, const _CharT* __s, size_type __n)=0A=
{=0A=
const size_type __size =3D this->size();=0A=
if (__pos > __size)=0A=
__throw_out_of_range("basic_string::insert");=0A=
if (__size > this->max_size() - __n)=0A=
__throw_length_error("basic_string::insert");=0A=
if (_M_rep()->_M_is_shared() || less<const _CharT*>()(__s, =
_M_data())=0A=
|| less<const _CharT*>()(_M_data() + __size, __s))=0A=
return _M_replace_safe(_M_ibegin() + __pos, _M_ibegin() + =
__pos,=0A=
__s, __s + __n);=0A=
else=0A=
{=0A=
=0A=
=0A=
=0A=
const size_type __off =3D __s - _M_data();=0A=
_M_mutate(__pos, 0, __n);=0A=
__s =3D _M_data() + __off;=0A=
_CharT* __p =3D _M_data() + __pos;=0A=
if (__s + __n <=3D __p)=0A=
traits_type::copy(__p, __s, __n);=0A=
else if (__s >=3D __p)=0A=
traits_type::copy(__p, __s + __n, __n);=0A=
else=0A=
{=0A=
traits_type::copy(__p, __s, __p - __s);=0A=
traits_type::copy(__p + (__p - __s), __p + __n, __n - =
(__p - __s));=0A=
}=0A=
return *this;=0A=
}=0A=
}=0A=
=0A=
basic_string&=0A=
insert(size_type __pos, const _CharT* __s)=0A=
{ return this->insert(__pos, __s, traits_type::length(__s)); }=0A=
=0A=
basic_string&=0A=
insert(size_type __pos, size_type __n, _CharT __c)=0A=
{=0A=
this->insert(_M_check(__pos), __n, __c);=0A=
return *this;=0A=
}=0A=
=0A=
iterator=0A=
insert(iterator __p, _CharT __c =3D _CharT())=0A=
{=0A=
size_type __pos =3D __p - _M_ibegin();=0A=
this->insert(_M_check(__pos), size_type(1), __c);=0A=
_M_rep()->_M_set_leaked();=0A=
return this->_M_ibegin() + __pos;=0A=
}=0A=
=0A=
basic_string&=0A=
erase(size_type __pos =3D 0, size_type __n =3D npos)=0A=
{=0A=
return this->replace(_M_check(__pos), _M_fold(__pos, __n),=0A=
_M_data(), _M_data());=0A=
}=0A=
=0A=
iterator=0A=
erase(iterator __position)=0A=
{=0A=
size_type __i =3D __position - _M_ibegin();=0A=
this->replace(__position, __position + 1, _M_data(), _M_data());=0A=
_M_rep()->_M_set_leaked();=0A=
return _M_ibegin() + __i;=0A=
}=0A=
=0A=
iterator=0A=
erase(iterator __first, iterator __last)=0A=
{=0A=
size_type __i =3D __first - _M_ibegin();=0A=
this->replace(__first, __last, _M_data(), _M_data());=0A=
_M_rep()->_M_set_leaked();=0A=
return _M_ibegin() + __i;=0A=
}=0A=
=0A=
basic_string&=0A=
replace(size_type __pos, size_type __n, const basic_string& __str)=0A=
{ return this->replace(__pos, __n, __str._M_data(), __str.size()); =
}=0A=
=0A=
basic_string&=0A=
replace(size_type __pos1, size_type __n1, const basic_string& =
__str,=0A=
size_type __pos2, size_type __n2);=0A=
=0A=
basic_string&=0A=
replace(size_type __pos, size_type __n1, const _CharT* __s,=0A=
size_type __n2)=0A=
{=0A=
const size_type __size =3D this->size();=0A=
if (__pos > __size)=0A=
__throw_out_of_range("basic_string::replace");=0A=
const bool __testn1 =3D __n1 < __size - __pos;=0A=
const size_type __foldn1 =3D __testn1 ? __n1 : __size - __pos;=0A=
if (__size - __foldn1 > this->max_size() - __n2)=0A=
__throw_length_error("basic_string::replace");=0A=
if (_M_rep()->_M_is_shared() || less<const _CharT*>()(__s, =
_M_data())=0A=
|| less<const _CharT*>()(_M_data() + __size, __s))=0A=
return _M_replace_safe(_M_ibegin() + __pos,=0A=
_M_ibegin() + __pos + __foldn1, __s, =
__s + __n2);=0A=
else return this->replace(_M_check(__pos), _M_fold(__pos, __n1),=0A=
__s, __s + __n2);=0A=
}=0A=
=0A=
basic_string&=0A=
replace(size_type __pos, size_type __n1, const _CharT* __s)=0A=
{ return this->replace(__pos, __n1, __s, =
traits_type::length(__s)); }=0A=
=0A=
basic_string&=0A=
replace(size_type __pos, size_type __n1, size_type __n2, _CharT =
__c)=0A=
{ return this->replace(_M_check(__pos), _M_fold(__pos, __n1), =
__n2, __c); }=0A=
=0A=
basic_string&=0A=
replace(iterator __i1, iterator __i2, const basic_string& __str)=0A=
{ return this->replace(__i1, __i2, __str._M_data(), __str.size()); =
}=0A=
=0A=
basic_string&=0A=
replace(iterator __i1, iterator __i2,=0A=
const _CharT* __s, size_type __n)=0A=
{ return this->replace(__i1 - _M_ibegin(), __i2 - __i1, __s, __n); =
}=0A=
=0A=
basic_string&=0A=
replace(iterator __i1, iterator __i2, const _CharT* __s)=0A=
{ return this->replace(__i1, __i2, __s, traits_type::length(__s)); =
}=0A=
=0A=
basic_string&=0A=
replace(iterator __i1, iterator __i2, size_type __n, _CharT __c);=0A=
=0A=
template<class _InputIterator>=0A=
basic_string&=0A=
replace(iterator __i1, iterator __i2,=0A=
_InputIterator __k1, _InputIterator __k2)=0A=
{ return _M_replace(__i1, __i2, __k1, __k2,=0A=
typename =
iterator_traits<_InputIterator>::iterator_category()); }=0A=
=0A=
private:=0A=
template<class _InputIterator>=0A=
basic_string&=0A=
_M_replace(iterator __i1, iterator __i2, _InputIterator __k1,=0A=
_InputIterator __k2, input_iterator_tag);=0A=
=0A=
template<class _ForwardIterator>=0A=
basic_string&=0A=
_M_replace_safe(iterator __i1, iterator __i2, _ForwardIterator =
__k1,=0A=
_ForwardIterator __k2);=0A=
=0A=
=0A=
=0A=
template<class _InIter>=0A=
static _CharT*=0A=
_S_construct_aux(_InIter __beg, _InIter __end, const _Alloc& __a,=0A=
__false_type)=0A=
{=0A=
typedef typename iterator_traits<_InIter>::iterator_category =
_Tag;=0A=
return _S_construct(__beg, __end, __a, _Tag());=0A=
}=0A=
=0A=
template<class _InIter>=0A=
static _CharT*=0A=
_S_construct_aux(_InIter __beg, _InIter __end, const _Alloc& __a,=0A=
__true_type)=0A=
{=0A=
return _S_construct(static_cast<size_type>(__beg),=0A=
static_cast<value_type>(__end), __a);=0A=
}=0A=
=0A=
template<class _InIter>=0A=
static _CharT*=0A=
_S_construct(_InIter __beg, _InIter __end, const _Alloc& __a)=0A=
{=0A=
typedef typename _Is_integer<_InIter>::_Integral _Integral;=0A=
return _S_construct_aux(__beg, __end, __a, _Integral());=0A=
}=0A=
=0A=
=0A=
template<class _InIter>=0A=
static _CharT*=0A=
_S_construct(_InIter __beg, _InIter __end, const _Alloc& __a,=0A=
input_iterator_tag);=0A=
=0A=
=0A=
=0A=
template<class _FwdIter>=0A=
static _CharT*=0A=
_S_construct(_FwdIter __beg, _FwdIter __end, const _Alloc& __a,=0A=
forward_iterator_tag);=0A=
=0A=
static _CharT*=0A=
_S_construct(size_type __req, _CharT __c, const _Alloc& __a);=0A=
=0A=
public:=0A=
=0A=
size_type=0A=
copy(_CharT* __s, size_type __n, size_type __pos =3D 0) const;=0A=
=0A=
void=0A=
swap(basic_string<_CharT, _Traits, _Alloc>& __s);=0A=
=0A=
=0A=
const _CharT*=0A=
c_str() const=0A=
{=0A=
=0A=
size_type __n =3D this->size();=0A=
traits_type::assign(_M_data()[__n], _Rep::_S_terminal);=0A=
return _M_data();=0A=
}=0A=
=0A=
const _CharT*=0A=
data() const { return _M_data(); }=0A=
=0A=
allocator_type=0A=
get_allocator() const { return _M_dataplus; }=0A=
=0A=
size_type=0A=
find(const _CharT* __s, size_type __pos, size_type __n) const;=0A=
=0A=
size_type=0A=
find(const basic_string& __str, size_type __pos =3D 0) const=0A=
{ return this->find(__str.data(), __pos, __str.size()); }=0A=
=0A=
size_type=0A=
find(const _CharT* __s, size_type __pos =3D 0) const=0A=
{ return this->find(__s, __pos, traits_type::length(__s)); }=0A=
=0A=
size_type=0A=
find(_CharT __c, size_type __pos =3D 0) const;=0A=
=0A=
size_type=0A=
rfind(const basic_string& __str, size_type __pos =3D npos) const=0A=
{ return this->rfind(__str.data(), __pos, __str.size()); }=0A=
=0A=
size_type=0A=
rfind(const _CharT* __s, size_type __pos, size_type __n) const;=0A=
=0A=
size_type=0A=
rfind(const _CharT* __s, size_type __pos =3D npos) const=0A=
{ return this->rfind(__s, __pos, traits_type::length(__s)); }=0A=
=0A=
size_type=0A=
rfind(_CharT __c, size_type __pos =3D npos) const;=0A=
=0A=
size_type=0A=
find_first_of(const basic_string& __str, size_type __pos =3D 0) =
const=0A=
{ return this->find_first_of(__str.data(), __pos, __str.size()); }=0A=
=0A=
size_type=0A=
find_first_of(const _CharT* __s, size_type __pos, size_type __n) =
const;=0A=
=0A=
size_type=0A=
find_first_of(const _CharT* __s, size_type __pos =3D 0) const=0A=
{ return this->find_first_of(__s, __pos, =
traits_type::length(__s)); }=0A=
=0A=
size_type=0A=
find_first_of(_CharT __c, size_type __pos =3D 0) const=0A=
{ return this->find(__c, __pos); }=0A=
=0A=
size_type=0A=
find_last_of(const basic_string& __str, size_type __pos =3D npos) =
const=0A=
{ return this->find_last_of(__str.data(), __pos, __str.size()); }=0A=
=0A=
size_type=0A=
find_last_of(const _CharT* __s, size_type __pos, size_type __n) =
const;=0A=
=0A=
size_type=0A=
find_last_of(const _CharT* __s, size_type __pos =3D npos) const=0A=
{ return this->find_last_of(__s, __pos, traits_type::length(__s)); =
}=0A=
=0A=
size_type=0A=
find_last_of(_CharT __c, size_type __pos =3D npos) const=0A=
{ return this->rfind(__c, __pos); }=0A=
=0A=
size_type=0A=
find_first_not_of(const basic_string& __str, size_type __pos =3D =
0) const=0A=
{ return this->find_first_not_of(__str.data(), __pos, =
__str.size()); }=0A=
=0A=
size_type=0A=
find_first_not_of(const _CharT* __s, size_type __pos,=0A=
size_type __n) const;=0A=
=0A=
size_type=0A=
find_first_not_of(const _CharT* __s, size_type __pos =3D 0) const=0A=
{ return this->find_first_not_of(__s, __pos, =
traits_type::length(__s)); }=0A=
=0A=
size_type=0A=
find_first_not_of(_CharT __c, size_type __pos =3D 0) const;=0A=
=0A=
size_type=0A=
find_last_not_of(const basic_string& __str, size_type __pos =3D =
npos) const=0A=
{ return this->find_last_not_of(__str.data(), __pos, =
__str.size()); }=0A=
=0A=
size_type=0A=
find_last_not_of(const _CharT* __s, size_type __pos,=0A=
size_type __n) const;=0A=
size_type=0A=
find_last_not_of(const _CharT* __s, size_type __pos =3D npos) const=0A=
{ return this->find_last_not_of(__s, __pos, =
traits_type::length(__s)); }=0A=
=0A=
size_type=0A=
find_last_not_of(_CharT __c, size_type __pos =3D npos) const;=0A=
=0A=
basic_string=0A=
substr(size_type __pos =3D 0, size_type __n =3D npos) const=0A=
{=0A=
if (__pos > this->size())=0A=
__throw_out_of_range("basic_string::substr");=0A=
return basic_string(*this, __pos, __n);=0A=
}=0A=
=0A=
int=0A=
compare(const basic_string& __str) const=0A=
{=0A=
size_type __size =3D this->size();=0A=
size_type __osize =3D __str.size();=0A=
size_type __len =3D min(__size, __osize);=0A=
=0A=
int __r =3D traits_type::compare(_M_data(), __str.data(), __len);=0A=
if (!__r)=0A=
__r =3D __size - __osize;=0A=
return __r;=0A=
}=0A=
=0A=
int=0A=
compare(size_type __pos, size_type __n, const basic_string& __str) =
const;=0A=
=0A=
int=0A=
compare(size_type __pos1, size_type __n1, const basic_string& =
__str,=0A=
size_type __pos2, size_type __n2) const;=0A=
=0A=
int=0A=
compare(const _CharT* __s) const;=0A=
=0A=
=0A=
=0A=
int=0A=
compare(size_type __pos, size_type __n1, const _CharT* __s) const;=0A=
=0A=
int=0A=
compare(size_type __pos, size_type __n1, const _CharT* __s,=0A=
size_type __n2) const;=0A=
};=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
inline basic_string<_CharT, _Traits, _Alloc>::=0A=
basic_string()=0A=
: _M_dataplus(_S_empty_rep()._M_refcopy(), _Alloc()) { }=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
basic_string<_CharT, _Traits, _Alloc>=0A=
operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,=0A=
const basic_string<_CharT, _Traits, _Alloc>& __rhs)=0A=
{=0A=
basic_string<_CharT, _Traits, _Alloc> __str(__lhs);=0A=
__str.append(__rhs);=0A=
return __str;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
basic_string<_CharT,_Traits,_Alloc>=0A=
operator+(const _CharT* __lhs,=0A=
const basic_string<_CharT,_Traits,_Alloc>& __rhs);=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
basic_string<_CharT,_Traits,_Alloc>=0A=
operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Alloc>& =
__rhs);=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
inline basic_string<_CharT, _Traits, _Alloc>=0A=
operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,=0A=
const _CharT* __rhs)=0A=
{=0A=
basic_string<_CharT, _Traits, _Alloc> __str(__lhs);=0A=
__str.append(__rhs);=0A=
return __str;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
inline basic_string<_CharT, _Traits, _Alloc>=0A=
operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT =
__rhs)=0A=
{=0A=
typedef basic_string<_CharT, _Traits, _Alloc> __string_type;=0A=
typedef typename __string_type::size_type __size_type;=0A=
__string_type __str(__lhs);=0A=
__str.append(__size_type(1), __rhs);=0A=
return __str;=0A=
}=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
inline bool=0A=
operator=3D=3D(const basic_string<_CharT, _Traits, _Alloc>& __lhs,=0A=
const basic_string<_CharT, _Traits, _Alloc>& __rhs)=0A=
{ return __lhs.compare(__rhs) =3D=3D 0; }=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
inline bool=0A=
operator=3D=3D(const _CharT* __lhs,=0A=
const basic_string<_CharT, _Traits, _Alloc>& __rhs)=0A=
{ return __rhs.compare(__lhs) =3D=3D 0; }=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
inline bool=0A=
operator=3D=3D(const basic_string<_CharT, _Traits, _Alloc>& __lhs,=0A=
const _CharT* __rhs)=0A=
{ return __lhs.compare(__rhs) =3D=3D 0; }=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
inline bool=0A=
operator!=3D(const basic_string<_CharT, _Traits, _Alloc>& __lhs,=0A=
const basic_string<_CharT, _Traits, _Alloc>& __rhs)=0A=
{ return __rhs.compare(__lhs) !=3D 0; }=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
inline bool=0A=
operator!=3D(const _CharT* __lhs,=0A=
const basic_string<_CharT, _Traits, _Alloc>& __rhs)=0A=
{ return __rhs.compare(__lhs) !=3D 0; }=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
inline bool=0A=
operator!=3D(const basic_string<_CharT, _Traits, _Alloc>& __lhs,=0A=
const _CharT* __rhs)=0A=
{ return __lhs.compare(__rhs) !=3D 0; }=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
inline bool=0A=
operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,=0A=
const basic_string<_CharT, _Traits, _Alloc>& __rhs)=0A=
{ return __lhs.compare(__rhs) < 0; }=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
inline bool=0A=
operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,=0A=
const _CharT* __rhs)=0A=
{ return __lhs.compare(__rhs) < 0; }=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
inline bool=0A=
operator<(const _CharT* __lhs,=0A=
const basic_string<_CharT, _Traits, _Alloc>& __rhs)=0A=
{ return __rhs.compare(__lhs) > 0; }=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
inline bool=0A=
operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,=0A=
const basic_string<_CharT, _Traits, _Alloc>& __rhs)=0A=
{ return __lhs.compare(__rhs) > 0; }=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
inline bool=0A=
operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,=0A=
const _CharT* __rhs)=0A=
{ return __lhs.compare(__rhs) > 0; }=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
inline bool=0A=
operator>(const _CharT* __lhs,=0A=
const basic_string<_CharT, _Traits, _Alloc>& __rhs)=0A=
{ return __rhs.compare(__lhs) < 0; }=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
inline bool=0A=
operator<=3D(const basic_string<_CharT, _Traits, _Alloc>& __lhs,=0A=
const basic_string<_CharT, _Traits, _Alloc>& __rhs)=0A=
{ return __lhs.compare(__rhs) <=3D 0; }=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
inline bool=0A=
operator<=3D(const basic_string<_CharT, _Traits, _Alloc>& __lhs,=0A=
const _CharT* __rhs)=0A=
{ return __lhs.compare(__rhs) <=3D 0; }=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
inline bool=0A=
operator<=3D(const _CharT* __lhs,=0A=
const basic_string<_CharT, _Traits, _Alloc>& __rhs)=0A=
{ return __rhs.compare(__lhs) >=3D 0; }=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
inline bool=0A=
operator>=3D(const basic_string<_CharT, _Traits, _Alloc>& __lhs,=0A=
const basic_string<_CharT, _Traits, _Alloc>& __rhs)=0A=
{ return __lhs.compare(__rhs) >=3D 0; }=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
inline bool=0A=
operator>=3D(const basic_string<_CharT, _Traits, _Alloc>& __lhs,=0A=
const _CharT* __rhs)=0A=
{ return __lhs.compare(__rhs) >=3D 0; }=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
inline bool=0A=
operator>=3D(const _CharT* __lhs,=0A=
const basic_string<_CharT, _Traits, _Alloc>& __rhs)=0A=
{ return __rhs.compare(__lhs) <=3D 0; }=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
inline void=0A=
swap(basic_string<_CharT, _Traits, _Alloc>& __lhs,=0A=
basic_string<_CharT, _Traits, _Alloc>& __rhs)=0A=
{ __lhs.swap(__rhs); }=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
basic_istream<_CharT, _Traits>&=0A=
operator>>(basic_istream<_CharT, _Traits>& __is,=0A=
basic_string<_CharT, _Traits, _Alloc>& __str);=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
basic_ostream<_CharT, _Traits>&=0A=
operator<<(basic_ostream<_CharT, _Traits>& __os,=0A=
const basic_string<_CharT, _Traits, _Alloc>& __str);=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
basic_istream<_CharT,_Traits>&=0A=
getline(basic_istream<_CharT, _Traits>& __is,=0A=
basic_string<_CharT, _Traits, _Alloc>& __str, _CharT =
__delim);=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
inline basic_istream<_CharT,_Traits>&=0A=
getline(basic_istream<_CharT, _Traits>& __is,=0A=
basic_string<_CharT, _Traits, _Alloc>& __str);=0A=
}=0A=
# 54 "/usr/local/include/g++-v3/string" 2 3=0A=
=0A=
=0A=
# 1 "/usr/local/include/g++-v3/algorithm" 1 3=0A=
# 65 "/usr/local/include/g++-v3/algorithm" 3=0A=
=0A=
=0A=
=0A=
=0A=
# 1 "/usr/local/include/g++-v3/bits/stl_algo.h" 1 3=0A=
# 64 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
# 1 "/usr/local/include/g++-v3/bits/stl_heap.h" 1 3=0A=
# 63 "/usr/local/include/g++-v3/bits/stl_heap.h" 3=0A=
namespace std=0A=
{=0A=
=0A=
=0A=
=0A=
template<typename _RandomAccessIterator, typename _Distance, typename =
_Tp>=0A=
void=0A=
__push_heap(_RandomAccessIterator __first,=0A=
_Distance __holeIndex, _Distance __topIndex, _Tp __value)=0A=
{=0A=
_Distance __parent =3D (__holeIndex - 1) / 2;=0A=
while (__holeIndex > __topIndex && *(__first + __parent) < =
__value) {=0A=
*(__first + __holeIndex) =3D *(__first + __parent);=0A=
__holeIndex =3D __parent;=0A=
__parent =3D (__holeIndex - 1) / 2;=0A=
}=0A=
*(__first + __holeIndex) =3D __value;=0A=
}=0A=
=0A=
template<typename _RandomAccessIterator>=0A=
inline void=0A=
push_heap(_RandomAccessIterator __first, _RandomAccessIterator =
__last)=0A=
{=0A=
typedef typename iterator_traits<_RandomAccessIterator>::value_type=0A=
_ValueType;=0A=
typedef typename =
iterator_traits<_RandomAccessIterator>::difference_type=0A=
_DistanceType;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
__push_heap(__first, _DistanceType((__last - __first) - 1), =
_DistanceType(0),=0A=
_ValueType(*(__last - 1)));=0A=
}=0A=
=0A=
template<typename _RandomAccessIterator, typename _Distance, typename =
_Tp,=0A=
typename _Compare>=0A=
void=0A=
__push_heap(_RandomAccessIterator __first, _Distance __holeIndex,=0A=
_Distance __topIndex, _Tp __value, _Compare __comp)=0A=
{=0A=
_Distance __parent =3D (__holeIndex - 1) / 2;=0A=
while (__holeIndex > __topIndex && __comp(*(__first + __parent), =
__value)) {=0A=
*(__first + __holeIndex) =3D *(__first + __parent);=0A=
__holeIndex =3D __parent;=0A=
__parent =3D (__holeIndex - 1) / 2;=0A=
}=0A=
*(__first + __holeIndex) =3D __value;=0A=
}=0A=
=0A=
template<typename _RandomAccessIterator, typename _Compare>=0A=
inline void=0A=
push_heap(_RandomAccessIterator __first, _RandomAccessIterator =
__last,=0A=
_Compare __comp)=0A=
{=0A=
typedef typename iterator_traits<_RandomAccessIterator>::value_type=0A=
_ValueType;=0A=
typedef typename =
iterator_traits<_RandomAccessIterator>::difference_type=0A=
_DistanceType;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
__push_heap(__first, _DistanceType((__last - __first) - 1), =
_DistanceType(0),=0A=
_ValueType(*(__last - 1)), __comp);=0A=
}=0A=
=0A=
template<typename _RandomAccessIterator, typename _Distance, typename =
_Tp>=0A=
void=0A=
__adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex,=0A=
_Distance __len, _Tp __value)=0A=
{=0A=
_Distance __topIndex =3D __holeIndex;=0A=
_Distance __secondChild =3D 2 * __holeIndex + 2;=0A=
while (__secondChild < __len) {=0A=
if (*(__first + __secondChild) < *(__first + (__secondChild - =
1)))=0A=
__secondChild--;=0A=
*(__first + __holeIndex) =3D *(__first + __secondChild);=0A=
__holeIndex =3D __secondChild;=0A=
__secondChild =3D 2 * (__secondChild + 1);=0A=
}=0A=
if (__secondChild =3D=3D __len) {=0A=
*(__first + __holeIndex) =3D *(__first + (__secondChild - 1));=0A=
__holeIndex =3D __secondChild - 1;=0A=
}=0A=
__push_heap(__first, __holeIndex, __topIndex, __value);=0A=
}=0A=
=0A=
template<typename _RandomAccessIterator, typename _Tp>=0A=
inline void=0A=
__pop_heap(_RandomAccessIterator __first, _RandomAccessIterator =
__last,=0A=
_RandomAccessIterator __result, _Tp __value)=0A=
{=0A=
typedef typename =
iterator_traits<_RandomAccessIterator>::difference_type _Distance;=0A=
*__result =3D *__first;=0A=
__adjust_heap(__first, _Distance(0), _Distance(__last - __first), =
__value);=0A=
}=0A=
=0A=
template<typename _RandomAccessIterator>=0A=
inline void=0A=
pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last)=0A=
{=0A=
typedef typename =
iterator_traits<_RandomAccessIterator>::value_type _ValueType;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
__pop_heap(__first, __last - 1, __last - 1, _ValueType(*(__last - =
1)));=0A=
}=0A=
=0A=
template<typename _RandomAccessIterator, typename _Distance,=0A=
typename _Tp, typename _Compare>=0A=
void=0A=
__adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex,=0A=
_Distance __len, _Tp __value, _Compare __comp)=0A=
{=0A=
_Distance __topIndex =3D __holeIndex;=0A=
_Distance __secondChild =3D 2 * __holeIndex + 2;=0A=
while (__secondChild < __len) {=0A=
if (__comp(*(__first + __secondChild), *(__first + =
(__secondChild - 1))))=0A=
__secondChild--;=0A=
*(__first + __holeIndex) =3D *(__first + __secondChild);=0A=
__holeIndex =3D __secondChild;=0A=
__secondChild =3D 2 * (__secondChild + 1);=0A=
}=0A=
if (__secondChild =3D=3D __len) {=0A=
*(__first + __holeIndex) =3D *(__first + (__secondChild - 1));=0A=
__holeIndex =3D __secondChild - 1;=0A=
}=0A=
__push_heap(__first, __holeIndex, __topIndex, __value, __comp);=0A=
}=0A=
=0A=
template<typename _RandomAccessIterator, typename _Tp, typename =
_Compare>=0A=
inline void=0A=
__pop_heap(_RandomAccessIterator __first, _RandomAccessIterator =
__last,=0A=
_RandomAccessIterator __result, _Tp __value, _Compare =
__comp)=0A=
{=0A=
typedef typename =
iterator_traits<_RandomAccessIterator>::difference_type _Distance;=0A=
*__result =3D *__first;=0A=
__adjust_heap(__first, _Distance(0), _Distance(__last - __first),=0A=
__value, __comp);=0A=
}=0A=
=0A=
template<typename _RandomAccessIterator, typename _Compare>=0A=
inline void=0A=
pop_heap(_RandomAccessIterator __first,=0A=
_RandomAccessIterator __last, _Compare __comp)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
typedef typename =
iterator_traits<_RandomAccessIterator>::value_type _ValueType;=0A=
__pop_heap(__first, __last - 1, __last - 1, _ValueType(*(__last - =
1)), __comp);=0A=
}=0A=
=0A=
template<typename _RandomAccessIterator>=0A=
void=0A=
make_heap(_RandomAccessIterator __first, _RandomAccessIterator =
__last)=0A=
{=0A=
typedef typename iterator_traits<_RandomAccessIterator>::value_type=0A=
_ValueType;=0A=
typedef typename =
iterator_traits<_RandomAccessIterator>::difference_type=0A=
_DistanceType;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
if (__last - __first < 2) return;=0A=
_DistanceType __len =3D __last - __first;=0A=
_DistanceType __parent =3D (__len - 2)/2;=0A=
=0A=
while (true) {=0A=
__adjust_heap(__first, __parent, __len, _ValueType(*(__first + =
__parent)));=0A=
if (__parent =3D=3D 0) return;=0A=
__parent--;=0A=
}=0A=
}=0A=
=0A=
template<typename _RandomAccessIterator, typename _Compare>=0A=
inline void=0A=
make_heap(_RandomAccessIterator __first, _RandomAccessIterator =
__last,=0A=
_Compare __comp)=0A=
{=0A=
typedef typename iterator_traits<_RandomAccessIterator>::value_type=0A=
_ValueType;=0A=
typedef typename =
iterator_traits<_RandomAccessIterator>::difference_type=0A=
_DistanceType;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
if (__last - __first < 2) return;=0A=
_DistanceType __len =3D __last - __first;=0A=
_DistanceType __parent =3D (__len - 2)/2;=0A=
=0A=
while (true) {=0A=
__adjust_heap(__first, __parent, __len,=0A=
_ValueType(*(__first + __parent)), __comp);=0A=
if (__parent =3D=3D 0) return;=0A=
__parent--;=0A=
}=0A=
}=0A=
=0A=
template<typename _RandomAccessIterator>=0A=
void=0A=
sort_heap(_RandomAccessIterator __first, _RandomAccessIterator =
__last)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
while (__last - __first > 1)=0A=
pop_heap(__first, __last--);=0A=
}=0A=
=0A=
template<typename _RandomAccessIterator, typename _Compare>=0A=
void=0A=
sort_heap(_RandomAccessIterator __first, _RandomAccessIterator =
__last,=0A=
_Compare __comp)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
while (__last - __first > 1)=0A=
pop_heap(__first, __last--, __comp);=0A=
}=0A=
=0A=
}=0A=
# 65 "/usr/local/include/g++-v3/bits/stl_algo.h" 2 3=0A=
# 1 "/usr/local/include/g++-v3/bits/stl_tempbuf.h" 1 3=0A=
# 64 "/usr/local/include/g++-v3/bits/stl_tempbuf.h" 3=0A=
namespace std=0A=
{=0A=
# 74 "/usr/local/include/g++-v3/bits/stl_tempbuf.h" 3=0A=
template <class _ForwardIterator, class _Tp>=0A=
class _Temporary_buffer=0A=
{=0A=
=0A=
=0A=
=0A=
ptrdiff_t _M_original_len;=0A=
ptrdiff_t _M_len;=0A=
_Tp* _M_buffer;=0A=
=0A=
=0A=
void _M_allocate_buffer() {=0A=
_M_original_len =3D _M_len;=0A=
_M_buffer =3D 0;=0A=
=0A=
if (_M_len > (ptrdiff_t)(2147483647 / sizeof(_Tp)))=0A=
_M_len =3D 2147483647 / sizeof(_Tp);=0A=
=0A=
while (_M_len > 0) {=0A=
_M_buffer =3D (_Tp*) malloc(_M_len * sizeof(_Tp));=0A=
if (_M_buffer)=0A=
break;=0A=
_M_len /=3D 2;=0A=
}=0A=
}=0A=
=0A=
void _M_initialize_buffer(const _Tp&, __true_type) {}=0A=
void _M_initialize_buffer(const _Tp& val, __false_type) {=0A=
uninitialized_fill_n(_M_buffer, _M_len, val);=0A=
}=0A=
=0A=
public:=0A=
=0A=
ptrdiff_t size() const { return _M_len; }=0A=
=0A=
ptrdiff_t requested_size() const { return _M_original_len; }=0A=
=0A=
_Tp* begin() { return _M_buffer; }=0A=
=0A=
_Tp* end() { return _M_buffer + _M_len; }=0A=
=0A=
_Temporary_buffer(_ForwardIterator __first, _ForwardIterator __last) {=0A=
=0A=
typedef typename __type_traits<_Tp>::has_trivial_default_constructor=0A=
_Trivial;=0A=
=0A=
try {=0A=
_M_len =3D distance(__first, __last);=0A=
_M_allocate_buffer();=0A=
if (_M_len > 0)=0A=
_M_initialize_buffer(*__first, _Trivial());=0A=
}=0A=
catch(...)=0A=
{=0A=
free(_M_buffer);=0A=
_M_buffer =3D 0;=0A=
_M_len =3D 0;=0A=
throw;=0A=
}=0A=
}=0A=
=0A=
~_Temporary_buffer() {=0A=
_Destroy(_M_buffer, _M_buffer + _M_len);=0A=
free(_M_buffer);=0A=
}=0A=
=0A=
private:=0A=
=0A=
_Temporary_buffer(const _Temporary_buffer&) {}=0A=
void operator=3D(const _Temporary_buffer&) {}=0A=
};=0A=
=0A=
}=0A=
# 66 "/usr/local/include/g++-v3/bits/stl_algo.h" 2 3=0A=
=0A=
=0A=
=0A=
namespace std=0A=
{=0A=
# 84 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _Tp>=0A=
inline const _Tp&=0A=
__median(const _Tp& __a, const _Tp& __b, const _Tp& __c)=0A=
{=0A=
=0A=
=0A=
if (__a < __b)=0A=
if (__b < __c)=0A=
return __b;=0A=
else if (__a < __c)=0A=
return __c;=0A=
else=0A=
return __a;=0A=
else if (__a < __c)=0A=
return __a;=0A=
else if (__b < __c)=0A=
return __c;=0A=
else=0A=
return __b;=0A=
}=0A=
# 118 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _Tp, typename _Compare>=0A=
inline const _Tp&=0A=
__median(const _Tp& __a, const _Tp& __b, const _Tp& __c, _Compare =
__comp)=0A=
{=0A=
=0A=
=0A=
if (__comp(__a, __b))=0A=
if (__comp(__b, __c))=0A=
return __b;=0A=
else if (__comp(__a, __c))=0A=
return __c;=0A=
else=0A=
return __a;=0A=
else if (__comp(__a, __c))=0A=
return __a;=0A=
else if (__comp(__b, __c))=0A=
return __c;=0A=
else=0A=
return __b;=0A=
}=0A=
# 150 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _InputIter, typename _Function>=0A=
_Function=0A=
for_each(_InputIter __first, _InputIter __last, _Function __f)=0A=
{=0A=
=0A=
=0A=
for ( ; __first !=3D __last; ++__first)=0A=
__f(*__first);=0A=
return __f;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _InputIter, typename _Tp>=0A=
inline _InputIter=0A=
find(_InputIter __first, _InputIter __last,=0A=
const _Tp& __val,=0A=
input_iterator_tag)=0A=
{=0A=
while (__first !=3D __last && !(*__first =3D=3D __val))=0A=
++__first;=0A=
return __first;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _InputIter, typename _Predicate>=0A=
inline _InputIter=0A=
find_if(_InputIter __first, _InputIter __last,=0A=
_Predicate __pred,=0A=
input_iterator_tag)=0A=
{=0A=
while (__first !=3D __last && !__pred(*__first))=0A=
++__first;=0A=
return __first;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _RandomAccessIter, typename _Tp>=0A=
_RandomAccessIter=0A=
find(_RandomAccessIter __first, _RandomAccessIter __last,=0A=
const _Tp& __val,=0A=
random_access_iterator_tag)=0A=
{=0A=
typename iterator_traits<_RandomAccessIter>::difference_type =
__trip_count=0A=
=3D (__last - __first) >> 2;=0A=
=0A=
for ( ; __trip_count > 0 ; --__trip_count) {=0A=
if (*__first =3D=3D __val) return __first;=0A=
++__first;=0A=
=0A=
if (*__first =3D=3D __val) return __first;=0A=
++__first;=0A=
=0A=
if (*__first =3D=3D __val) return __first;=0A=
++__first;=0A=
=0A=
if (*__first =3D=3D __val) return __first;=0A=
++__first;=0A=
}=0A=
=0A=
switch(__last - __first) {=0A=
case 3:=0A=
if (*__first =3D=3D __val) return __first;=0A=
++__first;=0A=
case 2:=0A=
if (*__first =3D=3D __val) return __first;=0A=
++__first;=0A=
case 1:=0A=
if (*__first =3D=3D __val) return __first;=0A=
++__first;=0A=
case 0:=0A=
default:=0A=
return __last;=0A=
}=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _RandomAccessIter, typename _Predicate>=0A=
_RandomAccessIter=0A=
find_if(_RandomAccessIter __first, _RandomAccessIter __last,=0A=
_Predicate __pred,=0A=
random_access_iterator_tag)=0A=
{=0A=
typename iterator_traits<_RandomAccessIter>::difference_type =
__trip_count=0A=
=3D (__last - __first) >> 2;=0A=
=0A=
for ( ; __trip_count > 0 ; --__trip_count) {=0A=
if (__pred(*__first)) return __first;=0A=
++__first;=0A=
=0A=
if (__pred(*__first)) return __first;=0A=
++__first;=0A=
=0A=
if (__pred(*__first)) return __first;=0A=
++__first;=0A=
=0A=
if (__pred(*__first)) return __first;=0A=
++__first;=0A=
}=0A=
=0A=
switch(__last - __first) {=0A=
case 3:=0A=
if (__pred(*__first)) return __first;=0A=
++__first;=0A=
case 2:=0A=
if (__pred(*__first)) return __first;=0A=
++__first;=0A=
case 1:=0A=
if (__pred(*__first)) return __first;=0A=
++__first;=0A=
case 0:=0A=
default:=0A=
return __last;=0A=
}=0A=
}=0A=
# 289 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _InputIter, typename _Tp>=0A=
inline _InputIter=0A=
find(_InputIter __first, _InputIter __last,=0A=
const _Tp& __val)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
return find(__first, __last, __val, __iterator_category(__first));=0A=
}=0A=
# 309 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _InputIter, typename _Predicate>=0A=
inline _InputIter=0A=
find_if(_InputIter __first, _InputIter __last,=0A=
_Predicate __pred)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
return find_if(__first, __last, __pred, =
__iterator_category(__first));=0A=
}=0A=
# 329 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _ForwardIter>=0A=
_ForwardIter=0A=
adjacent_find(_ForwardIter __first, _ForwardIter __last)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
if (__first =3D=3D __last)=0A=
return __last;=0A=
_ForwardIter __next =3D __first;=0A=
while(++__next !=3D __last) {=0A=
if (*__first =3D=3D *__next)=0A=
return __first;=0A=
__first =3D __next;=0A=
}=0A=
return __last;=0A=
}=0A=
# 358 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _ForwardIter, typename _BinaryPredicate>=0A=
_ForwardIter=0A=
adjacent_find(_ForwardIter __first, _ForwardIter __last,=0A=
_BinaryPredicate __binary_pred)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
if (__first =3D=3D __last)=0A=
return __last;=0A=
_ForwardIter __next =3D __first;=0A=
while(++__next !=3D __last) {=0A=
if (__binary_pred(*__first, *__next))=0A=
return __first;=0A=
__first =3D __next;=0A=
}=0A=
return __last;=0A=
}=0A=
# 387 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _InputIter, typename _Tp>=0A=
typename iterator_traits<_InputIter>::difference_type=0A=
count(_InputIter __first, _InputIter __last, const _Tp& __value)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
typename iterator_traits<_InputIter>::difference_type __n =3D 0;=0A=
for ( ; __first !=3D __last; ++__first)=0A=
if (*__first =3D=3D __value)=0A=
++__n;=0A=
return __n;=0A=
}=0A=
# 411 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _InputIter, typename _Predicate>=0A=
typename iterator_traits<_InputIter>::difference_type=0A=
count_if(_InputIter __first, _InputIter __last, _Predicate __pred)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
typename iterator_traits<_InputIter>::difference_type __n =3D 0;=0A=
for ( ; __first !=3D __last; ++__first)=0A=
if (__pred(*__first))=0A=
++__n;=0A=
return __n;=0A=
}=0A=
# 450 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _ForwardIter1, typename _ForwardIter2>=0A=
_ForwardIter1=0A=
search(_ForwardIter1 __first1, _ForwardIter1 __last1,=0A=
_ForwardIter2 __first2, _ForwardIter2 __last2)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
if (__first1 =3D=3D __last1 || __first2 =3D=3D __last2)=0A=
return __first1;=0A=
=0A=
=0A=
_ForwardIter2 __tmp(__first2);=0A=
++__tmp;=0A=
if (__tmp =3D=3D __last2)=0A=
return find(__first1, __last1, *__first2);=0A=
=0A=
=0A=
=0A=
_ForwardIter2 __p1, __p;=0A=
=0A=
__p1 =3D __first2; ++__p1;=0A=
=0A=
_ForwardIter1 __current =3D __first1;=0A=
=0A=
while (__first1 !=3D __last1) {=0A=
__first1 =3D find(__first1, __last1, *__first2);=0A=
if (__first1 =3D=3D __last1)=0A=
return __last1;=0A=
=0A=
__p =3D __p1;=0A=
__current =3D __first1;=0A=
if (++__current =3D=3D __last1)=0A=
return __last1;=0A=
=0A=
while (*__current =3D=3D *__p) {=0A=
if (++__p =3D=3D __last2)=0A=
return __first1;=0A=
if (++__current =3D=3D __last1)=0A=
return __last1;=0A=
}=0A=
=0A=
++__first1;=0A=
}=0A=
return __first1;=0A=
}=0A=
# 522 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _ForwardIter1, typename _ForwardIter2, typename =
_BinaryPred>=0A=
_ForwardIter1=0A=
search(_ForwardIter1 __first1, _ForwardIter1 __last1,=0A=
_ForwardIter2 __first2, _ForwardIter2 __last2,=0A=
_BinaryPred __predicate)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
if (__first1 =3D=3D __last1 || __first2 =3D=3D __last2)=0A=
return __first1;=0A=
=0A=
=0A=
_ForwardIter2 __tmp(__first2);=0A=
++__tmp;=0A=
if (__tmp =3D=3D __last2) {=0A=
while (__first1 !=3D __last1 && !__predicate(*__first1, =
*__first2))=0A=
++__first1;=0A=
return __first1;=0A=
}=0A=
=0A=
=0A=
=0A=
_ForwardIter2 __p1, __p;=0A=
=0A=
__p1 =3D __first2; ++__p1;=0A=
=0A=
_ForwardIter1 __current =3D __first1;=0A=
=0A=
while (__first1 !=3D __last1) {=0A=
while (__first1 !=3D __last1) {=0A=
if (__predicate(*__first1, *__first2))=0A=
break;=0A=
++__first1;=0A=
}=0A=
while (__first1 !=3D __last1 && !__predicate(*__first1, =
*__first2))=0A=
++__first1;=0A=
if (__first1 =3D=3D __last1)=0A=
return __last1;=0A=
=0A=
__p =3D __p1;=0A=
__current =3D __first1;=0A=
if (++__current =3D=3D __last1) return __last1;=0A=
=0A=
while (__predicate(*__current, *__p)) {=0A=
if (++__p =3D=3D __last2)=0A=
return __first1;=0A=
if (++__current =3D=3D __last1)=0A=
return __last1;=0A=
}=0A=
=0A=
++__first1;=0A=
}=0A=
return __first1;=0A=
}=0A=
# 596 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _ForwardIter, typename _Integer, typename _Tp>=0A=
_ForwardIter=0A=
search_n(_ForwardIter __first, _ForwardIter __last,=0A=
_Integer __count, const _Tp& __val)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
if (__count <=3D 0)=0A=
return __first;=0A=
else {=0A=
__first =3D find(__first, __last, __val);=0A=
while (__first !=3D __last) {=0A=
_Integer __n =3D __count - 1;=0A=
_ForwardIter __i =3D __first;=0A=
++__i;=0A=
while (__i !=3D __last && __n !=3D 0 && *__i =3D=3D __val) {=0A=
++__i;=0A=
--__n;=0A=
}=0A=
if (__n =3D=3D 0)=0A=
return __first;=0A=
else=0A=
__first =3D find(__i, __last, __val);=0A=
}=0A=
return __last;=0A=
}=0A=
}=0A=
# 643 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _ForwardIter, typename _Integer, typename _Tp,=0A=
typename _BinaryPred>=0A=
_ForwardIter=0A=
search_n(_ForwardIter __first, _ForwardIter __last,=0A=
_Integer __count, const _Tp& __val,=0A=
_BinaryPred __binary_pred)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
if (__count <=3D 0)=0A=
return __first;=0A=
else {=0A=
while (__first !=3D __last) {=0A=
if (__binary_pred(*__first, __val))=0A=
break;=0A=
++__first;=0A=
}=0A=
while (__first !=3D __last) {=0A=
_Integer __n =3D __count - 1;=0A=
_ForwardIter __i =3D __first;=0A=
++__i;=0A=
while (__i !=3D __last && __n !=3D 0 && __binary_pred(*__i, =
__val)) {=0A=
++__i;=0A=
--__n;=0A=
}=0A=
if (__n =3D=3D 0)=0A=
return __first;=0A=
else {=0A=
while (__i !=3D __last) {=0A=
if (__binary_pred(*__i, __val))=0A=
break;=0A=
++__i;=0A=
}=0A=
__first =3D __i;=0A=
}=0A=
}=0A=
return __last;=0A=
}=0A=
}=0A=
# 697 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _ForwardIter1, typename _ForwardIter2>=0A=
_ForwardIter2=0A=
swap_ranges(_ForwardIter1 __first1, _ForwardIter1 __last1,=0A=
_ForwardIter2 __first2)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
for ( ; __first1 !=3D __last1; ++__first1, ++__first2)=0A=
iter_swap(__first1, __first2);=0A=
return __first2;=0A=
}=0A=
# 732 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _InputIter, typename _OutputIter, typename =
_UnaryOperation>=0A=
_OutputIter=0A=
transform(_InputIter __first, _InputIter __last,=0A=
_OutputIter __result, _UnaryOperation __unary_op)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
for ( ; __first !=3D __last; ++__first, ++__result)=0A=
*__result =3D __unary_op(*__first);=0A=
return __result;=0A=
}=0A=
# 765 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _InputIter1, typename _InputIter2, typename =
_OutputIter,=0A=
typename _BinaryOperation>=0A=
_OutputIter=0A=
transform(_InputIter1 __first1, _InputIter1 __last1,=0A=
_InputIter2 __first2, _OutputIter __result,=0A=
_BinaryOperation __binary_op)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
for ( ; __first1 !=3D __last1; ++__first1, ++__first2, ++__result)=0A=
*__result =3D __binary_op(*__first1, *__first2);=0A=
return __result;=0A=
}=0A=
# 796 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _ForwardIter, typename _Tp>=0A=
void=0A=
replace(_ForwardIter __first, _ForwardIter __last,=0A=
const _Tp& __old_value, const _Tp& __new_value)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
for ( ; __first !=3D __last; ++__first)=0A=
if (*__first =3D=3D __old_value)=0A=
*__first =3D __new_value;=0A=
}=0A=
# 825 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _ForwardIter, typename _Predicate, typename _Tp>=0A=
void=0A=
replace_if(_ForwardIter __first, _ForwardIter __last,=0A=
_Predicate __pred, const _Tp& __new_value)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
for ( ; __first !=3D __last; ++__first)=0A=
if (__pred(*__first))=0A=
*__first =3D __new_value;=0A=
}=0A=
# 856 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _InputIter, typename _OutputIter, typename _Tp>=0A=
_OutputIter=0A=
replace_copy(_InputIter __first, _InputIter __last,=0A=
_OutputIter __result,=0A=
const _Tp& __old_value, const _Tp& __new_value)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
for ( ; __first !=3D __last; ++__first, ++__result)=0A=
*__result =3D *__first =3D=3D __old_value ? __new_value : =
*__first;=0A=
return __result;=0A=
}=0A=
# 888 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _InputIter, typename _OutputIter, typename =
_Predicate,=0A=
typename _Tp>=0A=
_OutputIter=0A=
replace_copy_if(_InputIter __first, _InputIter __last,=0A=
_OutputIter __result,=0A=
_Predicate __pred, const _Tp& __new_value)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
for ( ; __first !=3D __last; ++__first, ++__result)=0A=
*__result =3D __pred(*__first) ? __new_value : *__first;=0A=
return __result;=0A=
}=0A=
# 918 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _ForwardIter, typename _Generator>=0A=
void=0A=
generate(_ForwardIter __first, _ForwardIter __last, _Generator __gen)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
for ( ; __first !=3D __last; ++__first)=0A=
*__first =3D __gen();=0A=
}=0A=
# 942 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _OutputIter, typename _Size, typename _Generator>=0A=
_OutputIter=0A=
generate_n(_OutputIter __first, _Size __n, _Generator __gen)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
for ( ; __n > 0; --__n, ++__first)=0A=
*__first =3D __gen();=0A=
return __first;=0A=
}=0A=
# 969 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _InputIter, typename _OutputIter, typename _Tp>=0A=
_OutputIter=0A=
remove_copy(_InputIter __first, _InputIter __last,=0A=
_OutputIter __result, const _Tp& __value)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
for ( ; __first !=3D __last; ++__first)=0A=
if (!(*__first =3D=3D __value)) {=0A=
*__result =3D *__first;=0A=
++__result;=0A=
}=0A=
return __result;=0A=
}=0A=
# 1003 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _InputIter, typename _OutputIter, typename =
_Predicate>=0A=
_OutputIter=0A=
remove_copy_if(_InputIter __first, _InputIter __last,=0A=
_OutputIter __result, _Predicate __pred)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
for ( ; __first !=3D __last; ++__first)=0A=
if (!__pred(*__first)) {=0A=
*__result =3D *__first;=0A=
++__result;=0A=
}=0A=
return __result;=0A=
}=0A=
# 1039 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _ForwardIter, typename _Tp>=0A=
_ForwardIter=0A=
remove(_ForwardIter __first, _ForwardIter __last,=0A=
const _Tp& __value)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
__first =3D find(__first, __last, __value);=0A=
_ForwardIter __i =3D __first;=0A=
return __first =3D=3D __last ? __first=0A=
: remove_copy(++__i, __last, __first, =
__value);=0A=
}=0A=
# 1073 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _ForwardIter, typename _Predicate>=0A=
_ForwardIter=0A=
remove_if(_ForwardIter __first, _ForwardIter __last,=0A=
_Predicate __pred)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
__first =3D find_if(__first, __last, __pred);=0A=
_ForwardIter __i =3D __first;=0A=
return __first =3D=3D __last ? __first=0A=
: remove_copy_if(++__i, __last, __first, =
__pred);=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _InputIter, typename _OutputIter>=0A=
_OutputIter=0A=
__unique_copy(_InputIter __first, _InputIter __last,=0A=
_OutputIter __result,=0A=
output_iterator_tag)=0A=
{=0A=
=0A=
typename iterator_traits<_InputIter>::value_type __value =3D =
*__first;=0A=
*__result =3D __value;=0A=
while (++__first !=3D __last)=0A=
if (!(__value =3D=3D *__first)) {=0A=
__value =3D *__first;=0A=
*++__result =3D __value;=0A=
}=0A=
return ++__result;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _InputIter, typename _ForwardIter>=0A=
_ForwardIter=0A=
__unique_copy(_InputIter __first, _InputIter __last,=0A=
_ForwardIter __result,=0A=
forward_iterator_tag)=0A=
{=0A=
=0A=
*__result =3D *__first;=0A=
while (++__first !=3D __last)=0A=
if (!(*__result =3D=3D *__first))=0A=
*++__result =3D *__first;=0A=
return ++__result;=0A=
}=0A=
# 1145 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _InputIter, typename _OutputIter>=0A=
inline _OutputIter=0A=
unique_copy(_InputIter __first, _InputIter __last,=0A=
_OutputIter __result)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
typedef typename iterator_traits<_OutputIter>::iterator_category =
_IterType;=0A=
=0A=
if (__first =3D=3D __last) return __result;=0A=
return __unique_copy(__first, __last, __result, _IterType());=0A=
}=0A=
# 1170 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _InputIter, typename _OutputIter, typename =
_BinaryPredicate>=0A=
_OutputIter=0A=
__unique_copy(_InputIter __first, _InputIter __last,=0A=
_OutputIter __result,=0A=
_BinaryPredicate __binary_pred,=0A=
output_iterator_tag)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
typename iterator_traits<_InputIter>::value_type __value =3D =
*__first;=0A=
*__result =3D __value;=0A=
while (++__first !=3D __last)=0A=
if (!__binary_pred(__value, *__first)) {=0A=
__value =3D *__first;=0A=
*++__result =3D __value;=0A=
}=0A=
return ++__result;=0A=
}=0A=
# 1199 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _InputIter, typename _ForwardIter, typename =
_BinaryPredicate>=0A=
_ForwardIter=0A=
__unique_copy(_InputIter __first, _InputIter __last,=0A=
_ForwardIter __result,=0A=
_BinaryPredicate __binary_pred,=0A=
forward_iterator_tag)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
*__result =3D *__first;=0A=
while (++__first !=3D __last)=0A=
if (!__binary_pred(*__result, *__first)) *++__result =3D =
*__first;=0A=
return ++__result;=0A=
}=0A=
# 1232 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _InputIter, typename _OutputIter, typename =
_BinaryPredicate>=0A=
inline _OutputIter=0A=
unique_copy(_InputIter __first, _InputIter __last,=0A=
_OutputIter __result,=0A=
_BinaryPredicate __binary_pred)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
typedef typename iterator_traits<_OutputIter>::iterator_category =
_IterType;=0A=
=0A=
if (__first =3D=3D __last) return __result;=0A=
return __unique_copy(__first, __last,=0A=
__result, __binary_pred, _IterType());=0A=
}=0A=
# 1263 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _ForwardIter>=0A=
_ForwardIter=0A=
unique(_ForwardIter __first, _ForwardIter __last)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
__first =3D adjacent_find(__first, __last);=0A=
return unique_copy(__first, __last, __first);=0A=
}=0A=
# 1290 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _ForwardIter, typename _BinaryPredicate>=0A=
_ForwardIter=0A=
unique(_ForwardIter __first, _ForwardIter __last,=0A=
_BinaryPredicate __binary_pred)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
__first =3D adjacent_find(__first, __last, __binary_pred);=0A=
return unique_copy(__first, __last, __first, __binary_pred);=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _BidirectionalIter>=0A=
void=0A=
__reverse(_BidirectionalIter __first, _BidirectionalIter __last,=0A=
bidirectional_iterator_tag)=0A=
{=0A=
while (true)=0A=
if (__first =3D=3D __last || __first =3D=3D --__last)=0A=
return;=0A=
else=0A=
iter_swap(__first++, __last);=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _RandomAccessIter>=0A=
void=0A=
__reverse(_RandomAccessIter __first, _RandomAccessIter __last,=0A=
random_access_iterator_tag)=0A=
{=0A=
while (__first < __last)=0A=
iter_swap(__first++, --__last);=0A=
}=0A=
# 1349 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _BidirectionalIter>=0A=
inline void=0A=
reverse(_BidirectionalIter __first, _BidirectionalIter __last)=0A=
{=0A=
=0A=
=0A=
=0A=
__reverse(__first, __last, __iterator_category(__first));=0A=
}=0A=
# 1374 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _BidirectionalIter, typename _OutputIter>=0A=
_OutputIter=0A=
reverse_copy(_BidirectionalIter __first, _BidirectionalIter __last,=0A=
_OutputIter __result)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
while (__first !=3D __last) {=0A=
--__last;=0A=
*__result =3D *__last;=0A=
++__result;=0A=
}=0A=
return __result;=0A=
}=0A=
# 1399 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _EuclideanRingElement>=0A=
_EuclideanRingElement=0A=
__gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)=0A=
{=0A=
while (__n !=3D 0) {=0A=
_EuclideanRingElement __t =3D __m % __n;=0A=
__m =3D __n;=0A=
__n =3D __t;=0A=
}=0A=
return __m;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _ForwardIter>=0A=
void=0A=
__rotate(_ForwardIter __first,=0A=
_ForwardIter __middle,=0A=
_ForwardIter __last,=0A=
forward_iterator_tag)=0A=
{=0A=
if ((__first =3D=3D __middle) || (__last =3D=3D __middle))=0A=
return;=0A=
=0A=
_ForwardIter __first2 =3D __middle;=0A=
do {=0A=
swap(*__first++, *__first2++);=0A=
if (__first =3D=3D __middle)=0A=
__middle =3D __first2;=0A=
} while (__first2 !=3D __last);=0A=
=0A=
__first2 =3D __middle;=0A=
=0A=
while (__first2 !=3D __last) {=0A=
swap(*__first++, *__first2++);=0A=
if (__first =3D=3D __middle)=0A=
__middle =3D __first2;=0A=
else if (__first2 =3D=3D __last)=0A=
__first2 =3D __middle;=0A=
}=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _BidirectionalIter>=0A=
void=0A=
__rotate(_BidirectionalIter __first,=0A=
_BidirectionalIter __middle,=0A=
_BidirectionalIter __last,=0A=
bidirectional_iterator_tag)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
if ((__first =3D=3D __middle) || (__last =3D=3D __middle))=0A=
return;=0A=
=0A=
__reverse(__first, __middle, bidirectional_iterator_tag());=0A=
__reverse(__middle, __last, bidirectional_iterator_tag());=0A=
=0A=
while (__first !=3D __middle && __middle !=3D __last)=0A=
swap (*__first++, *--__last);=0A=
=0A=
if (__first =3D=3D __middle) {=0A=
__reverse(__middle, __last, bidirectional_iterator_tag());=0A=
}=0A=
else {=0A=
__reverse(__first, __middle, bidirectional_iterator_tag());=0A=
}=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _RandomAccessIter>=0A=
void=0A=
__rotate(_RandomAccessIter __first,=0A=
_RandomAccessIter __middle,=0A=
_RandomAccessIter __last,=0A=
random_access_iterator_tag)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
if ((__first =3D=3D __middle) || (__last =3D=3D __middle))=0A=
return;=0A=
=0A=
typedef typename =
iterator_traits<_RandomAccessIter>::difference_type _Distance;=0A=
typedef typename iterator_traits<_RandomAccessIter>::value_type =
_ValueType;=0A=
=0A=
_Distance __n =3D __last - __first;=0A=
_Distance __k =3D __middle - __first;=0A=
_Distance __l =3D __n - __k;=0A=
=0A=
if (__k =3D=3D __l) {=0A=
swap_ranges(__first, __middle, __middle);=0A=
return;=0A=
}=0A=
=0A=
_Distance __d =3D __gcd(__n, __k);=0A=
=0A=
for (_Distance __i =3D 0; __i < __d; __i++) {=0A=
_ValueType __tmp =3D *__first;=0A=
_RandomAccessIter __p =3D __first;=0A=
=0A=
if (__k < __l) {=0A=
for (_Distance __j =3D 0; __j < __l/__d; __j++) {=0A=
if (__p > __first + __l) {=0A=
*__p =3D *(__p - __l);=0A=
__p -=3D __l;=0A=
}=0A=
=0A=
*__p =3D *(__p + __k);=0A=
__p +=3D __k;=0A=
}=0A=
}=0A=
=0A=
else {=0A=
for (_Distance __j =3D 0; __j < __k/__d - 1; __j ++) {=0A=
if (__p < __last - __k) {=0A=
*__p =3D *(__p + __k);=0A=
__p +=3D __k;=0A=
}=0A=
=0A=
*__p =3D * (__p - __l);=0A=
__p -=3D __l;=0A=
}=0A=
}=0A=
=0A=
*__p =3D __tmp;=0A=
++__first;=0A=
}=0A=
}=0A=
# 1561 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _ForwardIter>=0A=
inline void=0A=
rotate(_ForwardIter __first, _ForwardIter __middle, _ForwardIter =
__last)=0A=
{=0A=
=0A=
=0A=
=0A=
typedef typename iterator_traits<_ForwardIter>::iterator_category =
_IterType;=0A=
__rotate(__first, __middle, __last, _IterType());=0A=
}=0A=
# 1589 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _ForwardIter, typename _OutputIter>=0A=
_OutputIter=0A=
rotate_copy(_ForwardIter __first, _ForwardIter __middle,=0A=
_ForwardIter __last, _OutputIter __result)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
return copy(__first, __middle, copy(__middle, __last, __result));=0A=
}=0A=
# 1612 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _Distance>=0A=
inline _Distance=0A=
__random_number(_Distance __n)=0A=
{=0A=
=0A=
return lrand48() % __n;=0A=
=0A=
=0A=
=0A=
}=0A=
# 1634 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _RandomAccessIter>=0A=
inline void=0A=
random_shuffle(_RandomAccessIter __first, _RandomAccessIter __last)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
if (__first =3D=3D __last) return;=0A=
for (_RandomAccessIter __i =3D __first + 1; __i !=3D __last; ++__i)=0A=
iter_swap(__i, __first + __random_number((__i - __first) + 1));=0A=
}=0A=
# 1660 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _RandomAccessIter, typename _RandomNumberGenerator>=0A=
void=0A=
random_shuffle(_RandomAccessIter __first, _RandomAccessIter __last,=0A=
_RandomNumberGenerator& __rand)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
if (__first =3D=3D __last) return;=0A=
for (_RandomAccessIter __i =3D __first + 1; __i !=3D __last; ++__i)=0A=
iter_swap(__i, __first + __rand((__i - __first) + 1));=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _ForwardIter, typename _Predicate>=0A=
_ForwardIter=0A=
__partition(_ForwardIter __first, _ForwardIter __last,=0A=
_Predicate __pred,=0A=
forward_iterator_tag)=0A=
{=0A=
if (__first =3D=3D __last) return __first;=0A=
=0A=
while (__pred(*__first))=0A=
if (++__first =3D=3D __last) return __first;=0A=
=0A=
_ForwardIter __next =3D __first;=0A=
=0A=
while (++__next !=3D __last)=0A=
if (__pred(*__next)) {=0A=
swap(*__first, *__next);=0A=
++__first;=0A=
}=0A=
=0A=
return __first;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _BidirectionalIter, typename _Predicate>=0A=
_BidirectionalIter=0A=
__partition(_BidirectionalIter __first, _BidirectionalIter __last,=0A=
_Predicate __pred,=0A=
bidirectional_iterator_tag)=0A=
{=0A=
while (true) {=0A=
while (true)=0A=
if (__first =3D=3D __last)=0A=
return __first;=0A=
else if (__pred(*__first))=0A=
++__first;=0A=
else=0A=
break;=0A=
--__last;=0A=
while (true)=0A=
if (__first =3D=3D __last)=0A=
return __first;=0A=
else if (!__pred(*__last))=0A=
--__last;=0A=
else=0A=
break;=0A=
iter_swap(__first, __last);=0A=
++__first;=0A=
}=0A=
}=0A=
# 1748 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _ForwardIter, typename _Predicate>=0A=
inline _ForwardIter=0A=
partition(_ForwardIter __first, _ForwardIter __last,=0A=
_Predicate __pred)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
return __partition(__first, __last, __pred, =
__iterator_category(__first));=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _ForwardIter, typename _Predicate, typename =
_Distance>=0A=
_ForwardIter=0A=
__inplace_stable_partition(_ForwardIter __first, _ForwardIter __last,=0A=
_Predicate __pred, _Distance __len)=0A=
{=0A=
if (__len =3D=3D 1)=0A=
return __pred(*__first) ? __last : __first;=0A=
_ForwardIter __middle =3D __first;=0A=
advance(__middle, __len / 2);=0A=
_ForwardIter __begin =3D __inplace_stable_partition(__first, =
__middle,=0A=
__pred,=0A=
__len / 2);=0A=
_ForwardIter __end =3D __inplace_stable_partition(__middle, __last,=0A=
__pred,=0A=
__len - __len / 2);=0A=
rotate(__begin, __middle, __end);=0A=
advance(__begin, distance(__middle, __end));=0A=
return __begin;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _ForwardIter, typename _Pointer, typename _Predicate,=0A=
typename _Distance>=0A=
_ForwardIter=0A=
__stable_partition_adaptive(_ForwardIter __first, _ForwardIter =
__last,=0A=
_Predicate __pred, _Distance __len,=0A=
_Pointer __buffer,=0A=
_Distance __buffer_size)=0A=
{=0A=
if (__len <=3D __buffer_size) {=0A=
_ForwardIter __result1 =3D __first;=0A=
_Pointer __result2 =3D __buffer;=0A=
for ( ; __first !=3D __last ; ++__first)=0A=
if (__pred(*__first)) {=0A=
*__result1 =3D *__first;=0A=
++__result1;=0A=
}=0A=
else {=0A=
*__result2 =3D *__first;=0A=
++__result2;=0A=
}=0A=
copy(__buffer, __result2, __result1);=0A=
return __result1;=0A=
}=0A=
else {=0A=
_ForwardIter __middle =3D __first;=0A=
advance(__middle, __len / 2);=0A=
_ForwardIter __begin =3D __stable_partition_adaptive(__first, =
__middle,=0A=
__pred,=0A=
__len / 2,=0A=
__buffer, =
__buffer_size);=0A=
_ForwardIter __end =3D __stable_partition_adaptive( __middle, =
__last,=0A=
__pred,=0A=
__len - __len =
/ 2,=0A=
__buffer, =
__buffer_size);=0A=
rotate(__begin, __middle, __end);=0A=
advance(__begin, distance(__middle, __end));=0A=
return __begin;=0A=
}=0A=
}=0A=
# 1848 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _ForwardIter, typename _Predicate>=0A=
_ForwardIter=0A=
stable_partition(_ForwardIter __first, _ForwardIter __last,=0A=
_Predicate __pred)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
if (__first =3D=3D __last)=0A=
return __first;=0A=
else=0A=
{=0A=
typedef typename iterator_traits<_ForwardIter>::value_type =
_ValueType;=0A=
typedef typename iterator_traits<_ForwardIter>::difference_type =
_DistanceType;=0A=
=0A=
_Temporary_buffer<_ForwardIter, _ValueType> __buf(__first, =
__last);=0A=
if (__buf.size() > 0)=0A=
return __stable_partition_adaptive(__first, __last, __pred,=0A=
=
_DistanceType(__buf.requested_size()),=0A=
__buf.begin(), =
__buf.size());=0A=
else=0A=
return __inplace_stable_partition(__first, __last, __pred,=0A=
=
_DistanceType(__buf.requested_size()));=0A=
}=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _RandomAccessIter, typename _Tp>=0A=
_RandomAccessIter=0A=
__unguarded_partition(_RandomAccessIter __first, _RandomAccessIter =
__last,=0A=
_Tp __pivot)=0A=
{=0A=
while (true) {=0A=
while (*__first < __pivot)=0A=
++__first;=0A=
--__last;=0A=
while (__pivot < *__last)=0A=
--__last;=0A=
if (!(__first < __last))=0A=
return __first;=0A=
iter_swap(__first, __last);=0A=
++__first;=0A=
}=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _RandomAccessIter, typename _Tp, typename _Compare>=0A=
_RandomAccessIter=0A=
__unguarded_partition(_RandomAccessIter __first, _RandomAccessIter =
__last,=0A=
_Tp __pivot, _Compare __comp)=0A=
{=0A=
while (true) {=0A=
while (__comp(*__first, __pivot))=0A=
++__first;=0A=
--__last;=0A=
while (__comp(__pivot, *__last))=0A=
--__last;=0A=
if (!(__first < __last))=0A=
return __first;=0A=
iter_swap(__first, __last);=0A=
++__first;=0A=
}=0A=
}=0A=
# 1929 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
enum { _M_threshold =3D 16 };=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _RandomAccessIter, typename _Tp>=0A=
void=0A=
__unguarded_linear_insert(_RandomAccessIter __last, _Tp __val)=0A=
{=0A=
_RandomAccessIter __next =3D __last;=0A=
--__next;=0A=
while (__val < *__next) {=0A=
*__last =3D *__next;=0A=
__last =3D __next;=0A=
--__next;=0A=
}=0A=
*__last =3D __val;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _RandomAccessIter, typename _Tp, typename _Compare>=0A=
void=0A=
__unguarded_linear_insert(_RandomAccessIter __last, _Tp __val, =
_Compare __comp)=0A=
{=0A=
_RandomAccessIter __next =3D __last;=0A=
--__next;=0A=
while (__comp(__val, *__next)) {=0A=
*__last =3D *__next;=0A=
__last =3D __next;=0A=
--__next;=0A=
}=0A=
*__last =3D __val;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _RandomAccessIter>=0A=
void=0A=
__insertion_sort(_RandomAccessIter __first, _RandomAccessIter __last)=0A=
{=0A=
if (__first =3D=3D __last) return;=0A=
=0A=
for (_RandomAccessIter __i =3D __first + 1; __i !=3D __last; ++__i)=0A=
{=0A=
typename iterator_traits<_RandomAccessIter>::value_type __val =
=3D *__i;=0A=
if (__val < *__first) {=0A=
copy_backward(__first, __i, __i + 1);=0A=
*__first =3D __val;=0A=
}=0A=
else=0A=
__unguarded_linear_insert(__i, __val);=0A=
}=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _RandomAccessIter, typename _Compare>=0A=
void=0A=
__insertion_sort(_RandomAccessIter __first, _RandomAccessIter __last,=0A=
_Compare __comp)=0A=
{=0A=
if (__first =3D=3D __last) return;=0A=
=0A=
for (_RandomAccessIter __i =3D __first + 1; __i !=3D __last; ++__i)=0A=
{=0A=
typename iterator_traits<_RandomAccessIter>::value_type __val =
=3D *__i;=0A=
if (__comp(__val, *__first)) {=0A=
copy_backward(__first, __i, __i + 1);=0A=
*__first =3D __val;=0A=
}=0A=
else=0A=
__unguarded_linear_insert(__i, __val, __comp);=0A=
}=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _RandomAccessIter>=0A=
inline void=0A=
__unguarded_insertion_sort(_RandomAccessIter __first, =
_RandomAccessIter __last)=0A=
{=0A=
typedef typename iterator_traits<_RandomAccessIter>::value_type =
_ValueType;=0A=
=0A=
for (_RandomAccessIter __i =3D __first; __i !=3D __last; ++__i)=0A=
__unguarded_linear_insert(__i, _ValueType(*__i));=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _RandomAccessIter, typename _Compare>=0A=
inline void=0A=
__unguarded_insertion_sort(_RandomAccessIter __first, =
_RandomAccessIter __last,=0A=
_Compare __comp)=0A=
{=0A=
typedef typename iterator_traits<_RandomAccessIter>::value_type =
_ValueType;=0A=
=0A=
for (_RandomAccessIter __i =3D __first; __i !=3D __last; ++__i)=0A=
__unguarded_linear_insert(__i, _ValueType(*__i), __comp);=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _RandomAccessIter>=0A=
void=0A=
__final_insertion_sort(_RandomAccessIter __first, _RandomAccessIter =
__last)=0A=
{=0A=
if (__last - __first > _M_threshold) {=0A=
__insertion_sort(__first, __first + _M_threshold);=0A=
__unguarded_insertion_sort(__first + _M_threshold, __last);=0A=
}=0A=
else=0A=
__insertion_sort(__first, __last);=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _RandomAccessIter, typename _Compare>=0A=
void=0A=
__final_insertion_sort(_RandomAccessIter __first, _RandomAccessIter =
__last,=0A=
_Compare __comp)=0A=
{=0A=
if (__last - __first > _M_threshold) {=0A=
__insertion_sort(__first, __first + _M_threshold, __comp);=0A=
__unguarded_insertion_sort(__first + _M_threshold, __last, =
__comp);=0A=
}=0A=
else=0A=
__insertion_sort(__first, __last, __comp);=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _Size>=0A=
inline _Size=0A=
__lg(_Size __n)=0A=
{=0A=
_Size __k;=0A=
for (__k =3D 0; __n !=3D 1; __n >>=3D 1) ++__k;=0A=
return __k;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _RandomAccessIter, typename _Size>=0A=
void=0A=
__introsort_loop(_RandomAccessIter __first, _RandomAccessIter __last,=0A=
_Size __depth_limit)=0A=
{=0A=
typedef typename iterator_traits<_RandomAccessIter>::value_type =
_ValueType;=0A=
=0A=
while (__last - __first > _M_threshold) {=0A=
if (__depth_limit =3D=3D 0) {=0A=
partial_sort(__first, __last, __last);=0A=
return;=0A=
}=0A=
--__depth_limit;=0A=
_RandomAccessIter __cut =3D=0A=
__unguarded_partition(__first, __last,=0A=
_ValueType(__median(*__first,=0A=
*(__first + (__last =
- __first)/2),=0A=
*(__last - 1))));=0A=
__introsort_loop(__cut, __last, __depth_limit);=0A=
__last =3D __cut;=0A=
}=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _RandomAccessIter, typename _Size, typename _Compare>=0A=
void=0A=
__introsort_loop(_RandomAccessIter __first, _RandomAccessIter __last,=0A=
_Size __depth_limit, _Compare __comp)=0A=
{=0A=
typedef typename iterator_traits<_RandomAccessIter>::value_type =
_ValueType;=0A=
=0A=
while (__last - __first > _M_threshold) {=0A=
if (__depth_limit =3D=3D 0) {=0A=
partial_sort(__first, __last, __last, __comp);=0A=
return;=0A=
}=0A=
--__depth_limit;=0A=
_RandomAccessIter __cut =3D=0A=
__unguarded_partition(__first, __last,=0A=
_ValueType(__median(*__first,=0A=
*(__first + (__last =
- __first)/2),=0A=
*(__last - 1), =
__comp)),=0A=
__comp);=0A=
__introsort_loop(__cut, __last, __depth_limit, __comp);=0A=
__last =3D __cut;=0A=
}=0A=
}=0A=
# 2166 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _RandomAccessIter>=0A=
inline void=0A=
sort(_RandomAccessIter __first, _RandomAccessIter __last)=0A=
{=0A=
typedef typename iterator_traits<_RandomAccessIter>::value_type =
_ValueType;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
if (__first !=3D __last) {=0A=
__introsort_loop(__first, __last, __lg(__last - __first) * 2);=0A=
__final_insertion_sort(__first, __last);=0A=
}=0A=
}=0A=
# 2197 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _RandomAccessIter, typename _Compare>=0A=
inline void=0A=
sort(_RandomAccessIter __first, _RandomAccessIter __last, _Compare =
__comp)=0A=
{=0A=
typedef typename iterator_traits<_RandomAccessIter>::value_type =
_ValueType;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
if (__first !=3D __last) {=0A=
__introsort_loop(__first, __last, __lg(__last - __first) * 2, =
__comp);=0A=
__final_insertion_sort(__first, __last, __comp);=0A=
}=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _RandomAccessIter>=0A=
void=0A=
__inplace_stable_sort(_RandomAccessIter __first, _RandomAccessIter =
__last)=0A=
{=0A=
if (__last - __first < 15) {=0A=
__insertion_sort(__first, __last);=0A=
return;=0A=
}=0A=
_RandomAccessIter __middle =3D __first + (__last - __first) / 2;=0A=
__inplace_stable_sort(__first, __middle);=0A=
__inplace_stable_sort(__middle, __last);=0A=
__merge_without_buffer(__first, __middle, __last,=0A=
__middle - __first,=0A=
__last - __middle);=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _RandomAccessIter, typename _Compare>=0A=
void=0A=
__inplace_stable_sort(_RandomAccessIter __first, _RandomAccessIter =
__last,=0A=
_Compare __comp)=0A=
{=0A=
if (__last - __first < 15) {=0A=
__insertion_sort(__first, __last, __comp);=0A=
return;=0A=
}=0A=
_RandomAccessIter __middle =3D __first + (__last - __first) / 2;=0A=
__inplace_stable_sort(__first, __middle, __comp);=0A=
__inplace_stable_sort(__middle, __last, __comp);=0A=
__merge_without_buffer(__first, __middle, __last,=0A=
__middle - __first,=0A=
__last - __middle,=0A=
__comp);=0A=
}=0A=
=0A=
template<typename _RandomAccessIter1, typename _RandomAccessIter2,=0A=
typename _Distance>=0A=
void=0A=
__merge_sort_loop(_RandomAccessIter1 __first, _RandomAccessIter1 =
__last,=0A=
_RandomAccessIter2 __result, _Distance __step_size)=0A=
{=0A=
_Distance __two_step =3D 2 * __step_size;=0A=
=0A=
while (__last - __first >=3D __two_step) {=0A=
__result =3D merge(__first, __first + __step_size,=0A=
__first + __step_size, __first + __two_step,=0A=
__result);=0A=
__first +=3D __two_step;=0A=
}=0A=
=0A=
__step_size =3D min(_Distance(__last - __first), __step_size);=0A=
merge(__first, __first + __step_size, __first + __step_size, =
__last,=0A=
__result);=0A=
}=0A=
=0A=
template<typename _RandomAccessIter1, typename _RandomAccessIter2,=0A=
typename _Distance, typename _Compare>=0A=
void=0A=
__merge_sort_loop(_RandomAccessIter1 __first, _RandomAccessIter1 =
__last,=0A=
_RandomAccessIter2 __result, _Distance __step_size,=0A=
_Compare __comp)=0A=
{=0A=
_Distance __two_step =3D 2 * __step_size;=0A=
=0A=
while (__last - __first >=3D __two_step) {=0A=
__result =3D merge(__first, __first + __step_size,=0A=
__first + __step_size, __first + __two_step,=0A=
__result,=0A=
__comp);=0A=
__first +=3D __two_step;=0A=
}=0A=
__step_size =3D min(_Distance(__last - __first), __step_size);=0A=
=0A=
merge(__first, __first + __step_size,=0A=
__first + __step_size, __last,=0A=
__result,=0A=
__comp);=0A=
}=0A=
=0A=
enum { _M_chunk_size =3D 7 };=0A=
=0A=
template<typename _RandomAccessIter, typename _Distance>=0A=
void=0A=
__chunk_insertion_sort(_RandomAccessIter __first, _RandomAccessIter =
__last,=0A=
_Distance __chunk_size)=0A=
{=0A=
while (__last - __first >=3D __chunk_size) {=0A=
__insertion_sort(__first, __first + __chunk_size);=0A=
__first +=3D __chunk_size;=0A=
}=0A=
__insertion_sort(__first, __last);=0A=
}=0A=
=0A=
template<typename _RandomAccessIter, typename _Distance, typename =
_Compare>=0A=
void=0A=
__chunk_insertion_sort(_RandomAccessIter __first, _RandomAccessIter =
__last,=0A=
_Distance __chunk_size, _Compare __comp)=0A=
{=0A=
while (__last - __first >=3D __chunk_size) {=0A=
__insertion_sort(__first, __first + __chunk_size, __comp);=0A=
__first +=3D __chunk_size;=0A=
}=0A=
__insertion_sort(__first, __last, __comp);=0A=
}=0A=
=0A=
template<typename _RandomAccessIter, typename _Pointer>=0A=
void=0A=
__merge_sort_with_buffer(_RandomAccessIter __first, =
_RandomAccessIter __last,=0A=
_Pointer __buffer)=0A=
{=0A=
typedef typename =
iterator_traits<_RandomAccessIter>::difference_type _Distance;=0A=
=0A=
_Distance __len =3D __last - __first;=0A=
_Pointer __buffer_last =3D __buffer + __len;=0A=
=0A=
_Distance __step_size =3D _M_chunk_size;=0A=
__chunk_insertion_sort(__first, __last, __step_size);=0A=
=0A=
while (__step_size < __len) {=0A=
__merge_sort_loop(__first, __last, __buffer, __step_size);=0A=
__step_size *=3D 2;=0A=
__merge_sort_loop(__buffer, __buffer_last, __first, __step_size);=0A=
__step_size *=3D 2;=0A=
}=0A=
}=0A=
=0A=
template<typename _RandomAccessIter, typename _Pointer, typename =
_Compare>=0A=
void=0A=
__merge_sort_with_buffer(_RandomAccessIter __first, =
_RandomAccessIter __last,=0A=
_Pointer __buffer, _Compare __comp)=0A=
{=0A=
typedef typename =
iterator_traits<_RandomAccessIter>::difference_type _Distance;=0A=
=0A=
_Distance __len =3D __last - __first;=0A=
_Pointer __buffer_last =3D __buffer + __len;=0A=
=0A=
_Distance __step_size =3D _M_chunk_size;=0A=
__chunk_insertion_sort(__first, __last, __step_size, __comp);=0A=
=0A=
while (__step_size < __len) {=0A=
__merge_sort_loop(__first, __last, __buffer, __step_size, =
__comp);=0A=
__step_size *=3D 2;=0A=
__merge_sort_loop(__buffer, __buffer_last, __first, __step_size, =
__comp);=0A=
__step_size *=3D 2;=0A=
}=0A=
}=0A=
=0A=
template<typename _RandomAccessIter, typename _Pointer, typename =
_Distance>=0A=
void=0A=
__stable_sort_adaptive(_RandomAccessIter __first, _RandomAccessIter =
__last,=0A=
_Pointer __buffer, _Distance __buffer_size)=0A=
{=0A=
_Distance __len =3D (__last - __first + 1) / 2;=0A=
_RandomAccessIter __middle =3D __first + __len;=0A=
if (__len > __buffer_size) {=0A=
__stable_sort_adaptive(__first, __middle, __buffer, =
__buffer_size);=0A=
__stable_sort_adaptive(__middle, __last, __buffer, =
__buffer_size);=0A=
}=0A=
else {=0A=
__merge_sort_with_buffer(__first, __middle, __buffer);=0A=
__merge_sort_with_buffer(__middle, __last, __buffer);=0A=
}=0A=
__merge_adaptive(__first, __middle, __last, _Distance(__middle - =
__first),=0A=
_Distance(__last - __middle), __buffer, =
__buffer_size);=0A=
}=0A=
=0A=
template<typename _RandomAccessIter, typename _Pointer, typename =
_Distance,=0A=
typename _Compare>=0A=
void=0A=
__stable_sort_adaptive(_RandomAccessIter __first, _RandomAccessIter =
__last,=0A=
_Pointer __buffer, _Distance __buffer_size,=0A=
_Compare __comp)=0A=
{=0A=
_Distance __len =3D (__last - __first + 1) / 2;=0A=
_RandomAccessIter __middle =3D __first + __len;=0A=
if (__len > __buffer_size) {=0A=
__stable_sort_adaptive(__first, __middle, __buffer, =
__buffer_size,=0A=
__comp);=0A=
__stable_sort_adaptive(__middle, __last, __buffer, __buffer_size,=0A=
__comp);=0A=
}=0A=
else {=0A=
__merge_sort_with_buffer(__first, __middle, __buffer, __comp);=0A=
__merge_sort_with_buffer(__middle, __last, __buffer, __comp);=0A=
}=0A=
__merge_adaptive(__first, __middle, __last, _Distance(__middle - =
__first),=0A=
_Distance(__last - __middle), __buffer, =
__buffer_size,=0A=
__comp);=0A=
}=0A=
# 2430 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _RandomAccessIter>=0A=
inline void=0A=
stable_sort(_RandomAccessIter __first, _RandomAccessIter __last)=0A=
{=0A=
typedef typename iterator_traits<_RandomAccessIter>::value_type =
_ValueType;=0A=
typedef typename =
iterator_traits<_RandomAccessIter>::difference_type _DistanceType;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
_Temporary_buffer<_RandomAccessIter, _ValueType> buf(__first, =
__last);=0A=
if (buf.begin() =3D=3D 0)=0A=
__inplace_stable_sort(__first, __last);=0A=
else=0A=
__stable_sort_adaptive(__first, __last, buf.begin(), =
_DistanceType(buf.size()));=0A=
}=0A=
# 2466 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _RandomAccessIter, typename _Compare>=0A=
inline void=0A=
stable_sort(_RandomAccessIter __first, _RandomAccessIter __last, =
_Compare __comp)=0A=
{=0A=
typedef typename iterator_traits<_RandomAccessIter>::value_type =
_ValueType;=0A=
typedef typename =
iterator_traits<_RandomAccessIter>::difference_type _DistanceType;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
_Temporary_buffer<_RandomAccessIter, _ValueType> buf(__first, =
__last);=0A=
if (buf.begin() =3D=3D 0)=0A=
__inplace_stable_sort(__first, __last, __comp);=0A=
else=0A=
__stable_sort_adaptive(__first, __last, buf.begin(), =
_DistanceType(buf.size()),=0A=
__comp);=0A=
}=0A=
# 2502 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _RandomAccessIter>=0A=
void=0A=
partial_sort(_RandomAccessIter __first,=0A=
_RandomAccessIter __middle,=0A=
_RandomAccessIter __last)=0A=
{=0A=
typedef typename iterator_traits<_RandomAccessIter>::value_type =
_ValueType;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
make_heap(__first, __middle);=0A=
for (_RandomAccessIter __i =3D __middle; __i < __last; ++__i)=0A=
if (*__i < *__first)=0A=
__pop_heap(__first, __middle, __i, _ValueType(*__i));=0A=
sort_heap(__first, __middle);=0A=
}=0A=
# 2540 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _RandomAccessIter, typename _Compare>=0A=
void=0A=
partial_sort(_RandomAccessIter __first,=0A=
_RandomAccessIter __middle,=0A=
_RandomAccessIter __last,=0A=
_Compare __comp)=0A=
{=0A=
typedef typename iterator_traits<_RandomAccessIter>::value_type =
_ValueType;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
make_heap(__first, __middle, __comp);=0A=
for (_RandomAccessIter __i =3D __middle; __i < __last; ++__i)=0A=
if (__comp(*__i, *__first))=0A=
__pop_heap(__first, __middle, __i, _ValueType(*__i), __comp);=0A=
sort_heap(__first, __middle, __comp);=0A=
}=0A=
# 2579 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _InputIter, typename _RandomAccessIter>=0A=
_RandomAccessIter=0A=
partial_sort_copy(_InputIter __first, _InputIter __last,=0A=
_RandomAccessIter __result_first,=0A=
_RandomAccessIter __result_last)=0A=
{=0A=
typedef typename iterator_traits<_InputIter>::value_type =
_InputValueType;=0A=
typedef typename iterator_traits<_RandomAccessIter>::value_type =
_OutputValueType;=0A=
typedef typename =
iterator_traits<_RandomAccessIter>::difference_type _DistanceType;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
if (__result_first =3D=3D __result_last) return __result_last;=0A=
_RandomAccessIter __result_real_last =3D __result_first;=0A=
while(__first !=3D __last && __result_real_last !=3D =
__result_last) {=0A=
*__result_real_last =3D *__first;=0A=
++__result_real_last;=0A=
++__first;=0A=
}=0A=
make_heap(__result_first, __result_real_last);=0A=
while (__first !=3D __last) {=0A=
if (*__first < *__result_first)=0A=
__adjust_heap(__result_first, _DistanceType(0),=0A=
_DistanceType(__result_real_last - =
__result_first),=0A=
_InputValueType(*__first));=0A=
++__first;=0A=
}=0A=
sort_heap(__result_first, __result_real_last);=0A=
return __result_real_last;=0A=
}=0A=
# 2633 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _InputIter, typename _RandomAccessIter, typename =
_Compare>=0A=
_RandomAccessIter=0A=
partial_sort_copy(_InputIter __first, _InputIter __last,=0A=
_RandomAccessIter __result_first,=0A=
_RandomAccessIter __result_last,=0A=
_Compare __comp)=0A=
{=0A=
typedef typename iterator_traits<_InputIter>::value_type =
_InputValueType;=0A=
typedef typename iterator_traits<_RandomAccessIter>::value_type =
_OutputValueType;=0A=
typedef typename =
iterator_traits<_RandomAccessIter>::difference_type _DistanceType;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
if (__result_first =3D=3D __result_last) return __result_last;=0A=
_RandomAccessIter __result_real_last =3D __result_first;=0A=
while(__first !=3D __last && __result_real_last !=3D =
__result_last) {=0A=
*__result_real_last =3D *__first;=0A=
++__result_real_last;=0A=
++__first;=0A=
}=0A=
make_heap(__result_first, __result_real_last, __comp);=0A=
while (__first !=3D __last) {=0A=
if (__comp(*__first, *__result_first))=0A=
__adjust_heap(__result_first, _DistanceType(0),=0A=
_DistanceType(__result_real_last - =
__result_first),=0A=
_InputValueType(*__first),=0A=
__comp);=0A=
++__first;=0A=
}=0A=
sort_heap(__result_first, __result_real_last, __comp);=0A=
return __result_real_last;=0A=
}=0A=
# 2686 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _RandomAccessIter>=0A=
void=0A=
nth_element(_RandomAccessIter __first,=0A=
_RandomAccessIter __nth,=0A=
_RandomAccessIter __last)=0A=
{=0A=
typedef typename iterator_traits<_RandomAccessIter>::value_type =
_ValueType;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
while (__last - __first > 3) {=0A=
_RandomAccessIter __cut =3D=0A=
__unguarded_partition(__first, __last,=0A=
_ValueType(__median(*__first,=0A=
*(__first + (__last =
- __first)/2),=0A=
*(__last - 1))));=0A=
if (__cut <=3D __nth)=0A=
__first =3D __cut;=0A=
else=0A=
__last =3D __cut;=0A=
}=0A=
__insertion_sort(__first, __last);=0A=
}=0A=
# 2728 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _RandomAccessIter, typename _Compare>=0A=
void=0A=
nth_element(_RandomAccessIter __first,=0A=
_RandomAccessIter __nth,=0A=
_RandomAccessIter __last,=0A=
_Compare __comp)=0A=
{=0A=
typedef typename iterator_traits<_RandomAccessIter>::value_type =
_ValueType;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
while (__last - __first > 3) {=0A=
_RandomAccessIter __cut =3D=0A=
__unguarded_partition(__first, __last,=0A=
_ValueType(__median(*__first,=0A=
*(__first + (__last =
- __first)/2),=0A=
*(__last - 1),=0A=
__comp)),=0A=
__comp);=0A=
if (__cut <=3D __nth)=0A=
__first =3D __cut;=0A=
else=0A=
__last =3D __cut;=0A=
}=0A=
__insertion_sort(__first, __last, __comp);=0A=
}=0A=
# 2768 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _ForwardIter, typename _Tp>=0A=
_ForwardIter=0A=
lower_bound(_ForwardIter __first, _ForwardIter __last, const _Tp& =
__val)=0A=
{=0A=
typedef typename iterator_traits<_ForwardIter>::value_type =
_ValueType;=0A=
typedef typename iterator_traits<_ForwardIter>::difference_type =
_DistanceType;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
_DistanceType __len =3D distance(__first, __last);=0A=
_DistanceType __half;=0A=
_ForwardIter __middle;=0A=
=0A=
while (__len > 0) {=0A=
__half =3D __len >> 1;=0A=
__middle =3D __first;=0A=
advance(__middle, __half);=0A=
if (*__middle < __val) {=0A=
__first =3D __middle;=0A=
++__first;=0A=
__len =3D __len - __half - 1;=0A=
}=0A=
else=0A=
__len =3D __half;=0A=
}=0A=
return __first;=0A=
}=0A=
# 2816 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _ForwardIter, typename _Tp, typename _Compare>=0A=
_ForwardIter=0A=
lower_bound(_ForwardIter __first, _ForwardIter __last,=0A=
const _Tp& __val, _Compare __comp)=0A=
{=0A=
typedef typename iterator_traits<_ForwardIter>::value_type =
_ValueType;=0A=
typedef typename iterator_traits<_ForwardIter>::difference_type =
_DistanceType;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
_DistanceType __len =3D distance(__first, __last);=0A=
_DistanceType __half;=0A=
_ForwardIter __middle;=0A=
=0A=
while (__len > 0) {=0A=
__half =3D __len >> 1;=0A=
__middle =3D __first;=0A=
advance(__middle, __half);=0A=
if (__comp(*__middle, __val)) {=0A=
__first =3D __middle;=0A=
++__first;=0A=
__len =3D __len - __half - 1;=0A=
}=0A=
else=0A=
__len =3D __half;=0A=
}=0A=
return __first;=0A=
}=0A=
# 2856 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _ForwardIter, typename _Tp>=0A=
_ForwardIter=0A=
upper_bound(_ForwardIter __first, _ForwardIter __last, const _Tp& =
__val)=0A=
{=0A=
typedef typename iterator_traits<_ForwardIter>::value_type =
_ValueType;=0A=
typedef typename iterator_traits<_ForwardIter>::difference_type =
_DistanceType;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
_DistanceType __len =3D distance(__first, __last);=0A=
_DistanceType __half;=0A=
_ForwardIter __middle;=0A=
=0A=
while (__len > 0) {=0A=
__half =3D __len >> 1;=0A=
__middle =3D __first;=0A=
advance(__middle, __half);=0A=
if (__val < *__middle)=0A=
__len =3D __half;=0A=
else {=0A=
__first =3D __middle;=0A=
++__first;=0A=
__len =3D __len - __half - 1;=0A=
}=0A=
}=0A=
return __first;=0A=
}=0A=
# 2901 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _ForwardIter, typename _Tp, typename _Compare>=0A=
_ForwardIter=0A=
upper_bound(_ForwardIter __first, _ForwardIter __last,=0A=
const _Tp& __val, _Compare __comp)=0A=
{=0A=
typedef typename iterator_traits<_ForwardIter>::value_type =
_ValueType;=0A=
typedef typename iterator_traits<_ForwardIter>::difference_type =
_DistanceType;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
_DistanceType __len =3D distance(__first, __last);=0A=
_DistanceType __half;=0A=
_ForwardIter __middle;=0A=
=0A=
while (__len > 0) {=0A=
__half =3D __len >> 1;=0A=
__middle =3D __first;=0A=
advance(__middle, __half);=0A=
if (__comp(__val, *__middle))=0A=
__len =3D __half;=0A=
else {=0A=
__first =3D __middle;=0A=
++__first;=0A=
__len =3D __len - __half - 1;=0A=
}=0A=
}=0A=
return __first;=0A=
}=0A=
# 2948 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _ForwardIter, typename _Tp>=0A=
pair<_ForwardIter, _ForwardIter>=0A=
equal_range(_ForwardIter __first, _ForwardIter __last, const _Tp& =
__val)=0A=
{=0A=
typedef typename iterator_traits<_ForwardIter>::value_type =
_ValueType;=0A=
typedef typename iterator_traits<_ForwardIter>::difference_type =
_DistanceType;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
_DistanceType __len =3D distance(__first, __last);=0A=
_DistanceType __half;=0A=
_ForwardIter __middle, __left, __right;=0A=
=0A=
while (__len > 0) {=0A=
__half =3D __len >> 1;=0A=
__middle =3D __first;=0A=
advance(__middle, __half);=0A=
if (*__middle < __val) {=0A=
__first =3D __middle;=0A=
++__first;=0A=
__len =3D __len - __half - 1;=0A=
}=0A=
else if (__val < *__middle)=0A=
__len =3D __half;=0A=
else {=0A=
__left =3D lower_bound(__first, __middle, __val);=0A=
advance(__first, __len);=0A=
__right =3D upper_bound(++__middle, __first, __val);=0A=
return pair<_ForwardIter, _ForwardIter>(__left, __right);=0A=
}=0A=
}=0A=
return pair<_ForwardIter, _ForwardIter>(__first, __first);=0A=
}=0A=
# 3003 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _ForwardIter, typename _Tp, typename _Compare>=0A=
pair<_ForwardIter, _ForwardIter>=0A=
equal_range(_ForwardIter __first, _ForwardIter __last, const _Tp& =
__val,=0A=
_Compare __comp)=0A=
{=0A=
typedef typename iterator_traits<_ForwardIter>::value_type =
_ValueType;=0A=
typedef typename iterator_traits<_ForwardIter>::difference_type =
_DistanceType;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
_DistanceType __len =3D distance(__first, __last);=0A=
_DistanceType __half;=0A=
_ForwardIter __middle, __left, __right;=0A=
=0A=
while (__len > 0) {=0A=
__half =3D __len >> 1;=0A=
__middle =3D __first;=0A=
advance(__middle, __half);=0A=
if (__comp(*__middle, __val)) {=0A=
__first =3D __middle;=0A=
++__first;=0A=
__len =3D __len - __half - 1;=0A=
}=0A=
else if (__comp(__val, *__middle))=0A=
__len =3D __half;=0A=
else {=0A=
__left =3D lower_bound(__first, __middle, __val, __comp);=0A=
advance(__first, __len);=0A=
__right =3D upper_bound(++__middle, __first, __val, __comp);=0A=
return pair<_ForwardIter, _ForwardIter>(__left, __right);=0A=
}=0A=
}=0A=
return pair<_ForwardIter, _ForwardIter>(__first, __first);=0A=
}=0A=
# 3052 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _ForwardIter, typename _Tp>=0A=
bool=0A=
binary_search(_ForwardIter __first, _ForwardIter __last,=0A=
const _Tp& __val)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
_ForwardIter __i =3D lower_bound(__first, __last, __val);=0A=
return __i !=3D __last && !(__val < *__i);=0A=
}=0A=
# 3083 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _ForwardIter, typename _Tp, typename _Compare>=0A=
bool=0A=
binary_search(_ForwardIter __first, _ForwardIter __last,=0A=
const _Tp& __val, _Compare __comp)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
_ForwardIter __i =3D lower_bound(__first, __last, __val, __comp);=0A=
return __i !=3D __last && !__comp(__val, *__i);=0A=
}=0A=
# 3115 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _InputIter1, typename _InputIter2, typename =
_OutputIter>=0A=
_OutputIter=0A=
merge(_InputIter1 __first1, _InputIter1 __last1,=0A=
_InputIter2 __first2, _InputIter2 __last2,=0A=
_OutputIter __result)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
while (__first1 !=3D __last1 && __first2 !=3D __last2) {=0A=
if (*__first2 < *__first1) {=0A=
*__result =3D *__first2;=0A=
++__first2;=0A=
}=0A=
else {=0A=
*__result =3D *__first1;=0A=
++__first1;=0A=
}=0A=
++__result;=0A=
}=0A=
return copy(__first2, __last2, copy(__first1, __last1, __result));=0A=
}=0A=
# 3166 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _InputIter1, typename _InputIter2, typename =
_OutputIter,=0A=
typename _Compare>=0A=
_OutputIter=0A=
merge(_InputIter1 __first1, _InputIter1 __last1,=0A=
_InputIter2 __first2, _InputIter2 __last2,=0A=
_OutputIter __result, _Compare __comp)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
while (__first1 !=3D __last1 && __first2 !=3D __last2) {=0A=
if (__comp(*__first2, *__first1)) {=0A=
*__result =3D *__first2;=0A=
++__first2;=0A=
}=0A=
else {=0A=
*__result =3D *__first1;=0A=
++__first1;=0A=
}=0A=
++__result;=0A=
}=0A=
return copy(__first2, __last2, copy(__first1, __last1, __result));=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _BidirectionalIter, typename _Distance>=0A=
void=0A=
__merge_without_buffer(_BidirectionalIter __first,=0A=
_BidirectionalIter __middle,=0A=
_BidirectionalIter __last,=0A=
_Distance __len1, _Distance __len2)=0A=
{=0A=
if (__len1 =3D=3D 0 || __len2 =3D=3D 0)=0A=
return;=0A=
if (__len1 + __len2 =3D=3D 2) {=0A=
if (*__middle < *__first)=0A=
iter_swap(__first, __middle);=0A=
return;=0A=
}=0A=
_BidirectionalIter __first_cut =3D __first;=0A=
_BidirectionalIter __second_cut =3D __middle;=0A=
_Distance __len11 =3D 0;=0A=
_Distance __len22 =3D 0;=0A=
if (__len1 > __len2) {=0A=
__len11 =3D __len1 / 2;=0A=
advance(__first_cut, __len11);=0A=
__second_cut =3D lower_bound(__middle, __last, *__first_cut);=0A=
__len22 =3D distance(__middle, __second_cut);=0A=
}=0A=
else {=0A=
__len22 =3D __len2 / 2;=0A=
advance(__second_cut, __len22);=0A=
__first_cut =3D upper_bound(__first, __middle, *__second_cut);=0A=
__len11 =3D distance(__first, __first_cut);=0A=
}=0A=
rotate(__first_cut, __middle, __second_cut);=0A=
_BidirectionalIter __new_middle =3D __first_cut;=0A=
advance(__new_middle, distance(__middle, __second_cut));=0A=
__merge_without_buffer(__first, __first_cut, __new_middle,=0A=
__len11, __len22);=0A=
__merge_without_buffer(__new_middle, __second_cut, __last,=0A=
__len1 - __len11, __len2 - __len22);=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _BidirectionalIter, typename _Distance, typename =
_Compare>=0A=
void=0A=
__merge_without_buffer(_BidirectionalIter __first,=0A=
_BidirectionalIter __middle,=0A=
_BidirectionalIter __last,=0A=
_Distance __len1, _Distance __len2,=0A=
_Compare __comp)=0A=
{=0A=
if (__len1 =3D=3D 0 || __len2 =3D=3D 0)=0A=
return;=0A=
if (__len1 + __len2 =3D=3D 2) {=0A=
if (__comp(*__middle, *__first))=0A=
iter_swap(__first, __middle);=0A=
return;=0A=
}=0A=
_BidirectionalIter __first_cut =3D __first;=0A=
_BidirectionalIter __second_cut =3D __middle;=0A=
_Distance __len11 =3D 0;=0A=
_Distance __len22 =3D 0;=0A=
if (__len1 > __len2) {=0A=
__len11 =3D __len1 / 2;=0A=
advance(__first_cut, __len11);=0A=
__second_cut =3D lower_bound(__middle, __last, *__first_cut, =
__comp);=0A=
__len22 =3D distance(__middle, __second_cut);=0A=
}=0A=
else {=0A=
__len22 =3D __len2 / 2;=0A=
advance(__second_cut, __len22);=0A=
__first_cut =3D upper_bound(__first, __middle, *__second_cut, =
__comp);=0A=
__len11 =3D distance(__first, __first_cut);=0A=
}=0A=
rotate(__first_cut, __middle, __second_cut);=0A=
_BidirectionalIter __new_middle =3D __first_cut;=0A=
advance(__new_middle, distance(__middle, __second_cut));=0A=
__merge_without_buffer(__first, __first_cut, __new_middle,=0A=
__len11, __len22, __comp);=0A=
__merge_without_buffer(__new_middle, __second_cut, __last,=0A=
__len1 - __len11, __len2 - __len22, __comp);=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _BidirectionalIter1, typename _BidirectionalIter2,=0A=
typename _Distance>=0A=
_BidirectionalIter1=0A=
__rotate_adaptive(_BidirectionalIter1 __first,=0A=
_BidirectionalIter1 __middle,=0A=
_BidirectionalIter1 __last,=0A=
_Distance __len1, _Distance __len2,=0A=
_BidirectionalIter2 __buffer,=0A=
_Distance __buffer_size)=0A=
{=0A=
_BidirectionalIter2 __buffer_end;=0A=
if (__len1 > __len2 && __len2 <=3D __buffer_size) {=0A=
__buffer_end =3D copy(__middle, __last, __buffer);=0A=
copy_backward(__first, __middle, __last);=0A=
return copy(__buffer, __buffer_end, __first);=0A=
}=0A=
else if (__len1 <=3D __buffer_size) {=0A=
__buffer_end =3D copy(__first, __middle, __buffer);=0A=
copy(__middle, __last, __first);=0A=
return copy_backward(__buffer, __buffer_end, __last);=0A=
}=0A=
else {=0A=
rotate(__first, __middle, __last);=0A=
advance(__first, distance(__middle, __last));=0A=
return __first;=0A=
}=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _BidirectionalIter1, typename _BidirectionalIter2,=0A=
typename _BidirectionalIter3>=0A=
_BidirectionalIter3=0A=
__merge_backward(_BidirectionalIter1 __first1, _BidirectionalIter1 =
__last1,=0A=
_BidirectionalIter2 __first2, _BidirectionalIter2 =
__last2,=0A=
_BidirectionalIter3 __result)=0A=
{=0A=
if (__first1 =3D=3D __last1)=0A=
return copy_backward(__first2, __last2, __result);=0A=
if (__first2 =3D=3D __last2)=0A=
return copy_backward(__first1, __last1, __result);=0A=
--__last1;=0A=
--__last2;=0A=
while (true) {=0A=
if (*__last2 < *__last1) {=0A=
*--__result =3D *__last1;=0A=
if (__first1 =3D=3D __last1)=0A=
return copy_backward(__first2, ++__last2, __result);=0A=
--__last1;=0A=
}=0A=
else {=0A=
*--__result =3D *__last2;=0A=
if (__first2 =3D=3D __last2)=0A=
return copy_backward(__first1, ++__last1, __result);=0A=
--__last2;=0A=
}=0A=
}=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _BidirectionalIter1, typename _BidirectionalIter2,=0A=
typename _BidirectionalIter3, typename _Compare>=0A=
_BidirectionalIter3=0A=
__merge_backward(_BidirectionalIter1 __first1, _BidirectionalIter1 =
__last1,=0A=
_BidirectionalIter2 __first2, _BidirectionalIter2 =
__last2,=0A=
_BidirectionalIter3 __result,=0A=
_Compare __comp)=0A=
{=0A=
if (__first1 =3D=3D __last1)=0A=
return copy_backward(__first2, __last2, __result);=0A=
if (__first2 =3D=3D __last2)=0A=
return copy_backward(__first1, __last1, __result);=0A=
--__last1;=0A=
--__last2;=0A=
while (true) {=0A=
if (__comp(*__last2, *__last1)) {=0A=
*--__result =3D *__last1;=0A=
if (__first1 =3D=3D __last1)=0A=
return copy_backward(__first2, ++__last2, __result);=0A=
--__last1;=0A=
}=0A=
else {=0A=
*--__result =3D *__last2;=0A=
if (__first2 =3D=3D __last2)=0A=
return copy_backward(__first1, ++__last1, __result);=0A=
--__last2;=0A=
}=0A=
}=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _BidirectionalIter, typename _Distance, typename =
_Pointer>=0A=
void=0A=
__merge_adaptive(_BidirectionalIter __first,=0A=
_BidirectionalIter __middle,=0A=
_BidirectionalIter __last,=0A=
_Distance __len1, _Distance __len2,=0A=
_Pointer __buffer, _Distance __buffer_size)=0A=
{=0A=
if (__len1 <=3D __len2 && __len1 <=3D __buffer_size) {=0A=
_Pointer __buffer_end =3D copy(__first, __middle, __buffer);=0A=
merge(__buffer, __buffer_end, __middle, __last, __first);=0A=
}=0A=
else if (__len2 <=3D __buffer_size) {=0A=
_Pointer __buffer_end =3D copy(__middle, __last, __buffer);=0A=
__merge_backward(__first, __middle, __buffer, __buffer_end, =
__last);=0A=
}=0A=
else {=0A=
_BidirectionalIter __first_cut =3D __first;=0A=
_BidirectionalIter __second_cut =3D __middle;=0A=
_Distance __len11 =3D 0;=0A=
_Distance __len22 =3D 0;=0A=
if (__len1 > __len2) {=0A=
__len11 =3D __len1 / 2;=0A=
advance(__first_cut, __len11);=0A=
__second_cut =3D lower_bound(__middle, __last, =
*__first_cut);=0A=
__len22 =3D distance(__middle, __second_cut);=0A=
}=0A=
else {=0A=
__len22 =3D __len2 / 2;=0A=
advance(__second_cut, __len22);=0A=
__first_cut =3D upper_bound(__first, __middle, =
*__second_cut);=0A=
__len11 =3D distance(__first, __first_cut);=0A=
}=0A=
_BidirectionalIter __new_middle =3D=0A=
__rotate_adaptive(__first_cut, __middle, __second_cut,=0A=
__len1 - __len11, __len22, __buffer,=0A=
__buffer_size);=0A=
__merge_adaptive(__first, __first_cut, __new_middle, __len11,=0A=
__len22, __buffer, __buffer_size);=0A=
__merge_adaptive(__new_middle, __second_cut, __last, __len1 =
- __len11,=0A=
__len2 - __len22, __buffer, __buffer_size);=0A=
}=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _BidirectionalIter, typename _Distance, typename =
_Pointer,=0A=
typename _Compare>=0A=
void=0A=
__merge_adaptive(_BidirectionalIter __first,=0A=
_BidirectionalIter __middle,=0A=
_BidirectionalIter __last,=0A=
_Distance __len1, _Distance __len2,=0A=
_Pointer __buffer, _Distance __buffer_size,=0A=
_Compare __comp)=0A=
{=0A=
if (__len1 <=3D __len2 && __len1 <=3D __buffer_size) {=0A=
_Pointer __buffer_end =3D copy(__first, __middle, __buffer);=0A=
merge(__buffer, __buffer_end, __middle, __last, __first, =
__comp);=0A=
}=0A=
else if (__len2 <=3D __buffer_size) {=0A=
_Pointer __buffer_end =3D copy(__middle, __last, __buffer);=0A=
__merge_backward(__first, __middle, __buffer, __buffer_end, =
__last,=0A=
__comp);=0A=
}=0A=
else {=0A=
_BidirectionalIter __first_cut =3D __first;=0A=
_BidirectionalIter __second_cut =3D __middle;=0A=
_Distance __len11 =3D 0;=0A=
_Distance __len22 =3D 0;=0A=
if (__len1 > __len2) {=0A=
__len11 =3D __len1 / 2;=0A=
advance(__first_cut, __len11);=0A=
__second_cut =3D lower_bound(__middle, __last, =
*__first_cut, __comp);=0A=
__len22 =3D distance(__middle, __second_cut);=0A=
}=0A=
else {=0A=
__len22 =3D __len2 / 2;=0A=
advance(__second_cut, __len22);=0A=
__first_cut =3D upper_bound(__first, __middle, =
*__second_cut, __comp);=0A=
__len11 =3D distance(__first, __first_cut);=0A=
}=0A=
_BidirectionalIter __new_middle =3D=0A=
__rotate_adaptive(__first_cut, __middle, __second_cut,=0A=
__len1 - __len11, __len22, __buffer,=0A=
__buffer_size);=0A=
__merge_adaptive(__first, __first_cut, __new_middle, __len11,=0A=
__len22, __buffer, __buffer_size, __comp);=0A=
__merge_adaptive(__new_middle, __second_cut, __last, __len1 =
- __len11,=0A=
__len2 - __len22, __buffer, __buffer_size, =
__comp);=0A=
}=0A=
}=0A=
# 3508 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _BidirectionalIter>=0A=
void=0A=
inplace_merge(_BidirectionalIter __first,=0A=
_BidirectionalIter __middle,=0A=
_BidirectionalIter __last)=0A=
{=0A=
typedef typename iterator_traits<_BidirectionalIter>::value_type=0A=
_ValueType;=0A=
typedef typename =
iterator_traits<_BidirectionalIter>::difference_type=0A=
_DistanceType;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
if (__first =3D=3D __middle || __middle =3D=3D __last)=0A=
return;=0A=
=0A=
_DistanceType __len1 =3D distance(__first, __middle);=0A=
_DistanceType __len2 =3D distance(__middle, __last);=0A=
=0A=
_Temporary_buffer<_BidirectionalIter, _ValueType> __buf(__first, =
__last);=0A=
if (__buf.begin() =3D=3D 0)=0A=
__merge_without_buffer(__first, __middle, __last, __len1, =
__len2);=0A=
else=0A=
__merge_adaptive(__first, __middle, __last, __len1, __len2,=0A=
__buf.begin(), _DistanceType(__buf.size()));=0A=
}=0A=
# 3559 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _BidirectionalIter, typename _Compare>=0A=
void=0A=
inplace_merge(_BidirectionalIter __first,=0A=
_BidirectionalIter __middle,=0A=
_BidirectionalIter __last,=0A=
_Compare __comp)=0A=
{=0A=
typedef typename iterator_traits<_BidirectionalIter>::value_type=0A=
_ValueType;=0A=
typedef typename =
iterator_traits<_BidirectionalIter>::difference_type=0A=
_DistanceType;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
if (__first =3D=3D __middle || __middle =3D=3D __last)=0A=
return;=0A=
=0A=
_DistanceType __len1 =3D distance(__first, __middle);=0A=
_DistanceType __len2 =3D distance(__middle, __last);=0A=
=0A=
_Temporary_buffer<_BidirectionalIter, _ValueType> __buf(__first, =
__last);=0A=
if (__buf.begin() =3D=3D 0)=0A=
__merge_without_buffer(__first, __middle, __last, __len1, =
__len2, __comp);=0A=
else=0A=
__merge_adaptive(__first, __middle, __last, __len1, __len2,=0A=
__buf.begin(), _DistanceType(__buf.size()),=0A=
__comp);=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _InputIter1, typename _InputIter2>=0A=
bool=0A=
includes(_InputIter1 __first1, _InputIter1 __last1,=0A=
_InputIter2 __first2, _InputIter2 __last2)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
while (__first1 !=3D __last1 && __first2 !=3D __last2)=0A=
if (*__first2 < *__first1)=0A=
return false;=0A=
else if(*__first1 < *__first2)=0A=
++__first1;=0A=
else=0A=
++__first1, ++__first2;=0A=
=0A=
return __first2 =3D=3D __last2;=0A=
}=0A=
=0A=
template<typename _InputIter1, typename _InputIter2, typename _Compare>=0A=
bool=0A=
includes(_InputIter1 __first1, _InputIter1 __last1,=0A=
_InputIter2 __first2, _InputIter2 __last2, _Compare __comp)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
while (__first1 !=3D __last1 && __first2 !=3D __last2)=0A=
if (__comp(*__first2, *__first1))=0A=
return false;=0A=
else if(__comp(*__first1, *__first2))=0A=
++__first1;=0A=
else=0A=
++__first1, ++__first2;=0A=
=0A=
return __first2 =3D=3D __last2;=0A=
}=0A=
=0A=
template<typename _InputIter1, typename _InputIter2, typename =
_OutputIter>=0A=
_OutputIter=0A=
set_union(_InputIter1 __first1, _InputIter1 __last1,=0A=
_InputIter2 __first2, _InputIter2 __last2,=0A=
_OutputIter __result)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
while (__first1 !=3D __last1 && __first2 !=3D __last2) {=0A=
if (*__first1 < *__first2) {=0A=
*__result =3D *__first1;=0A=
++__first1;=0A=
}=0A=
else if (*__first2 < *__first1) {=0A=
*__result =3D *__first2;=0A=
++__first2;=0A=
}=0A=
else {=0A=
*__result =3D *__first1;=0A=
++__first1;=0A=
++__first2;=0A=
}=0A=
++__result;=0A=
}=0A=
return copy(__first2, __last2, copy(__first1, __last1, __result));=0A=
}=0A=
=0A=
template<typename _InputIter1, typename _InputIter2, typename =
_OutputIter,=0A=
typename _Compare>=0A=
_OutputIter=0A=
set_union(_InputIter1 __first1, _InputIter1 __last1,=0A=
_InputIter2 __first2, _InputIter2 __last2,=0A=
_OutputIter __result, _Compare __comp)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
while (__first1 !=3D __last1 && __first2 !=3D __last2) {=0A=
if (__comp(*__first1, *__first2)) {=0A=
*__result =3D *__first1;=0A=
++__first1;=0A=
}=0A=
else if (__comp(*__first2, *__first1)) {=0A=
*__result =3D *__first2;=0A=
++__first2;=0A=
}=0A=
else {=0A=
*__result =3D *__first1;=0A=
++__first1;=0A=
++__first2;=0A=
}=0A=
++__result;=0A=
}=0A=
return copy(__first2, __last2, copy(__first1, __last1, __result));=0A=
}=0A=
=0A=
template<typename _InputIter1, typename _InputIter2, typename =
_OutputIter>=0A=
_OutputIter=0A=
set_intersection(_InputIter1 __first1, _InputIter1 __last1,=0A=
_InputIter2 __first2, _InputIter2 __last2,=0A=
_OutputIter __result)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
while (__first1 !=3D __last1 && __first2 !=3D __last2)=0A=
if (*__first1 < *__first2)=0A=
++__first1;=0A=
else if (*__first2 < *__first1)=0A=
++__first2;=0A=
else {=0A=
*__result =3D *__first1;=0A=
++__first1;=0A=
++__first2;=0A=
++__result;=0A=
}=0A=
return __result;=0A=
}=0A=
=0A=
template<typename _InputIter1, typename _InputIter2, typename =
_OutputIter,=0A=
typename _Compare>=0A=
_OutputIter=0A=
set_intersection(_InputIter1 __first1, _InputIter1 __last1,=0A=
_InputIter2 __first2, _InputIter2 __last2,=0A=
_OutputIter __result, _Compare __comp)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
while (__first1 !=3D __last1 && __first2 !=3D __last2)=0A=
if (__comp(*__first1, *__first2))=0A=
++__first1;=0A=
else if (__comp(*__first2, *__first1))=0A=
++__first2;=0A=
else {=0A=
*__result =3D *__first1;=0A=
++__first1;=0A=
++__first2;=0A=
++__result;=0A=
}=0A=
return __result;=0A=
}=0A=
=0A=
template<typename _InputIter1, typename _InputIter2, typename =
_OutputIter>=0A=
_OutputIter=0A=
set_difference(_InputIter1 __first1, _InputIter1 __last1,=0A=
_InputIter2 __first2, _InputIter2 __last2,=0A=
_OutputIter __result)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
while (__first1 !=3D __last1 && __first2 !=3D __last2)=0A=
if (*__first1 < *__first2) {=0A=
*__result =3D *__first1;=0A=
++__first1;=0A=
++__result;=0A=
}=0A=
else if (*__first2 < *__first1)=0A=
++__first2;=0A=
else {=0A=
++__first1;=0A=
++__first2;=0A=
}=0A=
return copy(__first1, __last1, __result);=0A=
}=0A=
=0A=
template<typename _InputIter1, typename _InputIter2, typename =
_OutputIter,=0A=
typename _Compare>=0A=
_OutputIter=0A=
set_difference(_InputIter1 __first1, _InputIter1 __last1,=0A=
_InputIter2 __first2, _InputIter2 __last2,=0A=
_OutputIter __result, _Compare __comp)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
while (__first1 !=3D __last1 && __first2 !=3D __last2)=0A=
if (__comp(*__first1, *__first2)) {=0A=
*__result =3D *__first1;=0A=
++__first1;=0A=
++__result;=0A=
}=0A=
else if (__comp(*__first2, *__first1))=0A=
++__first2;=0A=
else {=0A=
++__first1;=0A=
++__first2;=0A=
}=0A=
return copy(__first1, __last1, __result);=0A=
}=0A=
=0A=
template<typename _InputIter1, typename _InputIter2, typename =
_OutputIter>=0A=
_OutputIter=0A=
set_symmetric_difference(_InputIter1 __first1, _InputIter1 __last1,=0A=
_InputIter2 __first2, _InputIter2 __last2,=0A=
_OutputIter __result)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
while (__first1 !=3D __last1 && __first2 !=3D __last2)=0A=
if (*__first1 < *__first2) {=0A=
*__result =3D *__first1;=0A=
++__first1;=0A=
++__result;=0A=
}=0A=
else if (*__first2 < *__first1) {=0A=
*__result =3D *__first2;=0A=
++__first2;=0A=
++__result;=0A=
}=0A=
else {=0A=
++__first1;=0A=
++__first2;=0A=
}=0A=
return copy(__first2, __last2, copy(__first1, __last1, __result));=0A=
}=0A=
=0A=
template<typename _InputIter1, typename _InputIter2, typename =
_OutputIter,=0A=
typename _Compare>=0A=
_OutputIter=0A=
set_symmetric_difference(_InputIter1 __first1, _InputIter1 __last1,=0A=
_InputIter2 __first2, _InputIter2 __last2,=0A=
_OutputIter __result,=0A=
_Compare __comp)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
while (__first1 !=3D __last1 && __first2 !=3D __last2)=0A=
if (__comp(*__first1, *__first2)) {=0A=
*__result =3D *__first1;=0A=
++__first1;=0A=
++__result;=0A=
}=0A=
else if (__comp(*__first2, *__first1)) {=0A=
*__result =3D *__first2;=0A=
++__first2;=0A=
++__result;=0A=
}=0A=
else {=0A=
++__first1;=0A=
++__first2;=0A=
}=0A=
return copy(__first2, __last2, copy(__first1, __last1, __result));=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _ForwardIter>=0A=
_ForwardIter=0A=
max_element(_ForwardIter __first, _ForwardIter __last)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
if (__first =3D=3D __last) return __first;=0A=
_ForwardIter __result =3D __first;=0A=
while (++__first !=3D __last)=0A=
if (*__result < *__first)=0A=
__result =3D __first;=0A=
return __result;=0A=
}=0A=
=0A=
template<typename _ForwardIter, typename _Compare>=0A=
_ForwardIter=0A=
max_element(_ForwardIter __first, _ForwardIter __last,=0A=
_Compare __comp)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
if (__first =3D=3D __last) return __first;=0A=
_ForwardIter __result =3D __first;=0A=
while (++__first !=3D __last)=0A=
if (__comp(*__result, *__first)) __result =3D __first;=0A=
return __result;=0A=
}=0A=
=0A=
template<typename _ForwardIter>=0A=
_ForwardIter=0A=
min_element(_ForwardIter __first, _ForwardIter __last)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
if (__first =3D=3D __last) return __first;=0A=
_ForwardIter __result =3D __first;=0A=
while (++__first !=3D __last)=0A=
if (*__first < *__result)=0A=
__result =3D __first;=0A=
return __result;=0A=
}=0A=
=0A=
template<typename _ForwardIter, typename _Compare>=0A=
_ForwardIter=0A=
min_element(_ForwardIter __first, _ForwardIter __last,=0A=
_Compare __comp)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
if (__first =3D=3D __last) return __first;=0A=
_ForwardIter __result =3D __first;=0A=
while (++__first !=3D __last)=0A=
if (__comp(*__first, *__result))=0A=
__result =3D __first;=0A=
return __result;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _BidirectionalIter>=0A=
bool=0A=
next_permutation(_BidirectionalIter __first, _BidirectionalIter =
__last)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
if (__first =3D=3D __last)=0A=
return false;=0A=
_BidirectionalIter __i =3D __first;=0A=
++__i;=0A=
if (__i =3D=3D __last)=0A=
return false;=0A=
__i =3D __last;=0A=
--__i;=0A=
=0A=
for(;;) {=0A=
_BidirectionalIter __ii =3D __i;=0A=
--__i;=0A=
if (*__i < *__ii) {=0A=
_BidirectionalIter __j =3D __last;=0A=
while (!(*__i < *--__j))=0A=
{}=0A=
iter_swap(__i, __j);=0A=
reverse(__ii, __last);=0A=
return true;=0A=
}=0A=
if (__i =3D=3D __first) {=0A=
reverse(__first, __last);=0A=
return false;=0A=
}=0A=
}=0A=
}=0A=
=0A=
template<typename _BidirectionalIter, typename _Compare>=0A=
bool=0A=
next_permutation(_BidirectionalIter __first, _BidirectionalIter =
__last,=0A=
_Compare __comp)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
if (__first =3D=3D __last)=0A=
return false;=0A=
_BidirectionalIter __i =3D __first;=0A=
++__i;=0A=
if (__i =3D=3D __last)=0A=
return false;=0A=
__i =3D __last;=0A=
--__i;=0A=
=0A=
for(;;) {=0A=
_BidirectionalIter __ii =3D __i;=0A=
--__i;=0A=
if (__comp(*__i, *__ii)) {=0A=
_BidirectionalIter __j =3D __last;=0A=
while (!__comp(*__i, *--__j))=0A=
{}=0A=
iter_swap(__i, __j);=0A=
reverse(__ii, __last);=0A=
return true;=0A=
}=0A=
if (__i =3D=3D __first) {=0A=
reverse(__first, __last);=0A=
return false;=0A=
}=0A=
}=0A=
}=0A=
=0A=
template<typename _BidirectionalIter>=0A=
bool=0A=
prev_permutation(_BidirectionalIter __first, _BidirectionalIter =
__last)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
if (__first =3D=3D __last)=0A=
return false;=0A=
_BidirectionalIter __i =3D __first;=0A=
++__i;=0A=
if (__i =3D=3D __last)=0A=
return false;=0A=
__i =3D __last;=0A=
--__i;=0A=
=0A=
for(;;) {=0A=
_BidirectionalIter __ii =3D __i;=0A=
--__i;=0A=
if (*__ii < *__i) {=0A=
_BidirectionalIter __j =3D __last;=0A=
while (!(*--__j < *__i))=0A=
{}=0A=
iter_swap(__i, __j);=0A=
reverse(__ii, __last);=0A=
return true;=0A=
}=0A=
if (__i =3D=3D __first) {=0A=
reverse(__first, __last);=0A=
return false;=0A=
}=0A=
}=0A=
}=0A=
=0A=
template<typename _BidirectionalIter, typename _Compare>=0A=
bool=0A=
prev_permutation(_BidirectionalIter __first, _BidirectionalIter =
__last,=0A=
_Compare __comp)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
if (__first =3D=3D __last)=0A=
return false;=0A=
_BidirectionalIter __i =3D __first;=0A=
++__i;=0A=
if (__i =3D=3D __last)=0A=
return false;=0A=
__i =3D __last;=0A=
--__i;=0A=
=0A=
for(;;) {=0A=
_BidirectionalIter __ii =3D __i;=0A=
--__i;=0A=
if (__comp(*__ii, *__i)) {=0A=
_BidirectionalIter __j =3D __last;=0A=
while (!__comp(*--__j, *__i))=0A=
{}=0A=
iter_swap(__i, __j);=0A=
reverse(__ii, __last);=0A=
return true;=0A=
}=0A=
if (__i =3D=3D __first) {=0A=
reverse(__first, __last);=0A=
return false;=0A=
}=0A=
}=0A=
}=0A=
=0A=
=0A=
=0A=
template<typename _InputIter, typename _ForwardIter>=0A=
_InputIter=0A=
find_first_of(_InputIter __first1, _InputIter __last1,=0A=
_ForwardIter __first2, _ForwardIter __last2)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
for ( ; __first1 !=3D __last1; ++__first1)=0A=
for (_ForwardIter __iter =3D __first2; __iter !=3D __last2; =
++__iter)=0A=
if (*__first1 =3D=3D *__iter)=0A=
return __first1;=0A=
return __last1;=0A=
}=0A=
=0A=
template<typename _InputIter, typename _ForwardIter, typename =
_BinaryPredicate>=0A=
_InputIter=0A=
find_first_of(_InputIter __first1, _InputIter __last1,=0A=
_ForwardIter __first2, _ForwardIter __last2,=0A=
_BinaryPredicate __comp)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
for ( ; __first1 !=3D __last1; ++__first1)=0A=
for (_ForwardIter __iter =3D __first2; __iter !=3D __last2; =
++__iter)=0A=
if (__comp(*__first1, *__iter))=0A=
return __first1;=0A=
return __last1;=0A=
}=0A=
# 4201 "/usr/local/include/g++-v3/bits/stl_algo.h" 3=0A=
template<typename _ForwardIter1, typename _ForwardIter2>=0A=
_ForwardIter1=0A=
__find_end(_ForwardIter1 __first1, _ForwardIter1 __last1,=0A=
_ForwardIter2 __first2, _ForwardIter2 __last2,=0A=
forward_iterator_tag, forward_iterator_tag)=0A=
{=0A=
if (__first2 =3D=3D __last2)=0A=
return __last1;=0A=
else {=0A=
_ForwardIter1 __result =3D __last1;=0A=
while (1) {=0A=
_ForwardIter1 __new_result=0A=
=3D search(__first1, __last1, __first2, __last2);=0A=
if (__new_result =3D=3D __last1)=0A=
return __result;=0A=
else {=0A=
__result =3D __new_result;=0A=
__first1 =3D __new_result;=0A=
++__first1;=0A=
}=0A=
}=0A=
}=0A=
}=0A=
=0A=
template<typename _ForwardIter1, typename _ForwardIter2,=0A=
typename _BinaryPredicate>=0A=
_ForwardIter1=0A=
__find_end(_ForwardIter1 __first1, _ForwardIter1 __last1,=0A=
_ForwardIter2 __first2, _ForwardIter2 __last2,=0A=
forward_iterator_tag, forward_iterator_tag,=0A=
_BinaryPredicate __comp)=0A=
{=0A=
if (__first2 =3D=3D __last2)=0A=
return __last1;=0A=
else {=0A=
_ForwardIter1 __result =3D __last1;=0A=
while (1) {=0A=
_ForwardIter1 __new_result=0A=
=3D search(__first1, __last1, __first2, __last2, __comp);=0A=
if (__new_result =3D=3D __last1)=0A=
return __result;=0A=
else {=0A=
__result =3D __new_result;=0A=
__first1 =3D __new_result;=0A=
++__first1;=0A=
}=0A=
}=0A=
}=0A=
}=0A=
=0A=
=0A=
template<typename _BidirectionalIter1, typename _BidirectionalIter2>=0A=
_BidirectionalIter1=0A=
__find_end(_BidirectionalIter1 __first1, _BidirectionalIter1 __last1,=0A=
_BidirectionalIter2 __first2, _BidirectionalIter2 __last2,=0A=
bidirectional_iterator_tag, bidirectional_iterator_tag)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
typedef reverse_iterator<_BidirectionalIter1> _RevIter1;=0A=
typedef reverse_iterator<_BidirectionalIter2> _RevIter2;=0A=
=0A=
_RevIter1 __rlast1(__first1);=0A=
_RevIter2 __rlast2(__first2);=0A=
_RevIter1 __rresult =3D search(_RevIter1(__last1), __rlast1,=0A=
_RevIter2(__last2), __rlast2);=0A=
=0A=
if (__rresult =3D=3D __rlast1)=0A=
return __last1;=0A=
else {=0A=
_BidirectionalIter1 __result =3D __rresult.base();=0A=
advance(__result, -distance(__first2, __last2));=0A=
return __result;=0A=
}=0A=
}=0A=
=0A=
template<typename _BidirectionalIter1, typename _BidirectionalIter2,=0A=
typename _BinaryPredicate>=0A=
_BidirectionalIter1=0A=
__find_end(_BidirectionalIter1 __first1, _BidirectionalIter1 __last1,=0A=
_BidirectionalIter2 __first2, _BidirectionalIter2 __last2,=0A=
bidirectional_iterator_tag, bidirectional_iterator_tag,=0A=
_BinaryPredicate __comp)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
typedef reverse_iterator<_BidirectionalIter1> _RevIter1;=0A=
typedef reverse_iterator<_BidirectionalIter2> _RevIter2;=0A=
=0A=
_RevIter1 __rlast1(__first1);=0A=
_RevIter2 __rlast2(__first2);=0A=
_RevIter1 __rresult =3D search(_RevIter1(__last1), __rlast1,=0A=
_RevIter2(__last2), __rlast2,=0A=
__comp);=0A=
=0A=
if (__rresult =3D=3D __rlast1)=0A=
return __last1;=0A=
else {=0A=
_BidirectionalIter1 __result =3D __rresult.base();=0A=
advance(__result, -distance(__first2, __last2));=0A=
return __result;=0A=
}=0A=
}=0A=
=0A=
=0A=
=0A=
template<typename _ForwardIter1, typename _ForwardIter2>=0A=
inline _ForwardIter1=0A=
find_end(_ForwardIter1 __first1, _ForwardIter1 __last1,=0A=
_ForwardIter2 __first2, _ForwardIter2 __last2)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
return __find_end(__first1, __last1, __first2, __last2,=0A=
__iterator_category(__first1),=0A=
__iterator_category(__first2));=0A=
}=0A=
=0A=
template<typename _ForwardIter1, typename _ForwardIter2,=0A=
typename _BinaryPredicate>=0A=
inline _ForwardIter1=0A=
find_end(_ForwardIter1 __first1, _ForwardIter1 __last1,=0A=
_ForwardIter2 __first2, _ForwardIter2 __last2,=0A=
_BinaryPredicate __comp)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
return __find_end(__first1, __last1, __first2, __last2,=0A=
__iterator_category(__first1),=0A=
__iterator_category(__first2),=0A=
__comp);=0A=
}=0A=
=0A=
}=0A=
# 70 "/usr/local/include/g++-v3/algorithm" 2 3=0A=
# 57 "/usr/local/include/g++-v3/string" 2 3=0A=
# 1 "/usr/local/include/g++-v3/bits/basic_string.tcc" 1 3=0A=
# 45 "/usr/local/include/g++-v3/bits/basic_string.tcc" 3=0A=
=0A=
namespace std=0A=
{=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
const typename basic_string<_CharT, _Traits, _Alloc>::size_type=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
_Rep::_S_max_size =3D (((npos - sizeof(_Rep))/sizeof(_CharT)) - 1) / =
4;=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
const _CharT=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
_Rep::_S_terminal =3D _CharT();=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
const typename basic_string<_CharT, _Traits, _Alloc>::size_type=0A=
basic_string<_CharT, _Traits, _Alloc>::npos;=0A=
=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
typename basic_string<_CharT, _Traits, _Alloc>::size_type=0A=
basic_string<_CharT, _Traits, _Alloc>::_S_empty_rep_storage[=0A=
(sizeof(_Rep) + sizeof(_CharT) + sizeof(size_type) - =
1)/sizeof(size_type)];=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
template<typename _InIter>=0A=
_CharT*=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
_S_construct(_InIter __beg, _InIter __end, const _Alloc& __a,=0A=
input_iterator_tag)=0A=
{=0A=
if (__beg =3D=3D __end && __a =3D=3D _Alloc())=0A=
return _S_empty_rep()._M_refcopy();=0A=
=0A=
_CharT __buf[100];=0A=
size_type __i =3D 0;=0A=
while (__beg !=3D __end && __i < sizeof(__buf) / sizeof(_CharT))=0A=
{=0A=
__buf[__i++] =3D *__beg;=0A=
++__beg;=0A=
}=0A=
_Rep* __r =3D _Rep::_S_create(__i, __a);=0A=
traits_type::copy(__r->_M_refdata(), __buf, __i);=0A=
__r->_M_length =3D __i;=0A=
try=0A=
{=0A=
=0A=
=0A=
=0A=
for (;;)=0A=
{=0A=
_CharT* __p =3D __r->_M_refdata() + __r->_M_length;=0A=
_CharT* __last =3D __r->_M_refdata() + __r->_M_capacity;=0A=
for (;;)=0A=
{=0A=
if (__beg =3D=3D __end)=0A=
{=0A=
__r->_M_length =3D __p - __r->_M_refdata();=0A=
*__p =3D _Rep::_S_terminal;=0A=
return __r->_M_refdata();=0A=
}=0A=
if (__p =3D=3D __last)=0A=
break;=0A=
*__p++ =3D *__beg;=0A=
++__beg;=0A=
}=0A=
=0A=
size_type __len =3D __p - __r->_M_refdata();=0A=
_Rep* __another =3D _Rep::_S_create(__len + 1, __a);=0A=
traits_type::copy(__another->_M_refdata(),=0A=
__r->_M_refdata(), __len);=0A=
__r->_M_destroy(__a);=0A=
__r =3D __another;=0A=
__r->_M_length =3D __len;=0A=
}=0A=
}=0A=
catch(...)=0A=
{=0A=
__r->_M_destroy(__a);=0A=
throw;=0A=
}=0A=
return 0;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
template <class _InIter>=0A=
_CharT*=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
_S_construct(_InIter __beg, _InIter __end, const _Alloc& __a,=0A=
forward_iterator_tag)=0A=
{=0A=
size_type __dnew =3D static_cast<size_type>(distance(__beg, =
__end));=0A=
=0A=
=0A=
if (__builtin_expect(__beg =3D=3D _InIter(0), 0))=0A=
__throw_logic_error("attempt to create string with null =
pointer");=0A=
=0A=
if (__beg =3D=3D __end && __a =3D=3D _Alloc())=0A=
return _S_empty_rep()._M_refcopy();=0A=
=0A=
=0A=
_Rep* __r =3D _Rep::_S_create(__dnew, __a);=0A=
try=0A=
{ _S_copy_chars(__r->_M_refdata(), __beg, __end); }=0A=
catch(...)=0A=
{=0A=
__r->_M_destroy(__a);=0A=
throw;=0A=
}=0A=
__r->_M_length =3D __dnew;=0A=
=0A=
__r->_M_refdata()[__dnew] =3D _Rep::_S_terminal;=0A=
return __r->_M_refdata();=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
_CharT*=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
_S_construct(size_type __n, _CharT __c, const _Alloc& __a)=0A=
{=0A=
if (__n =3D=3D 0 && __a =3D=3D _Alloc())=0A=
return _S_empty_rep()._M_refcopy();=0A=
=0A=
=0A=
_Rep* __r =3D _Rep::_S_create(__n, __a);=0A=
try=0A=
{=0A=
if (__n)=0A=
traits_type::assign(__r->_M_refdata(), __n, __c);=0A=
}=0A=
catch(...)=0A=
{=0A=
__r->_M_destroy(__a);=0A=
throw;=0A=
}=0A=
__r->_M_length =3D __n;=0A=
__r->_M_refdata()[__n] =3D _Rep::_S_terminal;=0A=
return __r->_M_refdata();=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
basic_string(const basic_string& __str)=0A=
: _M_dataplus(__str._M_rep()->_M_grab(_Alloc(), =
__str.get_allocator()),=0A=
__str.get_allocator())=0A=
{ }=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
basic_string(const _Alloc& __a)=0A=
: _M_dataplus(_S_construct(size_type(), _CharT(), __a), __a)=0A=
{ }=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
basic_string(const basic_string& __str, size_type __pos, size_type =
__n)=0A=
: _M_dataplus(_S_construct(__str._M_check(__pos),=0A=
__str._M_fold(__pos, __n), _Alloc()), =
_Alloc())=0A=
{ }=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
basic_string(const basic_string& __str, size_type __pos,=0A=
size_type __n, const _Alloc& __a)=0A=
: _M_dataplus(_S_construct(__str._M_check(__pos),=0A=
__str._M_fold(__pos, __n), __a), __a)=0A=
{ }=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
basic_string(const _CharT* __s, size_type __n, const _Alloc& __a)=0A=
: _M_dataplus(_S_construct(__s, __s + __n, __a), __a)=0A=
{ }=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
basic_string(const _CharT* __s, const _Alloc& __a)=0A=
: _M_dataplus(_S_construct(__s, __s ? __s + traits_type::length(__s) =
: 0,=0A=
__a), __a)=0A=
{ }=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
basic_string(size_type __n, _CharT __c, const _Alloc& __a)=0A=
: _M_dataplus(_S_construct(__n, __c, __a), __a)=0A=
{ }=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
template<typename _InputIter>=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
basic_string(_InputIter __beg, _InputIter __end, const _Alloc& __a)=0A=
: _M_dataplus(_S_construct(__beg, __end, __a), __a)=0A=
{ }=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
basic_string<_CharT, _Traits, _Alloc>&=0A=
basic_string<_CharT, _Traits, _Alloc>::assign(const basic_string& =
__str)=0A=
{=0A=
if (_M_rep() !=3D __str._M_rep())=0A=
{=0A=
=0A=
allocator_type __a =3D this->get_allocator();=0A=
_CharT* __tmp =3D __str._M_rep()->_M_grab(__a, =
__str.get_allocator());=0A=
_M_rep()->_M_dispose(__a);=0A=
_M_data(__tmp);=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
void=0A=
basic_string<_CharT, _Traits, _Alloc>::_Rep::=0A=
_M_destroy(const _Alloc& __a) throw ()=0A=
{=0A=
size_type __size =3D sizeof(_Rep) + (_M_capacity + 1) * =
sizeof(_CharT);=0A=
_Raw_bytes_alloc(__a).deallocate(reinterpret_cast<char*>(this), =
__size);=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
void=0A=
basic_string<_CharT, _Traits, _Alloc>::_M_leak_hard()=0A=
{=0A=
if (_M_rep()->_M_is_shared())=0A=
_M_mutate(0, 0, 0);=0A=
_M_rep()->_M_set_leaked();=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
void=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
_M_mutate(size_type __pos, size_type __len1, size_type __len2)=0A=
{=0A=
size_type __old_size =3D this->size();=0A=
const size_type __new_size =3D __old_size + __len2 - __len1;=0A=
const _CharT* __src =3D _M_data() + __pos + __len1;=0A=
const size_type __how_much =3D __old_size - __pos - __len1;=0A=
=0A=
if (_M_rep()->_M_is_shared() || __new_size > capacity())=0A=
{=0A=
=0A=
allocator_type __a =3D get_allocator();=0A=
=0A=
=0A=
const size_type __pagesize =3D 4096;=0A=
const size_type __malloc_header_size =3D 4 * sizeof (void*);=0A=
=0A=
const size_type __page_capacity =3D (__pagesize - =
__malloc_header_size=0A=
- sizeof(_Rep) - =
sizeof(_CharT))=0A=
/ sizeof(_CharT);=0A=
_Rep* __r;=0A=
if (__new_size > capacity() && __new_size > __page_capacity)=0A=
=0A=
__r =3D _Rep::_S_create(__new_size > 2*capacity() ?=0A=
__new_size : 2*capacity(), __a);=0A=
else=0A=
__r =3D _Rep::_S_create(__new_size, __a);=0A=
try=0A=
{=0A=
if (__pos)=0A=
traits_type::copy(__r->_M_refdata(), _M_data(), __pos);=0A=
if (__how_much)=0A=
traits_type::copy(__r->_M_refdata() + __pos + __len2,=0A=
__src, __how_much);=0A=
}=0A=
catch(...)=0A=
{=0A=
__r->_M_dispose(get_allocator());=0A=
throw;=0A=
}=0A=
_M_rep()->_M_dispose(__a);=0A=
_M_data(__r->_M_refdata());=0A=
}=0A=
else if (__how_much && __len1 !=3D __len2)=0A=
{=0A=
=0A=
traits_type::move(_M_data() + __pos + __len2, __src, =
__how_much);=0A=
}=0A=
_M_rep()->_M_set_sharable();=0A=
_M_rep()->_M_length =3D __new_size;=0A=
_M_data()[__new_size] =3D _Rep::_S_terminal;=0A=
=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
void=0A=
basic_string<_CharT, _Traits, _Alloc>::reserve(size_type __res)=0A=
{=0A=
if (__res > this->capacity() || _M_rep()->_M_is_shared())=0A=
{=0A=
if (__res > this->max_size())=0A=
__throw_length_error("basic_string::reserve");=0A=
=0A=
if (__res < this->size())=0A=
__res =3D this->size();=0A=
allocator_type __a =3D get_allocator();=0A=
_CharT* __tmp =3D _M_rep()->_M_clone(__a, __res - =
this->size());=0A=
_M_rep()->_M_dispose(__a);=0A=
_M_data(__tmp);=0A=
}=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
void basic_string<_CharT, _Traits, _Alloc>::swap(basic_string& __s)=0A=
{=0A=
if (_M_rep()->_M_is_leaked())=0A=
_M_rep()->_M_set_sharable();=0A=
if (__s._M_rep()->_M_is_leaked())=0A=
__s._M_rep()->_M_set_sharable();=0A=
if (this->get_allocator() =3D=3D __s.get_allocator())=0A=
{=0A=
_CharT* __tmp =3D _M_data();=0A=
_M_data(__s._M_data());=0A=
__s._M_data(__tmp);=0A=
}=0A=
=0A=
else=0A=
{=0A=
basic_string __tmp1(_M_ibegin(), _M_iend(), =
__s.get_allocator());=0A=
basic_string __tmp2(__s._M_ibegin(), __s._M_iend(),=0A=
this->get_allocator());=0A=
*this =3D __tmp2;=0A=
__s =3D __tmp1;=0A=
}=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
typename basic_string<_CharT, _Traits, _Alloc>::_Rep*=0A=
basic_string<_CharT, _Traits, _Alloc>::_Rep::=0A=
_S_create(size_t __capacity, const _Alloc& __alloc)=0A=
{=0A=
typedef basic_string<_CharT, _Traits, _Alloc> __string_type;=0A=
=0A=
=0A=
if (__capacity > _S_max_size)=0A=
=0A=
=0A=
=0A=
__throw_length_error("basic_string::_S_create");=0A=
=0A=
=0A=
=0A=
=0A=
size_t __size =3D (__capacity + 1) * sizeof(_CharT) + sizeof(_Rep);=0A=
# 421 "/usr/local/include/g++-v3/bits/basic_string.tcc" 3=0A=
const size_t __pagesize =3D 4096;=0A=
const size_t __subpagesize =3D 128;=0A=
const size_t __malloc_header_size =3D 4 * sizeof (void*);=0A=
if ((__size + __malloc_header_size) > __pagesize)=0A=
{=0A=
size_t __extra =3D=0A=
(__pagesize - ((__size + __malloc_header_size) % __pagesize))=0A=
% __pagesize;=0A=
__capacity +=3D __extra / sizeof(_CharT);=0A=
__size =3D (__capacity + 1) * sizeof(_CharT) + sizeof(_Rep);=0A=
}=0A=
else if (__size > __subpagesize)=0A=
{=0A=
size_t __extra =3D=0A=
(__subpagesize - ((__size + __malloc_header_size) % =
__subpagesize))=0A=
% __subpagesize;=0A=
__capacity +=3D __extra / sizeof(_CharT);=0A=
__size =3D (__capacity + 1) * sizeof(_CharT) + sizeof(_Rep);=0A=
}=0A=
=0A=
=0A=
=0A=
void* __place =3D _Raw_bytes_alloc(__alloc).allocate(__size);=0A=
_Rep *__p =3D new (__place) _Rep;=0A=
__p->_M_capacity =3D __capacity;=0A=
__p->_M_set_sharable();=0A=
__p->_M_length =3D 0;=0A=
return __p;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
_CharT*=0A=
basic_string<_CharT, _Traits, _Alloc>::_Rep::=0A=
_M_clone(const _Alloc& __alloc, size_type __res)=0A=
{=0A=
=0A=
const size_type __requested_cap =3D _M_length + __res;=0A=
=0A=
const size_type __pagesize =3D 4096;=0A=
const size_type __malloc_header_size =3D 4 * sizeof (void*);=0A=
=0A=
const size_type __page_capacity =3D=0A=
(__pagesize - __malloc_header_size - sizeof(_Rep) - =
sizeof(_CharT))=0A=
/ sizeof(_CharT);=0A=
_Rep* __r;=0A=
if (__requested_cap > _M_capacity && __requested_cap > =
__page_capacity)=0A=
=0A=
__r =3D _Rep::_S_create(__requested_cap > 2*_M_capacity ?=0A=
__requested_cap : 2*_M_capacity, __alloc);=0A=
else=0A=
__r =3D _Rep::_S_create(__requested_cap, __alloc);=0A=
=0A=
if (_M_length)=0A=
{=0A=
try=0A=
{ traits_type::copy(__r->_M_refdata(), _M_refdata(), =
_M_length); }=0A=
catch(...)=0A=
{=0A=
__r->_M_destroy(__alloc);=0A=
throw;=0A=
}=0A=
}=0A=
__r->_M_length =3D _M_length;=0A=
return __r->_M_refdata();=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
void=0A=
basic_string<_CharT, _Traits, _Alloc>::resize(size_type __n, _CharT =
__c)=0A=
{=0A=
if (__n > max_size())=0A=
__throw_length_error("basic_string::resize");=0A=
size_type __size =3D this->size();=0A=
if (__size < __n)=0A=
this->append(__n - __size, __c);=0A=
else if (__n < __size)=0A=
this->erase(__n);=0A=
=0A=
}=0A=
# 508 "/usr/local/include/g++-v3/bits/basic_string.tcc" 3=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
template<typename _InputIter>=0A=
basic_string<_CharT, _Traits, _Alloc>&=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
_M_replace(iterator __i1, iterator __i2, _InputIter __k1,=0A=
_InputIter __k2, input_iterator_tag)=0A=
{=0A=
=0A=
basic_string __s(__k1, __k2);=0A=
return _M_replace_safe(__i1, __i2, __s._M_ibegin(), =
__s._M_iend());=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
template<typename _ForwardIter>=0A=
basic_string<_CharT, _Traits, _Alloc>&=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
_M_replace_safe(iterator __i1, iterator __i2, _ForwardIter __k1,=0A=
_ForwardIter __k2)=0A=
{=0A=
size_type __dnew =3D static_cast<size_type>(distance(__k1, =
__k2));=0A=
size_type __dold =3D __i2 - __i1;=0A=
size_type __dmax =3D this->max_size();=0A=
=0A=
if (__dmax <=3D __dnew)=0A=
__throw_length_error("basic_string::_M_replace");=0A=
size_type __off =3D __i1 - _M_ibegin();=0A=
_M_mutate(__off, __dold, __dnew);=0A=
=0A=
=0A=
if (__dnew)=0A=
_S_copy_chars(_M_data() + __off, __k1, __k2);=0A=
=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
basic_string<_CharT, _Traits, _Alloc>&=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
replace(size_type __pos1, size_type __n1, const basic_string& __str,=0A=
size_type __pos2, size_type __n2)=0A=
{=0A=
const size_type __strsize =3D __str.size();=0A=
if (__pos2 > __strsize)=0A=
__throw_out_of_range("basic_string::replace");=0A=
const bool __testn2 =3D __n2 < __strsize - __pos2;=0A=
const size_type __foldn2 =3D __testn2 ? __n2 : __strsize - __pos2;=0A=
return this->replace(__pos1, __n1,=0A=
__str._M_data() + __pos2, __foldn2);=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
basic_string<_CharT, _Traits, _Alloc>&=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
append(const basic_string& __str)=0A=
{=0A=
=0A=
=0A=
=0A=
size_type __size =3D __str.size();=0A=
size_type __len =3D __size + this->size();=0A=
if (__len > this->capacity())=0A=
this->reserve(__len);=0A=
return _M_replace_safe(_M_iend(), _M_iend(), __str._M_ibegin(),=0A=
__str._M_iend());=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
basic_string<_CharT, _Traits, _Alloc>&=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
append(const basic_string& __str, size_type __pos, size_type __n)=0A=
{=0A=
=0A=
=0A=
=0A=
size_type __len =3D min(__str.size() - __pos, __n) + this->size();=0A=
if (__len > this->capacity())=0A=
this->reserve(__len);=0A=
return _M_replace_safe(_M_iend(), _M_iend(), __str._M_check(__pos),=0A=
__str._M_fold(__pos, __n));=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
basic_string<_CharT, _Traits, _Alloc>&=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
append(const _CharT* __s, size_type __n)=0A=
{=0A=
size_type __len =3D __n + this->size();=0A=
if (__len > this->capacity())=0A=
this->reserve(__len);=0A=
return _M_replace_safe(_M_iend(), _M_iend(), __s, __s + __n);=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
basic_string<_CharT, _Traits, _Alloc>&=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
append(size_type __n, _CharT __c)=0A=
{=0A=
size_type __len =3D __n + this->size();=0A=
if (__len > this->capacity())=0A=
this->reserve(__len);=0A=
return this->replace(_M_iend(), _M_iend(), __n, __c);=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
basic_string<_CharT, _Traits, _Alloc>=0A=
operator+(const _CharT* __lhs,=0A=
const basic_string<_CharT, _Traits, _Alloc>& __rhs)=0A=
{=0A=
typedef basic_string<_CharT, _Traits, _Alloc> __string_type;=0A=
typedef typename __string_type::size_type __size_type;=0A=
__size_type __len =3D _Traits::length(__lhs);=0A=
__string_type __str;=0A=
__str.reserve(__len + __rhs.size());=0A=
__str.append(__lhs, __lhs + __len);=0A=
__str.append(__rhs);=0A=
return __str;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
basic_string<_CharT, _Traits, _Alloc>=0A=
operator+(_CharT __lhs, const basic_string<_CharT, _Traits, _Alloc>& =
__rhs)=0A=
{=0A=
typedef basic_string<_CharT, _Traits, _Alloc> __string_type;=0A=
typedef typename __string_type::size_type __size_type;=0A=
__string_type __str;=0A=
__size_type __len =3D __rhs.size();=0A=
__str.reserve(__len + 1);=0A=
__str.append(__size_type(1), __lhs);=0A=
__str.append(__rhs);=0A=
return __str;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
basic_string<_CharT, _Traits, _Alloc>&=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
replace(iterator __i1, iterator __i2, size_type __n2, _CharT __c)=0A=
{=0A=
size_type __n1 =3D __i2 - __i1;=0A=
size_type __off1 =3D __i1 - _M_ibegin();=0A=
if (max_size() - (this->size() - __n1) <=3D __n2)=0A=
__throw_length_error("basic_string::replace");=0A=
_M_mutate (__off1, __n1, __n2);=0A=
=0A=
if (__n2)=0A=
traits_type::assign(_M_data() + __off1, __n2, __c);=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
typename basic_string<_CharT, _Traits, _Alloc>::size_type=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
copy(_CharT* __s, size_type __n, size_type __pos) const=0A=
{=0A=
if (__pos > this->size())=0A=
__throw_out_of_range("basic_string::copy");=0A=
=0A=
if (__n > this->size() - __pos)=0A=
__n =3D this->size() - __pos;=0A=
=0A=
traits_type::copy(__s, _M_data() + __pos, __n);=0A=
=0A=
return __n;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
typename basic_string<_CharT, _Traits, _Alloc>::size_type=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
find(const _CharT* __s, size_type __pos, size_type __n) const=0A=
{=0A=
size_type __size =3D this->size();=0A=
size_t __xpos =3D __pos;=0A=
const _CharT* __data =3D _M_data();=0A=
for (; __xpos + __n <=3D __size; ++__xpos)=0A=
if (traits_type::compare(__data + __xpos, __s, __n) =3D=3D 0)=0A=
return __xpos;=0A=
return npos;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
typename basic_string<_CharT, _Traits, _Alloc>::size_type=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
find(_CharT __c, size_type __pos) const=0A=
{=0A=
size_type __size =3D this->size();=0A=
size_type __ret =3D npos;=0A=
if (__pos < __size)=0A=
{=0A=
const _CharT* __data =3D _M_data();=0A=
size_type __n =3D __size - __pos;=0A=
const _CharT* __p =3D traits_type::find(__data + __pos, __n, =
__c);=0A=
if (__p)=0A=
__ret =3D __p - __data;=0A=
}=0A=
return __ret;=0A=
}=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
typename basic_string<_CharT, _Traits, _Alloc>::size_type=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
rfind(const _CharT* __s, size_type __pos, size_type __n) const=0A=
{=0A=
size_type __size =3D this->size();=0A=
if (__n <=3D __size)=0A=
{=0A=
__pos =3D std::min(__size - __n, __pos);=0A=
const _CharT* __data =3D _M_data();=0A=
do=0A=
{=0A=
if (traits_type::compare(__data + __pos, __s, __n) =3D=3D =
0)=0A=
return __pos;=0A=
}=0A=
while (__pos-- > 0);=0A=
}=0A=
return npos;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
typename basic_string<_CharT, _Traits, _Alloc>::size_type=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
rfind(_CharT __c, size_type __pos) const=0A=
{=0A=
size_type __size =3D this->size();=0A=
if (__size)=0A=
{=0A=
size_t __xpos =3D __size - 1;=0A=
if (__xpos > __pos)=0A=
__xpos =3D __pos;=0A=
=0A=
for (++__xpos; __xpos-- > 0; )=0A=
if (traits_type::eq(_M_data()[__xpos], __c))=0A=
return __xpos;=0A=
}=0A=
return npos;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
typename basic_string<_CharT, _Traits, _Alloc>::size_type=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
find_first_of(const _CharT* __s, size_type __pos, size_type __n) =
const=0A=
{=0A=
for (; __n && __pos < this->size(); ++__pos)=0A=
{=0A=
const _CharT* __p =3D traits_type::find(__s, __n, =
_M_data()[__pos]);=0A=
if (__p)=0A=
return __pos;=0A=
}=0A=
return npos;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
typename basic_string<_CharT, _Traits, _Alloc>::size_type=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
find_last_of(const _CharT* __s, size_type __pos, size_type __n) const=0A=
{=0A=
size_type __size =3D this->size();=0A=
if (__size && __n)=0A=
{=0A=
if (--__size > __pos)=0A=
__size =3D __pos;=0A=
do=0A=
{=0A=
if (traits_type::find(__s, __n, _M_data()[__size]))=0A=
return __size;=0A=
}=0A=
while (__size-- !=3D 0);=0A=
}=0A=
return npos;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
typename basic_string<_CharT, _Traits, _Alloc>::size_type=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) =
const=0A=
{=0A=
size_t __xpos =3D __pos;=0A=
for (; __xpos < this->size(); ++__xpos)=0A=
if (!traits_type::find(__s, __n, _M_data()[__xpos]))=0A=
return __xpos;=0A=
return npos;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
typename basic_string<_CharT, _Traits, _Alloc>::size_type=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
find_first_not_of(_CharT __c, size_type __pos) const=0A=
{=0A=
size_t __xpos =3D __pos;=0A=
for (; __xpos < this->size(); ++__xpos)=0A=
if (!traits_type::eq(_M_data()[__xpos], __c))=0A=
return __xpos;=0A=
return npos;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
typename basic_string<_CharT, _Traits, _Alloc>::size_type=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) =
const=0A=
{=0A=
size_type __size =3D this->size();=0A=
if (__size)=0A=
{=0A=
if (--__size > __pos)=0A=
__size =3D __pos;=0A=
do=0A=
{=0A=
if (!traits_type::find(__s, __n, _M_data()[__size]))=0A=
return __size;=0A=
}=0A=
while (__size--);=0A=
}=0A=
return npos;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
typename basic_string<_CharT, _Traits, _Alloc>::size_type=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
find_last_not_of(_CharT __c, size_type __pos) const=0A=
{=0A=
size_type __size =3D this->size();=0A=
if (__size)=0A=
{=0A=
if (--__size > __pos)=0A=
__size =3D __pos;=0A=
do=0A=
{=0A=
if (!traits_type::eq(_M_data()[__size], __c))=0A=
return __size;=0A=
}=0A=
while (__size--);=0A=
}=0A=
return npos;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
int=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
compare(size_type __pos, size_type __n, const basic_string& __str) =
const=0A=
{=0A=
size_type __size =3D this->size();=0A=
size_type __osize =3D __str.size();=0A=
if (__pos > __size)=0A=
__throw_out_of_range("basic_string::compare");=0A=
=0A=
size_type __rsize=3D min(__size - __pos, __n);=0A=
size_type __len =3D min(__rsize, __osize);=0A=
int __r =3D traits_type::compare(_M_data() + __pos, __str.data(), =
__len);=0A=
if (!__r)=0A=
__r =3D __rsize - __osize;=0A=
return __r;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
int=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
compare(size_type __pos1, size_type __n1, const basic_string& __str,=0A=
size_type __pos2, size_type __n2) const=0A=
{=0A=
size_type __size =3D this->size();=0A=
size_type __osize =3D __str.size();=0A=
if (__pos1 > __size || __pos2 > __osize)=0A=
__throw_out_of_range("basic_string::compare");=0A=
=0A=
size_type __rsize =3D min(__size - __pos1, __n1);=0A=
size_type __rosize =3D min(__osize - __pos2, __n2);=0A=
size_type __len =3D min(__rsize, __rosize);=0A=
int __r =3D traits_type::compare(_M_data() + __pos1,=0A=
__str.data() + __pos2, __len);=0A=
if (!__r)=0A=
__r =3D __rsize - __rosize;=0A=
return __r;=0A=
}=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
int=0A=
basic_string<_CharT, _Traits, _Alloc>::=0A=
compare(const _CharT* __s) const=0A=
{=0A=
size_type __size =3D this->size();=0A=
int __r =3D traits_type::compare(_M_data(), __s, __size);=0A=
if (!__r)=0A=
__r =3D __size - traits_type::length(__s);=0A=
return __r;=0A=
}=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
int=0A=
basic_string <_CharT, _Traits, _Alloc>::=0A=
compare(size_type __pos, size_type __n1, const _CharT* __s) const=0A=
{=0A=
size_type __size =3D this->size();=0A=
if (__pos > __size)=0A=
__throw_out_of_range("basic_string::compare");=0A=
=0A=
size_type __osize =3D traits_type::length(__s);=0A=
size_type __rsize =3D min(__size - __pos, __n1);=0A=
size_type __len =3D min(__rsize, __osize);=0A=
int __r =3D traits_type::compare(_M_data() + __pos, __s, __len);=0A=
if (!__r)=0A=
__r =3D __rsize - __osize;=0A=
return __r;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
int=0A=
basic_string <_CharT, _Traits, _Alloc>::=0A=
compare(size_type __pos, size_type __n1, const _CharT* __s,=0A=
size_type __n2) const=0A=
{=0A=
size_type __size =3D this->size();=0A=
if (__pos > __size)=0A=
__throw_out_of_range("basic_string::compare");=0A=
=0A=
size_type __osize =3D min(traits_type::length(__s), __n2);=0A=
size_type __rsize =3D min(__size - __pos, __n1);=0A=
size_type __len =3D min(__rsize, __osize);=0A=
int __r =3D traits_type::compare(_M_data() + __pos, __s, __len);=0A=
if (!__r)=0A=
__r =3D __rsize - __osize;=0A=
return __r;=0A=
}=0A=
=0A=
template <class _CharT, class _Traits, class _Alloc>=0A=
void=0A=
_S_string_copy(const basic_string<_CharT, _Traits, _Alloc>& __str,=0A=
_CharT* __buf, typename _Alloc::size_type __bufsiz)=0A=
{=0A=
typedef typename _Alloc::size_type size_type;=0A=
size_type __strsize =3D __str.size();=0A=
size_type __bytes =3D min(__strsize, __bufsiz - 1);=0A=
_Traits::copy(__buf, __str.data(), __bytes);=0A=
__buf[__bytes] =3D _CharT();=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
extern template class basic_string<char>;=0A=
extern template=0A=
basic_istream<char>&=0A=
operator>>(basic_istream<char>&, string&);=0A=
extern template=0A=
basic_ostream<char>&=0A=
operator<<(basic_ostream<char>&, const string&);=0A=
extern template=0A=
basic_istream<char>&=0A=
getline(basic_istream<char>&, string&, char);=0A=
extern template=0A=
basic_istream<char>&=0A=
getline(basic_istream<char>&, string&);=0A=
=0A=
extern template class basic_string<wchar_t>;=0A=
extern template=0A=
basic_istream<wchar_t>&=0A=
operator>>(basic_istream<wchar_t>&, wstring&);=0A=
extern template=0A=
basic_ostream<wchar_t>&=0A=
operator<<(basic_ostream<wchar_t>&, const wstring&);=0A=
extern template=0A=
basic_istream<wchar_t>&=0A=
getline(basic_istream<wchar_t>&, wstring&, wchar_t);=0A=
extern template=0A=
basic_istream<wchar_t>&=0A=
getline(basic_istream<wchar_t>&, wstring&);=0A=
}=0A=
# 58 "/usr/local/include/g++-v3/string" 2 3=0A=
# 50 "/usr/local/include/g++-v3/bits/localefwd.h" 2 3=0A=
# 1 "/usr/local/include/g++-v3/bits/functexcept.h" 1 3=0A=
# 34 "/usr/local/include/g++-v3/bits/functexcept.h" 3=0A=
# 1 "/usr/local/include/g++-v3/exception_defines.h" 1 3=0A=
# 35 "/usr/local/include/g++-v3/bits/functexcept.h" 2 3=0A=
=0A=
namespace std=0A=
{=0A=
=0A=
void=0A=
__throw_bad_exception(void);=0A=
=0A=
=0A=
void=0A=
__throw_bad_alloc(void);=0A=
=0A=
=0A=
void=0A=
__throw_bad_cast(void);=0A=
=0A=
void=0A=
__throw_bad_typeid(void);=0A=
=0A=
=0A=
void=0A=
__throw_logic_error(const char* __s);=0A=
=0A=
void=0A=
__throw_domain_error(const char* __s);=0A=
=0A=
void=0A=
__throw_invalid_argument(const char* __s);=0A=
=0A=
void=0A=
__throw_length_error(const char* __s);=0A=
=0A=
void=0A=
__throw_out_of_range(const char* __s);=0A=
=0A=
void=0A=
__throw_runtime_error(const char* __s);=0A=
=0A=
void=0A=
__throw_range_error(const char* __s);=0A=
=0A=
void=0A=
__throw_overflow_error(const char* __s);=0A=
=0A=
void=0A=
__throw_underflow_error(const char* __s);=0A=
=0A=
=0A=
void=0A=
__throw_ios_failure(const char* __s);=0A=
}=0A=
# 51 "/usr/local/include/g++-v3/bits/localefwd.h" 2 3=0A=
=0A=
=0A=
namespace std=0A=
{=0A=
=0A=
class locale;=0A=
=0A=
=0A=
template<typename _CharT>=0A=
inline bool=0A=
isspace(_CharT, const locale&);=0A=
=0A=
template<typename _CharT>=0A=
inline bool=0A=
isprint(_CharT, const locale&);=0A=
=0A=
template<typename _CharT>=0A=
inline bool=0A=
iscntrl(_CharT, const locale&);=0A=
=0A=
template<typename _CharT>=0A=
inline bool=0A=
isupper(_CharT, const locale&);=0A=
=0A=
template<typename _CharT>=0A=
inline bool=0A=
islower(_CharT, const locale&);=0A=
=0A=
template<typename _CharT>=0A=
inline bool=0A=
isalpha(_CharT, const locale&);=0A=
=0A=
template<typename _CharT>=0A=
inline bool=0A=
isdigit(_CharT, const locale&);=0A=
=0A=
template<typename _CharT>=0A=
inline bool=0A=
ispunct(_CharT, const locale&);=0A=
=0A=
template<typename _CharT>=0A=
inline bool=0A=
isxdigit(_CharT, const locale&);=0A=
=0A=
template<typename _CharT>=0A=
inline bool=0A=
isalnum(_CharT, const locale&);=0A=
=0A=
template<typename _CharT>=0A=
inline bool=0A=
isgraph(_CharT, const locale&);=0A=
=0A=
template<typename _CharT>=0A=
inline _CharT=0A=
toupper(_CharT, const locale&);=0A=
=0A=
template<typename _CharT>=0A=
inline _CharT=0A=
tolower(_CharT, const locale&);=0A=
=0A=
=0A=
=0A=
class ctype_base;=0A=
template<typename _CharT>=0A=
class ctype;=0A=
template<> class ctype<char>;=0A=
=0A=
=0A=
=0A=
template<typename _CharT>=0A=
class ctype_byname;=0A=
=0A=
=0A=
class codecvt_base;=0A=
class __enc_traits;=0A=
template<typename _InternT, typename _ExternT, typename _StateT>=0A=
class codecvt;=0A=
template<> class codecvt<char, char, mbstate_t>;=0A=
=0A=
=0A=
=0A=
template<typename _InternT, typename _ExternT, typename _StateT>=0A=
class codecvt_byname;=0A=
=0A=
=0A=
template<typename _CharT, typename _InIter =3D =
istreambuf_iterator<_CharT> >=0A=
class num_get;=0A=
template<typename _CharT, typename _OutIter =3D =
ostreambuf_iterator<_CharT> >=0A=
class num_put;=0A=
template<typename _CharT> class numpunct;=0A=
template<typename _CharT> class numpunct_byname;=0A=
=0A=
=0A=
template<typename _CharT>=0A=
class collate;=0A=
template<typename _CharT> class=0A=
collate_byname;=0A=
=0A=
=0A=
class time_base;=0A=
template<typename _CharT, typename _InIter =3D =
istreambuf_iterator<_CharT> >=0A=
class time_get;=0A=
template<typename _CharT, typename _InIter =3D =
istreambuf_iterator<_CharT> >=0A=
class time_get_byname;=0A=
template<typename _CharT, typename _OutIter =3D =
ostreambuf_iterator<_CharT> >=0A=
class time_put;=0A=
template<typename _CharT, typename _OutIter =3D =
ostreambuf_iterator<_CharT> >=0A=
class time_put_byname;=0A=
=0A=
=0A=
class money_base;=0A=
template<typename _CharT, typename _InIter =3D =
istreambuf_iterator<_CharT> >=0A=
class money_get;=0A=
template<typename _CharT, typename _OutIter =3D =
ostreambuf_iterator<_CharT> >=0A=
class money_put;=0A=
template<typename _CharT, bool _Intl =3D false>=0A=
class moneypunct;=0A=
template<typename _CharT, bool _Intl =3D false>=0A=
class moneypunct_byname;=0A=
=0A=
=0A=
class messages_base;=0A=
template<typename _CharT>=0A=
class messages;=0A=
template<typename _CharT>=0A=
class messages_byname;=0A=
=0A=
=0A=
class locale=0A=
{=0A=
public:=0A=
=0A=
typedef unsigned int category;=0A=
=0A=
=0A=
class facet;=0A=
class id;=0A=
class _Impl;=0A=
=0A=
friend class facet;=0A=
friend class _Impl;=0A=
=0A=
template<typename _Facet>=0A=
friend const _Facet&=0A=
use_facet(const locale&);=0A=
=0A=
template<typename _Facet>=0A=
friend bool=0A=
has_facet(const locale&) throw();=0A=
=0A=
=0A=
=0A=
static const category none =3D 0;=0A=
static const category ctype =3D 1L << 0;=0A=
static const category numeric =3D 1L << 1;=0A=
static const category collate =3D 1L << 2;=0A=
static const category time =3D 1L << 3;=0A=
static const category monetary =3D 1L << 4;=0A=
static const category messages =3D 1L << 5;=0A=
static const category all =3D (collate | ctype | monetary |=0A=
numeric | time | messages);=0A=
=0A=
=0A=
locale() throw();=0A=
=0A=
locale(const locale& __other) throw();=0A=
=0A=
explicit=0A=
locale(const char* __s);=0A=
=0A=
locale(const locale& __base, const char* __s, category __cat);=0A=
=0A=
locale(const locale& __base, const locale& __add, category __cat);=0A=
=0A=
template<typename _Facet>=0A=
locale(const locale& __other, _Facet* __f);=0A=
=0A=
~locale() throw();=0A=
=0A=
const locale&=0A=
operator=3D(const locale& __other) throw();=0A=
=0A=
template<typename _Facet>=0A=
locale=0A=
combine(const locale& __other) const;=0A=
=0A=
=0A=
string=0A=
name() const;=0A=
=0A=
bool=0A=
operator=3D=3D(const locale& __other) const throw ();=0A=
=0A=
inline bool=0A=
operator!=3D(const locale& __other) const throw ()=0A=
{ return !(this->operator=3D=3D(__other)); }=0A=
=0A=
template<typename _Char, typename _Traits, typename _Alloc>=0A=
bool=0A=
operator()(const basic_string<_Char, _Traits, _Alloc>& __s1,=0A=
const basic_string<_Char, _Traits, _Alloc>& __s2) const;=0A=
=0A=
=0A=
static locale=0A=
global(const locale&);=0A=
=0A=
static const locale&=0A=
classic();=0A=
=0A=
private:=0A=
=0A=
_Impl* _M_impl;=0A=
=0A=
=0A=
static _Impl* _S_classic;=0A=
=0A=
=0A=
static _Impl* _S_global;=0A=
=0A=
static const size_t _S_num_categories =3D 6;=0A=
=0A=
explicit=0A=
locale(_Impl*) throw();=0A=
=0A=
static inline void=0A=
_S_initialize()=0A=
{=0A=
if (!_S_classic)=0A=
classic();=0A=
}=0A=
=0A=
static category=0A=
_S_normalize_category(category);=0A=
=0A=
void=0A=
_M_coalesce(const locale& __base, const locale& __add, category =
__cat);=0A=
};=0A=
=0A=
=0A=
=0A=
class locale::_Impl=0A=
{=0A=
public:=0A=
=0A=
friend class locale;=0A=
friend class locale::facet;=0A=
=0A=
template<typename _Facet>=0A=
friend const _Facet&=0A=
use_facet(const locale&);=0A=
=0A=
template<typename _Facet>=0A=
friend bool=0A=
has_facet(const locale&) throw();=0A=
=0A=
private:=0A=
=0A=
_Atomic_word _M_references;=0A=
facet** _M_facets;=0A=
size_t _M_facets_size;=0A=
const char* _M_names[_S_num_categories];=0A=
static const locale::id* const _S_id_ctype[];=0A=
static const locale::id* const _S_id_numeric[];=0A=
static const locale::id* const _S_id_collate[];=0A=
static const locale::id* const _S_id_time[];=0A=
static const locale::id* const _S_id_monetary[];=0A=
static const locale::id* const _S_id_messages[];=0A=
static const locale::id* const* const _S_facet_categories[];=0A=
=0A=
inline void=0A=
_M_add_reference() throw()=0A=
{ __atomic_add(&_M_references, 1); }=0A=
=0A=
inline void=0A=
_M_remove_reference() throw()=0A=
{=0A=
if (__exchange_and_add(&_M_references, -1) =3D=3D 1)=0A=
{=0A=
try=0A=
{ delete this; }=0A=
catch(...)=0A=
{ }=0A=
}=0A=
}=0A=
=0A=
_Impl(const _Impl&, size_t);=0A=
_Impl(const char*, size_t);=0A=
_Impl(facet**, size_t, bool);=0A=
=0A=
~_Impl() throw();=0A=
=0A=
_Impl(const _Impl&);=0A=
=0A=
void=0A=
operator=3D(const _Impl&);=0A=
=0A=
inline bool=0A=
_M_check_same_name()=0A=
{=0A=
bool __ret =3D true;=0A=
for (size_t i =3D 0; __ret && i < _S_num_categories - 1; ++i)=0A=
__ret &=3D (strcmp(_M_names[i], _M_names[i + 1]) =3D=3D 0);=0A=
return __ret;=0A=
}=0A=
=0A=
void=0A=
_M_replace_categories(const _Impl*, category);=0A=
=0A=
void=0A=
_M_replace_category(const _Impl*, const locale::id* const*);=0A=
=0A=
void=0A=
_M_replace_facet(const _Impl*, const locale::id*);=0A=
=0A=
void=0A=
_M_install_facet(const locale::id*, facet*);=0A=
=0A=
template<typename _Facet>=0A=
inline void=0A=
_M_init_facet(_Facet* __facet)=0A=
{ _M_install_facet(&_Facet::id, __facet); }=0A=
};=0A=
=0A=
template<typename _Facet>=0A=
locale::locale(const locale& __other, _Facet* __f)=0A=
{=0A=
_M_impl =3D new _Impl(*__other._M_impl, 1);=0A=
_M_impl->_M_install_facet(&_Facet::id, __f);=0A=
for (size_t __i =3D 0; __i < _S_num_categories; ++__i)=0A=
_M_impl->_M_names[__i] =3D "*";=0A=
}=0A=
=0A=
=0A=
class locale::facet=0A=
{=0A=
private:=0A=
friend class locale;=0A=
friend class locale::_Impl;=0A=
=0A=
_Atomic_word _M_references;=0A=
=0A=
protected:=0A=
=0A=
=0A=
static __c_locale _S_c_locale;=0A=
=0A=
explicit=0A=
facet(size_t __refs =3D 0) throw();=0A=
=0A=
virtual=0A=
~facet();=0A=
=0A=
static void=0A=
_S_create_c_locale(__c_locale& __cloc, const char* __s,=0A=
__c_locale __old =3D 0);=0A=
=0A=
static __c_locale=0A=
_S_clone_c_locale(__c_locale& __cloc);=0A=
=0A=
static void=0A=
_S_destroy_c_locale(__c_locale& __cloc);=0A=
=0A=
private:=0A=
void=0A=
_M_add_reference() throw();=0A=
=0A=
void=0A=
_M_remove_reference() throw();=0A=
=0A=
facet(const facet&);=0A=
=0A=
void=0A=
operator=3D(const facet&);=0A=
};=0A=
=0A=
=0A=
=0A=
class locale::id=0A=
{=0A=
private:=0A=
friend class locale;=0A=
friend class locale::_Impl;=0A=
template<typename _Facet>=0A=
friend const _Facet&=0A=
use_facet(const locale&);=0A=
template<typename _Facet>=0A=
friend bool=0A=
has_facet(const locale&) throw ();=0A=
=0A=
=0A=
=0A=
=0A=
mutable size_t _M_index;=0A=
=0A=
=0A=
static _Atomic_word _S_highwater;=0A=
=0A=
void=0A=
operator=3D(const id&);=0A=
=0A=
id(const id&);=0A=
=0A=
public:=0A=
=0A=
=0A=
id();=0A=
=0A=
inline size_t=0A=
_M_id() const=0A=
{=0A=
if (!_M_index)=0A=
_M_index =3D 1 + __exchange_and_add(&_S_highwater, 1);=0A=
return _M_index - 1;=0A=
}=0A=
};=0A=
=0A=
template<typename _Facet>=0A=
const _Facet&=0A=
use_facet(const locale& __loc);=0A=
=0A=
template<typename _Facet>=0A=
bool=0A=
has_facet(const locale& __loc) throw();=0A=
}=0A=
# 49 "/usr/local/include/g++-v3/ios" 2 3=0A=
# 1 "/usr/local/include/g++-v3/bits/ios_base.h" 1 3=0A=
# 44 "/usr/local/include/g++-v3/bits/ios_base.h" 3=0A=
=0A=
=0A=
=0A=
namespace std=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
enum _Ios_Fmtflags { _M_ios_fmtflags_end =3D 1L << 16 };=0A=
=0A=
inline _Ios_Fmtflags=0A=
operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b)=0A=
{ return _Ios_Fmtflags(static_cast<int>(__a) & static_cast<int>(__b)); =
}=0A=
=0A=
inline _Ios_Fmtflags=0A=
operator|(_Ios_Fmtflags __a, _Ios_Fmtflags __b)=0A=
{ return _Ios_Fmtflags(static_cast<int>(__a) | static_cast<int>(__b)); =
}=0A=
=0A=
inline _Ios_Fmtflags=0A=
operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b)=0A=
{ return _Ios_Fmtflags(static_cast<int>(__a) ^ static_cast<int>(__b)); =
}=0A=
=0A=
inline _Ios_Fmtflags=0A=
operator|=3D(_Ios_Fmtflags& __a, _Ios_Fmtflags __b)=0A=
{ return __a =3D __a | __b; }=0A=
=0A=
inline _Ios_Fmtflags=0A=
operator&=3D(_Ios_Fmtflags& __a, _Ios_Fmtflags __b)=0A=
{ return __a =3D __a & __b; }=0A=
=0A=
inline _Ios_Fmtflags=0A=
operator^=3D(_Ios_Fmtflags& __a, _Ios_Fmtflags __b)=0A=
{ return __a =3D __a ^ __b; }=0A=
=0A=
inline _Ios_Fmtflags=0A=
operator~(_Ios_Fmtflags __a)=0A=
{ return _Ios_Fmtflags(~static_cast<int>(__a)); }=0A=
=0A=
=0A=
enum _Ios_Openmode { _M_ios_openmode_end =3D 1L << 16 };=0A=
=0A=
inline _Ios_Openmode=0A=
operator&(_Ios_Openmode __a, _Ios_Openmode __b)=0A=
{ return _Ios_Openmode(static_cast<int>(__a) & static_cast<int>(__b)); =
}=0A=
=0A=
inline _Ios_Openmode=0A=
operator|(_Ios_Openmode __a, _Ios_Openmode __b)=0A=
{ return _Ios_Openmode(static_cast<int>(__a) | static_cast<int>(__b)); =
}=0A=
=0A=
inline _Ios_Openmode=0A=
operator^(_Ios_Openmode __a, _Ios_Openmode __b)=0A=
{ return _Ios_Openmode(static_cast<int>(__a) ^ static_cast<int>(__b)); =
}=0A=
=0A=
inline _Ios_Openmode=0A=
operator|=3D(_Ios_Openmode& __a, _Ios_Openmode __b)=0A=
{ return __a =3D __a | __b; }=0A=
=0A=
inline _Ios_Openmode=0A=
operator&=3D(_Ios_Openmode& __a, _Ios_Openmode __b)=0A=
{ return __a =3D __a & __b; }=0A=
=0A=
inline _Ios_Openmode=0A=
operator^=3D(_Ios_Openmode& __a, _Ios_Openmode __b)=0A=
{ return __a =3D __a ^ __b; }=0A=
=0A=
inline _Ios_Openmode=0A=
operator~(_Ios_Openmode __a)=0A=
{ return _Ios_Openmode(~static_cast<int>(__a)); }=0A=
=0A=
=0A=
enum _Ios_Iostate { _M_ios_iostate_end =3D 1L << 16 };=0A=
=0A=
inline _Ios_Iostate=0A=
operator&(_Ios_Iostate __a, _Ios_Iostate __b)=0A=
{ return _Ios_Iostate(static_cast<int>(__a) & static_cast<int>(__b)); }=0A=
=0A=
inline _Ios_Iostate=0A=
operator|(_Ios_Iostate __a, _Ios_Iostate __b)=0A=
{ return _Ios_Iostate(static_cast<int>(__a) | static_cast<int>(__b)); }=0A=
=0A=
inline _Ios_Iostate=0A=
operator^(_Ios_Iostate __a, _Ios_Iostate __b)=0A=
{ return _Ios_Iostate(static_cast<int>(__a) ^ static_cast<int>(__b)); }=0A=
=0A=
inline _Ios_Iostate=0A=
operator|=3D(_Ios_Iostate& __a, _Ios_Iostate __b)=0A=
{ return __a =3D __a | __b; }=0A=
=0A=
inline _Ios_Iostate=0A=
operator&=3D(_Ios_Iostate& __a, _Ios_Iostate __b)=0A=
{ return __a =3D __a & __b; }=0A=
=0A=
inline _Ios_Iostate=0A=
operator^=3D(_Ios_Iostate& __a, _Ios_Iostate __b)=0A=
{ return __a =3D __a ^ __b; }=0A=
=0A=
inline _Ios_Iostate=0A=
operator~(_Ios_Iostate __a)=0A=
{ return _Ios_Iostate(~static_cast<int>(__a)); }=0A=
=0A=
enum _Ios_Seekdir { _M_ios_seekdir_end =3D 1L << 16 };=0A=
=0A=
=0A=
class ios_base=0A=
{=0A=
public:=0A=
=0A=
=0A=
class failure : public exception=0A=
{=0A=
public:=0A=
=0A=
=0A=
explicit=0A=
failure(const string& __str) throw();=0A=
=0A=
=0A=
=0A=
virtual=0A=
~failure() throw();=0A=
=0A=
virtual const char*=0A=
what() const throw();=0A=
=0A=
private:=0A=
enum { _M_bufsize =3D 256 };=0A=
char _M_name[_M_bufsize];=0A=
=0A=
};=0A=
=0A=
=0A=
typedef _Ios_Fmtflags fmtflags;=0A=
=0A=
static const fmtflags boolalpha =3D =
fmtflags(__ios_flags::_S_boolalpha);=0A=
static const fmtflags dec =3D fmtflags(__ios_flags::_S_dec);=0A=
static const fmtflags fixed =3D fmtflags(__ios_flags::_S_fixed);=0A=
static const fmtflags hex =3D fmtflags(__ios_flags::_S_hex);=0A=
static const fmtflags internal =3D =
fmtflags(__ios_flags::_S_internal);=0A=
static const fmtflags left =3D fmtflags(__ios_flags::_S_left);=0A=
static const fmtflags oct =3D fmtflags(__ios_flags::_S_oct);=0A=
static const fmtflags right =3D fmtflags(__ios_flags::_S_right);=0A=
static const fmtflags scientific =3D =
fmtflags(__ios_flags::_S_scientific);=0A=
static const fmtflags showbase =3D =
fmtflags(__ios_flags::_S_showbase);=0A=
static const fmtflags showpoint =3D =
fmtflags(__ios_flags::_S_showpoint);=0A=
static const fmtflags showpos =3D fmtflags(__ios_flags::_S_showpos);=0A=
static const fmtflags skipws =3D fmtflags(__ios_flags::_S_skipws);=0A=
static const fmtflags unitbuf =3D fmtflags(__ios_flags::_S_unitbuf);=0A=
static const fmtflags uppercase =3D =
fmtflags(__ios_flags::_S_uppercase);=0A=
static const fmtflags adjustfield =3D =
fmtflags(__ios_flags::_S_adjustfield);=0A=
static const fmtflags basefield =3D =
fmtflags(__ios_flags::_S_basefield);=0A=
static const fmtflags floatfield =3D =
fmtflags(__ios_flags::_S_floatfield);=0A=
=0A=
=0A=
typedef _Ios_Iostate iostate;=0A=
static const iostate badbit =3D iostate(__ios_flags::_S_badbit);=0A=
static const iostate eofbit =3D iostate(__ios_flags::_S_eofbit);=0A=
static const iostate failbit =3D iostate(__ios_flags::_S_failbit);=0A=
static const iostate goodbit =3D iostate(0);=0A=
=0A=
=0A=
typedef _Ios_Openmode openmode;=0A=
static const openmode app =3D openmode(__ios_flags::_S_app);=0A=
static const openmode ate =3D openmode(__ios_flags::_S_ate);=0A=
static const openmode binary =3D openmode(__ios_flags::_S_bin);=0A=
static const openmode in =3D openmode(__ios_flags::_S_in);=0A=
static const openmode out =3D openmode(__ios_flags::_S_out);=0A=
static const openmode trunc =3D openmode(__ios_flags::_S_trunc);=0A=
=0A=
=0A=
typedef _Ios_Seekdir seekdir;=0A=
static const seekdir beg =3D seekdir(0);=0A=
static const seekdir cur =3D seekdir(1);=0A=
static const seekdir end =3D seekdir(2);=0A=
# 226 "/usr/local/include/g++-v3/bits/ios_base.h" 3=0A=
enum event=0A=
{=0A=
erase_event,=0A=
imbue_event,=0A=
copyfmt_event=0A=
};=0A=
=0A=
typedef void (*event_callback) (event, ios_base&, int);=0A=
=0A=
void=0A=
register_callback(event_callback __fn, int __index);=0A=
=0A=
protected:=0A=
=0A=
streamsize _M_precision;=0A=
streamsize _M_width;=0A=
fmtflags _M_flags;=0A=
iostate _M_exception;=0A=
iostate _M_streambuf_state;=0A=
=0A=
=0A=
=0A=
struct _Callback_list=0A=
{=0A=
=0A=
_Callback_list* _M_next;=0A=
ios_base::event_callback _M_fn;=0A=
int _M_index;=0A=
_Atomic_word _M_refcount;=0A=
=0A=
_Callback_list(ios_base::event_callback __fn, int __index,=0A=
_Callback_list* __cb)=0A=
: _M_next(__cb), _M_fn(__fn), _M_index(__index), _M_refcount(0) { }=0A=
=0A=
void=0A=
_M_add_reference() { __atomic_add(&_M_refcount, 1); }=0A=
=0A=
=0A=
int=0A=
_M_remove_reference() { return __exchange_and_add(&_M_refcount, =
-1); }=0A=
};=0A=
=0A=
_Callback_list* _M_callbacks;=0A=
=0A=
void=0A=
_M_call_callbacks(event __ev) throw();=0A=
=0A=
void=0A=
_M_dispose_callbacks(void);=0A=
=0A=
=0A=
struct _Words=0A=
{=0A=
void* _M_pword;=0A=
long _M_iword;=0A=
_Words() : _M_pword(0), _M_iword(0) { }=0A=
};=0A=
=0A=
=0A=
_Words _M_word_zero;=0A=
=0A=
=0A=
static const int _S_local_word_size =3D 8;=0A=
_Words _M_local_word[_S_local_word_size];=0A=
=0A=
=0A=
int _M_word_size;=0A=
_Words* _M_word;=0A=
=0A=
_Words&=0A=
_M_grow_words(int __index);=0A=
=0A=
=0A=
locale _M_ios_locale;=0A=
=0A=
void=0A=
_M_init();=0A=
=0A=
public:=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
class Init=0A=
{=0A=
friend class ios_base;=0A=
public:=0A=
Init();=0A=
~Init();=0A=
=0A=
static void=0A=
_S_ios_create(bool __sync);=0A=
=0A=
static void=0A=
_S_ios_destroy();=0A=
=0A=
private:=0A=
static int _S_ios_base_init;=0A=
static bool _S_synced_with_stdio;=0A=
};=0A=
=0A=
=0A=
inline fmtflags=0A=
flags() const { return _M_flags; }=0A=
=0A=
inline fmtflags=0A=
flags(fmtflags __fmtfl)=0A=
{=0A=
fmtflags __old =3D _M_flags;=0A=
_M_flags =3D __fmtfl;=0A=
return __old;=0A=
}=0A=
=0A=
inline fmtflags=0A=
setf(fmtflags __fmtfl)=0A=
{=0A=
fmtflags __old =3D _M_flags;=0A=
_M_flags |=3D __fmtfl;=0A=
return __old;=0A=
}=0A=
=0A=
inline fmtflags=0A=
setf(fmtflags __fmtfl, fmtflags __mask)=0A=
{=0A=
fmtflags __old =3D _M_flags;=0A=
_M_flags &=3D ~__mask;=0A=
_M_flags |=3D (__fmtfl & __mask);=0A=
return __old;=0A=
}=0A=
=0A=
inline void=0A=
unsetf(fmtflags __mask) { _M_flags &=3D ~__mask; }=0A=
=0A=
inline streamsize=0A=
precision() const { return _M_precision; }=0A=
=0A=
inline streamsize=0A=
precision(streamsize __prec)=0A=
{=0A=
streamsize __old =3D _M_precision;=0A=
_M_precision =3D __prec;=0A=
return __old;=0A=
}=0A=
=0A=
inline streamsize=0A=
width() const { return _M_width; }=0A=
=0A=
inline streamsize=0A=
width(streamsize __wide)=0A=
{=0A=
streamsize __old =3D _M_width;=0A=
_M_width =3D __wide;=0A=
return __old;=0A=
}=0A=
=0A=
static bool=0A=
sync_with_stdio(bool __sync =3D true);=0A=
=0A=
=0A=
locale=0A=
imbue(const locale& __loc);=0A=
=0A=
inline locale=0A=
getloc() const { return _M_ios_locale; }=0A=
=0A=
=0A=
static int=0A=
xalloc() throw();=0A=
=0A=
inline long&=0A=
iword(int __ix)=0A=
{=0A=
_Words& __word =3D (__ix < _M_word_size)=0A=
? _M_word[__ix] : _M_grow_words(__ix);=0A=
return __word._M_iword;=0A=
}=0A=
=0A=
inline void*&=0A=
pword(int __ix)=0A=
{=0A=
_Words& __word =3D (__ix < _M_word_size)=0A=
? _M_word[__ix] : _M_grow_words(__ix);=0A=
return __word._M_pword;=0A=
}=0A=
=0A=
=0A=
~ios_base();=0A=
=0A=
protected:=0A=
ios_base();=0A=
=0A=
=0A=
=0A=
private:=0A=
ios_base(const ios_base&);=0A=
=0A=
ios_base&=0A=
operator=3D(const ios_base&);=0A=
=0A=
};=0A=
=0A=
=0A=
inline ios_base&=0A=
boolalpha(ios_base& __base)=0A=
{=0A=
__base.setf(ios_base::boolalpha);=0A=
return __base;=0A=
}=0A=
=0A=
inline ios_base&=0A=
noboolalpha(ios_base& __base)=0A=
{=0A=
__base.unsetf(ios_base::boolalpha);=0A=
return __base;=0A=
}=0A=
=0A=
inline ios_base&=0A=
showbase(ios_base& __base)=0A=
{=0A=
__base.setf(ios_base::showbase);=0A=
return __base;=0A=
}=0A=
=0A=
inline ios_base&=0A=
noshowbase(ios_base& __base)=0A=
{=0A=
__base.unsetf(ios_base::showbase);=0A=
return __base;=0A=
}=0A=
=0A=
inline ios_base&=0A=
showpoint(ios_base& __base)=0A=
{=0A=
__base.setf(ios_base::showpoint);=0A=
return __base;=0A=
}=0A=
=0A=
inline ios_base&=0A=
noshowpoint(ios_base& __base)=0A=
{=0A=
__base.unsetf(ios_base::showpoint);=0A=
return __base;=0A=
}=0A=
=0A=
inline ios_base&=0A=
showpos(ios_base& __base)=0A=
{=0A=
__base.setf(ios_base::showpos);=0A=
return __base;=0A=
}=0A=
=0A=
inline ios_base&=0A=
noshowpos(ios_base& __base)=0A=
{=0A=
__base.unsetf(ios_base::showpos);=0A=
return __base;=0A=
}=0A=
=0A=
inline ios_base&=0A=
skipws(ios_base& __base)=0A=
{=0A=
__base.setf(ios_base::skipws);=0A=
return __base;=0A=
}=0A=
=0A=
inline ios_base&=0A=
noskipws(ios_base& __base)=0A=
{=0A=
__base.unsetf(ios_base::skipws);=0A=
return __base;=0A=
}=0A=
=0A=
inline ios_base&=0A=
uppercase(ios_base& __base)=0A=
{=0A=
__base.setf(ios_base::uppercase);=0A=
return __base;=0A=
}=0A=
=0A=
inline ios_base&=0A=
nouppercase(ios_base& __base)=0A=
{=0A=
__base.unsetf(ios_base::uppercase);=0A=
return __base;=0A=
}=0A=
=0A=
inline ios_base&=0A=
unitbuf(ios_base& __base)=0A=
{=0A=
__base.setf(ios_base::unitbuf);=0A=
return __base;=0A=
}=0A=
=0A=
inline ios_base&=0A=
nounitbuf(ios_base& __base)=0A=
{=0A=
__base.unsetf(ios_base::unitbuf);=0A=
return __base;=0A=
}=0A=
=0A=
=0A=
inline ios_base&=0A=
internal(ios_base& __base)=0A=
{=0A=
__base.setf(ios_base::internal, ios_base::adjustfield);=0A=
return __base;=0A=
}=0A=
=0A=
inline ios_base&=0A=
left(ios_base& __base)=0A=
{=0A=
__base.setf(ios_base::left, ios_base::adjustfield);=0A=
return __base;=0A=
}=0A=
=0A=
inline ios_base&=0A=
right(ios_base& __base)=0A=
{=0A=
__base.setf(ios_base::right, ios_base::adjustfield);=0A=
return __base;=0A=
}=0A=
=0A=
=0A=
inline ios_base&=0A=
dec(ios_base& __base)=0A=
{=0A=
__base.setf(ios_base::dec, ios_base::basefield);=0A=
return __base;=0A=
}=0A=
=0A=
inline ios_base&=0A=
hex(ios_base& __base)=0A=
{=0A=
__base.setf(ios_base::hex, ios_base::basefield);=0A=
return __base;=0A=
}=0A=
=0A=
inline ios_base&=0A=
oct(ios_base& __base)=0A=
{=0A=
__base.setf(ios_base::oct, ios_base::basefield);=0A=
return __base;=0A=
}=0A=
=0A=
=0A=
inline ios_base&=0A=
fixed(ios_base& __base)=0A=
{=0A=
__base.setf(ios_base::fixed, ios_base::floatfield);=0A=
return __base;=0A=
}=0A=
=0A=
inline ios_base&=0A=
scientific(ios_base& __base)=0A=
{=0A=
__base.setf(ios_base::scientific, ios_base::floatfield);=0A=
return __base;=0A=
}=0A=
=0A=
}=0A=
# 50 "/usr/local/include/g++-v3/ios" 2 3=0A=
# 1 "/usr/local/include/g++-v3/streambuf" 1 3=0A=
# 44 "/usr/local/include/g++-v3/streambuf" 3=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
namespace std=0A=
{=0A=
template<typename _CharT, typename _Traits>=0A=
streamsize=0A=
__copy_streambufs(basic_ios<_CharT, _Traits>& _ios,=0A=
basic_streambuf<_CharT, _Traits>* __sbin,=0A=
basic_streambuf<_CharT, _Traits>* __sbout);=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
class basic_streambuf=0A=
{=0A=
public:=0A=
=0A=
typedef _CharT char_type;=0A=
typedef _Traits traits_type;=0A=
typedef typename traits_type::int_type int_type;=0A=
typedef typename traits_type::pos_type pos_type;=0A=
typedef typename traits_type::off_type off_type;=0A=
=0A=
=0A=
typedef ctype<char_type> __ctype_type;=0A=
typedef basic_streambuf<char_type, traits_type> __streambuf_type;=0A=
=0A=
friend class basic_ios<char_type, traits_type>;=0A=
friend class basic_istream<char_type, traits_type>;=0A=
friend class basic_ostream<char_type, traits_type>;=0A=
friend class istreambuf_iterator<char_type, traits_type>;=0A=
friend class ostreambuf_iterator<char_type, traits_type>;=0A=
=0A=
friend streamsize=0A=
__copy_streambufs<>(basic_ios<char_type, traits_type>& __ios,=0A=
__streambuf_type* __sbin,__streambuf_type* =
__sbout);=0A=
=0A=
protected:=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
char_type* _M_buf;=0A=
=0A=
=0A=
int_type _M_buf_size;=0A=
=0A=
=0A=
int_type _M_buf_size_opt;=0A=
=0A=
=0A=
=0A=
bool _M_buf_unified;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
char_type* _M_in_beg;=0A=
char_type* _M_in_cur;=0A=
char_type* _M_in_end;=0A=
char_type* _M_out_beg;=0A=
char_type* _M_out_cur;=0A=
char_type* _M_out_end;=0A=
=0A=
=0A=
ios_base::openmode _M_mode;=0A=
=0A=
=0A=
locale _M_buf_locale;=0A=
=0A=
=0A=
bool _M_buf_locale_init;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
static const int_type _S_pback_size =3D 1;=0A=
char_type _M_pback[_S_pback_size];=0A=
char_type* _M_pback_cur_save;=0A=
char_type* _M_pback_end_save;=0A=
bool _M_pback_init;=0A=
=0A=
=0A=
=0A=
=0A=
void=0A=
_M_pback_create()=0A=
{=0A=
if (!_M_pback_init)=0A=
{=0A=
int_type __dist =3D _M_in_end - _M_in_cur;=0A=
int_type __len =3D min(_S_pback_size, __dist);=0A=
traits_type::copy(_M_pback, _M_in_cur, __len);=0A=
_M_pback_cur_save =3D _M_in_cur;=0A=
_M_pback_end_save =3D _M_in_end;=0A=
this->setg(_M_pback, _M_pback, _M_pback + __len);=0A=
_M_pback_init =3D true;=0A=
}=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
void=0A=
_M_pback_destroy()=0A=
{=0A=
if (_M_pback_init)=0A=
{=0A=
=0A=
int_type __off_cur =3D _M_in_cur - _M_pback;=0A=
=0A=
=0A=
int_type __off_end =3D 0;=0A=
int_type __pback_len =3D _M_in_end - _M_pback;=0A=
int_type __save_len =3D _M_pback_end_save - _M_buf;=0A=
if (__pback_len > __save_len)=0A=
__off_end =3D __pback_len - __save_len;=0A=
=0A=
this->setg(_M_buf, _M_pback_cur_save + __off_cur,=0A=
_M_pback_end_save + __off_end);=0A=
_M_pback_cur_save =3D __null;=0A=
_M_pback_end_save =3D __null;=0A=
_M_pback_init =3D false;=0A=
}=0A=
}=0A=
=0A=
=0A=
=0A=
void=0A=
_M_in_cur_move(off_type __n)=0A=
{=0A=
bool __testout =3D _M_out_cur;=0A=
_M_in_cur +=3D __n;=0A=
if (__testout && _M_buf_unified)=0A=
_M_out_cur +=3D __n;=0A=
}=0A=
# 198 "/usr/local/include/g++-v3/streambuf" 3=0A=
void=0A=
_M_out_cur_move(off_type __n)=0A=
{=0A=
bool __testin =3D _M_in_cur;=0A=
=0A=
_M_out_cur +=3D __n;=0A=
if (__testin && _M_buf_unified)=0A=
_M_in_cur +=3D __n;=0A=
if (_M_out_cur > _M_out_end)=0A=
{=0A=
_M_out_end =3D _M_out_cur;=0A=
=0A=
if (__testin)=0A=
_M_in_end +=3D __n;=0A=
}=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
off_type=0A=
_M_out_buf_size()=0A=
{=0A=
off_type __ret =3D 0;=0A=
if (_M_out_cur)=0A=
{=0A=
=0A=
if (_M_out_beg =3D=3D _M_buf)=0A=
__ret =3D _M_out_beg + _M_buf_size - _M_out_cur;=0A=
=0A=
else=0A=
__ret =3D _M_out_end - _M_out_cur;=0A=
}=0A=
return __ret;=0A=
}=0A=
=0A=
public:=0A=
virtual=0A=
~basic_streambuf()=0A=
{=0A=
_M_buf_unified =3D false;=0A=
_M_buf_size =3D 0;=0A=
_M_buf_size_opt =3D 0;=0A=
_M_mode =3D ios_base::openmode(0);=0A=
_M_buf_locale_init =3D false;=0A=
}=0A=
=0A=
=0A=
locale=0A=
pubimbue(const locale &__loc)=0A=
{=0A=
locale __tmp(this->getloc());=0A=
this->imbue(__loc);=0A=
return __tmp;=0A=
}=0A=
=0A=
locale=0A=
getloc() const=0A=
{=0A=
if (_M_buf_locale_init)=0A=
return _M_buf_locale;=0A=
else=0A=
return locale();=0A=
}=0A=
=0A=
=0A=
__streambuf_type*=0A=
pubsetbuf(char_type* __s, streamsize __n)=0A=
{ return this->setbuf(__s, __n); }=0A=
=0A=
pos_type=0A=
pubseekoff(off_type __off, ios_base::seekdir __way,=0A=
ios_base::openmode __mode =3D ios_base::in | =
ios_base::out)=0A=
{ return this->seekoff(__off, __way, __mode); }=0A=
=0A=
pos_type=0A=
pubseekpos(pos_type __sp,=0A=
ios_base::openmode __mode =3D ios_base::in | =
ios_base::out)=0A=
{ return this->seekpos(__sp, __mode); }=0A=
=0A=
int=0A=
pubsync() { return this->sync(); }=0A=
=0A=
=0A=
=0A=
streamsize=0A=
in_avail()=0A=
{=0A=
streamsize __ret;=0A=
if (_M_in_cur && _M_in_cur < _M_in_end)=0A=
{=0A=
if (_M_pback_init)=0A=
{=0A=
int_type __save_len =3D _M_pback_end_save - =
_M_pback_cur_save;=0A=
int_type __pback_len =3D _M_in_cur - _M_pback;=0A=
__ret =3D __save_len - __pback_len;=0A=
}=0A=
else=0A=
__ret =3D this->egptr() - this->gptr();=0A=
}=0A=
else=0A=
__ret =3D this->showmanyc();=0A=
return __ret;=0A=
}=0A=
=0A=
int_type=0A=
snextc()=0A=
{=0A=
int_type __eof =3D traits_type::eof();=0A=
return (this->sbumpc() =3D=3D __eof ? __eof : this->sgetc());=0A=
}=0A=
=0A=
int_type=0A=
sbumpc();=0A=
=0A=
int_type=0A=
sgetc()=0A=
{=0A=
int_type __ret;=0A=
if (_M_in_cur && _M_in_cur < _M_in_end)=0A=
__ret =3D traits_type::to_int_type(*(this->gptr()));=0A=
else=0A=
__ret =3D this->underflow();=0A=
return __ret;=0A=
}=0A=
=0A=
streamsize=0A=
sgetn(char_type* __s, streamsize __n)=0A=
{ return this->xsgetn(__s, __n); }=0A=
=0A=
=0A=
int_type=0A=
sputbackc(char_type __c);=0A=
=0A=
int_type=0A=
sungetc();=0A=
=0A=
=0A=
int_type=0A=
sputc(char_type __c);=0A=
=0A=
streamsize=0A=
sputn(const char_type* __s, streamsize __n)=0A=
{ return this->xsputn(__s, __n); }=0A=
=0A=
protected:=0A=
basic_streambuf()=0A=
: _M_buf(__null), _M_buf_size(0),=0A=
_M_buf_size_opt(static_cast<int_type>(1024)), =
_M_buf_unified(false),=0A=
_M_in_beg(0), _M_in_cur(0), _M_in_end(0), _M_out_beg(0), =
_M_out_cur(0),=0A=
_M_out_end(0), _M_mode(ios_base::openmode(0)), =
_M_buf_locale(locale()),=0A=
_M_buf_locale_init(false), _M_pback_cur_save(0), =
_M_pback_end_save(0),=0A=
_M_pback_init(false)=0A=
{ }=0A=
=0A=
=0A=
char_type*=0A=
eback() const { return _M_in_beg; }=0A=
=0A=
char_type*=0A=
gptr() const { return _M_in_cur; }=0A=
=0A=
char_type*=0A=
egptr() const { return _M_in_end; }=0A=
=0A=
void=0A=
gbump(int __n) { _M_in_cur +=3D __n; }=0A=
=0A=
void=0A=
setg(char_type* __gbeg, char_type* __gnext, char_type* __gend)=0A=
{=0A=
_M_in_beg =3D __gbeg;=0A=
_M_in_cur =3D __gnext;=0A=
_M_in_end =3D __gend;=0A=
if (!(_M_mode & ios_base::in) && __gbeg && __gnext && __gend)=0A=
_M_mode =3D _M_mode | ios_base::in;=0A=
}=0A=
=0A=
=0A=
char_type*=0A=
pbase() const { return _M_out_beg; }=0A=
=0A=
char_type*=0A=
pptr() const { return _M_out_cur; }=0A=
=0A=
char_type*=0A=
epptr() const { return _M_out_end; }=0A=
=0A=
void=0A=
pbump(int __n) { _M_out_cur +=3D __n; }=0A=
=0A=
void=0A=
setp(char_type* __pbeg, char_type* __pend)=0A=
{=0A=
_M_out_beg =3D _M_out_cur =3D __pbeg;=0A=
_M_out_end =3D __pend;=0A=
if (!(_M_mode & ios_base::out) && __pbeg && __pend)=0A=
_M_mode =3D _M_mode | ios_base::out;=0A=
}=0A=
=0A=
=0A=
=0A=
virtual void=0A=
imbue(const locale& __loc)=0A=
{=0A=
_M_buf_locale_init =3D true;=0A=
if (_M_buf_locale !=3D __loc)=0A=
_M_buf_locale =3D __loc;=0A=
}=0A=
=0A=
=0A=
virtual basic_streambuf<char_type,_Traits>*=0A=
setbuf(char_type*, streamsize)=0A=
{ return this; }=0A=
=0A=
virtual pos_type=0A=
seekoff(off_type, ios_base::seekdir,=0A=
ios_base::openmode =3D ios_base::in | ios_base::out)=0A=
{ return pos_type(off_type(-1)); }=0A=
=0A=
virtual pos_type=0A=
seekpos(pos_type,=0A=
ios_base::openmode =3D ios_base::in | ios_base::out)=0A=
{ return pos_type(off_type(-1)); }=0A=
=0A=
virtual int=0A=
sync() { return 0; }=0A=
=0A=
=0A=
virtual streamsize=0A=
showmanyc() { return 0; }=0A=
=0A=
virtual streamsize=0A=
xsgetn(char_type* __s, streamsize __n);=0A=
=0A=
virtual int_type=0A=
underflow()=0A=
{ return traits_type::eof(); }=0A=
=0A=
virtual int_type=0A=
uflow()=0A=
{=0A=
int_type __ret =3D traits_type::eof();=0A=
bool __testeof =3D this->underflow() =3D=3D __ret;=0A=
bool __testpending =3D _M_in_cur && _M_in_cur < _M_in_end;=0A=
if (!__testeof && __testpending)=0A=
{=0A=
__ret =3D traits_type::to_int_type(*_M_in_cur);=0A=
++_M_in_cur;=0A=
if (_M_buf_unified && _M_mode & ios_base::out)=0A=
++_M_out_cur;=0A=
}=0A=
return __ret;=0A=
}=0A=
=0A=
=0A=
virtual int_type=0A=
pbackfail(int_type =3D traits_type::eof())=0A=
{ return traits_type::eof(); }=0A=
=0A=
=0A=
virtual streamsize=0A=
xsputn(const char_type* __s, streamsize __n);=0A=
=0A=
virtual int_type=0A=
overflow(int_type =3D traits_type::eof())=0A=
{ return traits_type::eof(); }=0A=
# 480 "/usr/local/include/g++-v3/streambuf" 3=0A=
private:=0A=
basic_streambuf(const __streambuf_type&) { };=0A=
=0A=
__streambuf_type&=0A=
operator=3D(const __streambuf_type&) { return *this; };=0A=
=0A=
};=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
# 1 "/usr/local/include/g++-v3/bits/streambuf.tcc" 1 3=0A=
# 39 "/usr/local/include/g++-v3/bits/streambuf.tcc" 3=0A=
=0A=
namespace std=0A=
{=0A=
template<typename _CharT, typename _Traits>=0A=
const typename basic_streambuf<_CharT, _Traits>::int_type=0A=
basic_streambuf<_CharT, _Traits>::_S_pback_size;=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
typename basic_streambuf<_CharT, _Traits>::int_type=0A=
basic_streambuf<_CharT, _Traits>::=0A=
sbumpc()=0A=
{=0A=
int_type __ret;=0A=
if (_M_in_cur && _M_in_cur < _M_in_end)=0A=
{=0A=
char_type __c =3D *(this->gptr());=0A=
_M_in_cur_move(1);=0A=
__ret =3D traits_type::to_int_type(__c);=0A=
}=0A=
else=0A=
__ret =3D this->uflow();=0A=
return __ret;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
typename basic_streambuf<_CharT, _Traits>::int_type=0A=
basic_streambuf<_CharT, _Traits>::=0A=
sputbackc(char_type __c)=0A=
{=0A=
int_type __ret;=0A=
bool __testpos =3D _M_in_cur && _M_in_beg < _M_in_cur;=0A=
bool __testne =3D _M_in_cur && !traits_type::eq(__c, =
this->gptr()[-1]);=0A=
if (!__testpos || __testne)=0A=
__ret =3D pbackfail(traits_type::to_int_type(__c));=0A=
else=0A=
{=0A=
_M_in_cur_move(-1);=0A=
__ret =3D traits_type::to_int_type(*this->gptr());=0A=
}=0A=
return __ret;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
typename basic_streambuf<_CharT, _Traits>::int_type=0A=
basic_streambuf<_CharT, _Traits>::=0A=
sungetc()=0A=
{=0A=
int_type __ret;=0A=
if (_M_in_cur && _M_in_beg < _M_in_cur)=0A=
{=0A=
_M_in_cur_move(-1);=0A=
__ret =3D traits_type::to_int_type(*_M_in_cur);=0A=
}=0A=
else=0A=
__ret =3D this->pbackfail();=0A=
return __ret;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
typename basic_streambuf<_CharT, _Traits>::int_type=0A=
basic_streambuf<_CharT, _Traits>::=0A=
sputc(char_type __c)=0A=
{=0A=
int_type __ret;=0A=
if (_M_out_buf_size())=0A=
{=0A=
*_M_out_cur =3D __c;=0A=
_M_out_cur_move(1);=0A=
__ret =3D traits_type::to_int_type(__c);=0A=
}=0A=
else=0A=
__ret =3D this->overflow(traits_type::to_int_type(__c));=0A=
return __ret;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
streamsize=0A=
basic_streambuf<_CharT, _Traits>::=0A=
xsgetn(char_type* __s, streamsize __n)=0A=
{=0A=
streamsize __ret =3D 0;=0A=
while (__ret < __n)=0A=
{=0A=
size_t __buf_len =3D _M_in_end - _M_in_cur;=0A=
if (__buf_len > 0)=0A=
{=0A=
size_t __remaining =3D __n - __ret;=0A=
size_t __len =3D min(__buf_len, __remaining);=0A=
traits_type::copy(__s, _M_in_cur, __len);=0A=
__ret +=3D __len;=0A=
__s +=3D __len;=0A=
_M_in_cur_move(__len);=0A=
}=0A=
=0A=
if (__ret < __n)=0A=
{=0A=
int_type __c =3D this->uflow();=0A=
if (__c !=3D traits_type::eof())=0A=
{=0A=
traits_type::assign(*__s++, =
traits_type::to_char_type(__c));=0A=
++__ret;=0A=
}=0A=
else=0A=
break;=0A=
}=0A=
}=0A=
return __ret;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
streamsize=0A=
basic_streambuf<_CharT, _Traits>::=0A=
xsputn(const char_type* __s, streamsize __n)=0A=
{=0A=
streamsize __ret =3D 0;=0A=
while (__ret < __n)=0A=
{=0A=
off_type __buf_len =3D _M_out_buf_size();=0A=
if (__buf_len > 0)=0A=
{=0A=
off_type __remaining =3D __n - __ret;=0A=
off_type __len =3D min(__buf_len, __remaining);=0A=
traits_type::copy(_M_out_cur, __s, __len);=0A=
__ret +=3D __len;=0A=
__s +=3D __len;=0A=
_M_out_cur_move(__len);=0A=
}=0A=
=0A=
if (__ret < __n)=0A=
{=0A=
int_type __c =3D =
this->overflow(traits_type::to_int_type(*__s));=0A=
if (__c !=3D traits_type::eof())=0A=
{=0A=
++__ret;=0A=
++__s;=0A=
}=0A=
else=0A=
break;=0A=
}=0A=
}=0A=
return __ret;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
streamsize=0A=
__copy_streambufs(basic_ios<_CharT, _Traits>& __ios,=0A=
basic_streambuf<_CharT, _Traits>* __sbin,=0A=
basic_streambuf<_CharT, _Traits>* __sbout)=0A=
{=0A=
typedef typename _Traits::int_type int_type;=0A=
=0A=
streamsize __ret =3D 0;=0A=
streamsize __bufsize =3D __sbin->in_avail();=0A=
streamsize __xtrct;=0A=
bool __testput =3D __sbout->_M_mode & ios_base::out;=0A=
try=0A=
{=0A=
while (__testput && __bufsize !=3D -1)=0A=
{=0A=
__xtrct =3D __sbout->sputn(__sbin->gptr(), __bufsize);=0A=
__ret +=3D __xtrct;=0A=
__sbin->_M_in_cur_move(__xtrct);=0A=
if (__xtrct =3D=3D __bufsize)=0A=
{=0A=
if (__sbin->sgetc() =3D=3D _Traits::eof())=0A=
break;=0A=
__bufsize =3D __sbin->in_avail();=0A=
}=0A=
else=0A=
break;=0A=
}=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
__ios.setstate(ios_base::failbit);=0A=
if ((__ios.exceptions() & ios_base::failbit) !=3D 0)=0A=
throw;=0A=
}=0A=
return __ret;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
extern template class basic_streambuf<char>;=0A=
extern template=0A=
streamsize=0A=
__copy_streambufs(basic_ios<char>&, basic_streambuf<char>*,=0A=
basic_streambuf<char>*);=0A=
=0A=
extern template class basic_streambuf<wchar_t>;=0A=
extern template=0A=
streamsize=0A=
__copy_streambufs(basic_ios<wchar_t>&, basic_streambuf<wchar_t>*,=0A=
basic_streambuf<wchar_t>*);=0A=
}=0A=
# 494 "/usr/local/include/g++-v3/streambuf" 2 3=0A=
# 51 "/usr/local/include/g++-v3/ios" 2 3=0A=
# 1 "/usr/local/include/g++-v3/bits/basic_ios.h" 1 3=0A=
# 39 "/usr/local/include/g++-v3/bits/basic_ios.h" 3=0A=
=0A=
# 1 "/usr/local/include/g++-v3/bits/streambuf_iterator.h" 1 3=0A=
# 42 "/usr/local/include/g++-v3/bits/streambuf_iterator.h" 3=0A=
=0A=
namespace std=0A=
{=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
class istreambuf_iterator=0A=
: public iterator<input_iterator_tag, _CharT, typename =
_Traits::off_type,=0A=
_CharT*, _CharT&>=0A=
{=0A=
public:=0A=
=0A=
typedef _CharT char_type;=0A=
typedef _Traits traits_type;=0A=
typedef typename _Traits::int_type int_type;=0A=
typedef basic_streambuf<_CharT, _Traits> streambuf_type;=0A=
typedef basic_istream<_CharT, _Traits> istream_type;=0A=
=0A=
private:=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
mutable streambuf_type* _M_sbuf;=0A=
int_type _M_c;=0A=
=0A=
public:=0A=
istreambuf_iterator() throw()=0A=
: _M_sbuf(0), _M_c(-2) { }=0A=
=0A=
istreambuf_iterator(istream_type& __s) throw()=0A=
: _M_sbuf(__s.rdbuf()), _M_c(-2) { }=0A=
=0A=
istreambuf_iterator(streambuf_type* __s) throw()=0A=
: _M_sbuf(__s), _M_c(-2) { }=0A=
=0A=
=0A=
char_type=0A=
operator*() const=0A=
{ return traits_type::to_char_type(_M_get()); }=0A=
=0A=
istreambuf_iterator&=0A=
operator++()=0A=
{=0A=
if (_M_sbuf && _M_sbuf->sbumpc() =3D=3D traits_type::eof())=0A=
_M_sbuf =3D 0;=0A=
else=0A=
_M_c =3D -2;=0A=
return *this;=0A=
}=0A=
=0A=
istreambuf_iterator=0A=
operator++(int)=0A=
{=0A=
istreambuf_iterator __old =3D *this;=0A=
if (_M_sbuf && (__old._M_c =3D _M_sbuf->sbumpc()) =3D=3D =
traits_type::eof())=0A=
_M_sbuf =3D 0;=0A=
else=0A=
_M_c =3D -2;=0A=
return __old;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
bool=0A=
equal(const istreambuf_iterator& __b) const=0A=
{=0A=
const int_type __eof =3D traits_type::eof();=0A=
bool __thiseof =3D _M_get() =3D=3D __eof;=0A=
bool __beof =3D __b._M_get() =3D=3D __eof;=0A=
return (__thiseof && __beof || (!__thiseof && !__beof));=0A=
}=0A=
=0A=
=0A=
private:=0A=
int_type=0A=
_M_get() const=0A=
{=0A=
int_type __ret =3D traits_type::eof();=0A=
if (_M_sbuf)=0A=
{=0A=
if (_M_c !=3D static_cast<int_type>(-2))=0A=
__ret =3D _M_c;=0A=
else=0A=
if ((__ret =3D _M_sbuf->sgetc()) =3D=3D traits_type::eof())=0A=
_M_sbuf =3D 0;=0A=
}=0A=
return __ret;=0A=
}=0A=
};=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
inline bool=0A=
operator=3D=3D(const istreambuf_iterator<_CharT, _Traits>& __a,=0A=
const istreambuf_iterator<_CharT, _Traits>& __b)=0A=
{ return __a.equal(__b); }=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
inline bool=0A=
operator!=3D(const istreambuf_iterator<_CharT, _Traits>& __a,=0A=
const istreambuf_iterator<_CharT, _Traits>& __b)=0A=
{ return !__a.equal(__b); }=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
class ostreambuf_iterator=0A=
: public iterator<output_iterator_tag, void, void, void, void>=0A=
{=0A=
public:=0A=
=0A=
typedef _CharT char_type;=0A=
typedef _Traits traits_type;=0A=
typedef basic_streambuf<_CharT, _Traits> streambuf_type;=0A=
typedef basic_ostream<_CharT, _Traits> ostream_type;=0A=
=0A=
private:=0A=
streambuf_type* _M_sbuf;=0A=
bool _M_failed;=0A=
=0A=
public:=0A=
inline=0A=
ostreambuf_iterator(ostream_type& __s) throw ()=0A=
: _M_sbuf(__s.rdbuf()), _M_failed(!_M_sbuf) { }=0A=
=0A=
ostreambuf_iterator(streambuf_type* __s) throw ()=0A=
: _M_sbuf(__s), _M_failed(!_M_sbuf) { }=0A=
=0A=
ostreambuf_iterator&=0A=
operator=3D(_CharT __c);=0A=
=0A=
ostreambuf_iterator&=0A=
operator*() throw()=0A=
{ return *this; }=0A=
=0A=
ostreambuf_iterator&=0A=
operator++(int) throw()=0A=
{ return *this; }=0A=
=0A=
ostreambuf_iterator&=0A=
operator++() throw()=0A=
{ return *this; }=0A=
=0A=
bool=0A=
failed() const throw()=0A=
{ return _M_failed; }=0A=
};=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
inline ostreambuf_iterator<_CharT, _Traits>&=0A=
ostreambuf_iterator<_CharT, _Traits>::operator=3D(_CharT __c)=0A=
{=0A=
if (!_M_failed &&=0A=
_Traits::eq_int_type(_M_sbuf->sputc(__c), _Traits::eof()))=0A=
_M_failed =3D true;=0A=
return *this;=0A=
}=0A=
}=0A=
# 41 "/usr/local/include/g++-v3/bits/basic_ios.h" 2 3=0A=
# 1 "/usr/local/include/g++-v3/bits/locale_facets.h" 1 3=0A=
# 44 "/usr/local/include/g++-v3/bits/locale_facets.h" 3=0A=
=0A=
=0A=
# 1 "/usr/local/include/g++-v3/cwctype" 1 3=0A=
# 48 "/usr/local/include/g++-v3/cwctype" 3=0A=
# 47 "/usr/local/include/g++-v3/bits/locale_facets.h" 2 3=0A=
# 1 "/usr/local/include/g++-v3/ios" 1 3=0A=
# 48 "/usr/local/include/g++-v3/bits/locale_facets.h" 2 3=0A=
=0A=
namespace std=0A=
{=0A=
# 60 "/usr/local/include/g++-v3/bits/locale_facets.h" 3=0A=
# 1 "/usr/local/include/g++-v3/i686-pc-cygwin/bits/ctype_base.h" 1 3=0A=
# 38 "/usr/local/include/g++-v3/i686-pc-cygwin/bits/ctype_base.h" 3=0A=
struct ctype_base=0A=
{=0A=
=0A=
typedef const int* __to_type;=0A=
=0A=
=0A=
=0A=
typedef char mask;=0A=
static const mask upper =3D 01;=0A=
static const mask lower =3D 02;=0A=
static const mask alpha =3D 01 | 02;=0A=
static const mask digit =3D 04;=0A=
static const mask xdigit =3D 0100 | 04;=0A=
static const mask space =3D 010;=0A=
static const mask print =3D 020 | 01 | 02 | 04 | 0200;=0A=
static const mask graph =3D 020 | 01 | 02 | 04;=0A=
static const mask cntrl =3D 040;=0A=
static const mask punct =3D 020;=0A=
static const mask alnum =3D 01 | 02 | 04;=0A=
};=0A=
# 61 "/usr/local/include/g++-v3/bits/locale_facets.h" 2 3=0A=
=0A=
=0A=
template<typename _CharT>=0A=
class __ctype_abstract_base : public locale::facet, public ctype_base=0A=
{=0A=
public:=0A=
=0A=
typedef _CharT char_type;=0A=
=0A=
bool=0A=
is(mask __m, char_type __c) const=0A=
{ return this->do_is(__m, __c); }=0A=
=0A=
const char_type*=0A=
is(const char_type *__lo, const char_type *__hi, mask *__vec) const=0A=
{ return this->do_is(__lo, __hi, __vec); }=0A=
=0A=
const char_type*=0A=
scan_is(mask __m, const char_type* __lo, const char_type* __hi) =
const=0A=
{ return this->do_scan_is(__m, __lo, __hi); }=0A=
=0A=
const char_type*=0A=
scan_not(mask __m, const char_type* __lo, const char_type* __hi) =
const=0A=
{ return this->do_scan_not(__m, __lo, __hi); }=0A=
=0A=
char_type=0A=
toupper(char_type __c) const=0A=
{ return this->do_toupper(__c); }=0A=
=0A=
const char_type*=0A=
toupper(char_type *__lo, const char_type* __hi) const=0A=
{ return this->do_toupper(__lo, __hi); }=0A=
=0A=
char_type=0A=
tolower(char_type __c) const=0A=
{ return this->do_tolower(__c); }=0A=
=0A=
const char_type*=0A=
tolower(char_type* __lo, const char_type* __hi) const=0A=
{ return this->do_tolower(__lo, __hi); }=0A=
=0A=
char_type=0A=
widen(char __c) const=0A=
{ return this->do_widen(__c); }=0A=
=0A=
const char*=0A=
widen(const char* __lo, const char* __hi, char_type* __to) const=0A=
{ return this->do_widen(__lo, __hi, __to); }=0A=
=0A=
char=0A=
narrow(char_type __c, char __dfault) const=0A=
{ return this->do_narrow(__c, __dfault); }=0A=
=0A=
const char_type*=0A=
narrow(const char_type* __lo, const char_type* __hi,=0A=
char __dfault, char *__to) const=0A=
{ return this->do_narrow(__lo, __hi, __dfault, __to); }=0A=
=0A=
protected:=0A=
explicit=0A=
__ctype_abstract_base(size_t __refs =3D 0): locale::facet(__refs) =
{ }=0A=
=0A=
virtual=0A=
~__ctype_abstract_base() { }=0A=
=0A=
virtual bool=0A=
do_is(mask __m, char_type __c) const =3D 0;=0A=
=0A=
virtual const char_type*=0A=
do_is(const char_type* __lo, const char_type* __hi,=0A=
mask* __vec) const =3D 0;=0A=
=0A=
virtual const char_type*=0A=
do_scan_is(mask __m, const char_type* __lo,=0A=
const char_type* __hi) const =3D 0;=0A=
=0A=
virtual const char_type*=0A=
do_scan_not(mask __m, const char_type* __lo,=0A=
const char_type* __hi) const =3D 0;=0A=
=0A=
virtual char_type=0A=
do_toupper(char_type) const =3D 0;=0A=
=0A=
virtual const char_type*=0A=
do_toupper(char_type* __lo, const char_type* __hi) const =3D 0;=0A=
=0A=
virtual char_type=0A=
do_tolower(char_type) const =3D 0;=0A=
=0A=
virtual const char_type*=0A=
do_tolower(char_type* __lo, const char_type* __hi) const =3D 0;=0A=
=0A=
virtual char_type=0A=
do_widen(char) const =3D 0;=0A=
=0A=
virtual const char*=0A=
do_widen(const char* __lo, const char* __hi,=0A=
char_type* __dest) const =3D 0;=0A=
=0A=
virtual char=0A=
do_narrow(char_type, char __dfault) const =3D 0;=0A=
=0A=
virtual const char_type*=0A=
do_narrow(const char_type* __lo, const char_type* __hi,=0A=
char __dfault, char* __dest) const =3D 0;=0A=
};=0A=
=0A=
=0A=
template<typename _CharT>=0A=
class ctype : public __ctype_abstract_base<_CharT>=0A=
{=0A=
public:=0A=
=0A=
typedef _CharT char_type;=0A=
typedef typename ctype::mask mask;=0A=
=0A=
static locale::id id;=0A=
=0A=
explicit=0A=
ctype(size_t __refs =3D 0) : __ctype_abstract_base<_CharT>(__refs) =
{ }=0A=
=0A=
protected:=0A=
virtual=0A=
~ctype();=0A=
=0A=
virtual bool=0A=
do_is(mask __m, char_type __c) const;=0A=
=0A=
virtual const char_type*=0A=
do_is(const char_type* __lo, const char_type* __hi, mask* __vec) =
const;=0A=
=0A=
virtual const char_type*=0A=
do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) =
const;=0A=
=0A=
virtual const char_type*=0A=
do_scan_not(mask __m, const char_type* __lo,=0A=
const char_type* __hi) const;=0A=
=0A=
virtual char_type=0A=
do_toupper(char_type __c) const;=0A=
=0A=
virtual const char_type*=0A=
do_toupper(char_type* __lo, const char_type* __hi) const;=0A=
=0A=
virtual char_type=0A=
do_tolower(char_type __c) const;=0A=
=0A=
virtual const char_type*=0A=
do_tolower(char_type* __lo, const char_type* __hi) const;=0A=
=0A=
virtual char_type=0A=
do_widen(char __c) const;=0A=
=0A=
virtual const char*=0A=
do_widen(const char* __lo, const char* __hi, char_type* __dest) =
const;=0A=
=0A=
virtual char=0A=
do_narrow(char_type, char __dfault) const;=0A=
=0A=
virtual const char_type*=0A=
do_narrow(const char_type* __lo, const char_type* __hi,=0A=
char __dfault, char* __dest) const;=0A=
};=0A=
=0A=
template<typename _CharT>=0A=
locale::id ctype<_CharT>::id;=0A=
=0A=
=0A=
template<>=0A=
class ctype<char> : public __ctype_abstract_base<char>=0A=
{=0A=
public:=0A=
=0A=
typedef char char_type;=0A=
=0A=
protected:=0A=
=0A=
__c_locale _M_c_locale_ctype;=0A=
bool _M_del;=0A=
__to_type _M_toupper;=0A=
__to_type _M_tolower;=0A=
const mask* _M_table;=0A=
=0A=
public:=0A=
static locale::id id;=0A=
static const size_t table_size =3D 1 + static_cast<unsigned =
char>(-1);=0A=
=0A=
explicit=0A=
ctype(const mask* __table =3D 0, bool __del =3D false, size_t =
__refs =3D 0);=0A=
=0A=
explicit=0A=
ctype(__c_locale __cloc, const mask* __table =3D 0, bool __del =3D =
false,=0A=
size_t __refs =3D 0);=0A=
=0A=
inline bool=0A=
is(mask __m, char __c) const;=0A=
=0A=
inline const char*=0A=
is(const char* __lo, const char* __hi, mask* __vec) const;=0A=
=0A=
inline const char*=0A=
scan_is(mask __m, const char* __lo, const char* __hi) const;=0A=
=0A=
inline const char*=0A=
scan_not(mask __m, const char* __lo, const char* __hi) const;=0A=
=0A=
protected:=0A=
const mask*=0A=
table() const throw()=0A=
{ return _M_table; }=0A=
=0A=
static const mask*=0A=
classic_table() throw();=0A=
=0A=
virtual=0A=
~ctype();=0A=
=0A=
virtual bool=0A=
do_is(mask __m, char_type __c) const;=0A=
=0A=
virtual const char_type*=0A=
do_is(const char_type* __lo, const char_type* __hi, mask* __vec) =
const;=0A=
=0A=
virtual const char_type*=0A=
do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) =
const;=0A=
=0A=
virtual const char_type*=0A=
do_scan_not(mask __m, const char_type* __lo,=0A=
const char_type* __hi) const;=0A=
=0A=
virtual char_type=0A=
do_toupper(char_type) const;=0A=
=0A=
virtual const char_type*=0A=
do_toupper(char_type* __lo, const char_type* __hi) const;=0A=
=0A=
virtual char_type=0A=
do_tolower(char_type) const;=0A=
=0A=
virtual const char_type*=0A=
do_tolower(char_type* __lo, const char_type* __hi) const;=0A=
=0A=
virtual char_type=0A=
do_widen(char) const;=0A=
=0A=
virtual const char*=0A=
do_widen(const char* __lo, const char* __hi, char_type* __dest) =
const;=0A=
=0A=
virtual char=0A=
do_narrow(char_type, char __dfault) const;=0A=
=0A=
virtual const char_type*=0A=
do_narrow(const char_type* __lo, const char_type* __hi,=0A=
char __dfault, char* __dest) const;=0A=
};=0A=
=0A=
template<>=0A=
const ctype<char>&=0A=
use_facet<ctype<char> >(const locale& __loc);=0A=
# 397 "/usr/local/include/g++-v3/bits/locale_facets.h" 3=0A=
# 1 "/usr/local/include/g++-v3/i686-pc-cygwin/bits/ctype_inline.h" 1 3=0A=
# 37 "/usr/local/include/g++-v3/i686-pc-cygwin/bits/ctype_inline.h" 3=0A=
bool=0A=
ctype<char>::=0A=
is(mask __m, char __c) const=0A=
{ return (_M_table + 1)[(unsigned char)(__c)] & __m; }=0A=
=0A=
const char*=0A=
ctype<char>::=0A=
is(const char* __low, const char* __high, mask* __vec) const=0A=
{=0A=
while (__low < __high)=0A=
*__vec++ =3D (_M_table + 1)[(unsigned char) (*__low++)];=0A=
return __high;=0A=
}=0A=
=0A=
const char*=0A=
ctype<char>::=0A=
scan_is(mask __m, const char* __low, const char* __high) const=0A=
{=0A=
while (__low < __high && !((_M_table + 1)[(unsigned char)(*__low)] & =
__m))=0A=
++__low;=0A=
return __low;=0A=
}=0A=
=0A=
const char*=0A=
ctype<char>::=0A=
scan_not(mask __m, const char* __low, const char* __high) const=0A=
{=0A=
while (__low < __high=0A=
&& ((_M_table + 1)[(unsigned char)(*__low)] & __m) !=3D 0)=0A=
++__low;=0A=
return __low;=0A=
}=0A=
# 398 "/usr/local/include/g++-v3/bits/locale_facets.h" 2 3=0A=
=0A=
=0A=
template<typename _CharT>=0A=
class ctype_byname : public ctype<_CharT>=0A=
{=0A=
public:=0A=
typedef _CharT char_type;=0A=
=0A=
explicit=0A=
ctype_byname(const char* __s, size_t __refs =3D 0);=0A=
=0A=
protected:=0A=
virtual=0A=
~ctype_byname() { };=0A=
};=0A=
=0A=
=0A=
template<>=0A=
ctype_byname<char>::ctype_byname(const char*, size_t refs);=0A=
=0A=
template<>=0A=
ctype_byname<wchar_t>::ctype_byname(const char*, size_t refs);=0A=
=0A=
=0A=
# 1 "/usr/local/include/g++-v3/bits/codecvt.h" 1 3=0A=
# 45 "/usr/local/include/g++-v3/bits/codecvt.h" 3=0A=
=0A=
=0A=
class codecvt_base=0A=
{=0A=
public:=0A=
enum result=0A=
{=0A=
ok,=0A=
partial,=0A=
error,=0A=
noconv=0A=
};=0A=
};=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _InternT, typename _ExternT, typename _StateT>=0A=
class __codecvt_abstract_base=0A=
: public locale::facet, public codecvt_base=0A=
{=0A=
public:=0A=
=0A=
typedef codecvt_base::result result;=0A=
typedef _InternT intern_type;=0A=
typedef _ExternT extern_type;=0A=
typedef _StateT state_type;=0A=
=0A=
=0A=
result=0A=
out(state_type& __state, const intern_type* __from,=0A=
const intern_type* __from_end, const intern_type*& __from_next,=0A=
extern_type* __to, extern_type* __to_end,=0A=
extern_type*& __to_next) const=0A=
{=0A=
return this->do_out(__state, __from, __from_end, __from_next,=0A=
__to, __to_end, __to_next);=0A=
}=0A=
=0A=
result=0A=
unshift(state_type& __state, extern_type* __to, extern_type* =
__to_end,=0A=
extern_type*& __to_next) const=0A=
{ return this->do_unshift(__state, __to,__to_end,__to_next); }=0A=
=0A=
result=0A=
in(state_type& __state, const extern_type* __from,=0A=
const extern_type* __from_end, const extern_type*& __from_next,=0A=
intern_type* __to, intern_type* __to_end,=0A=
intern_type*& __to_next) const=0A=
{=0A=
return this->do_in(__state, __from, __from_end, __from_next,=0A=
__to, __to_end, __to_next);=0A=
}=0A=
=0A=
int=0A=
encoding() const throw()=0A=
{ return this->do_encoding(); }=0A=
=0A=
bool=0A=
always_noconv() const throw()=0A=
{ return this->do_always_noconv(); }=0A=
=0A=
int=0A=
length(const state_type& __state, const extern_type* __from,=0A=
const extern_type* __end, size_t __max) const=0A=
{ return this->do_length(__state, __from, __end, __max); }=0A=
=0A=
int=0A=
max_length() const throw()=0A=
{ return this->do_max_length(); }=0A=
=0A=
protected:=0A=
explicit=0A=
__codecvt_abstract_base(size_t __refs =3D 0) : =
locale::facet(__refs) { }=0A=
=0A=
virtual=0A=
~__codecvt_abstract_base() { }=0A=
=0A=
virtual result=0A=
do_out(state_type& __state, const intern_type* __from,=0A=
const intern_type* __from_end, const intern_type*& =
__from_next,=0A=
extern_type* __to, extern_type* __to_end,=0A=
extern_type*& __to_next) const =3D 0;=0A=
=0A=
virtual result=0A=
do_unshift(state_type& __state, extern_type* __to,=0A=
extern_type* __to_end, extern_type*& __to_next) const =
=3D 0;=0A=
=0A=
virtual result=0A=
do_in(state_type& __state, const extern_type* __from,=0A=
const extern_type* __from_end, const extern_type*& =
__from_next,=0A=
intern_type* __to, intern_type* __to_end,=0A=
intern_type*& __to_next) const =3D 0;=0A=
=0A=
virtual int=0A=
do_encoding() const throw() =3D 0;=0A=
=0A=
virtual bool=0A=
do_always_noconv() const throw() =3D 0;=0A=
=0A=
virtual int=0A=
do_length(const state_type&, const extern_type* __from,=0A=
const extern_type* __end, size_t __max) const =3D 0;=0A=
=0A=
virtual int=0A=
do_max_length() const throw() =3D 0;=0A=
};=0A=
=0A=
=0A=
=0A=
template<typename _InternT, typename _ExternT, typename _StateT>=0A=
class codecvt=0A=
: public __codecvt_abstract_base<_InternT, _ExternT, _StateT>=0A=
{=0A=
public:=0A=
=0A=
typedef codecvt_base::result result;=0A=
typedef _InternT intern_type;=0A=
typedef _ExternT extern_type;=0A=
typedef _StateT state_type;=0A=
=0A=
=0A=
static locale::id id;=0A=
=0A=
explicit=0A=
codecvt(size_t __refs =3D 0)=0A=
: __codecvt_abstract_base<_InternT,_ExternT,_StateT> (__refs) { }=0A=
=0A=
protected:=0A=
virtual=0A=
~codecvt() { }=0A=
=0A=
virtual result=0A=
do_out(state_type& __state, const intern_type* __from,=0A=
const intern_type* __from_end, const intern_type*& =
__from_next,=0A=
extern_type* __to, extern_type* __to_end,=0A=
extern_type*& __to_next) const;=0A=
=0A=
virtual result=0A=
do_unshift(state_type& __state, extern_type* __to,=0A=
extern_type* __to_end, extern_type*& __to_next) const;=0A=
=0A=
virtual result=0A=
do_in(state_type& __state, const extern_type* __from,=0A=
const extern_type* __from_end, const extern_type*& =
__from_next,=0A=
intern_type* __to, intern_type* __to_end,=0A=
intern_type*& __to_next) const;=0A=
=0A=
virtual int=0A=
do_encoding() const throw();=0A=
=0A=
virtual bool=0A=
do_always_noconv() const throw();=0A=
=0A=
virtual int=0A=
do_length(const state_type&, const extern_type* __from,=0A=
const extern_type* __end, size_t __max) const;=0A=
=0A=
virtual int=0A=
do_max_length() const throw();=0A=
};=0A=
=0A=
template<typename _InternT, typename _ExternT, typename _StateT>=0A=
locale::id codecvt<_InternT, _ExternT, _StateT>::id;=0A=
=0A=
=0A=
template<>=0A=
class codecvt<char, char, mbstate_t>=0A=
: public __codecvt_abstract_base<char, char, mbstate_t>=0A=
{=0A=
public:=0A=
=0A=
typedef char intern_type;=0A=
typedef char extern_type;=0A=
typedef mbstate_t state_type;=0A=
=0A=
=0A=
static locale::id id;=0A=
=0A=
explicit=0A=
codecvt(size_t __refs =3D 0);=0A=
=0A=
protected:=0A=
virtual=0A=
~codecvt();=0A=
=0A=
virtual result=0A=
do_out(state_type& __state, const intern_type* __from,=0A=
const intern_type* __from_end, const intern_type*& =
__from_next,=0A=
extern_type* __to, extern_type* __to_end,=0A=
extern_type*& __to_next) const;=0A=
=0A=
virtual result=0A=
do_unshift(state_type& __state, extern_type* __to,=0A=
extern_type* __to_end, extern_type*& __to_next) const;=0A=
=0A=
virtual result=0A=
do_in(state_type& __state, const extern_type* __from,=0A=
const extern_type* __from_end, const extern_type*& =
__from_next,=0A=
intern_type* __to, intern_type* __to_end,=0A=
intern_type*& __to_next) const;=0A=
=0A=
virtual int=0A=
do_encoding() const throw();=0A=
=0A=
virtual bool=0A=
do_always_noconv() const throw();=0A=
=0A=
virtual int=0A=
do_length(const state_type&, const extern_type* __from,=0A=
const extern_type* __end, size_t __max) const;=0A=
=0A=
virtual int=0A=
do_max_length() const throw();=0A=
};=0A=
# 318 "/usr/local/include/g++-v3/bits/codecvt.h" 3=0A=
template<typename _InternT, typename _ExternT, typename _StateT>=0A=
class codecvt_byname : public codecvt<_InternT, _ExternT, _StateT>=0A=
{=0A=
public:=0A=
explicit=0A=
codecvt_byname(const char*, size_t __refs =3D 0)=0A=
: codecvt<_InternT, _ExternT, _StateT>(__refs) { }=0A=
protected:=0A=
virtual=0A=
~codecvt_byname() { }=0A=
};=0A=
# 423 "/usr/local/include/g++-v3/bits/locale_facets.h" 2 3=0A=
=0A=
=0A=
=0A=
class __num_base=0A=
{=0A=
protected:=0A=
=0A=
=0A=
static const char _S_atoms[];=0A=
=0A=
enum=0A=
{=0A=
_M_zero,=0A=
_M_e =3D _M_zero + 10,=0A=
_M_E =3D _M_zero + 11,=0A=
_M_size =3D 21 + 1=0A=
};=0A=
=0A=
=0A=
=0A=
static bool=0A=
_S_format_float(const ios_base& __io, char* __fptr, char __mod,=0A=
streamsize __prec);=0A=
=0A=
=0A=
static void=0A=
_S_format_int(const ios_base& __io, char* __fptr, char __mod, char =
__modl);=0A=
};=0A=
=0A=
=0A=
template<typename _CharT>=0A=
class numpunct : public locale::facet=0A=
{=0A=
public:=0A=
=0A=
typedef _CharT char_type;=0A=
typedef basic_string<_CharT> string_type;=0A=
=0A=
static locale::id id;=0A=
=0A=
private:=0A=
char_type _M_decimal_point;=0A=
char_type _M_thousands_sep;=0A=
const char* _M_grouping;=0A=
const char_type* _M_truename;=0A=
const char_type* _M_falsename;=0A=
=0A=
public:=0A=
explicit=0A=
numpunct(size_t __refs =3D 0) : locale::facet(__refs)=0A=
{ _M_initialize_numpunct(); }=0A=
=0A=
explicit=0A=
numpunct(__c_locale __cloc, size_t __refs =3D 0) : =
locale::facet(__refs)=0A=
{ _M_initialize_numpunct(__cloc); }=0A=
=0A=
char_type=0A=
decimal_point() const=0A=
{ return this->do_decimal_point(); }=0A=
=0A=
char_type=0A=
thousands_sep() const=0A=
{ return this->do_thousands_sep(); }=0A=
=0A=
string=0A=
grouping() const=0A=
{ return this->do_grouping(); }=0A=
=0A=
string_type=0A=
truename() const=0A=
{ return this->do_truename(); }=0A=
=0A=
string_type=0A=
falsename() const=0A=
{ return this->do_falsename(); }=0A=
=0A=
protected:=0A=
virtual=0A=
~numpunct();=0A=
=0A=
virtual char_type=0A=
do_decimal_point() const=0A=
{ return _M_decimal_point; }=0A=
=0A=
virtual char_type=0A=
do_thousands_sep() const=0A=
{ return _M_thousands_sep; }=0A=
=0A=
virtual string=0A=
do_grouping() const=0A=
{ return _M_grouping; }=0A=
=0A=
virtual string_type=0A=
do_truename() const=0A=
{ return _M_truename; }=0A=
=0A=
virtual string_type=0A=
do_falsename() const=0A=
{ return _M_falsename; }=0A=
=0A=
=0A=
void=0A=
_M_initialize_numpunct(__c_locale __cloc =3D _S_c_locale);=0A=
};=0A=
=0A=
template<typename _CharT>=0A=
locale::id numpunct<_CharT>::id;=0A=
=0A=
template<>=0A=
numpunct<char>::~numpunct();=0A=
=0A=
template<>=0A=
void=0A=
numpunct<char>::_M_initialize_numpunct(__c_locale __cloc);=0A=
# 547 "/usr/local/include/g++-v3/bits/locale_facets.h" 3=0A=
template<typename _CharT>=0A=
class numpunct_byname : public numpunct<_CharT>=0A=
{=0A=
=0A=
__c_locale _M_c_locale_numpunct;=0A=
=0A=
public:=0A=
typedef _CharT char_type;=0A=
typedef basic_string<_CharT> string_type;=0A=
=0A=
explicit=0A=
numpunct_byname(const char* __s, size_t __refs =3D 0)=0A=
: numpunct<_CharT>(__refs)=0A=
{=0A=
_S_create_c_locale(_M_c_locale_numpunct, __s);=0A=
_M_initialize_numpunct(_M_c_locale_numpunct);=0A=
}=0A=
=0A=
protected:=0A=
virtual=0A=
~numpunct_byname()=0A=
{ _S_destroy_c_locale(_M_c_locale_numpunct); }=0A=
};=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
class num_get : public locale::facet, public __num_base=0A=
{=0A=
public:=0A=
=0A=
typedef _CharT char_type;=0A=
typedef _InIter iter_type;=0A=
=0A=
static locale::id id;=0A=
=0A=
explicit=0A=
num_get(size_t __refs =3D 0) : locale::facet(__refs) { }=0A=
=0A=
iter_type=0A=
get(iter_type __in, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, bool& __v) const=0A=
{ return this->do_get(__in, __end, __io, __err, __v); }=0A=
=0A=
iter_type=0A=
get(iter_type __in, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, long& __v) const=0A=
{ return this->do_get(__in, __end, __io, __err, __v); }=0A=
=0A=
iter_type=0A=
get(iter_type __in, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, unsigned short& __v) const=0A=
{ return this->do_get(__in, __end, __io, __err, __v); }=0A=
=0A=
iter_type=0A=
get(iter_type __in, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, unsigned int& __v) const=0A=
{ return this->do_get(__in, __end, __io, __err, __v); }=0A=
=0A=
iter_type=0A=
get(iter_type __in, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, unsigned long& __v) const=0A=
{ return this->do_get(__in, __end, __io, __err, __v); }=0A=
=0A=
=0A=
iter_type=0A=
get(iter_type __in, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, long long& __v) const=0A=
{ return this->do_get(__in, __end, __io, __err, __v); }=0A=
=0A=
iter_type=0A=
get(iter_type __in, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, unsigned long long& __v) const=0A=
{ return this->do_get(__in, __end, __io, __err, __v); }=0A=
=0A=
=0A=
iter_type=0A=
get(iter_type __in, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, float& __v) const=0A=
{ return this->do_get(__in, __end, __io, __err, __v); }=0A=
=0A=
iter_type=0A=
get(iter_type __in, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, double& __v) const=0A=
{ return this->do_get(__in, __end, __io, __err, __v); }=0A=
=0A=
iter_type=0A=
get(iter_type __in, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, long double& __v) const=0A=
{ return this->do_get(__in, __end, __io, __err, __v); }=0A=
=0A=
iter_type=0A=
get(iter_type __in, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, void*& __v) const=0A=
{ return this->do_get(__in, __end, __io, __err, __v); }=0A=
=0A=
protected:=0A=
virtual ~num_get() { }=0A=
=0A=
iter_type=0A=
_M_extract_float(iter_type, iter_type, ios_base&, =
ios_base::iostate&,=0A=
string& __xtrc) const;=0A=
=0A=
iter_type=0A=
_M_extract_int(iter_type, iter_type, ios_base&, ios_base::iostate&,=0A=
string& __xtrc, int& __base) const;=0A=
=0A=
virtual iter_type=0A=
do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, bool&) =
const;=0A=
=0A=
virtual iter_type=0A=
do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, long&) =
const;=0A=
=0A=
virtual iter_type=0A=
do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err,=0A=
unsigned short&) const;=0A=
=0A=
virtual iter_type=0A=
do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err,=0A=
unsigned int&) const;=0A=
=0A=
virtual iter_type=0A=
do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err,=0A=
unsigned long&) const;=0A=
=0A=
=0A=
virtual iter_type=0A=
do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err,=0A=
long long&) const;=0A=
=0A=
virtual iter_type=0A=
do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err,=0A=
unsigned long long&) const;=0A=
=0A=
=0A=
virtual iter_type=0A=
do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err,=0A=
float&) const;=0A=
=0A=
virtual iter_type=0A=
do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err,=0A=
double&) const;=0A=
=0A=
virtual iter_type=0A=
do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err,=0A=
long double&) const;=0A=
=0A=
virtual iter_type=0A=
do_get(iter_type, iter_type, ios_base&, ios_base::iostate& __err,=0A=
void*&) const;=0A=
};=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
locale::id num_get<_CharT, _InIter>::id;=0A=
=0A=
template<typename _CharT, typename _OutIter>=0A=
class num_put : public locale::facet, public __num_base=0A=
{=0A=
public:=0A=
=0A=
typedef _CharT char_type;=0A=
typedef _OutIter iter_type;=0A=
=0A=
static locale::id id;=0A=
=0A=
explicit=0A=
num_put(size_t __refs =3D 0) : locale::facet(__refs) { }=0A=
=0A=
iter_type=0A=
put(iter_type __s, ios_base& __f, char_type __fill, bool __v) const=0A=
{ return this->do_put(__s, __f, __fill, __v); }=0A=
=0A=
iter_type=0A=
put(iter_type __s, ios_base& __f, char_type __fill, long __v) const=0A=
{ return this->do_put(__s, __f, __fill, __v); }=0A=
=0A=
iter_type=0A=
put(iter_type __s, ios_base& __f, char_type __fill,=0A=
unsigned long __v) const=0A=
{ return this->do_put(__s, __f, __fill, __v); }=0A=
=0A=
=0A=
iter_type=0A=
put(iter_type __s, ios_base& __f, char_type __fill, long long __v) =
const=0A=
{ return this->do_put(__s, __f, __fill, __v); }=0A=
=0A=
iter_type=0A=
put(iter_type __s, ios_base& __f, char_type __fill,=0A=
unsigned long long __v) const=0A=
{ return this->do_put(__s, __f, __fill, __v); }=0A=
=0A=
=0A=
iter_type=0A=
put(iter_type __s, ios_base& __f, char_type __fill, double __v) =
const=0A=
{ return this->do_put(__s, __f, __fill, __v); }=0A=
=0A=
iter_type=0A=
put(iter_type __s, ios_base& __f, char_type __fill,=0A=
long double __v) const=0A=
{ return this->do_put(__s, __f, __fill, __v); }=0A=
=0A=
iter_type=0A=
put(iter_type __s, ios_base& __f, char_type __fill,=0A=
const void* __v) const=0A=
{ return this->do_put(__s, __f, __fill, __v); }=0A=
=0A=
protected:=0A=
template<typename _ValueT>=0A=
iter_type=0A=
_M_convert_float(iter_type, ios_base& __io, char_type __fill,=0A=
char __mod, _ValueT __v) const;=0A=
=0A=
template<typename _ValueT>=0A=
iter_type=0A=
_M_convert_int(iter_type, ios_base& __io, char_type __fill,=0A=
char __mod, char __modl, _ValueT __v) const;=0A=
=0A=
iter_type=0A=
_M_widen_float(iter_type, ios_base& __io, char_type __fill, char* =
__cs,=0A=
int __len) const;=0A=
=0A=
iter_type=0A=
_M_widen_int(iter_type, ios_base& __io, char_type __fill, char* =
__cs,=0A=
int __len) const;=0A=
=0A=
iter_type=0A=
_M_insert(iter_type, ios_base& __io, char_type __fill,=0A=
const char_type* __ws, int __len) const;=0A=
=0A=
virtual=0A=
~num_put() { };=0A=
=0A=
virtual iter_type=0A=
do_put(iter_type, ios_base&, char_type __fill, bool __v) const;=0A=
=0A=
virtual iter_type=0A=
do_put(iter_type, ios_base&, char_type __fill, long __v) const;=0A=
=0A=
virtual iter_type=0A=
do_put(iter_type, ios_base&, char_type __fill, unsigned long) =
const;=0A=
=0A=
=0A=
virtual iter_type=0A=
do_put(iter_type, ios_base&, char_type __fill, long long __v) =
const;=0A=
=0A=
virtual iter_type=0A=
do_put(iter_type, ios_base&, char_type __fill, unsigned long long) =
const;=0A=
=0A=
=0A=
virtual iter_type=0A=
do_put(iter_type, ios_base&, char_type __fill, double __v) const;=0A=
=0A=
virtual iter_type=0A=
do_put(iter_type, ios_base&, char_type __fill, long double __v) =
const;=0A=
=0A=
virtual iter_type=0A=
do_put(iter_type, ios_base&, char_type __fill, const void* __v) =
const;=0A=
};=0A=
=0A=
template <typename _CharT, typename _OutIter>=0A=
locale::id num_put<_CharT, _OutIter>::id;=0A=
=0A=
=0A=
template<typename _CharT>=0A=
class collate : public locale::facet=0A=
{=0A=
public:=0A=
=0A=
typedef _CharT char_type;=0A=
typedef basic_string<_CharT> string_type;=0A=
=0A=
protected:=0A=
=0A=
=0A=
__c_locale _M_c_locale_collate;=0A=
=0A=
public:=0A=
static locale::id id;=0A=
=0A=
explicit=0A=
collate(size_t __refs =3D 0)=0A=
: locale::facet(__refs)=0A=
{ _M_c_locale_collate =3D _S_c_locale; }=0A=
=0A=
=0A=
explicit=0A=
collate(__c_locale __cloc, size_t __refs =3D 0)=0A=
: locale::facet(__refs)=0A=
{ _M_c_locale_collate =3D _S_clone_c_locale(__cloc); }=0A=
=0A=
int=0A=
compare(const _CharT* __lo1, const _CharT* __hi1,=0A=
const _CharT* __lo2, const _CharT* __hi2) const=0A=
{ return this->do_compare(__lo1, __hi1, __lo2, __hi2); }=0A=
=0A=
string_type=0A=
transform(const _CharT* __lo, const _CharT* __hi) const=0A=
{ return this->do_transform(__lo, __hi); }=0A=
=0A=
long=0A=
hash(const _CharT* __lo, const _CharT* __hi) const=0A=
{ return this->do_hash(__lo, __hi); }=0A=
=0A=
=0A=
int=0A=
_M_compare(const _CharT*, const _CharT*) const;=0A=
=0A=
size_t=0A=
_M_transform(_CharT*, const _CharT*, size_t) const;=0A=
=0A=
protected:=0A=
virtual=0A=
~collate()=0A=
{=0A=
if (_M_c_locale_collate !=3D _S_c_locale)=0A=
_S_destroy_c_locale(_M_c_locale_collate);=0A=
}=0A=
=0A=
virtual int=0A=
do_compare(const _CharT* __lo1, const _CharT* __hi1,=0A=
const _CharT* __lo2, const _CharT* __hi2) const;=0A=
=0A=
virtual string_type=0A=
do_transform(const _CharT* __lo, const _CharT* __hi) const;=0A=
=0A=
virtual long=0A=
do_hash(const _CharT* __lo, const _CharT* __hi) const;=0A=
};=0A=
=0A=
template<typename _CharT>=0A=
locale::id collate<_CharT>::id;=0A=
=0A=
=0A=
template<>=0A=
int=0A=
collate<char>::_M_compare(const char*, const char*) const;=0A=
=0A=
template<>=0A=
size_t=0A=
collate<char>::_M_transform(char*, const char*, size_t) const;=0A=
# 896 "/usr/local/include/g++-v3/bits/locale_facets.h" 3=0A=
template<typename _CharT>=0A=
class collate_byname : public collate<_CharT>=0A=
{=0A=
public:=0A=
typedef _CharT char_type;=0A=
typedef basic_string<_CharT> string_type;=0A=
=0A=
explicit=0A=
collate_byname(const char* __s, size_t __refs =3D 0)=0A=
: collate<_CharT>(__refs)=0A=
{=0A=
if (_M_c_locale_collate !=3D _S_c_locale)=0A=
_S_destroy_c_locale(_M_c_locale_collate);=0A=
_S_create_c_locale(_M_c_locale_collate, __s);=0A=
}=0A=
=0A=
protected:=0A=
virtual=0A=
~collate_byname() { }=0A=
};=0A=
=0A=
=0A=
class time_base=0A=
{=0A=
public:=0A=
enum dateorder { no_order, dmy, mdy, ymd, ydm };=0A=
};=0A=
=0A=
template<typename _CharT>=0A=
class __timepunct : public locale::facet=0A=
{=0A=
public:=0A=
=0A=
typedef _CharT __char_type;=0A=
typedef basic_string<_CharT> __string_type;=0A=
=0A=
static locale::id id;=0A=
=0A=
=0A=
static const _CharT* _S_timezones[14];=0A=
=0A=
protected:=0A=
__c_locale _M_c_locale_timepunct;=0A=
const char* _M_name_timepunct;=0A=
const _CharT* _M_date_format;=0A=
const _CharT* _M_date_era_format;=0A=
const _CharT* _M_time_format;=0A=
const _CharT* _M_time_era_format;=0A=
const _CharT* _M_date_time_format;=0A=
const _CharT* _M_date_time_era_format;=0A=
const _CharT* _M_am;=0A=
const _CharT* _M_pm;=0A=
const _CharT* _M_am_pm_format;=0A=
=0A=
=0A=
const _CharT* _M_day1;=0A=
const _CharT* _M_day2;=0A=
const _CharT* _M_day3;=0A=
const _CharT* _M_day4;=0A=
const _CharT* _M_day5;=0A=
const _CharT* _M_day6;=0A=
const _CharT* _M_day7;=0A=
=0A=
=0A=
const _CharT* _M_day_a1;=0A=
const _CharT* _M_day_a2;=0A=
const _CharT* _M_day_a3;=0A=
const _CharT* _M_day_a4;=0A=
const _CharT* _M_day_a5;=0A=
const _CharT* _M_day_a6;=0A=
const _CharT* _M_day_a7;=0A=
=0A=
=0A=
const _CharT* _M_month01;=0A=
const _CharT* _M_month02;=0A=
const _CharT* _M_month03;=0A=
const _CharT* _M_month04;=0A=
const _CharT* _M_month05;=0A=
const _CharT* _M_month06;=0A=
const _CharT* _M_month07;=0A=
const _CharT* _M_month08;=0A=
const _CharT* _M_month09;=0A=
const _CharT* _M_month10;=0A=
const _CharT* _M_month11;=0A=
const _CharT* _M_month12;=0A=
=0A=
=0A=
const _CharT* _M_month_a01;=0A=
const _CharT* _M_month_a02;=0A=
const _CharT* _M_month_a03;=0A=
const _CharT* _M_month_a04;=0A=
const _CharT* _M_month_a05;=0A=
const _CharT* _M_month_a06;=0A=
const _CharT* _M_month_a07;=0A=
const _CharT* _M_month_a08;=0A=
const _CharT* _M_month_a09;=0A=
const _CharT* _M_month_a10;=0A=
const _CharT* _M_month_a11;=0A=
const _CharT* _M_month_a12;=0A=
=0A=
public:=0A=
explicit=0A=
__timepunct(size_t __refs =3D 0)=0A=
: locale::facet(__refs), _M_name_timepunct("C")=0A=
{ _M_initialize_timepunct(); }=0A=
=0A=
explicit=0A=
__timepunct(__c_locale __cloc, const char* __s, size_t __refs =3D =
0)=0A=
: locale::facet(__refs), _M_name_timepunct(__s)=0A=
{ _M_initialize_timepunct(__cloc); }=0A=
=0A=
void=0A=
_M_put(_CharT* __s, size_t __maxlen, const _CharT* __format,=0A=
const tm* __tm) const;=0A=
=0A=
void=0A=
_M_date_formats(const _CharT** __date) const=0A=
{=0A=
=0A=
__date[0] =3D _M_date_format;=0A=
__date[1] =3D _M_date_era_format;=0A=
}=0A=
=0A=
void=0A=
_M_time_formats(const _CharT** __time) const=0A=
{=0A=
=0A=
__time[0] =3D _M_time_format;=0A=
__time[1] =3D _M_time_era_format;=0A=
}=0A=
=0A=
void=0A=
_M_ampm(const _CharT** __ampm) const=0A=
{=0A=
__ampm[0] =3D _M_am;=0A=
__ampm[1] =3D _M_pm;=0A=
}=0A=
=0A=
void=0A=
_M_date_time_formats(const _CharT** __dt) const=0A=
{=0A=
=0A=
__dt[0] =3D _M_date_time_format;=0A=
__dt[1] =3D _M_date_time_era_format;=0A=
}=0A=
=0A=
void=0A=
_M_days(const _CharT** __days) const=0A=
{=0A=
__days[0] =3D _M_day1;=0A=
__days[1] =3D _M_day2;=0A=
__days[2] =3D _M_day3;=0A=
__days[3] =3D _M_day4;=0A=
__days[4] =3D _M_day5;=0A=
__days[5] =3D _M_day6;=0A=
__days[6] =3D _M_day7;=0A=
}=0A=
=0A=
void=0A=
_M_days_abbreviated(const _CharT** __days) const=0A=
{=0A=
__days[0] =3D _M_day_a1;=0A=
__days[1] =3D _M_day_a2;=0A=
__days[2] =3D _M_day_a3;=0A=
__days[3] =3D _M_day_a4;=0A=
__days[4] =3D _M_day_a5;=0A=
__days[5] =3D _M_day_a6;=0A=
__days[6] =3D _M_day_a7;=0A=
}=0A=
=0A=
void=0A=
_M_months(const _CharT** __months) const=0A=
{=0A=
__months[0] =3D _M_month01;=0A=
__months[1] =3D _M_month02;=0A=
__months[2] =3D _M_month03;=0A=
__months[3] =3D _M_month04;=0A=
__months[4] =3D _M_month05;=0A=
__months[5] =3D _M_month06;=0A=
__months[6] =3D _M_month07;=0A=
__months[7] =3D _M_month08;=0A=
__months[8] =3D _M_month09;=0A=
__months[9] =3D _M_month10;=0A=
__months[10] =3D _M_month11;=0A=
__months[11] =3D _M_month12;=0A=
}=0A=
=0A=
void=0A=
_M_months_abbreviated(const _CharT** __months) const=0A=
{=0A=
__months[0] =3D _M_month_a01;=0A=
__months[1] =3D _M_month_a02;=0A=
__months[2] =3D _M_month_a03;=0A=
__months[3] =3D _M_month_a04;=0A=
__months[4] =3D _M_month_a05;=0A=
__months[5] =3D _M_month_a06;=0A=
__months[6] =3D _M_month_a07;=0A=
__months[7] =3D _M_month_a08;=0A=
__months[8] =3D _M_month_a09;=0A=
__months[9] =3D _M_month_a10;=0A=
__months[10] =3D _M_month_a11;=0A=
__months[11] =3D _M_month_a12;=0A=
}=0A=
=0A=
protected:=0A=
virtual=0A=
~__timepunct();=0A=
=0A=
=0A=
void=0A=
_M_initialize_timepunct(__c_locale __cloc =3D _S_c_locale);=0A=
};=0A=
=0A=
template<typename _CharT>=0A=
locale::id __timepunct<_CharT>::id;=0A=
=0A=
=0A=
template<>=0A=
__timepunct<char>::~__timepunct();=0A=
=0A=
template<>=0A=
const char*=0A=
__timepunct<char>::_S_timezones[14];=0A=
=0A=
template<>=0A=
void=0A=
__timepunct<char>::_M_initialize_timepunct(__c_locale __cloc);=0A=
=0A=
template<>=0A=
void=0A=
__timepunct<char>::_M_put(char*, size_t, const char*, const tm*) =
const;=0A=
# 1147 "/usr/local/include/g++-v3/bits/locale_facets.h" 3=0A=
template<typename _CharT>=0A=
const _CharT* __timepunct<_CharT>::_S_timezones[14];=0A=
=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
class time_get : public locale::facet, public time_base=0A=
{=0A=
public:=0A=
=0A=
typedef _CharT char_type;=0A=
typedef _InIter iter_type;=0A=
typedef basic_string<_CharT> __string_type;=0A=
=0A=
static locale::id id;=0A=
=0A=
explicit=0A=
time_get(size_t __refs =3D 0)=0A=
: locale::facet (__refs) { }=0A=
=0A=
dateorder=0A=
date_order() const=0A=
{ return this->do_date_order(); }=0A=
=0A=
iter_type=0A=
get_time(iter_type __beg, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, tm* __tm) const=0A=
{ return this->do_get_time(__beg, __end, __io, __err, __tm); }=0A=
=0A=
iter_type=0A=
get_date(iter_type __beg, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, tm* __tm) const=0A=
{ return this->do_get_date(__beg, __end, __io, __err, __tm); }=0A=
=0A=
iter_type=0A=
get_weekday(iter_type __beg, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, tm* __tm) const=0A=
{ return this->do_get_weekday(__beg, __end, __io, __err, __tm); }=0A=
=0A=
iter_type=0A=
get_monthname(iter_type __beg, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, tm* __tm) const=0A=
{ return this->do_get_monthname(__beg, __end, __io, __err, __tm); }=0A=
=0A=
iter_type=0A=
get_year(iter_type __beg, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, tm* __tm) const=0A=
{ return this->do_get_year(__beg, __end, __io, __err, __tm); }=0A=
=0A=
protected:=0A=
virtual=0A=
~time_get() { }=0A=
=0A=
virtual dateorder=0A=
do_date_order() const;=0A=
=0A=
virtual iter_type=0A=
do_get_time(iter_type __beg, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, tm* __tm) const;=0A=
=0A=
virtual iter_type=0A=
do_get_date(iter_type __beg, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, tm* __tm) const;=0A=
=0A=
virtual iter_type=0A=
do_get_weekday(iter_type __beg, iter_type __end, ios_base&,=0A=
ios_base::iostate& __err, tm* __tm) const;=0A=
=0A=
virtual iter_type=0A=
do_get_monthname(iter_type __beg, iter_type __end, ios_base&,=0A=
ios_base::iostate& __err, tm* __tm) const;=0A=
=0A=
virtual iter_type=0A=
do_get_year(iter_type __beg, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, tm* __tm) const;=0A=
=0A=
=0A=
void=0A=
_M_extract_num(iter_type& __beg, iter_type& __end, int& __member,=0A=
int __min, int __max, size_t __len,=0A=
const ctype<_CharT>& __ctype,=0A=
ios_base::iostate& __err) const;=0A=
=0A=
=0A=
=0A=
void=0A=
_M_extract_name(iter_type& __beg, iter_type& __end, int& __member,=0A=
const _CharT** __names, size_t __indexlen,=0A=
ios_base::iostate& __err) const;=0A=
=0A=
=0A=
void=0A=
_M_extract_via_format(iter_type& __beg, iter_type& __end, =
ios_base& __io,=0A=
ios_base::iostate& __err, tm* __tm,=0A=
const _CharT* __format) const;=0A=
};=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
locale::id time_get<_CharT, _InIter>::id;=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
class time_get_byname : public time_get<_CharT, _InIter>=0A=
{=0A=
public:=0A=
=0A=
typedef _CharT char_type;=0A=
typedef _InIter iter_type;=0A=
=0A=
explicit=0A=
time_get_byname(const char*, size_t __refs =3D 0)=0A=
: time_get<_CharT, _InIter>(__refs) { }=0A=
=0A=
protected:=0A=
virtual=0A=
~time_get_byname() { }=0A=
};=0A=
=0A=
template<typename _CharT, typename _OutIter>=0A=
class time_put : public locale::facet, public time_base=0A=
{=0A=
public:=0A=
=0A=
typedef _CharT char_type;=0A=
typedef _OutIter iter_type;=0A=
=0A=
static locale::id id;=0A=
=0A=
explicit=0A=
time_put(size_t __refs =3D 0)=0A=
: locale::facet(__refs) { }=0A=
=0A=
iter_type=0A=
put(iter_type __s, ios_base& __io, char_type __fill, const tm* =
__tm,=0A=
const _CharT* __beg, const _CharT* __end) const;=0A=
=0A=
iter_type=0A=
put(iter_type __s, ios_base& __io, char_type __fill,=0A=
const tm* __tm, char __format, char __mod =3D 0) const=0A=
{ return this->do_put(__s, __io, __fill, __tm, __format, __mod); }=0A=
=0A=
protected:=0A=
virtual=0A=
~time_put()=0A=
{ }=0A=
=0A=
virtual iter_type=0A=
do_put(iter_type __s, ios_base& __io, char_type __fill, const tm* =
__tm,=0A=
char __format, char __mod) const;=0A=
};=0A=
=0A=
template<typename _CharT, typename _OutIter>=0A=
locale::id time_put<_CharT, _OutIter>::id;=0A=
=0A=
template<typename _CharT, typename _OutIter>=0A=
class time_put_byname : public time_put<_CharT, _OutIter>=0A=
{=0A=
public:=0A=
=0A=
typedef _CharT char_type;=0A=
typedef _OutIter iter_type;=0A=
=0A=
explicit=0A=
time_put_byname(const char* , size_t __refs =3D 0)=0A=
: time_put<_CharT, _OutIter>(__refs)=0A=
{ };=0A=
=0A=
protected:=0A=
virtual=0A=
~time_put_byname() { }=0A=
};=0A=
=0A=
=0A=
class money_base=0A=
{=0A=
public:=0A=
enum part { none, space, symbol, sign, value };=0A=
struct pattern { char field[4]; };=0A=
=0A=
static const pattern _S_default_pattern;=0A=
=0A=
=0A=
=0A=
static pattern=0A=
_S_construct_pattern(char __precedes, char __space, char __posn);=0A=
};=0A=
=0A=
template<typename _CharT, bool _Intl>=0A=
class moneypunct : public locale::facet, public money_base=0A=
{=0A=
public:=0A=
=0A=
typedef _CharT char_type;=0A=
typedef basic_string<_CharT> string_type;=0A=
=0A=
static const bool intl =3D _Intl;=0A=
static locale::id id;=0A=
=0A=
private:=0A=
const char* _M_grouping;=0A=
char_type _M_decimal_point;=0A=
char_type _M_thousands_sep;=0A=
const char_type* _M_curr_symbol;=0A=
const char_type* _M_positive_sign;=0A=
const char_type* _M_negative_sign;=0A=
int _M_frac_digits;=0A=
pattern _M_pos_format;=0A=
pattern _M_neg_format;=0A=
=0A=
public:=0A=
explicit=0A=
moneypunct(size_t __refs =3D 0) : locale::facet(__refs)=0A=
{ _M_initialize_moneypunct(); }=0A=
=0A=
explicit=0A=
moneypunct(__c_locale __cloc, size_t __refs =3D 0) : =
locale::facet(__refs)=0A=
{ _M_initialize_moneypunct(__cloc); }=0A=
=0A=
char_type=0A=
decimal_point() const=0A=
{ return this->do_decimal_point(); }=0A=
=0A=
char_type=0A=
thousands_sep() const=0A=
{ return this->do_thousands_sep(); }=0A=
=0A=
string=0A=
grouping() const=0A=
{ return this->do_grouping(); }=0A=
=0A=
string_type=0A=
curr_symbol() const=0A=
{ return this->do_curr_symbol(); }=0A=
=0A=
string_type=0A=
positive_sign() const=0A=
{ return this->do_positive_sign(); }=0A=
=0A=
string_type=0A=
negative_sign() const=0A=
{ return this->do_negative_sign(); }=0A=
=0A=
int=0A=
frac_digits() const=0A=
{ return this->do_frac_digits(); }=0A=
=0A=
pattern=0A=
pos_format() const=0A=
{ return this->do_pos_format(); }=0A=
=0A=
pattern=0A=
neg_format() const=0A=
{ return this->do_neg_format(); }=0A=
=0A=
protected:=0A=
virtual=0A=
~moneypunct();=0A=
=0A=
virtual char_type=0A=
do_decimal_point() const=0A=
{ return _M_decimal_point; }=0A=
=0A=
virtual char_type=0A=
do_thousands_sep() const=0A=
{ return _M_thousands_sep; }=0A=
=0A=
virtual string=0A=
do_grouping() const=0A=
{ return _M_grouping; }=0A=
=0A=
virtual string_type=0A=
do_curr_symbol() const=0A=
{ return _M_curr_symbol; }=0A=
=0A=
virtual string_type=0A=
do_positive_sign() const=0A=
{ return _M_positive_sign; }=0A=
=0A=
virtual string_type=0A=
do_negative_sign() const=0A=
{ return _M_negative_sign; }=0A=
=0A=
virtual int=0A=
do_frac_digits() const=0A=
{ return _M_frac_digits; }=0A=
=0A=
virtual pattern=0A=
do_pos_format() const=0A=
{ return _M_pos_format; }=0A=
=0A=
virtual pattern=0A=
do_neg_format() const=0A=
{ return _M_neg_format; }=0A=
=0A=
=0A=
void=0A=
_M_initialize_moneypunct(__c_locale __cloc =3D _S_c_locale);=0A=
};=0A=
=0A=
template<typename _CharT, bool _Intl>=0A=
locale::id moneypunct<_CharT, _Intl>::id;=0A=
=0A=
template<typename _CharT, bool _Intl>=0A=
const bool moneypunct<_CharT, _Intl>::intl;=0A=
=0A=
template<>=0A=
moneypunct<char, true>::~moneypunct();=0A=
=0A=
template<>=0A=
moneypunct<char, false>::~moneypunct();=0A=
=0A=
template<>=0A=
void=0A=
moneypunct<char, true>::_M_initialize_moneypunct(__c_locale __cloc);=0A=
=0A=
template<>=0A=
void=0A=
moneypunct<char, false>::_M_initialize_moneypunct(__c_locale __cloc);=0A=
# 1480 "/usr/local/include/g++-v3/bits/locale_facets.h" 3=0A=
template<typename _CharT, bool _Intl>=0A=
class moneypunct_byname : public moneypunct<_CharT, _Intl>=0A=
{=0A=
__c_locale _M_c_locale_moneypunct;=0A=
=0A=
public:=0A=
typedef _CharT char_type;=0A=
typedef basic_string<_CharT> string_type;=0A=
=0A=
static const bool intl =3D _Intl;=0A=
=0A=
explicit=0A=
moneypunct_byname(const char* __s, size_t __refs =3D 0)=0A=
: moneypunct<_CharT, _Intl>(__refs)=0A=
{=0A=
_S_create_c_locale(_M_c_locale_moneypunct, __s);=0A=
_M_initialize_moneypunct(_M_c_locale_moneypunct);=0A=
}=0A=
=0A=
protected:=0A=
virtual=0A=
~moneypunct_byname()=0A=
{ _S_destroy_c_locale(_M_c_locale_moneypunct); }=0A=
};=0A=
=0A=
template<typename _CharT, bool _Intl>=0A=
const bool moneypunct_byname<_CharT, _Intl>::intl;=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
class money_get : public locale::facet=0A=
{=0A=
public:=0A=
=0A=
typedef _CharT char_type;=0A=
typedef _InIter iter_type;=0A=
typedef basic_string<_CharT> string_type;=0A=
=0A=
static locale::id id;=0A=
=0A=
explicit=0A=
money_get(size_t __refs =3D 0) : locale::facet(__refs) { }=0A=
=0A=
iter_type=0A=
get(iter_type __s, iter_type __end, bool __intl, ios_base& __io,=0A=
ios_base::iostate& __err, long double& __units) const=0A=
{ return this->do_get(__s, __end, __intl, __io, __err, __units); }=0A=
=0A=
iter_type=0A=
get(iter_type __s, iter_type __end, bool __intl, ios_base& __io,=0A=
ios_base::iostate& __err, string_type& __digits) const=0A=
{ return this->do_get(__s, __end, __intl, __io, __err, __digits); }=0A=
=0A=
protected:=0A=
virtual=0A=
~money_get() { }=0A=
=0A=
virtual iter_type=0A=
do_get(iter_type __s, iter_type __end, bool __intl, ios_base& __io,=0A=
ios_base::iostate& __err, long double& __units) const;=0A=
=0A=
virtual iter_type=0A=
do_get(iter_type __s, iter_type __end, bool __intl, ios_base& __io,=0A=
ios_base::iostate& __err, string_type& __digits) const;=0A=
};=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
locale::id money_get<_CharT, _InIter>::id;=0A=
=0A=
template<typename _CharT, typename _OutIter>=0A=
class money_put : public locale::facet=0A=
{=0A=
public:=0A=
typedef _CharT char_type;=0A=
typedef _OutIter iter_type;=0A=
typedef basic_string<_CharT> string_type;=0A=
=0A=
static locale::id id;=0A=
=0A=
explicit=0A=
money_put(size_t __refs =3D 0) : locale::facet(__refs) { }=0A=
=0A=
iter_type=0A=
put(iter_type __s, bool __intl, ios_base& __io,=0A=
char_type __fill, long double __units) const=0A=
{ return this->do_put(__s, __intl, __io, __fill, __units); }=0A=
=0A=
iter_type=0A=
put(iter_type __s, bool __intl, ios_base& __io,=0A=
char_type __fill, const string_type& __digits) const=0A=
{ return this->do_put(__s, __intl, __io, __fill, __digits); }=0A=
=0A=
protected:=0A=
virtual=0A=
~money_put() { }=0A=
=0A=
virtual iter_type=0A=
do_put(iter_type __s, bool __intl, ios_base& __io, char_type =
__fill,=0A=
long double __units) const;=0A=
=0A=
virtual iter_type=0A=
do_put(iter_type __s, bool __intl, ios_base& __io, char_type =
__fill,=0A=
const string_type& __digits) const;=0A=
};=0A=
=0A=
template<typename _CharT, typename _OutIter>=0A=
locale::id money_put<_CharT, _OutIter>::id;=0A=
=0A=
=0A=
struct messages_base=0A=
{=0A=
typedef int catalog;=0A=
};=0A=
=0A=
template<typename _CharT>=0A=
class messages : public locale::facet, public messages_base=0A=
{=0A=
public:=0A=
=0A=
typedef _CharT char_type;=0A=
typedef basic_string<_CharT> string_type;=0A=
=0A=
protected:=0A=
=0A=
=0A=
__c_locale _M_c_locale_messages;=0A=
=0A=
=0A=
const char* _M_name_messages;=0A=
=0A=
=0A=
public:=0A=
static locale::id id;=0A=
=0A=
explicit=0A=
messages(size_t __refs =3D 0)=0A=
: locale::facet(__refs), _M_name_messages("C")=0A=
{ _M_c_locale_messages =3D _S_c_locale; }=0A=
=0A=
=0A=
explicit=0A=
messages(__c_locale __cloc, const char* __name, size_t __refs =3D =
0)=0A=
: locale::facet(__refs)=0A=
{=0A=
_M_name_messages =3D __name;=0A=
_M_c_locale_messages =3D _S_clone_c_locale(__cloc);=0A=
}=0A=
=0A=
catalog=0A=
open(const basic_string<char>& __s, const locale& __loc) const=0A=
{ return this->do_open(__s, __loc); }=0A=
=0A=
=0A=
catalog=0A=
open(const basic_string<char>&, const locale&, const char*) const;=0A=
=0A=
string_type=0A=
get(catalog __c, int __set, int __msgid, const string_type& __s) =
const=0A=
{ return this->do_get(__c, __set, __msgid, __s); }=0A=
=0A=
void=0A=
close(catalog __c) const=0A=
{ return this->do_close(__c); }=0A=
=0A=
protected:=0A=
virtual=0A=
~messages()=0A=
{=0A=
if (_M_c_locale_messages !=3D _S_c_locale)=0A=
_S_destroy_c_locale(_M_c_locale_messages);=0A=
}=0A=
=0A=
virtual catalog=0A=
do_open(const basic_string<char>&, const locale&) const;=0A=
=0A=
virtual string_type=0A=
do_get(catalog, int, int, const string_type& __dfault) const;=0A=
=0A=
virtual void=0A=
do_close(catalog) const;=0A=
=0A=
=0A=
char*=0A=
_M_convert_to_char(const string_type& __msg) const=0A=
{=0A=
=0A=
return =
reinterpret_cast<char*>(const_cast<_CharT*>(__msg.c_str()));=0A=
}=0A=
=0A=
=0A=
string_type=0A=
_M_convert_from_char(char* __msg) const=0A=
{=0A=
=0A=
size_t __len =3D char_traits<char>::length(__msg) - 1;=0A=
# 1705 "/usr/local/include/g++-v3/bits/locale_facets.h" 3=0A=
return string_type();=0A=
}=0A=
};=0A=
=0A=
template<typename _CharT>=0A=
locale::id messages<_CharT>::id;=0A=
=0A=
=0A=
template<>=0A=
string=0A=
messages<char>::do_get(catalog, int, int, const string&) const;=0A=
=0A=
=0A=
# 1 "/usr/local/include/g++-v3/i686-pc-cygwin/bits/messages_members.h" 1 =
3=0A=
# 37 "/usr/local/include/g++-v3/i686-pc-cygwin/bits/messages_members.h" 3=0A=
template<typename _CharT>=0A=
typename messages<_CharT>::catalog=0A=
messages<_CharT>::open(const basic_string<char>& __s, const locale& =
__loc,=0A=
const char*) const=0A=
{ return this->do_open(__s, __loc); }=0A=
=0A=
=0A=
template<typename _CharT>=0A=
typename messages<_CharT>::catalog=0A=
messages<_CharT>::do_open(const basic_string<char>&, const locale&) =
const=0A=
{ return 0; }=0A=
=0A=
template<typename _CharT>=0A=
typename messages<_CharT>::string_type=0A=
messages<_CharT>::do_get(catalog, int, int,=0A=
const string_type& __dfault) const=0A=
{ return __dfault; }=0A=
=0A=
template<typename _CharT>=0A=
void=0A=
messages<_CharT>::do_close(catalog) const=0A=
{ }=0A=
# 1719 "/usr/local/include/g++-v3/bits/locale_facets.h" 2 3=0A=
=0A=
template<typename _CharT>=0A=
class messages_byname : public messages<_CharT>=0A=
{=0A=
public:=0A=
typedef _CharT char_type;=0A=
typedef basic_string<_CharT> string_type;=0A=
=0A=
explicit=0A=
messages_byname(const char* __s, size_t __refs =3D 0)=0A=
: messages<_CharT>(__refs)=0A=
{=0A=
_M_name_messages =3D __s;=0A=
if (_M_c_locale_messages !=3D _S_c_locale)=0A=
_S_destroy_c_locale(_M_c_locale_messages);=0A=
_S_create_c_locale(_M_c_locale_messages, __s);=0A=
}=0A=
=0A=
protected:=0A=
virtual=0A=
~messages_byname()=0A=
{ }=0A=
};=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _CharT>=0A=
inline bool=0A=
isspace(_CharT __c, const locale& __loc)=0A=
{ return use_facet<ctype<_CharT> >(__loc).is(ctype_base::space, =
__c); }=0A=
=0A=
template<typename _CharT>=0A=
inline bool=0A=
isprint(_CharT __c, const locale& __loc)=0A=
{ return use_facet<ctype<_CharT> >(__loc).is(ctype_base::print, =
__c); }=0A=
=0A=
template<typename _CharT>=0A=
inline bool=0A=
iscntrl(_CharT __c, const locale& __loc)=0A=
{ return use_facet<ctype<_CharT> >(__loc).is(ctype_base::cntrl, =
__c); }=0A=
=0A=
template<typename _CharT>=0A=
inline bool=0A=
isupper(_CharT __c, const locale& __loc)=0A=
{ return use_facet<ctype<_CharT> >(__loc).is(ctype_base::upper, =
__c); }=0A=
=0A=
template<typename _CharT>=0A=
inline bool islower(_CharT __c, const locale& __loc)=0A=
{ return use_facet<ctype<_CharT> >(__loc).is(ctype_base::lower, =
__c); }=0A=
=0A=
template<typename _CharT>=0A=
inline bool=0A=
isalpha(_CharT __c, const locale& __loc)=0A=
{ return use_facet<ctype<_CharT> >(__loc).is(ctype_base::alpha, =
__c); }=0A=
=0A=
template<typename _CharT>=0A=
inline bool=0A=
isdigit(_CharT __c, const locale& __loc)=0A=
{ return use_facet<ctype<_CharT> >(__loc).is(ctype_base::digit, =
__c); }=0A=
=0A=
template<typename _CharT>=0A=
inline bool=0A=
ispunct(_CharT __c, const locale& __loc)=0A=
{ return use_facet<ctype<_CharT> >(__loc).is(ctype_base::punct, =
__c); }=0A=
=0A=
template<typename _CharT>=0A=
inline bool=0A=
isxdigit(_CharT __c, const locale& __loc)=0A=
{ return use_facet<ctype<_CharT> >(__loc).is(ctype_base::xdigit, =
__c); }=0A=
=0A=
template<typename _CharT>=0A=
inline bool=0A=
isalnum(_CharT __c, const locale& __loc)=0A=
{ return use_facet<ctype<_CharT> >(__loc).is(ctype_base::alnum, =
__c); }=0A=
=0A=
template<typename _CharT>=0A=
inline bool=0A=
isgraph(_CharT __c, const locale& __loc)=0A=
{ return use_facet<ctype<_CharT> >(__loc).is(ctype_base::graph, =
__c); }=0A=
=0A=
template<typename _CharT>=0A=
inline _CharT=0A=
toupper(_CharT __c, const locale& __loc)=0A=
{ return use_facet<ctype<_CharT> >(__loc).toupper(__c); }=0A=
=0A=
template<typename _CharT>=0A=
inline _CharT=0A=
tolower(_CharT __c, const locale& __loc)=0A=
{ return use_facet<ctype<_CharT> >(__loc).tolower(__c); }=0A=
}=0A=
# 42 "/usr/local/include/g++-v3/bits/basic_ios.h" 2 3=0A=
=0A=
namespace std=0A=
{=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
class basic_ios : public ios_base=0A=
{=0A=
public:=0A=
=0A=
typedef _CharT char_type;=0A=
typedef typename _Traits::int_type int_type;=0A=
typedef typename _Traits::pos_type pos_type;=0A=
typedef typename _Traits::off_type off_type;=0A=
typedef _Traits traits_type;=0A=
=0A=
=0A=
typedef ctype<_CharT> __ctype_type;=0A=
typedef ostreambuf_iterator<_CharT, _Traits> __ostreambuf_iter;=0A=
typedef num_put<_CharT, __ostreambuf_iter> __numput_type;=0A=
typedef istreambuf_iterator<_CharT, _Traits> __istreambuf_iter;=0A=
typedef num_get<_CharT, __istreambuf_iter> __numget_type;=0A=
=0A=
=0A=
protected:=0A=
basic_ostream<_CharT, _Traits>* _M_tie;=0A=
mutable char_type _M_fill;=0A=
mutable bool _M_fill_init;=0A=
basic_streambuf<_CharT, _Traits>* _M_streambuf;=0A=
=0A=
=0A=
const __ctype_type* _M_fctype;=0A=
=0A=
const __numput_type* _M_fnumput;=0A=
=0A=
const __numget_type* _M_fnumget;=0A=
=0A=
public:=0A=
operator void*() const=0A=
{ return this->fail() ? 0 : const_cast<basic_ios*>(this); }=0A=
=0A=
bool=0A=
operator!() const=0A=
{ return this->fail(); }=0A=
=0A=
iostate=0A=
rdstate() const=0A=
{ return _M_streambuf_state; }=0A=
=0A=
void=0A=
clear(iostate __state =3D goodbit);=0A=
=0A=
void=0A=
setstate(iostate __state)=0A=
{ this->clear(this->rdstate() | __state); }=0A=
=0A=
bool=0A=
good() const=0A=
{ return this->rdstate() =3D=3D 0; }=0A=
=0A=
bool=0A=
eof() const=0A=
{ return (this->rdstate() & eofbit) !=3D 0; }=0A=
=0A=
bool=0A=
fail() const=0A=
{ return (this->rdstate() & (badbit | failbit)) !=3D 0; }=0A=
=0A=
bool=0A=
bad() const=0A=
{ return (this->rdstate() & badbit) !=3D 0; }=0A=
=0A=
iostate=0A=
exceptions() const=0A=
{ return _M_exception; }=0A=
=0A=
void=0A=
exceptions(iostate __except)=0A=
{=0A=
_M_exception =3D __except;=0A=
this->clear(_M_streambuf_state);=0A=
}=0A=
=0A=
=0A=
explicit=0A=
basic_ios(basic_streambuf<_CharT, _Traits>* __sb) : ios_base()=0A=
{ this->init(__sb); }=0A=
=0A=
virtual=0A=
~basic_ios() { }=0A=
=0A=
=0A=
basic_ostream<_CharT, _Traits>*=0A=
tie() const=0A=
{ return _M_tie; }=0A=
=0A=
basic_ostream<_CharT, _Traits>*=0A=
tie(basic_ostream<_CharT, _Traits>* __tiestr)=0A=
{=0A=
basic_ostream<_CharT, _Traits>* __old =3D _M_tie;=0A=
_M_tie =3D __tiestr;=0A=
return __old;=0A=
}=0A=
=0A=
basic_streambuf<_CharT, _Traits>*=0A=
rdbuf() const=0A=
{ return _M_streambuf; }=0A=
=0A=
basic_streambuf<_CharT, _Traits>*=0A=
rdbuf(basic_streambuf<_CharT, _Traits>* __sb);=0A=
=0A=
basic_ios&=0A=
copyfmt(const basic_ios& __rhs);=0A=
=0A=
char_type=0A=
fill() const=0A=
{=0A=
if (!_M_fill_init)=0A=
{=0A=
_M_fill =3D this->widen(' ');=0A=
_M_fill_init =3D true;=0A=
}=0A=
return _M_fill;=0A=
}=0A=
=0A=
char_type=0A=
fill(char_type __ch)=0A=
{=0A=
char_type __old =3D this->fill();=0A=
_M_fill =3D __ch;=0A=
return __old;=0A=
}=0A=
=0A=
=0A=
locale=0A=
imbue(const locale& __loc);=0A=
=0A=
char=0A=
narrow(char_type __c, char __dfault) const;=0A=
=0A=
char_type=0A=
widen(char __c) const;=0A=
=0A=
protected:=0A=
=0A=
basic_ios() : ios_base()=0A=
{ }=0A=
=0A=
void=0A=
init(basic_streambuf<_CharT, _Traits>* __sb);=0A=
=0A=
bool=0A=
_M_check_facet(const locale::facet* __f) const=0A=
{=0A=
if (!__f)=0A=
__throw_bad_cast();=0A=
return true;=0A=
}=0A=
=0A=
void=0A=
_M_cache_facets(const locale& __loc);=0A=
};=0A=
}=0A=
=0A=
=0A=
=0A=
# 1 "/usr/local/include/g++-v3/bits/basic_ios.tcc" 1 3=0A=
# 34 "/usr/local/include/g++-v3/bits/basic_ios.tcc" 3=0A=
=0A=
namespace std=0A=
{=0A=
template<typename _CharT, typename _Traits>=0A=
void=0A=
basic_ios<_CharT, _Traits>::clear(iostate __state)=0A=
{=0A=
if (this->rdbuf())=0A=
_M_streambuf_state =3D __state;=0A=
else=0A=
_M_streambuf_state =3D __state | badbit;=0A=
if ((this->rdstate() & this->exceptions()))=0A=
__throw_ios_failure("basic_ios::clear(iostate) caused =
exception");=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_streambuf<_CharT, _Traits>*=0A=
basic_ios<_CharT, _Traits>::rdbuf(basic_streambuf<_CharT, _Traits>* =
__sb)=0A=
{=0A=
basic_streambuf<_CharT, _Traits>* __old =3D _M_streambuf;=0A=
_M_streambuf =3D __sb;=0A=
this->clear();=0A=
return __old;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ios<_CharT, _Traits>&=0A=
basic_ios<_CharT, _Traits>::copyfmt(const basic_ios& __rhs)=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
_Words* __words =3D (__rhs._M_word_size <=3D _S_local_word_size) ?=0A=
_M_local_word : new _Words[__rhs._M_word_size];=0A=
=0A=
=0A=
_Callback_list* __cb =3D __rhs._M_callbacks;=0A=
if (__cb)=0A=
__cb->_M_add_reference();=0A=
_M_call_callbacks(erase_event);=0A=
if (_M_word !=3D _M_local_word)=0A=
{=0A=
delete [] _M_word;=0A=
_M_word =3D 0;=0A=
}=0A=
_M_dispose_callbacks();=0A=
=0A=
_M_callbacks =3D __cb;=0A=
for (int __i =3D 0; __i < __rhs._M_word_size; ++__i)=0A=
__words[__i] =3D __rhs._M_word[__i];=0A=
if (_M_word !=3D _M_local_word)=0A=
{=0A=
delete [] _M_word;=0A=
_M_word =3D 0;=0A=
}=0A=
_M_word =3D __words;=0A=
_M_word_size =3D __rhs._M_word_size;=0A=
=0A=
this->flags(__rhs.flags());=0A=
this->width(__rhs.width());=0A=
this->precision(__rhs.precision());=0A=
this->tie(__rhs.tie());=0A=
this->fill(__rhs.fill());=0A=
=0A=
this->exceptions(__rhs.exceptions());=0A=
=0A=
_M_call_callbacks(copyfmt_event);=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
char=0A=
basic_ios<_CharT, _Traits>::narrow(char_type __c, char __dfault) =
const=0A=
{=0A=
char __ret =3D __dfault;=0A=
if (_M_check_facet(_M_fctype))=0A=
__ret =3D _M_fctype->narrow(__c, __dfault);=0A=
return __ret;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
_CharT=0A=
basic_ios<_CharT, _Traits>::widen(char __c) const=0A=
{=0A=
char_type __ret =3D char_type();=0A=
if (_M_check_facet(_M_fctype))=0A=
__ret =3D _M_fctype->widen(__c);=0A=
return __ret;=0A=
}=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
locale=0A=
basic_ios<_CharT, _Traits>::imbue(const locale& __loc)=0A=
{=0A=
locale __old(this->getloc());=0A=
ios_base::imbue(__loc);=0A=
_M_cache_facets(__loc);=0A=
if (this->rdbuf() !=3D 0)=0A=
this->rdbuf()->pubimbue(__loc);=0A=
return __old;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
void=0A=
basic_ios<_CharT, _Traits>::init(basic_streambuf<_CharT, _Traits>* =
__sb)=0A=
{=0A=
=0A=
ios_base::_M_init();=0A=
_M_cache_facets(_M_ios_locale);=0A=
_M_tie =3D 0;=0A=
# 159 "/usr/local/include/g++-v3/bits/basic_ios.tcc" 3=0A=
_M_fill =3D 0;=0A=
_M_fill_init =3D false;=0A=
=0A=
_M_exception =3D goodbit;=0A=
_M_streambuf =3D __sb;=0A=
_M_streambuf_state =3D __sb ? goodbit : badbit;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
void=0A=
basic_ios<_CharT, _Traits>::_M_cache_facets(const locale& __loc)=0A=
{=0A=
if (has_facet<__ctype_type>(__loc))=0A=
_M_fctype =3D &use_facet<__ctype_type>(__loc);=0A=
else=0A=
_M_fctype =3D 0;=0A=
=0A=
if (has_facet<__numput_type>(__loc))=0A=
_M_fnumput =3D &use_facet<__numput_type>(__loc);=0A=
else=0A=
_M_fnumput =3D 0;=0A=
if (has_facet<__numget_type>(__loc))=0A=
_M_fnumget =3D &use_facet<__numget_type>(__loc);=0A=
else=0A=
_M_fnumget =3D 0;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
extern template class basic_ios<char>;=0A=
extern template class basic_ios<wchar_t>;=0A=
}=0A=
# 208 "/usr/local/include/g++-v3/bits/basic_ios.h" 2 3=0A=
# 52 "/usr/local/include/g++-v3/ios" 2 3=0A=
# 46 "/usr/local/include/g++-v3/ostream" 2 3=0A=
=0A=
namespace std=0A=
{=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
class basic_ostream : virtual public basic_ios<_CharT, _Traits>=0A=
{=0A=
public:=0A=
=0A=
typedef _CharT char_type;=0A=
typedef typename _Traits::int_type int_type;=0A=
typedef typename _Traits::pos_type pos_type;=0A=
typedef typename _Traits::off_type off_type;=0A=
typedef _Traits traits_type;=0A=
=0A=
=0A=
typedef basic_streambuf<_CharT, _Traits> __streambuf_type;=0A=
typedef basic_ios<_CharT, _Traits> __ios_type;=0A=
typedef basic_ostream<_CharT, _Traits> __ostream_type;=0A=
typedef ostreambuf_iterator<_CharT, _Traits> __ostreambuf_iter;=0A=
typedef num_put<_CharT, __ostreambuf_iter> __numput_type;=0A=
typedef ctype<_CharT> __ctype_type;=0A=
=0A=
=0A=
explicit=0A=
basic_ostream(__streambuf_type* __sb)=0A=
{ this->init(__sb); }=0A=
=0A=
virtual=0A=
~basic_ostream() { }=0A=
=0A=
=0A=
class sentry;=0A=
friend class sentry;=0A=
=0A=
=0A=
=0A=
__ostream_type&=0A=
operator<<(__ostream_type& (*__pf)(__ostream_type&));=0A=
=0A=
__ostream_type&=0A=
operator<<(__ios_type& (*__pf)(__ios_type&));=0A=
=0A=
__ostream_type&=0A=
operator<<(ios_base& (*__pf) (ios_base&));=0A=
=0A=
=0A=
__ostream_type&=0A=
operator<<(long __n);=0A=
=0A=
__ostream_type&=0A=
operator<<(unsigned long __n);=0A=
=0A=
__ostream_type&=0A=
operator<<(bool __n);=0A=
=0A=
__ostream_type&=0A=
operator<<(short __n)=0A=
{=0A=
ios_base::fmtflags __fmt =3D this->flags() & ios_base::basefield;=0A=
if (__fmt & ios_base::oct || __fmt & ios_base::hex)=0A=
return this->operator<<(static_cast<unsigned long>=0A=
(static_cast<unsigned short>(__n)));=0A=
else=0A=
return this->operator<<(static_cast<long>(__n));=0A=
}=0A=
=0A=
__ostream_type&=0A=
operator<<(unsigned short __n)=0A=
{ return this->operator<<(static_cast<unsigned long>(__n)); }=0A=
=0A=
__ostream_type&=0A=
operator<<(int __n)=0A=
{=0A=
ios_base::fmtflags __fmt =3D this->flags() & ios_base::basefield;=0A=
if (__fmt & ios_base::oct || __fmt & ios_base::hex)=0A=
return this->operator<<(static_cast<unsigned long>=0A=
(static_cast<unsigned int>(__n)));=0A=
else=0A=
return this->operator<<(static_cast<long>(__n));=0A=
}=0A=
=0A=
__ostream_type&=0A=
operator<<(unsigned int __n)=0A=
{ return this->operator<<(static_cast<unsigned long>(__n)); }=0A=
=0A=
=0A=
__ostream_type&=0A=
operator<<(long long __n);=0A=
=0A=
__ostream_type&=0A=
operator<<(unsigned long long __n);=0A=
=0A=
=0A=
__ostream_type&=0A=
operator<<(double __f);=0A=
=0A=
__ostream_type&=0A=
operator<<(float __f)=0A=
{ return this->operator<<(static_cast<double>(__f)); }=0A=
=0A=
__ostream_type&=0A=
operator<<(long double __f);=0A=
=0A=
__ostream_type&=0A=
operator<<(const void* __p);=0A=
=0A=
__ostream_type&=0A=
operator<<(__streambuf_type* __sb);=0A=
=0A=
=0A=
__ostream_type&=0A=
put(char_type __c);=0A=
=0A=
__ostream_type&=0A=
write(const char_type* __s, streamsize __n);=0A=
=0A=
__ostream_type&=0A=
flush();=0A=
=0A=
=0A=
pos_type=0A=
tellp();=0A=
=0A=
__ostream_type&=0A=
seekp(pos_type);=0A=
=0A=
__ostream_type&=0A=
seekp(off_type, ios_base::seekdir);=0A=
};=0A=
=0A=
=0A=
template <typename _CharT, typename _Traits>=0A=
class basic_ostream<_CharT, _Traits>::sentry=0A=
{=0A=
=0A=
bool _M_ok;=0A=
basic_ostream<_CharT,_Traits>& _M_os;=0A=
=0A=
public:=0A=
explicit=0A=
sentry(basic_ostream<_CharT,_Traits>& __os);=0A=
=0A=
~sentry()=0A=
{=0A=
=0A=
if (_M_os.flags() & ios_base::unitbuf && !uncaught_exception())=0A=
{=0A=
=0A=
if (_M_os.rdbuf() && _M_os.rdbuf()->pubsync() =3D=3D -1)=0A=
_M_os.setstate(ios_base::badbit);=0A=
}=0A=
}=0A=
=0A=
operator bool()=0A=
{ return _M_ok; }=0A=
};=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits>&=0A=
operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c);=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits>&=0A=
operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)=0A=
{ return (__out << __out.widen(__c)); }=0A=
=0A=
=0A=
template <class _Traits>=0A=
basic_ostream<char, _Traits>&=0A=
operator<<(basic_ostream<char, _Traits>& __out, char __c);=0A=
=0A=
=0A=
template<class _Traits>=0A=
basic_ostream<char, _Traits>&=0A=
operator<<(basic_ostream<char, _Traits>& __out, signed char __c)=0A=
{ return (__out << static_cast<char>(__c)); }=0A=
=0A=
template<class _Traits>=0A=
basic_ostream<char, _Traits>&=0A=
operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)=0A=
{ return (__out << static_cast<char>(__c)); }=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits>&=0A=
operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s);=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits> &=0A=
operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s);=0A=
=0A=
=0A=
template<class _Traits>=0A=
basic_ostream<char, _Traits>&=0A=
operator<<(basic_ostream<char, _Traits>& __out, const char* __s);=0A=
=0A=
=0A=
template<class _Traits>=0A=
basic_ostream<char, _Traits>&=0A=
operator<<(basic_ostream<char, _Traits>& __out, const signed char* =
__s)=0A=
{ return (__out << reinterpret_cast<const char*>(__s)); }=0A=
=0A=
template<class _Traits>=0A=
basic_ostream<char, _Traits> &=0A=
operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* =
__s)=0A=
{ return (__out << reinterpret_cast<const char*>(__s)); }=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits>&=0A=
endl(basic_ostream<_CharT, _Traits>& __os)=0A=
{ return flush(__os.put(__os.widen('\n'))); }=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits>&=0A=
ends(basic_ostream<_CharT, _Traits>& __os)=0A=
{ return __os.put(_CharT()); }=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits>&=0A=
flush(basic_ostream<_CharT, _Traits>& __os)=0A=
{ return __os.flush(); }=0A=
=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
# 1 "/usr/local/include/g++-v3/bits/ostream.tcc" 1 3=0A=
# 36 "/usr/local/include/g++-v3/bits/ostream.tcc" 3=0A=
=0A=
# 1 "/usr/local/include/g++-v3/locale" 1 3=0A=
# 43 "/usr/local/include/g++-v3/locale" 3=0A=
=0A=
=0A=
=0A=
# 1 "/usr/local/include/g++-v3/bits/locale_facets.tcc" 1 3=0A=
# 37 "/usr/local/include/g++-v3/bits/locale_facets.tcc" 3=0A=
=0A=
# 1 "/usr/local/include/g++-v3/cerrno" 1 3=0A=
# 47 "/usr/local/include/g++-v3/cerrno" 3=0A=
=0A=
# 1 "/usr/include/errno.h" 1 3=0A=
# 1 "/usr/include/sys/errno.h" 1 3=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
extern "C" {=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
extern int *__errno (void);=0A=
=0A=
=0A=
=0A=
=0A=
extern __attribute__((dllimport)) const char * const _sys_errlist[];=0A=
extern __attribute__((dllimport)) int _sys_nerr;=0A=
=0A=
extern __attribute__((dllimport)) const char * const sys_errlist[];=0A=
extern __attribute__((dllimport)) int sys_nerr;=0A=
# 155 "/usr/include/sys/errno.h" 3=0A=
}=0A=
# 2 "/usr/include/errno.h" 2 3=0A=
# 49 "/usr/local/include/g++-v3/cerrno" 2 3=0A=
# 39 "/usr/local/include/g++-v3/bits/locale_facets.tcc" 2 3=0A=
=0A=
=0A=
# 1 "/usr/local/include/g++-v3/cmath" 1 3=0A=
# 48 "/usr/local/include/g++-v3/cmath" 3=0A=
=0A=
=0A=
=0A=
# 1 "/usr/include/math.h" 1 3=0A=
=0A=
=0A=
=0A=
=0A=
extern "C" {=0A=
=0A=
=0A=
=0A=
=0A=
# 1 "/usr/include/machine/ieeefp.h" 1 3=0A=
# 11 "/usr/include/math.h" 2 3=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
union __dmath=0A=
{=0A=
__uint32_t i[2];=0A=
double d;=0A=
};=0A=
=0A=
=0A=
=0A=
=0A=
extern __attribute__((dllimport)) const union __dmath __infinity[];=0A=
# 36 "/usr/include/math.h" 3=0A=
extern double atan (double);=0A=
extern double cos (double);=0A=
extern double sin (double);=0A=
extern double tan (double);=0A=
extern double tanh (double);=0A=
extern double frexp (double, int *);=0A=
extern double modf (double, double *);=0A=
extern double ceil (double);=0A=
extern double fabs (double);=0A=
extern double floor (double);=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
extern double acos (double);=0A=
extern double asin (double);=0A=
extern double atan2 (double, double);=0A=
extern double cosh (double);=0A=
extern double sinh (double);=0A=
extern double exp (double);=0A=
extern double ldexp (double, int);=0A=
extern double log (double);=0A=
extern double log10 (double);=0A=
extern double pow (double, double);=0A=
extern double sqrt (double);=0A=
extern double fmod (double, double);=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
extern double infinity (void);=0A=
extern double nan (void);=0A=
extern int isnan (double);=0A=
extern int isinf (double);=0A=
extern int finite (double);=0A=
extern double copysign (double, double);=0A=
extern int ilogb (double);=0A=
=0A=
extern double asinh (double);=0A=
extern double cbrt (double);=0A=
extern double nextafter (double, double);=0A=
extern double rint (double);=0A=
extern double scalbn (double, int);=0A=
=0A=
=0A=
extern double log1p (double);=0A=
extern double expm1 (double);=0A=
=0A=
=0A=
=0A=
extern double acosh (double);=0A=
extern double atanh (double);=0A=
extern double remainder (double, double);=0A=
extern double gamma (double);=0A=
extern double gamma_r (double, int *);=0A=
extern double lgamma (double);=0A=
extern double lgamma_r (double, int *);=0A=
extern double erf (double);=0A=
extern double erfc (double);=0A=
extern double y0 (double);=0A=
extern double y1 (double);=0A=
extern double yn (int, double);=0A=
extern double j0 (double);=0A=
extern double j1 (double);=0A=
extern double jn (int, double);=0A=
=0A=
=0A=
=0A=
extern double hypot (double, double);=0A=
=0A=
=0A=
extern double cabs();=0A=
extern double drem (double, double);=0A=
# 123 "/usr/include/math.h" 3=0A=
extern float atanf (float);=0A=
extern float cosf (float);=0A=
extern float sinf (float);=0A=
extern float tanf (float);=0A=
extern float tanhf (float);=0A=
extern float frexpf (float, int *);=0A=
extern float modff (float, float *);=0A=
extern float ceilf (float);=0A=
extern float fabsf (float);=0A=
extern float floorf (float);=0A=
=0A=
=0A=
extern float acosf (float);=0A=
extern float asinf (float);=0A=
extern float atan2f (float, float);=0A=
extern float coshf (float);=0A=
extern float sinhf (float);=0A=
extern float expf (float);=0A=
extern float ldexpf (float, int);=0A=
extern float logf (float);=0A=
extern float log10f (float);=0A=
extern float powf (float, float);=0A=
extern float sqrtf (float);=0A=
extern float fmodf (float, float);=0A=
# 155 "/usr/include/math.h" 3=0A=
extern float infinityf (void);=0A=
extern float nanf (void);=0A=
extern int isnanf (float);=0A=
extern int isinff (float);=0A=
extern int finitef (float);=0A=
extern float copysignf (float, float);=0A=
extern int ilogbf (float);=0A=
=0A=
extern float asinhf (float);=0A=
extern float cbrtf (float);=0A=
extern float nextafterf (float, float);=0A=
extern float rintf (float);=0A=
extern float scalbnf (float, int);=0A=
extern float log1pf (float);=0A=
extern float expm1f (float);=0A=
=0A=
=0A=
extern float acoshf (float);=0A=
extern float atanhf (float);=0A=
extern float remainderf (float, float);=0A=
extern float gammaf (float);=0A=
extern float gammaf_r (float, int *);=0A=
extern float lgammaf (float);=0A=
extern float lgammaf_r (float, int *);=0A=
extern float erff (float);=0A=
extern float erfcf (float);=0A=
extern float y0f (float);=0A=
extern float y1f (float);=0A=
extern float ynf (int, float);=0A=
extern float j0f (float);=0A=
extern float j1f (float);=0A=
extern float jnf (int, float);=0A=
=0A=
extern float hypotf (float, float);=0A=
=0A=
extern float cabsf();=0A=
extern float dremf (float, float);=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
extern int *__signgam (void);=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
struct __exception=0A=
=0A=
=0A=
=0A=
{=0A=
int type;=0A=
char *name;=0A=
double arg1;=0A=
double arg2;=0A=
double retval;=0A=
int err;=0A=
};=0A=
=0A=
=0A=
extern int matherr (struct __exception *e);=0A=
# 261 "/usr/include/math.h" 3=0A=
enum __fdlibm_version=0A=
{=0A=
__fdlibm_ieee =3D -1,=0A=
__fdlibm_svid,=0A=
__fdlibm_xopen,=0A=
__fdlibm_posix=0A=
};=0A=
=0A=
=0A=
=0A=
=0A=
extern __attribute__((dllimport)) const enum __fdlibm_version =
__fdlib_version;=0A=
# 286 "/usr/include/math.h" 3=0A=
}=0A=
# 52 "/usr/local/include/g++-v3/cmath" 2 3=0A=
# 79 "/usr/local/include/g++-v3/cmath" 3=0A=
namespace std=0A=
{=0A=
=0A=
=0A=
template<typename _Tp> _Tp __cmath_power(_Tp, unsigned int);=0A=
=0A=
template<typename _Tp>=0A=
inline _Tp=0A=
__cmath_abs(_Tp __x)=0A=
{=0A=
return __x < _Tp() ? -__x : __x;=0A=
}=0A=
=0A=
inline double=0A=
abs(double __x)=0A=
{ return __builtin_fabs(__x); }=0A=
=0A=
inline float=0A=
abs(float __x)=0A=
{ return __builtin_fabsf(__x); }=0A=
=0A=
inline long double=0A=
abs(long double __x)=0A=
{ return __builtin_fabsl(__x); }=0A=
=0A=
=0A=
inline float=0A=
acos(float __x) { return ::acosf(__x); }=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
using ::acos;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
inline long double=0A=
acos(long double __x) { return ::acos(static_cast<double>(__x)); }=0A=
=0A=
=0A=
using ::asin;=0A=
=0A=
=0A=
inline float=0A=
asin(float __x) { return ::asinf(__x); }=0A=
# 136 "/usr/local/include/g++-v3/cmath" 3=0A=
inline long double=0A=
asin(long double __x) { return ::asin(static_cast<double>(__x)); }=0A=
=0A=
=0A=
using ::atan;=0A=
=0A=
=0A=
inline float=0A=
atan(float __x) { return ::atanf(__x); }=0A=
# 154 "/usr/local/include/g++-v3/cmath" 3=0A=
inline long double=0A=
atan(long double __x) { return ::atan(static_cast<double>(__x)); }=0A=
=0A=
=0A=
using ::atan2;=0A=
=0A=
=0A=
inline float=0A=
atan2(float __y, float __x) { return ::atan2f(__y, __x); }=0A=
# 173 "/usr/local/include/g++-v3/cmath" 3=0A=
inline long double=0A=
atan2(long double __y, long double __x)=0A=
{ return ::atan2(static_cast<double>(__y), static_cast<double>(__x)); }=0A=
=0A=
=0A=
using ::ceil;=0A=
=0A=
=0A=
inline float=0A=
ceil(float __x) { return ::ceilf(__x); }=0A=
# 192 "/usr/local/include/g++-v3/cmath" 3=0A=
inline long double=0A=
ceil(long double __x) { return ::ceil(static_cast<double>(__x)); }=0A=
=0A=
=0A=
using ::cos;=0A=
=0A=
inline float=0A=
cos(float __x)=0A=
{ return __builtin_cosf(__x); }=0A=
=0A=
inline long double=0A=
cos(long double __x)=0A=
{ return __builtin_cosl(__x); }=0A=
=0A=
using ::cosh;=0A=
=0A=
=0A=
inline float=0A=
cosh(float __x) { return ::coshf(__x); }=0A=
# 220 "/usr/local/include/g++-v3/cmath" 3=0A=
inline long double=0A=
cosh(long double __x) { return ::cosh(static_cast<double>(__x)); }=0A=
=0A=
=0A=
using ::exp;=0A=
=0A=
=0A=
inline float=0A=
exp(float __x) { return ::expf(__x); }=0A=
# 238 "/usr/local/include/g++-v3/cmath" 3=0A=
inline long double=0A=
exp(long double __x) { return ::exp(static_cast<double>(__x)); }=0A=
=0A=
=0A=
using ::fabs;=0A=
=0A=
inline float=0A=
fabs(float __x)=0A=
{ return __builtin_fabsf(__x); }=0A=
=0A=
inline long double=0A=
fabs(long double __x)=0A=
{ return __builtin_fabsl(__x); }=0A=
=0A=
using ::floor;=0A=
=0A=
=0A=
inline float=0A=
floor(float __x) { return ::floorf(__x); }=0A=
# 266 "/usr/local/include/g++-v3/cmath" 3=0A=
inline long double=0A=
floor(long double __x) { return ::floor(static_cast<double>(__x)); }=0A=
=0A=
=0A=
using ::fmod;=0A=
=0A=
=0A=
inline float=0A=
fmod(float __x, float __y) { return ::fmodf(__x, __y); }=0A=
# 285 "/usr/local/include/g++-v3/cmath" 3=0A=
inline long double=0A=
fmod(long double __x, long double __y)=0A=
{ return ::fmod(static_cast<double>(__x), static_cast<double>(__y)); }=0A=
=0A=
=0A=
using ::frexp;=0A=
=0A=
=0A=
inline float=0A=
frexp(float __x, int* __exp) { return ::frexpf(__x, __exp); }=0A=
# 304 "/usr/local/include/g++-v3/cmath" 3=0A=
inline long double=0A=
frexp(long double __x, int* __exp)=0A=
{ return ::frexp(static_cast<double>(__x), __exp); }=0A=
=0A=
=0A=
using ::ldexp;=0A=
=0A=
=0A=
inline float=0A=
ldexp(float __x, int __exp) { return ::ldexpf(__x, __exp); }=0A=
# 324 "/usr/local/include/g++-v3/cmath" 3=0A=
inline long double=0A=
ldexp(long double __x, int __exp)=0A=
{ return ::ldexp(static_cast<double>(__x), __exp); }=0A=
=0A=
=0A=
using ::log;=0A=
=0A=
=0A=
inline float=0A=
log(float __x) { return ::logf(__x); }=0A=
# 343 "/usr/local/include/g++-v3/cmath" 3=0A=
inline long double=0A=
log(long double __x) { return ::log(static_cast<double>(__x)); }=0A=
=0A=
=0A=
using ::log10;=0A=
=0A=
=0A=
inline float=0A=
log10(float __x) { return ::log10f(__x); }=0A=
# 361 "/usr/local/include/g++-v3/cmath" 3=0A=
inline long double=0A=
log10(long double __x) { return ::log10(static_cast<double>(__x)); }=0A=
=0A=
=0A=
using ::modf;=0A=
=0A=
=0A=
inline float=0A=
modf(float __x, float* __iptr) { return ::modff(__x, __iptr); }=0A=
# 385 "/usr/local/include/g++-v3/cmath" 3=0A=
inline long double=0A=
modf(long double __x, long double* __iptr)=0A=
{=0A=
double __tmp;=0A=
double __res =3D ::modf(static_cast<double>(__x), &__tmp);=0A=
* __iptr =3D static_cast<long double>(__tmp);=0A=
return __res;=0A=
}=0A=
=0A=
=0A=
template<typename _Tp>=0A=
inline _Tp=0A=
__pow_helper(_Tp __x, int __n)=0A=
{=0A=
return __n < 0=0A=
? _Tp(1)/__cmath_power(__x, -__n)=0A=
: __cmath_power(__x, __n);=0A=
}=0A=
=0A=
using ::pow;=0A=
=0A=
=0A=
inline float=0A=
pow(float __x, float __y) { return ::powf(__x, __y); }=0A=
# 419 "/usr/local/include/g++-v3/cmath" 3=0A=
inline long double=0A=
pow(long double __x, long double __y)=0A=
{ return ::pow(static_cast<double>(__x), static_cast<double>(__y)); }=0A=
=0A=
=0A=
inline double=0A=
pow(double __x, int __i)=0A=
{ return __pow_helper(__x, __i); }=0A=
=0A=
inline float=0A=
pow(float __x, int __n)=0A=
{ return __pow_helper(__x, __n); }=0A=
=0A=
inline long double=0A=
pow(long double __x, int __n)=0A=
{ return __pow_helper(__x, __n); }=0A=
=0A=
using ::sin;=0A=
=0A=
inline float=0A=
sin(float __x)=0A=
{ return __builtin_sinf(__x); }=0A=
=0A=
inline long double=0A=
sin(long double __x)=0A=
{ return __builtin_sinl(__x); }=0A=
=0A=
using ::sinh;=0A=
=0A=
=0A=
inline float=0A=
sinh(float __x) { return ::sinhf(__x); }=0A=
# 460 "/usr/local/include/g++-v3/cmath" 3=0A=
inline long double=0A=
sinh(long double __x) { return ::sinh(static_cast<double>(__x)); }=0A=
=0A=
=0A=
using ::sqrt;=0A=
=0A=
inline float=0A=
sqrt(float __x)=0A=
{ return __builtin_sqrtf(__x); }=0A=
=0A=
inline long double=0A=
sqrt(long double __x)=0A=
{ return __builtin_sqrtl(__x); }=0A=
=0A=
using ::tan;=0A=
=0A=
=0A=
inline float=0A=
tan(float __x) { return ::tanf(__x); }=0A=
# 488 "/usr/local/include/g++-v3/cmath" 3=0A=
inline long double=0A=
tan(long double __x) { return ::tan(static_cast<double>(__x)); }=0A=
=0A=
=0A=
using ::tanh;=0A=
=0A=
=0A=
inline float=0A=
tanh(float __x) { return ::tanhf(__x); }=0A=
# 506 "/usr/local/include/g++-v3/cmath" 3=0A=
inline long double=0A=
tanh(long double __x) { return ::tanh(static_cast<double>(__x)); }=0A=
=0A=
}=0A=
# 661 "/usr/local/include/g++-v3/cmath" 3=0A=
# 1 "/usr/local/include/g++-v3/bits/cmath.tcc" 1 3=0A=
# 35 "/usr/local/include/g++-v3/bits/cmath.tcc" 3=0A=
namespace std=0A=
{=0A=
template<typename _Tp>=0A=
_Tp=0A=
__cmath_power(_Tp __x, unsigned int __n)=0A=
{=0A=
_Tp __y =3D __n % 2 ? __x : 1;=0A=
=0A=
while (__n >>=3D 1)=0A=
{=0A=
__x =3D __x * __x;=0A=
if (__n % 2)=0A=
__y =3D __y * __x;=0A=
}=0A=
=0A=
return __y;=0A=
}=0A=
}=0A=
# 662 "/usr/local/include/g++-v3/cmath" 2 3=0A=
# 42 "/usr/local/include/g++-v3/bits/locale_facets.tcc" 2 3=0A=
=0A=
# 1 "/usr/local/include/g++-v3/limits" 1 3=0A=
# 47 "/usr/local/include/g++-v3/limits" 3=0A=
=0A=
# 1 "/usr/local/include/g++-v3/i686-pc-cygwin/bits/cpu_limits.h" 1 3=0A=
# 49 "/usr/local/include/g++-v3/limits" 2 3=0A=
# 887 "/usr/local/include/g++-v3/limits" 3=0A=
namespace std=0A=
{=0A=
enum float_round_style=0A=
{=0A=
round_indeterminate =3D -1,=0A=
round_toward_zero =3D 0,=0A=
round_to_nearest =3D 1,=0A=
round_toward_infinity =3D 2,=0A=
round_toward_neg_infinity =3D 3=0A=
};=0A=
=0A=
enum float_denorm_style=0A=
{=0A=
denorm_indeterminate =3D -1,=0A=
denorm_absent =3D 0,=0A=
denorm_present =3D 1=0A=
};=0A=
=0A=
=0A=
=0A=
=0A=
struct __numeric_limits_base=0A=
{=0A=
static const bool is_specialized =3D false;=0A=
=0A=
static const int digits =3D 0;=0A=
static const int digits10 =3D 0;=0A=
static const bool is_signed =3D false;=0A=
static const bool is_integer =3D false;=0A=
static const bool is_exact =3D false;=0A=
static const int radix =3D 0;=0A=
=0A=
static const int min_exponent =3D 0;=0A=
static const int min_exponent10 =3D 0;=0A=
static const int max_exponent =3D 0;=0A=
static const int max_exponent10 =3D 0;=0A=
=0A=
static const bool has_infinity =3D false;=0A=
static const bool has_quiet_NaN =3D false;=0A=
static const bool has_signaling_NaN =3D false;=0A=
static const float_denorm_style has_denorm =3D denorm_absent;=0A=
static const bool has_denorm_loss =3D false;=0A=
=0A=
static const bool is_iec559 =3D false;=0A=
static const bool is_bounded =3D false;=0A=
static const bool is_modulo =3D false;=0A=
=0A=
static const bool traps =3D false;=0A=
static const bool tinyness_before =3D false;=0A=
static const float_round_style round_style =3D round_toward_zero;=0A=
};=0A=
=0A=
template<typename _Tp>=0A=
struct numeric_limits : public __numeric_limits_base=0A=
{=0A=
static _Tp min() throw() { return static_cast<_Tp>(0); }=0A=
static _Tp max() throw() { return static_cast<_Tp>(0); }=0A=
static _Tp epsilon() throw() { return static_cast<_Tp>(0); }=0A=
static _Tp round_error() throw() { return static_cast<_Tp>(0); }=0A=
static _Tp infinity() throw() { return static_cast<_Tp>(0); }=0A=
static _Tp quiet_NaN() throw() { return static_cast<_Tp>(0); }=0A=
static _Tp signaling_NaN() throw() { return static_cast<_Tp>(0); }=0A=
static _Tp denorm_min() throw() { return static_cast<_Tp>(0); }=0A=
};=0A=
=0A=
=0A=
=0A=
template<>=0A=
struct numeric_limits<bool>=0A=
{=0A=
static const bool is_specialized =3D true;=0A=
=0A=
static bool min() throw()=0A=
{ return false; }=0A=
=0A=
static bool max() throw()=0A=
{ return true; }=0A=
=0A=
static const int digits =3D 1;=0A=
static const int digits10 =3D 0;=0A=
static const bool is_signed =3D false;=0A=
static const bool is_integer =3D true;=0A=
static const bool is_exact =3D true;=0A=
static const int radix =3D 2;=0A=
static bool epsilon() throw()=0A=
{ return false; }=0A=
static bool round_error() throw()=0A=
{ return false; }=0A=
=0A=
static const int min_exponent =3D 0;=0A=
static const int min_exponent10 =3D 0;=0A=
static const int max_exponent =3D 0;=0A=
static const int max_exponent10 =3D 0;=0A=
=0A=
static const bool has_infinity =3D false;=0A=
static const bool has_quiet_NaN =3D false;=0A=
static const bool has_signaling_NaN =3D false;=0A=
static const float_denorm_style has_denorm =3D denorm_absent;=0A=
static const bool has_denorm_loss =3D false;=0A=
=0A=
static bool infinity() throw()=0A=
{ return false; }=0A=
static bool quiet_NaN() throw()=0A=
{ return false; }=0A=
static bool signaling_NaN() throw()=0A=
{ return false; }=0A=
static bool denorm_min() throw()=0A=
{ return false; }=0A=
=0A=
static const bool is_iec559 =3D false;=0A=
static const bool is_bounded =3D true;=0A=
static const bool is_modulo =3D false;=0A=
=0A=
=0A=
=0A=
=0A=
static const bool traps =3D true=0A=
|| true;=0A=
static const bool tinyness_before =3D false;=0A=
static const float_round_style round_style =3D round_toward_zero;=0A=
};=0A=
=0A=
=0A=
=0A=
template<>=0A=
struct numeric_limits<char>=0A=
{=0A=
static const bool is_specialized =3D true;=0A=
=0A=
static char min() throw()=0A=
{ return (char)(-127 - 1); }=0A=
static char max() throw()=0A=
{ return (char)127; }=0A=
=0A=
static const int digits =3D 7;=0A=
static const int digits10 =3D 7;=0A=
static const bool is_signed =3D true;=0A=
static const bool is_integer =3D true;=0A=
static const bool is_exact =3D true;=0A=
static const int radix =3D 2;=0A=
static char epsilon() throw()=0A=
{ return char(); }=0A=
static char round_error() throw()=0A=
{ return char(); }=0A=
=0A=
static const int min_exponent =3D 0;=0A=
static const int min_exponent10 =3D 0;=0A=
static const int max_exponent =3D 0;=0A=
static const int max_exponent10 =3D 0;=0A=
=0A=
static const bool has_infinity =3D false;=0A=
static const bool has_quiet_NaN =3D false;=0A=
static const bool has_signaling_NaN =3D false;=0A=
static const float_denorm_style has_denorm =3D denorm_absent;=0A=
static const bool has_denorm_loss =3D false;=0A=
=0A=
static char infinity() throw()=0A=
{ return char(); }=0A=
static char quiet_NaN() throw()=0A=
{ return char(); }=0A=
static char signaling_NaN() throw()=0A=
{ return char(); }=0A=
static char denorm_min() throw()=0A=
{ return static_cast<char>(0); }=0A=
=0A=
static const bool is_iec559 =3D false;=0A=
static const bool is_bounded =3D true;=0A=
static const bool is_modulo =3D true;=0A=
=0A=
static const bool traps =3D true;=0A=
static const bool tinyness_before =3D false;=0A=
static const float_round_style round_style =3D round_toward_zero;=0A=
};=0A=
# 1071 "/usr/local/include/g++-v3/limits" 3=0A=
template<>=0A=
struct numeric_limits<signed char>=0A=
{=0A=
static const bool is_specialized =3D true;=0A=
=0A=
static signed char min() throw()=0A=
{ return (-127 - 1); }=0A=
static signed char max() throw()=0A=
{ return 127; }=0A=
=0A=
static const int digits =3D 7;=0A=
static const int digits10 =3D 2;=0A=
static const bool is_signed =3D true;=0A=
static const bool is_integer =3D true;=0A=
static const bool is_exact =3D true;=0A=
static const int radix =3D 2;=0A=
static signed char epsilon() throw()=0A=
{ return 0; }=0A=
static signed char round_error() throw()=0A=
{ return 0; }=0A=
=0A=
static const int min_exponent =3D 0;=0A=
static const int min_exponent10 =3D 0;=0A=
static const int max_exponent =3D 0;=0A=
static const int max_exponent10 =3D 0;=0A=
=0A=
static const bool has_infinity =3D false;=0A=
static const bool has_quiet_NaN =3D false;=0A=
static const bool has_signaling_NaN =3D false;=0A=
static const float_denorm_style has_denorm =3D denorm_absent;=0A=
static const bool has_denorm_loss =3D false;=0A=
=0A=
static signed char infinity() throw()=0A=
{ return static_cast<signed char>(0); }=0A=
static signed char quiet_NaN() throw()=0A=
{ return static_cast<signed char>(0); }=0A=
static signed char signaling_NaN() throw()=0A=
{ return static_cast<signed char>(0); }=0A=
static signed char denorm_min() throw()=0A=
{ return static_cast<signed char>(0); }=0A=
=0A=
static const bool is_iec559 =3D false;=0A=
static const bool is_bounded =3D true;=0A=
static const bool is_modulo =3D true;=0A=
=0A=
static const bool traps =3D true;=0A=
static const bool tinyness_before =3D false;=0A=
static const float_round_style round_style =3D round_toward_zero;=0A=
};=0A=
# 1128 "/usr/local/include/g++-v3/limits" 3=0A=
template<>=0A=
struct numeric_limits<unsigned char>=0A=
{=0A=
static const bool is_specialized =3D true;=0A=
=0A=
static unsigned char min() throw()=0A=
{ return 0; }=0A=
static unsigned char max() throw()=0A=
{ return (127 * 2 + 1); }=0A=
=0A=
static const int digits =3D 8;=0A=
static const int digits10 =3D 2;=0A=
static const bool is_signed =3D false;=0A=
static const bool is_integer =3D true;=0A=
static const bool is_exact =3D true;=0A=
static const int radix =3D 2;=0A=
static unsigned char epsilon() throw()=0A=
{ return 0; }=0A=
static unsigned char round_error() throw()=0A=
{ return 0; }=0A=
=0A=
static const int min_exponent =3D 0;=0A=
static const int min_exponent10 =3D 0;=0A=
static const int max_exponent =3D 0;=0A=
static const int max_exponent10 =3D 0;=0A=
=0A=
static const bool has_infinity =3D false;=0A=
static const bool has_quiet_NaN =3D false;=0A=
static const bool has_signaling_NaN =3D false;=0A=
static const float_denorm_style has_denorm =3D denorm_absent;=0A=
static const bool has_denorm_loss =3D false;=0A=
=0A=
static unsigned char infinity() throw()=0A=
{ return static_cast<unsigned char>(0); }=0A=
static unsigned char quiet_NaN() throw()=0A=
{ return static_cast<unsigned char>(0); }=0A=
static unsigned char signaling_NaN() throw()=0A=
{ return static_cast<unsigned char>(0); }=0A=
static unsigned char denorm_min() throw()=0A=
{ return static_cast<unsigned char>(0); }=0A=
=0A=
static const bool is_iec559 =3D false;=0A=
static const bool is_bounded =3D true;=0A=
static const bool is_modulo =3D true;=0A=
=0A=
static const bool traps =3D true;=0A=
static const bool tinyness_before =3D false;=0A=
static const float_round_style round_style =3D round_toward_zero;=0A=
};=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<>=0A=
struct numeric_limits<wchar_t>=0A=
{=0A=
static const bool is_specialized =3D true;=0A=
=0A=
static wchar_t min() throw()=0A=
{ return (wchar_t)(-2147483647L - 1); }=0A=
static wchar_t max() throw()=0A=
{ return (wchar_t)2147483647L; }=0A=
=0A=
static const int digits =3D 31;=0A=
static const int digits10 =3D 9;=0A=
static const bool is_signed =3D true;=0A=
static const bool is_integer =3D true;=0A=
static const bool is_exact =3D true;=0A=
static const int radix =3D 2;=0A=
static wchar_t epsilon() throw()=0A=
{ return 0; }=0A=
static wchar_t round_error() throw()=0A=
{ return 0; }=0A=
=0A=
static const int min_exponent =3D 0;=0A=
static const int min_exponent10 =3D 0;=0A=
static const int max_exponent =3D 0;=0A=
static const int max_exponent10 =3D 0;=0A=
=0A=
static const bool has_infinity =3D false;=0A=
static const bool has_quiet_NaN =3D false;=0A=
static const bool has_signaling_NaN =3D false;=0A=
static const float_denorm_style has_denorm =3D denorm_absent;=0A=
static const bool has_denorm_loss =3D false;=0A=
=0A=
static wchar_t infinity() throw()=0A=
{ return wchar_t(); }=0A=
static wchar_t quiet_NaN() throw()=0A=
{ return wchar_t(); }=0A=
static wchar_t signaling_NaN() throw()=0A=
{ return wchar_t(); }=0A=
static wchar_t denorm_min() throw()=0A=
{ return wchar_t(); }=0A=
=0A=
static const bool is_iec559 =3D false;=0A=
static const bool is_bounded =3D true;=0A=
static const bool is_modulo =3D true;=0A=
=0A=
static const bool traps =3D true;=0A=
static const bool tinyness_before =3D false;=0A=
static const float_round_style round_style =3D round_toward_zero;=0A=
};=0A=
# 1241 "/usr/local/include/g++-v3/limits" 3=0A=
template<>=0A=
struct numeric_limits<short>=0A=
{=0A=
static const bool is_specialized =3D true;=0A=
=0A=
static short min() throw()=0A=
{ return (-32767 - 1); }=0A=
static short max() throw()=0A=
{ return 32767; }=0A=
=0A=
static const int digits =3D 15;=0A=
static const int digits10 =3D 4;=0A=
static const bool is_signed =3D true;=0A=
static const bool is_integer =3D true;=0A=
static const bool is_exact =3D true;=0A=
static const int radix =3D 2;=0A=
static short epsilon() throw()=0A=
{ return 0; }=0A=
static short round_error() throw()=0A=
{ return 0; }=0A=
=0A=
static const int min_exponent =3D 0;=0A=
static const int min_exponent10 =3D 0;=0A=
static const int max_exponent =3D 0;=0A=
static const int max_exponent10 =3D 0;=0A=
=0A=
static const bool has_infinity =3D false;=0A=
static const bool has_quiet_NaN =3D false;=0A=
static const bool has_signaling_NaN =3D false;=0A=
static const float_denorm_style has_denorm =3D denorm_absent;=0A=
static const bool has_denorm_loss =3D false;=0A=
=0A=
static short infinity() throw()=0A=
{ return short(); }=0A=
static short quiet_NaN() throw()=0A=
{ return short(); }=0A=
static short signaling_NaN() throw()=0A=
{ return short(); }=0A=
static short denorm_min() throw()=0A=
{ return short(); }=0A=
=0A=
static const bool is_iec559 =3D true;=0A=
static const bool is_bounded =3D true;=0A=
static const bool is_modulo =3D true;=0A=
=0A=
static const bool traps =3D true;=0A=
static const bool tinyness_before =3D false;=0A=
static const float_round_style round_style =3D round_toward_zero;=0A=
};=0A=
# 1298 "/usr/local/include/g++-v3/limits" 3=0A=
template<>=0A=
struct numeric_limits<unsigned short>=0A=
{=0A=
static const bool is_specialized =3D true;=0A=
=0A=
static unsigned short min() throw()=0A=
{ return 0; }=0A=
static unsigned short max() throw()=0A=
{ return (32767 * 2 + 1); }=0A=
=0A=
static const int digits =3D 16;=0A=
static const int digits10 =3D 4;=0A=
static const bool is_signed =3D false;=0A=
static const bool is_integer =3D true;=0A=
static const bool is_exact =3D true;=0A=
static const int radix =3D 2;=0A=
static unsigned short epsilon() throw()=0A=
{ return 0; }=0A=
static unsigned short round_error() throw()=0A=
{ return 0; }=0A=
=0A=
static const int min_exponent =3D 0;=0A=
static const int min_exponent10 =3D 0;=0A=
static const int max_exponent =3D 0;=0A=
static const int max_exponent10 =3D 0;=0A=
=0A=
static const bool has_infinity =3D false;=0A=
static const bool has_quiet_NaN =3D false;=0A=
static const bool has_signaling_NaN =3D false;=0A=
static const float_denorm_style has_denorm =3D denorm_absent;=0A=
static const bool has_denorm_loss =3D false;=0A=
=0A=
static unsigned short infinity() throw()=0A=
{ return static_cast<unsigned short>(0); }=0A=
static unsigned short quiet_NaN() throw()=0A=
{ return static_cast<unsigned short>(0); }=0A=
static unsigned short signaling_NaN() throw()=0A=
{ return static_cast<unsigned short>(0); }=0A=
static unsigned short denorm_min() throw()=0A=
{ return static_cast<unsigned short>(0); }=0A=
=0A=
static const bool is_iec559 =3D true;=0A=
static const bool is_bounded =3D true;=0A=
static const bool is_modulo =3D true;=0A=
=0A=
static const bool traps =3D true;=0A=
static const bool tinyness_before =3D false;=0A=
static const float_round_style round_style =3D round_toward_zero;=0A=
};=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<>=0A=
struct numeric_limits<int>=0A=
{=0A=
static const bool is_specialized =3D true;=0A=
=0A=
static int min() throw()=0A=
{ return (int)(-2147483647L - 1); }=0A=
static int max() throw()=0A=
{ return (int)2147483647L; }=0A=
=0A=
static const int digits =3D 31;=0A=
static const int digits10 =3D 9;=0A=
static const bool is_signed =3D true;=0A=
static const bool is_integer =3D true;=0A=
static const bool is_exact =3D true;=0A=
static const int radix =3D 2;=0A=
static int epsilon() throw()=0A=
{ return 0; }=0A=
static int round_error() throw()=0A=
{ return 0; }=0A=
=0A=
static const int min_exponent =3D 0;=0A=
static const int min_exponent10 =3D 0;=0A=
static const int max_exponent =3D 0;=0A=
static const int max_exponent10 =3D 0;=0A=
=0A=
static const bool has_infinity =3D false;=0A=
static const bool has_quiet_NaN =3D false;=0A=
static const bool has_signaling_NaN =3D false;=0A=
static const float_denorm_style has_denorm =3D denorm_absent;=0A=
static const bool has_denorm_loss =3D false;=0A=
=0A=
static int infinity() throw()=0A=
{ return static_cast<int>(0); }=0A=
static int quiet_NaN() throw()=0A=
{ return static_cast<int>(0); }=0A=
static int signaling_NaN() throw()=0A=
{ return static_cast<int>(0); }=0A=
static int denorm_min() throw()=0A=
{ return static_cast<int>(0); }=0A=
=0A=
static const bool is_iec559 =3D true;=0A=
static const bool is_bounded =3D true;=0A=
static const bool is_modulo =3D true;=0A=
=0A=
static const bool traps =3D true;=0A=
static const bool tinyness_before =3D false;=0A=
static const float_round_style round_style =3D round_toward_zero;=0A=
};=0A=
# 1410 "/usr/local/include/g++-v3/limits" 3=0A=
template<>=0A=
struct numeric_limits<unsigned int>=0A=
{=0A=
static const bool is_specialized =3D true;=0A=
=0A=
static unsigned int min() throw()=0A=
{ return 0; }=0A=
static unsigned int max() throw()=0A=
{ return (unsigned)(2147483647L * 2U + 1); }=0A=
=0A=
static const int digits =3D 32;=0A=
static const int digits10 =3D 9;=0A=
static const bool is_signed =3D false;=0A=
static const bool is_integer =3D true;=0A=
static const bool is_exact =3D true;=0A=
static const int radix =3D 2;=0A=
static unsigned int epsilon() throw()=0A=
{ return 0; }=0A=
static unsigned int round_error() throw()=0A=
{ return 0; }=0A=
=0A=
static const int min_exponent =3D 0;=0A=
static const int min_exponent10 =3D 0;=0A=
static const int max_exponent =3D 0;=0A=
static const int max_exponent10 =3D 0;=0A=
=0A=
static const bool has_infinity =3D false;=0A=
static const bool has_quiet_NaN =3D false;=0A=
static const bool has_signaling_NaN =3D false;=0A=
static const float_denorm_style has_denorm =3D denorm_absent;=0A=
static const bool has_denorm_loss =3D false;=0A=
=0A=
static unsigned int infinity() throw()=0A=
{ return static_cast<unsigned int>(0); }=0A=
static unsigned int quiet_NaN() throw()=0A=
{ return static_cast<unsigned int>(0); }=0A=
static unsigned int signaling_NaN() throw()=0A=
{ return static_cast<unsigned int>(0); }=0A=
static unsigned int denorm_min() throw()=0A=
{ return static_cast<unsigned int>(0); }=0A=
=0A=
static const bool is_iec559 =3D true;=0A=
static const bool is_bounded =3D true;=0A=
static const bool is_modulo =3D true;=0A=
=0A=
static const bool traps =3D true;=0A=
static const bool tinyness_before =3D false;=0A=
static const float_round_style round_style =3D round_toward_zero;=0A=
};=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<>=0A=
struct numeric_limits<long>=0A=
{=0A=
static const bool is_specialized =3D true;=0A=
=0A=
static long min() throw()=0A=
{ return (-2147483647L - 1); }=0A=
static long max() throw()=0A=
{ return 2147483647L; }=0A=
=0A=
static const int digits =3D 31;=0A=
static const int digits10 =3D 9;=0A=
static const bool is_signed =3D true;=0A=
static const bool is_integer =3D true;=0A=
static const bool is_exact =3D true;=0A=
static const int radix =3D 2;=0A=
static long epsilon() throw()=0A=
{ return 0; }=0A=
static long round_error() throw()=0A=
{ return 0; }=0A=
=0A=
static const int min_exponent =3D 0;=0A=
static const int min_exponent10 =3D 0;=0A=
static const int max_exponent =3D 0;=0A=
static const int max_exponent10 =3D 0;=0A=
=0A=
static const bool has_infinity =3D false;=0A=
static const bool has_quiet_NaN =3D false;=0A=
static const bool has_signaling_NaN =3D false;=0A=
static const float_denorm_style has_denorm =3D denorm_absent;=0A=
static const bool has_denorm_loss =3D false;=0A=
=0A=
static long infinity() throw()=0A=
{ return static_cast<long>(0); }=0A=
static long quiet_NaN() throw()=0A=
{ return static_cast<long>(0); }=0A=
static long signaling_NaN() throw()=0A=
{ return static_cast<long>(0); }=0A=
static long denorm_min() throw()=0A=
{ return static_cast<long>(0); }=0A=
=0A=
static const bool is_iec559 =3D true;=0A=
static const bool is_bounded =3D true;=0A=
static const bool is_modulo =3D true;=0A=
=0A=
static const bool traps =3D true;=0A=
static const bool tinyness_before =3D false;=0A=
static const float_round_style round_style =3D round_toward_zero;=0A=
};=0A=
# 1522 "/usr/local/include/g++-v3/limits" 3=0A=
template<>=0A=
struct numeric_limits<unsigned long>=0A=
{=0A=
static const bool is_specialized =3D true;=0A=
=0A=
static unsigned long min() throw()=0A=
{ return 0; }=0A=
static unsigned long max() throw()=0A=
{ return (2147483647L * 2U + 1); }=0A=
=0A=
static const int digits =3D 32;=0A=
static const int digits10 =3D 9;=0A=
static const bool is_signed =3D false;=0A=
static const bool is_integer =3D true;=0A=
static const bool is_exact =3D true;=0A=
static const int radix =3D 2;=0A=
static unsigned long epsilon() throw()=0A=
{ return 0; }=0A=
static unsigned long round_error() throw()=0A=
{ return 0; }=0A=
=0A=
static const int min_exponent =3D 0;=0A=
static const int min_exponent10 =3D 0;=0A=
static const int max_exponent =3D 0;=0A=
static const int max_exponent10 =3D 0;=0A=
=0A=
static const bool has_infinity =3D false;=0A=
static const bool has_quiet_NaN =3D false;=0A=
static const bool has_signaling_NaN =3D false;=0A=
static const float_denorm_style has_denorm =3D denorm_absent;=0A=
static const bool has_denorm_loss =3D false;=0A=
=0A=
static unsigned long infinity() throw()=0A=
{ return static_cast<unsigned long>(0); }=0A=
static unsigned long quiet_NaN() throw()=0A=
{ return static_cast<unsigned long>(0); }=0A=
static unsigned long signaling_NaN() throw()=0A=
{ return static_cast<unsigned long>(0); }=0A=
static unsigned long denorm_min() throw()=0A=
{ return static_cast<unsigned long>(0); }=0A=
=0A=
static const bool is_iec559 =3D true;=0A=
static const bool is_bounded =3D true;=0A=
static const bool is_modulo =3D true;=0A=
=0A=
static const bool traps =3D true;=0A=
static const bool tinyness_before =3D false;=0A=
static const float_round_style round_style =3D round_toward_zero;=0A=
};=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<>=0A=
struct numeric_limits<long long>=0A=
{=0A=
static const bool is_specialized =3D true;=0A=
=0A=
static long long min() throw()=0A=
{ return (-9223372036854775807LL - 1); }=0A=
static long long max() throw()=0A=
{ return 9223372036854775807LL; }=0A=
=0A=
static const int digits =3D 63;=0A=
static const int digits10 =3D 18;=0A=
static const bool is_signed =3D true;=0A=
static const bool is_integer =3D true;=0A=
static const bool is_exact =3D true;=0A=
static const int radix =3D 2;=0A=
static long long epsilon() throw()=0A=
{ return 0; }=0A=
static long long round_error() throw()=0A=
{ return 0; }=0A=
=0A=
static const int min_exponent =3D 0;=0A=
static const int min_exponent10 =3D 0;=0A=
static const int max_exponent =3D 0;=0A=
static const int max_exponent10 =3D 0;=0A=
=0A=
static const bool has_infinity =3D false;=0A=
static const bool has_quiet_NaN =3D false;=0A=
static const bool has_signaling_NaN =3D false;=0A=
static const float_denorm_style has_denorm =3D denorm_absent;=0A=
static const bool has_denorm_loss =3D false;=0A=
=0A=
static long long infinity() throw()=0A=
{ return static_cast<long long>(0); }=0A=
static long long quiet_NaN() throw()=0A=
{ return static_cast<long long>(0); }=0A=
static long long signaling_NaN() throw()=0A=
{ return static_cast<long long>(0); }=0A=
static long long denorm_min() throw()=0A=
{ return static_cast<long long>(0); }=0A=
=0A=
static const bool is_iec559 =3D true;=0A=
static const bool is_bounded =3D true;=0A=
static const bool is_modulo =3D true;=0A=
=0A=
static const bool traps =3D true;=0A=
static const bool tinyness_before =3D false;=0A=
static const float_round_style round_style =3D round_toward_zero;=0A=
};=0A=
# 1634 "/usr/local/include/g++-v3/limits" 3=0A=
template<>=0A=
struct numeric_limits<unsigned long long>=0A=
{=0A=
static const bool is_specialized =3D true;=0A=
=0A=
static unsigned long long min() throw()=0A=
{ return 0; }=0A=
static unsigned long long max() throw()=0A=
{ return (9223372036854775807LL * 2ULL + 1); }=0A=
=0A=
static const int digits =3D 64;=0A=
static const int digits10 =3D 19;=0A=
static const bool is_signed =3D false;=0A=
static const bool is_integer =3D true;=0A=
static const bool is_exact =3D true;=0A=
static const int radix =3D 2;=0A=
static unsigned long long epsilon() throw()=0A=
{ return 0; }=0A=
static unsigned long long round_error() throw()=0A=
{ return 0; }=0A=
=0A=
static const int min_exponent =3D 0;=0A=
static const int min_exponent10 =3D 0;=0A=
static const int max_exponent =3D 0;=0A=
static const int max_exponent10 =3D 0;=0A=
=0A=
static const bool has_infinity =3D false;=0A=
static const bool has_quiet_NaN =3D false;=0A=
static const bool has_signaling_NaN =3D false;=0A=
static const float_denorm_style has_denorm =3D denorm_absent;=0A=
static const bool has_denorm_loss =3D false;=0A=
=0A=
static unsigned long long infinity() throw()=0A=
{ return static_cast<unsigned long long>(0); }=0A=
static unsigned long long quiet_NaN() throw()=0A=
{ return static_cast<unsigned long long>(0); }=0A=
static unsigned long long signaling_NaN() throw()=0A=
{ return static_cast<unsigned long long>(0); }=0A=
static unsigned long long denorm_min() throw()=0A=
{ return static_cast<unsigned long long>(0); }=0A=
=0A=
static const bool is_iec559 =3D true;=0A=
static const bool is_bounded =3D true;=0A=
static const bool is_modulo =3D true;=0A=
=0A=
static const bool traps =3D true;=0A=
static const bool tinyness_before =3D false;=0A=
static const float_round_style round_style =3D round_toward_zero;=0A=
};=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<>=0A=
struct numeric_limits<float>=0A=
{=0A=
static const bool is_specialized =3D true;=0A=
=0A=
static float min() throw()=0A=
{ return 1.17549435e-38F; }=0A=
static float max() throw()=0A=
{ return 3.40282347e+38F; }=0A=
=0A=
static const int digits =3D 24;=0A=
static const int digits10 =3D 6;=0A=
static const bool is_signed =3D true;=0A=
static const bool is_integer =3D false;=0A=
static const bool is_exact =3D false;=0A=
static const int radix =3D 2;=0A=
static float epsilon() throw()=0A=
{ return 1.19209290e-07F; }=0A=
static float round_error() throw()=0A=
{ return 1.0F; }=0A=
=0A=
static const int min_exponent =3D -125;=0A=
static const int min_exponent10 =3D -37;=0A=
static const int max_exponent =3D 128;=0A=
static const int max_exponent10 =3D 38;=0A=
=0A=
static const bool has_infinity =3D false;=0A=
static const bool has_quiet_NaN =3D false;=0A=
static const bool has_signaling_NaN =3D false;=0A=
static const float_denorm_style has_denorm =3D denorm_absent;=0A=
static const bool has_denorm_loss =3D false;=0A=
=0A=
static float infinity() throw()=0A=
{ return 0.0F; }=0A=
static float quiet_NaN() throw()=0A=
{ return 0.0F; }=0A=
static float signaling_NaN() throw()=0A=
{ return 0.0F; }=0A=
static float denorm_min() throw()=0A=
{ return 0.0F; }=0A=
=0A=
static const bool is_iec559 =3D false;=0A=
static const bool is_bounded =3D true;=0A=
static const bool is_modulo =3D false;=0A=
=0A=
static const bool traps =3D false;=0A=
static const bool tinyness_before =3D false;=0A=
static const float_round_style round_style =3D round_toward_zero;=0A=
};=0A=
# 1765 "/usr/local/include/g++-v3/limits" 3=0A=
template<>=0A=
struct numeric_limits<double>=0A=
{=0A=
static const bool is_specialized =3D true;=0A=
=0A=
static double min() throw()=0A=
{ return 2.2250738585072014e-308; }=0A=
static double max() throw()=0A=
{ return 1.7976931348623157e+308; }=0A=
=0A=
static const int digits =3D 53;=0A=
static const int digits10 =3D 15;=0A=
static const bool is_signed =3D true;=0A=
static const bool is_integer =3D false;=0A=
static const bool is_exact =3D false;=0A=
static const int radix =3D 2;=0A=
static double epsilon() throw()=0A=
{ return 2.2204460492503131e-16; }=0A=
static double round_error() throw()=0A=
{ return 1.0; }=0A=
=0A=
static const int min_exponent =3D -1021;=0A=
static const int min_exponent10 =3D -307;=0A=
static const int max_exponent =3D 1024;=0A=
static const int max_exponent10 =3D 308;=0A=
=0A=
static const bool has_infinity =3D false;=0A=
static const bool has_quiet_NaN =3D false;=0A=
static const bool has_signaling_NaN =3D false;=0A=
static const float_denorm_style has_denorm =3D=0A=
denorm_absent;=0A=
static const bool has_denorm_loss =3D false;=0A=
=0A=
static double infinity() throw()=0A=
{ return 0.0; }=0A=
static double quiet_NaN() throw()=0A=
{ return 0.0; }=0A=
static double signaling_NaN() throw()=0A=
{ return 0.0; }=0A=
static double denorm_min() throw()=0A=
{ return 0.0; }=0A=
=0A=
static const bool is_iec559 =3D false;=0A=
static const bool is_bounded =3D true;=0A=
static const bool is_modulo =3D false;=0A=
=0A=
static const bool traps =3D false;=0A=
static const bool tinyness_before =3D false;=0A=
static const float_round_style round_style =3D=0A=
round_toward_zero;=0A=
};=0A=
# 1844 "/usr/local/include/g++-v3/limits" 3=0A=
template<>=0A=
struct numeric_limits<long double>=0A=
{=0A=
static const bool is_specialized =3D true;=0A=
=0A=
static long double min() throw()=0A=
{ return 3.36210314311209350626e-4932L; }=0A=
static long double max() throw()=0A=
{ return 1.18973149535723176502e+4932L; }=0A=
=0A=
static const int digits =3D 64;=0A=
static const int digits10 =3D 18;=0A=
static const bool is_signed =3D true;=0A=
static const bool is_integer =3D false;=0A=
static const bool is_exact =3D false;=0A=
static const int radix =3D 2;=0A=
static long double epsilon() throw()=0A=
{ return 1.08420217248550443401e-19L; }=0A=
static long double round_error() throw()=0A=
{ return 1.0L; }=0A=
=0A=
static const int min_exponent =3D -16381;=0A=
static const int min_exponent10 =3D -4931;=0A=
static const int max_exponent =3D 16384;=0A=
static const int max_exponent10 =3D 4932;=0A=
=0A=
static const bool has_infinity =3D false;=0A=
static const bool has_quiet_NaN =3D false;=0A=
static const bool has_signaling_NaN =3D=0A=
false;=0A=
static const float_denorm_style has_denorm =3D=0A=
denorm_absent;=0A=
static const bool has_denorm_loss =3D=0A=
false;=0A=
=0A=
static long double infinity() throw()=0A=
{ return 0.0L; }=0A=
static long double quiet_NaN() throw()=0A=
{ return 0.0L; }=0A=
static long double signaling_NaN() throw()=0A=
{ return 0.0L; }=0A=
static long double denorm_min() throw()=0A=
{ return 0.0L; }=0A=
=0A=
static const bool is_iec559 =3D false;=0A=
static const bool is_bounded =3D true;=0A=
static const bool is_modulo =3D false;=0A=
=0A=
static const bool traps =3D false;=0A=
static const bool tinyness_before =3D false;=0A=
static const float_round_style round_style =3D=0A=
round_toward_zero;=0A=
};=0A=
# 1924 "/usr/local/include/g++-v3/limits" 3=0A=
}=0A=
# 44 "/usr/local/include/g++-v3/bits/locale_facets.tcc" 2 3=0A=
=0A=
# 1 "/usr/local/include/g++-v3/typeinfo" 1 3=0A=
# 40 "/usr/local/include/g++-v3/typeinfo" 3=0A=
extern "C++" {=0A=
=0A=
namespace __cxxabiv1=0A=
{=0A=
class __class_type_info;=0A=
}=0A=
# 55 "/usr/local/include/g++-v3/typeinfo" 3=0A=
namespace std=0A=
{=0A=
=0A=
=0A=
=0A=
class type_info=0A=
{=0A=
public:=0A=
=0A=
=0A=
=0A=
=0A=
virtual ~type_info();=0A=
=0A=
private:=0A=
=0A=
type_info& operator=3D(const type_info&);=0A=
type_info(const type_info&);=0A=
=0A=
protected:=0A=
const char *__name;=0A=
=0A=
protected:=0A=
explicit type_info(const char *__n): __name(__n) { }=0A=
=0A=
public:=0A=
=0A=
=0A=
=0A=
const char* name() const=0A=
{ return __name; }=0A=
# 98 "/usr/local/include/g++-v3/typeinfo" 3=0A=
bool before(const type_info& __arg) const=0A=
{ return __name < __arg.__name; }=0A=
bool operator=3D=3D(const type_info& __arg) const=0A=
{ return __name =3D=3D __arg.__name; }=0A=
=0A=
bool operator!=3D(const type_info& __arg) const=0A=
{ return !operator=3D=3D(__arg); }=0A=
=0A=
=0A=
public:=0A=
=0A=
virtual bool __is_pointer_p() const;=0A=
=0A=
virtual bool __is_function_p() const;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
virtual bool __do_catch(const type_info *__thr_type, void =
**__thr_obj,=0A=
unsigned __outer) const;=0A=
=0A=
=0A=
virtual bool __do_upcast(const __cxxabiv1::__class_type_info =
*__target,=0A=
void **__obj_ptr) const;=0A=
};=0A=
=0A=
=0A=
=0A=
class bad_cast : public exception=0A=
{=0A=
public:=0A=
bad_cast() throw() { }=0A=
=0A=
=0A=
virtual ~bad_cast() throw();=0A=
};=0A=
=0A=
=0A=
class bad_typeid : public exception=0A=
{=0A=
public:=0A=
bad_typeid () throw() { }=0A=
=0A=
=0A=
virtual ~bad_typeid() throw();=0A=
};=0A=
}=0A=
=0A=
}=0A=
# 46 "/usr/local/include/g++-v3/bits/locale_facets.tcc" 2 3=0A=
=0A=
namespace std=0A=
{=0A=
template<typename _Facet>=0A=
locale=0A=
locale::combine(const locale& __other) const=0A=
{=0A=
_Impl* __tmp =3D new _Impl(*_M_impl, 1);=0A=
__tmp->_M_replace_facet(__other._M_impl, &_Facet::id);=0A=
return locale(__tmp);=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
bool=0A=
locale::operator()(const basic_string<_CharT, _Traits, _Alloc>& __s1,=0A=
const basic_string<_CharT, _Traits, _Alloc>& =
__s2) const=0A=
{=0A=
typedef std::collate<_CharT> __collate_type;=0A=
const __collate_type& __collate =3D =
use_facet<__collate_type>(*this);=0A=
return (__collate.compare(__s1.data(), __s1.data() + __s1.length(),=0A=
__s2.data(), __s2.data() + =
__s2.length()) < 0);=0A=
}=0A=
=0A=
template<typename _Facet>=0A=
const _Facet&=0A=
use_facet(const locale& __loc)=0A=
{=0A=
size_t __i =3D _Facet::id._M_id();=0A=
locale::facet** __facets =3D __loc._M_impl->_M_facets;=0A=
if (!(__i < __loc._M_impl->_M_facets_size && __facets[__i]))=0A=
__throw_bad_cast();=0A=
return static_cast<const _Facet&>(*__facets[__i]);=0A=
}=0A=
=0A=
template<typename _Facet>=0A=
bool=0A=
has_facet(const locale& __loc) throw()=0A=
{=0A=
size_t __i =3D _Facet::id._M_id();=0A=
locale::facet** __facets =3D __loc._M_impl->_M_facets;=0A=
return (__i < __loc._M_impl->_M_facets_size && __facets[__i]);=0A=
}=0A=
=0A=
=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
_InIter=0A=
num_get<_CharT, _InIter>::=0A=
_M_extract_float(_InIter __beg, _InIter __end, ios_base& __io,=0A=
ios_base::iostate& __err, string& __xtrc) const=0A=
{=0A=
const locale __loc =3D __io.getloc();=0A=
const ctype<_CharT>& __ctype =3D use_facet<ctype<_CharT> >(__loc);=0A=
const numpunct<_CharT>& __np =3D use_facet<numpunct<_CharT> =
>(__loc);=0A=
=0A=
=0A=
const char_type __plus =3D __ctype.widen('+');=0A=
const char_type __minus =3D __ctype.widen('-');=0A=
int __pos =3D 0;=0A=
char_type __c =3D *__beg;=0A=
if ((__c =3D=3D __plus || __c =3D=3D __minus) && __beg !=3D __end)=0A=
{=0A=
__xtrc +=3D __ctype.narrow(__c, char());=0A=
++__pos;=0A=
__c =3D *(++__beg);=0A=
}=0A=
=0A=
=0A=
const char_type __zero =3D __ctype.widen(_S_atoms[_M_zero]);=0A=
bool __found_zero =3D false;=0A=
while (__c =3D=3D __zero && __beg !=3D __end)=0A=
{=0A=
__c =3D *(++__beg);=0A=
__found_zero =3D true;=0A=
}=0A=
if (__found_zero)=0A=
{=0A=
__xtrc +=3D _S_atoms[_M_zero];=0A=
++__pos;=0A=
}=0A=
=0A=
=0A=
const size_t __len =3D _M_E - _M_zero + 1;=0A=
char_type __watoms[__len];=0A=
__ctype.widen(_S_atoms, _S_atoms + __len, __watoms);=0A=
bool __found_dec =3D false;=0A=
bool __found_sci =3D false;=0A=
const char_type __dec =3D __np.decimal_point();=0A=
=0A=
string __found_grouping;=0A=
const string __grouping =3D __np.grouping();=0A=
bool __check_grouping =3D __grouping.size();=0A=
int __sep_pos =3D 0;=0A=
const char_type __sep =3D __np.thousands_sep();=0A=
=0A=
while (__beg !=3D __end)=0A=
{=0A=
=0A=
typedef char_traits<_CharT> __traits_type;=0A=
const char_type* __p =3D __traits_type::find(__watoms, 10, =
__c);=0A=
=0A=
=0A=
if (__p && __c)=0A=
{=0A=
=0A=
++__pos;=0A=
__xtrc +=3D _S_atoms[__p - __watoms];=0A=
++__sep_pos;=0A=
__c =3D *(++__beg);=0A=
}=0A=
else if (__c =3D=3D __sep && __check_grouping && !__found_dec)=0A=
{=0A=
=0A=
=0A=
if (__sep_pos)=0A=
{=0A=
__found_grouping +=3D static_cast<char>(__sep_pos);=0A=
__sep_pos =3D 0;=0A=
__c =3D *(++__beg);=0A=
}=0A=
else=0A=
{=0A=
__err |=3D ios_base::failbit;=0A=
break;=0A=
}=0A=
}=0A=
else if (__c =3D=3D __dec && !__found_dec)=0A=
{=0A=
=0A=
=0A=
=0A=
if (__found_grouping.size())=0A=
__found_grouping +=3D static_cast<char>(__sep_pos);=0A=
++__pos;=0A=
__xtrc +=3D '.';=0A=
__c =3D *(++__beg);=0A=
__found_dec =3D true;=0A=
}=0A=
else if ((__c =3D=3D __watoms[_M_e] || __c =3D=3D =
__watoms[_M_E])=0A=
&& !__found_sci && __pos)=0A=
{=0A=
=0A=
++__pos;=0A=
__xtrc +=3D __ctype.narrow(__c, char());=0A=
__c =3D *(++__beg);=0A=
=0A=
=0A=
if (__c =3D=3D __plus || __c =3D=3D __minus)=0A=
{=0A=
++__pos;=0A=
__xtrc +=3D __ctype.narrow(__c, char());=0A=
__c =3D *(++__beg);=0A=
}=0A=
__found_sci =3D true;=0A=
}=0A=
else=0A=
=0A=
break;=0A=
}=0A=
=0A=
=0A=
=0A=
if (__check_grouping && __found_grouping.size())=0A=
{=0A=
=0A=
if (!__found_dec)=0A=
__found_grouping +=3D static_cast<char>(__sep_pos);=0A=
if (!__verify_grouping(__grouping, __found_grouping))=0A=
__err |=3D ios_base::failbit;=0A=
}=0A=
=0A=
=0A=
__xtrc +=3D char();=0A=
if (__beg =3D=3D __end)=0A=
__err |=3D ios_base::eofbit;=0A=
return __beg;=0A=
}=0A=
=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
_InIter=0A=
num_get<_CharT, _InIter>::=0A=
_M_extract_int(_InIter __beg, _InIter __end, ios_base& __io,=0A=
ios_base::iostate& __err, string& __xtrc, int& =
__base) const=0A=
{=0A=
const locale __loc =3D __io.getloc();=0A=
const ctype<_CharT>& __ctype =3D use_facet<ctype<_CharT> >(__loc);=0A=
const numpunct<_CharT>& __np =3D use_facet<numpunct<_CharT> =
>(__loc);=0A=
=0A=
=0A=
ios_base::fmtflags __basefield =3D __io.flags() & =
ios_base::basefield;=0A=
if (__basefield =3D=3D ios_base::oct)=0A=
__base =3D 8;=0A=
else if (__basefield =3D=3D ios_base::hex)=0A=
__base =3D 16;=0A=
else=0A=
__base =3D 10;=0A=
=0A=
=0A=
int __pos =3D 0;=0A=
char_type __c =3D *__beg;=0A=
if ((__c =3D=3D __ctype.widen('+') || __c =3D=3D =
__ctype.widen('-'))=0A=
&& __beg !=3D __end)=0A=
{=0A=
__xtrc +=3D __ctype.narrow(__c, char());=0A=
++__pos;=0A=
__c =3D *(++__beg);=0A=
}=0A=
=0A=
=0A=
const char_type __zero =3D __ctype.widen(_S_atoms[_M_zero]);=0A=
const char_type __x =3D __ctype.widen('x');=0A=
const char_type __X =3D __ctype.widen('X');=0A=
if (__base =3D=3D 10)=0A=
{=0A=
bool __found_zero =3D false;=0A=
while (__c =3D=3D __zero && __beg !=3D __end)=0A=
{=0A=
__c =3D *(++__beg);=0A=
__found_zero =3D true;=0A=
}=0A=
if (__found_zero)=0A=
{=0A=
__xtrc +=3D _S_atoms[_M_zero];=0A=
++__pos;=0A=
if (__basefield =3D=3D 0)=0A=
{=0A=
if ((__c =3D=3D __x || __c =3D=3D __X) && __beg !=3D =
__end)=0A=
{=0A=
__xtrc +=3D __ctype.narrow(__c, char());=0A=
++__pos;=0A=
__c =3D *(++__beg);=0A=
__base =3D 16;=0A=
}=0A=
else=0A=
__base =3D 8;=0A=
}=0A=
}=0A=
}=0A=
else if (__base =3D=3D 16)=0A=
{=0A=
if (__c =3D=3D __zero && __beg !=3D __end)=0A=
{=0A=
__xtrc +=3D _S_atoms[_M_zero];=0A=
++__pos;=0A=
__c =3D *(++__beg);=0A=
if ((__c =3D=3D __x || __c =3D=3D __X) && __beg !=3D __end)=0A=
{=0A=
__xtrc +=3D __ctype.narrow(__c, char());=0A=
++__pos;=0A=
__c =3D *(++__beg);=0A=
}=0A=
}=0A=
}=0A=
=0A=
=0A=
=0A=
size_t __len;=0A=
if (__base =3D=3D 16)=0A=
__len =3D _M_size;=0A=
else=0A=
__len =3D __base;=0A=
=0A=
=0A=
char_type __watoms[_M_size];=0A=
__ctype.widen(_S_atoms, _S_atoms + __len, __watoms);=0A=
string __found_grouping;=0A=
const string __grouping =3D __np.grouping();=0A=
bool __check_grouping =3D __grouping.size();=0A=
int __sep_pos =3D 0;=0A=
const char_type __sep =3D __np.thousands_sep();=0A=
while (__beg !=3D __end)=0A=
{=0A=
typedef char_traits<_CharT> __traits_type;=0A=
const char_type* __p =3D __traits_type::find(__watoms, __len, =
__c);=0A=
=0A=
=0A=
if (__p && __c)=0A=
{=0A=
=0A=
__xtrc +=3D _S_atoms[__p - __watoms];=0A=
++__pos;=0A=
++__sep_pos;=0A=
__c =3D *(++__beg);=0A=
}=0A=
else if (__c =3D=3D __sep && __check_grouping)=0A=
{=0A=
=0A=
=0A=
if (__sep_pos)=0A=
{=0A=
__found_grouping +=3D static_cast<char>(__sep_pos);=0A=
__sep_pos =3D 0;=0A=
__c =3D *(++__beg);=0A=
}=0A=
else=0A=
{=0A=
__err |=3D ios_base::failbit;=0A=
break;=0A=
}=0A=
}=0A=
else=0A=
=0A=
break;=0A=
}=0A=
=0A=
=0A=
=0A=
if (__check_grouping && __found_grouping.size())=0A=
{=0A=
=0A=
__found_grouping +=3D static_cast<char>(__sep_pos);=0A=
if (!__verify_grouping(__grouping, __found_grouping))=0A=
__err |=3D ios_base::failbit;=0A=
}=0A=
=0A=
=0A=
__xtrc +=3D char();=0A=
if (__beg =3D=3D __end)=0A=
__err |=3D ios_base::eofbit;=0A=
return __beg;=0A=
}=0A=
=0A=
=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
_InIter=0A=
num_get<_CharT, _InIter>::=0A=
do_get(iter_type __beg, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, bool& __v) const=0A=
{=0A=
=0A=
if (!(__io.flags() & ios_base::boolalpha))=0A=
{=0A=
=0A=
=0A=
string __xtrc;=0A=
int __base;=0A=
__beg =3D _M_extract_int(__beg, __end, __io, __err, __xtrc, =
__base);=0A=
=0A=
unsigned long __ul;=0A=
__convert_to_v(__xtrc.c_str(), __ul, __err, _S_c_locale, =
__base);=0A=
if (!(__err & ios_base::failbit) && __ul <=3D 1)=0A=
__v =3D __ul;=0A=
else=0A=
__err |=3D ios_base::failbit;=0A=
}=0A=
=0A=
=0A=
else=0A=
{=0A=
typedef basic_string<_CharT> __string_type;=0A=
locale __loc =3D __io.getloc();=0A=
const numpunct<_CharT>& __np =3D use_facet<numpunct<_CharT> =
>(__loc);=0A=
const __string_type __true =3D __np.truename();=0A=
const __string_type __false =3D __np.falsename();=0A=
const char_type* __trues =3D __true.c_str();=0A=
const char_type* __falses =3D __false.c_str();=0A=
const size_t __truen =3D __true.size() - 1;=0A=
const size_t __falsen =3D __false.size() - 1;=0A=
=0A=
for (size_t __n =3D 0; __beg !=3D __end; ++__n)=0A=
{=0A=
char_type __c =3D *__beg++;=0A=
bool __testf =3D __n <=3D __falsen ? __c =3D=3D =
__falses[__n] : false;=0A=
bool __testt =3D __n <=3D __truen ? __c =3D=3D =
__trues[__n] : false;=0A=
if (!(__testf || __testt))=0A=
{=0A=
__err |=3D ios_base::failbit;=0A=
break;=0A=
}=0A=
else if (__testf && __n =3D=3D __falsen)=0A=
{=0A=
__v =3D 0;=0A=
break;=0A=
}=0A=
else if (__testt && __n =3D=3D __truen)=0A=
{=0A=
__v =3D 1;=0A=
break;=0A=
}=0A=
}=0A=
if (__beg =3D=3D __end)=0A=
__err |=3D ios_base::eofbit;=0A=
}=0A=
return __beg;=0A=
}=0A=
=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
_InIter=0A=
num_get<_CharT, _InIter>::=0A=
do_get(iter_type __beg, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, long& __v) const=0A=
{=0A=
string __xtrc;=0A=
int __base;=0A=
__beg =3D _M_extract_int(__beg, __end, __io, __err, __xtrc, =
__base);=0A=
__convert_to_v(__xtrc.c_str(), __v, __err, _S_c_locale, __base);=0A=
return __beg;=0A=
}=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
_InIter=0A=
num_get<_CharT, _InIter>::=0A=
do_get(iter_type __beg, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, unsigned short& __v) const=0A=
{=0A=
string __xtrc;=0A=
int __base;=0A=
__beg =3D _M_extract_int(__beg, __end, __io, __err, __xtrc, =
__base);=0A=
unsigned long __ul;=0A=
__convert_to_v(__xtrc.c_str(), __ul, __err, _S_c_locale, __base);=0A=
if (!(__err & ios_base::failbit)=0A=
&& __ul <=3D numeric_limits<unsigned short>::max())=0A=
__v =3D static_cast<unsigned short>(__ul);=0A=
else=0A=
__err |=3D ios_base::failbit;=0A=
return __beg;=0A=
}=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
_InIter=0A=
num_get<_CharT, _InIter>::=0A=
do_get(iter_type __beg, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, unsigned int& __v) const=0A=
{=0A=
string __xtrc;=0A=
int __base;=0A=
__beg =3D _M_extract_int(__beg, __end, __io, __err, __xtrc, =
__base);=0A=
unsigned long __ul;=0A=
__convert_to_v(__xtrc.c_str(), __ul, __err, _S_c_locale, __base);=0A=
if (!(__err & ios_base::failbit)=0A=
&& __ul <=3D numeric_limits<unsigned int>::max())=0A=
__v =3D static_cast<unsigned int>(__ul);=0A=
else=0A=
__err |=3D ios_base::failbit;=0A=
return __beg;=0A=
}=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
_InIter=0A=
num_get<_CharT, _InIter>::=0A=
do_get(iter_type __beg, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, unsigned long& __v) const=0A=
{=0A=
string __xtrc;=0A=
int __base;=0A=
__beg =3D _M_extract_int(__beg, __end, __io, __err, __xtrc, =
__base);=0A=
__convert_to_v(__xtrc.c_str(), __v, __err, _S_c_locale, __base);=0A=
return __beg;=0A=
}=0A=
=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
_InIter=0A=
num_get<_CharT, _InIter>::=0A=
do_get(iter_type __beg, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, long long& __v) const=0A=
{=0A=
string __xtrc;=0A=
int __base;=0A=
__beg =3D _M_extract_int(__beg, __end, __io, __err, __xtrc, =
__base);=0A=
__convert_to_v(__xtrc.c_str(), __v, __err, _S_c_locale, __base);=0A=
return __beg;=0A=
}=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
_InIter=0A=
num_get<_CharT, _InIter>::=0A=
do_get(iter_type __beg, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, unsigned long long& __v) const=0A=
{=0A=
string __xtrc;=0A=
int __base;=0A=
__beg =3D _M_extract_int(__beg, __end, __io, __err, __xtrc, =
__base);=0A=
__convert_to_v(__xtrc.c_str(), __v, __err, _S_c_locale, __base);=0A=
return __beg;=0A=
}=0A=
=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
_InIter=0A=
num_get<_CharT, _InIter>::=0A=
do_get(iter_type __beg, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, float& __v) const=0A=
{=0A=
string __xtrc;=0A=
__xtrc.reserve(32);=0A=
__beg =3D _M_extract_float(__beg, __end, __io, __err, __xtrc);=0A=
__convert_to_v(__xtrc.c_str(), __v, __err, _S_c_locale);=0A=
return __beg;=0A=
}=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
_InIter=0A=
num_get<_CharT, _InIter>::=0A=
do_get(iter_type __beg, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, double& __v) const=0A=
{=0A=
string __xtrc;=0A=
__xtrc.reserve(32);=0A=
__beg =3D _M_extract_float(__beg, __end, __io, __err, __xtrc);=0A=
__convert_to_v(__xtrc.c_str(), __v, __err, _S_c_locale);=0A=
return __beg;=0A=
}=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
_InIter=0A=
num_get<_CharT, _InIter>::=0A=
do_get(iter_type __beg, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, long double& __v) const=0A=
{=0A=
string __xtrc;=0A=
__xtrc.reserve(32);=0A=
__beg =3D _M_extract_float(__beg, __end, __io, __err, __xtrc);=0A=
__convert_to_v(__xtrc.c_str(), __v, __err, _S_c_locale);=0A=
return __beg;=0A=
}=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
_InIter=0A=
num_get<_CharT, _InIter>::=0A=
do_get(iter_type __beg, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, void*& __v) const=0A=
{=0A=
=0A=
typedef ios_base::fmtflags fmtflags;=0A=
fmtflags __fmt =3D __io.flags();=0A=
fmtflags __fmtmask =3D ~(ios_base::showpos | ios_base::basefield=0A=
| ios_base::uppercase | ios_base::internal);=0A=
__io.flags(__fmt & __fmtmask | (ios_base::hex | =
ios_base::showbase));=0A=
=0A=
string __xtrc;=0A=
int __base;=0A=
__beg =3D _M_extract_int(__beg, __end, __io, __err, __xtrc, =
__base);=0A=
=0A=
=0A=
__io.flags(__fmt);=0A=
=0A=
unsigned long __ul;=0A=
__convert_to_v(__xtrc.c_str(), __ul, __err, _S_c_locale, __base);=0A=
if (!(__err & ios_base::failbit))=0A=
__v =3D reinterpret_cast<void*>(__ul);=0A=
else=0A=
__err |=3D ios_base::failbit;=0A=
return __beg;=0A=
}=0A=
# 604 "/usr/local/include/g++-v3/bits/locale_facets.tcc" 3=0A=
template<typename _CharT, typename _OutIter>=0A=
template<typename _ValueT>=0A=
_OutIter=0A=
num_put<_CharT, _OutIter>::=0A=
_M_convert_float(_OutIter __s, ios_base& __io, _CharT __fill, char =
__mod,=0A=
_ValueT __v) const=0A=
{=0A=
=0A=
=0A=
const int __max_digits =3D numeric_limits<_ValueT>::digits10 + 1;=0A=
streamsize __prec =3D __io.precision();=0A=
=0A=
if (__prec > static_cast<streamsize>(__max_digits))=0A=
__prec =3D static_cast<streamsize>(__max_digits);=0A=
=0A=
=0A=
char __fbuf[16];=0A=
=0A=
=0A=
int __len;=0A=
# 651 "/usr/local/include/g++-v3/bits/locale_facets.tcc" 3=0A=
const bool __fixed =3D __io.flags() & ios_base::fixed;=0A=
const int __max_exp =3D numeric_limits<_ValueT>::max_exponent10;=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
const int __cs_size =3D __fixed ? __max_exp + __max_digits + 4=0A=
: __max_digits * 3;=0A=
char* __cs =3D static_cast<char*>(__builtin_alloca(__cs_size));=0A=
=0A=
if (_S_format_float(__io, __fbuf, __mod, __prec))=0A=
__len =3D __convert_from_v(__cs, 0, __fbuf, __v, _S_c_locale, =
__prec);=0A=
else=0A=
__len =3D __convert_from_v(__cs, 0, __fbuf, __v, _S_c_locale);=0A=
=0A=
return _M_widen_float(__s, __io, __fill, __cs, __len);=0A=
}=0A=
=0A=
template<typename _CharT, typename _OutIter>=0A=
template<typename _ValueT>=0A=
_OutIter=0A=
num_put<_CharT, _OutIter>::=0A=
_M_convert_int(_OutIter __s, ios_base& __io, _CharT __fill, char =
__mod,=0A=
char __modl, _ValueT __v) const=0A=
{=0A=
=0A=
=0A=
=0A=
char __fbuf[16];=0A=
_S_format_int(__io, __fbuf, __mod, __modl);=0A=
# 699 "/usr/local/include/g++-v3/bits/locale_facets.tcc" 3=0A=
char __cs[128];=0A=
int __len =3D __convert_from_v(__cs, 0, __fbuf, __v, =
_S_c_locale);=0A=
=0A=
return _M_widen_int(__s, __io, __fill, __cs, __len);=0A=
}=0A=
=0A=
template<typename _CharT, typename _OutIter>=0A=
_OutIter=0A=
num_put<_CharT, _OutIter>::=0A=
_M_widen_float(_OutIter __s, ios_base& __io, _CharT __fill, char* =
__cs,=0A=
int __len) const=0A=
{=0A=
=0A=
=0A=
const locale __loc =3D __io.getloc();=0A=
const ctype<_CharT>& __ctype =3D use_facet<ctype<_CharT> >(__loc);=0A=
_CharT* __ws =3D =
static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT)=0A=
* __len));=0A=
=0A=
=0A=
_CharT* __ws2 =3D =
static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT)=0A=
* __len * =
2));=0A=
__ctype.widen(__cs, __cs + __len, __ws);=0A=
=0A=
=0A=
const _CharT* __p;=0A=
const numpunct<_CharT>& __np =3D use_facet<numpunct<_CharT> =
>(__loc);=0A=
if (__p =3D char_traits<_CharT>::find(__ws, __len, =
__ctype.widen('.')))=0A=
__ws[__p - __ws] =3D __np.decimal_point();=0A=
=0A=
=0A=
=0A=
=0A=
const string __grouping =3D __np.grouping();=0A=
ios_base::fmtflags __basefield =3D __io.flags() & =
ios_base::basefield;=0A=
if (__grouping.size())=0A=
{=0A=
_CharT* __p2;=0A=
int __declen =3D __p ? __p - __ws : __len;=0A=
__p2 =3D __add_grouping(__ws2, __np.thousands_sep(),=0A=
__grouping.c_str(),=0A=
__grouping.c_str() + __grouping.size(),=0A=
__ws, __ws + __declen);=0A=
int __newlen =3D __p2 - __ws2;=0A=
=0A=
=0A=
if (__p)=0A=
{=0A=
char_traits<_CharT>::copy(__p2, __p, __len - __declen);=0A=
__newlen +=3D __len - __declen;=0A=
}=0A=
=0A=
=0A=
__ws =3D __ws2;=0A=
__len =3D __newlen;=0A=
}=0A=
=0A=
return _M_insert(__s, __io, __fill, __ws, __len);=0A=
}=0A=
=0A=
template<typename _CharT, typename _OutIter>=0A=
_OutIter=0A=
num_put<_CharT, _OutIter>::=0A=
_M_widen_int(_OutIter __s, ios_base& __io, _CharT __fill, char* __cs,=0A=
int __len) const=0A=
{=0A=
=0A=
=0A=
const locale __loc =3D __io.getloc();=0A=
const ctype<_CharT>& __ctype =3D use_facet<ctype<_CharT> >(__loc);=0A=
_CharT* __ws =3D =
static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT)=0A=
* __len));=0A=
=0A=
=0A=
_CharT* __ws2 =3D =
static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT)=0A=
* __len * =
2));=0A=
__ctype.widen(__cs, __cs + __len, __ws);=0A=
=0A=
=0A=
const numpunct<_CharT>& __np =3D use_facet<numpunct<_CharT> =
>(__loc);=0A=
const string __grouping =3D __np.grouping();=0A=
const ios_base::fmtflags __basefield =3D __io.flags() & =
ios_base::basefield;=0A=
if (__grouping.size())=0A=
{=0A=
=0A=
=0A=
=0A=
streamsize __off =3D 0;=0A=
if (__io.flags() & ios_base::showbase)=0A=
if (__basefield =3D=3D ios_base::oct)=0A=
{=0A=
__off =3D 1;=0A=
*__ws2 =3D *__ws;=0A=
}=0A=
else if (__basefield =3D=3D ios_base::hex)=0A=
{=0A=
__off =3D 2;=0A=
*__ws2 =3D *__ws;=0A=
*(__ws2 + 1) =3D *(__ws + 1);=0A=
}=0A=
_CharT* __p;=0A=
__p =3D __add_grouping(__ws2 + __off, __np.thousands_sep(),=0A=
__grouping.c_str(),=0A=
__grouping.c_str() + __grouping.size(),=0A=
__ws + __off, __ws + __len);=0A=
__len =3D __p - __ws2;=0A=
=0A=
__ws =3D __ws2;=0A=
}=0A=
return _M_insert(__s, __io, __fill, __ws, __len);=0A=
}=0A=
=0A=
=0A=
=0A=
template<typename _CharT, typename _OutIter>=0A=
_OutIter=0A=
num_put<_CharT, _OutIter>::=0A=
_M_insert(_OutIter __s, ios_base& __io, _CharT __fill, const _CharT* =
__ws,=0A=
int __len) const=0A=
{=0A=
=0A=
streamsize __w =3D __io.width();=0A=
_CharT* __ws2 =3D =
static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT)=0A=
* __w));=0A=
if (__w > static_cast<streamsize>(__len))=0A=
{=0A=
__pad(__io, __fill, __ws2, __ws, __w, __len, true);=0A=
__len =3D static_cast<int>(__w);=0A=
=0A=
__ws =3D __ws2;=0A=
}=0A=
__io.width(0);=0A=
=0A=
=0A=
=0A=
for (int __j =3D 0; __j < __len; ++__j, ++__s)=0A=
*__s =3D __ws[__j];=0A=
return __s;=0A=
}=0A=
=0A=
template<typename _CharT, typename _OutIter>=0A=
_OutIter=0A=
num_put<_CharT, _OutIter>::=0A=
do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) =
const=0A=
{=0A=
ios_base::fmtflags __flags =3D __io.flags();=0A=
if ((__flags & ios_base::boolalpha) =3D=3D 0)=0A=
{=0A=
unsigned long __uv =3D __v;=0A=
__s =3D _M_convert_int(__s, __io, __fill, 'u', char_type(), =
__uv);=0A=
}=0A=
else=0A=
{=0A=
typedef basic_string<_CharT> __string_type;=0A=
locale __loc =3D __io.getloc();=0A=
const numpunct<_CharT>& __np =3D use_facet<numpunct<_CharT> =
>(__loc);=0A=
__string_type __name;=0A=
if (__v)=0A=
__name =3D __np.truename();=0A=
else=0A=
__name =3D __np.falsename();=0A=
__s =3D _M_insert(__s, __io, __fill, __name.c_str(), =
__name.size());=0A=
}=0A=
return __s;=0A=
}=0A=
=0A=
template<typename _CharT, typename _OutIter>=0A=
_OutIter=0A=
num_put<_CharT, _OutIter>::=0A=
do_put(iter_type __s, ios_base& __io, char_type __fill, long __v) =
const=0A=
{ return _M_convert_int(__s, __io, __fill, 'd', char_type(), __v); }=0A=
=0A=
template<typename _CharT, typename _OutIter>=0A=
_OutIter=0A=
num_put<_CharT, _OutIter>::=0A=
do_put(iter_type __s, ios_base& __io, char_type __fill,=0A=
unsigned long __v) const=0A=
{ return _M_convert_int(__s, __io, __fill, 'u', char_type(), __v); }=0A=
=0A=
=0A=
template<typename _CharT, typename _OutIter>=0A=
_OutIter=0A=
num_put<_CharT, _OutIter>::=0A=
do_put(iter_type __s, ios_base& __b, char_type __fill, long long =
__v) const=0A=
{ return _M_convert_int(__s, __b, __fill, 'd', 'l', __v); }=0A=
=0A=
template<typename _CharT, typename _OutIter>=0A=
_OutIter=0A=
num_put<_CharT, _OutIter>::=0A=
do_put(iter_type __s, ios_base& __io, char_type __fill,=0A=
unsigned long long __v) const=0A=
{ return _M_convert_int(__s, __io, __fill, 'u', 'l', __v); }=0A=
=0A=
=0A=
template<typename _CharT, typename _OutIter>=0A=
_OutIter=0A=
num_put<_CharT, _OutIter>::=0A=
do_put(iter_type __s, ios_base& __io, char_type __fill, double __v) =
const=0A=
{ return _M_convert_float(__s, __io, __fill, char_type(), __v); }=0A=
=0A=
template<typename _CharT, typename _OutIter>=0A=
_OutIter=0A=
num_put<_CharT, _OutIter>::=0A=
do_put(iter_type __s, ios_base& __io, char_type __fill,=0A=
long double __v) const=0A=
{ return _M_convert_float(__s, __io, __fill, 'L', __v); }=0A=
=0A=
template<typename _CharT, typename _OutIter>=0A=
_OutIter=0A=
num_put<_CharT, _OutIter>::=0A=
do_put(iter_type __s, ios_base& __io, char_type __fill,=0A=
const void* __v) const=0A=
{=0A=
ios_base::fmtflags __flags =3D __io.flags();=0A=
ios_base::fmtflags __fmt =3D ~(ios_base::showpos | =
ios_base::basefield=0A=
| ios_base::uppercase | =
ios_base::internal);=0A=
__io.flags(__flags & __fmt | (ios_base::hex | ios_base::showbase));=0A=
try=0A=
{=0A=
__s =3D _M_convert_int(__s, __io, __fill, 'u', char_type(),=0A=
reinterpret_cast<unsigned long>(__v));=0A=
__io.flags(__flags);=0A=
}=0A=
catch (...)=0A=
{=0A=
__io.flags(__flags);=0A=
throw;=0A=
}=0A=
return __s;=0A=
}=0A=
=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
_InIter=0A=
money_get<_CharT, _InIter>::=0A=
do_get(iter_type __beg, iter_type __end, bool __intl, ios_base& __io,=0A=
ios_base::iostate& __err, long double& __units) const=0A=
{=0A=
string_type __str;=0A=
__beg =3D this->do_get(__beg, __end, __intl, __io, __err, __str);=0A=
=0A=
const int __n =3D numeric_limits<long double>::digits10;=0A=
char* __cs =3D static_cast<char*>(__builtin_alloca(__n));=0A=
const locale __loc =3D __io.getloc();=0A=
const ctype<_CharT>& __ctype =3D use_facet<ctype<_CharT> >(__loc);=0A=
const _CharT* __wcs =3D __str.c_str();=0A=
__ctype.narrow(__wcs, __wcs + __str.size() + 1, char(), __cs);=0A=
__convert_to_v(__cs, __units, __err, _S_c_locale);=0A=
return __beg;=0A=
}=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
_InIter=0A=
money_get<_CharT, _InIter>::=0A=
do_get(iter_type __beg, iter_type __end, bool __intl, ios_base& __io,=0A=
ios_base::iostate& __err, string_type& __units) const=0A=
{=0A=
=0A=
typedef moneypunct<_CharT, true> __money_true;=0A=
typedef moneypunct<_CharT, false> __money_false;=0A=
typedef money_base::part part;=0A=
typedef typename string_type::size_type size_type;=0A=
=0A=
const locale __loc =3D __io.getloc();=0A=
const __money_true& __mpt =3D use_facet<__money_true>(__loc);=0A=
const __money_false& __mpf =3D use_facet<__money_false>(__loc);=0A=
const ctype<_CharT>& __ctype =3D use_facet<ctype<_CharT> >(__loc);=0A=
=0A=
const money_base::pattern __p =3D __intl ? __mpt.neg_format()=0A=
: __mpf.neg_format();=0A=
=0A=
const string_type __pos_sign =3D__intl ? __mpt.positive_sign()=0A=
: __mpf.positive_sign();=0A=
const string_type __neg_sign =3D__intl ? __mpt.negative_sign()=0A=
: __mpf.negative_sign();=0A=
const char_type __d =3D __intl ? __mpt.decimal_point()=0A=
: __mpf.decimal_point();=0A=
const char_type __sep =3D __intl ? __mpt.thousands_sep()=0A=
: __mpf.thousands_sep();=0A=
=0A=
const string __grouping =3D __intl ? __mpt.grouping() : =
__mpf.grouping();=0A=
=0A=
=0A=
string_type __sign;=0A=
=0A=
string __grouping_tmp;=0A=
=0A=
int __sep_pos =3D 0;=0A=
=0A=
bool __testvalid =3D true;=0A=
=0A=
bool __testdecfound =3D false;=0A=
=0A=
=0A=
string_type __temp_units;=0A=
=0A=
char_type __c =3D *__beg;=0A=
char_type __eof =3D =
static_cast<char_type>(char_traits<char_type>::eof());=0A=
for (int __i =3D 0; __beg !=3D __end && __i < 4 && __testvalid; =
++__i)=0A=
{=0A=
part __which =3D static_cast<part>(__p.field[__i]);=0A=
switch (__which)=0A=
{=0A=
case money_base::symbol:=0A=
if (__io.flags() & ios_base::showbase=0A=
|| __i < 2 || __sign.size() > 1=0A=
|| ((static_cast<part>(__p.field[3]) !=3D =
money_base::none)=0A=
&& __i =3D=3D 2))=0A=
{=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
const string_type __symbol =3D __intl ? =
__mpt.curr_symbol()=0A=
: =
__mpf.curr_symbol();=0A=
size_type __len =3D __symbol.size();=0A=
size_type __j =3D 0;=0A=
while (__beg !=3D __end=0A=
&& __j < __len && __symbol[__j] =3D=3D __c)=0A=
{=0A=
__c =3D *(++__beg);=0A=
++__j;=0A=
}=0A=
=0A=
=0A=
if (__j !=3D __len && (__io.flags() & =
ios_base::showbase))=0A=
__testvalid =3D false;=0A=
}=0A=
break;=0A=
case money_base::sign:=0A=
=0A=
if (__pos_sign.size() && __neg_sign.size())=0A=
{=0A=
=0A=
if (__c =3D=3D __pos_sign[0])=0A=
{=0A=
__sign =3D __pos_sign;=0A=
__c =3D *(++__beg);=0A=
}=0A=
else if (__c =3D=3D __neg_sign[0])=0A=
{=0A=
__sign =3D __neg_sign;=0A=
__c =3D *(++__beg);=0A=
}=0A=
else=0A=
__testvalid =3D false;=0A=
}=0A=
else if (__pos_sign.size() && __c =3D=3D __pos_sign[0])=0A=
{=0A=
__sign =3D __pos_sign;=0A=
__c =3D *(++__beg);=0A=
}=0A=
else if (__neg_sign.size() && __c =3D=3D __neg_sign[0])=0A=
{=0A=
__sign =3D __neg_sign;=0A=
__c =3D *(++__beg);=0A=
}=0A=
break;=0A=
case money_base::value:=0A=
=0A=
=0A=
while (__beg !=3D __end=0A=
&& (__ctype.is(ctype_base::digit, __c)=0A=
|| (__c =3D=3D __d && !__testdecfound)=0A=
|| __c =3D=3D __sep))=0A=
{=0A=
if (__c =3D=3D __d)=0A=
{=0A=
__grouping_tmp +=3D =
static_cast<char>(__sep_pos);=0A=
__sep_pos =3D 0;=0A=
__testdecfound =3D true;=0A=
}=0A=
else if (__c =3D=3D __sep)=0A=
{=0A=
if (__grouping.size())=0A=
{=0A=
=0A=
__grouping_tmp +=3D =
static_cast<char>(__sep_pos);=0A=
__sep_pos =3D 0;=0A=
}=0A=
else=0A=
{=0A=
__testvalid =3D false;=0A=
break;=0A=
}=0A=
}=0A=
else=0A=
{=0A=
__temp_units +=3D __c;=0A=
++__sep_pos;=0A=
}=0A=
__c =3D *(++__beg);=0A=
}=0A=
break;=0A=
case money_base::space:=0A=
case money_base::none:=0A=
=0A=
if (__i !=3D 3)=0A=
while (__beg !=3D __end=0A=
&& __ctype.is(ctype_base::space, __c))=0A=
__c =3D *(++__beg);=0A=
break;=0A=
}=0A=
}=0A=
=0A=
=0A=
if (__sign.size() > 1)=0A=
{=0A=
size_type __len =3D __sign.size();=0A=
size_type __i =3D 1;=0A=
for (; __c !=3D __eof && __i < __len; ++__i)=0A=
while (__beg !=3D __end && __c !=3D __sign[__i])=0A=
__c =3D *(++__beg);=0A=
=0A=
if (__i !=3D __len)=0A=
__testvalid =3D false;=0A=
}=0A=
=0A=
=0A=
while (__temp_units[0] =3D=3D __ctype.widen('0'))=0A=
__temp_units.erase(__temp_units.begin());=0A=
=0A=
if (__sign.size() && __sign =3D=3D __neg_sign)=0A=
__temp_units.insert(__temp_units.begin(), __ctype.widen('-'));=0A=
=0A=
=0A=
if (__grouping.size() && __grouping_tmp.size())=0A=
{=0A=
if (!__verify_grouping(__grouping, __grouping_tmp))=0A=
__testvalid =3D false;=0A=
}=0A=
=0A=
=0A=
if (__c =3D=3D __eof)=0A=
__err |=3D ios_base::eofbit;=0A=
=0A=
=0A=
if (!__testvalid || !__temp_units.size())=0A=
__err |=3D ios_base::failbit;=0A=
else=0A=
=0A=
__temp_units.swap(__units);=0A=
=0A=
return __beg;=0A=
}=0A=
=0A=
template<typename _CharT, typename _OutIter>=0A=
_OutIter=0A=
money_put<_CharT, _OutIter>::=0A=
do_put(iter_type __s, bool __intl, ios_base& __io, char_type __fill,=0A=
long double __units) const=0A=
{=0A=
const locale __loc =3D __io.getloc();=0A=
const ctype<_CharT>& __ctype =3D use_facet<ctype<_CharT> >(__loc);=0A=
# 1171 "/usr/local/include/g++-v3/bits/locale_facets.tcc" 3=0A=
const int __cs_size =3D numeric_limits<long =
double>::max_exponent10 + 5;=0A=
char* __cs =3D static_cast<char*>(__builtin_alloca(__cs_size));=0A=
int __len =3D __convert_from_v(__cs, 0, "%.01Lf", __units, =
_S_c_locale);=0A=
=0A=
_CharT* __ws =3D =
static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * __cs_size));=0A=
__ctype.widen(__cs, __cs + __len, __ws);=0A=
string_type __digits(__ws);=0A=
return this->do_put(__s, __intl, __io, __fill, __digits);=0A=
}=0A=
=0A=
template<typename _CharT, typename _OutIter>=0A=
_OutIter=0A=
money_put<_CharT, _OutIter>::=0A=
do_put(iter_type __s, bool __intl, ios_base& __io, char_type __fill,=0A=
const string_type& __digits) const=0A=
{=0A=
typedef typename string_type::size_type size_type;=0A=
typedef money_base::part part;=0A=
=0A=
const locale __loc =3D __io.getloc();=0A=
const size_type __width =3D static_cast<size_type>(__io.width());=0A=
=0A=
=0A=
typedef moneypunct<_CharT, true> __money_true;=0A=
typedef moneypunct<_CharT, false> __money_false;=0A=
const __money_true& __mpt =3D use_facet<__money_true>(__loc);=0A=
const __money_false& __mpf =3D use_facet<__money_false>(__loc);=0A=
const ctype<_CharT>& __ctype =3D use_facet<ctype<_CharT> >(__loc);=0A=
=0A=
=0A=
=0A=
const char_type* __beg =3D __digits.data();=0A=
const char_type* __end =3D __beg + __digits.size();=0A=
money_base::pattern __p;=0A=
string_type __sign;=0A=
if (*__beg !=3D __ctype.widen('-'))=0A=
{=0A=
__p =3D __intl ? __mpt.pos_format() : __mpf.pos_format();=0A=
__sign =3D__intl ? __mpt.positive_sign() : =
__mpf.positive_sign();=0A=
}=0A=
else=0A=
{=0A=
__p =3D __intl ? __mpt.neg_format() : __mpf.neg_format();=0A=
__sign =3D__intl ? __mpt.negative_sign() : =
__mpf.negative_sign();=0A=
++__beg;=0A=
}=0A=
=0A=
=0A=
__end =3D __ctype.scan_not(ctype_base::digit, __beg, __end);=0A=
if (__beg !=3D __end)=0A=
{=0A=
=0A=
=0A=
=0A=
string_type __res;=0A=
string_type __value;=0A=
const string_type __symbol =3D __intl ? __mpt.curr_symbol()=0A=
: __mpf.curr_symbol();=0A=
=0A=
=0A=
const int __frac =3D __intl ? __mpt.frac_digits()=0A=
: __mpf.frac_digits();=0A=
if (__frac > 0)=0A=
{=0A=
const char_type __d =3D __intl ? __mpt.decimal_point()=0A=
: __mpf.decimal_point();=0A=
if (__end - __beg >=3D __frac)=0A=
{=0A=
__value =3D string_type(__end - __frac, __end);=0A=
__value.insert(__value.begin(), __d);=0A=
__end -=3D __frac;=0A=
}=0A=
else=0A=
{=0A=
=0A=
__value =3D string_type(__beg, __end);=0A=
int __paddec =3D __frac - (__end - __beg);=0A=
char_type __zero =3D __ctype.widen('0');=0A=
__value.insert(__value.begin(), __paddec, __zero);=0A=
__value.insert(__value.begin(), __d);=0A=
__beg =3D __end;=0A=
}=0A=
}=0A=
=0A=
=0A=
=0A=
if (__beg !=3D __end)=0A=
{=0A=
const string __grouping =3D __intl ? __mpt.grouping()=0A=
: __mpf.grouping();=0A=
if (__grouping.size())=0A=
{=0A=
const char_type __sep =3D __intl ? =
__mpt.thousands_sep()=0A=
: __mpf.thousands_sep();=0A=
const char* __gbeg =3D __grouping.c_str();=0A=
const char* __gend =3D __gbeg + __grouping.size();=0A=
const int __n =3D (__end - __beg) * 2;=0A=
_CharT* __ws2 =3D=0A=
static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) =
* __n));=0A=
_CharT* __ws_end =3D __add_grouping(__ws2, __sep, =
__gbeg,=0A=
__gend, __beg, =
__end);=0A=
__value.insert(0, __ws2, __ws_end - __ws2);=0A=
}=0A=
else=0A=
__value.insert(0, string_type(__beg, __end));=0A=
}=0A=
=0A=
=0A=
ios_base::fmtflags __f =3D __io.flags() & =
ios_base::adjustfield;=0A=
size_type __len =3D __value.size() + __sign.size();=0A=
__len +=3D (__io.flags() & ios_base::showbase) ? =
__symbol.size() : 0;=0A=
bool __testipad =3D __f =3D=3D ios_base::internal && __len < =
__width;=0A=
=0A=
=0A=
for (int __i =3D 0; __i < 4; ++__i)=0A=
{=0A=
part __which =3D static_cast<part>(__p.field[__i]);=0A=
switch (__which)=0A=
{=0A=
case money_base::symbol:=0A=
if (__io.flags() & ios_base::showbase)=0A=
__res +=3D __symbol;=0A=
break;=0A=
case money_base::sign:=0A=
=0A=
=0A=
=0A=
if (__sign.size())=0A=
__res +=3D __sign[0];=0A=
break;=0A=
case money_base::value:=0A=
__res +=3D __value;=0A=
break;=0A=
case money_base::space:=0A=
=0A=
=0A=
=0A=
if (__testipad)=0A=
__res +=3D string_type(__width - __len, __fill);=0A=
else=0A=
__res +=3D __ctype.widen(__fill);=0A=
break;=0A=
case money_base::none:=0A=
if (__testipad)=0A=
__res +=3D string_type(__width - __len, __fill);=0A=
break;=0A=
}=0A=
}=0A=
=0A=
=0A=
if (__sign.size() > 1)=0A=
__res +=3D string_type(__sign.begin() + 1, __sign.end());=0A=
=0A=
=0A=
__len =3D __res.size();=0A=
if (__width > __len)=0A=
{=0A=
if (__f =3D=3D ios_base::left)=0A=
=0A=
__res.append(__width - __len, __fill);=0A=
else=0A=
=0A=
__res.insert(0, string_type(__width - __len, __fill));=0A=
__len =3D __width;=0A=
}=0A=
=0A=
=0A=
for (size_type __j =3D 0; __j < __len; ++__j, ++__s)=0A=
*__s =3D __res[__j];=0A=
}=0A=
__io.width(0);=0A=
return __s;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
time_base::dateorder=0A=
time_get<_CharT, _InIter>::do_date_order() const=0A=
{ return time_base::no_order; }=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
void=0A=
time_get<_CharT, _InIter>::=0A=
_M_extract_via_format(iter_type& __beg, iter_type& __end, ios_base& =
__io,=0A=
ios_base::iostate& __err, tm* __tm,=0A=
const _CharT* __format) const=0A=
{=0A=
locale __loc =3D __io.getloc();=0A=
__timepunct<_CharT> const& __tp =3D use_facet<__timepunct<_CharT> =
>(__loc);=0A=
const ctype<_CharT>& __ctype =3D use_facet<ctype<_CharT> >(__loc);=0A=
size_t __len =3D char_traits<_CharT>::length(__format);=0A=
=0A=
for (size_t __i =3D 0; __beg !=3D __end && __i < __len && !__err; =
++__i)=0A=
{=0A=
char __c =3D __format[__i];=0A=
if (__c =3D=3D '%')=0A=
{=0A=
=0A=
__c =3D __format[++__i];=0A=
char __mod =3D 0;=0A=
int __mem =3D 0;=0A=
if (__c =3D=3D 'E' || __c =3D=3D 'O')=0A=
{=0A=
__mod =3D __c;=0A=
__c =3D __format[++__i];=0A=
}=0A=
switch (__c)=0A=
{=0A=
const char* __cs;=0A=
_CharT __wcs[10];=0A=
case 'a':=0A=
=0A=
const char_type* __days1[7];=0A=
__tp._M_days_abbreviated(__days1);=0A=
_M_extract_name(__beg, __end, __tm->tm_wday, __days1, =
7,=0A=
__err);=0A=
break;=0A=
case 'A':=0A=
=0A=
const char_type* __days2[7];=0A=
__tp._M_days(__days2);=0A=
_M_extract_name(__beg, __end, __tm->tm_wday, __days2, =
7,=0A=
__err);=0A=
break;=0A=
case 'h':=0A=
case 'b':=0A=
=0A=
const char_type* __months1[12];=0A=
__tp._M_months_abbreviated(__months1);=0A=
_M_extract_name(__beg, __end, __tm->tm_mon, __months1, =
12,=0A=
__err);=0A=
break;=0A=
case 'B':=0A=
=0A=
const char_type* __months2[12];=0A=
__tp._M_months(__months2);=0A=
_M_extract_name(__beg, __end, __tm->tm_mon, __months2, =
12,=0A=
__err);=0A=
break;=0A=
case 'c':=0A=
=0A=
const char_type* __dt[2];=0A=
__tp._M_date_time_formats(__dt);=0A=
_M_extract_via_format(__beg, __end, __io, __err, __tm,=0A=
__dt[0]);=0A=
break;=0A=
case 'd':=0A=
=0A=
_M_extract_num(__beg, __end, __tm->tm_mday, 1, 31, 2,=0A=
__ctype, __err);=0A=
break;=0A=
case 'D':=0A=
=0A=
__cs =3D "%m/%d/%y";=0A=
__ctype.widen(__cs, __cs + 9, __wcs);=0A=
_M_extract_via_format(__beg, __end, __io, __err, __tm,=0A=
__wcs);=0A=
break;=0A=
case 'H':=0A=
=0A=
_M_extract_num(__beg, __end, __tm->tm_hour, 0, 23, 2,=0A=
__ctype, __err);=0A=
break;=0A=
case 'I':=0A=
=0A=
_M_extract_num(__beg, __end, __tm->tm_hour, 1, 12, 2,=0A=
__ctype, __err);=0A=
break;=0A=
case 'm':=0A=
=0A=
_M_extract_num(__beg, __end, __mem, 1, 12, 2, __ctype,=0A=
__err);=0A=
if (!__err)=0A=
__tm->tm_mon =3D __mem - 1;=0A=
break;=0A=
case 'M':=0A=
=0A=
_M_extract_num(__beg, __end, __tm->tm_min, 0, 59, 2,=0A=
__ctype, __err);=0A=
break;=0A=
case 'n':=0A=
if (__ctype.narrow(*__beg, 0) =3D=3D '\n')=0A=
++__beg;=0A=
else=0A=
__err |=3D ios_base::failbit;=0A=
break;=0A=
case 'R':=0A=
=0A=
__cs =3D "%H:%M";=0A=
__ctype.widen(__cs, __cs + 6, __wcs);=0A=
_M_extract_via_format(__beg, __end, __io, __err, __tm,=0A=
__wcs);=0A=
break;=0A=
case 'S':=0A=
=0A=
_M_extract_num(__beg, __end, __tm->tm_sec, 0, 59, 2,=0A=
__ctype, __err);=0A=
break;=0A=
case 't':=0A=
if (__ctype.narrow(*__beg, 0) =3D=3D '\t')=0A=
++__beg;=0A=
else=0A=
__err |=3D ios_base::failbit;=0A=
break;=0A=
case 'T':=0A=
=0A=
__cs =3D "%H:%M:%S";=0A=
__ctype.widen(__cs, __cs + 9, __wcs);=0A=
_M_extract_via_format(__beg, __end, __io, __err, __tm,=0A=
__wcs);=0A=
break;=0A=
case 'x':=0A=
=0A=
const char_type* __dates[2];=0A=
__tp._M_date_formats(__dates);=0A=
_M_extract_via_format(__beg, __end, __io, __err, __tm,=0A=
__dates[0]);=0A=
break;=0A=
case 'X':=0A=
=0A=
const char_type* __times[2];=0A=
__tp._M_time_formats(__times);=0A=
_M_extract_via_format(__beg, __end, __io, __err, __tm,=0A=
__times[0]);=0A=
break;=0A=
case 'y':=0A=
=0A=
_M_extract_num(__beg, __end, __tm->tm_year, 0, 99, 2,=0A=
__ctype, __err);=0A=
break;=0A=
case 'Y':=0A=
=0A=
_M_extract_num(__beg, __end, __mem, 0,=0A=
numeric_limits<int>::max(), 4,=0A=
__ctype, __err);=0A=
if (!__err)=0A=
__tm->tm_year =3D __mem - 1900;=0A=
break;=0A=
case 'Z':=0A=
=0A=
if (__ctype.is(ctype_base::upper, *__beg))=0A=
{=0A=
int __tmp;=0A=
_M_extract_name(__beg, __end, __tmp,=0A=
__timepunct<_CharT>::_S_timezones,=0A=
14, __err);=0A=
=0A=
=0A=
char_type __c =3D *__beg;=0A=
if (!__err && __tmp =3D=3D 0=0A=
&& (__c =3D=3D __ctype.widen('-')=0A=
|| __c =3D=3D __ctype.widen('+')))=0A=
{=0A=
_M_extract_num(__beg, __end, __tmp, 0, 23, 2,=0A=
__ctype, __err);=0A=
_M_extract_num(__beg, __end, __tmp, 0, 59, 2,=0A=
__ctype, __err);=0A=
}=0A=
}=0A=
else=0A=
__err |=3D ios_base::failbit;=0A=
break;=0A=
default:=0A=
=0A=
__err |=3D ios_base::failbit;=0A=
}=0A=
}=0A=
else=0A=
{=0A=
=0A=
if (__c =3D=3D __ctype.narrow(*__beg, 0))=0A=
++__beg;=0A=
else=0A=
__err |=3D ios_base::failbit;=0A=
}=0A=
}=0A=
}=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
void=0A=
time_get<_CharT, _InIter>::=0A=
_M_extract_num(iter_type& __beg, iter_type& __end, int& __member,=0A=
int __min, int __max, size_t __len,=0A=
const ctype<_CharT>& __ctype,=0A=
ios_base::iostate& __err) const=0A=
{=0A=
size_t __i =3D 0;=0A=
string __digits;=0A=
bool __testvalid =3D true;=0A=
char_type __c =3D *__beg;=0A=
while (__beg !=3D __end && __i < __len=0A=
&& __ctype.is(ctype_base::digit, __c))=0A=
{=0A=
__digits +=3D __ctype.narrow(__c, 0);=0A=
__c =3D *(++__beg);=0A=
++__i;=0A=
}=0A=
if (__i =3D=3D __len)=0A=
{=0A=
int __value =3D atoi(__digits.c_str());=0A=
if (__min <=3D __value && __value <=3D __max)=0A=
__member =3D __value;=0A=
else=0A=
__testvalid =3D false;=0A=
}=0A=
else=0A=
__testvalid =3D false;=0A=
if (!__testvalid)=0A=
__err |=3D ios_base::failbit;=0A=
}=0A=
=0A=
=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
void=0A=
time_get<_CharT, _InIter>::=0A=
_M_extract_name(iter_type& __beg, iter_type& __end, int& __member,=0A=
const _CharT** __names, size_t __indexlen,=0A=
ios_base::iostate& __err) const=0A=
{=0A=
typedef char_traits<char_type> __traits_type;=0A=
int* __matches =3D static_cast<int*>(__builtin_alloca(sizeof(int) =
* __indexlen));=0A=
size_t __nmatches =3D 0;=0A=
size_t __pos =3D 0;=0A=
bool __testvalid =3D true;=0A=
const char_type* __name;=0A=
=0A=
char_type __c =3D *__beg;=0A=
=0A=
for (size_t __i1 =3D 0; __i1 < __indexlen; ++__i1)=0A=
if (__c =3D=3D __names[__i1][0])=0A=
__matches[__nmatches++] =3D __i1;=0A=
=0A=
while(__nmatches > 1)=0A=
{=0A=
=0A=
size_t __minlen =3D 10;=0A=
for (size_t __i2 =3D 0; __i2 < __nmatches; ++__i2)=0A=
__minlen =3D min(__minlen,=0A=
=
__traits_type::length(__names[__matches[__i2]]));=0A=
=0A=
if (__pos < __minlen && __beg !=3D __end)=0A=
{=0A=
++__pos;=0A=
__c =3D *(++__beg);=0A=
for (size_t __i3 =3D 0; __i3 < __nmatches; ++__i3)=0A=
{=0A=
__name =3D __names[__matches[__i3]];=0A=
if (__name[__pos] !=3D __c)=0A=
__matches[__i3] =3D __matches[--__nmatches];=0A=
}=0A=
}=0A=
else=0A=
break;=0A=
}=0A=
=0A=
if (__nmatches =3D=3D 1)=0A=
{=0A=
=0A=
__name =3D __names[__matches[0]];=0A=
const size_t __len =3D __traits_type::length(__name);=0A=
while (__pos < __len && __beg !=3D __end && __name[__pos] =
=3D=3D *__beg)=0A=
++__beg, ++__pos;=0A=
=0A=
if (__len =3D=3D __pos)=0A=
__member =3D __matches[0];=0A=
else=0A=
__testvalid =3D false;=0A=
}=0A=
else=0A=
__testvalid =3D false;=0A=
if (!__testvalid)=0A=
__err |=3D ios_base::failbit;=0A=
}=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
_InIter=0A=
time_get<_CharT, _InIter>::=0A=
do_get_time(iter_type __beg, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, tm* __tm) const=0A=
{=0A=
_CharT __wcs[3];=0A=
const char* __cs =3D "%X";=0A=
locale __loc =3D __io.getloc();=0A=
ctype<_CharT> const& __ctype =3D use_facet<ctype<_CharT> >(__loc);=0A=
__ctype.widen(__cs, __cs + 3, __wcs);=0A=
_M_extract_via_format(__beg, __end, __io, __err, __tm, __wcs);=0A=
if (__beg =3D=3D __end)=0A=
__err |=3D ios_base::eofbit;=0A=
return __beg;=0A=
}=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
_InIter=0A=
time_get<_CharT, _InIter>::=0A=
do_get_date(iter_type __beg, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, tm* __tm) const=0A=
{=0A=
_CharT __wcs[3];=0A=
const char* __cs =3D "%x";=0A=
locale __loc =3D __io.getloc();=0A=
ctype<_CharT> const& __ctype =3D use_facet<ctype<_CharT> >(__loc);=0A=
__ctype.widen(__cs, __cs + 3, __wcs);=0A=
_M_extract_via_format(__beg, __end, __io, __err, __tm, __wcs);=0A=
if (__beg =3D=3D __end)=0A=
__err |=3D ios_base::eofbit;=0A=
return __beg;=0A=
}=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
_InIter=0A=
time_get<_CharT, _InIter>::=0A=
do_get_weekday(iter_type __beg, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, tm* __tm) const=0A=
{=0A=
typedef char_traits<char_type> __traits_type;=0A=
locale __loc =3D __io.getloc();=0A=
__timepunct<_CharT> const& __tp =3D use_facet<__timepunct<_CharT> =
>(__loc);=0A=
const char_type* __days[7];=0A=
__tp._M_days_abbreviated(__days);=0A=
int __tmpwday;=0A=
_M_extract_name(__beg, __end, __tmpwday, __days, 7, __err);=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
if (!__err)=0A=
{=0A=
size_t __pos =3D __traits_type::length(__days[__tmpwday]);=0A=
__tp._M_days(__days);=0A=
const char_type* __name =3D __days[__tmpwday];=0A=
if (__name[__pos] =3D=3D *__beg)=0A=
{=0A=
=0A=
const size_t __len =3D __traits_type::length(__name);=0A=
while (__pos < __len && __beg !=3D __end=0A=
&& __name[__pos] =3D=3D *__beg)=0A=
++__beg, ++__pos;=0A=
if (__len !=3D __pos)=0A=
__err |=3D ios_base::failbit;=0A=
}=0A=
if (!__err)=0A=
__tm->tm_wday =3D __tmpwday;=0A=
}=0A=
if (__beg =3D=3D __end)=0A=
__err |=3D ios_base::eofbit;=0A=
return __beg;=0A=
}=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
_InIter=0A=
time_get<_CharT, _InIter>::=0A=
do_get_monthname(iter_type __beg, iter_type __end,=0A=
ios_base& __io, ios_base::iostate& __err, tm* __tm) =
const=0A=
{=0A=
typedef char_traits<char_type> __traits_type;=0A=
locale __loc =3D __io.getloc();=0A=
__timepunct<_CharT> const& __tp =3D use_facet<__timepunct<_CharT> =
>(__loc);=0A=
const char_type* __months[12];=0A=
__tp._M_months_abbreviated(__months);=0A=
int __tmpmon;=0A=
_M_extract_name(__beg, __end, __tmpmon, __months, 12, __err);=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
if (!__err)=0A=
{=0A=
size_t __pos =3D __traits_type::length(__months[__tmpmon]);=0A=
__tp._M_months(__months);=0A=
const char_type* __name =3D __months[__tmpmon];=0A=
if (__name[__pos] =3D=3D *__beg)=0A=
{=0A=
=0A=
const size_t __len =3D __traits_type::length(__name);=0A=
while (__pos < __len && __beg !=3D __end=0A=
&& __name[__pos] =3D=3D *__beg)=0A=
++__beg, ++__pos;=0A=
if (__len !=3D __pos)=0A=
__err |=3D ios_base::failbit;=0A=
}=0A=
if (!__err)=0A=
__tm->tm_mon =3D __tmpmon;=0A=
}=0A=
=0A=
if (__beg =3D=3D __end)=0A=
__err |=3D ios_base::eofbit;=0A=
return __beg;=0A=
}=0A=
=0A=
template<typename _CharT, typename _InIter>=0A=
_InIter=0A=
time_get<_CharT, _InIter>::=0A=
do_get_year(iter_type __beg, iter_type __end, ios_base& __io,=0A=
ios_base::iostate& __err, tm* __tm) const=0A=
{=0A=
locale __loc =3D __io.getloc();=0A=
const ctype<_CharT>& __ctype =3D use_facet<ctype<_CharT> >(__loc);=0A=
=0A=
char_type __c =3D *__beg;=0A=
size_t __i =3D 0;=0A=
string __digits;=0A=
while (__i < 4 && __beg !=3D __end && =
__ctype.is(ctype_base::digit, __c))=0A=
{=0A=
__digits +=3D __ctype.narrow(__c, 0);=0A=
__c =3D *(++__beg);=0A=
++__i;=0A=
}=0A=
if (__i =3D=3D 2 || __i =3D=3D 4)=0A=
{=0A=
long __l;=0A=
__convert_to_v(__digits.c_str(), __l, __err, _S_c_locale);=0A=
if (!(__err & ios_base::failbit) && __l <=3D 2147483647)=0A=
{=0A=
__l =3D __i =3D=3D 2 ? __l : __l - 1900;=0A=
__tm->tm_year =3D static_cast<int>(__l);=0A=
}=0A=
}=0A=
else=0A=
__err |=3D ios_base::failbit;=0A=
if (__beg =3D=3D __end)=0A=
__err |=3D ios_base::eofbit;=0A=
return __beg;=0A=
}=0A=
=0A=
template<typename _CharT, typename _OutIter>=0A=
_OutIter=0A=
time_put<_CharT, _OutIter>::=0A=
put(iter_type __s, ios_base& __io, char_type, const tm* __tm,=0A=
const _CharT* __beg, const _CharT* __end) const=0A=
{=0A=
locale __loc =3D __io.getloc();=0A=
ctype<_CharT> const& __ctype =3D use_facet<ctype<_CharT> >(__loc);=0A=
while (__beg !=3D __end)=0A=
{=0A=
char __c =3D __ctype.narrow(*__beg, 0);=0A=
++__beg;=0A=
if (__c =3D=3D '%')=0A=
{=0A=
char __format;=0A=
char __mod =3D 0;=0A=
size_t __len =3D 1;=0A=
__c =3D __ctype.narrow(*__beg, 0);=0A=
++__beg;=0A=
if (__c =3D=3D 'E' || __c =3D=3D 'O')=0A=
{=0A=
__mod =3D __c;=0A=
__format =3D __ctype.narrow(*__beg, 0);=0A=
++__beg;=0A=
}=0A=
else=0A=
__format =3D __c;=0A=
__s =3D this->do_put(__s, __io, char_type(), __tm, =
__format,=0A=
__mod);=0A=
}=0A=
else=0A=
{=0A=
*__s =3D __c;=0A=
++__s;=0A=
}=0A=
}=0A=
return __s;=0A=
}=0A=
=0A=
template<typename _CharT, typename _OutIter>=0A=
_OutIter=0A=
time_put<_CharT, _OutIter>::=0A=
do_put(iter_type __s, ios_base& __io, char_type, const tm* __tm,=0A=
char __format, char __mod) const=0A=
{=0A=
locale __loc =3D __io.getloc();=0A=
ctype<_CharT> const& __ctype =3D use_facet<ctype<_CharT> >(__loc);=0A=
__timepunct<_CharT> const& __tp =3D use_facet<__timepunct<_CharT> =
>(__loc);=0A=
=0A=
=0A=
=0A=
const size_t __maxlen =3D 64;=0A=
char_type* __res =3D=0A=
static_cast<char_type*>(__builtin_alloca(sizeof(char_type) * =
__maxlen));=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
char_type __fmt[4];=0A=
__fmt[0] =3D __ctype.widen('%');=0A=
if (!__mod)=0A=
{=0A=
__fmt[1] =3D __format;=0A=
__fmt[2] =3D char_type();=0A=
}=0A=
else=0A=
{=0A=
__fmt[1] =3D __mod;=0A=
__fmt[2] =3D __format;=0A=
__fmt[3] =3D char_type();=0A=
}=0A=
=0A=
__tp._M_put(__res, __maxlen, __fmt, __tm);=0A=
=0A=
=0A=
size_t __len =3D char_traits<char_type>::length(__res);=0A=
for (size_t __i =3D 0; __i < __len; ++__i, ++__s)=0A=
*__s =3D __res[__i];=0A=
return __s;=0A=
}=0A=
=0A=
=0A=
=0A=
template<typename _CharT>=0A=
int=0A=
collate<_CharT>::_M_compare(const _CharT*, const _CharT*) const=0A=
{ return 0; }=0A=
=0A=
=0A=
template<typename _CharT>=0A=
size_t=0A=
collate<_CharT>::_M_transform(_CharT*, const _CharT*, size_t) const=0A=
{ return 0; }=0A=
=0A=
template<typename _CharT>=0A=
int=0A=
collate<_CharT>::=0A=
do_compare(const _CharT* __lo1, const _CharT* __hi1,=0A=
const _CharT* __lo2, const _CharT* __hi2) const=0A=
{=0A=
const string_type __one(__lo1, __hi1);=0A=
const string_type __two(__lo2, __hi2);=0A=
return _M_compare(__one.c_str(), __two.c_str());=0A=
}=0A=
=0A=
template<typename _CharT>=0A=
typename collate<_CharT>::string_type=0A=
collate<_CharT>::=0A=
do_transform(const _CharT* __lo, const _CharT* __hi) const=0A=
{=0A=
size_t __len =3D (__hi - __lo) * 2;=0A=
=0A=
_CharT* __c =3D=0A=
static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * __len));=0A=
size_t __res =3D _M_transform(__c, __lo, __len);=0A=
=0A=
if (__res >=3D __len)=0A=
{=0A=
__c =3D=0A=
static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * =
(__res + 1)));=0A=
_M_transform(__c, __lo, __res + 1);=0A=
}=0A=
return string_type(__c);=0A=
}=0A=
=0A=
template<typename _CharT>=0A=
long=0A=
collate<_CharT>::=0A=
do_hash(const _CharT* __lo, const _CharT* __hi) const=0A=
{=0A=
unsigned long __val =3D 0;=0A=
for (; __lo < __hi; ++__lo)=0A=
__val =3D *__lo + ((__val << 7) |=0A=
(__val >> (numeric_limits<unsigned long>::digits =
- 7)));=0A=
return static_cast<long>(__val);=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _Tv>=0A=
void=0A=
__convert_to_v(const char* __in, _Tv& __out, ios_base::iostate& =
__err,=0A=
const __c_locale& __cloc, int __base =3D 10);=0A=
# 1971 "/usr/local/include/g++-v3/bits/locale_facets.tcc" 3=0A=
template<typename _Tv>=0A=
int=0A=
__convert_from_v(char* __out, const int, const char* __fmt, _Tv __v,=0A=
const __c_locale&, int __prec =3D -1)=0A=
{=0A=
int __ret;=0A=
const char* __old =3D setlocale(0, "C");=0A=
if (__prec >=3D 0)=0A=
__ret =3D sprintf(__out, __fmt, __prec, __v);=0A=
else=0A=
__ret =3D sprintf(__out, __fmt, __v);=0A=
setlocale(0, __old);=0A=
return __ret;=0A=
}=0A=
# 1995 "/usr/local/include/g++-v3/bits/locale_facets.tcc" 3=0A=
template<typename _CharT, typename _Traits>=0A=
void=0A=
__pad(ios_base& __io, _CharT __fill, _CharT* __news, const _CharT* =
__olds,=0A=
const streamsize __newlen, const streamsize __oldlen,=0A=
const bool __num)=0A=
{=0A=
typedef _CharT char_type;=0A=
typedef _Traits traits_type;=0A=
typedef typename traits_type::int_type int_type;=0A=
=0A=
int_type __plen =3D static_cast<size_t>(__newlen - __oldlen);=0A=
char_type* __pads =3D =
static_cast<char_type*>(__builtin_alloca(sizeof(char_type) * __plen));=0A=
traits_type::assign(__pads, __plen, __fill);=0A=
=0A=
char_type* __beg;=0A=
char_type* __end;=0A=
size_t __mod =3D 0;=0A=
size_t __beglen;=0A=
ios_base::fmtflags __adjust =3D __io.flags() & =
ios_base::adjustfield;=0A=
=0A=
if (__adjust =3D=3D ios_base::left)=0A=
{=0A=
=0A=
__beg =3D const_cast<char_type*>(__olds);=0A=
__beglen =3D __oldlen;=0A=
__end =3D __pads;=0A=
}=0A=
else if (__adjust =3D=3D ios_base::internal && __num)=0A=
{=0A=
=0A=
=0A=
=0A=
locale __loc =3D __io.getloc();=0A=
const ctype<_CharT>& __ctype =3D use_facet<ctype<_CharT> =
>(__loc);=0A=
const char_type __minus =3D __ctype.widen('-');=0A=
const char_type __plus =3D __ctype.widen('+');=0A=
bool __testsign =3D __olds[0] =3D=3D __minus || __olds[0] =
=3D=3D __plus;=0A=
bool __testhex =3D __ctype.widen('0') =3D=3D __olds[0]=0A=
&& (__ctype.widen('x') =3D=3D __olds[1]=0A=
|| __ctype.widen('X') =3D=3D __olds[1]);=0A=
if (__testhex)=0A=
{=0A=
__news[0] =3D __olds[0];=0A=
__news[1] =3D __olds[1];=0A=
__mod +=3D 2;=0A=
__news +=3D 2;=0A=
__beg =3D __pads;=0A=
__beglen =3D __plen;=0A=
__end =3D const_cast<char_type*>(__olds + __mod);=0A=
}=0A=
else if (__testsign)=0A=
{=0A=
__news[0] =3D __olds[0] =3D=3D __plus ? __plus : __minus;=0A=
++__mod;=0A=
++__news;=0A=
__beg =3D __pads;=0A=
__beglen =3D __plen;=0A=
__end =3D const_cast<char_type*>(__olds + __mod);=0A=
}=0A=
else=0A=
{=0A=
=0A=
__beg =3D __pads;=0A=
__beglen =3D __plen;=0A=
__end =3D const_cast<char_type*>(__olds);=0A=
}=0A=
}=0A=
else=0A=
{=0A=
=0A=
__beg =3D __pads;=0A=
__beglen =3D __plen;=0A=
__end =3D const_cast<char_type*>(__olds);=0A=
}=0A=
traits_type::copy(__news, __beg, __beglen);=0A=
traits_type::copy(__news + __beglen, __end, __newlen - __beglen - =
__mod);=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _CharT>=0A=
void=0A=
__pad(ios_base& __io, _CharT __fill, _CharT* __news, const _CharT* =
__olds,=0A=
const streamsize __newlen, const streamsize __oldlen,=0A=
const bool __num)=0A=
{=0A=
return __pad<_CharT, char_traits<_CharT> >(__io, __fill, __news, =
__olds,=0A=
__newlen, __oldlen, =
__num);=0A=
}=0A=
# 2094 "/usr/local/include/g++-v3/bits/locale_facets.tcc" 3=0A=
template<typename _CharT>=0A=
bool=0A=
__verify_grouping(const basic_string<_CharT>& __grouping,=0A=
basic_string<_CharT>& __grouping_tmp)=0A=
{=0A=
int __i =3D 0;=0A=
int __j =3D 0;=0A=
const int __len =3D __grouping.size();=0A=
const int __n =3D __grouping_tmp.size();=0A=
bool __test =3D true;=0A=
=0A=
=0A=
=0A=
=0A=
while (__test && __i < __n - 1)=0A=
for (__j =3D 0; __test && __j < __len && __i < __n - 1; =
++__j,++__i)=0A=
__test &=3D __grouping[__j] =3D=3D __grouping_tmp[__n - __i - =
1];=0A=
=0A=
=0A=
__j =3D=3D __len ? __j =3D 0 : __j;=0A=
__test &=3D __grouping[__j] >=3D __grouping_tmp[__n - __i - 1];=0A=
return __test;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
template<typename _CharT>=0A=
_CharT*=0A=
__add_grouping(_CharT* __s, _CharT __sep,=0A=
const char* __gbeg, const char* __gend,=0A=
const _CharT* __first, const _CharT* __last)=0A=
{=0A=
if (__last - __first > *__gbeg)=0A=
{=0A=
__s =3D __add_grouping(__s, __sep,=0A=
(__gbeg + 1 =3D=3D __gend ? __gbeg : =
__gbeg + 1),=0A=
__gend, __first, __last - *__gbeg);=0A=
__first =3D __last - *__gbeg;=0A=
*__s++ =3D __sep;=0A=
}=0A=
do=0A=
*__s++ =3D *__first++;=0A=
while (__first !=3D __last);=0A=
return __s;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
extern template class moneypunct<char, false>;=0A=
extern template class moneypunct<char, true>;=0A=
extern template class moneypunct_byname<char, false>;=0A=
extern template class moneypunct_byname<char, true>;=0A=
extern template class money_get<char>;=0A=
extern template class money_put<char>;=0A=
extern template class moneypunct<wchar_t, false>;=0A=
extern template class moneypunct<wchar_t, true>;=0A=
extern template class moneypunct_byname<wchar_t, false>;=0A=
extern template class moneypunct_byname<wchar_t, true>;=0A=
extern template class money_get<wchar_t>;=0A=
extern template class money_put<wchar_t>;=0A=
extern template class numpunct<char>;=0A=
extern template class numpunct_byname<char>;=0A=
extern template class num_get<char>;=0A=
extern template class num_put<char>;=0A=
extern template class numpunct<wchar_t>;=0A=
extern template class numpunct_byname<wchar_t>;=0A=
extern template class num_get<wchar_t>;=0A=
extern template class num_put<wchar_t>;=0A=
extern template class __timepunct<char>;=0A=
extern template class time_put<char>;=0A=
extern template class time_put_byname<char>;=0A=
extern template class time_get<char>;=0A=
extern template class time_get_byname<char>;=0A=
extern template class __timepunct<wchar_t>;=0A=
extern template class time_put<wchar_t>;=0A=
extern template class time_put_byname<wchar_t>;=0A=
extern template class time_get<wchar_t>;=0A=
extern template class time_get_byname<wchar_t>;=0A=
extern template class messages<char>;=0A=
extern template class messages_byname<char>;=0A=
extern template class messages<wchar_t>;=0A=
extern template class messages_byname<wchar_t>;=0A=
extern template class ctype_byname<char>;=0A=
extern template class ctype_byname<wchar_t>;=0A=
extern template class codecvt_byname<char, char, mbstate_t>;=0A=
extern template class codecvt_byname<wchar_t, char, mbstate_t>;=0A=
extern template class collate<char>;=0A=
extern template class collate_byname<char>;=0A=
extern template class collate<wchar_t>;=0A=
extern template class collate_byname<wchar_t>;=0A=
=0A=
extern template=0A=
const codecvt<char, char, mbstate_t>&=0A=
use_facet<codecvt<char, char, mbstate_t> >(const locale&);=0A=
=0A=
extern template=0A=
const collate<char>&=0A=
use_facet<collate<char> >(const locale&);=0A=
=0A=
extern template=0A=
const numpunct<char>&=0A=
use_facet<numpunct<char> >(const locale&);=0A=
=0A=
extern template=0A=
const num_put<char>&=0A=
use_facet<num_put<char> >(const locale&);=0A=
=0A=
extern template=0A=
const num_get<char>&=0A=
use_facet<num_get<char> >(const locale&);=0A=
=0A=
extern template=0A=
const moneypunct<char, true>&=0A=
use_facet<moneypunct<char, true> >(const locale&);=0A=
=0A=
extern template=0A=
const moneypunct<char, false>&=0A=
use_facet<moneypunct<char, false> >(const locale&);=0A=
=0A=
extern template=0A=
const money_put<char>&=0A=
use_facet<money_put<char> >(const locale&);=0A=
=0A=
extern template=0A=
const money_get<char>&=0A=
use_facet<money_get<char> >(const locale&);=0A=
=0A=
extern template=0A=
const __timepunct<char>&=0A=
use_facet<__timepunct<char> >(const locale&);=0A=
=0A=
extern template=0A=
const time_put<char>&=0A=
use_facet<time_put<char> >(const locale&);=0A=
=0A=
extern template=0A=
const time_get<char>&=0A=
use_facet<time_get<char> >(const locale&);=0A=
=0A=
extern template=0A=
const messages<char>&=0A=
use_facet<messages<char> >(const locale&);=0A=
=0A=
extern template=0A=
const codecvt<wchar_t, char, mbstate_t>&=0A=
use_facet<codecvt<wchar_t, char, mbstate_t> >(locale const&);=0A=
=0A=
extern template=0A=
const collate<wchar_t>&=0A=
use_facet<collate<wchar_t> >(const locale&);=0A=
=0A=
extern template=0A=
const numpunct<wchar_t>&=0A=
use_facet<numpunct<wchar_t> >(const locale&);=0A=
=0A=
extern template=0A=
const num_put<wchar_t>&=0A=
use_facet<num_put<wchar_t> >(const locale&);=0A=
=0A=
extern template=0A=
const num_get<wchar_t>&=0A=
use_facet<num_get<wchar_t> >(const locale&);=0A=
=0A=
extern template=0A=
const moneypunct<wchar_t, true>&=0A=
use_facet<moneypunct<wchar_t, true> >(const locale&);=0A=
=0A=
extern template=0A=
const moneypunct<wchar_t, false>&=0A=
use_facet<moneypunct<wchar_t, false> >(const locale&);=0A=
=0A=
extern template=0A=
const money_put<wchar_t>&=0A=
use_facet<money_put<wchar_t> >(const locale&);=0A=
=0A=
extern template=0A=
const money_get<wchar_t>&=0A=
use_facet<money_get<wchar_t> >(const locale&);=0A=
=0A=
extern template=0A=
const __timepunct<wchar_t>&=0A=
use_facet<__timepunct<wchar_t> >(const locale&);=0A=
=0A=
extern template=0A=
const time_put<wchar_t>&=0A=
use_facet<time_put<wchar_t> >(const locale&);=0A=
=0A=
extern template=0A=
const time_get<wchar_t>&=0A=
use_facet<time_get<wchar_t> >(const locale&);=0A=
=0A=
extern template=0A=
const messages<wchar_t>&=0A=
use_facet<messages<wchar_t> >(const locale&);=0A=
=0A=
=0A=
extern template=0A=
bool=0A=
has_facet<ctype<char> >(const locale&);=0A=
=0A=
extern template=0A=
bool=0A=
has_facet<codecvt<char, char, mbstate_t> >(const locale&);=0A=
=0A=
extern template=0A=
bool=0A=
has_facet<collate<char> >(const locale&);=0A=
=0A=
extern template=0A=
bool=0A=
has_facet<numpunct<char> >(const locale&);=0A=
=0A=
extern template=0A=
bool=0A=
has_facet<num_put<char> >(const locale&);=0A=
=0A=
extern template=0A=
bool=0A=
has_facet<num_get<char> >(const locale&);=0A=
=0A=
extern template=0A=
bool=0A=
has_facet<moneypunct<char> >(const locale&);=0A=
=0A=
extern template=0A=
bool=0A=
has_facet<money_put<char> >(const locale&);=0A=
=0A=
extern template=0A=
bool=0A=
has_facet<money_get<char> >(const locale&);=0A=
=0A=
extern template=0A=
bool=0A=
has_facet<__timepunct<char> >(const locale&);=0A=
=0A=
extern template=0A=
bool=0A=
has_facet<time_put<char> >(const locale&);=0A=
=0A=
extern template=0A=
bool=0A=
has_facet<time_get<char> >(const locale&);=0A=
=0A=
extern template=0A=
bool=0A=
has_facet<messages<char> >(const locale&);=0A=
=0A=
extern template=0A=
bool=0A=
has_facet<ctype<wchar_t> >(const locale&);=0A=
=0A=
extern template=0A=
bool=0A=
has_facet<codecvt<wchar_t, char, mbstate_t> >(const locale&);=0A=
=0A=
extern template=0A=
bool=0A=
has_facet<collate<wchar_t> >(const locale&);=0A=
=0A=
extern template=0A=
bool=0A=
has_facet<numpunct<wchar_t> >(const locale&);=0A=
=0A=
extern template=0A=
bool=0A=
has_facet<num_put<wchar_t> >(const locale&);=0A=
=0A=
extern template=0A=
bool=0A=
has_facet<num_get<wchar_t> >(const locale&);=0A=
=0A=
extern template=0A=
bool=0A=
has_facet<moneypunct<wchar_t> >(const locale&);=0A=
=0A=
extern template=0A=
bool=0A=
has_facet<money_put<wchar_t> >(const locale&);=0A=
=0A=
extern template=0A=
bool=0A=
has_facet<money_get<wchar_t> >(const locale&);=0A=
=0A=
extern template=0A=
bool=0A=
has_facet<__timepunct<wchar_t> >(const locale&);=0A=
=0A=
extern template=0A=
bool=0A=
has_facet<time_put<wchar_t> >(const locale&);=0A=
=0A=
extern template=0A=
bool=0A=
has_facet<time_get<wchar_t> >(const locale&);=0A=
=0A=
extern template=0A=
bool=0A=
has_facet<messages<wchar_t> >(const locale&);=0A=
}=0A=
# 47 "/usr/local/include/g++-v3/locale" 2 3=0A=
# 38 "/usr/local/include/g++-v3/bits/ostream.tcc" 2 3=0A=
=0A=
namespace std=0A=
{=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits>::sentry::=0A=
sentry(basic_ostream<_CharT,_Traits>& __os)=0A=
: _M_ok(__os.good()), _M_os(__os)=0A=
{=0A=
=0A=
if (_M_ok && __os.tie())=0A=
__os.tie()->flush();=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits>&=0A=
basic_ostream<_CharT, _Traits>::=0A=
operator<<(__ostream_type& (*__pf)(__ostream_type&))=0A=
{=0A=
sentry __cerb(*this);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{ __pf(*this); }=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits>&=0A=
basic_ostream<_CharT, _Traits>::=0A=
operator<<(__ios_type& (*__pf)(__ios_type&))=0A=
{=0A=
sentry __cerb(*this);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{ __pf(*this); }=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits>&=0A=
basic_ostream<_CharT, _Traits>::=0A=
operator<<(ios_base& (*__pf)(ios_base&))=0A=
{=0A=
sentry __cerb(*this);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{ __pf(*this); }=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits>&=0A=
basic_ostream<_CharT, _Traits>::operator<<(__streambuf_type* __sbin)=0A=
{=0A=
sentry __cerb(*this);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
streamsize __xtrct =3D 0;=0A=
if (__sbin)=0A=
{=0A=
__streambuf_type* __sbout =3D this->rdbuf();=0A=
__xtrct =3D __copy_streambufs(*this, __sbin, __sbout);=0A=
}=0A=
else=0A=
this->setstate(ios_base::badbit);=0A=
if (!__xtrct)=0A=
this->setstate(ios_base::failbit);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits>&=0A=
basic_ostream<_CharT, _Traits>::operator<<(bool __n)=0A=
{=0A=
sentry __cerb(*this);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
if (_M_check_facet(_M_fnumput))=0A=
if (_M_fnumput->put(*this, *this, this->fill(), =
__n).failed())=0A=
this->setstate(ios_base::badbit);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits>&=0A=
basic_ostream<_CharT, _Traits>::operator<<(long __n)=0A=
{=0A=
sentry __cerb(*this);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
char_type __c =3D this->fill();=0A=
ios_base::fmtflags __fmt =3D this->flags() & =
ios_base::basefield;=0A=
if (_M_check_facet(_M_fnumput))=0A=
{=0A=
bool __b =3D false;=0A=
if ((__fmt & ios_base::oct) || (__fmt & ios_base::hex))=0A=
{=0A=
unsigned long __l =3D static_cast<unsigned =
long>(__n);=0A=
__b =3D _M_fnumput->put(*this, *this, __c, =
__l).failed();=0A=
}=0A=
else=0A=
__b =3D _M_fnumput->put(*this, *this, __c, =
__n).failed();=0A=
if (__b)=0A=
this->setstate(ios_base::badbit);=0A=
}=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits>&=0A=
basic_ostream<_CharT, _Traits>::operator<<(unsigned long __n)=0A=
{=0A=
sentry __cerb(*this);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
if (_M_check_facet(_M_fnumput))=0A=
if (_M_fnumput->put(*this, *this, this->fill(), =
__n).failed())=0A=
this->setstate(ios_base::badbit);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits>&=0A=
basic_ostream<_CharT, _Traits>::operator<<(long long __n)=0A=
{=0A=
sentry __cerb(*this);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
char_type __c =3D this->fill();=0A=
ios_base::fmtflags __fmt =3D this->flags() & =
ios_base::basefield;=0A=
if (_M_check_facet(_M_fnumput))=0A=
{=0A=
bool __b =3D false;=0A=
if ((__fmt & ios_base::oct) || (__fmt & ios_base::hex))=0A=
{=0A=
unsigned long long __l;=0A=
__l =3D static_cast<unsigned long long>(__n);=0A=
__b =3D _M_fnumput->put(*this, *this, __c, =
__l).failed();=0A=
}=0A=
else=0A=
__b =3D _M_fnumput->put(*this, *this, __c, =
__n).failed();=0A=
if (__b)=0A=
this->setstate(ios_base::badbit);=0A=
}=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits>&=0A=
basic_ostream<_CharT, _Traits>::operator<<(unsigned long long __n)=0A=
{=0A=
sentry __cerb(*this);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
if (_M_check_facet(_M_fnumput))=0A=
if (_M_fnumput->put(*this, *this, this->fill(), =
__n).failed())=0A=
this->setstate(ios_base::badbit);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits>&=0A=
basic_ostream<_CharT, _Traits>::operator<<(double __n)=0A=
{=0A=
sentry __cerb(*this);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
if (_M_check_facet(_M_fnumput))=0A=
if (_M_fnumput->put(*this, *this, this->fill(), =
__n).failed())=0A=
this->setstate(ios_base::badbit);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits>&=0A=
basic_ostream<_CharT, _Traits>::operator<<(long double __n)=0A=
{=0A=
sentry __cerb(*this);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
if (_M_check_facet(_M_fnumput))=0A=
if (_M_fnumput->put(*this, *this, this->fill(), =
__n).failed())=0A=
this->setstate(ios_base::badbit);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits>&=0A=
basic_ostream<_CharT, _Traits>::operator<<(const void* __n)=0A=
{=0A=
sentry __cerb(*this);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
if (_M_check_facet(_M_fnumput))=0A=
if (_M_fnumput->put(*this, *this, this->fill(), =
__n).failed())=0A=
this->setstate(ios_base::badbit);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits>&=0A=
basic_ostream<_CharT, _Traits>::put(char_type __c)=0A=
{=0A=
sentry __cerb(*this);=0A=
if (__cerb)=0A=
{=0A=
int_type __put =3D rdbuf()->sputc(__c);=0A=
if (traits_type::eq_int_type(__put, traits_type::eof()))=0A=
this->setstate(ios_base::badbit);=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits>&=0A=
basic_ostream<_CharT, _Traits>::write(const _CharT* __s, streamsize =
__n)=0A=
{=0A=
sentry __cerb(*this);=0A=
if (__cerb)=0A=
{=0A=
streamsize __put =3D this->rdbuf()->sputn(__s, __n);=0A=
if ( __put !=3D __n)=0A=
this->setstate(ios_base::badbit);=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits>&=0A=
basic_ostream<_CharT, _Traits>::flush()=0A=
{=0A=
sentry __cerb(*this);=0A=
if (__cerb)=0A=
{=0A=
if (this->rdbuf() && this->rdbuf()->pubsync() =3D=3D -1)=0A=
this->setstate(ios_base::badbit);=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
typename basic_ostream<_CharT, _Traits>::pos_type=0A=
basic_ostream<_CharT, _Traits>::tellp()=0A=
{=0A=
pos_type __ret =3D pos_type(-1);=0A=
if (!this->fail())=0A=
__ret =3D this->rdbuf()->pubseekoff(0, ios_base::cur, =
ios_base::out);=0A=
return __ret;=0A=
}=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits>&=0A=
basic_ostream<_CharT, _Traits>::seekp(pos_type __pos)=0A=
{=0A=
if (!this->fail())=0A=
{=0A=
=0A=
=0A=
pos_type __err =3D this->rdbuf()->pubseekpos(__pos, =
ios_base::out);=0A=
=0A=
=0A=
if (__err =3D=3D pos_type(off_type(-1)))=0A=
this->setstate(ios_base::failbit);=0A=
=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits>&=0A=
basic_ostream<_CharT, _Traits>::=0A=
seekp(off_type __off, ios_base::seekdir __d)=0A=
{=0A=
if (!this->fail())=0A=
{=0A=
=0A=
=0A=
pos_type __err =3D this->rdbuf()->pubseekoff(__off, __d,=0A=
ios_base::out);=0A=
=0A=
=0A=
if (__err =3D=3D pos_type(off_type(-1)))=0A=
this->setstate(ios_base::failbit);=0A=
=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits>&=0A=
operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)=0A=
{=0A=
typedef basic_ostream<_CharT, _Traits> __ostream_type;=0A=
typename __ostream_type::sentry __cerb(__out);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
streamsize __w =3D __out.width();=0A=
_CharT* __pads =3D =
static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * (__w + 1)));=0A=
__pads[0] =3D __c;=0A=
streamsize __len =3D 1;=0A=
if (__w > __len)=0A=
{=0A=
__pad(__out, __out.fill(), __pads, &__c, __w, __len, =
false);=0A=
__len =3D __w;=0A=
}=0A=
__out.write(__pads, __len);=0A=
__out.width(0);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
__out.setstate(ios_base::badbit);=0A=
if ((__out.exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return __out;=0A=
}=0A=
=0A=
=0A=
template <class _Traits>=0A=
basic_ostream<char, _Traits>&=0A=
operator<<(basic_ostream<char, _Traits>& __out, char __c)=0A=
{=0A=
typedef basic_ostream<char, _Traits> __ostream_type;=0A=
typename __ostream_type::sentry __cerb(__out);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
streamsize __w =3D __out.width();=0A=
char* __pads =3D static_cast<char*>(__builtin_alloca(__w + =
1));=0A=
__pads[0] =3D __c;=0A=
streamsize __len =3D 1;=0A=
if (__w > __len)=0A=
{=0A=
__pad(__out, __out.fill(), __pads, &__c, __w, __len, =
false);=0A=
__len =3D __w;=0A=
}=0A=
__out.write(__pads, __len);=0A=
__out.width(0);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
__out.setstate(ios_base::badbit);=0A=
if ((__out.exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return __out;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits>&=0A=
operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)=0A=
{=0A=
typedef basic_ostream<_CharT, _Traits> __ostream_type;=0A=
typename __ostream_type::sentry __cerb(__out);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
streamsize __w =3D __out.width();=0A=
_CharT* __pads =3D =
static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * __w));=0A=
streamsize __len =3D =
static_cast<streamsize>(_Traits::length(__s));=0A=
if (__w > __len)=0A=
{=0A=
__pad(__out, __out.fill(), __pads, __s, __w, __len, =
false);=0A=
__s =3D __pads;=0A=
__len =3D __w;=0A=
}=0A=
__out.write(__s, __len);=0A=
__out.width(0);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
__out.setstate(ios_base::badbit);=0A=
if ((__out.exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return __out;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_ostream<_CharT, _Traits>&=0A=
operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)=0A=
{=0A=
typedef basic_ostream<_CharT, _Traits> __ostream_type;=0A=
=0A=
=0A=
=0A=
typedef char_traits<char> __ctraits_type;=0A=
=0A=
typename __ostream_type::sentry __cerb(__out);=0A=
if (__cerb)=0A=
{=0A=
size_t __clen =3D __ctraits_type::length(__s);=0A=
_CharT* __ws =3D =
static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * (__clen + 1)));=0A=
for (size_t __i =3D 0; __i <=3D __clen; ++__i)=0A=
__ws[__i] =3D __out.widen(__s[__i]);=0A=
_CharT* __str =3D __ws;=0A=
=0A=
try=0A=
{=0A=
streamsize __len =3D static_cast<streamsize>(__clen);=0A=
streamsize __w =3D __out.width();=0A=
_CharT* __pads =3D =
static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * __w));=0A=
=0A=
if (__w > __len)=0A=
{=0A=
__pad(__out, __out.fill(), __pads, __ws, __w, __len, =
false);=0A=
__str =3D __pads;=0A=
__len =3D __w;=0A=
}=0A=
__out.write(__str, __len);=0A=
__out.width(0);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
__out.setstate(ios_base::badbit);=0A=
if ((__out.exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return __out;=0A=
}=0A=
=0A=
=0A=
template<class _Traits>=0A=
basic_ostream<char, _Traits>&=0A=
operator<<(basic_ostream<char, _Traits>& __out, const char* __s)=0A=
{=0A=
typedef basic_ostream<char, _Traits> __ostream_type;=0A=
typename __ostream_type::sentry __cerb(__out);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
streamsize __w =3D __out.width();=0A=
char* __pads =3D static_cast<char*>(__builtin_alloca(__w));=0A=
streamsize __len =3D =
static_cast<streamsize>(_Traits::length(__s));=0A=
if (__w > __len)=0A=
{=0A=
__pad(__out, __out.fill(), __pads, __s, __w, __len, =
false);=0A=
__s =3D __pads;=0A=
__len =3D __w;=0A=
}=0A=
__out.write(__s, __len);=0A=
__out.width(0);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
__out.setstate(ios_base::badbit);=0A=
if ((__out.exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return __out;=0A=
}=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
basic_ostream<_CharT, _Traits>&=0A=
operator<<(basic_ostream<_CharT, _Traits>& __out,=0A=
const basic_string<_CharT, _Traits, _Alloc>& __str)=0A=
{=0A=
typedef basic_ostream<_CharT, _Traits> __ostream_type;=0A=
typename __ostream_type::sentry __cerb(__out);=0A=
if (__cerb)=0A=
{=0A=
const _CharT* __s =3D __str.data();=0A=
streamsize __w =3D __out.width();=0A=
_CharT* __pads =3D =
static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * __w));=0A=
streamsize __len =3D static_cast<streamsize>(__str.size());=0A=
=0A=
=0A=
=0A=
if (__w > __len)=0A=
{=0A=
__pad(__out, __out.fill(), __pads, __s, __w, __len, false);=0A=
__s =3D __pads;=0A=
__len =3D __w;=0A=
}=0A=
streamsize __res =3D __out.rdbuf()->sputn(__s, __len);=0A=
__out.width(0);=0A=
if (__res !=3D __len)=0A=
__out.setstate(ios_base::failbit);=0A=
}=0A=
return __out;=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
extern template class basic_ostream<char>;=0A=
extern template ostream& endl(ostream&);=0A=
extern template ostream& ends(ostream&);=0A=
extern template ostream& flush(ostream&);=0A=
extern template ostream& operator<<(ostream&, char);=0A=
extern template ostream& operator<<(ostream&, unsigned char);=0A=
extern template ostream& operator<<(ostream&, signed char);=0A=
extern template ostream& operator<<(ostream&, const char*);=0A=
extern template ostream& operator<<(ostream&, const unsigned char*);=0A=
extern template ostream& operator<<(ostream&, const signed char*);=0A=
=0A=
extern template class basic_ostream<wchar_t>;=0A=
extern template wostream& endl(wostream&);=0A=
extern template wostream& ends(wostream&);=0A=
extern template wostream& flush(wostream&);=0A=
extern template wostream& operator<<(wostream&, wchar_t);=0A=
extern template wostream& operator<<(wostream&, char);=0A=
extern template wostream& operator<<(wostream&, const wchar_t*);=0A=
extern template wostream& operator<<(wostream&, const char*);=0A=
}=0A=
# 276 "/usr/local/include/g++-v3/ostream" 2 3=0A=
# 46 "/usr/local/include/g++-v3/iostream" 2 3=0A=
# 1 "/usr/local/include/g++-v3/istream" 1 3=0A=
# 43 "/usr/local/include/g++-v3/istream" 3=0A=
=0A=
=0A=
=0A=
=0A=
namespace std=0A=
{=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
class basic_istream : virtual public basic_ios<_CharT, _Traits>=0A=
{=0A=
public:=0A=
=0A=
typedef _CharT char_type;=0A=
typedef typename _Traits::int_type int_type;=0A=
typedef typename _Traits::pos_type pos_type;=0A=
typedef typename _Traits::off_type off_type;=0A=
typedef _Traits traits_type;=0A=
=0A=
=0A=
typedef basic_streambuf<_CharT, _Traits> __streambuf_type;=0A=
typedef basic_ios<_CharT, _Traits> __ios_type;=0A=
typedef basic_istream<_CharT, _Traits> __istream_type;=0A=
typedef istreambuf_iterator<_CharT, _Traits> __istreambuf_iter;=0A=
typedef num_get<_CharT, __istreambuf_iter> __numget_type;=0A=
typedef ctype<_CharT> __ctype_type;=0A=
=0A=
protected:=0A=
=0A=
streamsize _M_gcount;=0A=
=0A=
public:=0A=
=0A=
explicit=0A=
basic_istream(__streambuf_type* __sb)=0A=
{=0A=
this->init(__sb);=0A=
_M_gcount =3D streamsize(0);=0A=
}=0A=
=0A=
virtual=0A=
~basic_istream()=0A=
{ _M_gcount =3D streamsize(0); }=0A=
=0A=
=0A=
class sentry;=0A=
friend class sentry;=0A=
=0A=
=0A=
=0A=
__istream_type&=0A=
operator>>(__istream_type& (*__pf)(__istream_type&));=0A=
=0A=
__istream_type&=0A=
operator>>(__ios_type& (*__pf)(__ios_type&));=0A=
=0A=
__istream_type&=0A=
operator>>(ios_base& (*__pf)(ios_base&));=0A=
=0A=
=0A=
__istream_type&=0A=
operator>>(bool& __n);=0A=
=0A=
__istream_type&=0A=
operator>>(short& __n);=0A=
=0A=
__istream_type&=0A=
operator>>(unsigned short& __n);=0A=
=0A=
__istream_type&=0A=
operator>>(int& __n);=0A=
=0A=
__istream_type&=0A=
operator>>(unsigned int& __n);=0A=
=0A=
__istream_type&=0A=
operator>>(long& __n);=0A=
=0A=
__istream_type&=0A=
operator>>(unsigned long& __n);=0A=
=0A=
=0A=
__istream_type&=0A=
operator>>(long long& __n);=0A=
=0A=
__istream_type&=0A=
operator>>(unsigned long long& __n);=0A=
=0A=
=0A=
__istream_type&=0A=
operator>>(float& __f);=0A=
=0A=
__istream_type&=0A=
operator>>(double& __f);=0A=
=0A=
__istream_type&=0A=
operator>>(long double& __f);=0A=
=0A=
__istream_type&=0A=
operator>>(void*& __p);=0A=
=0A=
__istream_type&=0A=
operator>>(__streambuf_type* __sb);=0A=
=0A=
=0A=
inline streamsize=0A=
gcount(void) const=0A=
{ return _M_gcount; }=0A=
=0A=
int_type=0A=
get(void);=0A=
=0A=
__istream_type&=0A=
get(char_type& __c);=0A=
=0A=
__istream_type&=0A=
get(char_type* __s, streamsize __n, char_type __delim);=0A=
=0A=
inline __istream_type&=0A=
get(char_type* __s, streamsize __n)=0A=
{ return this->get(__s, __n, this->widen('\n')); }=0A=
=0A=
__istream_type&=0A=
get(__streambuf_type& __sb, char_type __delim);=0A=
=0A=
inline __istream_type&=0A=
get(__streambuf_type& __sb)=0A=
{ return this->get(__sb, this->widen('\n')); }=0A=
=0A=
__istream_type&=0A=
getline(char_type* __s, streamsize __n, char_type __delim);=0A=
=0A=
inline __istream_type&=0A=
getline(char_type* __s, streamsize __n)=0A=
{ return this->getline(__s, __n, this->widen('\n')); }=0A=
=0A=
__istream_type&=0A=
ignore(streamsize __n =3D 1, int_type __delim =3D =
traits_type::eof());=0A=
=0A=
int_type=0A=
peek(void);=0A=
=0A=
__istream_type&=0A=
read(char_type* __s, streamsize __n);=0A=
=0A=
streamsize=0A=
readsome(char_type* __s, streamsize __n);=0A=
=0A=
__istream_type&=0A=
putback(char_type __c);=0A=
=0A=
__istream_type&=0A=
unget(void);=0A=
=0A=
int=0A=
sync(void);=0A=
=0A=
pos_type=0A=
tellg(void);=0A=
=0A=
__istream_type&=0A=
seekg(pos_type);=0A=
=0A=
__istream_type&=0A=
seekg(off_type, ios_base::seekdir);=0A=
};=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
class basic_istream<_CharT, _Traits>::sentry=0A=
{=0A=
public:=0A=
typedef _Traits traits_type;=0A=
typedef basic_streambuf<_CharT, _Traits> __streambuf_type;=0A=
typedef basic_istream<_CharT, _Traits> __istream_type;=0A=
typedef typename __istream_type::__ctype_type __ctype_type;=0A=
typedef typename _Traits::int_type __int_type;=0A=
=0A=
explicit=0A=
sentry(basic_istream<_CharT, _Traits>& __is, bool __noskipws =3D =
false);=0A=
=0A=
operator bool() { return _M_ok; }=0A=
=0A=
private:=0A=
bool _M_ok;=0A=
};=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c);=0A=
=0A=
template<class _Traits>=0A=
basic_istream<char, _Traits>&=0A=
operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)=0A=
{ return (__in >> reinterpret_cast<char&>(__c)); }=0A=
=0A=
template<class _Traits>=0A=
basic_istream<char, _Traits>&=0A=
operator>>(basic_istream<char, _Traits>& __in, signed char& __c)=0A=
{ return (__in >> reinterpret_cast<char&>(__c)); }=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s);=0A=
=0A=
template<class _Traits>=0A=
basic_istream<char,_Traits>&=0A=
operator>>(basic_istream<char,_Traits>& __in, unsigned char* __s)=0A=
{ return (__in >> reinterpret_cast<char*>(__s)); }=0A=
=0A=
template<class _Traits>=0A=
basic_istream<char,_Traits>&=0A=
operator>>(basic_istream<char,_Traits>& __in, signed char* __s)=0A=
{ return (__in >> reinterpret_cast<char*>(__s)); }=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
class basic_iostream=0A=
: public basic_istream<_CharT, _Traits>,=0A=
public basic_ostream<_CharT, _Traits>=0A=
{=0A=
public:=0A=
=0A=
typedef basic_istream<_CharT, _Traits> __istream_type;=0A=
typedef basic_ostream<_CharT, _Traits> __ostream_type;=0A=
=0A=
explicit=0A=
basic_iostream(basic_streambuf<_CharT, _Traits>* __sb)=0A=
: __istream_type(__sb), __ostream_type(__sb)=0A=
{ }=0A=
=0A=
virtual=0A=
~basic_iostream() { }=0A=
};=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
ws(basic_istream<_CharT, _Traits>& __is);=0A=
}=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
# 1 "/usr/local/include/g++-v3/bits/istream.tcc" 1 3=0A=
# 36 "/usr/local/include/g++-v3/bits/istream.tcc" 3=0A=
=0A=
=0A=
=0A=
=0A=
namespace std=0A=
{=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>::sentry::=0A=
sentry(basic_istream<_CharT, _Traits>& __in, bool __noskipws)=0A=
{=0A=
if (__in.good())=0A=
{=0A=
if (__in.tie())=0A=
__in.tie()->flush();=0A=
if (!__noskipws && (__in.flags() & ios_base::skipws))=0A=
{=0A=
const __int_type __eof =3D traits_type::eof();=0A=
__streambuf_type* __sb =3D __in.rdbuf();=0A=
__int_type __c =3D __sb->sgetc();=0A=
=0A=
if (__in._M_check_facet(__in._M_fctype))=0A=
while (__c !=3D __eof=0A=
&& __in._M_fctype->is(ctype_base::space, __c))=0A=
__c =3D __sb->snextc();=0A=
=0A=
=0A=
=0A=
if (__c =3D=3D __eof)=0A=
__in.setstate(ios_base::eofbit);=0A=
=0A=
}=0A=
}=0A=
=0A=
if (__in.good())=0A=
_M_ok =3D true;=0A=
else=0A=
{=0A=
_M_ok =3D false;=0A=
__in.setstate(ios_base::failbit);=0A=
}=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
basic_istream<_CharT, _Traits>::=0A=
operator>>(__istream_type& (*__pf)(__istream_type&))=0A=
{=0A=
__pf(*this);=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
basic_istream<_CharT, _Traits>::=0A=
operator>>(__ios_type& (*__pf)(__ios_type&))=0A=
{=0A=
__pf(*this);=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
basic_istream<_CharT, _Traits>::=0A=
operator>>(ios_base& (*__pf)(ios_base&))=0A=
{=0A=
__pf(*this);=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
basic_istream<_CharT, _Traits>::=0A=
operator>>(bool& __n)=0A=
{=0A=
sentry __cerb(*this, false);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
ios_base::iostate __err =3D =
ios_base::iostate(ios_base::goodbit);=0A=
if (_M_check_facet(_M_fnumget))=0A=
_M_fnumget->get(*this, 0, *this, __err, __n);=0A=
this->setstate(__err);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
basic_istream<_CharT, _Traits>::=0A=
operator>>(short& __n)=0A=
{=0A=
sentry __cerb(*this, false);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
ios_base::iostate __err =3D =
ios_base::iostate(ios_base::goodbit);=0A=
long __l;=0A=
if (_M_check_facet(_M_fnumget))=0A=
_M_fnumget->get(*this, 0, *this, __err, __l);=0A=
=0A=
=0A=
if (!(__err & ios_base::failbit)=0A=
&& (numeric_limits<short>::min() <=3D __l=0A=
&& __l <=3D numeric_limits<short>::max()))=0A=
__n =3D __l;=0A=
else=0A=
__err |=3D ios_base::failbit;=0A=
=0A=
this->setstate(__err);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
basic_istream<_CharT, _Traits>::=0A=
operator>>(unsigned short& __n)=0A=
{=0A=
sentry __cerb(*this, false);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
ios_base::iostate __err =3D =
ios_base::iostate(ios_base::goodbit);=0A=
if (_M_check_facet(_M_fnumget))=0A=
_M_fnumget->get(*this, 0, *this, __err, __n);=0A=
this->setstate(__err);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
basic_istream<_CharT, _Traits>::=0A=
operator>>(int& __n)=0A=
{=0A=
sentry __cerb(*this, false);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
ios_base::iostate __err =3D =
ios_base::iostate(ios_base::goodbit);=0A=
long __l;=0A=
if (_M_check_facet(_M_fnumget))=0A=
_M_fnumget->get(*this, 0, *this, __err, __l);=0A=
=0A=
=0A=
if (!(__err & ios_base::failbit)=0A=
&& (numeric_limits<int>::min() <=3D __l=0A=
&& __l <=3D numeric_limits<int>::max()))=0A=
__n =3D __l;=0A=
else=0A=
__err |=3D ios_base::failbit;=0A=
=0A=
this->setstate(__err);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
basic_istream<_CharT, _Traits>::=0A=
operator>>(unsigned int& __n)=0A=
{=0A=
sentry __cerb(*this, false);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
ios_base::iostate __err =3D =
ios_base::iostate(ios_base::goodbit);=0A=
if (_M_check_facet(_M_fnumget))=0A=
_M_fnumget->get(*this, 0, *this, __err, __n);=0A=
this->setstate(__err);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
basic_istream<_CharT, _Traits>::=0A=
operator>>(long& __n)=0A=
{=0A=
sentry __cerb(*this, false);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
ios_base::iostate __err =3D =
ios_base::iostate(ios_base::goodbit);=0A=
if (_M_check_facet(_M_fnumget))=0A=
_M_fnumget->get(*this, 0, *this, __err, __n);=0A=
this->setstate(__err);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
basic_istream<_CharT, _Traits>::=0A=
operator>>(unsigned long& __n)=0A=
{=0A=
sentry __cerb(*this, false);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
ios_base::iostate __err =3D =
ios_base::iostate(ios_base::goodbit);=0A=
if (_M_check_facet(_M_fnumget))=0A=
_M_fnumget->get(*this, 0, *this, __err, __n);=0A=
this->setstate(__err);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
basic_istream<_CharT, _Traits>::=0A=
operator>>(long long& __n)=0A=
{=0A=
sentry __cerb(*this, false);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
ios_base::iostate __err =3D =
ios_base::iostate(ios_base::goodbit);=0A=
if (_M_check_facet(_M_fnumget))=0A=
_M_fnumget->get(*this, 0, *this, __err, __n);=0A=
this->setstate(__err);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
basic_istream<_CharT, _Traits>::=0A=
operator>>(unsigned long long& __n)=0A=
{=0A=
sentry __cerb(*this, false);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
ios_base::iostate __err =3D =
ios_base::iostate(ios_base::goodbit);=0A=
if (_M_check_facet(_M_fnumget))=0A=
_M_fnumget->get(*this, 0, *this, __err, __n);=0A=
this->setstate(__err);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
basic_istream<_CharT, _Traits>::=0A=
operator>>(float& __n)=0A=
{=0A=
sentry __cerb(*this, false);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
ios_base::iostate __err =3D =
ios_base::iostate(ios_base::goodbit);=0A=
if (_M_check_facet(_M_fnumget))=0A=
_M_fnumget->get(*this, 0, *this, __err, __n);=0A=
this->setstate(__err);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
basic_istream<_CharT, _Traits>::=0A=
operator>>(double& __n)=0A=
{=0A=
sentry __cerb(*this, false);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
ios_base::iostate __err =3D =
ios_base::iostate(ios_base::goodbit);=0A=
if (_M_check_facet(_M_fnumget))=0A=
_M_fnumget->get(*this, 0, *this, __err, __n);=0A=
this->setstate(__err);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
basic_istream<_CharT, _Traits>::=0A=
operator>>(long double& __n)=0A=
{=0A=
sentry __cerb(*this, false);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
ios_base::iostate __err =3D =
ios_base::iostate(ios_base::goodbit);=0A=
if (_M_check_facet(_M_fnumget))=0A=
_M_fnumget->get(*this, 0, *this, __err, __n);=0A=
this->setstate(__err);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
basic_istream<_CharT, _Traits>::=0A=
operator>>(void*& __n)=0A=
{=0A=
sentry __cerb(*this, false);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
ios_base::iostate __err =3D =
ios_base::iostate(ios_base::goodbit);=0A=
if (_M_check_facet(_M_fnumget))=0A=
_M_fnumget->get(*this, 0, *this, __err, __n);=0A=
this->setstate(__err);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
basic_istream<_CharT, _Traits>::=0A=
operator>>(__streambuf_type* __sbout)=0A=
{=0A=
sentry __cerb(*this, false);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
streamsize __xtrct =3D 0;=0A=
if (__sbout)=0A=
{=0A=
__streambuf_type* __sbin =3D this->rdbuf();=0A=
__xtrct =3D __copy_streambufs(*this, __sbin, __sbout);=0A=
}=0A=
if (!__sbout || !__xtrct)=0A=
this->setstate(ios_base::failbit);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
typename basic_istream<_CharT, _Traits>::int_type=0A=
basic_istream<_CharT, _Traits>::=0A=
get(void)=0A=
{=0A=
const int_type __eof =3D traits_type::eof();=0A=
int_type __c =3D __eof;=0A=
_M_gcount =3D 0;=0A=
sentry __cerb(*this, true);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
__c =3D this->rdbuf()->sbumpc();=0A=
=0A=
if (__c !=3D __eof)=0A=
_M_gcount =3D 1;=0A=
else=0A=
this->setstate(ios_base::eofbit | ios_base::failbit);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return __c;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
basic_istream<_CharT, _Traits>::=0A=
get(char_type& __c)=0A=
{=0A=
_M_gcount =3D 0;=0A=
sentry __cerb(*this, true);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
const int_type __eof =3D traits_type::eof();=0A=
int_type __bufval =3D this->rdbuf()->sbumpc();=0A=
=0A=
if (__bufval !=3D __eof)=0A=
{=0A=
_M_gcount =3D 1;=0A=
__c =3D traits_type::to_char_type(__bufval);=0A=
}=0A=
else=0A=
this->setstate(ios_base::eofbit | ios_base::failbit);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
basic_istream<_CharT, _Traits>::=0A=
get(char_type* __s, streamsize __n, char_type __delim)=0A=
{=0A=
_M_gcount =3D 0;=0A=
sentry __cerb(*this, true);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
const int_type __idelim =3D =
traits_type::to_int_type(__delim);=0A=
const int_type __eof =3D traits_type::eof();=0A=
__streambuf_type* __sb =3D this->rdbuf();=0A=
int_type __c =3D __sb->sgetc();=0A=
=0A=
while (_M_gcount + 1 < __n && __c !=3D __eof && __c !=3D =
__idelim)=0A=
{=0A=
*__s++ =3D traits_type::to_char_type(__c);=0A=
__c =3D __sb->snextc();=0A=
++_M_gcount;=0A=
}=0A=
if (__c =3D=3D __eof)=0A=
this->setstate(ios_base::eofbit);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
*__s =3D char_type();=0A=
if (!_M_gcount)=0A=
this->setstate(ios_base::failbit);=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
basic_istream<_CharT, _Traits>::=0A=
get(__streambuf_type& __sb, char_type __delim)=0A=
{=0A=
_M_gcount =3D 0;=0A=
sentry __cerb(*this, true);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
const int_type __idelim =3D =
traits_type::to_int_type(__delim);=0A=
const int_type __eof =3D traits_type::eof();=0A=
__streambuf_type* __this_sb =3D this->rdbuf();=0A=
int_type __c =3D __this_sb->sgetc();=0A=
=0A=
while (__c !=3D __eof && __c !=3D __idelim=0A=
&& (__sb.sputc(traits_type::to_char_type(__c)) !=3D =
__eof))=0A=
{=0A=
++_M_gcount;=0A=
__c =3D __this_sb->snextc();=0A=
}=0A=
if (__c =3D=3D __eof)=0A=
this->setstate(ios_base::eofbit);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
if (!_M_gcount)=0A=
this->setstate(ios_base::failbit);=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
basic_istream<_CharT, _Traits>::=0A=
getline(char_type* __s, streamsize __n, char_type __delim)=0A=
{=0A=
_M_gcount =3D 0;=0A=
sentry __cerb(*this, true);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
const int_type __idelim =3D =
traits_type::to_int_type(__delim);=0A=
const int_type __eof =3D traits_type::eof();=0A=
__streambuf_type* __sb =3D this->rdbuf();=0A=
int_type __c =3D __sb->sgetc();=0A=
=0A=
while (_M_gcount + 1 < __n && __c !=3D __eof && __c !=3D =
__idelim)=0A=
{=0A=
*__s++ =3D traits_type::to_char_type(__c);=0A=
__c =3D __sb->snextc();=0A=
++_M_gcount;=0A=
}=0A=
if (__c =3D=3D __eof)=0A=
this->setstate(ios_base::eofbit);=0A=
else=0A=
{=0A=
if (__c =3D=3D __idelim)=0A=
{=0A=
__sb->snextc();=0A=
++_M_gcount;=0A=
}=0A=
else=0A=
this->setstate(ios_base::failbit);=0A=
}=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
*__s =3D char_type();=0A=
if (!_M_gcount)=0A=
this->setstate(ios_base::failbit);=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
basic_istream<_CharT, _Traits>::=0A=
ignore(streamsize __n, int_type __delim)=0A=
{=0A=
_M_gcount =3D 0;=0A=
sentry __cerb(*this, true);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
const int_type __eof =3D traits_type::eof();=0A=
__streambuf_type* __sb =3D this->rdbuf();=0A=
int_type __c =3D __sb->sgetc();=0A=
=0A=
__n =3D min(__n, numeric_limits<streamsize>::max());=0A=
while (_M_gcount < __n && __c !=3D__eof && __c !=3D =
__delim)=0A=
{=0A=
__c =3D __sb->snextc();=0A=
++_M_gcount;=0A=
}=0A=
if (__c =3D=3D __eof)=0A=
this->setstate(ios_base::eofbit);=0A=
else if (__c =3D=3D __delim)=0A=
{=0A=
__sb->snextc();=0A=
++_M_gcount;=0A=
}=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
typename basic_istream<_CharT, _Traits>::int_type=0A=
basic_istream<_CharT, _Traits>::=0A=
peek(void)=0A=
{=0A=
int_type __c =3D traits_type::eof();=0A=
_M_gcount =3D 0;=0A=
sentry __cerb(*this, true);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{ __c =3D this->rdbuf()->sgetc(); }=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return __c;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
basic_istream<_CharT, _Traits>::=0A=
read(char_type* __s, streamsize __n)=0A=
{=0A=
_M_gcount =3D 0;=0A=
sentry __cerb(*this, true);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
_M_gcount =3D this->rdbuf()->sgetn(__s, __n);=0A=
if (_M_gcount !=3D __n)=0A=
this->setstate(ios_base::eofbit | ios_base::failbit);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
else=0A=
this->setstate(ios_base::failbit);=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
streamsize=0A=
basic_istream<_CharT, _Traits>::=0A=
readsome(char_type* __s, streamsize __n)=0A=
{=0A=
_M_gcount =3D 0;=0A=
sentry __cerb(*this, true);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
const int_type __eof =3D traits_type::eof();=0A=
streamsize __num =3D this->rdbuf()->in_avail();=0A=
if (__num !=3D static_cast<streamsize>(__eof))=0A=
{=0A=
__num =3D min(__num, __n);=0A=
if (__num)=0A=
_M_gcount =3D this->rdbuf()->sgetn(__s, __num);=0A=
}=0A=
else=0A=
this->setstate(ios_base::eofbit);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
else=0A=
this->setstate(ios_base::failbit);=0A=
return _M_gcount;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
basic_istream<_CharT, _Traits>::=0A=
putback(char_type __c)=0A=
{=0A=
sentry __cerb(*this, true);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
const int_type __eof =3D traits_type::eof();=0A=
__streambuf_type* __sb =3D this->rdbuf();=0A=
if (!__sb || __sb->sputbackc(__c) =3D=3D __eof)=0A=
this->setstate(ios_base::badbit);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
else=0A=
this->setstate(ios_base::failbit);=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
basic_istream<_CharT, _Traits>::=0A=
unget(void)=0A=
{=0A=
_M_gcount =3D 0;=0A=
sentry __cerb(*this, true);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
const int_type __eof =3D traits_type::eof();=0A=
__streambuf_type* __sb =3D this->rdbuf();=0A=
if (!__sb || __eof =3D=3D __sb->sungetc())=0A=
this->setstate(ios_base::badbit);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
else=0A=
this->setstate(ios_base::failbit);=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
int=0A=
basic_istream<_CharT, _Traits>::=0A=
sync(void)=0A=
{=0A=
int __ret =3D traits_type::eof();=0A=
_M_gcount =3D 0;=0A=
sentry __cerb(*this, true);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
__streambuf_type* __sb =3D this->rdbuf();=0A=
if (!__sb || __ret =3D=3D __sb->pubsync())=0A=
this->setstate(ios_base::badbit);=0A=
else=0A=
__ret =3D 0;=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return __ret;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
typename basic_istream<_CharT, _Traits>::pos_type=0A=
basic_istream<_CharT, _Traits>::=0A=
tellg(void)=0A=
{=0A=
pos_type __ret =3D pos_type(-1);=0A=
_M_gcount =3D 0;=0A=
sentry __cerb(*this, true);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
__ret =3D this->rdbuf()->pubseekoff(0, ios_base::cur, =
ios_base::in);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return __ret;=0A=
}=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
basic_istream<_CharT, _Traits>::=0A=
seekg(pos_type __pos)=0A=
{=0A=
_M_gcount =3D 0;=0A=
sentry __cerb(*this, true);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
=0A=
=0A=
pos_type __err =3D this->rdbuf()->pubseekpos(__pos, =
ios_base::in);=0A=
=0A=
=0A=
if (__err =3D=3D pos_type(off_type(-1)))=0A=
this->setstate(ios_base::failbit);=0A=
=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
basic_istream<_CharT, _Traits>::=0A=
seekg(off_type __off, ios_base::seekdir __dir)=0A=
{=0A=
_M_gcount =3D 0;=0A=
sentry __cerb(*this, true);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
=0A=
=0A=
pos_type __err =3D this->rdbuf()->pubseekoff(__off, __dir,=0A=
ios_base::in);=0A=
=0A=
=0A=
if (__err =3D=3D pos_type(off_type(-1)))=0A=
this->setstate(ios_base::failbit);=0A=
=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
this->setstate(ios_base::badbit);=0A=
if ((this->exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
return *this;=0A=
}=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)=0A=
{=0A=
typedef basic_istream<_CharT, _Traits> __istream_type;=0A=
typename __istream_type::sentry __cerb(__in, false);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{ __in.get(__c); }=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
__in.setstate(ios_base::badbit);=0A=
if ((__in.exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
else=0A=
__in.setstate(ios_base::failbit);=0A=
return __in;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT, _Traits>&=0A=
operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)=0A=
{=0A=
typedef basic_istream<_CharT, _Traits> __istream_type;=0A=
typedef typename __istream_type::__streambuf_type __streambuf_type;=0A=
typedef typename _Traits::int_type int_type;=0A=
typedef _CharT char_type;=0A=
typedef ctype<_CharT> __ctype_type;=0A=
streamsize __extracted =3D 0;=0A=
=0A=
typename __istream_type::sentry __cerb(__in, false);=0A=
if (__cerb)=0A=
{=0A=
try=0A=
{=0A=
=0A=
streamsize __num =3D __in.width();=0A=
if (__num =3D=3D 0)=0A=
__num =3D numeric_limits<streamsize>::max();=0A=
=0A=
const __ctype_type& __ctype =3D =
use_facet<__ctype_type>(__in.getloc());=0A=
const int_type __eof =3D _Traits::eof();=0A=
__streambuf_type* __sb =3D __in.rdbuf();=0A=
int_type __c =3D __sb->sgetc();=0A=
=0A=
while (__extracted < __num - 1=0A=
&& __c !=3D __eof && !__ctype.is(ctype_base::space, =
__c))=0A=
{=0A=
*__s++ =3D __c;=0A=
++__extracted;=0A=
__c =3D __sb->snextc();=0A=
}=0A=
if (__c =3D=3D __eof)=0A=
__in.setstate(ios_base::eofbit);=0A=
=0A=
=0A=
=0A=
*__s =3D char_type();=0A=
=0A=
__in.width(0);=0A=
}=0A=
catch(exception& __fail)=0A=
{=0A=
=0A=
=0A=
__in.setstate(ios_base::badbit);=0A=
if ((__in.exceptions() & ios_base::badbit) !=3D 0)=0A=
throw;=0A=
}=0A=
}=0A=
if (!__extracted)=0A=
__in.setstate(ios_base::failbit);=0A=
return __in;=0A=
}=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits>=0A=
basic_istream<_CharT,_Traits>&=0A=
ws(basic_istream<_CharT,_Traits>& __in)=0A=
{=0A=
typedef basic_istream<_CharT, _Traits> __istream_type;=0A=
typedef typename __istream_type::__streambuf_type __streambuf_type;=0A=
typedef typename __istream_type::__ctype_type __ctype_type;=0A=
typedef typename __istream_type::int_type __int_type;=0A=
=0A=
const __ctype_type& __ctype =3D =
use_facet<__ctype_type>(__in.getloc());=0A=
const __int_type __eof =3D _Traits::eof();=0A=
__streambuf_type* __sb =3D __in.rdbuf();=0A=
__int_type __c =3D __sb->sgetc();=0A=
=0A=
while (__c !=3D __eof && __ctype.is(ctype_base::space, __c))=0A=
__c =3D __sb->snextc();=0A=
if (__c =3D=3D __eof)=0A=
__in.setstate(ios_base::eofbit);=0A=
=0A=
return __in;=0A=
}=0A=
=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
basic_istream<_CharT, _Traits>&=0A=
operator>>(basic_istream<_CharT, _Traits>& __in,=0A=
basic_string<_CharT, _Traits, _Alloc>& __str)=0A=
{=0A=
typedef basic_istream<_CharT, _Traits> __istream_type;=0A=
typedef typename __istream_type::int_type __int_type;=0A=
typedef typename __istream_type::__streambuf_type __streambuf_type;=0A=
typedef typename __istream_type::__ctype_type __ctype_type;=0A=
typedef basic_string<_CharT, _Traits, _Alloc> __string_type;=0A=
typedef typename __string_type::size_type __size_type;=0A=
__size_type __extracted =3D 0;=0A=
=0A=
typename __istream_type::sentry __cerb(__in, false);=0A=
if (__cerb)=0A=
{=0A=
__str.erase();=0A=
streamsize __w =3D __in.width();=0A=
__size_type __n;=0A=
__n =3D __w > 0 ? static_cast<__size_type>(__w) : =
__str.max_size();=0A=
=0A=
const __ctype_type& __ctype =3D =
use_facet<__ctype_type>(__in.getloc());=0A=
const __int_type __eof =3D _Traits::eof();=0A=
__streambuf_type* __sb =3D __in.rdbuf();=0A=
__int_type __c =3D __sb->sgetc();=0A=
=0A=
while (__extracted < __n=0A=
&& __c !=3D __eof && !__ctype.is(ctype_base::space, =
__c))=0A=
{=0A=
__str +=3D _Traits::to_char_type(__c);=0A=
++__extracted;=0A=
__c =3D __sb->snextc();=0A=
}=0A=
if (__c =3D=3D __eof)=0A=
__in.setstate(ios_base::eofbit);=0A=
__in.width(0);=0A=
}=0A=
=0A=
=0A=
if (!__extracted)=0A=
__in.setstate (ios_base::failbit);=0A=
=0A=
return __in;=0A=
}=0A=
=0A=
template<typename _CharT, typename _Traits, typename _Alloc>=0A=
basic_istream<_CharT, _Traits>&=0A=
getline(basic_istream<_CharT, _Traits>& __in,=0A=
basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim)=0A=
{=0A=
typedef basic_istream<_CharT, _Traits> __istream_type;=0A=
typedef typename __istream_type::int_type __int_type;=0A=
typedef typename __istream_type::__streambuf_type __streambuf_type;=0A=
typedef typename __istream_type::__ctype_type __ctype_type;=0A=
typedef basic_string<_CharT, _Traits, _Alloc> __string_type;=0A=
typedef typename __string_type::size_type __size_type;=0A=
=0A=
__size_type __extracted =3D 0;=0A=
bool __testdelim =3D false;=0A=
typename __istream_type::sentry __cerb(__in, true);=0A=
if (__cerb)=0A=
{=0A=
__str.erase();=0A=
__size_type __n =3D __str.max_size();=0A=
=0A=
__int_type __idelim =3D _Traits::to_int_type(__delim);=0A=
__streambuf_type* __sb =3D __in.rdbuf();=0A=
__int_type __c =3D __sb->sbumpc();=0A=
const __int_type __eof =3D _Traits::eof();=0A=
__testdelim =3D __c =3D=3D __idelim;=0A=
=0A=
while (__extracted <=3D __n && __c !=3D __eof && !__testdelim)=0A=
{=0A=
__str +=3D _Traits::to_char_type(__c);=0A=
++__extracted;=0A=
__c =3D __sb->sbumpc();=0A=
__testdelim =3D __c =3D=3D __idelim;=0A=
}=0A=
if (__c =3D=3D __eof)=0A=
__in.setstate(ios_base::eofbit);=0A=
}=0A=
if (!__extracted && !__testdelim)=0A=
__in.setstate(ios_base::failbit);=0A=
return __in;=0A=
}=0A=
=0A=
template<class _CharT, class _Traits, class _Alloc>=0A=
inline basic_istream<_CharT,_Traits>&=0A=
getline(basic_istream<_CharT, _Traits>& __in,=0A=
basic_string<_CharT,_Traits,_Alloc>& __str)=0A=
{ return getline(__in, __str, __in.widen('\n')); }=0A=
=0A=
=0A=
=0A=
=0A=
extern template class basic_istream<char>;=0A=
extern template istream& ws(istream&);=0A=
extern template istream& operator>>(istream&, char&);=0A=
extern template istream& operator>>(istream&, char*);=0A=
extern template istream& operator>>(istream&, unsigned char&);=0A=
extern template istream& operator>>(istream&, signed char&);=0A=
extern template istream& operator>>(istream&, unsigned char*);=0A=
extern template istream& operator>>(istream&, signed char*);=0A=
=0A=
extern template class basic_istream<wchar_t>;=0A=
extern template wistream& ws(wistream&);=0A=
extern template wistream& operator>>(wistream&, wchar_t&);=0A=
extern template wistream& operator>>(wistream&, wchar_t*);=0A=
}=0A=
# 288 "/usr/local/include/g++-v3/istream" 2 3=0A=
# 47 "/usr/local/include/g++-v3/iostream" 2 3=0A=
=0A=
namespace std=0A=
{=0A=
extern istream cin;=0A=
extern ostream cout;=0A=
extern ostream cerr;=0A=
extern ostream clog;=0A=
# 62 "/usr/local/include/g++-v3/iostream" 3=0A=
static ios_base::Init __ioinit;=0A=
}=0A=
# 2 "bug.cc" 2=0A=
=0A=
struct vec4 {=0A=
float x, y, z, w;=0A=
} __attribute__((__aligned__(16)));=0A=
=0A=
int main()=0A=
{=0A=
std::allocator<vec4> a;=0A=
=0A=
for (;;) {=0A=
vec4 *p =3D new vec4;=0A=
std::cerr << unsigned(p) % 16 << ' ';=0A=
}=0A=
}=0A=
------=_NextPart_000_0001_01C2000C.14E98110--
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: libstdc++/6732: misaligned objects created by new
@ 2002-05-20 5:21 paolo
0 siblings, 0 replies; 7+ messages in thread
From: paolo @ 2002-05-20 5:21 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, wesslen
Synopsis: misaligned objects created by new
State-Changed-From-To: open->feedback
State-Changed-By: paolo
State-Changed-When: Mon May 20 05:21:33 2002
State-Changed-Why:
You forgot to actually attach the program... (by the way, please provide it in plain source form too).
Thanks, Paolo.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6732
^ permalink raw reply [flat|nested] 7+ messages in thread
* libstdc++/6732: misaligned objects created by new
@ 2002-05-20 5:16 wesslen
0 siblings, 0 replies; 7+ messages in thread
From: wesslen @ 2002-05-20 5:16 UTC (permalink / raw)
To: gcc-gnats
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 665 bytes --]
>Number: 6732
>Category: libstdc++
>Synopsis: misaligned objects created by new
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 20 05:16:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Daniel Wesslén
>Release: gcc version 3.1
>Organization:
>Environment:
Cygwin 1.3.9/Windows XP
>Description:
operator new produces misaligned objects when __attribute__((__aligned__(16)) is used
>How-To-Repeat:
compile attached program
$ g++ bug.ii
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2002-08-03 20:46 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-03 13:46 libstdc++/6732: misaligned objects created by new Gabriel Dos Reis
-- strict thread matches above, loose matches on Subject: below --
2002-08-03 13:27 bkoz
2002-07-03 22:51 bkoz
2002-05-27 5:36 bkoz
2002-05-20 5:46 Daniel Wesslén
2002-05-20 5:21 paolo
2002-05-20 5:16 wesslen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).