# 1 "pdns_recursor.cc" # 1 "" # 1 "" # 1 "/usr/include/stdc-predef.h" 1 3 4 # 1 "" 2 # 1 "pdns_recursor.cc" # 23 "pdns_recursor.cc" # 1 "/usr/include/netdb.h" 1 3 4 # 25 "/usr/include/netdb.h" 3 4 # 1 "/usr/include/features.h" 1 3 4 # 365 "/usr/include/features.h" 3 4 # 1 "/usr/include/sys/cdefs.h" 1 3 4 # 402 "/usr/include/sys/cdefs.h" 3 4 # 1 "/usr/include/bits/wordsize.h" 1 3 4 # 403 "/usr/include/sys/cdefs.h" 2 3 4 # 366 "/usr/include/features.h" 2 3 4 # 389 "/usr/include/features.h" 3 4 # 1 "/usr/include/gnu/stubs.h" 1 3 4 # 10 "/usr/include/gnu/stubs.h" 3 4 # 1 "/usr/include/gnu/stubs-64.h" 1 3 4 # 11 "/usr/include/gnu/stubs.h" 2 3 4 # 390 "/usr/include/features.h" 2 3 4 # 26 "/usr/include/netdb.h" 2 3 4 # 1 "/usr/include/netinet/in.h" 1 3 4 # 22 "/usr/include/netinet/in.h" 3 4 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stdint.h" 1 3 4 # 9 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stdint.h" 3 4 # 1 "/usr/include/stdint.h" 1 3 4 # 26 "/usr/include/stdint.h" 3 4 # 1 "/usr/include/bits/wchar.h" 1 3 4 # 27 "/usr/include/stdint.h" 2 3 4 # 1 "/usr/include/bits/wordsize.h" 1 3 4 # 28 "/usr/include/stdint.h" 2 3 4 # 36 "/usr/include/stdint.h" 3 4 # 36 "/usr/include/stdint.h" 3 4 typedef signed char int8_t; typedef short int int16_t; typedef int int32_t; typedef long int int64_t; typedef unsigned char uint8_t; typedef unsigned short int uint16_t; typedef unsigned int uint32_t; typedef unsigned long int uint64_t; # 65 "/usr/include/stdint.h" 3 4 typedef signed char int_least8_t; typedef short int int_least16_t; typedef int int_least32_t; typedef long int int_least64_t; typedef unsigned char uint_least8_t; typedef unsigned short int uint_least16_t; typedef unsigned int uint_least32_t; typedef unsigned long int uint_least64_t; # 90 "/usr/include/stdint.h" 3 4 typedef signed char int_fast8_t; typedef long int int_fast16_t; typedef long int int_fast32_t; typedef long int int_fast64_t; # 103 "/usr/include/stdint.h" 3 4 typedef unsigned char uint_fast8_t; typedef unsigned long int uint_fast16_t; typedef unsigned long int uint_fast32_t; typedef unsigned long int uint_fast64_t; # 119 "/usr/include/stdint.h" 3 4 typedef long int intptr_t; typedef unsigned long int uintptr_t; # 134 "/usr/include/stdint.h" 3 4 typedef long int intmax_t; typedef unsigned long int uintmax_t; # 10 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stdint.h" 2 3 4 # 23 "/usr/include/netinet/in.h" 2 3 4 # 1 "/usr/include/sys/socket.h" 1 3 4 # 24 "/usr/include/sys/socket.h" 3 4 extern "C" { # 1 "/usr/include/sys/uio.h" 1 3 4 # 23 "/usr/include/sys/uio.h" 3 4 # 1 "/usr/include/sys/types.h" 1 3 4 # 27 "/usr/include/sys/types.h" 3 4 extern "C" { # 1 "/usr/include/bits/types.h" 1 3 4 # 27 "/usr/include/bits/types.h" 3 4 # 1 "/usr/include/bits/wordsize.h" 1 3 4 # 28 "/usr/include/bits/types.h" 2 3 4 typedef unsigned char __u_char; typedef unsigned short int __u_short; typedef unsigned int __u_int; typedef unsigned long int __u_long; typedef signed char __int8_t; typedef unsigned char __uint8_t; typedef signed short int __int16_t; typedef unsigned short int __uint16_t; typedef signed int __int32_t; typedef unsigned int __uint32_t; typedef signed long int __int64_t; typedef unsigned long int __uint64_t; typedef long int __quad_t; typedef unsigned long int __u_quad_t; # 121 "/usr/include/bits/types.h" 3 4 # 1 "/usr/include/bits/typesizes.h" 1 3 4 # 122 "/usr/include/bits/types.h" 2 3 4 typedef unsigned long int __dev_t; typedef unsigned int __uid_t; typedef unsigned int __gid_t; typedef unsigned long int __ino_t; typedef unsigned long int __ino64_t; typedef unsigned int __mode_t; typedef unsigned long int __nlink_t; typedef long int __off_t; typedef long int __off64_t; typedef int __pid_t; typedef struct { int __val[2]; } __fsid_t; typedef long int __clock_t; typedef unsigned long int __rlim_t; typedef unsigned long int __rlim64_t; typedef unsigned int __id_t; typedef long int __time_t; typedef unsigned int __useconds_t; typedef long int __suseconds_t; typedef int __daddr_t; typedef int __key_t; typedef int __clockid_t; typedef void * __timer_t; typedef long int __blksize_t; typedef long int __blkcnt_t; typedef long int __blkcnt64_t; typedef unsigned long int __fsblkcnt_t; typedef unsigned long int __fsblkcnt64_t; typedef unsigned long int __fsfilcnt_t; typedef unsigned long int __fsfilcnt64_t; typedef long int __fsword_t; typedef long int __ssize_t; typedef long int __syscall_slong_t; typedef unsigned long int __syscall_ulong_t; typedef __off64_t __loff_t; typedef __quad_t *__qaddr_t; typedef char *__caddr_t; typedef long int __intptr_t; typedef unsigned int __socklen_t; # 30 "/usr/include/sys/types.h" 2 3 4 typedef __u_char u_char; typedef __u_short u_short; typedef __u_int u_int; typedef __u_long u_long; typedef __quad_t quad_t; typedef __u_quad_t u_quad_t; typedef __fsid_t fsid_t; typedef __loff_t loff_t; typedef __ino_t ino_t; typedef __ino64_t ino64_t; typedef __dev_t dev_t; typedef __gid_t gid_t; typedef __mode_t mode_t; typedef __nlink_t nlink_t; typedef __uid_t uid_t; typedef __off_t off_t; typedef __off64_t off64_t; typedef __pid_t pid_t; typedef __id_t id_t; typedef __ssize_t ssize_t; typedef __daddr_t daddr_t; typedef __caddr_t caddr_t; typedef __key_t key_t; # 132 "/usr/include/sys/types.h" 3 4 # 1 "/usr/include/time.h" 1 3 4 # 57 "/usr/include/time.h" 3 4 typedef __clock_t clock_t; # 73 "/usr/include/time.h" 3 4 typedef __time_t time_t; # 91 "/usr/include/time.h" 3 4 typedef __clockid_t clockid_t; # 103 "/usr/include/time.h" 3 4 typedef __timer_t timer_t; # 133 "/usr/include/sys/types.h" 2 3 4 typedef __useconds_t useconds_t; typedef __suseconds_t suseconds_t; # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stddef.h" 1 3 4 # 216 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stddef.h" 3 4 typedef long unsigned int size_t; # 147 "/usr/include/sys/types.h" 2 3 4 typedef unsigned long int ulong; typedef unsigned short int ushort; typedef unsigned int uint; # 200 "/usr/include/sys/types.h" 3 4 typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); typedef int register_t __attribute__ ((__mode__ (__word__))); # 216 "/usr/include/sys/types.h" 3 4 # 1 "/usr/include/endian.h" 1 3 4 # 36 "/usr/include/endian.h" 3 4 # 1 "/usr/include/bits/endian.h" 1 3 4 # 37 "/usr/include/endian.h" 2 3 4 # 60 "/usr/include/endian.h" 3 4 # 1 "/usr/include/bits/byteswap.h" 1 3 4 # 28 "/usr/include/bits/byteswap.h" 3 4 # 1 "/usr/include/bits/wordsize.h" 1 3 4 # 29 "/usr/include/bits/byteswap.h" 2 3 4 # 1 "/usr/include/bits/byteswap-16.h" 1 3 4 # 36 "/usr/include/bits/byteswap.h" 2 3 4 # 44 "/usr/include/bits/byteswap.h" 3 4 static __inline unsigned int __bswap_32 (unsigned int __bsx) { return __builtin_bswap32 (__bsx); } # 108 "/usr/include/bits/byteswap.h" 3 4 static __inline __uint64_t __bswap_64 (__uint64_t __bsx) { return __builtin_bswap64 (__bsx); } # 61 "/usr/include/endian.h" 2 3 4 # 217 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/select.h" 1 3 4 # 30 "/usr/include/sys/select.h" 3 4 # 1 "/usr/include/bits/select.h" 1 3 4 # 22 "/usr/include/bits/select.h" 3 4 # 1 "/usr/include/bits/wordsize.h" 1 3 4 # 23 "/usr/include/bits/select.h" 2 3 4 # 31 "/usr/include/sys/select.h" 2 3 4 # 1 "/usr/include/bits/sigset.h" 1 3 4 # 22 "/usr/include/bits/sigset.h" 3 4 typedef int __sig_atomic_t; typedef struct { unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; } __sigset_t; # 34 "/usr/include/sys/select.h" 2 3 4 typedef __sigset_t sigset_t; # 1 "/usr/include/time.h" 1 3 4 # 120 "/usr/include/time.h" 3 4 struct timespec { __time_t tv_sec; __syscall_slong_t tv_nsec; }; # 44 "/usr/include/sys/select.h" 2 3 4 # 1 "/usr/include/bits/time.h" 1 3 4 # 30 "/usr/include/bits/time.h" 3 4 struct timeval { __time_t tv_sec; __suseconds_t tv_usec; }; # 46 "/usr/include/sys/select.h" 2 3 4 # 54 "/usr/include/sys/select.h" 3 4 typedef long int __fd_mask; # 64 "/usr/include/sys/select.h" 3 4 typedef struct { __fd_mask fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; } fd_set; typedef __fd_mask fd_mask; # 96 "/usr/include/sys/select.h" 3 4 extern "C" { # 106 "/usr/include/sys/select.h" 3 4 extern int select (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, struct timeval *__restrict __timeout); # 118 "/usr/include/sys/select.h" 3 4 extern int pselect (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, const struct timespec *__restrict __timeout, const __sigset_t *__restrict __sigmask); # 1 "/usr/include/bits/select2.h" 1 3 4 # 24 "/usr/include/bits/select2.h" 3 4 extern long int __fdelt_chk (long int __d); extern long int __fdelt_warn (long int __d) __attribute__((__warning__ ("bit outside of fd_set selected"))); # 129 "/usr/include/sys/select.h" 2 3 4 } # 220 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/sysmacros.h" 1 3 4 # 24 "/usr/include/sys/sysmacros.h" 3 4 extern "C" { __extension__ extern unsigned int gnu_dev_major (unsigned long long int __dev) throw () __attribute__ ((__const__)); __extension__ extern unsigned int gnu_dev_minor (unsigned long long int __dev) throw () __attribute__ ((__const__)); __extension__ extern unsigned long long int gnu_dev_makedev (unsigned int __major, unsigned int __minor) throw () __attribute__ ((__const__)); __extension__ extern __inline __attribute__ ((__gnu_inline__)) __attribute__ ((__const__)) unsigned int __attribute__ ((__leaf__)) gnu_dev_major (unsigned long long int __dev) throw () { return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff); } __extension__ extern __inline __attribute__ ((__gnu_inline__)) __attribute__ ((__const__)) unsigned int __attribute__ ((__leaf__)) gnu_dev_minor (unsigned long long int __dev) throw () { return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff); } __extension__ extern __inline __attribute__ ((__gnu_inline__)) __attribute__ ((__const__)) unsigned long long int __attribute__ ((__leaf__)) gnu_dev_makedev (unsigned int __major, unsigned int __minor) throw () { return ((__minor & 0xff) | ((__major & 0xfff) << 8) | (((unsigned long long int) (__minor & ~0xff)) << 12) | (((unsigned long long int) (__major & ~0xfff)) << 32)); } } # 223 "/usr/include/sys/types.h" 2 3 4 typedef __blksize_t blksize_t; typedef __blkcnt_t blkcnt_t; typedef __fsblkcnt_t fsblkcnt_t; typedef __fsfilcnt_t fsfilcnt_t; # 262 "/usr/include/sys/types.h" 3 4 typedef __blkcnt64_t blkcnt64_t; typedef __fsblkcnt64_t fsblkcnt64_t; typedef __fsfilcnt64_t fsfilcnt64_t; # 1 "/usr/include/bits/pthreadtypes.h" 1 3 4 # 21 "/usr/include/bits/pthreadtypes.h" 3 4 # 1 "/usr/include/bits/wordsize.h" 1 3 4 # 22 "/usr/include/bits/pthreadtypes.h" 2 3 4 # 60 "/usr/include/bits/pthreadtypes.h" 3 4 typedef unsigned long int pthread_t; union pthread_attr_t { char __size[56]; long int __align; }; typedef union pthread_attr_t pthread_attr_t; typedef struct __pthread_internal_list { struct __pthread_internal_list *__prev; struct __pthread_internal_list *__next; } __pthread_list_t; # 90 "/usr/include/bits/pthreadtypes.h" 3 4 typedef union { struct __pthread_mutex_s { int __lock; unsigned int __count; int __owner; unsigned int __nusers; int __kind; short __spins; short __elision; __pthread_list_t __list; # 125 "/usr/include/bits/pthreadtypes.h" 3 4 } __data; char __size[40]; long int __align; } pthread_mutex_t; typedef union { char __size[4]; int __align; } pthread_mutexattr_t; typedef union { struct { int __lock; unsigned int __futex; __extension__ unsigned long long int __total_seq; __extension__ unsigned long long int __wakeup_seq; __extension__ unsigned long long int __woken_seq; void *__mutex; unsigned int __nwaiters; unsigned int __broadcast_seq; } __data; char __size[48]; __extension__ long long int __align; } pthread_cond_t; typedef union { char __size[4]; int __align; } pthread_condattr_t; typedef unsigned int pthread_key_t; typedef int pthread_once_t; typedef union { struct { int __lock; unsigned int __nr_readers; unsigned int __readers_wakeup; unsigned int __writer_wakeup; unsigned int __nr_readers_queued; unsigned int __nr_writers_queued; int __writer; int __shared; signed char __rwelision; unsigned char __pad1[7]; unsigned long int __pad2; unsigned int __flags; } __data; # 220 "/usr/include/bits/pthreadtypes.h" 3 4 char __size[56]; long int __align; } pthread_rwlock_t; typedef union { char __size[8]; long int __align; } pthread_rwlockattr_t; typedef volatile int pthread_spinlock_t; typedef union { char __size[32]; long int __align; } pthread_barrier_t; typedef union { char __size[4]; int __align; } pthread_barrierattr_t; # 271 "/usr/include/sys/types.h" 2 3 4 } # 24 "/usr/include/sys/uio.h" 2 3 4 extern "C" { # 1 "/usr/include/bits/uio.h" 1 3 4 # 43 "/usr/include/bits/uio.h" 3 4 struct iovec { void *iov_base; size_t iov_len; }; # 56 "/usr/include/bits/uio.h" 3 4 extern "C" { extern ssize_t process_vm_readv (pid_t __pid, const struct iovec *__lvec, unsigned long int __liovcnt, const struct iovec *__rvec, unsigned long int __riovcnt, unsigned long int __flags) throw (); extern ssize_t process_vm_writev (pid_t __pid, const struct iovec *__lvec, unsigned long int __liovcnt, const struct iovec *__rvec, unsigned long int __riovcnt, unsigned long int __flags) throw (); } # 29 "/usr/include/sys/uio.h" 2 3 4 # 39 "/usr/include/sys/uio.h" 3 4 extern ssize_t readv (int __fd, const struct iovec *__iovec, int __count) __attribute__ ((__warn_unused_result__)); # 50 "/usr/include/sys/uio.h" 3 4 extern ssize_t writev (int __fd, const struct iovec *__iovec, int __count) __attribute__ ((__warn_unused_result__)); # 65 "/usr/include/sys/uio.h" 3 4 extern ssize_t preadv (int __fd, const struct iovec *__iovec, int __count, __off_t __offset) __attribute__ ((__warn_unused_result__)); # 77 "/usr/include/sys/uio.h" 3 4 extern ssize_t pwritev (int __fd, const struct iovec *__iovec, int __count, __off_t __offset) __attribute__ ((__warn_unused_result__)); # 103 "/usr/include/sys/uio.h" 3 4 extern ssize_t preadv64 (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset) __attribute__ ((__warn_unused_result__)); # 115 "/usr/include/sys/uio.h" 3 4 extern ssize_t pwritev64 (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset) __attribute__ ((__warn_unused_result__)); } # 27 "/usr/include/sys/socket.h" 2 3 4 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stddef.h" 1 3 4 # 29 "/usr/include/sys/socket.h" 2 3 4 # 1 "/usr/include/bits/sigset.h" 1 3 4 # 32 "/usr/include/sys/socket.h" 2 3 4 # 1 "/usr/include/bits/socket.h" 1 3 4 # 27 "/usr/include/bits/socket.h" 3 4 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stddef.h" 1 3 4 # 28 "/usr/include/bits/socket.h" 2 3 4 typedef __socklen_t socklen_t; # 1 "/usr/include/bits/socket_type.h" 1 3 4 # 24 "/usr/include/bits/socket_type.h" 3 4 enum __socket_type { SOCK_STREAM = 1, SOCK_DGRAM = 2, SOCK_RAW = 3, SOCK_RDM = 4, SOCK_SEQPACKET = 5, SOCK_DCCP = 6, SOCK_PACKET = 10, SOCK_CLOEXEC = 02000000, SOCK_NONBLOCK = 00004000 }; # 39 "/usr/include/bits/socket.h" 2 3 4 # 146 "/usr/include/bits/socket.h" 3 4 # 1 "/usr/include/bits/sockaddr.h" 1 3 4 # 28 "/usr/include/bits/sockaddr.h" 3 4 typedef unsigned short int sa_family_t; # 147 "/usr/include/bits/socket.h" 2 3 4 struct sockaddr { sa_family_t sa_family; char sa_data[14]; }; # 162 "/usr/include/bits/socket.h" 3 4 struct sockaddr_storage { sa_family_t ss_family; unsigned long int __ss_align; char __ss_padding[(128 - (2 * sizeof (unsigned long int)))]; }; enum { MSG_OOB = 0x01, MSG_PEEK = 0x02, MSG_DONTROUTE = 0x04, MSG_TRYHARD = MSG_DONTROUTE, MSG_CTRUNC = 0x08, MSG_PROXY = 0x10, MSG_TRUNC = 0x20, MSG_DONTWAIT = 0x40, MSG_EOR = 0x80, MSG_WAITALL = 0x100, MSG_FIN = 0x200, MSG_SYN = 0x400, MSG_CONFIRM = 0x800, MSG_RST = 0x1000, MSG_ERRQUEUE = 0x2000, MSG_NOSIGNAL = 0x4000, MSG_MORE = 0x8000, MSG_WAITFORONE = 0x10000, MSG_FASTOPEN = 0x20000000, MSG_CMSG_CLOEXEC = 0x40000000 }; struct msghdr { void *msg_name; socklen_t msg_namelen; struct iovec *msg_iov; size_t msg_iovlen; void *msg_control; size_t msg_controllen; int msg_flags; }; struct cmsghdr { size_t cmsg_len; int cmsg_level; int cmsg_type; __extension__ unsigned char __cmsg_data []; }; # 272 "/usr/include/bits/socket.h" 3 4 extern struct cmsghdr *__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg) throw (); extern __inline __attribute__ ((__gnu_inline__)) struct cmsghdr * __attribute__ ((__leaf__)) __cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg) throw () { if ((size_t) __cmsg->cmsg_len < sizeof (struct cmsghdr)) return (struct cmsghdr *) 0; __cmsg = (struct cmsghdr *) ((unsigned char *) __cmsg + (((__cmsg->cmsg_len) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1))); if ((unsigned char *) (__cmsg + 1) > ((unsigned char *) __mhdr->msg_control + __mhdr->msg_controllen) || ((unsigned char *) __cmsg + (((__cmsg->cmsg_len) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) > ((unsigned char *) __mhdr->msg_control + __mhdr->msg_controllen))) return (struct cmsghdr *) 0; return __cmsg; } enum { SCM_RIGHTS = 0x01 , SCM_CREDENTIALS = 0x02 }; struct ucred { pid_t pid; uid_t uid; gid_t gid; }; # 345 "/usr/include/bits/socket.h" 3 4 # 1 "/usr/include/asm/socket.h" 1 3 4 # 1 "/usr/include/asm-generic/socket.h" 1 3 4 # 1 "/usr/include/asm/sockios.h" 1 3 4 # 1 "/usr/include/asm-generic/sockios.h" 1 3 4 # 1 "/usr/include/asm/sockios.h" 2 3 4 # 5 "/usr/include/asm-generic/socket.h" 2 3 4 # 1 "/usr/include/asm/socket.h" 2 3 4 # 346 "/usr/include/bits/socket.h" 2 3 4 # 379 "/usr/include/bits/socket.h" 3 4 struct linger { int l_onoff; int l_linger; }; # 39 "/usr/include/sys/socket.h" 2 3 4 struct osockaddr { unsigned short int sa_family; unsigned char sa_data[14]; }; enum { SHUT_RD = 0, SHUT_WR, SHUT_RDWR }; # 101 "/usr/include/sys/socket.h" 3 4 struct mmsghdr { struct msghdr msg_hdr; unsigned int msg_len; }; extern int socket (int __domain, int __type, int __protocol) throw (); extern int socketpair (int __domain, int __type, int __protocol, int __fds[2]) throw (); extern int bind (int __fd, const struct sockaddr * __addr, socklen_t __len) throw (); extern int getsockname (int __fd, struct sockaddr *__restrict __addr, socklen_t *__restrict __len) throw (); # 137 "/usr/include/sys/socket.h" 3 4 extern int connect (int __fd, const struct sockaddr * __addr, socklen_t __len); extern int getpeername (int __fd, struct sockaddr *__restrict __addr, socklen_t *__restrict __len) throw (); extern ssize_t send (int __fd, const void *__buf, size_t __n, int __flags); extern ssize_t recv (int __fd, void *__buf, size_t __n, int __flags); extern ssize_t sendto (int __fd, const void *__buf, size_t __n, int __flags, const struct sockaddr * __addr, socklen_t __addr_len); # 174 "/usr/include/sys/socket.h" 3 4 extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n, int __flags, struct sockaddr *__restrict __addr, socklen_t *__restrict __addr_len); extern ssize_t sendmsg (int __fd, const struct msghdr *__message, int __flags); extern int sendmmsg (int __fd, struct mmsghdr *__vmessages, unsigned int __vlen, int __flags); extern ssize_t recvmsg (int __fd, struct msghdr *__message, int __flags); extern int recvmmsg (int __fd, struct mmsghdr *__vmessages, unsigned int __vlen, int __flags, struct timespec *__tmo); extern int getsockopt (int __fd, int __level, int __optname, void *__restrict __optval, socklen_t *__restrict __optlen) throw (); extern int setsockopt (int __fd, int __level, int __optname, const void *__optval, socklen_t __optlen) throw (); extern int listen (int __fd, int __n) throw (); # 243 "/usr/include/sys/socket.h" 3 4 extern int accept (int __fd, struct sockaddr *__restrict __addr, socklen_t *__restrict __addr_len); extern int accept4 (int __fd, struct sockaddr *__restrict __addr, socklen_t *__restrict __addr_len, int __flags); # 261 "/usr/include/sys/socket.h" 3 4 extern int shutdown (int __fd, int __how) throw (); extern int sockatmark (int __fd) throw (); extern int isfdtype (int __fd, int __fdtype) throw (); # 1 "/usr/include/bits/socket2.h" 1 3 4 # 23 "/usr/include/bits/socket2.h" 3 4 extern ssize_t __recv_chk (int __fd, void *__buf, size_t __n, size_t __buflen, int __flags); extern ssize_t __recv_alias (int __fd, void *__buf, size_t __n, int __flags) __asm__ ("" "recv") ; extern ssize_t __recv_chk_warn (int __fd, void *__buf, size_t __n, size_t __buflen, int __flags) __asm__ ("" "__recv_chk") __attribute__((__warning__ ("recv called with bigger length than size of destination " "buffer"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) ssize_t recv (int __fd, void *__buf, size_t __n, int __flags) { if (__builtin_object_size (__buf, 0) != (size_t) -1) { if (!__builtin_constant_p (__n)) return __recv_chk (__fd, __buf, __n, __builtin_object_size (__buf, 0), __flags); if (__n > __builtin_object_size (__buf, 0)) return __recv_chk_warn (__fd, __buf, __n, __builtin_object_size (__buf, 0), __flags); } return __recv_alias (__fd, __buf, __n, __flags); } extern ssize_t __recvfrom_chk (int __fd, void *__restrict __buf, size_t __n, size_t __buflen, int __flags, struct sockaddr *__restrict __addr, socklen_t *__restrict __addr_len); extern ssize_t __recvfrom_alias (int __fd, void *__restrict __buf, size_t __n, int __flags, struct sockaddr *__restrict __addr, socklen_t *__restrict __addr_len) __asm__ ("" "recvfrom") ; extern ssize_t __recvfrom_chk_warn (int __fd, void *__restrict __buf, size_t __n, size_t __buflen, int __flags, struct sockaddr *__restrict __addr, socklen_t *__restrict __addr_len) __asm__ ("" "__recvfrom_chk") __attribute__((__warning__ ("recvfrom called with bigger length than size of " "destination buffer"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n, int __flags, struct sockaddr *__restrict __addr, socklen_t *__restrict __addr_len) { if (__builtin_object_size (__buf, 0) != (size_t) -1) { if (!__builtin_constant_p (__n)) return __recvfrom_chk (__fd, __buf, __n, __builtin_object_size (__buf, 0), __flags, __addr, __addr_len); if (__n > __builtin_object_size (__buf, 0)) return __recvfrom_chk_warn (__fd, __buf, __n, __builtin_object_size (__buf, 0), __flags, __addr, __addr_len); } return __recvfrom_alias (__fd, __buf, __n, __flags, __addr, __addr_len); } # 281 "/usr/include/sys/socket.h" 2 3 4 } # 24 "/usr/include/netinet/in.h" 2 3 4 extern "C" { typedef uint32_t in_addr_t; struct in_addr { in_addr_t s_addr; }; # 1 "/usr/include/bits/in.h" 1 3 4 # 138 "/usr/include/bits/in.h" 3 4 struct ip_opts { struct in_addr ip_dst; char ip_opts[40]; }; struct ip_mreqn { struct in_addr imr_multiaddr; struct in_addr imr_address; int imr_ifindex; }; struct in_pktinfo { int ipi_ifindex; struct in_addr ipi_spec_dst; struct in_addr ipi_addr; }; # 38 "/usr/include/netinet/in.h" 2 3 4 enum { IPPROTO_IP = 0, IPPROTO_ICMP = 1, IPPROTO_IGMP = 2, IPPROTO_IPIP = 4, IPPROTO_TCP = 6, IPPROTO_EGP = 8, IPPROTO_PUP = 12, IPPROTO_UDP = 17, IPPROTO_IDP = 22, IPPROTO_TP = 29, IPPROTO_DCCP = 33, IPPROTO_IPV6 = 41, IPPROTO_RSVP = 46, IPPROTO_GRE = 47, IPPROTO_ESP = 50, IPPROTO_AH = 51, IPPROTO_MTP = 92, IPPROTO_BEETPH = 94, IPPROTO_ENCAP = 98, IPPROTO_PIM = 103, IPPROTO_COMP = 108, IPPROTO_SCTP = 132, IPPROTO_UDPLITE = 136, IPPROTO_RAW = 255, IPPROTO_MAX }; enum { IPPROTO_HOPOPTS = 0, IPPROTO_ROUTING = 43, IPPROTO_FRAGMENT = 44, IPPROTO_ICMPV6 = 58, IPPROTO_NONE = 59, IPPROTO_DSTOPTS = 60, IPPROTO_MH = 135 }; typedef uint16_t in_port_t; enum { IPPORT_ECHO = 7, IPPORT_DISCARD = 9, IPPORT_SYSTAT = 11, IPPORT_DAYTIME = 13, IPPORT_NETSTAT = 15, IPPORT_FTP = 21, IPPORT_TELNET = 23, IPPORT_SMTP = 25, IPPORT_TIMESERVER = 37, IPPORT_NAMESERVER = 42, IPPORT_WHOIS = 43, IPPORT_MTP = 57, IPPORT_TFTP = 69, IPPORT_RJE = 77, IPPORT_FINGER = 79, IPPORT_TTYLINK = 87, IPPORT_SUPDUP = 95, IPPORT_EXECSERVER = 512, IPPORT_LOGINSERVER = 513, IPPORT_CMDSERVER = 514, IPPORT_EFSSERVER = 520, IPPORT_BIFFUDP = 512, IPPORT_WHOSERVER = 513, IPPORT_ROUTESERVER = 520, IPPORT_RESERVED = 1024, IPPORT_USERRESERVED = 5000 }; # 209 "/usr/include/netinet/in.h" 3 4 struct in6_addr { union { uint8_t __u6_addr8[16]; uint16_t __u6_addr16[8]; uint32_t __u6_addr32[4]; } __in6_u; }; extern const struct in6_addr in6addr_any; extern const struct in6_addr in6addr_loopback; # 237 "/usr/include/netinet/in.h" 3 4 struct sockaddr_in { sa_family_t sin_family; in_port_t sin_port; struct in_addr sin_addr; unsigned char sin_zero[sizeof (struct sockaddr) - (sizeof (unsigned short int)) - sizeof (in_port_t) - sizeof (struct in_addr)]; }; struct sockaddr_in6 { sa_family_t sin6_family; in_port_t sin6_port; uint32_t sin6_flowinfo; struct in6_addr sin6_addr; uint32_t sin6_scope_id; }; struct ip_mreq { struct in_addr imr_multiaddr; struct in_addr imr_interface; }; struct ip_mreq_source { struct in_addr imr_multiaddr; struct in_addr imr_interface; struct in_addr imr_sourceaddr; }; struct ipv6_mreq { struct in6_addr ipv6mr_multiaddr; unsigned int ipv6mr_interface; }; struct group_req { uint32_t gr_interface; struct sockaddr_storage gr_group; }; struct group_source_req { uint32_t gsr_interface; struct sockaddr_storage gsr_group; struct sockaddr_storage gsr_source; }; struct ip_msfilter { struct in_addr imsf_multiaddr; struct in_addr imsf_interface; uint32_t imsf_fmode; uint32_t imsf_numsrc; struct in_addr imsf_slist[1]; }; struct group_filter { uint32_t gf_interface; struct sockaddr_storage gf_group; uint32_t gf_fmode; uint32_t gf_numsrc; struct sockaddr_storage gf_slist[1]; }; # 374 "/usr/include/netinet/in.h" 3 4 extern uint32_t ntohl (uint32_t __netlong) throw () __attribute__ ((__const__)); extern uint16_t ntohs (uint16_t __netshort) throw () __attribute__ ((__const__)); extern uint32_t htonl (uint32_t __hostlong) throw () __attribute__ ((__const__)); extern uint16_t htons (uint16_t __hostshort) throw () __attribute__ ((__const__)); # 1 "/usr/include/bits/byteswap.h" 1 3 4 # 386 "/usr/include/netinet/in.h" 2 3 4 # 501 "/usr/include/netinet/in.h" 3 4 extern int bindresvport (int __sockfd, struct sockaddr_in *__sock_in) throw (); extern int bindresvport6 (int __sockfd, struct sockaddr_in6 *__sock_in) throw (); # 531 "/usr/include/netinet/in.h" 3 4 struct cmsghdr; struct in6_pktinfo { struct in6_addr ipi6_addr; unsigned int ipi6_ifindex; }; struct ip6_mtuinfo { struct sockaddr_in6 ip6m_addr; uint32_t ip6m_mtu; }; extern int inet6_option_space (int __nbytes) throw () __attribute__ ((__deprecated__)); extern int inet6_option_init (void *__bp, struct cmsghdr **__cmsgp, int __type) throw () __attribute__ ((__deprecated__)); extern int inet6_option_append (struct cmsghdr *__cmsg, const uint8_t *__typep, int __multx, int __plusy) throw () __attribute__ ((__deprecated__)); extern uint8_t *inet6_option_alloc (struct cmsghdr *__cmsg, int __datalen, int __multx, int __plusy) throw () __attribute__ ((__deprecated__)); extern int inet6_option_next (const struct cmsghdr *__cmsg, uint8_t **__tptrp) throw () __attribute__ ((__deprecated__)); extern int inet6_option_find (const struct cmsghdr *__cmsg, uint8_t **__tptrp, int __type) throw () __attribute__ ((__deprecated__)); extern int inet6_opt_init (void *__extbuf, socklen_t __extlen) throw (); extern int inet6_opt_append (void *__extbuf, socklen_t __extlen, int __offset, uint8_t __type, socklen_t __len, uint8_t __align, void **__databufp) throw (); extern int inet6_opt_finish (void *__extbuf, socklen_t __extlen, int __offset) throw (); extern int inet6_opt_set_val (void *__databuf, int __offset, void *__val, socklen_t __vallen) throw (); extern int inet6_opt_next (void *__extbuf, socklen_t __extlen, int __offset, uint8_t *__typep, socklen_t *__lenp, void **__databufp) throw (); extern int inet6_opt_find (void *__extbuf, socklen_t __extlen, int __offset, uint8_t __type, socklen_t *__lenp, void **__databufp) throw (); extern int inet6_opt_get_val (void *__databuf, int __offset, void *__val, socklen_t __vallen) throw (); extern socklen_t inet6_rth_space (int __type, int __segments) throw (); extern void *inet6_rth_init (void *__bp, socklen_t __bp_len, int __type, int __segments) throw (); extern int inet6_rth_add (void *__bp, const struct in6_addr *__addr) throw (); extern int inet6_rth_reverse (const void *__in, void *__out) throw (); extern int inet6_rth_segments (const void *__bp) throw (); extern struct in6_addr *inet6_rth_getaddr (const void *__bp, int __index) throw (); extern int getipv4sourcefilter (int __s, struct in_addr __interface_addr, struct in_addr __group, uint32_t *__fmode, uint32_t *__numsrc, struct in_addr *__slist) throw (); extern int setipv4sourcefilter (int __s, struct in_addr __interface_addr, struct in_addr __group, uint32_t __fmode, uint32_t __numsrc, const struct in_addr *__slist) throw (); extern int getsourcefilter (int __s, uint32_t __interface_addr, const struct sockaddr *__group, socklen_t __grouplen, uint32_t *__fmode, uint32_t *__numsrc, struct sockaddr_storage *__slist) throw (); extern int setsourcefilter (int __s, uint32_t __interface_addr, const struct sockaddr *__group, socklen_t __grouplen, uint32_t __fmode, uint32_t __numsrc, const struct sockaddr_storage *__slist) throw (); } # 28 "/usr/include/netdb.h" 2 3 4 # 1 "/usr/include/rpc/netdb.h" 1 3 4 # 42 "/usr/include/rpc/netdb.h" 3 4 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stddef.h" 1 3 4 # 43 "/usr/include/rpc/netdb.h" 2 3 4 extern "C" { struct rpcent { char *r_name; char **r_aliases; int r_number; }; extern void setrpcent (int __stayopen) throw (); extern void endrpcent (void) throw (); extern struct rpcent *getrpcbyname (const char *__name) throw (); extern struct rpcent *getrpcbynumber (int __number) throw (); extern struct rpcent *getrpcent (void) throw (); extern int getrpcbyname_r (const char *__name, struct rpcent *__result_buf, char *__buffer, size_t __buflen, struct rpcent **__result) throw (); extern int getrpcbynumber_r (int __number, struct rpcent *__result_buf, char *__buffer, size_t __buflen, struct rpcent **__result) throw (); extern int getrpcent_r (struct rpcent *__result_buf, char *__buffer, size_t __buflen, struct rpcent **__result) throw (); } # 33 "/usr/include/netdb.h" 2 3 4 # 1 "/usr/include/bits/siginfo.h" 1 3 4 # 24 "/usr/include/bits/siginfo.h" 3 4 # 1 "/usr/include/bits/wordsize.h" 1 3 4 # 25 "/usr/include/bits/siginfo.h" 2 3 4 typedef union sigval { int sival_int; void *sival_ptr; } sigval_t; # 313 "/usr/include/bits/siginfo.h" 3 4 typedef struct sigevent { sigval_t sigev_value; int sigev_signo; int sigev_notify; union { int _pad[((64 / sizeof (int)) - 4)]; __pid_t _tid; struct { void (*_function) (sigval_t); pthread_attr_t *_attribute; } _sigev_thread; } _sigev_un; } sigevent_t; enum { SIGEV_SIGNAL = 0, SIGEV_NONE, SIGEV_THREAD, SIGEV_THREAD_ID = 4 }; # 38 "/usr/include/netdb.h" 2 3 4 # 1 "/usr/include/time.h" 1 3 4 # 40 "/usr/include/netdb.h" 2 3 4 # 1 "/usr/include/bits/netdb.h" 1 3 4 # 26 "/usr/include/bits/netdb.h" 3 4 struct netent { char *n_name; char **n_aliases; int n_addrtype; uint32_t n_net; }; # 43 "/usr/include/netdb.h" 2 3 4 # 53 "/usr/include/netdb.h" 3 4 extern "C" { extern int *__h_errno_location (void) throw () __attribute__ ((__const__)); # 92 "/usr/include/netdb.h" 3 4 extern void herror (const char *__str) throw (); extern const char *hstrerror (int __err_num) throw (); struct hostent { char *h_name; char **h_aliases; int h_addrtype; int h_length; char **h_addr_list; }; extern void sethostent (int __stay_open); extern void endhostent (void); extern struct hostent *gethostent (void); extern struct hostent *gethostbyaddr (const void *__addr, __socklen_t __len, int __type); extern struct hostent *gethostbyname (const char *__name); # 155 "/usr/include/netdb.h" 3 4 extern struct hostent *gethostbyname2 (const char *__name, int __af); # 167 "/usr/include/netdb.h" 3 4 extern int gethostent_r (struct hostent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct hostent **__restrict __result, int *__restrict __h_errnop); extern int gethostbyaddr_r (const void *__restrict __addr, __socklen_t __len, int __type, struct hostent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct hostent **__restrict __result, int *__restrict __h_errnop); extern int gethostbyname_r (const char *__restrict __name, struct hostent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct hostent **__restrict __result, int *__restrict __h_errnop); extern int gethostbyname2_r (const char *__restrict __name, int __af, struct hostent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct hostent **__restrict __result, int *__restrict __h_errnop); # 198 "/usr/include/netdb.h" 3 4 extern void setnetent (int __stay_open); extern void endnetent (void); extern struct netent *getnetent (void); extern struct netent *getnetbyaddr (uint32_t __net, int __type); extern struct netent *getnetbyname (const char *__name); # 237 "/usr/include/netdb.h" 3 4 extern int getnetent_r (struct netent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct netent **__restrict __result, int *__restrict __h_errnop); extern int getnetbyaddr_r (uint32_t __net, int __type, struct netent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct netent **__restrict __result, int *__restrict __h_errnop); extern int getnetbyname_r (const char *__restrict __name, struct netent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct netent **__restrict __result, int *__restrict __h_errnop); struct servent { char *s_name; char **s_aliases; int s_port; char *s_proto; }; extern void setservent (int __stay_open); extern void endservent (void); extern struct servent *getservent (void); extern struct servent *getservbyname (const char *__name, const char *__proto); extern struct servent *getservbyport (int __port, const char *__proto); # 308 "/usr/include/netdb.h" 3 4 extern int getservent_r (struct servent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct servent **__restrict __result); extern int getservbyname_r (const char *__restrict __name, const char *__restrict __proto, struct servent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct servent **__restrict __result); extern int getservbyport_r (int __port, const char *__restrict __proto, struct servent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct servent **__restrict __result); struct protoent { char *p_name; char **p_aliases; int p_proto; }; extern void setprotoent (int __stay_open); extern void endprotoent (void); extern struct protoent *getprotoent (void); extern struct protoent *getprotobyname (const char *__name); extern struct protoent *getprotobynumber (int __proto); # 374 "/usr/include/netdb.h" 3 4 extern int getprotoent_r (struct protoent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct protoent **__restrict __result); extern int getprotobyname_r (const char *__restrict __name, struct protoent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct protoent **__restrict __result); extern int getprotobynumber_r (int __proto, struct protoent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct protoent **__restrict __result); # 395 "/usr/include/netdb.h" 3 4 extern int setnetgrent (const char *__netgroup); extern void endnetgrent (void); # 412 "/usr/include/netdb.h" 3 4 extern int getnetgrent (char **__restrict __hostp, char **__restrict __userp, char **__restrict __domainp); # 423 "/usr/include/netdb.h" 3 4 extern int innetgr (const char *__netgroup, const char *__host, const char *__user, const char *__domain); extern int getnetgrent_r (char **__restrict __hostp, char **__restrict __userp, char **__restrict __domainp, char *__restrict __buffer, size_t __buflen); # 451 "/usr/include/netdb.h" 3 4 extern int rcmd (char **__restrict __ahost, unsigned short int __rport, const char *__restrict __locuser, const char *__restrict __remuser, const char *__restrict __cmd, int *__restrict __fd2p); # 463 "/usr/include/netdb.h" 3 4 extern int rcmd_af (char **__restrict __ahost, unsigned short int __rport, const char *__restrict __locuser, const char *__restrict __remuser, const char *__restrict __cmd, int *__restrict __fd2p, sa_family_t __af); # 479 "/usr/include/netdb.h" 3 4 extern int rexec (char **__restrict __ahost, int __rport, const char *__restrict __name, const char *__restrict __pass, const char *__restrict __cmd, int *__restrict __fd2p); # 491 "/usr/include/netdb.h" 3 4 extern int rexec_af (char **__restrict __ahost, int __rport, const char *__restrict __name, const char *__restrict __pass, const char *__restrict __cmd, int *__restrict __fd2p, sa_family_t __af); # 505 "/usr/include/netdb.h" 3 4 extern int ruserok (const char *__rhost, int __suser, const char *__remuser, const char *__locuser); # 515 "/usr/include/netdb.h" 3 4 extern int ruserok_af (const char *__rhost, int __suser, const char *__remuser, const char *__locuser, sa_family_t __af); # 528 "/usr/include/netdb.h" 3 4 extern int iruserok (uint32_t __raddr, int __suser, const char *__remuser, const char *__locuser); # 539 "/usr/include/netdb.h" 3 4 extern int iruserok_af (const void *__raddr, int __suser, const char *__remuser, const char *__locuser, sa_family_t __af); # 551 "/usr/include/netdb.h" 3 4 extern int rresvport (int *__alport); # 560 "/usr/include/netdb.h" 3 4 extern int rresvport_af (int *__alport, sa_family_t __af); struct addrinfo { int ai_flags; int ai_family; int ai_socktype; int ai_protocol; socklen_t ai_addrlen; struct sockaddr *ai_addr; char *ai_canonname; struct addrinfo *ai_next; }; struct gaicb { const char *ar_name; const char *ar_service; const struct addrinfo *ar_request; struct addrinfo *ar_result; int __return; int __glibc_reserved[5]; }; # 662 "/usr/include/netdb.h" 3 4 extern int getaddrinfo (const char *__restrict __name, const char *__restrict __service, const struct addrinfo *__restrict __req, struct addrinfo **__restrict __pai); extern void freeaddrinfo (struct addrinfo *__ai) throw (); extern const char *gai_strerror (int __ecode) throw (); extern int getnameinfo (const struct sockaddr *__restrict __sa, socklen_t __salen, char *__restrict __host, socklen_t __hostlen, char *__restrict __serv, socklen_t __servlen, int __flags); # 692 "/usr/include/netdb.h" 3 4 extern int getaddrinfo_a (int __mode, struct gaicb *__list[], int __ent, struct sigevent *__restrict __sig); # 703 "/usr/include/netdb.h" 3 4 extern int gai_suspend (const struct gaicb *const __list[], int __ent, const struct timespec *__timeout); extern int gai_error (struct gaicb *__req) throw (); extern int gai_cancel (struct gaicb *__gaicbp) throw (); } # 24 "pdns_recursor.cc" 2 # 1 "/usr/include/sys/stat.h" 1 3 4 # 36 "/usr/include/sys/stat.h" 3 4 # 1 "/usr/include/time.h" 1 3 4 # 37 "/usr/include/sys/stat.h" 2 3 4 # 102 "/usr/include/sys/stat.h" 3 4 extern "C" { # 1 "/usr/include/bits/stat.h" 1 3 4 # 46 "/usr/include/bits/stat.h" 3 4 struct stat { __dev_t st_dev; __ino_t st_ino; __nlink_t st_nlink; __mode_t st_mode; __uid_t st_uid; __gid_t st_gid; int __pad0; __dev_t st_rdev; __off_t st_size; __blksize_t st_blksize; __blkcnt_t st_blocks; # 91 "/usr/include/bits/stat.h" 3 4 struct timespec st_atim; struct timespec st_mtim; struct timespec st_ctim; # 106 "/usr/include/bits/stat.h" 3 4 __syscall_slong_t __glibc_reserved[3]; # 115 "/usr/include/bits/stat.h" 3 4 }; struct stat64 { __dev_t st_dev; __ino64_t st_ino; __nlink_t st_nlink; __mode_t st_mode; __uid_t st_uid; __gid_t st_gid; int __pad0; __dev_t st_rdev; __off_t st_size; __blksize_t st_blksize; __blkcnt64_t st_blocks; struct timespec st_atim; struct timespec st_mtim; struct timespec st_ctim; # 164 "/usr/include/bits/stat.h" 3 4 __syscall_slong_t __glibc_reserved[3]; }; # 105 "/usr/include/sys/stat.h" 2 3 4 # 208 "/usr/include/sys/stat.h" 3 4 extern int stat (const char *__restrict __file, struct stat *__restrict __buf) throw () __attribute__ ((__nonnull__ (1, 2))); extern int fstat (int __fd, struct stat *__buf) throw () __attribute__ ((__nonnull__ (2))); # 227 "/usr/include/sys/stat.h" 3 4 extern int stat64 (const char *__restrict __file, struct stat64 *__restrict __buf) throw () __attribute__ ((__nonnull__ (1, 2))); extern int fstat64 (int __fd, struct stat64 *__buf) throw () __attribute__ ((__nonnull__ (2))); extern int fstatat (int __fd, const char *__restrict __file, struct stat *__restrict __buf, int __flag) throw () __attribute__ ((__nonnull__ (2, 3))); # 252 "/usr/include/sys/stat.h" 3 4 extern int fstatat64 (int __fd, const char *__restrict __file, struct stat64 *__restrict __buf, int __flag) throw () __attribute__ ((__nonnull__ (2, 3))); extern int lstat (const char *__restrict __file, struct stat *__restrict __buf) throw () __attribute__ ((__nonnull__ (1, 2))); # 275 "/usr/include/sys/stat.h" 3 4 extern int lstat64 (const char *__restrict __file, struct stat64 *__restrict __buf) throw () __attribute__ ((__nonnull__ (1, 2))); extern int chmod (const char *__file, __mode_t __mode) throw () __attribute__ ((__nonnull__ (1))); extern int lchmod (const char *__file, __mode_t __mode) throw () __attribute__ ((__nonnull__ (1))); extern int fchmod (int __fd, __mode_t __mode) throw (); extern int fchmodat (int __fd, const char *__file, __mode_t __mode, int __flag) throw () __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); extern __mode_t umask (__mode_t __mask) throw (); extern __mode_t getumask (void) throw (); extern int mkdir (const char *__path, __mode_t __mode) throw () __attribute__ ((__nonnull__ (1))); extern int mkdirat (int __fd, const char *__path, __mode_t __mode) throw () __attribute__ ((__nonnull__ (2))); extern int mknod (const char *__path, __mode_t __mode, __dev_t __dev) throw () __attribute__ ((__nonnull__ (1))); extern int mknodat (int __fd, const char *__path, __mode_t __mode, __dev_t __dev) throw () __attribute__ ((__nonnull__ (2))); extern int mkfifo (const char *__path, __mode_t __mode) throw () __attribute__ ((__nonnull__ (1))); extern int mkfifoat (int __fd, const char *__path, __mode_t __mode) throw () __attribute__ ((__nonnull__ (2))); extern int utimensat (int __fd, const char *__path, const struct timespec __times[2], int __flags) throw () __attribute__ ((__nonnull__ (2))); extern int futimens (int __fd, const struct timespec __times[2]) throw (); # 398 "/usr/include/sys/stat.h" 3 4 extern int __fxstat (int __ver, int __fildes, struct stat *__stat_buf) throw () __attribute__ ((__nonnull__ (3))); extern int __xstat (int __ver, const char *__filename, struct stat *__stat_buf) throw () __attribute__ ((__nonnull__ (2, 3))); extern int __lxstat (int __ver, const char *__filename, struct stat *__stat_buf) throw () __attribute__ ((__nonnull__ (2, 3))); extern int __fxstatat (int __ver, int __fildes, const char *__filename, struct stat *__stat_buf, int __flag) throw () __attribute__ ((__nonnull__ (3, 4))); # 431 "/usr/include/sys/stat.h" 3 4 extern int __fxstat64 (int __ver, int __fildes, struct stat64 *__stat_buf) throw () __attribute__ ((__nonnull__ (3))); extern int __xstat64 (int __ver, const char *__filename, struct stat64 *__stat_buf) throw () __attribute__ ((__nonnull__ (2, 3))); extern int __lxstat64 (int __ver, const char *__filename, struct stat64 *__stat_buf) throw () __attribute__ ((__nonnull__ (2, 3))); extern int __fxstatat64 (int __ver, int __fildes, const char *__filename, struct stat64 *__stat_buf, int __flag) throw () __attribute__ ((__nonnull__ (3, 4))); extern int __xmknod (int __ver, const char *__path, __mode_t __mode, __dev_t *__dev) throw () __attribute__ ((__nonnull__ (2, 4))); extern int __xmknodat (int __ver, int __fd, const char *__path, __mode_t __mode, __dev_t *__dev) throw () __attribute__ ((__nonnull__ (3, 5))); extern __inline __attribute__ ((__gnu_inline__)) int __attribute__ ((__leaf__)) stat (const char *__path, struct stat *__statbuf) throw () { return __xstat (1, __path, __statbuf); } extern __inline __attribute__ ((__gnu_inline__)) int __attribute__ ((__leaf__)) lstat (const char *__path, struct stat *__statbuf) throw () { return __lxstat (1, __path, __statbuf); } extern __inline __attribute__ ((__gnu_inline__)) int __attribute__ ((__leaf__)) fstat (int __fd, struct stat *__statbuf) throw () { return __fxstat (1, __fd, __statbuf); } extern __inline __attribute__ ((__gnu_inline__)) int __attribute__ ((__leaf__)) fstatat (int __fd, const char *__filename, struct stat *__statbuf, int __flag) throw () { return __fxstatat (1, __fd, __filename, __statbuf, __flag); } extern __inline __attribute__ ((__gnu_inline__)) int __attribute__ ((__leaf__)) mknod (const char *__path, __mode_t __mode, __dev_t __dev) throw () { return __xmknod (0, __path, __mode, &__dev); } extern __inline __attribute__ ((__gnu_inline__)) int __attribute__ ((__leaf__)) mknodat (int __fd, const char *__path, __mode_t __mode, __dev_t __dev) throw () { return __xmknodat (0, __fd, __path, __mode, &__dev); } extern __inline __attribute__ ((__gnu_inline__)) int __attribute__ ((__leaf__)) stat64 (const char *__path, struct stat64 *__statbuf) throw () { return __xstat64 (1, __path, __statbuf); } extern __inline __attribute__ ((__gnu_inline__)) int __attribute__ ((__leaf__)) lstat64 (const char *__path, struct stat64 *__statbuf) throw () { return __lxstat64 (1, __path, __statbuf); } extern __inline __attribute__ ((__gnu_inline__)) int __attribute__ ((__leaf__)) fstat64 (int __fd, struct stat64 *__statbuf) throw () { return __fxstat64 (1, __fd, __statbuf); } extern __inline __attribute__ ((__gnu_inline__)) int __attribute__ ((__leaf__)) fstatat64 (int __fd, const char *__filename, struct stat64 *__statbuf, int __flag) throw () { return __fxstatat64 (1, __fd, __filename, __statbuf, __flag); } } # 25 "pdns_recursor.cc" 2 # 1 "/usr/include/unistd.h" 1 3 4 # 27 "/usr/include/unistd.h" 3 4 extern "C" { # 202 "/usr/include/unistd.h" 3 4 # 1 "/usr/include/bits/posix_opt.h" 1 3 4 # 203 "/usr/include/unistd.h" 2 3 4 # 1 "/usr/include/bits/environments.h" 1 3 4 # 22 "/usr/include/bits/environments.h" 3 4 # 1 "/usr/include/bits/wordsize.h" 1 3 4 # 23 "/usr/include/bits/environments.h" 2 3 4 # 207 "/usr/include/unistd.h" 2 3 4 # 226 "/usr/include/unistd.h" 3 4 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stddef.h" 1 3 4 # 227 "/usr/include/unistd.h" 2 3 4 # 287 "/usr/include/unistd.h" 3 4 extern int access (const char *__name, int __type) throw () __attribute__ ((__nonnull__ (1))); extern int euidaccess (const char *__name, int __type) throw () __attribute__ ((__nonnull__ (1))); extern int eaccess (const char *__name, int __type) throw () __attribute__ ((__nonnull__ (1))); extern int faccessat (int __fd, const char *__file, int __type, int __flag) throw () __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); # 334 "/usr/include/unistd.h" 3 4 extern __off_t lseek (int __fd, __off_t __offset, int __whence) throw (); # 345 "/usr/include/unistd.h" 3 4 extern __off64_t lseek64 (int __fd, __off64_t __offset, int __whence) throw (); extern int close (int __fd); extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __attribute__ ((__warn_unused_result__)); extern ssize_t write (int __fd, const void *__buf, size_t __n) __attribute__ ((__warn_unused_result__)); # 376 "/usr/include/unistd.h" 3 4 extern ssize_t pread (int __fd, void *__buf, size_t __nbytes, __off_t __offset) __attribute__ ((__warn_unused_result__)); extern ssize_t pwrite (int __fd, const void *__buf, size_t __n, __off_t __offset) __attribute__ ((__warn_unused_result__)); # 404 "/usr/include/unistd.h" 3 4 extern ssize_t pread64 (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) __attribute__ ((__warn_unused_result__)); extern ssize_t pwrite64 (int __fd, const void *__buf, size_t __n, __off64_t __offset) __attribute__ ((__warn_unused_result__)); extern int pipe (int __pipedes[2]) throw () __attribute__ ((__warn_unused_result__)); extern int pipe2 (int __pipedes[2], int __flags) throw () __attribute__ ((__warn_unused_result__)); # 432 "/usr/include/unistd.h" 3 4 extern unsigned int alarm (unsigned int __seconds) throw (); # 444 "/usr/include/unistd.h" 3 4 extern unsigned int sleep (unsigned int __seconds); extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval) throw (); extern int usleep (__useconds_t __useconds); # 469 "/usr/include/unistd.h" 3 4 extern int pause (void); extern int chown (const char *__file, __uid_t __owner, __gid_t __group) throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern int fchown (int __fd, __uid_t __owner, __gid_t __group) throw () __attribute__ ((__warn_unused_result__)); extern int lchown (const char *__file, __uid_t __owner, __gid_t __group) throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern int fchownat (int __fd, const char *__file, __uid_t __owner, __gid_t __group, int __flag) throw () __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); extern int chdir (const char *__path) throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern int fchdir (int __fd) throw () __attribute__ ((__warn_unused_result__)); # 511 "/usr/include/unistd.h" 3 4 extern char *getcwd (char *__buf, size_t __size) throw () __attribute__ ((__warn_unused_result__)); extern char *get_current_dir_name (void) throw (); extern char *getwd (char *__buf) throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) __attribute__ ((__warn_unused_result__)); extern int dup (int __fd) throw () __attribute__ ((__warn_unused_result__)); extern int dup2 (int __fd, int __fd2) throw (); extern int dup3 (int __fd, int __fd2, int __flags) throw (); extern char **__environ; extern char **environ; extern int execve (const char *__path, char *const __argv[], char *const __envp[]) throw () __attribute__ ((__nonnull__ (1, 2))); extern int fexecve (int __fd, char *const __argv[], char *const __envp[]) throw () __attribute__ ((__nonnull__ (2))); extern int execv (const char *__path, char *const __argv[]) throw () __attribute__ ((__nonnull__ (1, 2))); extern int execle (const char *__path, const char *__arg, ...) throw () __attribute__ ((__nonnull__ (1, 2))); extern int execl (const char *__path, const char *__arg, ...) throw () __attribute__ ((__nonnull__ (1, 2))); extern int execvp (const char *__file, char *const __argv[]) throw () __attribute__ ((__nonnull__ (1, 2))); extern int execlp (const char *__file, const char *__arg, ...) throw () __attribute__ ((__nonnull__ (1, 2))); extern int execvpe (const char *__file, char *const __argv[], char *const __envp[]) throw () __attribute__ ((__nonnull__ (1, 2))); extern int nice (int __inc) throw () __attribute__ ((__warn_unused_result__)); extern void _exit (int __status) __attribute__ ((__noreturn__)); # 1 "/usr/include/bits/confname.h" 1 3 4 # 24 "/usr/include/bits/confname.h" 3 4 enum { _PC_LINK_MAX, _PC_MAX_CANON, _PC_MAX_INPUT, _PC_NAME_MAX, _PC_PATH_MAX, _PC_PIPE_BUF, _PC_CHOWN_RESTRICTED, _PC_NO_TRUNC, _PC_VDISABLE, _PC_SYNC_IO, _PC_ASYNC_IO, _PC_PRIO_IO, _PC_SOCK_MAXBUF, _PC_FILESIZEBITS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE, _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, _PC_ALLOC_SIZE_MIN, _PC_SYMLINK_MAX, _PC_2_SYMLINKS }; enum { _SC_ARG_MAX, _SC_CHILD_MAX, _SC_CLK_TCK, _SC_NGROUPS_MAX, _SC_OPEN_MAX, _SC_STREAM_MAX, _SC_TZNAME_MAX, _SC_JOB_CONTROL, _SC_SAVED_IDS, _SC_REALTIME_SIGNALS, _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO, _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC, _SC_MAPPED_FILES, _SC_MEMLOCK, _SC_MEMLOCK_RANGE, _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS, _SC_AIO_LISTIO_MAX, _SC_AIO_MAX, _SC_AIO_PRIO_DELTA_MAX, _SC_DELAYTIMER_MAX, _SC_MQ_OPEN_MAX, _SC_MQ_PRIO_MAX, _SC_VERSION, _SC_PAGESIZE, _SC_RTSIG_MAX, _SC_SEM_NSEMS_MAX, _SC_SEM_VALUE_MAX, _SC_SIGQUEUE_MAX, _SC_TIMER_MAX, _SC_BC_BASE_MAX, _SC_BC_DIM_MAX, _SC_BC_SCALE_MAX, _SC_BC_STRING_MAX, _SC_COLL_WEIGHTS_MAX, _SC_EQUIV_CLASS_MAX, _SC_EXPR_NEST_MAX, _SC_LINE_MAX, _SC_RE_DUP_MAX, _SC_CHARCLASS_NAME_MAX, _SC_2_VERSION, _SC_2_C_BIND, _SC_2_C_DEV, _SC_2_FORT_DEV, _SC_2_FORT_RUN, _SC_2_SW_DEV, _SC_2_LOCALEDEF, _SC_PII, _SC_PII_XTI, _SC_PII_SOCKET, _SC_PII_INTERNET, _SC_PII_OSI, _SC_POLL, _SC_SELECT, _SC_UIO_MAXIOV, _SC_IOV_MAX = _SC_UIO_MAXIOV, _SC_PII_INTERNET_STREAM, _SC_PII_INTERNET_DGRAM, _SC_PII_OSI_COTS, _SC_PII_OSI_CLTS, _SC_PII_OSI_M, _SC_T_IOV_MAX, _SC_THREADS, _SC_THREAD_SAFE_FUNCTIONS, _SC_GETGR_R_SIZE_MAX, _SC_GETPW_R_SIZE_MAX, _SC_LOGIN_NAME_MAX, _SC_TTY_NAME_MAX, _SC_THREAD_DESTRUCTOR_ITERATIONS, _SC_THREAD_KEYS_MAX, _SC_THREAD_STACK_MIN, _SC_THREAD_THREADS_MAX, _SC_THREAD_ATTR_STACKADDR, _SC_THREAD_ATTR_STACKSIZE, _SC_THREAD_PRIORITY_SCHEDULING, _SC_THREAD_PRIO_INHERIT, _SC_THREAD_PRIO_PROTECT, _SC_THREAD_PROCESS_SHARED, _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES, _SC_AVPHYS_PAGES, _SC_ATEXIT_MAX, _SC_PASS_MAX, _SC_XOPEN_VERSION, _SC_XOPEN_XCU_VERSION, _SC_XOPEN_UNIX, _SC_XOPEN_CRYPT, _SC_XOPEN_ENH_I18N, _SC_XOPEN_SHM, _SC_2_CHAR_TERM, _SC_2_C_VERSION, _SC_2_UPE, _SC_XOPEN_XPG2, _SC_XOPEN_XPG3, _SC_XOPEN_XPG4, _SC_CHAR_BIT, _SC_CHAR_MAX, _SC_CHAR_MIN, _SC_INT_MAX, _SC_INT_MIN, _SC_LONG_BIT, _SC_WORD_BIT, _SC_MB_LEN_MAX, _SC_NZERO, _SC_SSIZE_MAX, _SC_SCHAR_MAX, _SC_SCHAR_MIN, _SC_SHRT_MAX, _SC_SHRT_MIN, _SC_UCHAR_MAX, _SC_UINT_MAX, _SC_ULONG_MAX, _SC_USHRT_MAX, _SC_NL_ARGMAX, _SC_NL_LANGMAX, _SC_NL_MSGMAX, _SC_NL_NMAX, _SC_NL_SETMAX, _SC_NL_TEXTMAX, _SC_XBS5_ILP32_OFF32, _SC_XBS5_ILP32_OFFBIG, _SC_XBS5_LP64_OFF64, _SC_XBS5_LPBIG_OFFBIG, _SC_XOPEN_LEGACY, _SC_XOPEN_REALTIME, _SC_XOPEN_REALTIME_THREADS, _SC_ADVISORY_INFO, _SC_BARRIERS, _SC_BASE, _SC_C_LANG_SUPPORT, _SC_C_LANG_SUPPORT_R, _SC_CLOCK_SELECTION, _SC_CPUTIME, _SC_THREAD_CPUTIME, _SC_DEVICE_IO, _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO, _SC_PIPE, _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM, _SC_MONOTONIC_CLOCK, _SC_MULTI_PROCESS, _SC_SINGLE_PROCESS, _SC_NETWORKING, _SC_READER_WRITER_LOCKS, _SC_SPIN_LOCKS, _SC_REGEXP, _SC_REGEX_VERSION, _SC_SHELL, _SC_SIGNALS, _SC_SPAWN, _SC_SPORADIC_SERVER, _SC_THREAD_SPORADIC_SERVER, _SC_SYSTEM_DATABASE, _SC_SYSTEM_DATABASE_R, _SC_TIMEOUTS, _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R, _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK, _SC_SYMLOOP_MAX, _SC_STREAMS, _SC_2_PBS_CHECKPOINT, _SC_V6_ILP32_OFF32, _SC_V6_ILP32_OFFBIG, _SC_V6_LP64_OFF64, _SC_V6_LPBIG_OFFBIG, _SC_HOST_NAME_MAX, _SC_TRACE, _SC_TRACE_EVENT_FILTER, _SC_TRACE_INHERIT, _SC_TRACE_LOG, _SC_LEVEL1_ICACHE_SIZE, _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE, _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC, _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE, _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE, _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC, _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE, _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE, _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, _SC_RAW_SOCKETS, _SC_V7_ILP32_OFF32, _SC_V7_ILP32_OFFBIG, _SC_V7_LP64_OFF64, _SC_V7_LPBIG_OFFBIG, _SC_SS_REPL_MAX, _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS, _SC_THREAD_ROBUST_PRIO_INHERIT, _SC_THREAD_ROBUST_PRIO_PROTECT }; enum { _CS_PATH, _CS_V6_WIDTH_RESTRICTED_ENVS, _CS_GNU_LIBC_VERSION, _CS_GNU_LIBPTHREAD_VERSION, _CS_V5_WIDTH_RESTRICTED_ENVS, _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_LFS_CFLAGS = 1000, _CS_LFS_LDFLAGS, _CS_LFS_LIBS, _CS_LFS_LINTFLAGS, _CS_LFS64_CFLAGS, _CS_LFS64_LDFLAGS, _CS_LFS64_LIBS, _CS_LFS64_LINTFLAGS, _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, _CS_XBS5_ILP32_OFF32_LDFLAGS, _CS_XBS5_ILP32_OFF32_LIBS, _CS_XBS5_ILP32_OFF32_LINTFLAGS, _CS_XBS5_ILP32_OFFBIG_CFLAGS, _CS_XBS5_ILP32_OFFBIG_LDFLAGS, _CS_XBS5_ILP32_OFFBIG_LIBS, _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, _CS_XBS5_LP64_OFF64_CFLAGS, _CS_XBS5_LP64_OFF64_LDFLAGS, _CS_XBS5_LP64_OFF64_LIBS, _CS_XBS5_LP64_OFF64_LINTFLAGS, _CS_XBS5_LPBIG_OFFBIG_CFLAGS, _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, _CS_XBS5_LPBIG_OFFBIG_LIBS, _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, _CS_POSIX_V6_ILP32_OFF32_CFLAGS, _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, _CS_POSIX_V6_ILP32_OFF32_LIBS, _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, _CS_POSIX_V6_ILP32_OFFBIG_LIBS, _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, _CS_POSIX_V6_LP64_OFF64_CFLAGS, _CS_POSIX_V6_LP64_OFF64_LDFLAGS, _CS_POSIX_V6_LP64_OFF64_LIBS, _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, _CS_POSIX_V7_ILP32_OFF32_CFLAGS, _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, _CS_POSIX_V7_ILP32_OFF32_LIBS, _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, _CS_POSIX_V7_ILP32_OFFBIG_LIBS, _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, _CS_POSIX_V7_LP64_OFF64_CFLAGS, _CS_POSIX_V7_LP64_OFF64_LDFLAGS, _CS_POSIX_V7_LP64_OFF64_LIBS, _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, _CS_V6_ENV, _CS_V7_ENV }; # 610 "/usr/include/unistd.h" 2 3 4 extern long int pathconf (const char *__path, int __name) throw () __attribute__ ((__nonnull__ (1))); extern long int fpathconf (int __fd, int __name) throw (); extern long int sysconf (int __name) throw (); extern size_t confstr (int __name, char *__buf, size_t __len) throw (); extern __pid_t getpid (void) throw (); extern __pid_t getppid (void) throw (); extern __pid_t getpgrp (void) throw (); extern __pid_t __getpgid (__pid_t __pid) throw (); extern __pid_t getpgid (__pid_t __pid) throw (); extern int setpgid (__pid_t __pid, __pid_t __pgid) throw (); # 660 "/usr/include/unistd.h" 3 4 extern int setpgrp (void) throw (); extern __pid_t setsid (void) throw (); extern __pid_t getsid (__pid_t __pid) throw (); extern __uid_t getuid (void) throw (); extern __uid_t geteuid (void) throw (); extern __gid_t getgid (void) throw (); extern __gid_t getegid (void) throw (); extern int getgroups (int __size, __gid_t __list[]) throw () __attribute__ ((__warn_unused_result__)); extern int group_member (__gid_t __gid) throw (); extern int setuid (__uid_t __uid) throw () __attribute__ ((__warn_unused_result__)); extern int setreuid (__uid_t __ruid, __uid_t __euid) throw () __attribute__ ((__warn_unused_result__)); extern int seteuid (__uid_t __uid) throw () __attribute__ ((__warn_unused_result__)); extern int setgid (__gid_t __gid) throw () __attribute__ ((__warn_unused_result__)); extern int setregid (__gid_t __rgid, __gid_t __egid) throw () __attribute__ ((__warn_unused_result__)); extern int setegid (__gid_t __gid) throw () __attribute__ ((__warn_unused_result__)); extern int getresuid (__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) throw (); extern int getresgid (__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) throw (); extern int setresuid (__uid_t __ruid, __uid_t __euid, __uid_t __suid) throw () __attribute__ ((__warn_unused_result__)); extern int setresgid (__gid_t __rgid, __gid_t __egid, __gid_t __sgid) throw () __attribute__ ((__warn_unused_result__)); extern __pid_t fork (void) throw (); extern __pid_t vfork (void) throw (); extern char *ttyname (int __fd) throw (); extern int ttyname_r (int __fd, char *__buf, size_t __buflen) throw () __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); extern int isatty (int __fd) throw (); extern int ttyslot (void) throw (); extern int link (const char *__from, const char *__to) throw () __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); extern int linkat (int __fromfd, const char *__from, int __tofd, const char *__to, int __flags) throw () __attribute__ ((__nonnull__ (2, 4))) __attribute__ ((__warn_unused_result__)); extern int symlink (const char *__from, const char *__to) throw () __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); extern ssize_t readlink (const char *__restrict __path, char *__restrict __buf, size_t __len) throw () __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); extern int symlinkat (const char *__from, int __tofd, const char *__to) throw () __attribute__ ((__nonnull__ (1, 3))) __attribute__ ((__warn_unused_result__)); extern ssize_t readlinkat (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len) throw () __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)); extern int unlink (const char *__name) throw () __attribute__ ((__nonnull__ (1))); extern int unlinkat (int __fd, const char *__name, int __flag) throw () __attribute__ ((__nonnull__ (2))); extern int rmdir (const char *__path) throw () __attribute__ ((__nonnull__ (1))); extern __pid_t tcgetpgrp (int __fd) throw (); extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) throw (); extern char *getlogin (void); extern int getlogin_r (char *__name, size_t __name_len) __attribute__ ((__nonnull__ (1))); extern int setlogin (const char *__name) throw () __attribute__ ((__nonnull__ (1))); # 871 "/usr/include/unistd.h" 3 4 # 1 "/usr/include/getopt.h" 1 3 4 # 48 "/usr/include/getopt.h" 3 4 extern "C" { # 57 "/usr/include/getopt.h" 3 4 extern char *optarg; # 71 "/usr/include/getopt.h" 3 4 extern int optind; extern int opterr; extern int optopt; # 150 "/usr/include/getopt.h" 3 4 extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) throw (); # 185 "/usr/include/getopt.h" 3 4 } # 872 "/usr/include/unistd.h" 2 3 4 extern int gethostname (char *__name, size_t __len) throw () __attribute__ ((__nonnull__ (1))); extern int sethostname (const char *__name, size_t __len) throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern int sethostid (long int __id) throw () __attribute__ ((__warn_unused_result__)); extern int getdomainname (char *__name, size_t __len) throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern int setdomainname (const char *__name, size_t __len) throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern int vhangup (void) throw (); extern int revoke (const char *__file) throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern int profil (unsigned short int *__sample_buffer, size_t __size, size_t __offset, unsigned int __scale) throw () __attribute__ ((__nonnull__ (1))); extern int acct (const char *__name) throw (); extern char *getusershell (void) throw (); extern void endusershell (void) throw (); extern void setusershell (void) throw (); extern int daemon (int __nochdir, int __noclose) throw () __attribute__ ((__warn_unused_result__)); extern int chroot (const char *__path) throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern char *getpass (const char *__prompt) __attribute__ ((__nonnull__ (1))); extern int fsync (int __fd); extern int syncfs (int __fd) throw (); extern long int gethostid (void); extern void sync (void) throw (); extern int getpagesize (void) throw () __attribute__ ((__const__)); extern int getdtablesize (void) throw (); # 993 "/usr/include/unistd.h" 3 4 extern int truncate (const char *__file, __off_t __length) throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); # 1005 "/usr/include/unistd.h" 3 4 extern int truncate64 (const char *__file, __off64_t __length) throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); # 1016 "/usr/include/unistd.h" 3 4 extern int ftruncate (int __fd, __off_t __length) throw () __attribute__ ((__warn_unused_result__)); # 1026 "/usr/include/unistd.h" 3 4 extern int ftruncate64 (int __fd, __off64_t __length) throw () __attribute__ ((__warn_unused_result__)); # 1037 "/usr/include/unistd.h" 3 4 extern int brk (void *__addr) throw () __attribute__ ((__warn_unused_result__)); extern void *sbrk (intptr_t __delta) throw (); # 1058 "/usr/include/unistd.h" 3 4 extern long int syscall (long int __sysno, ...) throw (); # 1081 "/usr/include/unistd.h" 3 4 extern int lockf (int __fd, int __cmd, __off_t __len) __attribute__ ((__warn_unused_result__)); # 1091 "/usr/include/unistd.h" 3 4 extern int lockf64 (int __fd, int __cmd, __off64_t __len) __attribute__ ((__warn_unused_result__)); # 1112 "/usr/include/unistd.h" 3 4 extern int fdatasync (int __fildes); extern char *crypt (const char *__key, const char *__salt) throw () __attribute__ ((__nonnull__ (1, 2))); extern void encrypt (char *__glibc_block, int __edflag) throw () __attribute__ ((__nonnull__ (1))); extern void swab (const void *__restrict __from, void *__restrict __to, ssize_t __n) throw () __attribute__ ((__nonnull__ (1, 2))); # 1148 "/usr/include/unistd.h" 3 4 # 1 "/usr/include/bits/unistd.h" 1 3 4 # 23 "/usr/include/bits/unistd.h" 3 4 extern ssize_t __read_chk (int __fd, void *__buf, size_t __nbytes, size_t __buflen) __attribute__ ((__warn_unused_result__)); extern ssize_t __read_alias (int __fd, void *__buf, size_t __nbytes) __asm__ ("" "read") __attribute__ ((__warn_unused_result__)); extern ssize_t __read_chk_warn (int __fd, void *__buf, size_t __nbytes, size_t __buflen) __asm__ ("" "__read_chk") __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("read called with bigger length than size of " "the destination buffer"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t read (int __fd, void *__buf, size_t __nbytes) { if (__builtin_object_size (__buf, 0) != (size_t) -1) { if (!__builtin_constant_p (__nbytes)) return __read_chk (__fd, __buf, __nbytes, __builtin_object_size (__buf, 0)); if (__nbytes > __builtin_object_size (__buf, 0)) return __read_chk_warn (__fd, __buf, __nbytes, __builtin_object_size (__buf, 0)); } return __read_alias (__fd, __buf, __nbytes); } extern ssize_t __pread_chk (int __fd, void *__buf, size_t __nbytes, __off_t __offset, size_t __bufsize) __attribute__ ((__warn_unused_result__)); extern ssize_t __pread64_chk (int __fd, void *__buf, size_t __nbytes, __off64_t __offset, size_t __bufsize) __attribute__ ((__warn_unused_result__)); extern ssize_t __pread_alias (int __fd, void *__buf, size_t __nbytes, __off_t __offset) __asm__ ("" "pread") __attribute__ ((__warn_unused_result__)); extern ssize_t __pread64_alias (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pread64") __attribute__ ((__warn_unused_result__)); extern ssize_t __pread_chk_warn (int __fd, void *__buf, size_t __nbytes, __off_t __offset, size_t __bufsize) __asm__ ("" "__pread_chk") __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("pread called with bigger length than size of " "the destination buffer"))) ; extern ssize_t __pread64_chk_warn (int __fd, void *__buf, size_t __nbytes, __off64_t __offset, size_t __bufsize) __asm__ ("" "__pread64_chk") __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("pread64 called with bigger length than size of " "the destination buffer"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t pread (int __fd, void *__buf, size_t __nbytes, __off_t __offset) { if (__builtin_object_size (__buf, 0) != (size_t) -1) { if (!__builtin_constant_p (__nbytes)) return __pread_chk (__fd, __buf, __nbytes, __offset, __builtin_object_size (__buf, 0)); if ( __nbytes > __builtin_object_size (__buf, 0)) return __pread_chk_warn (__fd, __buf, __nbytes, __offset, __builtin_object_size (__buf, 0)); } return __pread_alias (__fd, __buf, __nbytes, __offset); } # 104 "/usr/include/bits/unistd.h" 3 4 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t pread64 (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) { if (__builtin_object_size (__buf, 0) != (size_t) -1) { if (!__builtin_constant_p (__nbytes)) return __pread64_chk (__fd, __buf, __nbytes, __offset, __builtin_object_size (__buf, 0)); if ( __nbytes > __builtin_object_size (__buf, 0)) return __pread64_chk_warn (__fd, __buf, __nbytes, __offset, __builtin_object_size (__buf, 0)); } return __pread64_alias (__fd, __buf, __nbytes, __offset); } extern ssize_t __readlink_chk (const char *__restrict __path, char *__restrict __buf, size_t __len, size_t __buflen) throw () __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); extern ssize_t __readlink_alias (const char *__restrict __path, char *__restrict __buf, size_t __len) throw () __asm__ ("" "readlink") __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); extern ssize_t __readlink_chk_warn (const char *__restrict __path, char *__restrict __buf, size_t __len, size_t __buflen) throw () __asm__ ("" "__readlink_chk") __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlink called with bigger length " "than size of destination buffer"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) ssize_t __attribute__ ((__leaf__)) readlink (const char *__restrict __path, char *__restrict __buf, size_t __len) throw () { if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) { if (!__builtin_constant_p (__len)) return __readlink_chk (__path, __buf, __len, __builtin_object_size (__buf, 2 > 1)); if ( __len > __builtin_object_size (__buf, 2 > 1)) return __readlink_chk_warn (__path, __buf, __len, __builtin_object_size (__buf, 2 > 1)); } return __readlink_alias (__path, __buf, __len); } extern ssize_t __readlinkat_chk (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len, size_t __buflen) throw () __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)); extern ssize_t __readlinkat_alias (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len) throw () __asm__ ("" "readlinkat") __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)); extern ssize_t __readlinkat_chk_warn (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len, size_t __buflen) throw () __asm__ ("" "__readlinkat_chk") __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlinkat called with bigger " "length than size of destination " "buffer"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) ssize_t __attribute__ ((__leaf__)) readlinkat (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len) throw () { if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) { if (!__builtin_constant_p (__len)) return __readlinkat_chk (__fd, __path, __buf, __len, __builtin_object_size (__buf, 2 > 1)); if (__len > __builtin_object_size (__buf, 2 > 1)) return __readlinkat_chk_warn (__fd, __path, __buf, __len, __builtin_object_size (__buf, 2 > 1)); } return __readlinkat_alias (__fd, __path, __buf, __len); } extern char *__getcwd_chk (char *__buf, size_t __size, size_t __buflen) throw () __attribute__ ((__warn_unused_result__)); extern char *__getcwd_alias (char *__buf, size_t __size) throw () __asm__ ("" "getcwd") __attribute__ ((__warn_unused_result__)); extern char *__getcwd_chk_warn (char *__buf, size_t __size, size_t __buflen) throw () __asm__ ("" "__getcwd_chk") __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getcwd caller with bigger length than size of " "destination buffer"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * __attribute__ ((__leaf__)) getcwd (char *__buf, size_t __size) throw () { if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) { if (!__builtin_constant_p (__size)) return __getcwd_chk (__buf, __size, __builtin_object_size (__buf, 2 > 1)); if (__size > __builtin_object_size (__buf, 2 > 1)) return __getcwd_chk_warn (__buf, __size, __builtin_object_size (__buf, 2 > 1)); } return __getcwd_alias (__buf, __size); } extern char *__getwd_chk (char *__buf, size_t buflen) throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern char *__getwd_warn (char *__buf) throw () __asm__ ("" "getwd") __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("please use getcwd instead, as getwd " "doesn't specify buffer size"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) __attribute__ ((__warn_unused_result__)) char * __attribute__ ((__leaf__)) getwd (char *__buf) throw () { if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) return __getwd_chk (__buf, __builtin_object_size (__buf, 2 > 1)); return __getwd_warn (__buf); } extern size_t __confstr_chk (int __name, char *__buf, size_t __len, size_t __buflen) throw (); extern size_t __confstr_alias (int __name, char *__buf, size_t __len) throw () __asm__ ("" "confstr") ; extern size_t __confstr_chk_warn (int __name, char *__buf, size_t __len, size_t __buflen) throw () __asm__ ("" "__confstr_chk") __attribute__((__warning__ ("confstr called with bigger length than size of destination " "buffer"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t __attribute__ ((__leaf__)) confstr (int __name, char *__buf, size_t __len) throw () { if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) { if (!__builtin_constant_p (__len)) return __confstr_chk (__name, __buf, __len, __builtin_object_size (__buf, 2 > 1)); if (__builtin_object_size (__buf, 2 > 1) < __len) return __confstr_chk_warn (__name, __buf, __len, __builtin_object_size (__buf, 2 > 1)); } return __confstr_alias (__name, __buf, __len); } extern int __getgroups_chk (int __size, __gid_t __list[], size_t __listlen) throw () __attribute__ ((__warn_unused_result__)); extern int __getgroups_alias (int __size, __gid_t __list[]) throw () __asm__ ("" "getgroups") __attribute__ ((__warn_unused_result__)); extern int __getgroups_chk_warn (int __size, __gid_t __list[], size_t __listlen) throw () __asm__ ("" "__getgroups_chk") __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getgroups called with bigger group count than what " "can fit into destination buffer"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) getgroups (int __size, __gid_t __list[]) throw () { if (__builtin_object_size (__list, 2 > 1) != (size_t) -1) { if (!__builtin_constant_p (__size) || __size < 0) return __getgroups_chk (__size, __list, __builtin_object_size (__list, 2 > 1)); if (__size * sizeof (__gid_t) > __builtin_object_size (__list, 2 > 1)) return __getgroups_chk_warn (__size, __list, __builtin_object_size (__list, 2 > 1)); } return __getgroups_alias (__size, __list); } extern int __ttyname_r_chk (int __fd, char *__buf, size_t __buflen, size_t __nreal) throw () __attribute__ ((__nonnull__ (2))); extern int __ttyname_r_alias (int __fd, char *__buf, size_t __buflen) throw () __asm__ ("" "ttyname_r") __attribute__ ((__nonnull__ (2))); extern int __ttyname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) throw () __asm__ ("" "__ttyname_r_chk") __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ttyname_r called with bigger buflen than " "size of destination buffer"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) ttyname_r (int __fd, char *__buf, size_t __buflen) throw () { if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) { if (!__builtin_constant_p (__buflen)) return __ttyname_r_chk (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)); if (__buflen > __builtin_object_size (__buf, 2 > 1)) return __ttyname_r_chk_warn (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)); } return __ttyname_r_alias (__fd, __buf, __buflen); } extern int __getlogin_r_chk (char *__buf, size_t __buflen, size_t __nreal) __attribute__ ((__nonnull__ (1))); extern int __getlogin_r_alias (char *__buf, size_t __buflen) __asm__ ("" "getlogin_r") __attribute__ ((__nonnull__ (1))); extern int __getlogin_r_chk_warn (char *__buf, size_t __buflen, size_t __nreal) __asm__ ("" "__getlogin_r_chk") __attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("getlogin_r called with bigger buflen than " "size of destination buffer"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int getlogin_r (char *__buf, size_t __buflen) { if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) { if (!__builtin_constant_p (__buflen)) return __getlogin_r_chk (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)); if (__buflen > __builtin_object_size (__buf, 2 > 1)) return __getlogin_r_chk_warn (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)); } return __getlogin_r_alias (__buf, __buflen); } extern int __gethostname_chk (char *__buf, size_t __buflen, size_t __nreal) throw () __attribute__ ((__nonnull__ (1))); extern int __gethostname_alias (char *__buf, size_t __buflen) throw () __asm__ ("" "gethostname") __attribute__ ((__nonnull__ (1))); extern int __gethostname_chk_warn (char *__buf, size_t __buflen, size_t __nreal) throw () __asm__ ("" "__gethostname_chk") __attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("gethostname called with bigger buflen than " "size of destination buffer"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) gethostname (char *__buf, size_t __buflen) throw () { if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) { if (!__builtin_constant_p (__buflen)) return __gethostname_chk (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)); if (__buflen > __builtin_object_size (__buf, 2 > 1)) return __gethostname_chk_warn (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)); } return __gethostname_alias (__buf, __buflen); } extern int __getdomainname_chk (char *__buf, size_t __buflen, size_t __nreal) throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern int __getdomainname_alias (char *__buf, size_t __buflen) throw () __asm__ ("" "getdomainname") __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern int __getdomainname_chk_warn (char *__buf, size_t __buflen, size_t __nreal) throw () __asm__ ("" "__getdomainname_chk") __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getdomainname called with bigger " "buflen than size of destination " "buffer"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) getdomainname (char *__buf, size_t __buflen) throw () { if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) { if (!__builtin_constant_p (__buflen)) return __getdomainname_chk (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)); if (__buflen > __builtin_object_size (__buf, 2 > 1)) return __getdomainname_chk_warn (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)); } return __getdomainname_alias (__buf, __buflen); } # 1149 "/usr/include/unistd.h" 2 3 4 } # 26 "pdns_recursor.cc" 2 # 1 "/usr/include/boost/foreach.hpp" 1 3 4 # 27 "/usr/include/boost/foreach.hpp" 3 4 # 1 "/usr/include/c++/5.0.0/cstddef" 1 3 4 # 42 "/usr/include/c++/5.0.0/cstddef" 3 4 # 43 "/usr/include/c++/5.0.0/cstddef" 3 # 1 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/c++config.h" 1 3 # 1 "/usr/include/bits/wordsize.h" 1 3 4 # 4 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/c++config.h" 2 3 # 1921 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/c++config.h" 3 namespace std { typedef long unsigned int size_t; typedef long int ptrdiff_t; } # 2205 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/c++config.h" 3 # 1 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/os_defines.h" 1 3 # 2206 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/c++config.h" 2 3 # 1 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/cpu_defines.h" 1 3 # 2209 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/c++config.h" 2 3 # 45 "/usr/include/c++/5.0.0/cstddef" 2 3 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stddef.h" 1 3 4 # 149 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stddef.h" 3 4 typedef long int ptrdiff_t; # 46 "/usr/include/c++/5.0.0/cstddef" 2 3 # 28 "/usr/include/boost/foreach.hpp" 2 3 4 # 1 "/usr/include/c++/5.0.0/utility" 1 3 4 # 58 "/usr/include/c++/5.0.0/utility" 3 4 # 59 "/usr/include/c++/5.0.0/utility" 3 # 69 "/usr/include/c++/5.0.0/utility" 3 # 1 "/usr/include/c++/5.0.0/bits/stl_relops.h" 1 3 # 67 "/usr/include/c++/5.0.0/bits/stl_relops.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace rel_ops { # 85 "/usr/include/c++/5.0.0/bits/stl_relops.h" 3 template inline bool operator!=(const _Tp& __x, const _Tp& __y) { return !(__x == __y); } # 98 "/usr/include/c++/5.0.0/bits/stl_relops.h" 3 template inline bool operator>(const _Tp& __x, const _Tp& __y) { return __y < __x; } # 111 "/usr/include/c++/5.0.0/bits/stl_relops.h" 3 template inline bool operator<=(const _Tp& __x, const _Tp& __y) { return !(__y < __x); } # 124 "/usr/include/c++/5.0.0/bits/stl_relops.h" 3 template inline bool operator>=(const _Tp& __x, const _Tp& __y) { return !(__x < __y); } } } # 70 "/usr/include/c++/5.0.0/utility" 2 3 # 1 "/usr/include/c++/5.0.0/bits/stl_pair.h" 1 3 # 59 "/usr/include/c++/5.0.0/bits/stl_pair.h" 3 # 1 "/usr/include/c++/5.0.0/bits/move.h" 1 3 # 34 "/usr/include/c++/5.0.0/bits/move.h" 3 # 1 "/usr/include/c++/5.0.0/bits/concept_check.h" 1 3 # 33 "/usr/include/c++/5.0.0/bits/concept_check.h" 3 # 34 "/usr/include/c++/5.0.0/bits/concept_check.h" 3 # 35 "/usr/include/c++/5.0.0/bits/move.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template inline _Tp* __addressof(_Tp& __r) { return reinterpret_cast<_Tp*> (&const_cast(reinterpret_cast(__r))); } } # 159 "/usr/include/c++/5.0.0/bits/move.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 174 "/usr/include/c++/5.0.0/bits/move.h" 3 template inline void swap(_Tp& __a, _Tp& __b) { _Tp __tmp = (__a); __a = (__b); __b = (__tmp); } template inline void swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) { for (size_t __n = 0; __n < _Nm; ++__n) swap(__a[__n], __b[__n]); } } # 60 "/usr/include/c++/5.0.0/bits/stl_pair.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 95 "/usr/include/c++/5.0.0/bits/stl_pair.h" 3 template struct pair { typedef _T1 first_type; typedef _T2 second_type; _T1 first; _T2 second; pair() : first(), second() { } pair(const _T1& __a, const _T2& __b) : first(__a), second(__b) { } template pair(const pair<_U1, _U2>& __p) : first(__p.first), second(__p.second) { } # 209 "/usr/include/c++/5.0.0/bits/stl_pair.h" 3 }; template inline bool operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) { return __x.first == __y.first && __x.second == __y.second; } template inline bool operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) { return __x.first < __y.first || (!(__y.first < __x.first) && __x.second < __y.second); } template inline bool operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) { return !(__x == __y); } template inline bool operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) { return __y < __x; } template inline bool operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) { return !(__y < __x); } template inline bool operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) { return !(__x < __y); } # 284 "/usr/include/c++/5.0.0/bits/stl_pair.h" 3 template inline pair<_T1, _T2> make_pair(_T1 __x, _T2 __y) { return pair<_T1, _T2>(__x, __y); } } # 71 "/usr/include/c++/5.0.0/utility" 2 3 # 29 "/usr/include/boost/foreach.hpp" 2 3 4 # 1 "/usr/include/boost/config.hpp" 1 3 4 # 30 "/usr/include/boost/config.hpp" 3 4 # 1 "/usr/include/boost/config/user.hpp" 1 3 4 # 31 "/usr/include/boost/config.hpp" 2 3 4 # 1 "/usr/include/boost/config/select_compiler_config.hpp" 1 3 4 # 36 "/usr/include/boost/config.hpp" 2 3 4 # 1 "/usr/include/boost/config/compiler/gcc.hpp" 1 3 4 # 40 "/usr/include/boost/config.hpp" 2 3 4 # 1 "/usr/include/boost/config/select_stdlib_config.hpp" 1 3 4 # 45 "/usr/include/boost/config.hpp" 2 3 4 # 1 "/usr/include/boost/config/stdlib/libstdcpp3.hpp" 1 3 4 # 49 "/usr/include/boost/config.hpp" 2 3 4 # 1 "/usr/include/boost/config/select_platform_config.hpp" 1 3 4 # 54 "/usr/include/boost/config.hpp" 2 3 4 # 1 "/usr/include/boost/config/platform/linux.hpp" 1 3 4 # 15 "/usr/include/boost/config/platform/linux.hpp" 3 4 # 1 "/usr/include/c++/5.0.0/cstdlib" 1 3 4 # 39 "/usr/include/c++/5.0.0/cstdlib" 3 4 # 40 "/usr/include/c++/5.0.0/cstdlib" 3 # 72 "/usr/include/c++/5.0.0/cstdlib" 3 # 1 "/usr/include/stdlib.h" 1 3 4 # 32 "/usr/include/stdlib.h" 3 4 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stddef.h" 1 3 4 # 33 "/usr/include/stdlib.h" 2 3 4 extern "C" { # 1 "/usr/include/bits/waitflags.h" 1 3 4 # 42 "/usr/include/stdlib.h" 2 3 4 # 1 "/usr/include/bits/waitstatus.h" 1 3 4 # 66 "/usr/include/bits/waitstatus.h" 3 4 union wait { int w_status; struct { unsigned int __w_termsig:7; unsigned int __w_coredump:1; unsigned int __w_retcode:8; unsigned int:16; } __wait_terminated; struct { unsigned int __w_stopval:8; unsigned int __w_stopsig:8; unsigned int:16; } __wait_stopped; }; # 43 "/usr/include/stdlib.h" 2 3 4 # 95 "/usr/include/stdlib.h" 3 4 typedef struct { int quot; int rem; } div_t; typedef struct { long int quot; long int rem; } ldiv_t; __extension__ typedef struct { long long int quot; long long int rem; } lldiv_t; # 139 "/usr/include/stdlib.h" 3 4 extern size_t __ctype_get_mb_cur_max (void) throw () __attribute__ ((__warn_unused_result__)); extern double atof (const char *__nptr) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern int atoi (const char *__nptr) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern long int atol (const char *__nptr) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); __extension__ extern long long int atoll (const char *__nptr) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern double strtod (const char *__restrict __nptr, char **__restrict __endptr) throw () __attribute__ ((__nonnull__ (1))); extern float strtof (const char *__restrict __nptr, char **__restrict __endptr) throw () __attribute__ ((__nonnull__ (1))); extern long double strtold (const char *__restrict __nptr, char **__restrict __endptr) throw () __attribute__ ((__nonnull__ (1))); extern long int strtol (const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () __attribute__ ((__nonnull__ (1))); extern unsigned long int strtoul (const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () __attribute__ ((__nonnull__ (1))); __extension__ extern long long int strtoq (const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () __attribute__ ((__nonnull__ (1))); __extension__ extern unsigned long long int strtouq (const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () __attribute__ ((__nonnull__ (1))); __extension__ extern long long int strtoll (const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () __attribute__ ((__nonnull__ (1))); __extension__ extern unsigned long long int strtoull (const char *__restrict __nptr, char **__restrict __endptr, int __base) throw () __attribute__ ((__nonnull__ (1))); # 235 "/usr/include/stdlib.h" 3 4 # 1 "/usr/include/xlocale.h" 1 3 4 # 27 "/usr/include/xlocale.h" 3 4 typedef struct __locale_struct { struct __locale_data *__locales[13]; const unsigned short int *__ctype_b; const int *__ctype_tolower; const int *__ctype_toupper; const char *__names[13]; } *__locale_t; typedef __locale_t locale_t; # 236 "/usr/include/stdlib.h" 2 3 4 extern long int strtol_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 4))); extern unsigned long int strtoul_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 4))); __extension__ extern long long int strtoll_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 4))); __extension__ extern unsigned long long int strtoull_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 4))); extern double strtod_l (const char *__restrict __nptr, char **__restrict __endptr, __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 3))); extern float strtof_l (const char *__restrict __nptr, char **__restrict __endptr, __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 3))); extern long double strtold_l (const char *__restrict __nptr, char **__restrict __endptr, __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 3))); extern __inline __attribute__ ((__gnu_inline__)) int __attribute__ ((__leaf__)) atoi (const char *__nptr) throw () { return (int) strtol (__nptr, (char **) __null, 10); } extern __inline __attribute__ ((__gnu_inline__)) long int __attribute__ ((__leaf__)) atol (const char *__nptr) throw () { return strtol (__nptr, (char **) __null, 10); } __extension__ extern __inline __attribute__ ((__gnu_inline__)) long long int __attribute__ ((__leaf__)) atoll (const char *__nptr) throw () { return strtoll (__nptr, (char **) __null, 10); } # 305 "/usr/include/stdlib.h" 3 4 extern char *l64a (long int __n) throw () __attribute__ ((__warn_unused_result__)); extern long int a64l (const char *__s) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); # 321 "/usr/include/stdlib.h" 3 4 extern long int random (void) throw (); extern void srandom (unsigned int __seed) throw (); extern char *initstate (unsigned int __seed, char *__statebuf, size_t __statelen) throw () __attribute__ ((__nonnull__ (2))); extern char *setstate (char *__statebuf) throw () __attribute__ ((__nonnull__ (1))); struct random_data { int32_t *fptr; int32_t *rptr; int32_t *state; int rand_type; int rand_deg; int rand_sep; int32_t *end_ptr; }; extern int random_r (struct random_data *__restrict __buf, int32_t *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2))); extern int srandom_r (unsigned int __seed, struct random_data *__buf) throw () __attribute__ ((__nonnull__ (2))); extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, size_t __statelen, struct random_data *__restrict __buf) throw () __attribute__ ((__nonnull__ (2, 4))); extern int setstate_r (char *__restrict __statebuf, struct random_data *__restrict __buf) throw () __attribute__ ((__nonnull__ (1, 2))); extern int rand (void) throw (); extern void srand (unsigned int __seed) throw (); extern int rand_r (unsigned int *__seed) throw (); extern double drand48 (void) throw (); extern double erand48 (unsigned short int __xsubi[3]) throw () __attribute__ ((__nonnull__ (1))); extern long int lrand48 (void) throw (); extern long int nrand48 (unsigned short int __xsubi[3]) throw () __attribute__ ((__nonnull__ (1))); extern long int mrand48 (void) throw (); extern long int jrand48 (unsigned short int __xsubi[3]) throw () __attribute__ ((__nonnull__ (1))); extern void srand48 (long int __seedval) throw (); extern unsigned short int *seed48 (unsigned short int __seed16v[3]) throw () __attribute__ ((__nonnull__ (1))); extern void lcong48 (unsigned short int __param[7]) throw () __attribute__ ((__nonnull__ (1))); struct drand48_data { unsigned short int __x[3]; unsigned short int __old_x[3]; unsigned short int __c; unsigned short int __init; __extension__ unsigned long long int __a; }; extern int drand48_r (struct drand48_data *__restrict __buffer, double *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2))); extern int erand48_r (unsigned short int __xsubi[3], struct drand48_data *__restrict __buffer, double *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2))); extern int lrand48_r (struct drand48_data *__restrict __buffer, long int *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2))); extern int nrand48_r (unsigned short int __xsubi[3], struct drand48_data *__restrict __buffer, long int *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2))); extern int mrand48_r (struct drand48_data *__restrict __buffer, long int *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2))); extern int jrand48_r (unsigned short int __xsubi[3], struct drand48_data *__restrict __buffer, long int *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2))); extern int srand48_r (long int __seedval, struct drand48_data *__buffer) throw () __attribute__ ((__nonnull__ (2))); extern int seed48_r (unsigned short int __seed16v[3], struct drand48_data *__buffer) throw () __attribute__ ((__nonnull__ (1, 2))); extern int lcong48_r (unsigned short int __param[7], struct drand48_data *__buffer) throw () __attribute__ ((__nonnull__ (1, 2))); extern void *malloc (size_t __size) throw () __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)); extern void *calloc (size_t __nmemb, size_t __size) throw () __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)); extern void *realloc (void *__ptr, size_t __size) throw () __attribute__ ((__warn_unused_result__)); extern void free (void *__ptr) throw (); extern void cfree (void *__ptr) throw (); # 1 "/usr/include/alloca.h" 1 3 4 # 24 "/usr/include/alloca.h" 3 4 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stddef.h" 1 3 4 # 25 "/usr/include/alloca.h" 2 3 4 extern "C" { extern void *alloca (size_t __size) throw (); } # 493 "/usr/include/stdlib.h" 2 3 4 extern void *valloc (size_t __size) throw () __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)); extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern void *aligned_alloc (size_t __alignment, size_t __size) throw () __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (2))) __attribute__ ((__warn_unused_result__)); extern void abort (void) throw () __attribute__ ((__noreturn__)); extern int atexit (void (*__func) (void)) throw () __attribute__ ((__nonnull__ (1))); extern "C++" int at_quick_exit (void (*__func) (void)) throw () __asm ("at_quick_exit") __attribute__ ((__nonnull__ (1))); extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) throw () __attribute__ ((__nonnull__ (1))); extern void exit (int __status) throw () __attribute__ ((__noreturn__)); extern void quick_exit (int __status) throw () __attribute__ ((__noreturn__)); extern void _Exit (int __status) throw () __attribute__ ((__noreturn__)); extern char *getenv (const char *__name) throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern char *secure_getenv (const char *__name) throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern int putenv (char *__string) throw () __attribute__ ((__nonnull__ (1))); extern int setenv (const char *__name, const char *__value, int __replace) throw () __attribute__ ((__nonnull__ (2))); extern int unsetenv (const char *__name) throw () __attribute__ ((__nonnull__ (1))); extern int clearenv (void) throw (); # 606 "/usr/include/stdlib.h" 3 4 extern char *mktemp (char *__template) throw () __attribute__ ((__nonnull__ (1))); # 619 "/usr/include/stdlib.h" 3 4 extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); # 629 "/usr/include/stdlib.h" 3 4 extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); # 641 "/usr/include/stdlib.h" 3 4 extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); # 651 "/usr/include/stdlib.h" 3 4 extern int mkstemps64 (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); # 662 "/usr/include/stdlib.h" 3 4 extern char *mkdtemp (char *__template) throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); # 673 "/usr/include/stdlib.h" 3 4 extern int mkostemp (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); # 683 "/usr/include/stdlib.h" 3 4 extern int mkostemp64 (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); # 693 "/usr/include/stdlib.h" 3 4 extern int mkostemps (char *__template, int __suffixlen, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); # 705 "/usr/include/stdlib.h" 3 4 extern int mkostemps64 (char *__template, int __suffixlen, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern int system (const char *__command) __attribute__ ((__warn_unused_result__)); extern char *canonicalize_file_name (const char *__name) throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); # 733 "/usr/include/stdlib.h" 3 4 extern char *realpath (const char *__restrict __name, char *__restrict __resolved) throw () __attribute__ ((__warn_unused_result__)); typedef int (*__compar_fn_t) (const void *, const void *); typedef __compar_fn_t comparison_fn_t; typedef int (*__compar_d_fn_t) (const void *, const void *, void *); extern void *bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 2, 5))) __attribute__ ((__warn_unused_result__)); # 1 "/usr/include/bits/stdlib-bsearch.h" 1 3 4 # 19 "/usr/include/bits/stdlib-bsearch.h" 3 4 extern __inline __attribute__ ((__gnu_inline__)) void * bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, __compar_fn_t __compar) { size_t __l, __u, __idx; const void *__p; int __comparison; __l = 0; __u = __nmemb; while (__l < __u) { __idx = (__l + __u) / 2; __p = (void *) (((const char *) __base) + (__idx * __size)); __comparison = (*__compar) (__key, __p); if (__comparison < 0) __u = __idx; else if (__comparison > 0) __l = __idx + 1; else return (void *) __p; } return __null; } # 760 "/usr/include/stdlib.h" 2 3 4 extern void qsort (void *__base, size_t __nmemb, size_t __size, __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); extern void qsort_r (void *__base, size_t __nmemb, size_t __size, __compar_d_fn_t __compar, void *__arg) __attribute__ ((__nonnull__ (1, 4))); extern int abs (int __x) throw () __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); extern long int labs (long int __x) throw () __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); __extension__ extern long long int llabs (long long int __x) throw () __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); extern div_t div (int __numer, int __denom) throw () __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); extern ldiv_t ldiv (long int __numer, long int __denom) throw () __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); __extension__ extern lldiv_t lldiv (long long int __numer, long long int __denom) throw () __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); # 811 "/usr/include/stdlib.h" 3 4 extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) throw () __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) throw () __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); extern char *gcvt (double __value, int __ndigit, char *__buf) throw () __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); extern char *qecvt (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) throw () __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); extern char *qfcvt (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) throw () __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); extern char *qgcvt (long double __value, int __ndigit, char *__buf) throw () __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) throw () __attribute__ ((__nonnull__ (3, 4, 5))); extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) throw () __attribute__ ((__nonnull__ (3, 4, 5))); extern int qecvt_r (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) throw () __attribute__ ((__nonnull__ (3, 4, 5))); extern int qfcvt_r (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) throw () __attribute__ ((__nonnull__ (3, 4, 5))); extern int mblen (const char *__s, size_t __n) throw (); extern int mbtowc (wchar_t *__restrict __pwc, const char *__restrict __s, size_t __n) throw (); extern int wctomb (char *__s, wchar_t __wchar) throw (); extern size_t mbstowcs (wchar_t *__restrict __pwcs, const char *__restrict __s, size_t __n) throw (); extern size_t wcstombs (char *__restrict __s, const wchar_t *__restrict __pwcs, size_t __n) throw (); extern int rpmatch (const char *__response) throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); # 898 "/usr/include/stdlib.h" 3 4 extern int getsubopt (char **__restrict __optionp, char *const *__restrict __tokens, char **__restrict __valuep) throw () __attribute__ ((__nonnull__ (1, 2, 3))) __attribute__ ((__warn_unused_result__)); extern void setkey (const char *__key) throw () __attribute__ ((__nonnull__ (1))); extern int posix_openpt (int __oflag) __attribute__ ((__warn_unused_result__)); extern int grantpt (int __fd) throw (); extern int unlockpt (int __fd) throw (); extern char *ptsname (int __fd) throw () __attribute__ ((__warn_unused_result__)); extern int ptsname_r (int __fd, char *__buf, size_t __buflen) throw () __attribute__ ((__nonnull__ (2))); extern int getpt (void); extern int getloadavg (double __loadavg[], int __nelem) throw () __attribute__ ((__nonnull__ (1))); # 1 "/usr/include/bits/stdlib-float.h" 1 3 4 # 24 "/usr/include/bits/stdlib-float.h" 3 4 extern __inline __attribute__ ((__gnu_inline__)) double __attribute__ ((__leaf__)) atof (const char *__nptr) throw () { return strtod (__nptr, (char **) __null); } # 955 "/usr/include/stdlib.h" 2 3 4 # 1 "/usr/include/bits/stdlib.h" 1 3 4 # 23 "/usr/include/bits/stdlib.h" 3 4 extern char *__realpath_chk (const char *__restrict __name, char *__restrict __resolved, size_t __resolvedlen) throw () __attribute__ ((__warn_unused_result__)); extern char *__realpath_alias (const char *__restrict __name, char *__restrict __resolved) throw () __asm__ ("" "realpath") __attribute__ ((__warn_unused_result__)); extern char *__realpath_chk_warn (const char *__restrict __name, char *__restrict __resolved, size_t __resolvedlen) throw () __asm__ ("" "__realpath_chk") __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("second argument of realpath must be either NULL or at " "least PATH_MAX bytes long buffer"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * __attribute__ ((__leaf__)) realpath (const char *__restrict __name, char *__restrict __resolved) throw () { if (__builtin_object_size (__resolved, 2 > 1) != (size_t) -1) { return __realpath_chk (__name, __resolved, __builtin_object_size (__resolved, 2 > 1)); } return __realpath_alias (__name, __resolved); } extern int __ptsname_r_chk (int __fd, char *__buf, size_t __buflen, size_t __nreal) throw () __attribute__ ((__nonnull__ (2))); extern int __ptsname_r_alias (int __fd, char *__buf, size_t __buflen) throw () __asm__ ("" "ptsname_r") __attribute__ ((__nonnull__ (2))); extern int __ptsname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) throw () __asm__ ("" "__ptsname_r_chk") __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ptsname_r called with buflen bigger than " "size of buf"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) ptsname_r (int __fd, char *__buf, size_t __buflen) throw () { if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) { if (!__builtin_constant_p (__buflen)) return __ptsname_r_chk (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)); if (__buflen > __builtin_object_size (__buf, 2 > 1)) return __ptsname_r_chk_warn (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)); } return __ptsname_r_alias (__fd, __buf, __buflen); } extern int __wctomb_chk (char *__s, wchar_t __wchar, size_t __buflen) throw () __attribute__ ((__warn_unused_result__)); extern int __wctomb_alias (char *__s, wchar_t __wchar) throw () __asm__ ("" "wctomb") __attribute__ ((__warn_unused_result__)); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) int __attribute__ ((__leaf__)) wctomb (char *__s, wchar_t __wchar) throw () { if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 && 16 > __builtin_object_size (__s, 2 > 1)) return __wctomb_chk (__s, __wchar, __builtin_object_size (__s, 2 > 1)); return __wctomb_alias (__s, __wchar); } extern size_t __mbstowcs_chk (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, size_t __dstlen) throw (); extern size_t __mbstowcs_alias (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) throw () __asm__ ("" "mbstowcs") ; extern size_t __mbstowcs_chk_warn (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, size_t __dstlen) throw () __asm__ ("" "__mbstowcs_chk") __attribute__((__warning__ ("mbstowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t __attribute__ ((__leaf__)) mbstowcs (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) throw () { if (__builtin_object_size (__dst, 2 > 1) != (size_t) -1) { if (!__builtin_constant_p (__len)) return __mbstowcs_chk (__dst, __src, __len, __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t)); if (__len > __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t)) return __mbstowcs_chk_warn (__dst, __src, __len, __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t)); } return __mbstowcs_alias (__dst, __src, __len); } extern size_t __wcstombs_chk (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len, size_t __dstlen) throw (); extern size_t __wcstombs_alias (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) throw () __asm__ ("" "wcstombs") ; extern size_t __wcstombs_chk_warn (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len, size_t __dstlen) throw () __asm__ ("" "__wcstombs_chk") __attribute__((__warning__ ("wcstombs called with dst buffer smaller than len"))); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t __attribute__ ((__leaf__)) wcstombs (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) throw () { if (__builtin_object_size (__dst, 2 > 1) != (size_t) -1) { if (!__builtin_constant_p (__len)) return __wcstombs_chk (__dst, __src, __len, __builtin_object_size (__dst, 2 > 1)); if (__len > __builtin_object_size (__dst, 2 > 1)) return __wcstombs_chk_warn (__dst, __src, __len, __builtin_object_size (__dst, 2 > 1)); } return __wcstombs_alias (__dst, __src, __len); } # 959 "/usr/include/stdlib.h" 2 3 4 # 967 "/usr/include/stdlib.h" 3 4 } # 73 "/usr/include/c++/5.0.0/cstdlib" 2 3 # 114 "/usr/include/c++/5.0.0/cstdlib" 3 namespace std __attribute__ ((__visibility__ ("default"))) { using ::div_t; using ::ldiv_t; using ::abort; using ::abs; using ::atexit; using ::atof; using ::atoi; using ::atol; using ::bsearch; using ::calloc; using ::div; using ::exit; using ::free; using ::getenv; using ::labs; using ::ldiv; using ::malloc; using ::mblen; using ::mbstowcs; using ::mbtowc; using ::qsort; using ::rand; using ::realloc; using ::srand; using ::strtod; using ::strtol; using ::strtoul; using ::system; using ::wcstombs; using ::wctomb; inline long abs(long __i) { return __builtin_labs(__i); } inline ldiv_t div(long __i, long __j) { return ldiv(__i, __j); } inline long long abs(long long __x) { return __builtin_llabs (__x); } inline __int128 abs(__int128 __x) { return __x >= 0 ? __x : -__x; } # 195 "/usr/include/c++/5.0.0/cstdlib" 3 } # 209 "/usr/include/c++/5.0.0/cstdlib" 3 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { using ::lldiv_t; using ::_Exit; using ::llabs; inline lldiv_t div(long long __n, long long __d) { lldiv_t __q; __q.quot = __n / __d; __q.rem = __n % __d; return __q; } using ::lldiv; # 241 "/usr/include/c++/5.0.0/cstdlib" 3 using ::atoll; using ::strtoll; using ::strtoull; using ::strtof; using ::strtold; } namespace std { using ::__gnu_cxx::lldiv_t; using ::__gnu_cxx::_Exit; using ::__gnu_cxx::llabs; using ::__gnu_cxx::div; using ::__gnu_cxx::lldiv; using ::__gnu_cxx::atoll; using ::__gnu_cxx::strtof; using ::__gnu_cxx::strtoll; using ::__gnu_cxx::strtoull; using ::__gnu_cxx::strtold; } # 16 "/usr/include/boost/config/platform/linux.hpp" 2 3 4 # 74 "/usr/include/boost/config/platform/linux.hpp" 3 4 # 1 "/usr/include/boost/config/posix_features.hpp" 1 3 4 # 75 "/usr/include/boost/config/platform/linux.hpp" 2 3 4 # 58 "/usr/include/boost/config.hpp" 2 3 4 # 1 "/usr/include/boost/config/suffix.hpp" 1 3 4 # 34 "/usr/include/boost/config/suffix.hpp" 3 4 # 35 "/usr/include/boost/config/suffix.hpp" 3 # 482 "/usr/include/boost/config/suffix.hpp" 3 namespace boost{ __extension__ typedef long long long_long_type; __extension__ typedef unsigned long long ulong_long_type; } namespace boost{ __extension__ typedef __int128 int128_type; __extension__ typedef unsigned __int128 uint128_type; } # 62 "/usr/include/boost/config.hpp" 2 3 4 # 31 "/usr/include/boost/foreach.hpp" 2 3 4 # 1 "/usr/include/boost/detail/workaround.hpp" 1 3 4 # 32 "/usr/include/boost/foreach.hpp" 2 3 4 # 68 "/usr/include/boost/foreach.hpp" 3 4 # 1 "/usr/include/boost/mpl/if.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/if.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/value_wknd.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/aux_/value_wknd.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/static_cast.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/aux_/static_cast.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/config/workaround.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/aux_/static_cast.hpp" 2 3 4 # 18 "/usr/include/boost/mpl/aux_/value_wknd.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/config/integral.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/aux_/config/integral.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/config/msvc.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/aux_/config/integral.hpp" 2 3 4 # 19 "/usr/include/boost/mpl/aux_/value_wknd.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/config/eti.hpp" 1 3 4 # 20 "/usr/include/boost/mpl/aux_/value_wknd.hpp" 2 3 4 # 73 "/usr/include/boost/mpl/aux_/value_wknd.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< typename T > struct value_type_wknd { typedef typename T::value_type type; }; # 87 "/usr/include/boost/mpl/aux_/value_wknd.hpp" 3 4 }}} # 18 "/usr/include/boost/mpl/if.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/na_spec.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/aux_/na_spec.hpp" 3 4 # 1 "/usr/include/boost/mpl/lambda_fwd.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/lambda_fwd.hpp" 3 4 # 1 "/usr/include/boost/mpl/void_fwd.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/void_fwd.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/adl_barrier.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/aux_/adl_barrier.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/config/adl.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/aux_/config/adl.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/config/intel.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/aux_/config/adl.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/config/gcc.hpp" 1 3 4 # 20 "/usr/include/boost/mpl/aux_/config/adl.hpp" 2 3 4 # 18 "/usr/include/boost/mpl/aux_/adl_barrier.hpp" 2 3 4 # 33 "/usr/include/boost/mpl/aux_/adl_barrier.hpp" 3 4 namespace mpl_ { namespace aux {} } namespace boost { namespace mpl { using namespace mpl_; namespace aux { using namespace mpl_::aux; } }} # 18 "/usr/include/boost/mpl/void_fwd.hpp" 2 3 4 namespace mpl_ { struct void_; } namespace boost { namespace mpl { using ::mpl_::void_; } } # 18 "/usr/include/boost/mpl/lambda_fwd.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/na.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/aux_/na.hpp" 3 4 # 1 "/usr/include/boost/mpl/bool.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/bool.hpp" 3 4 # 1 "/usr/include/boost/mpl/bool_fwd.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/bool_fwd.hpp" 3 4 namespace mpl_ { template< bool C_ > struct bool_; typedef bool_ true_; typedef bool_ false_; } namespace boost { namespace mpl { using ::mpl_::bool_; } } namespace boost { namespace mpl { using ::mpl_::true_; } } namespace boost { namespace mpl { using ::mpl_::false_; } } # 18 "/usr/include/boost/mpl/bool.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/integral_c_tag.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/integral_c_tag.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/config/static_constant.hpp" 1 3 4 # 20 "/usr/include/boost/mpl/integral_c_tag.hpp" 2 3 4 namespace mpl_ { struct integral_c_tag { static const int value = 0; }; } namespace boost { namespace mpl { using ::mpl_::integral_c_tag; } } # 19 "/usr/include/boost/mpl/bool.hpp" 2 3 4 namespace mpl_ { template< bool C_ > struct bool_ { static const bool value = C_; typedef integral_c_tag tag; typedef bool_ type; typedef bool value_type; operator bool() const { return this->value; } }; template< bool C_ > bool const bool_::value; } # 18 "/usr/include/boost/mpl/aux_/na.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/na_fwd.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/aux_/na_fwd.hpp" 3 4 namespace mpl_ { struct na { typedef na type; enum { value = 0 }; }; } namespace boost { namespace mpl { using ::mpl_::na; } } # 19 "/usr/include/boost/mpl/aux_/na.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/config/ctps.hpp" 1 3 4 # 21 "/usr/include/boost/mpl/aux_/na.hpp" 2 3 4 namespace boost { namespace mpl { template< typename T > struct is_na : false_ { }; template<> struct is_na : true_ { }; template< typename T > struct is_not_na : true_ { }; template<> struct is_not_na : false_ { }; template< typename T, typename U > struct if_na { typedef T type; }; template< typename U > struct if_na { typedef U type; }; # 93 "/usr/include/boost/mpl/aux_/na.hpp" 3 4 }} # 19 "/usr/include/boost/mpl/lambda_fwd.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/config/lambda.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/aux_/config/lambda.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/config/ttp.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/aux_/config/lambda.hpp" 2 3 4 # 20 "/usr/include/boost/mpl/lambda_fwd.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/int.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/int.hpp" 3 4 # 1 "/usr/include/boost/mpl/int_fwd.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/int_fwd.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/nttp_decl.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/aux_/nttp_decl.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/config/nttp.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/aux_/nttp_decl.hpp" 2 3 4 # 19 "/usr/include/boost/mpl/int_fwd.hpp" 2 3 4 namespace mpl_ { template< int N > struct int_; } namespace boost { namespace mpl { using ::mpl_::int_; } } # 18 "/usr/include/boost/mpl/int.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/integral_wrapper.hpp" 1 3 4 # 22 "/usr/include/boost/mpl/aux_/integral_wrapper.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/cat.hpp" 1 3 4 # 17 "/usr/include/boost/preprocessor/cat.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/config/config.hpp" 1 3 4 # 18 "/usr/include/boost/preprocessor/cat.hpp" 2 3 4 # 23 "/usr/include/boost/mpl/aux_/integral_wrapper.hpp" 2 3 4 # 40 "/usr/include/boost/mpl/aux_/integral_wrapper.hpp" 3 4 namespace mpl_ { template< int N > struct int_ { static const int value = N; typedef int_ type; typedef int value_type; typedef integral_c_tag tag; # 72 "/usr/include/boost/mpl/aux_/integral_wrapper.hpp" 3 4 typedef mpl_::int_< static_cast((value + 1)) > next; typedef mpl_::int_< static_cast((value - 1)) > prior; operator int() const { return static_cast(this->value); } }; template< int N > int const mpl_::int_< N >::value; } # 21 "/usr/include/boost/mpl/int.hpp" 2 3 4 # 24 "/usr/include/boost/mpl/lambda_fwd.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/lambda_arity_param.hpp" 1 3 4 # 25 "/usr/include/boost/mpl/lambda_fwd.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/template_arity_fwd.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/aux_/template_arity_fwd.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< typename F > struct template_arity; }}} # 26 "/usr/include/boost/mpl/lambda_fwd.hpp" 2 3 4 namespace boost { namespace mpl { template< typename T = na , typename Tag = void_ , typename Arity = int_< aux::template_arity::value > > struct lambda; }} # 19 "/usr/include/boost/mpl/aux_/na_spec.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/arity.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/aux_/arity.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/config/dtp.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/aux_/arity.hpp" 2 3 4 # 23 "/usr/include/boost/mpl/aux_/na_spec.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessor/params.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/aux_/preprocessor/params.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/config/preprocessor.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/aux_/preprocessor/params.hpp" 2 3 4 # 45 "/usr/include/boost/mpl/aux_/preprocessor/params.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/comma_if.hpp" 1 3 4 # 15 "/usr/include/boost/preprocessor/comma_if.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/punctuation/comma_if.hpp" 1 3 4 # 18 "/usr/include/boost/preprocessor/punctuation/comma_if.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/control/if.hpp" 1 3 4 # 18 "/usr/include/boost/preprocessor/control/if.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/control/iif.hpp" 1 3 4 # 19 "/usr/include/boost/preprocessor/control/if.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/logical/bool.hpp" 1 3 4 # 20 "/usr/include/boost/preprocessor/control/if.hpp" 2 3 4 # 19 "/usr/include/boost/preprocessor/punctuation/comma_if.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/facilities/empty.hpp" 1 3 4 # 20 "/usr/include/boost/preprocessor/punctuation/comma_if.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/punctuation/comma.hpp" 1 3 4 # 21 "/usr/include/boost/preprocessor/punctuation/comma_if.hpp" 2 3 4 # 16 "/usr/include/boost/preprocessor/comma_if.hpp" 2 3 4 # 46 "/usr/include/boost/mpl/aux_/preprocessor/params.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/repeat.hpp" 1 3 4 # 15 "/usr/include/boost/preprocessor/repeat.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/repetition/repeat.hpp" 1 3 4 # 19 "/usr/include/boost/preprocessor/repetition/repeat.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/debug/error.hpp" 1 3 4 # 20 "/usr/include/boost/preprocessor/repetition/repeat.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/detail/auto_rec.hpp" 1 3 4 # 21 "/usr/include/boost/preprocessor/repetition/repeat.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/tuple/eat.hpp" 1 3 4 # 22 "/usr/include/boost/preprocessor/repetition/repeat.hpp" 2 3 4 # 16 "/usr/include/boost/preprocessor/repeat.hpp" 2 3 4 # 47 "/usr/include/boost/mpl/aux_/preprocessor/params.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/inc.hpp" 1 3 4 # 15 "/usr/include/boost/preprocessor/inc.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/arithmetic/inc.hpp" 1 3 4 # 16 "/usr/include/boost/preprocessor/inc.hpp" 2 3 4 # 48 "/usr/include/boost/mpl/aux_/preprocessor/params.hpp" 2 3 4 # 27 "/usr/include/boost/mpl/aux_/na_spec.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessor/enum.hpp" 1 3 4 # 28 "/usr/include/boost/mpl/aux_/na_spec.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp" 3 4 # 1 "/usr/include/boost/mpl/limits/arity.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/logical/and.hpp" 1 3 4 # 19 "/usr/include/boost/preprocessor/logical/and.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/logical/bitand.hpp" 1 3 4 # 20 "/usr/include/boost/preprocessor/logical/and.hpp" 2 3 4 # 23 "/usr/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/identity.hpp" 1 3 4 # 15 "/usr/include/boost/preprocessor/identity.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/facilities/identity.hpp" 1 3 4 # 16 "/usr/include/boost/preprocessor/identity.hpp" 2 3 4 # 24 "/usr/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/empty.hpp" 1 3 4 # 25 "/usr/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp" 2 3 4 # 66 "/usr/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/arithmetic/add.hpp" 1 3 4 # 17 "/usr/include/boost/preprocessor/arithmetic/add.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/arithmetic/dec.hpp" 1 3 4 # 18 "/usr/include/boost/preprocessor/arithmetic/add.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/control/while.hpp" 1 3 4 # 20 "/usr/include/boost/preprocessor/control/while.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/detail/auto_rec.hpp" 1 3 4 # 21 "/usr/include/boost/preprocessor/control/while.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/list/fold_left.hpp" 1 3 4 # 18 "/usr/include/boost/preprocessor/list/fold_left.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/control/while.hpp" 1 3 4 # 19 "/usr/include/boost/preprocessor/list/fold_left.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/detail/auto_rec.hpp" 1 3 4 # 21 "/usr/include/boost/preprocessor/list/fold_left.hpp" 2 3 4 # 41 "/usr/include/boost/preprocessor/list/fold_left.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/list/detail/fold_left.hpp" 1 3 4 # 17 "/usr/include/boost/preprocessor/list/detail/fold_left.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/control/expr_iif.hpp" 1 3 4 # 18 "/usr/include/boost/preprocessor/list/detail/fold_left.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/list/adt.hpp" 1 3 4 # 18 "/usr/include/boost/preprocessor/list/adt.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/detail/is_binary.hpp" 1 3 4 # 16 "/usr/include/boost/preprocessor/detail/is_binary.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/detail/check.hpp" 1 3 4 # 17 "/usr/include/boost/preprocessor/detail/is_binary.hpp" 2 3 4 # 19 "/usr/include/boost/preprocessor/list/adt.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/logical/compl.hpp" 1 3 4 # 20 "/usr/include/boost/preprocessor/list/adt.hpp" 2 3 4 # 20 "/usr/include/boost/preprocessor/list/detail/fold_left.hpp" 2 3 4 # 42 "/usr/include/boost/preprocessor/list/fold_left.hpp" 2 3 4 # 22 "/usr/include/boost/preprocessor/control/while.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/list/fold_right.hpp" 1 3 4 # 20 "/usr/include/boost/preprocessor/list/fold_right.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/detail/auto_rec.hpp" 1 3 4 # 21 "/usr/include/boost/preprocessor/list/fold_right.hpp" 2 3 4 # 37 "/usr/include/boost/preprocessor/list/fold_right.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/list/detail/fold_right.hpp" 1 3 4 # 18 "/usr/include/boost/preprocessor/list/detail/fold_right.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/list/reverse.hpp" 1 3 4 # 19 "/usr/include/boost/preprocessor/list/detail/fold_right.hpp" 2 3 4 # 38 "/usr/include/boost/preprocessor/list/fold_right.hpp" 2 3 4 # 23 "/usr/include/boost/preprocessor/control/while.hpp" 2 3 4 # 48 "/usr/include/boost/preprocessor/control/while.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/control/detail/while.hpp" 1 3 4 # 49 "/usr/include/boost/preprocessor/control/while.hpp" 2 3 4 # 21 "/usr/include/boost/preprocessor/arithmetic/add.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/tuple/elem.hpp" 1 3 4 # 20 "/usr/include/boost/preprocessor/tuple/elem.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/facilities/expand.hpp" 1 3 4 # 21 "/usr/include/boost/preprocessor/tuple/elem.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/facilities/overload.hpp" 1 3 4 # 17 "/usr/include/boost/preprocessor/facilities/overload.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/variadic/size.hpp" 1 3 4 # 18 "/usr/include/boost/preprocessor/facilities/overload.hpp" 2 3 4 # 22 "/usr/include/boost/preprocessor/tuple/elem.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/tuple/rem.hpp" 1 3 4 # 20 "/usr/include/boost/preprocessor/tuple/rem.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/tuple/detail/is_single_return.hpp" 1 3 4 # 21 "/usr/include/boost/preprocessor/tuple/rem.hpp" 2 3 4 # 23 "/usr/include/boost/preprocessor/tuple/elem.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/variadic/elem.hpp" 1 3 4 # 24 "/usr/include/boost/preprocessor/tuple/elem.hpp" 2 3 4 # 22 "/usr/include/boost/preprocessor/arithmetic/add.hpp" 2 3 4 # 67 "/usr/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/arithmetic/sub.hpp" 1 3 4 # 68 "/usr/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp" 2 3 4 # 29 "/usr/include/boost/mpl/aux_/na_spec.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/config/overload_resolution.hpp" 1 3 4 # 36 "/usr/include/boost/mpl/aux_/na_spec.hpp" 2 3 4 # 20 "/usr/include/boost/mpl/if.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/lambda_support.hpp" 1 3 4 # 21 "/usr/include/boost/mpl/if.hpp" 2 3 4 namespace boost { namespace mpl { template< bool C , typename T1 , typename T2 > struct if_c { typedef T1 type; }; template< typename T1 , typename T2 > struct if_c { typedef T2 type; }; template< typename T1 = na , typename T2 = na , typename T3 = na > struct if_ { private: typedef if_c< static_cast(T1::value) , T2 , T3 > almost_type_; public: typedef typename almost_type_::type type; }; # 131 "/usr/include/boost/mpl/if.hpp" 3 4 template<> struct if_< na , na , na > { template< typename T1 , typename T2 , typename T3 , typename T4 =na , typename T5 =na > struct apply : if_< T1 , T2 , T3 > { }; }; template< typename Tag > struct lambda< if_< na , na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef if_< na , na , na > result_; typedef if_< na , na , na > type; }; namespace aux { template< typename T1 , typename T2 , typename T3 > struct template_arity< if_< T1 , T2 , T3 > > : int_<3> { }; template<> struct template_arity< if_< na , na , na > > : int_<-1> { }; } }} # 69 "/usr/include/boost/foreach.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/assert.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/assert.hpp" 3 4 # 1 "/usr/include/boost/mpl/not.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/not.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/nested_type_wknd.hpp" 1 3 4 # 25 "/usr/include/boost/mpl/aux_/nested_type_wknd.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< typename T > struct nested_type_wknd : T::type { }; }}} # 20 "/usr/include/boost/mpl/not.hpp" 2 3 4 namespace boost { namespace mpl { namespace aux { template< long C_ > struct not_impl : bool_ { }; } template< typename T = na > struct not_ : aux::not_impl< ::boost::mpl::aux::nested_type_wknd::value > { }; template<> struct not_< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : not_< T1 > { }; }; template< typename Tag > struct lambda< not_< na > , Tag , int_<-1> > { typedef false_ is_le; typedef not_< na > result_; typedef not_< na > type; }; namespace aux { template< typename T1 > struct template_arity< not_< T1 > > : int_<1> { }; template<> struct template_arity< not_< na > > : int_<-1> { }; } }} # 18 "/usr/include/boost/mpl/assert.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/yes_no.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/aux_/yes_no.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/config/arrays.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/aux_/yes_no.hpp" 2 3 4 namespace boost { namespace mpl { namespace aux { typedef char (&no_tag)[1]; typedef char (&yes_tag)[2]; template< bool C_ > struct yes_no_tag { typedef no_tag type; }; template<> struct yes_no_tag { typedef yes_tag type; }; template< long n > struct weighted_tag { typedef char (&type)[n]; }; # 56 "/usr/include/boost/mpl/aux_/yes_no.hpp" 3 4 }}} # 21 "/usr/include/boost/mpl/assert.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/config/gpu.hpp" 1 3 4 # 29 "/usr/include/boost/mpl/assert.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/config/pp_counter.hpp" 1 3 4 # 31 "/usr/include/boost/mpl/assert.hpp" 2 3 4 # 66 "/usr/include/boost/mpl/assert.hpp" 3 4 namespace mpl_ { struct failed {}; # 79 "/usr/include/boost/mpl/assert.hpp" 3 4 template< bool C > struct assert { typedef void* type; }; template<> struct assert { typedef assert type; }; template< bool C > int assertion_failed( typename assert::type ); template< bool C > struct assertion { static int failed( assert ); }; template<> struct assertion { static int failed( void* ); }; struct assert_ { template< typename T1, typename T2 = na, typename T3 = na, typename T4 = na > struct types {}; static assert_ const arg; enum relations { equal = 1, not_equal, greater, greater_equal, less, less_equal }; }; # 127 "/usr/include/boost/mpl/assert.hpp" 3 4 boost::mpl::aux::weighted_tag<1>::type operator==( assert_, assert_ ); boost::mpl::aux::weighted_tag<2>::type operator!=( assert_, assert_ ); boost::mpl::aux::weighted_tag<3>::type operator>( assert_, assert_ ); boost::mpl::aux::weighted_tag<4>::type operator>=( assert_, assert_ ); boost::mpl::aux::weighted_tag<5>::type operator<( assert_, assert_ ); boost::mpl::aux::weighted_tag<6>::type operator<=( assert_, assert_ ); template< assert_::relations r, long x, long y > struct assert_relation {}; # 171 "/usr/include/boost/mpl/assert.hpp" 3 4 template< bool > struct assert_arg_pred_impl { typedef int type; }; template<> struct assert_arg_pred_impl { typedef void* type; }; template< typename P > struct assert_arg_pred { typedef typename P::type p_type; typedef typename assert_arg_pred_impl< p_type::value >::type type; }; template< typename P > struct assert_arg_pred_not { typedef typename P::type p_type; enum { p = !p_type::value }; typedef typename assert_arg_pred_impl

::type type; }; template< typename Pred > failed ************ (Pred::************ assert_arg( void (*)(Pred), typename assert_arg_pred::type ) ); template< typename Pred > failed ************ (boost::mpl::not_::************ assert_not_arg( void (*)(Pred), typename assert_arg_pred_not::type ) ); template< typename Pred > assert assert_arg( void (*)(Pred), typename assert_arg_pred_not::type ); template< typename Pred > assert assert_not_arg( void (*)(Pred), typename assert_arg_pred::type ); # 246 "/usr/include/boost/mpl/assert.hpp" 3 4 } # 70 "/usr/include/boost/foreach.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/logical.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/logical.hpp" 3 4 # 1 "/usr/include/boost/mpl/or.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/or.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/config/use_preprocessed.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/or.hpp" 2 3 4 # 43 "/usr/include/boost/mpl/or.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 16 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/config/compiler.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/stringize.hpp" 1 3 4 # 21 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/or.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/aux_/preprocessed/gcc/or.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< bool C_, typename T1, typename T2, typename T3, typename T4 > struct or_impl : true_ { }; template< typename T1, typename T2, typename T3, typename T4 > struct or_impl< false,T1,T2,T3,T4 > : or_impl< ::boost::mpl::aux::nested_type_wknd::value , T2, T3, T4 , false_ > { }; template<> struct or_impl< false , false_, false_, false_, false_ > : false_ { }; } template< typename T1 = na , typename T2 = na , typename T3 = false_, typename T4 = false_, typename T5 = false_ > struct or_ : aux::or_impl< ::boost::mpl::aux::nested_type_wknd::value , T2, T3, T4, T5 > { }; template<> struct or_< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : or_< T1 , T2 > { }; }; template< typename Tag > struct lambda< or_< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef or_< na , na > result_; typedef or_< na , na > type; }; namespace aux { template< typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > struct template_arity< or_< T1 , T2 , T3 , T4 , T5 > > : int_<5> { }; template<> struct template_arity< or_< na , na > > : int_<-1> { }; } }} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 44 "/usr/include/boost/mpl/or.hpp" 2 3 4 # 18 "/usr/include/boost/mpl/logical.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/and.hpp" 1 3 4 # 42 "/usr/include/boost/mpl/and.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/and.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/aux_/preprocessed/gcc/and.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< bool C_, typename T1, typename T2, typename T3, typename T4 > struct and_impl : false_ { }; template< typename T1, typename T2, typename T3, typename T4 > struct and_impl< true,T1,T2,T3,T4 > : and_impl< ::boost::mpl::aux::nested_type_wknd::value , T2, T3, T4 , true_ > { }; template<> struct and_impl< true , true_, true_, true_, true_ > : true_ { }; } template< typename T1 = na , typename T2 = na , typename T3 = true_, typename T4 = true_, typename T5 = true_ > struct and_ : aux::and_impl< ::boost::mpl::aux::nested_type_wknd::value , T2, T3, T4, T5 > { }; template<> struct and_< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : and_< T1 , T2 > { }; }; template< typename Tag > struct lambda< and_< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef and_< na , na > result_; typedef and_< na , na > type; }; namespace aux { template< typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > struct template_arity< and_< T1 , T2 , T3 , T4 , T5 > > : int_<5> { }; template<> struct template_arity< and_< na , na > > : int_<-1> { }; } }} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 43 "/usr/include/boost/mpl/and.hpp" 2 3 4 # 19 "/usr/include/boost/mpl/logical.hpp" 2 3 4 # 71 "/usr/include/boost/foreach.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/eval_if.hpp" 1 3 4 # 24 "/usr/include/boost/mpl/eval_if.hpp" 3 4 namespace boost { namespace mpl { template< typename C = na , typename F1 = na , typename F2 = na > struct eval_if { typedef typename if_::type f_; typedef typename f_::type type; }; template< bool C , typename F1 , typename F2 > struct eval_if_c { typedef typename if_c::type f_; typedef typename f_::type type; }; template<> struct eval_if< na , na , na > { template< typename T1 , typename T2 , typename T3 , typename T4 =na , typename T5 =na > struct apply : eval_if< T1 , T2 , T3 > { }; }; template< typename Tag > struct lambda< eval_if< na , na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef eval_if< na , na , na > result_; typedef eval_if< na , na , na > type; }; namespace aux { template< typename T1 , typename T2 , typename T3 > struct template_arity< eval_if< T1 , T2 , T3 > > : int_<3> { }; template<> struct template_arity< eval_if< na , na , na > > : int_<-1> { }; } }} # 72 "/usr/include/boost/foreach.hpp" 2 3 4 # 1 "/usr/include/boost/noncopyable.hpp" 1 3 4 # 15 "/usr/include/boost/noncopyable.hpp" 3 4 # 1 "/usr/include/boost/core/noncopyable.hpp" 1 3 4 # 14 "/usr/include/boost/core/noncopyable.hpp" 3 4 namespace boost { namespace noncopyable_ { class noncopyable { protected: noncopyable() {} ~noncopyable() {} private: noncopyable( const noncopyable& ); noncopyable& operator=( const noncopyable& ); }; } typedef noncopyable_::noncopyable noncopyable; } # 16 "/usr/include/boost/noncopyable.hpp" 2 3 4 # 73 "/usr/include/boost/foreach.hpp" 2 3 4 # 1 "/usr/include/boost/range/end.hpp" 1 3 4 # 18 "/usr/include/boost/range/end.hpp" 3 4 # 1 "/usr/include/boost/range/config.hpp" 1 3 4 # 19 "/usr/include/boost/range/end.hpp" 2 3 4 # 1 "/usr/include/boost/range/detail/implementation_help.hpp" 1 3 4 # 15 "/usr/include/boost/range/detail/implementation_help.hpp" 3 4 # 1 "/usr/include/boost/range/detail/common.hpp" 1 3 4 # 19 "/usr/include/boost/range/detail/common.hpp" 3 4 # 1 "/usr/include/boost/range/detail/sfinae.hpp" 1 3 4 # 15 "/usr/include/boost/range/detail/sfinae.hpp" 3 4 # 1 "/usr/include/boost/type_traits/is_array.hpp" 1 3 4 # 17 "/usr/include/boost/type_traits/is_array.hpp" 3 4 # 1 "/usr/include/boost/type_traits/config.hpp" 1 3 4 # 18 "/usr/include/boost/type_traits/is_array.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/integral_constant.hpp" 1 3 4 # 11 "/usr/include/boost/type_traits/integral_constant.hpp" 3 4 # 1 "/usr/include/boost/mpl/integral_c.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/integral_c.hpp" 3 4 # 1 "/usr/include/boost/mpl/integral_c_fwd.hpp" 1 3 4 # 20 "/usr/include/boost/mpl/integral_c_fwd.hpp" 3 4 namespace mpl_ { template< typename T, T N > struct integral_c; } namespace boost { namespace mpl { using ::mpl_::integral_c; } } # 18 "/usr/include/boost/mpl/integral_c.hpp" 2 3 4 # 32 "/usr/include/boost/mpl/integral_c.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/integral_wrapper.hpp" 1 3 4 # 40 "/usr/include/boost/mpl/aux_/integral_wrapper.hpp" 3 4 namespace mpl_ { template< typename T, T N > struct integral_c { static const T value = N; typedef integral_c type; typedef T value_type; typedef integral_c_tag tag; # 72 "/usr/include/boost/mpl/aux_/integral_wrapper.hpp" 3 4 typedef integral_c< T, static_cast((value + 1)) > next; typedef integral_c< T, static_cast((value - 1)) > prior; operator T() const { return static_cast(this->value); } }; template< typename T, T N > T const integral_c< T, N >::value; } # 33 "/usr/include/boost/mpl/integral_c.hpp" 2 3 4 namespace mpl_ { template< bool C > struct integral_c { static const bool value = C; typedef integral_c_tag tag; typedef integral_c type; typedef bool value_type; operator bool() const { return this->value; } }; } # 12 "/usr/include/boost/type_traits/integral_constant.hpp" 2 3 4 namespace boost{ template struct integral_constant : public mpl::integral_c { typedef integral_constant type; }; template<> struct integral_constant : public mpl::true_ { typedef integral_constant type; }; template<> struct integral_constant : public mpl::false_ { typedef integral_constant type; }; typedef integral_constant true_type; typedef integral_constant false_type; } # 16 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 24 "/usr/include/boost/type_traits/is_array.hpp" 2 3 4 namespace boost { template< typename T > struct is_array : public ::boost::integral_constant { public: }; template< typename T, std::size_t N > struct is_array< T[N] > : public ::boost::integral_constant { public: }; template< typename T, std::size_t N > struct is_array< T const[N] > : public ::boost::integral_constant { public: }; template< typename T, std::size_t N > struct is_array< T volatile[N] > : public ::boost::integral_constant { public: }; template< typename T, std::size_t N > struct is_array< T const volatile[N] > : public ::boost::integral_constant { public: }; template< typename T > struct is_array< T[] > : public ::boost::integral_constant { public: }; template< typename T > struct is_array< T const[] > : public ::boost::integral_constant { public: }; template< typename T > struct is_array< T volatile[] > : public ::boost::integral_constant { public: }; template< typename T > struct is_array< T const volatile[] > : public ::boost::integral_constant { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 49 "/usr/include/boost/type_traits/is_array.hpp" 2 3 4 # 16 "/usr/include/boost/range/detail/sfinae.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/detail/yes_no_type.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/yes_no_type.hpp" 3 4 namespace boost { namespace type_traits { typedef char yes_type; struct no_type { char padding[8]; }; } } # 17 "/usr/include/boost/range/detail/sfinae.hpp" 2 3 4 namespace boost { namespace range_detail { using type_traits::yes_type; using type_traits::no_type; yes_type is_string_impl( const char* const ); yes_type is_string_impl( const wchar_t* const ); no_type is_string_impl( ... ); template< std::size_t sz > yes_type is_char_array_impl( char (&boost_range_array)[sz] ); template< std::size_t sz > yes_type is_char_array_impl( const char (&boost_range_array)[sz] ); no_type is_char_array_impl( ... ); template< std::size_t sz > yes_type is_wchar_t_array_impl( wchar_t (&boost_range_array)[sz] ); template< std::size_t sz > yes_type is_wchar_t_array_impl( const wchar_t (&boost_range_array)[sz] ); no_type is_wchar_t_array_impl( ... ); yes_type is_char_ptr_impl( char* const ); no_type is_char_ptr_impl( ... ); yes_type is_const_char_ptr_impl( const char* const ); no_type is_const_char_ptr_impl( ... ); yes_type is_wchar_t_ptr_impl( wchar_t* const ); no_type is_wchar_t_ptr_impl( ... ); yes_type is_const_wchar_t_ptr_impl( const wchar_t* const ); no_type is_const_wchar_t_ptr_impl( ... ); template< typename Iterator > yes_type is_pair_impl( const std::pair* ); no_type is_pair_impl( ... ); struct char_or_wchar_t_array_tag {}; } } # 20 "/usr/include/boost/range/detail/common.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/is_void.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/is_void.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 16 "/usr/include/boost/type_traits/is_void.hpp" 2 3 4 namespace boost { template< typename T > struct is_void : public ::boost::integral_constant { public: }; template<> struct is_void< void > : public ::boost::integral_constant { public: }; template<> struct is_void< void const > : public ::boost::integral_constant { public: }; template<> struct is_void< void volatile > : public ::boost::integral_constant { public: }; template<> struct is_void< void const volatile > : public ::boost::integral_constant { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 37 "/usr/include/boost/type_traits/is_void.hpp" 2 3 4 # 21 "/usr/include/boost/range/detail/common.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/detail/ice_or.hpp" 1 3 4 # 13 "/usr/include/boost/type_traits/detail/ice_or.hpp" 3 4 namespace boost { namespace type_traits { template struct ice_or; template struct ice_or { static const bool value = true; }; template <> struct ice_or { static const bool value = false; }; } } # 22 "/usr/include/boost/range/detail/common.hpp" 2 3 4 # 30 "/usr/include/boost/range/detail/common.hpp" 3 4 namespace boost { namespace range_detail { # 47 "/usr/include/boost/range/detail/common.hpp" 3 4 typedef mpl::int_<1>::type std_container_; typedef mpl::int_<2>::type std_pair_; typedef mpl::int_<3>::type const_std_pair_; typedef mpl::int_<4>::type array_; typedef mpl::int_<5>::type const_array_; typedef mpl::int_<6>::type char_array_; typedef mpl::int_<7>::type wchar_t_array_; typedef mpl::int_<8>::type char_ptr_; typedef mpl::int_<9>::type const_char_ptr_; typedef mpl::int_<10>::type wchar_t_ptr_; typedef mpl::int_<11>::type const_wchar_t_ptr_; typedef mpl::int_<12>::type string_; template< typename C > struct range_helper { static C* c; static C ptr; static const bool is_pair_ = sizeof( boost::range_detail::is_pair_impl( c ) ) == sizeof( yes_type ); static const bool is_char_ptr_ = sizeof( boost::range_detail::is_char_ptr_impl( ptr ) ) == sizeof( yes_type ); static const bool is_const_char_ptr_ = sizeof( boost::range_detail::is_const_char_ptr_impl( ptr ) ) == sizeof( yes_type ); static const bool is_wchar_t_ptr_ = sizeof( boost::range_detail::is_wchar_t_ptr_impl( ptr ) ) == sizeof( yes_type ); static const bool is_const_wchar_t_ptr_ = sizeof( boost::range_detail::is_const_wchar_t_ptr_impl( ptr ) ) == sizeof( yes_type ); static const bool is_char_array_ = sizeof( boost::range_detail::is_char_array_impl( ptr ) ) == sizeof( yes_type ); static const bool is_wchar_t_array_ = sizeof( boost::range_detail::is_wchar_t_array_impl( ptr ) ) == sizeof( yes_type ); static const bool is_string_ = (boost::type_traits::ice_or::value ); static const bool is_array_ = boost::is_array::value; }; template< typename C > class range { typedef typename boost::mpl::if_c< ::boost::range_detail::range_helper::is_pair_, boost::range_detail::std_pair_, void >::type pair_t; typedef typename boost::mpl::if_c< ::boost::range_detail::range_helper::is_array_, boost::range_detail::array_, pair_t >::type array_t; typedef typename boost::mpl::if_c< ::boost::range_detail::range_helper::is_string_, boost::range_detail::string_, array_t >::type string_t; typedef typename boost::mpl::if_c< ::boost::range_detail::range_helper::is_const_char_ptr_, boost::range_detail::const_char_ptr_, string_t >::type const_char_ptr_t; typedef typename boost::mpl::if_c< ::boost::range_detail::range_helper::is_char_ptr_, boost::range_detail::char_ptr_, const_char_ptr_t >::type char_ptr_t; typedef typename boost::mpl::if_c< ::boost::range_detail::range_helper::is_const_wchar_t_ptr_, boost::range_detail::const_wchar_t_ptr_, char_ptr_t >::type const_wchar_ptr_t; typedef typename boost::mpl::if_c< ::boost::range_detail::range_helper::is_wchar_t_ptr_, boost::range_detail::wchar_t_ptr_, const_wchar_ptr_t >::type wchar_ptr_t; typedef typename boost::mpl::if_c< ::boost::range_detail::range_helper::is_wchar_t_array_, boost::range_detail::wchar_t_array_, wchar_ptr_t >::type wchar_array_t; typedef typename boost::mpl::if_c< ::boost::range_detail::range_helper::is_char_array_, boost::range_detail::char_array_, wchar_array_t >::type char_array_t; public: typedef typename boost::mpl::if_c< ::boost::is_void::value, boost::range_detail::std_container_, char_array_t >::type type; }; } } # 16 "/usr/include/boost/range/detail/implementation_help.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/is_same.hpp" 1 3 4 # 26 "/usr/include/boost/type_traits/is_same.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 27 "/usr/include/boost/type_traits/is_same.hpp" 2 3 4 namespace boost { template< typename T, typename U > struct is_same : public ::boost::integral_constant { public: }; template< typename T > struct is_same< T,T > : public ::boost::integral_constant { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 43 "/usr/include/boost/type_traits/is_same.hpp" 2 3 4 # 17 "/usr/include/boost/range/detail/implementation_help.hpp" 2 3 4 # 1 "/usr/include/string.h" 1 3 4 # 27 "/usr/include/string.h" 3 4 extern "C" { # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stddef.h" 1 3 4 # 33 "/usr/include/string.h" 2 3 4 # 44 "/usr/include/string.h" 3 4 extern void *memcpy (void *__restrict __dest, const void *__restrict __src, size_t __n) throw () __attribute__ ((__nonnull__ (1, 2))); extern void *memmove (void *__dest, const void *__src, size_t __n) throw () __attribute__ ((__nonnull__ (1, 2))); extern void *memccpy (void *__restrict __dest, const void *__restrict __src, int __c, size_t __n) throw () __attribute__ ((__nonnull__ (1, 2))); extern void *memset (void *__s, int __c, size_t __n) throw () __attribute__ ((__nonnull__ (1))); extern int memcmp (const void *__s1, const void *__s2, size_t __n) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern "C++" { extern void *memchr (void *__s, int __c, size_t __n) throw () __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern const void *memchr (const void *__s, int __c, size_t __n) throw () __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) void * memchr (void *__s, int __c, size_t __n) throw () { return __builtin_memchr (__s, __c, __n); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const void * memchr (const void *__s, int __c, size_t __n) throw () { return __builtin_memchr (__s, __c, __n); } } extern "C++" void *rawmemchr (void *__s, int __c) throw () __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern "C++" const void *rawmemchr (const void *__s, int __c) throw () __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern "C++" void *memrchr (void *__s, int __c, size_t __n) throw () __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern "C++" const void *memrchr (const void *__s, int __c, size_t __n) throw () __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern char *strcpy (char *__restrict __dest, const char *__restrict __src) throw () __attribute__ ((__nonnull__ (1, 2))); extern char *strncpy (char *__restrict __dest, const char *__restrict __src, size_t __n) throw () __attribute__ ((__nonnull__ (1, 2))); extern char *strcat (char *__restrict __dest, const char *__restrict __src) throw () __attribute__ ((__nonnull__ (1, 2))); extern char *strncat (char *__restrict __dest, const char *__restrict __src, size_t __n) throw () __attribute__ ((__nonnull__ (1, 2))); extern int strcmp (const char *__s1, const char *__s2) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int strncmp (const char *__s1, const char *__s2, size_t __n) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int strcoll (const char *__s1, const char *__s2) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern size_t strxfrm (char *__restrict __dest, const char *__restrict __src, size_t __n) throw () __attribute__ ((__nonnull__ (2))); # 166 "/usr/include/string.h" 3 4 extern int strcoll_l (const char *__s1, const char *__s2, __locale_t __l) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n, __locale_t __l) throw () __attribute__ ((__nonnull__ (2, 4))); extern char *strdup (const char *__s) throw () __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); extern char *strndup (const char *__string, size_t __n) throw () __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); # 210 "/usr/include/string.h" 3 4 extern "C++" { extern char *strchr (char *__s, int __c) throw () __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern const char *strchr (const char *__s, int __c) throw () __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * strchr (char *__s, int __c) throw () { return __builtin_strchr (__s, __c); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * strchr (const char *__s, int __c) throw () { return __builtin_strchr (__s, __c); } } extern "C++" { extern char *strrchr (char *__s, int __c) throw () __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern const char *strrchr (const char *__s, int __c) throw () __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * strrchr (char *__s, int __c) throw () { return __builtin_strrchr (__s, __c); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * strrchr (const char *__s, int __c) throw () { return __builtin_strrchr (__s, __c); } } extern "C++" char *strchrnul (char *__s, int __c) throw () __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern "C++" const char *strchrnul (const char *__s, int __c) throw () __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern size_t strcspn (const char *__s, const char *__reject) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern size_t strspn (const char *__s, const char *__accept) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern "C++" { extern char *strpbrk (char *__s, const char *__accept) throw () __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern const char *strpbrk (const char *__s, const char *__accept) throw () __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * strpbrk (char *__s, const char *__accept) throw () { return __builtin_strpbrk (__s, __accept); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * strpbrk (const char *__s, const char *__accept) throw () { return __builtin_strpbrk (__s, __accept); } } extern "C++" { extern char *strstr (char *__haystack, const char *__needle) throw () __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern const char *strstr (const char *__haystack, const char *__needle) throw () __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * strstr (char *__haystack, const char *__needle) throw () { return __builtin_strstr (__haystack, __needle); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * strstr (const char *__haystack, const char *__needle) throw () { return __builtin_strstr (__haystack, __needle); } } extern char *strtok (char *__restrict __s, const char *__restrict __delim) throw () __attribute__ ((__nonnull__ (2))); extern char *__strtok_r (char *__restrict __s, const char *__restrict __delim, char **__restrict __save_ptr) throw () __attribute__ ((__nonnull__ (2, 3))); extern char *strtok_r (char *__restrict __s, const char *__restrict __delim, char **__restrict __save_ptr) throw () __attribute__ ((__nonnull__ (2, 3))); extern "C++" char *strcasestr (char *__haystack, const char *__needle) throw () __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern "C++" const char *strcasestr (const char *__haystack, const char *__needle) throw () __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); # 381 "/usr/include/string.h" 3 4 extern void *memmem (const void *__haystack, size_t __haystacklen, const void *__needle, size_t __needlelen) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3))); extern void *__mempcpy (void *__restrict __dest, const void *__restrict __src, size_t __n) throw () __attribute__ ((__nonnull__ (1, 2))); extern void *mempcpy (void *__restrict __dest, const void *__restrict __src, size_t __n) throw () __attribute__ ((__nonnull__ (1, 2))); extern size_t strlen (const char *__s) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern size_t strnlen (const char *__string, size_t __maxlen) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern char *strerror (int __errnum) throw (); # 437 "/usr/include/string.h" 3 4 extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) throw () __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); extern char *strerror_l (int __errnum, __locale_t __l) throw (); extern void __bzero (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1))); extern void bcopy (const void *__src, void *__dest, size_t __n) throw () __attribute__ ((__nonnull__ (1, 2))); extern void bzero (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1))); extern int bcmp (const void *__s1, const void *__s2, size_t __n) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern "C++" { extern char *index (char *__s, int __c) throw () __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern const char *index (const char *__s, int __c) throw () __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * index (char *__s, int __c) throw () { return __builtin_index (__s, __c); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * index (const char *__s, int __c) throw () { return __builtin_index (__s, __c); } } extern "C++" { extern char *rindex (char *__s, int __c) throw () __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern const char *rindex (const char *__s, int __c) throw () __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * rindex (char *__s, int __c) throw () { return __builtin_rindex (__s, __c); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * rindex (const char *__s, int __c) throw () { return __builtin_rindex (__s, __c); } } extern int ffs (int __i) throw () __attribute__ ((__const__)); extern int ffsl (long int __l) throw () __attribute__ ((__const__)); __extension__ extern int ffsll (long long int __ll) throw () __attribute__ ((__const__)); extern int strcasecmp (const char *__s1, const char *__s2) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int strcasecmp_l (const char *__s1, const char *__s2, __locale_t __loc) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); extern int strncasecmp_l (const char *__s1, const char *__s2, size_t __n, __locale_t __loc) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4))); extern char *strsep (char **__restrict __stringp, const char *__restrict __delim) throw () __attribute__ ((__nonnull__ (1, 2))); extern char *strsignal (int __sig) throw (); extern char *__stpcpy (char *__restrict __dest, const char *__restrict __src) throw () __attribute__ ((__nonnull__ (1, 2))); extern char *stpcpy (char *__restrict __dest, const char *__restrict __src) throw () __attribute__ ((__nonnull__ (1, 2))); extern char *__stpncpy (char *__restrict __dest, const char *__restrict __src, size_t __n) throw () __attribute__ ((__nonnull__ (1, 2))); extern char *stpncpy (char *__restrict __dest, const char *__restrict __src, size_t __n) throw () __attribute__ ((__nonnull__ (1, 2))); extern int strverscmp (const char *__s1, const char *__s2) throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strfry (char *__string) throw () __attribute__ ((__nonnull__ (1))); extern void *memfrob (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1))); extern "C++" char *basename (char *__filename) throw () __asm ("basename") __attribute__ ((__nonnull__ (1))); extern "C++" const char *basename (const char *__filename) throw () __asm ("basename") __attribute__ ((__nonnull__ (1))); # 639 "/usr/include/string.h" 3 4 # 1 "/usr/include/bits/string3.h" 1 3 4 # 49 "/usr/include/bits/string3.h" 3 4 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * __attribute__ ((__leaf__)) memcpy (void *__restrict __dest, const void *__restrict __src, size_t __len) throw () { return __builtin___memcpy_chk (__dest, __src, __len, __builtin_object_size (__dest, 0)); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * __attribute__ ((__leaf__)) memmove (void *__dest, const void *__src, size_t __len) throw () { return __builtin___memmove_chk (__dest, __src, __len, __builtin_object_size (__dest, 0)); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * __attribute__ ((__leaf__)) mempcpy (void *__restrict __dest, const void *__restrict __src, size_t __len) throw () { return __builtin___mempcpy_chk (__dest, __src, __len, __builtin_object_size (__dest, 0)); } # 77 "/usr/include/bits/string3.h" 3 4 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * __attribute__ ((__leaf__)) memset (void *__dest, int __ch, size_t __len) throw () { # 90 "/usr/include/bits/string3.h" 3 4 return __builtin___memset_chk (__dest, __ch, __len, __builtin_object_size (__dest, 0)); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void __attribute__ ((__leaf__)) bcopy (const void *__src, void *__dest, size_t __len) throw () { (void) __builtin___memmove_chk (__dest, __src, __len, __builtin_object_size (__dest, 0)); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void __attribute__ ((__leaf__)) bzero (void *__dest, size_t __len) throw () { (void) __builtin___memset_chk (__dest, '\0', __len, __builtin_object_size (__dest, 0)); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * __attribute__ ((__leaf__)) strcpy (char *__restrict __dest, const char *__restrict __src) throw () { return __builtin___strcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * __attribute__ ((__leaf__)) stpcpy (char *__restrict __dest, const char *__restrict __src) throw () { return __builtin___stpcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * __attribute__ ((__leaf__)) strncpy (char *__restrict __dest, const char *__restrict __src, size_t __len) throw () { return __builtin___strncpy_chk (__dest, __src, __len, __builtin_object_size (__dest, 2 > 1)); } extern char *__stpncpy_chk (char *__dest, const char *__src, size_t __n, size_t __destlen) throw (); extern char *__stpncpy_alias (char *__dest, const char *__src, size_t __n) throw () __asm__ ("" "stpncpy") ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * __attribute__ ((__leaf__)) stpncpy (char *__dest, const char *__src, size_t __n) throw () { if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1 && (!__builtin_constant_p (__n) || __n <= __builtin_object_size (__dest, 2 > 1))) return __stpncpy_chk (__dest, __src, __n, __builtin_object_size (__dest, 2 > 1)); return __stpncpy_alias (__dest, __src, __n); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * __attribute__ ((__leaf__)) strcat (char *__restrict __dest, const char *__restrict __src) throw () { return __builtin___strcat_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * __attribute__ ((__leaf__)) strncat (char *__restrict __dest, const char *__restrict __src, size_t __len) throw () { return __builtin___strncat_chk (__dest, __src, __len, __builtin_object_size (__dest, 2 > 1)); } # 640 "/usr/include/string.h" 2 3 4 } # 19 "/usr/include/boost/range/detail/implementation_help.hpp" 2 3 4 # 1 "/usr/include/wchar.h" 1 3 4 # 36 "/usr/include/wchar.h" 3 4 # 1 "/usr/include/stdio.h" 1 3 4 # 44 "/usr/include/stdio.h" 3 4 struct _IO_FILE; typedef struct _IO_FILE FILE; # 64 "/usr/include/stdio.h" 3 4 typedef struct _IO_FILE __FILE; # 37 "/usr/include/wchar.h" 2 3 4 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stdarg.h" 1 3 4 # 40 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stdarg.h" 3 4 typedef __builtin_va_list __gnuc_va_list; # 40 "/usr/include/wchar.h" 2 3 4 # 51 "/usr/include/wchar.h" 3 4 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stddef.h" 1 3 4 # 357 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stddef.h" 3 4 typedef unsigned int wint_t; # 52 "/usr/include/wchar.h" 2 3 4 # 82 "/usr/include/wchar.h" 3 4 typedef struct { int __count; union { unsigned int __wch; char __wchb[4]; } __value; } __mbstate_t; # 104 "/usr/include/wchar.h" 3 4 typedef __mbstate_t mbstate_t; # 132 "/usr/include/wchar.h" 3 4 extern "C" { struct tm; extern wchar_t *wcscpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src) throw (); extern wchar_t *wcsncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) throw (); extern wchar_t *wcscat (wchar_t *__restrict __dest, const wchar_t *__restrict __src) throw (); extern wchar_t *wcsncat (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) throw (); extern int wcscmp (const wchar_t *__s1, const wchar_t *__s2) throw () __attribute__ ((__pure__)); extern int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) throw () __attribute__ ((__pure__)); extern int wcscasecmp (const wchar_t *__s1, const wchar_t *__s2) throw (); extern int wcsncasecmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) throw (); extern int wcscasecmp_l (const wchar_t *__s1, const wchar_t *__s2, __locale_t __loc) throw (); extern int wcsncasecmp_l (const wchar_t *__s1, const wchar_t *__s2, size_t __n, __locale_t __loc) throw (); extern int wcscoll (const wchar_t *__s1, const wchar_t *__s2) throw (); extern size_t wcsxfrm (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) throw (); extern int wcscoll_l (const wchar_t *__s1, const wchar_t *__s2, __locale_t __loc) throw (); extern size_t wcsxfrm_l (wchar_t *__s1, const wchar_t *__s2, size_t __n, __locale_t __loc) throw (); extern wchar_t *wcsdup (const wchar_t *__s) throw () __attribute__ ((__malloc__)); extern "C++" wchar_t *wcschr (wchar_t *__wcs, wchar_t __wc) throw () __asm ("wcschr") __attribute__ ((__pure__)); extern "C++" const wchar_t *wcschr (const wchar_t *__wcs, wchar_t __wc) throw () __asm ("wcschr") __attribute__ ((__pure__)); extern "C++" wchar_t *wcsrchr (wchar_t *__wcs, wchar_t __wc) throw () __asm ("wcsrchr") __attribute__ ((__pure__)); extern "C++" const wchar_t *wcsrchr (const wchar_t *__wcs, wchar_t __wc) throw () __asm ("wcsrchr") __attribute__ ((__pure__)); extern wchar_t *wcschrnul (const wchar_t *__s, wchar_t __wc) throw () __attribute__ ((__pure__)); extern size_t wcscspn (const wchar_t *__wcs, const wchar_t *__reject) throw () __attribute__ ((__pure__)); extern size_t wcsspn (const wchar_t *__wcs, const wchar_t *__accept) throw () __attribute__ ((__pure__)); extern "C++" wchar_t *wcspbrk (wchar_t *__wcs, const wchar_t *__accept) throw () __asm ("wcspbrk") __attribute__ ((__pure__)); extern "C++" const wchar_t *wcspbrk (const wchar_t *__wcs, const wchar_t *__accept) throw () __asm ("wcspbrk") __attribute__ ((__pure__)); extern "C++" wchar_t *wcsstr (wchar_t *__haystack, const wchar_t *__needle) throw () __asm ("wcsstr") __attribute__ ((__pure__)); extern "C++" const wchar_t *wcsstr (const wchar_t *__haystack, const wchar_t *__needle) throw () __asm ("wcsstr") __attribute__ ((__pure__)); extern wchar_t *wcstok (wchar_t *__restrict __s, const wchar_t *__restrict __delim, wchar_t **__restrict __ptr) throw (); extern size_t wcslen (const wchar_t *__s) throw () __attribute__ ((__pure__)); extern "C++" wchar_t *wcswcs (wchar_t *__haystack, const wchar_t *__needle) throw () __asm ("wcswcs") __attribute__ ((__pure__)); extern "C++" const wchar_t *wcswcs (const wchar_t *__haystack, const wchar_t *__needle) throw () __asm ("wcswcs") __attribute__ ((__pure__)); # 306 "/usr/include/wchar.h" 3 4 extern size_t wcsnlen (const wchar_t *__s, size_t __maxlen) throw () __attribute__ ((__pure__)); extern "C++" wchar_t *wmemchr (wchar_t *__s, wchar_t __c, size_t __n) throw () __asm ("wmemchr") __attribute__ ((__pure__)); extern "C++" const wchar_t *wmemchr (const wchar_t *__s, wchar_t __c, size_t __n) throw () __asm ("wmemchr") __attribute__ ((__pure__)); extern int wmemcmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) throw () __attribute__ ((__pure__)); extern wchar_t *wmemcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) throw (); extern wchar_t *wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n) throw (); extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) throw (); extern wchar_t *wmempcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) throw (); extern wint_t btowc (int __c) throw (); extern int wctob (wint_t __c) throw (); extern int mbsinit (const mbstate_t *__ps) throw () __attribute__ ((__pure__)); extern size_t mbrtowc (wchar_t *__restrict __pwc, const char *__restrict __s, size_t __n, mbstate_t *__restrict __p) throw (); extern size_t wcrtomb (char *__restrict __s, wchar_t __wc, mbstate_t *__restrict __ps) throw (); extern size_t __mbrlen (const char *__restrict __s, size_t __n, mbstate_t *__restrict __ps) throw (); extern size_t mbrlen (const char *__restrict __s, size_t __n, mbstate_t *__restrict __ps) throw (); extern wint_t __btowc_alias (int __c) __asm ("btowc"); extern __inline __attribute__ ((__gnu_inline__)) wint_t __attribute__ ((__leaf__)) btowc (int __c) throw () { return (__builtin_constant_p (__c) && __c >= '\0' && __c <= '\x7f' ? (wint_t) __c : __btowc_alias (__c)); } extern int __wctob_alias (wint_t __c) __asm ("wctob"); extern __inline __attribute__ ((__gnu_inline__)) int __attribute__ ((__leaf__)) wctob (wint_t __wc) throw () { return (__builtin_constant_p (__wc) && __wc >= L'\0' && __wc <= L'\x7f' ? (int) __wc : __wctob_alias (__wc)); } extern __inline __attribute__ ((__gnu_inline__)) size_t __attribute__ ((__leaf__)) mbrlen (const char *__restrict __s, size_t __n, mbstate_t *__restrict __ps) throw () { return (__ps != __null ? mbrtowc (__null, __s, __n, __ps) : __mbrlen (__s, __n, __null)); } extern size_t mbsrtowcs (wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) throw (); extern size_t wcsrtombs (char *__restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) throw (); extern size_t mbsnrtowcs (wchar_t *__restrict __dst, const char **__restrict __src, size_t __nmc, size_t __len, mbstate_t *__restrict __ps) throw (); extern size_t wcsnrtombs (char *__restrict __dst, const wchar_t **__restrict __src, size_t __nwc, size_t __len, mbstate_t *__restrict __ps) throw (); extern int wcwidth (wchar_t __c) throw (); extern int wcswidth (const wchar_t *__s, size_t __n) throw (); extern double wcstod (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr) throw (); extern float wcstof (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr) throw (); extern long double wcstold (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr) throw (); extern long int wcstol (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) throw (); extern unsigned long int wcstoul (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) throw (); __extension__ extern long long int wcstoll (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) throw (); __extension__ extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) throw (); __extension__ extern long long int wcstoq (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) throw (); __extension__ extern unsigned long long int wcstouq (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) throw (); # 530 "/usr/include/wchar.h" 3 4 extern long int wcstol_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base, __locale_t __loc) throw (); extern unsigned long int wcstoul_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base, __locale_t __loc) throw (); __extension__ extern long long int wcstoll_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base, __locale_t __loc) throw (); __extension__ extern unsigned long long int wcstoull_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base, __locale_t __loc) throw (); extern double wcstod_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, __locale_t __loc) throw (); extern float wcstof_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, __locale_t __loc) throw (); extern long double wcstold_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, __locale_t __loc) throw (); extern wchar_t *wcpcpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src) throw (); extern wchar_t *wcpncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) throw (); extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) throw (); extern int fwide (__FILE *__fp, int __mode) throw (); extern int fwprintf (__FILE *__restrict __stream, const wchar_t *__restrict __format, ...) ; extern int wprintf (const wchar_t *__restrict __format, ...) ; extern int swprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __format, ...) throw () ; extern int vfwprintf (__FILE *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) ; extern int vwprintf (const wchar_t *__restrict __format, __gnuc_va_list __arg) ; extern int vswprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __format, __gnuc_va_list __arg) throw () ; extern int fwscanf (__FILE *__restrict __stream, const wchar_t *__restrict __format, ...) ; extern int wscanf (const wchar_t *__restrict __format, ...) ; extern int swscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, ...) throw () ; # 680 "/usr/include/wchar.h" 3 4 extern int vfwscanf (__FILE *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) ; extern int vwscanf (const wchar_t *__restrict __format, __gnuc_va_list __arg) ; extern int vswscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) throw () ; # 736 "/usr/include/wchar.h" 3 4 extern wint_t fgetwc (__FILE *__stream); extern wint_t getwc (__FILE *__stream); extern wint_t getwchar (void); extern wint_t fputwc (wchar_t __wc, __FILE *__stream); extern wint_t putwc (wchar_t __wc, __FILE *__stream); extern wint_t putwchar (wchar_t __wc); extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n, __FILE *__restrict __stream); extern int fputws (const wchar_t *__restrict __ws, __FILE *__restrict __stream); extern wint_t ungetwc (wint_t __wc, __FILE *__stream); # 801 "/usr/include/wchar.h" 3 4 extern wint_t getwc_unlocked (__FILE *__stream); extern wint_t getwchar_unlocked (void); extern wint_t fgetwc_unlocked (__FILE *__stream); extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream); # 827 "/usr/include/wchar.h" 3 4 extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream); extern wint_t putwchar_unlocked (wchar_t __wc); # 837 "/usr/include/wchar.h" 3 4 extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n, __FILE *__restrict __stream); extern int fputws_unlocked (const wchar_t *__restrict __ws, __FILE *__restrict __stream); extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize, const wchar_t *__restrict __format, const struct tm *__restrict __tp) throw (); extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize, const wchar_t *__restrict __format, const struct tm *__restrict __tp, __locale_t __loc) throw (); # 884 "/usr/include/wchar.h" 3 4 # 1 "/usr/include/bits/wchar2.h" 1 3 4 # 24 "/usr/include/bits/wchar2.h" 3 4 extern wchar_t *__wmemcpy_chk (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n, size_t __ns1) throw (); extern wchar_t *__wmemcpy_alias (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) throw () __asm__ ("" "wmemcpy") ; extern wchar_t *__wmemcpy_chk_warn (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n, size_t __ns1) throw () __asm__ ("" "__wmemcpy_chk") __attribute__((__warning__ ("wmemcpy called with length bigger than size of destination " "buffer"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * __attribute__ ((__leaf__)) wmemcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) throw () { if (__builtin_object_size (__s1, 0) != (size_t) -1) { if (!__builtin_constant_p (__n)) return __wmemcpy_chk (__s1, __s2, __n, __builtin_object_size (__s1, 0) / sizeof (wchar_t)); if (__n > __builtin_object_size (__s1, 0) / sizeof (wchar_t)) return __wmemcpy_chk_warn (__s1, __s2, __n, __builtin_object_size (__s1, 0) / sizeof (wchar_t)); } return __wmemcpy_alias (__s1, __s2, __n); } extern wchar_t *__wmemmove_chk (wchar_t *__s1, const wchar_t *__s2, size_t __n, size_t __ns1) throw (); extern wchar_t *__wmemmove_alias (wchar_t *__s1, const wchar_t *__s2, size_t __n) throw () __asm__ ("" "wmemmove") ; extern wchar_t *__wmemmove_chk_warn (wchar_t *__s1, const wchar_t *__s2, size_t __n, size_t __ns1) throw () __asm__ ("" "__wmemmove_chk") __attribute__((__warning__ ("wmemmove called with length bigger than size of destination " "buffer"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * __attribute__ ((__leaf__)) wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n) throw () { if (__builtin_object_size (__s1, 0) != (size_t) -1) { if (!__builtin_constant_p (__n)) return __wmemmove_chk (__s1, __s2, __n, __builtin_object_size (__s1, 0) / sizeof (wchar_t)); if (__n > __builtin_object_size (__s1, 0) / sizeof (wchar_t)) return __wmemmove_chk_warn (__s1, __s2, __n, __builtin_object_size (__s1, 0) / sizeof (wchar_t)); } return __wmemmove_alias (__s1, __s2, __n); } extern wchar_t *__wmempcpy_chk (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n, size_t __ns1) throw (); extern wchar_t *__wmempcpy_alias (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) throw () __asm__ ("" "wmempcpy") ; extern wchar_t *__wmempcpy_chk_warn (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n, size_t __ns1) throw () __asm__ ("" "__wmempcpy_chk") __attribute__((__warning__ ("wmempcpy called with length bigger than size of destination " "buffer"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * __attribute__ ((__leaf__)) wmempcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) throw () { if (__builtin_object_size (__s1, 0) != (size_t) -1) { if (!__builtin_constant_p (__n)) return __wmempcpy_chk (__s1, __s2, __n, __builtin_object_size (__s1, 0) / sizeof (wchar_t)); if (__n > __builtin_object_size (__s1, 0) / sizeof (wchar_t)) return __wmempcpy_chk_warn (__s1, __s2, __n, __builtin_object_size (__s1, 0) / sizeof (wchar_t)); } return __wmempcpy_alias (__s1, __s2, __n); } extern wchar_t *__wmemset_chk (wchar_t *__s, wchar_t __c, size_t __n, size_t __ns) throw (); extern wchar_t *__wmemset_alias (wchar_t *__s, wchar_t __c, size_t __n) throw () __asm__ ("" "wmemset") ; extern wchar_t *__wmemset_chk_warn (wchar_t *__s, wchar_t __c, size_t __n, size_t __ns) throw () __asm__ ("" "__wmemset_chk") __attribute__((__warning__ ("wmemset called with length bigger than size of destination " "buffer"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * __attribute__ ((__leaf__)) wmemset (wchar_t *__s, wchar_t __c, size_t __n) throw () { if (__builtin_object_size (__s, 0) != (size_t) -1) { if (!__builtin_constant_p (__n)) return __wmemset_chk (__s, __c, __n, __builtin_object_size (__s, 0) / sizeof (wchar_t)); if (__n > __builtin_object_size (__s, 0) / sizeof (wchar_t)) return __wmemset_chk_warn (__s, __c, __n, __builtin_object_size (__s, 0) / sizeof (wchar_t)); } return __wmemset_alias (__s, __c, __n); } extern wchar_t *__wcscpy_chk (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) throw (); extern wchar_t *__wcscpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) throw () __asm__ ("" "wcscpy") ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * __attribute__ ((__leaf__)) wcscpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src) throw () { if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1) return __wcscpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); return __wcscpy_alias (__dest, __src); } extern wchar_t *__wcpcpy_chk (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __destlen) throw (); extern wchar_t *__wcpcpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) throw () __asm__ ("" "wcpcpy") ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * __attribute__ ((__leaf__)) wcpcpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src) throw () { if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1) return __wcpcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); return __wcpcpy_alias (__dest, __src); } extern wchar_t *__wcsncpy_chk (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n, size_t __destlen) throw (); extern wchar_t *__wcsncpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) throw () __asm__ ("" "wcsncpy") ; extern wchar_t *__wcsncpy_chk_warn (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n, size_t __destlen) throw () __asm__ ("" "__wcsncpy_chk") __attribute__((__warning__ ("wcsncpy called with length bigger than size of destination " "buffer"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * __attribute__ ((__leaf__)) wcsncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) throw () { if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1) { if (!__builtin_constant_p (__n)) return __wcsncpy_chk (__dest, __src, __n, __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); if (__n > __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)) return __wcsncpy_chk_warn (__dest, __src, __n, __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); } return __wcsncpy_alias (__dest, __src, __n); } extern wchar_t *__wcpncpy_chk (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n, size_t __destlen) throw (); extern wchar_t *__wcpncpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) throw () __asm__ ("" "wcpncpy") ; extern wchar_t *__wcpncpy_chk_warn (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n, size_t __destlen) throw () __asm__ ("" "__wcpncpy_chk") __attribute__((__warning__ ("wcpncpy called with length bigger than size of destination " "buffer"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * __attribute__ ((__leaf__)) wcpncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) throw () { if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1) { if (!__builtin_constant_p (__n)) return __wcpncpy_chk (__dest, __src, __n, __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); if (__n > __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)) return __wcpncpy_chk_warn (__dest, __src, __n, __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); } return __wcpncpy_alias (__dest, __src, __n); } extern wchar_t *__wcscat_chk (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __destlen) throw (); extern wchar_t *__wcscat_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) throw () __asm__ ("" "wcscat") ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * __attribute__ ((__leaf__)) wcscat (wchar_t *__restrict __dest, const wchar_t *__restrict __src) throw () { if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1) return __wcscat_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); return __wcscat_alias (__dest, __src); } extern wchar_t *__wcsncat_chk (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n, size_t __destlen) throw (); extern wchar_t *__wcsncat_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) throw () __asm__ ("" "wcsncat") ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * __attribute__ ((__leaf__)) wcsncat (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) throw () { if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1) return __wcsncat_chk (__dest, __src, __n, __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); return __wcsncat_alias (__dest, __src, __n); } extern int __swprintf_chk (wchar_t *__restrict __s, size_t __n, int __flag, size_t __s_len, const wchar_t *__restrict __format, ...) throw () ; extern int __swprintf_alias (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, ...) throw () __asm__ ("" "swprintf") ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) swprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, ...) throw () { if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 || 2 > 1) return __swprintf_chk (__s, __n, 2 - 1, __builtin_object_size (__s, 2 > 1) / sizeof (wchar_t), __fmt, __builtin_va_arg_pack ()); return __swprintf_alias (__s, __n, __fmt, __builtin_va_arg_pack ()); } # 303 "/usr/include/bits/wchar2.h" 3 4 extern int __vswprintf_chk (wchar_t *__restrict __s, size_t __n, int __flag, size_t __s_len, const wchar_t *__restrict __format, __gnuc_va_list __arg) throw () ; extern int __vswprintf_alias (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) throw () __asm__ ("" "vswprintf") ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) vswprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) throw () { if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 || 2 > 1) return __vswprintf_chk (__s, __n, 2 - 1, __builtin_object_size (__s, 2 > 1) / sizeof (wchar_t), __fmt, __ap); return __vswprintf_alias (__s, __n, __fmt, __ap); } extern int __fwprintf_chk (__FILE *__restrict __stream, int __flag, const wchar_t *__restrict __format, ...); extern int __wprintf_chk (int __flag, const wchar_t *__restrict __format, ...); extern int __vfwprintf_chk (__FILE *__restrict __stream, int __flag, const wchar_t *__restrict __format, __gnuc_va_list __ap); extern int __vwprintf_chk (int __flag, const wchar_t *__restrict __format, __gnuc_va_list __ap); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int wprintf (const wchar_t *__restrict __fmt, ...) { return __wprintf_chk (2 - 1, __fmt, __builtin_va_arg_pack ()); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int fwprintf (__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...) { return __fwprintf_chk (__stream, 2 - 1, __fmt, __builtin_va_arg_pack ()); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int vwprintf (const wchar_t *__restrict __fmt, __gnuc_va_list __ap) { return __vwprintf_chk (2 - 1, __fmt, __ap); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int vfwprintf (__FILE *__restrict __stream, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) { return __vfwprintf_chk (__stream, 2 - 1, __fmt, __ap); } extern wchar_t *__fgetws_chk (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); extern wchar_t *__fgetws_alias (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) __asm__ ("" "fgetws") __attribute__ ((__warn_unused_result__)); extern wchar_t *__fgetws_chk_warn (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __asm__ ("" "__fgetws_chk") __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgetws called with bigger size than length " "of destination buffer"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) wchar_t * fgetws (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) { if (__builtin_object_size (__s, 2 > 1) != (size_t) -1) { if (!__builtin_constant_p (__n) || __n <= 0) return __fgetws_chk (__s, __builtin_object_size (__s, 2 > 1) / sizeof (wchar_t), __n, __stream); if ((size_t) __n > __builtin_object_size (__s, 2 > 1) / sizeof (wchar_t)) return __fgetws_chk_warn (__s, __builtin_object_size (__s, 2 > 1) / sizeof (wchar_t), __n, __stream); } return __fgetws_alias (__s, __n, __stream); } extern wchar_t *__fgetws_unlocked_chk (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); extern wchar_t *__fgetws_unlocked_alias (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) __asm__ ("" "fgetws_unlocked") __attribute__ ((__warn_unused_result__)); extern wchar_t *__fgetws_unlocked_chk_warn (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __asm__ ("" "__fgetws_unlocked_chk") __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgetws_unlocked called with bigger size than length " "of destination buffer"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) wchar_t * fgetws_unlocked (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) { if (__builtin_object_size (__s, 2 > 1) != (size_t) -1) { if (!__builtin_constant_p (__n) || __n <= 0) return __fgetws_unlocked_chk (__s, __builtin_object_size (__s, 2 > 1) / sizeof (wchar_t), __n, __stream); if ((size_t) __n > __builtin_object_size (__s, 2 > 1) / sizeof (wchar_t)) return __fgetws_unlocked_chk_warn (__s, __builtin_object_size (__s, 2 > 1) / sizeof (wchar_t), __n, __stream); } return __fgetws_unlocked_alias (__s, __n, __stream); } extern size_t __wcrtomb_chk (char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __p, size_t __buflen) throw () __attribute__ ((__warn_unused_result__)); extern size_t __wcrtomb_alias (char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) throw () __asm__ ("" "wcrtomb") __attribute__ ((__warn_unused_result__)); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t __attribute__ ((__leaf__)) wcrtomb (char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) throw () { if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 && 16 > __builtin_object_size (__s, 2 > 1)) return __wcrtomb_chk (__s, __wchar, __ps, __builtin_object_size (__s, 2 > 1)); return __wcrtomb_alias (__s, __wchar, __ps); } extern size_t __mbsrtowcs_chk (wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps, size_t __dstlen) throw (); extern size_t __mbsrtowcs_alias (wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) throw () __asm__ ("" "mbsrtowcs") ; extern size_t __mbsrtowcs_chk_warn (wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps, size_t __dstlen) throw () __asm__ ("" "__mbsrtowcs_chk") __attribute__((__warning__ ("mbsrtowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t __attribute__ ((__leaf__)) mbsrtowcs (wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) throw () { if (__builtin_object_size (__dst, 2 > 1) != (size_t) -1) { if (!__builtin_constant_p (__len)) return __mbsrtowcs_chk (__dst, __src, __len, __ps, __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t)); if (__len > __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t)) return __mbsrtowcs_chk_warn (__dst, __src, __len, __ps, __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t)); } return __mbsrtowcs_alias (__dst, __src, __len, __ps); } extern size_t __wcsrtombs_chk (char *__restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps, size_t __dstlen) throw (); extern size_t __wcsrtombs_alias (char *__restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) throw () __asm__ ("" "wcsrtombs") ; extern size_t __wcsrtombs_chk_warn (char *__restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps, size_t __dstlen) throw () __asm__ ("" "__wcsrtombs_chk") __attribute__((__warning__ ("wcsrtombs called with dst buffer smaller than len"))); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t __attribute__ ((__leaf__)) wcsrtombs (char *__restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) throw () { if (__builtin_object_size (__dst, 2 > 1) != (size_t) -1) { if (!__builtin_constant_p (__len)) return __wcsrtombs_chk (__dst, __src, __len, __ps, __builtin_object_size (__dst, 2 > 1)); if (__len > __builtin_object_size (__dst, 2 > 1)) return __wcsrtombs_chk_warn (__dst, __src, __len, __ps, __builtin_object_size (__dst, 2 > 1)); } return __wcsrtombs_alias (__dst, __src, __len, __ps); } extern size_t __mbsnrtowcs_chk (wchar_t *__restrict __dst, const char **__restrict __src, size_t __nmc, size_t __len, mbstate_t *__restrict __ps, size_t __dstlen) throw (); extern size_t __mbsnrtowcs_alias (wchar_t *__restrict __dst, const char **__restrict __src, size_t __nmc, size_t __len, mbstate_t *__restrict __ps) throw () __asm__ ("" "mbsnrtowcs") ; extern size_t __mbsnrtowcs_chk_warn (wchar_t *__restrict __dst, const char **__restrict __src, size_t __nmc, size_t __len, mbstate_t *__restrict __ps, size_t __dstlen) throw () __asm__ ("" "__mbsnrtowcs_chk") __attribute__((__warning__ ("mbsnrtowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t __attribute__ ((__leaf__)) mbsnrtowcs (wchar_t *__restrict __dst, const char **__restrict __src, size_t __nmc, size_t __len, mbstate_t *__restrict __ps) throw () { if (__builtin_object_size (__dst, 2 > 1) != (size_t) -1) { if (!__builtin_constant_p (__len)) return __mbsnrtowcs_chk (__dst, __src, __nmc, __len, __ps, __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t)); if (__len > __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t)) return __mbsnrtowcs_chk_warn (__dst, __src, __nmc, __len, __ps, __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t)); } return __mbsnrtowcs_alias (__dst, __src, __nmc, __len, __ps); } extern size_t __wcsnrtombs_chk (char *__restrict __dst, const wchar_t **__restrict __src, size_t __nwc, size_t __len, mbstate_t *__restrict __ps, size_t __dstlen) throw (); extern size_t __wcsnrtombs_alias (char *__restrict __dst, const wchar_t **__restrict __src, size_t __nwc, size_t __len, mbstate_t *__restrict __ps) throw () __asm__ ("" "wcsnrtombs") ; extern size_t __wcsnrtombs_chk_warn (char *__restrict __dst, const wchar_t **__restrict __src, size_t __nwc, size_t __len, mbstate_t *__restrict __ps, size_t __dstlen) throw () __asm__ ("" "__wcsnrtombs_chk") __attribute__((__warning__ ("wcsnrtombs called with dst buffer smaller than len"))); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t __attribute__ ((__leaf__)) wcsnrtombs (char *__restrict __dst, const wchar_t **__restrict __src, size_t __nwc, size_t __len, mbstate_t *__restrict __ps) throw () { if (__builtin_object_size (__dst, 2 > 1) != (size_t) -1) { if (!__builtin_constant_p (__len)) return __wcsnrtombs_chk (__dst, __src, __nwc, __len, __ps, __builtin_object_size (__dst, 2 > 1)); if (__len > __builtin_object_size (__dst, 2 > 1)) return __wcsnrtombs_chk_warn (__dst, __src, __nwc, __len, __ps, __builtin_object_size (__dst, 2 > 1)); } return __wcsnrtombs_alias (__dst, __src, __nwc, __len, __ps); } # 885 "/usr/include/wchar.h" 2 3 4 } # 22 "/usr/include/boost/range/detail/implementation_help.hpp" 2 3 4 namespace boost { namespace range_detail { template inline void boost_range_silence_warning( const T& ) { } inline const char* str_end( const char* s, const char* ) { return s + strlen( s ); } inline const wchar_t* str_end( const wchar_t* s, const wchar_t* ) { return s + wcslen( s ); } # 56 "/usr/include/boost/range/detail/implementation_help.hpp" 3 4 template< class Char > inline Char* str_end( Char* s ) { return const_cast( str_end( s, s ) ); } template< class T, std::size_t sz > inline T* array_end( T (&boost_range_array)[sz] ) { return boost_range_array + sz; } template< class T, std::size_t sz > inline const T* array_end( const T (&boost_range_array)[sz] ) { return boost_range_array + sz; } template< class Char > inline std::size_t str_size( const Char* const& s ) { return str_end( s ) - s; } template< class T, std::size_t sz > inline std::size_t array_size( T (&boost_range_array)[sz] ) { boost_range_silence_warning( boost_range_array ); return sz; } template< class T, std::size_t sz > inline std::size_t array_size( const T (&boost_range_array)[sz] ) { boost_range_silence_warning( boost_range_array ); return sz; } inline bool is_same_address(const void* l, const void* r) { return l == r; } template inline bool is_same_object(const T1& l, const T2& r) { return range_detail::is_same_address(&l, &r); } } } # 25 "/usr/include/boost/range/end.hpp" 2 3 4 # 1 "/usr/include/boost/range/iterator.hpp" 1 3 4 # 19 "/usr/include/boost/range/iterator.hpp" 3 4 # 1 "/usr/include/boost/range/range_fwd.hpp" 1 3 4 # 13 "/usr/include/boost/range/range_fwd.hpp" 3 4 namespace boost { template struct range_iterator; template struct range_mutable_iterator; template struct range_const_iterator; template class iterator_range; template class sub_range; template struct range_category; template struct range_difference; template struct range_pointer; template struct range_reference; template struct range_reverse_iterator; template struct range_size; template struct range_value; template struct has_range_iterator; template struct has_range_const_iterator; } # 20 "/usr/include/boost/range/iterator.hpp" 2 3 4 # 1 "/usr/include/boost/range/mutable_iterator.hpp" 1 3 4 # 21 "/usr/include/boost/range/mutable_iterator.hpp" 3 4 # 1 "/usr/include/boost/range/detail/extract_optional_type.hpp" 1 3 4 # 19 "/usr/include/boost/range/detail/extract_optional_type.hpp" 3 4 # 1 "/usr/include/boost/mpl/has_xxx.hpp" 1 3 4 # 21 "/usr/include/boost/mpl/has_xxx.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/type_wrapper.hpp" 1 3 4 # 20 "/usr/include/boost/mpl/aux_/type_wrapper.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< typename T > struct type_wrapper { typedef T type; }; template< typename T > struct wrapped_type; template< typename T > struct wrapped_type< type_wrapper > { typedef T type; }; }}} # 22 "/usr/include/boost/mpl/has_xxx.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/config/has_xxx.hpp" 1 3 4 # 25 "/usr/include/boost/mpl/has_xxx.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/config/msvc_typename.hpp" 1 3 4 # 26 "/usr/include/boost/mpl/has_xxx.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/array/elem.hpp" 1 3 4 # 15 "/usr/include/boost/preprocessor/array/elem.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/array/data.hpp" 1 3 4 # 16 "/usr/include/boost/preprocessor/array/elem.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/array/size.hpp" 1 3 4 # 17 "/usr/include/boost/preprocessor/array/elem.hpp" 2 3 4 # 31 "/usr/include/boost/mpl/has_xxx.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/repetition/enum_params.hpp" 1 3 4 # 34 "/usr/include/boost/mpl/has_xxx.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/repetition/enum_trailing_params.hpp" 1 3 4 # 35 "/usr/include/boost/mpl/has_xxx.hpp" 2 3 4 # 20 "/usr/include/boost/range/detail/extract_optional_type.hpp" 2 3 4 # 22 "/usr/include/boost/range/mutable_iterator.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/remove_reference.hpp" 1 3 4 # 16 "/usr/include/boost/type_traits/remove_reference.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 2 3 4 # 17 "/usr/include/boost/type_traits/remove_reference.hpp" 2 3 4 namespace boost { namespace detail{ template struct remove_rvalue_ref { typedef T type; }; # 39 "/usr/include/boost/type_traits/remove_reference.hpp" 3 4 } template< typename T > struct remove_reference { public: typedef typename boost::detail::remove_rvalue_ref::type type; }; template< typename T > struct remove_reference { public: typedef T type; }; # 55 "/usr/include/boost/type_traits/remove_reference.hpp" 3 4 } # 1 "/usr/include/boost/type_traits/detail/type_trait_undef.hpp" 1 3 4 # 58 "/usr/include/boost/type_traits/remove_reference.hpp" 2 3 4 # 23 "/usr/include/boost/range/mutable_iterator.hpp" 2 3 4 # 1 "/usr/include/boost/iterator/iterator_traits.hpp" 1 3 4 # 1 "/usr/include/boost/detail/iterator.hpp" 1 3 4 # 11 "/usr/include/boost/detail/iterator.hpp" 3 4 # 1 "/usr/include/c++/5.0.0/iterator" 1 3 4 # 58 "/usr/include/c++/5.0.0/iterator" 3 4 # 59 "/usr/include/c++/5.0.0/iterator" 3 # 1 "/usr/include/c++/5.0.0/bits/stl_iterator_base_types.h" 1 3 # 62 "/usr/include/c++/5.0.0/bits/stl_iterator_base_types.h" 3 # 63 "/usr/include/c++/5.0.0/bits/stl_iterator_base_types.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 89 "/usr/include/c++/5.0.0/bits/stl_iterator_base_types.h" 3 struct input_iterator_tag { }; struct output_iterator_tag { }; struct forward_iterator_tag : public input_iterator_tag { }; struct bidirectional_iterator_tag : public forward_iterator_tag { }; struct random_access_iterator_tag : public bidirectional_iterator_tag { }; # 116 "/usr/include/c++/5.0.0/bits/stl_iterator_base_types.h" 3 template struct iterator { typedef _Category iterator_category; typedef _Tp value_type; typedef _Distance difference_type; typedef _Pointer pointer; typedef _Reference reference; }; # 165 "/usr/include/c++/5.0.0/bits/stl_iterator_base_types.h" 3 template struct iterator_traits { typedef typename _Iterator::iterator_category iterator_category; typedef typename _Iterator::value_type value_type; typedef typename _Iterator::difference_type difference_type; typedef typename _Iterator::pointer pointer; typedef typename _Iterator::reference reference; }; template struct iterator_traits<_Tp*> { typedef random_access_iterator_tag iterator_category; typedef _Tp value_type; typedef ptrdiff_t difference_type; typedef _Tp* pointer; typedef _Tp& reference; }; template struct iterator_traits { typedef random_access_iterator_tag iterator_category; typedef _Tp value_type; typedef ptrdiff_t difference_type; typedef const _Tp* pointer; typedef const _Tp& reference; }; template inline typename iterator_traits<_Iter>::iterator_category __iterator_category(const _Iter&) { return typename iterator_traits<_Iter>::iterator_category(); } template struct _Iter_base { typedef _Iterator iterator_type; static iterator_type _S_base(_Iterator __it) { return __it; } }; template struct _Iter_base<_Iterator, true> { typedef typename _Iterator::iterator_type iterator_type; static iterator_type _S_base(_Iterator __it) { return __it.base(); } }; # 235 "/usr/include/c++/5.0.0/bits/stl_iterator_base_types.h" 3 } # 62 "/usr/include/c++/5.0.0/iterator" 2 3 # 1 "/usr/include/c++/5.0.0/bits/stl_iterator_base_funcs.h" 1 3 # 62 "/usr/include/c++/5.0.0/bits/stl_iterator_base_funcs.h" 3 # 63 "/usr/include/c++/5.0.0/bits/stl_iterator_base_funcs.h" 3 # 1 "/usr/include/c++/5.0.0/debug/debug.h" 1 3 # 46 "/usr/include/c++/5.0.0/debug/debug.h" 3 namespace std { namespace __debug { } } namespace __gnu_debug { using namespace std::__debug; } # 66 "/usr/include/c++/5.0.0/bits/stl_iterator_base_funcs.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template inline typename iterator_traits<_InputIterator>::difference_type __distance(_InputIterator __first, _InputIterator __last, input_iterator_tag) { typename iterator_traits<_InputIterator>::difference_type __n = 0; while (__first != __last) { ++__first; ++__n; } return __n; } template inline typename iterator_traits<_RandomAccessIterator>::difference_type __distance(_RandomAccessIterator __first, _RandomAccessIterator __last, random_access_iterator_tag) { return __last - __first; } # 112 "/usr/include/c++/5.0.0/bits/stl_iterator_base_funcs.h" 3 template inline typename iterator_traits<_InputIterator>::difference_type distance(_InputIterator __first, _InputIterator __last) { return std::__distance(__first, __last, std::__iterator_category(__first)); } template inline void __advance(_InputIterator& __i, _Distance __n, input_iterator_tag) { ; while (__n--) ++__i; } template inline void __advance(_BidirectionalIterator& __i, _Distance __n, bidirectional_iterator_tag) { if (__n > 0) while (__n--) ++__i; else while (__n++) --__i; } template inline void __advance(_RandomAccessIterator& __i, _Distance __n, random_access_iterator_tag) { __i += __n; } # 171 "/usr/include/c++/5.0.0/bits/stl_iterator_base_funcs.h" 3 template inline void advance(_InputIterator& __i, _Distance __n) { typename iterator_traits<_InputIterator>::difference_type __d = __n; std::__advance(__i, __d, std::__iterator_category(__i)); } # 202 "/usr/include/c++/5.0.0/bits/stl_iterator_base_funcs.h" 3 } # 63 "/usr/include/c++/5.0.0/iterator" 2 3 # 1 "/usr/include/c++/5.0.0/bits/stl_iterator.h" 1 3 # 63 "/usr/include/c++/5.0.0/bits/stl_iterator.h" 3 # 1 "/usr/include/c++/5.0.0/bits/cpp_type_traits.h" 1 3 # 35 "/usr/include/c++/5.0.0/bits/cpp_type_traits.h" 3 # 36 "/usr/include/c++/5.0.0/bits/cpp_type_traits.h" 3 # 68 "/usr/include/c++/5.0.0/bits/cpp_type_traits.h" 3 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { template class __normal_iterator; } namespace std __attribute__ ((__visibility__ ("default"))) { struct __true_type { }; struct __false_type { }; template struct __truth_type { typedef __false_type __type; }; template<> struct __truth_type { typedef __true_type __type; }; template struct __traitor { enum { __value = bool(_Sp::__value) || bool(_Tp::__value) }; typedef typename __truth_type<__value>::__type __type; }; template struct __are_same { enum { __value = 0 }; typedef __false_type __type; }; template struct __are_same<_Tp, _Tp> { enum { __value = 1 }; typedef __true_type __type; }; template struct __is_void { enum { __value = 0 }; typedef __false_type __type; }; template<> struct __is_void { enum { __value = 1 }; typedef __true_type __type; }; template struct __is_integer { enum { __value = 0 }; typedef __false_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; # 199 "/usr/include/c++/5.0.0/bits/cpp_type_traits.h" 3 template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; # 270 "/usr/include/c++/5.0.0/bits/cpp_type_traits.h" 3 template<> struct __is_integer<__int128> { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer { enum { __value = 1 }; typedef __true_type __type; }; # 287 "/usr/include/c++/5.0.0/bits/cpp_type_traits.h" 3 template struct __is_floating { enum { __value = 0 }; typedef __false_type __type; }; template<> struct __is_floating { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_floating { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_floating { enum { __value = 1 }; typedef __true_type __type; }; template struct __is_pointer { enum { __value = 0 }; typedef __false_type __type; }; template struct __is_pointer<_Tp*> { enum { __value = 1 }; typedef __true_type __type; }; template struct __is_normal_iterator { enum { __value = 0 }; typedef __false_type __type; }; template struct __is_normal_iterator< __gnu_cxx::__normal_iterator<_Iterator, _Container> > { enum { __value = 1 }; typedef __true_type __type; }; template struct __is_arithmetic : public __traitor<__is_integer<_Tp>, __is_floating<_Tp> > { }; template struct __is_scalar : public __traitor<__is_arithmetic<_Tp>, __is_pointer<_Tp> > { }; template struct __is_char { enum { __value = 0 }; typedef __false_type __type; }; template<> struct __is_char { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_char { enum { __value = 1 }; typedef __true_type __type; }; template struct __is_byte { enum { __value = 0 }; typedef __false_type __type; }; template<> struct __is_byte { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_byte { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_byte { enum { __value = 1 }; typedef __true_type __type; }; template struct __is_move_iterator { enum { __value = 0 }; typedef __false_type __type; }; # 443 "/usr/include/c++/5.0.0/bits/cpp_type_traits.h" 3 } # 64 "/usr/include/c++/5.0.0/bits/stl_iterator.h" 2 3 # 1 "/usr/include/c++/5.0.0/ext/type_traits.h" 1 3 # 32 "/usr/include/c++/5.0.0/ext/type_traits.h" 3 # 33 "/usr/include/c++/5.0.0/ext/type_traits.h" 3 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { template struct __enable_if { }; template struct __enable_if { typedef _Tp __type; }; template struct __conditional_type { typedef _Iftrue __type; }; template struct __conditional_type { typedef _Iffalse __type; }; template struct __add_unsigned { private: typedef __enable_if::__value, _Tp> __if_type; public: typedef typename __if_type::__type __type; }; template<> struct __add_unsigned { typedef unsigned char __type; }; template<> struct __add_unsigned { typedef unsigned char __type; }; template<> struct __add_unsigned { typedef unsigned short __type; }; template<> struct __add_unsigned { typedef unsigned int __type; }; template<> struct __add_unsigned { typedef unsigned long __type; }; template<> struct __add_unsigned { typedef unsigned long long __type; }; template<> struct __add_unsigned; template<> struct __add_unsigned; template struct __remove_unsigned { private: typedef __enable_if::__value, _Tp> __if_type; public: typedef typename __if_type::__type __type; }; template<> struct __remove_unsigned { typedef signed char __type; }; template<> struct __remove_unsigned { typedef signed char __type; }; template<> struct __remove_unsigned { typedef short __type; }; template<> struct __remove_unsigned { typedef int __type; }; template<> struct __remove_unsigned { typedef long __type; }; template<> struct __remove_unsigned { typedef long long __type; }; template<> struct __remove_unsigned; template<> struct __remove_unsigned; template inline bool __is_null_pointer(_Type* __ptr) { return __ptr == 0; } template inline bool __is_null_pointer(_Type) { return false; } # 165 "/usr/include/c++/5.0.0/ext/type_traits.h" 3 template::__value> struct __promote { typedef double __type; }; template struct __promote<_Tp, false> { }; template<> struct __promote { typedef long double __type; }; template<> struct __promote { typedef double __type; }; template<> struct __promote { typedef float __type; }; template::__type, typename _Up2 = typename __promote<_Up>::__type> struct __promote_2 { typedef __typeof__(_Tp2() + _Up2()) __type; }; template::__type, typename _Up2 = typename __promote<_Up>::__type, typename _Vp2 = typename __promote<_Vp>::__type> struct __promote_3 { typedef __typeof__(_Tp2() + _Up2() + _Vp2()) __type; }; template::__type, typename _Up2 = typename __promote<_Up>::__type, typename _Vp2 = typename __promote<_Vp>::__type, typename _Wp2 = typename __promote<_Wp>::__type> struct __promote_4 { typedef __typeof__(_Tp2() + _Up2() + _Vp2() + _Wp2()) __type; }; } # 65 "/usr/include/c++/5.0.0/bits/stl_iterator.h" 2 3 # 1 "/usr/include/c++/5.0.0/bits/ptr_traits.h" 1 3 # 67 "/usr/include/c++/5.0.0/bits/stl_iterator.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 96 "/usr/include/c++/5.0.0/bits/stl_iterator.h" 3 template class reverse_iterator : public iterator::iterator_category, typename iterator_traits<_Iterator>::value_type, typename iterator_traits<_Iterator>::difference_type, typename iterator_traits<_Iterator>::pointer, typename iterator_traits<_Iterator>::reference> { protected: _Iterator current; typedef iterator_traits<_Iterator> __traits_type; public: typedef _Iterator iterator_type; typedef typename __traits_type::difference_type difference_type; typedef typename __traits_type::pointer pointer; typedef typename __traits_type::reference reference; reverse_iterator() : current() { } explicit reverse_iterator(iterator_type __x) : current(__x) { } reverse_iterator(const reverse_iterator& __x) : current(__x.current) { } template reverse_iterator(const reverse_iterator<_Iter>& __x) : current(__x.base()) { } iterator_type base() const { return current; } # 160 "/usr/include/c++/5.0.0/bits/stl_iterator.h" 3 reference operator*() const { _Iterator __tmp = current; return *--__tmp; } pointer operator->() const { return &(operator*()); } reverse_iterator& operator++() { --current; return *this; } reverse_iterator operator++(int) { reverse_iterator __tmp = *this; --current; return __tmp; } reverse_iterator& operator--() { ++current; return *this; } reverse_iterator operator--(int) { reverse_iterator __tmp = *this; ++current; return __tmp; } reverse_iterator operator+(difference_type __n) const { return reverse_iterator(current - __n); } reverse_iterator& operator+=(difference_type __n) { current -= __n; return *this; } reverse_iterator operator-(difference_type __n) const { return reverse_iterator(current + __n); } reverse_iterator& operator-=(difference_type __n) { current += __n; return *this; } reference operator[](difference_type __n) const { return *(*this + __n); } }; # 290 "/usr/include/c++/5.0.0/bits/stl_iterator.h" 3 template inline bool operator==(const reverse_iterator<_Iterator>& __x, const reverse_iterator<_Iterator>& __y) { return __x.base() == __y.base(); } template inline bool operator<(const reverse_iterator<_Iterator>& __x, const reverse_iterator<_Iterator>& __y) { return __y.base() < __x.base(); } template inline bool operator!=(const reverse_iterator<_Iterator>& __x, const reverse_iterator<_Iterator>& __y) { return !(__x == __y); } template inline bool operator>(const reverse_iterator<_Iterator>& __x, const reverse_iterator<_Iterator>& __y) { return __y < __x; } template inline bool operator<=(const reverse_iterator<_Iterator>& __x, const reverse_iterator<_Iterator>& __y) { return !(__y < __x); } template inline bool operator>=(const reverse_iterator<_Iterator>& __x, const reverse_iterator<_Iterator>& __y) { return !(__x < __y); } template inline typename reverse_iterator<_Iterator>::difference_type operator-(const reverse_iterator<_Iterator>& __x, const reverse_iterator<_Iterator>& __y) { return __y.base() - __x.base(); } template inline reverse_iterator<_Iterator> operator+(typename reverse_iterator<_Iterator>::difference_type __n, const reverse_iterator<_Iterator>& __x) { return reverse_iterator<_Iterator>(__x.base() - __n); } template inline bool operator==(const reverse_iterator<_IteratorL>& __x, const reverse_iterator<_IteratorR>& __y) { return __x.base() == __y.base(); } template inline bool operator<(const reverse_iterator<_IteratorL>& __x, const reverse_iterator<_IteratorR>& __y) { return __y.base() < __x.base(); } template inline bool operator!=(const reverse_iterator<_IteratorL>& __x, const reverse_iterator<_IteratorR>& __y) { return !(__x == __y); } template inline bool operator>(const reverse_iterator<_IteratorL>& __x, const reverse_iterator<_IteratorR>& __y) { return __y < __x; } template inline bool operator<=(const reverse_iterator<_IteratorL>& __x, const reverse_iterator<_IteratorR>& __y) { return !(__y < __x); } template inline bool operator>=(const reverse_iterator<_IteratorL>& __x, const reverse_iterator<_IteratorR>& __y) { return !(__x < __y); } template inline typename reverse_iterator<_IteratorL>::difference_type operator-(const reverse_iterator<_IteratorL>& __x, const reverse_iterator<_IteratorR>& __y) { return __y.base() - __x.base(); } # 414 "/usr/include/c++/5.0.0/bits/stl_iterator.h" 3 template class back_insert_iterator : public iterator { protected: _Container* container; public: typedef _Container container_type; explicit back_insert_iterator(_Container& __x) : container(&__x) { } # 441 "/usr/include/c++/5.0.0/bits/stl_iterator.h" 3 back_insert_iterator& operator=(typename _Container::const_reference __value) { container->push_back(__value); return *this; } # 464 "/usr/include/c++/5.0.0/bits/stl_iterator.h" 3 back_insert_iterator& operator*() { return *this; } back_insert_iterator& operator++() { return *this; } back_insert_iterator operator++(int) { return *this; } }; # 490 "/usr/include/c++/5.0.0/bits/stl_iterator.h" 3 template inline back_insert_iterator<_Container> back_inserter(_Container& __x) { return back_insert_iterator<_Container>(__x); } # 505 "/usr/include/c++/5.0.0/bits/stl_iterator.h" 3 template class front_insert_iterator : public iterator { protected: _Container* container; public: typedef _Container container_type; explicit front_insert_iterator(_Container& __x) : container(&__x) { } # 531 "/usr/include/c++/5.0.0/bits/stl_iterator.h" 3 front_insert_iterator& operator=(typename _Container::const_reference __value) { container->push_front(__value); return *this; } # 554 "/usr/include/c++/5.0.0/bits/stl_iterator.h" 3 front_insert_iterator& operator*() { return *this; } front_insert_iterator& operator++() { return *this; } front_insert_iterator operator++(int) { return *this; } }; # 580 "/usr/include/c++/5.0.0/bits/stl_iterator.h" 3 template inline front_insert_iterator<_Container> front_inserter(_Container& __x) { return front_insert_iterator<_Container>(__x); } # 599 "/usr/include/c++/5.0.0/bits/stl_iterator.h" 3 template class insert_iterator : public iterator { protected: _Container* container; typename _Container::iterator iter; public: typedef _Container container_type; insert_iterator(_Container& __x, typename _Container::iterator __i) : container(&__x), iter(__i) {} # 642 "/usr/include/c++/5.0.0/bits/stl_iterator.h" 3 insert_iterator& operator=(typename _Container::const_reference __value) { iter = container->insert(iter, __value); ++iter; return *this; } # 668 "/usr/include/c++/5.0.0/bits/stl_iterator.h" 3 insert_iterator& operator*() { return *this; } insert_iterator& operator++() { return *this; } insert_iterator& operator++(int) { return *this; } }; # 694 "/usr/include/c++/5.0.0/bits/stl_iterator.h" 3 template inline insert_iterator<_Container> inserter(_Container& __x, _Iterator __i) { return insert_iterator<_Container>(__x, typename _Container::iterator(__i)); } } namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { # 718 "/usr/include/c++/5.0.0/bits/stl_iterator.h" 3 using std::iterator_traits; using std::iterator; template class __normal_iterator { protected: _Iterator _M_current; typedef iterator_traits<_Iterator> __traits_type; public: typedef _Iterator iterator_type; typedef typename __traits_type::iterator_category iterator_category; typedef typename __traits_type::value_type value_type; typedef typename __traits_type::difference_type difference_type; typedef typename __traits_type::reference reference; typedef typename __traits_type::pointer pointer; __normal_iterator() : _M_current(_Iterator()) { } explicit __normal_iterator(const _Iterator& __i) : _M_current(__i) { } template __normal_iterator(const __normal_iterator<_Iter, typename __enable_if< (std::__are_same<_Iter, typename _Container::pointer>::__value), _Container>::__type>& __i) : _M_current(__i.base()) { } reference operator*() const { return *_M_current; } pointer operator->() const { return _M_current; } __normal_iterator& operator++() { ++_M_current; return *this; } __normal_iterator operator++(int) { return __normal_iterator(_M_current++); } __normal_iterator& operator--() { --_M_current; return *this; } __normal_iterator operator--(int) { return __normal_iterator(_M_current--); } reference operator[](difference_type __n) const { return _M_current[__n]; } __normal_iterator& operator+=(difference_type __n) { _M_current += __n; return *this; } __normal_iterator operator+(difference_type __n) const { return __normal_iterator(_M_current + __n); } __normal_iterator& operator-=(difference_type __n) { _M_current -= __n; return *this; } __normal_iterator operator-(difference_type __n) const { return __normal_iterator(_M_current - __n); } const _Iterator& base() const { return _M_current; } }; # 818 "/usr/include/c++/5.0.0/bits/stl_iterator.h" 3 template inline bool operator==(const __normal_iterator<_IteratorL, _Container>& __lhs, const __normal_iterator<_IteratorR, _Container>& __rhs) { return __lhs.base() == __rhs.base(); } template inline bool operator==(const __normal_iterator<_Iterator, _Container>& __lhs, const __normal_iterator<_Iterator, _Container>& __rhs) { return __lhs.base() == __rhs.base(); } template inline bool operator!=(const __normal_iterator<_IteratorL, _Container>& __lhs, const __normal_iterator<_IteratorR, _Container>& __rhs) { return __lhs.base() != __rhs.base(); } template inline bool operator!=(const __normal_iterator<_Iterator, _Container>& __lhs, const __normal_iterator<_Iterator, _Container>& __rhs) { return __lhs.base() != __rhs.base(); } template inline bool operator<(const __normal_iterator<_IteratorL, _Container>& __lhs, const __normal_iterator<_IteratorR, _Container>& __rhs) { return __lhs.base() < __rhs.base(); } template inline bool operator<(const __normal_iterator<_Iterator, _Container>& __lhs, const __normal_iterator<_Iterator, _Container>& __rhs) { return __lhs.base() < __rhs.base(); } template inline bool operator>(const __normal_iterator<_IteratorL, _Container>& __lhs, const __normal_iterator<_IteratorR, _Container>& __rhs) { return __lhs.base() > __rhs.base(); } template inline bool operator>(const __normal_iterator<_Iterator, _Container>& __lhs, const __normal_iterator<_Iterator, _Container>& __rhs) { return __lhs.base() > __rhs.base(); } template inline bool operator<=(const __normal_iterator<_IteratorL, _Container>& __lhs, const __normal_iterator<_IteratorR, _Container>& __rhs) { return __lhs.base() <= __rhs.base(); } template inline bool operator<=(const __normal_iterator<_Iterator, _Container>& __lhs, const __normal_iterator<_Iterator, _Container>& __rhs) { return __lhs.base() <= __rhs.base(); } template inline bool operator>=(const __normal_iterator<_IteratorL, _Container>& __lhs, const __normal_iterator<_IteratorR, _Container>& __rhs) { return __lhs.base() >= __rhs.base(); } template inline bool operator>=(const __normal_iterator<_Iterator, _Container>& __lhs, const __normal_iterator<_Iterator, _Container>& __rhs) { return __lhs.base() >= __rhs.base(); } template inline typename __normal_iterator<_IteratorL, _Container>::difference_type operator-(const __normal_iterator<_IteratorL, _Container>& __lhs, const __normal_iterator<_IteratorR, _Container>& __rhs) { return __lhs.base() - __rhs.base(); } template inline typename __normal_iterator<_Iterator, _Container>::difference_type operator-(const __normal_iterator<_Iterator, _Container>& __lhs, const __normal_iterator<_Iterator, _Container>& __rhs) { return __lhs.base() - __rhs.base(); } template inline __normal_iterator<_Iterator, _Container> operator+(typename __normal_iterator<_Iterator, _Container>::difference_type __n, const __normal_iterator<_Iterator, _Container>& __i) { return __normal_iterator<_Iterator, _Container>(__i.base() + __n); } } # 64 "/usr/include/c++/5.0.0/iterator" 2 3 # 1 "/usr/include/c++/5.0.0/ostream" 1 3 # 36 "/usr/include/c++/5.0.0/ostream" 3 # 37 "/usr/include/c++/5.0.0/ostream" 3 # 1 "/usr/include/c++/5.0.0/ios" 1 3 # 36 "/usr/include/c++/5.0.0/ios" 3 # 37 "/usr/include/c++/5.0.0/ios" 3 # 1 "/usr/include/c++/5.0.0/iosfwd" 1 3 # 36 "/usr/include/c++/5.0.0/iosfwd" 3 # 37 "/usr/include/c++/5.0.0/iosfwd" 3 # 1 "/usr/include/c++/5.0.0/bits/stringfwd.h" 1 3 # 37 "/usr/include/c++/5.0.0/bits/stringfwd.h" 3 # 38 "/usr/include/c++/5.0.0/bits/stringfwd.h" 3 # 1 "/usr/include/c++/5.0.0/bits/memoryfwd.h" 1 3 # 46 "/usr/include/c++/5.0.0/bits/memoryfwd.h" 3 # 47 "/usr/include/c++/5.0.0/bits/memoryfwd.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 63 "/usr/include/c++/5.0.0/bits/memoryfwd.h" 3 template class allocator; template<> class allocator; template struct uses_allocator; } # 41 "/usr/include/c++/5.0.0/bits/stringfwd.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template struct char_traits; template<> struct char_traits; template<> struct char_traits; # 67 "/usr/include/c++/5.0.0/bits/stringfwd.h" 3 template, typename _Alloc = allocator<_CharT> > class basic_string; typedef basic_string string; typedef basic_string wstring; # 90 "/usr/include/c++/5.0.0/bits/stringfwd.h" 3 } # 40 "/usr/include/c++/5.0.0/iosfwd" 2 3 # 1 "/usr/include/c++/5.0.0/bits/postypes.h" 1 3 # 38 "/usr/include/c++/5.0.0/bits/postypes.h" 3 # 39 "/usr/include/c++/5.0.0/bits/postypes.h" 3 # 1 "/usr/include/c++/5.0.0/cwchar" 1 3 # 39 "/usr/include/c++/5.0.0/cwchar" 3 # 40 "/usr/include/c++/5.0.0/cwchar" 3 # 1 "/usr/include/wchar.h" 1 3 4 # 45 "/usr/include/c++/5.0.0/cwchar" 2 3 # 62 "/usr/include/c++/5.0.0/cwchar" 3 namespace std { using ::mbstate_t; } # 135 "/usr/include/c++/5.0.0/cwchar" 3 namespace std __attribute__ ((__visibility__ ("default"))) { using ::wint_t; using ::btowc; using ::fgetwc; using ::fgetws; using ::fputwc; using ::fputws; using ::fwide; using ::fwprintf; using ::fwscanf; using ::getwc; using ::getwchar; using ::mbrlen; using ::mbrtowc; using ::mbsinit; using ::mbsrtowcs; using ::putwc; using ::putwchar; using ::swprintf; using ::swscanf; using ::ungetwc; using ::vfwprintf; using ::vfwscanf; using ::vswprintf; using ::vswscanf; using ::vwprintf; using ::vwscanf; using ::wcrtomb; using ::wcscat; using ::wcscmp; using ::wcscoll; using ::wcscpy; using ::wcscspn; using ::wcsftime; using ::wcslen; using ::wcsncat; using ::wcsncmp; using ::wcsncpy; using ::wcsrtombs; using ::wcsspn; using ::wcstod; using ::wcstof; using ::wcstok; using ::wcstol; using ::wcstoul; using ::wcsxfrm; using ::wctob; using ::wmemcmp; using ::wmemcpy; using ::wmemmove; using ::wmemset; using ::wprintf; using ::wscanf; using ::wcschr; using ::wcspbrk; using ::wcsrchr; using ::wcsstr; using ::wmemchr; # 232 "/usr/include/c++/5.0.0/cwchar" 3 } namespace __gnu_cxx { using ::wcstold; # 257 "/usr/include/c++/5.0.0/cwchar" 3 using ::wcstoll; using ::wcstoull; } namespace std { using ::__gnu_cxx::wcstold; using ::__gnu_cxx::wcstoll; using ::__gnu_cxx::wcstoull; } # 41 "/usr/include/c++/5.0.0/bits/postypes.h" 2 3 # 68 "/usr/include/c++/5.0.0/bits/postypes.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 88 "/usr/include/c++/5.0.0/bits/postypes.h" 3 typedef long streamoff; # 98 "/usr/include/c++/5.0.0/bits/postypes.h" 3 typedef ptrdiff_t streamsize; # 111 "/usr/include/c++/5.0.0/bits/postypes.h" 3 template class fpos { private: streamoff _M_off; _StateT _M_state; public: fpos() : _M_off(0), _M_state() { } # 133 "/usr/include/c++/5.0.0/bits/postypes.h" 3 fpos(streamoff __off) : _M_off(__off), _M_state() { } operator streamoff() const { return _M_off; } void state(_StateT __st) { _M_state = __st; } _StateT state() const { return _M_state; } fpos& operator+=(streamoff __off) { _M_off += __off; return *this; } fpos& operator-=(streamoff __off) { _M_off -= __off; return *this; } fpos operator+(streamoff __off) const { fpos __pos(*this); __pos += __off; return __pos; } fpos operator-(streamoff __off) const { fpos __pos(*this); __pos -= __off; return __pos; } streamoff operator-(const fpos& __other) const { return _M_off - __other._M_off; } }; template inline bool operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) { return streamoff(__lhs) == streamoff(__rhs); } template inline bool operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) { return streamoff(__lhs) != streamoff(__rhs); } typedef fpos streampos; typedef fpos wstreampos; # 239 "/usr/include/c++/5.0.0/bits/postypes.h" 3 } # 41 "/usr/include/c++/5.0.0/iosfwd" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 74 "/usr/include/c++/5.0.0/iosfwd" 3 class ios_base; template > class basic_ios; template > class basic_streambuf; template > class basic_istream; template > class basic_ostream; template > class basic_iostream; template, typename _Alloc = allocator<_CharT> > class basic_stringbuf; template, typename _Alloc = allocator<_CharT> > class basic_istringstream; template, typename _Alloc = allocator<_CharT> > class basic_ostringstream; template, typename _Alloc = allocator<_CharT> > class basic_stringstream; template > class basic_filebuf; template > class basic_ifstream; template > class basic_ofstream; template > class basic_fstream; template > class istreambuf_iterator; template > class ostreambuf_iterator; typedef basic_ios ios; typedef basic_streambuf streambuf; typedef basic_istream istream; typedef basic_ostream ostream; typedef basic_iostream iostream; typedef basic_stringbuf stringbuf; typedef basic_istringstream istringstream; typedef basic_ostringstream ostringstream; typedef basic_stringstream stringstream; typedef basic_filebuf filebuf; typedef basic_ifstream ifstream; typedef basic_ofstream ofstream; typedef basic_fstream fstream; typedef basic_ios wios; typedef basic_streambuf wstreambuf; typedef basic_istream wistream; typedef basic_ostream wostream; typedef basic_iostream wiostream; typedef basic_stringbuf wstringbuf; typedef basic_istringstream wistringstream; typedef basic_ostringstream wostringstream; typedef basic_stringstream wstringstream; typedef basic_filebuf wfilebuf; typedef basic_ifstream wifstream; typedef basic_ofstream wofstream; typedef basic_fstream wfstream; } # 39 "/usr/include/c++/5.0.0/ios" 2 3 # 1 "/usr/include/c++/5.0.0/exception" 1 3 # 33 "/usr/include/c++/5.0.0/exception" 3 # 34 "/usr/include/c++/5.0.0/exception" 3 #pragma GCC visibility push(default) # 1 "/usr/include/c++/5.0.0/bits/atomic_lockfree_defines.h" 1 3 # 33 "/usr/include/c++/5.0.0/bits/atomic_lockfree_defines.h" 3 # 34 "/usr/include/c++/5.0.0/bits/atomic_lockfree_defines.h" 3 # 39 "/usr/include/c++/5.0.0/exception" 2 3 extern "C++" { namespace std { # 60 "/usr/include/c++/5.0.0/exception" 3 class exception { public: exception() throw() { } virtual ~exception() throw(); virtual const char* what() const throw(); }; class bad_exception : public exception { public: bad_exception() throw() { } virtual ~bad_exception() throw(); virtual const char* what() const throw(); }; typedef void (*terminate_handler) (); typedef void (*unexpected_handler) (); terminate_handler set_terminate(terminate_handler) throw(); # 102 "/usr/include/c++/5.0.0/exception" 3 void terminate() throw() __attribute__ ((__noreturn__)); unexpected_handler set_unexpected(unexpected_handler) throw(); # 114 "/usr/include/c++/5.0.0/exception" 3 void unexpected() __attribute__ ((__noreturn__)); # 127 "/usr/include/c++/5.0.0/exception" 3 bool uncaught_exception() throw() __attribute__ ((__pure__)); } namespace __gnu_cxx { # 152 "/usr/include/c++/5.0.0/exception" 3 void __verbose_terminate_handler(); } } #pragma GCC visibility pop # 40 "/usr/include/c++/5.0.0/ios" 2 3 # 1 "/usr/include/c++/5.0.0/bits/char_traits.h" 1 3 # 37 "/usr/include/c++/5.0.0/bits/char_traits.h" 3 # 38 "/usr/include/c++/5.0.0/bits/char_traits.h" 3 # 1 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 1 3 # 60 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 3 # 1 "/usr/include/c++/5.0.0/bits/functexcept.h" 1 3 # 40 "/usr/include/c++/5.0.0/bits/functexcept.h" 3 # 1 "/usr/include/c++/5.0.0/bits/exception_defines.h" 1 3 # 41 "/usr/include/c++/5.0.0/bits/functexcept.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { void __throw_bad_exception(void) __attribute__((__noreturn__)); void __throw_bad_alloc(void) __attribute__((__noreturn__)); void __throw_bad_cast(void) __attribute__((__noreturn__)); void __throw_bad_typeid(void) __attribute__((__noreturn__)); void __throw_logic_error(const char*) __attribute__((__noreturn__)); void __throw_domain_error(const char*) __attribute__((__noreturn__)); void __throw_invalid_argument(const char*) __attribute__((__noreturn__)); void __throw_length_error(const char*) __attribute__((__noreturn__)); void __throw_out_of_range(const char*) __attribute__((__noreturn__)); void __throw_out_of_range_fmt(const char*, ...) __attribute__((__noreturn__)) __attribute__((__format__(__gnu_printf__, 1, 2))); void __throw_runtime_error(const char*) __attribute__((__noreturn__)); void __throw_range_error(const char*) __attribute__((__noreturn__)); void __throw_overflow_error(const char*) __attribute__((__noreturn__)); void __throw_underflow_error(const char*) __attribute__((__noreturn__)); void __throw_ios_failure(const char*) __attribute__((__noreturn__)); void __throw_system_error(int) __attribute__((__noreturn__)); void __throw_future_error(int) __attribute__((__noreturn__)); void __throw_bad_function_call() __attribute__((__noreturn__)); } # 61 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 2 3 # 1 "/usr/include/c++/5.0.0/ext/numeric_traits.h" 1 3 # 32 "/usr/include/c++/5.0.0/ext/numeric_traits.h" 3 # 33 "/usr/include/c++/5.0.0/ext/numeric_traits.h" 3 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { # 54 "/usr/include/c++/5.0.0/ext/numeric_traits.h" 3 template struct __numeric_traits_integer { static const _Value __min = (((_Value)(-1) < 0) ? (_Value)1 << (sizeof(_Value) * 8 - ((_Value)(-1) < 0)) : (_Value)0); static const _Value __max = (((_Value)(-1) < 0) ? (((((_Value)1 << ((sizeof(_Value) * 8 - ((_Value)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(_Value)0); static const bool __is_signed = ((_Value)(-1) < 0); static const int __digits = (sizeof(_Value) * 8 - ((_Value)(-1) < 0)); }; template const _Value __numeric_traits_integer<_Value>::__min; template const _Value __numeric_traits_integer<_Value>::__max; template const bool __numeric_traits_integer<_Value>::__is_signed; template const int __numeric_traits_integer<_Value>::__digits; # 99 "/usr/include/c++/5.0.0/ext/numeric_traits.h" 3 template struct __numeric_traits_floating { static const int __max_digits10 = (2 + (std::__are_same<_Value, float>::__value ? 24 : std::__are_same<_Value, double>::__value ? 53 : 64) * 643L / 2136); static const bool __is_signed = true; static const int __digits10 = (std::__are_same<_Value, float>::__value ? 6 : std::__are_same<_Value, double>::__value ? 15 : 18); static const int __max_exponent10 = (std::__are_same<_Value, float>::__value ? 38 : std::__are_same<_Value, double>::__value ? 308 : 4932); }; template const int __numeric_traits_floating<_Value>::__max_digits10; template const bool __numeric_traits_floating<_Value>::__is_signed; template const int __numeric_traits_floating<_Value>::__digits10; template const int __numeric_traits_floating<_Value>::__max_exponent10; template struct __numeric_traits : public __conditional_type::__value, __numeric_traits_integer<_Value>, __numeric_traits_floating<_Value> >::__type { }; } # 64 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 2 3 # 1 "/usr/include/c++/5.0.0/bits/predefined_ops.h" 1 3 # 33 "/usr/include/c++/5.0.0/bits/predefined_ops.h" 3 namespace __gnu_cxx { namespace __ops { struct _Iter_less_iter { template bool operator()(_Iterator1 __it1, _Iterator2 __it2) const { return *__it1 < *__it2; } }; inline _Iter_less_iter __iter_less_iter() { return _Iter_less_iter(); } struct _Iter_less_val { template bool operator()(_Iterator __it, _Value& __val) const { return *__it < __val; } }; inline _Iter_less_val __iter_less_val() { return _Iter_less_val(); } inline _Iter_less_val __iter_comp_val(_Iter_less_iter) { return _Iter_less_val(); } struct _Val_less_iter { template bool operator()(_Value& __val, _Iterator __it) const { return __val < *__it; } }; inline _Val_less_iter __val_less_iter() { return _Val_less_iter(); } inline _Val_less_iter __val_comp_iter(_Iter_less_iter) { return _Val_less_iter(); } struct _Iter_equal_to_iter { template bool operator()(_Iterator1 __it1, _Iterator2 __it2) const { return *__it1 == *__it2; } }; inline _Iter_equal_to_iter __iter_equal_to_iter() { return _Iter_equal_to_iter(); } struct _Iter_equal_to_val { template bool operator()(_Iterator __it, _Value& __val) const { return *__it == __val; } }; inline _Iter_equal_to_val __iter_equal_to_val() { return _Iter_equal_to_val(); } inline _Iter_equal_to_val __iter_comp_val(_Iter_equal_to_iter) { return _Iter_equal_to_val(); } template struct _Iter_comp_iter { _Compare _M_comp; _Iter_comp_iter(_Compare __comp) : _M_comp(__comp) { } template bool operator()(_Iterator1 __it1, _Iterator2 __it2) { return bool(_M_comp(*__it1, *__it2)); } }; template inline _Iter_comp_iter<_Compare> __iter_comp_iter(_Compare __comp) { return _Iter_comp_iter<_Compare>(__comp); } template struct _Iter_comp_val { _Compare _M_comp; _Iter_comp_val(_Compare __comp) : _M_comp(__comp) { } template bool operator()(_Iterator __it, _Value& __val) { return bool(_M_comp(*__it, __val)); } }; template inline _Iter_comp_val<_Compare> __iter_comp_val(_Compare __comp) { return _Iter_comp_val<_Compare>(__comp); } template inline _Iter_comp_val<_Compare> __iter_comp_val(_Iter_comp_iter<_Compare> __comp) { return _Iter_comp_val<_Compare>(__comp._M_comp); } template struct _Val_comp_iter { _Compare _M_comp; _Val_comp_iter(_Compare __comp) : _M_comp(__comp) { } template bool operator()(_Value& __val, _Iterator __it) { return bool(_M_comp(__val, *__it)); } }; template inline _Val_comp_iter<_Compare> __val_comp_iter(_Compare __comp) { return _Val_comp_iter<_Compare>(__comp); } template inline _Val_comp_iter<_Compare> __val_comp_iter(_Iter_comp_iter<_Compare> __comp) { return _Val_comp_iter<_Compare>(__comp._M_comp); } template struct _Iter_equals_val { _Value& _M_value; _Iter_equals_val(_Value& __value) : _M_value(__value) { } template bool operator()(_Iterator __it) { return *__it == _M_value; } }; template inline _Iter_equals_val<_Value> __iter_equals_val(_Value& __val) { return _Iter_equals_val<_Value>(__val); } template struct _Iter_equals_iter { typename std::iterator_traits<_Iterator1>::reference _M_ref; _Iter_equals_iter(_Iterator1 __it1) : _M_ref(*__it1) { } template bool operator()(_Iterator2 __it2) { return *__it2 == _M_ref; } }; template inline _Iter_equals_iter<_Iterator> __iter_comp_iter(_Iter_equal_to_iter, _Iterator __it) { return _Iter_equals_iter<_Iterator>(__it); } template struct _Iter_pred { _Predicate _M_pred; _Iter_pred(_Predicate __pred) : _M_pred(__pred) { } template bool operator()(_Iterator __it) { return bool(_M_pred(*__it)); } }; template inline _Iter_pred<_Predicate> __pred_iter(_Predicate __pred) { return _Iter_pred<_Predicate>(__pred); } template struct _Iter_comp_to_val { _Compare _M_comp; _Value& _M_value; _Iter_comp_to_val(_Compare __comp, _Value& __value) : _M_comp(__comp), _M_value(__value) { } template bool operator()(_Iterator __it) { return bool(_M_comp(*__it, _M_value)); } }; template _Iter_comp_to_val<_Compare, _Value> __iter_comp_val(_Compare __comp, _Value &__val) { return _Iter_comp_to_val<_Compare, _Value>(__comp, __val); } template struct _Iter_comp_to_iter { _Compare _M_comp; typename std::iterator_traits<_Iterator1>::reference _M_ref; _Iter_comp_to_iter(_Compare __comp, _Iterator1 __it1) : _M_comp(__comp), _M_ref(*__it1) { } template bool operator()(_Iterator2 __it2) { return bool(_M_comp(*__it2, _M_ref)); } }; template inline _Iter_comp_to_iter<_Compare, _Iterator> __iter_comp_iter(_Iter_comp_iter<_Compare> __comp, _Iterator __it) { return _Iter_comp_to_iter<_Compare, _Iterator>(__comp._M_comp, __it); } template struct _Iter_negate { _Predicate _M_pred; _Iter_negate(_Predicate __pred) : _M_pred(__pred) { } template bool operator()(_Iterator __it) { return !bool(_M_pred(*__it)); } }; template inline _Iter_negate<_Predicate> __negate(_Iter_pred<_Predicate> __pred) { return _Iter_negate<_Predicate>(__pred._M_pred); } } } # 72 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template struct __iter_swap { template static void iter_swap(_ForwardIterator1 __a, _ForwardIterator2 __b) { typedef typename iterator_traits<_ForwardIterator1>::value_type _ValueType1; _ValueType1 __tmp = (*__a); *__a = (*__b); *__b = (__tmp); } }; template<> struct __iter_swap { template static void iter_swap(_ForwardIterator1 __a, _ForwardIterator2 __b) { swap(*__a, *__b); } }; # 118 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 3 template inline void iter_swap(_ForwardIterator1 __a, _ForwardIterator2 __b) { typedef typename iterator_traits<_ForwardIterator1>::value_type _ValueType1; typedef typename iterator_traits<_ForwardIterator2>::value_type _ValueType2; typedef typename iterator_traits<_ForwardIterator1>::reference _ReferenceType1; typedef typename iterator_traits<_ForwardIterator2>::reference _ReferenceType2; std::__iter_swap<__are_same<_ValueType1, _ValueType2>::__value && __are_same<_ValueType1&, _ReferenceType1>::__value && __are_same<_ValueType2&, _ReferenceType2>::__value>:: iter_swap(__a, __b); } # 164 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 3 template _ForwardIterator2 swap_ranges(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2) { ; for (; __first1 != __last1; ++__first1, ++__first2) std::iter_swap(__first1, __first2); return __first2; } # 192 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 3 template inline const _Tp& min(const _Tp& __a, const _Tp& __b) { if (__b < __a) return __b; return __a; } # 216 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 3 template inline const _Tp& max(const _Tp& __a, const _Tp& __b) { if (__a < __b) return __b; return __a; } # 240 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 3 template inline const _Tp& min(const _Tp& __a, const _Tp& __b, _Compare __comp) { if (__comp(__b, __a)) return __b; return __a; } # 262 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 3 template inline const _Tp& max(const _Tp& __a, const _Tp& __b, _Compare __comp) { if (__comp(__a, __b)) return __b; return __a; } template struct _Niter_base : _Iter_base<_Iterator, __is_normal_iterator<_Iterator>::__value> { }; template inline typename _Niter_base<_Iterator>::iterator_type __niter_base(_Iterator __it) { return std::_Niter_base<_Iterator>::_S_base(__it); } template struct _Miter_base : _Iter_base<_Iterator, __is_move_iterator<_Iterator>::__value> { }; template inline typename _Miter_base<_Iterator>::iterator_type __miter_base(_Iterator __it) { return std::_Miter_base<_Iterator>::_S_base(__it); } template struct __copy_move { template static _OI __copy_m(_II __first, _II __last, _OI __result) { for (; __first != __last; ++__result, ++__first) *__result = *__first; return __result; } }; # 330 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 3 template<> struct __copy_move { template static _OI __copy_m(_II __first, _II __last, _OI __result) { typedef typename iterator_traits<_II>::difference_type _Distance; for(_Distance __n = __last - __first; __n > 0; --__n) { *__result = *__first; ++__first; ++__result; } return __result; } }; # 368 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 3 template struct __copy_move<_IsMove, true, random_access_iterator_tag> { template static _Tp* __copy_m(const _Tp* __first, const _Tp* __last, _Tp* __result) { const ptrdiff_t _Num = __last - __first; if (_Num) __builtin_memmove(__result, __first, sizeof(_Tp) * _Num); return __result + _Num; } }; template inline _OI __copy_move_a(_II __first, _II __last, _OI __result) { typedef typename iterator_traits<_II>::value_type _ValueTypeI; typedef typename iterator_traits<_OI>::value_type _ValueTypeO; typedef typename iterator_traits<_II>::iterator_category _Category; const bool __simple = (__is_trivial(_ValueTypeI) && __is_pointer<_II>::__value && __is_pointer<_OI>::__value && __are_same<_ValueTypeI, _ValueTypeO>::__value); return std::__copy_move<_IsMove, __simple, _Category>::__copy_m(__first, __last, __result); } template struct char_traits; template class istreambuf_iterator; template class ostreambuf_iterator; template typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type __copy_move_a2(_CharT*, _CharT*, ostreambuf_iterator<_CharT, char_traits<_CharT> >); template typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type __copy_move_a2(const _CharT*, const _CharT*, ostreambuf_iterator<_CharT, char_traits<_CharT> >); template typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, _CharT*>::__type __copy_move_a2(istreambuf_iterator<_CharT, char_traits<_CharT> >, istreambuf_iterator<_CharT, char_traits<_CharT> >, _CharT*); template inline _OI __copy_move_a2(_II __first, _II __last, _OI __result) { return _OI(std::__copy_move_a<_IsMove>(std::__niter_base(__first), std::__niter_base(__last), std::__niter_base(__result))); } # 458 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 3 template inline _OI copy(_II __first, _II __last, _OI __result) { ; return (std::__copy_move_a2<__is_move_iterator<_II>::__value> (std::__miter_base(__first), std::__miter_base(__last), __result)); } # 510 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 3 template struct __copy_move_backward { template static _BI2 __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) { while (__first != __last) *--__result = *--__last; return __result; } }; # 538 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 3 template<> struct __copy_move_backward { template static _BI2 __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) { typename iterator_traits<_BI1>::difference_type __n; for (__n = __last - __first; __n > 0; --__n) *--__result = *--__last; return __result; } }; # 568 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 3 template struct __copy_move_backward<_IsMove, true, random_access_iterator_tag> { template static _Tp* __copy_move_b(const _Tp* __first, const _Tp* __last, _Tp* __result) { const ptrdiff_t _Num = __last - __first; if (_Num) __builtin_memmove(__result - _Num, __first, sizeof(_Tp) * _Num); return __result - _Num; } }; template inline _BI2 __copy_move_backward_a(_BI1 __first, _BI1 __last, _BI2 __result) { typedef typename iterator_traits<_BI1>::value_type _ValueType1; typedef typename iterator_traits<_BI2>::value_type _ValueType2; typedef typename iterator_traits<_BI1>::iterator_category _Category; const bool __simple = (__is_trivial(_ValueType1) && __is_pointer<_BI1>::__value && __is_pointer<_BI2>::__value && __are_same<_ValueType1, _ValueType2>::__value); return std::__copy_move_backward<_IsMove, __simple, _Category>::__copy_move_b(__first, __last, __result); } template inline _BI2 __copy_move_backward_a2(_BI1 __first, _BI1 __last, _BI2 __result) { return _BI2(std::__copy_move_backward_a<_IsMove> (std::__niter_base(__first), std::__niter_base(__last), std::__niter_base(__result))); } # 632 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 3 template inline _BI2 copy_backward(_BI1 __first, _BI1 __last, _BI2 __result) { ; return (std::__copy_move_backward_a2<__is_move_iterator<_BI1>::__value> (std::__miter_base(__first), std::__miter_base(__last), __result)); } # 690 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 3 template inline typename __gnu_cxx::__enable_if::__value, void>::__type __fill_a(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) { for (; __first != __last; ++__first) *__first = __value; } template inline typename __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, void>::__type __fill_a(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) { const _Tp __tmp = __value; for (; __first != __last; ++__first) *__first = __tmp; } template inline typename __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, void>::__type __fill_a(_Tp* __first, _Tp* __last, const _Tp& __c) { const _Tp __tmp = __c; __builtin_memset(__first, static_cast(__tmp), __last - __first); } # 734 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 3 template inline void fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) { ; std::__fill_a(std::__niter_base(__first), std::__niter_base(__last), __value); } template inline typename __gnu_cxx::__enable_if::__value, _OutputIterator>::__type __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value) { for (__decltype(__n + 0) __niter = __n; __niter > 0; --__niter, ++__first) *__first = __value; return __first; } template inline typename __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, _OutputIterator>::__type __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value) { const _Tp __tmp = __value; for (__decltype(__n + 0) __niter = __n; __niter > 0; --__niter, ++__first) *__first = __tmp; return __first; } template inline typename __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, _Tp*>::__type __fill_n_a(_Tp* __first, _Size __n, const _Tp& __c) { std::__fill_a(__first, __first + __n, __c); return __first + __n; } # 794 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 3 template inline _OI fill_n(_OI __first, _Size __n, const _Tp& __value) { return _OI(std::__fill_n_a(std::__niter_base(__first), __n, __value)); } template struct __equal { template static bool equal(_II1 __first1, _II1 __last1, _II2 __first2) { for (; __first1 != __last1; ++__first1, ++__first2) if (!(*__first1 == *__first2)) return false; return true; } }; template<> struct __equal { template static bool equal(const _Tp* __first1, const _Tp* __last1, const _Tp* __first2) { return !__builtin_memcmp(__first1, __first2, sizeof(_Tp) * (__last1 - __first1)); } }; template inline bool __equal_aux(_II1 __first1, _II1 __last1, _II2 __first2) { typedef typename iterator_traits<_II1>::value_type _ValueType1; typedef typename iterator_traits<_II2>::value_type _ValueType2; const bool __simple = ((__is_integer<_ValueType1>::__value || __is_pointer<_ValueType1>::__value) && __is_pointer<_II1>::__value && __is_pointer<_II2>::__value && __are_same<_ValueType1, _ValueType2>::__value); return std::__equal<__simple>::equal(__first1, __last1, __first2); } template struct __lc_rai { template static _II1 __newlast1(_II1, _II1 __last1, _II2, _II2) { return __last1; } template static bool __cnd2(_II __first, _II __last) { return __first != __last; } }; template<> struct __lc_rai { template static _RAI1 __newlast1(_RAI1 __first1, _RAI1 __last1, _RAI2 __first2, _RAI2 __last2) { const typename iterator_traits<_RAI1>::difference_type __diff1 = __last1 - __first1; const typename iterator_traits<_RAI2>::difference_type __diff2 = __last2 - __first2; return __diff2 < __diff1 ? __first1 + __diff2 : __last1; } template static bool __cnd2(_RAI, _RAI) { return true; } }; template bool __lexicographical_compare_impl(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2, _Compare __comp) { typedef typename iterator_traits<_II1>::iterator_category _Category1; typedef typename iterator_traits<_II2>::iterator_category _Category2; typedef std::__lc_rai<_Category1, _Category2> __rai_type; __last1 = __rai_type::__newlast1(__first1, __last1, __first2, __last2); for (; __first1 != __last1 && __rai_type::__cnd2(__first2, __last2); ++__first1, ++__first2) { if (__comp(__first1, __first2)) return true; if (__comp(__first2, __first1)) return false; } return __first1 == __last1 && __first2 != __last2; } template struct __lexicographical_compare { template static bool __lc(_II1, _II1, _II2, _II2); }; template template bool __lexicographical_compare<_BoolType>:: __lc(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) { return std::__lexicographical_compare_impl(__first1, __last1, __first2, __last2, __gnu_cxx::__ops::__iter_less_iter()); } template<> struct __lexicographical_compare { template static bool __lc(const _Tp* __first1, const _Tp* __last1, const _Up* __first2, const _Up* __last2) { const size_t __len1 = __last1 - __first1; const size_t __len2 = __last2 - __first2; const int __result = __builtin_memcmp(__first1, __first2, std::min(__len1, __len2)); return __result != 0 ? __result < 0 : __len1 < __len2; } }; template inline bool __lexicographical_compare_aux(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) { typedef typename iterator_traits<_II1>::value_type _ValueType1; typedef typename iterator_traits<_II2>::value_type _ValueType2; const bool __simple = (__is_byte<_ValueType1>::__value && __is_byte<_ValueType2>::__value && !__gnu_cxx::__numeric_traits<_ValueType1>::__is_signed && !__gnu_cxx::__numeric_traits<_ValueType2>::__is_signed && __is_pointer<_II1>::__value && __is_pointer<_II2>::__value); return std::__lexicographical_compare<__simple>::__lc(__first1, __last1, __first2, __last2); } template _ForwardIterator __lower_bound(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __val, _Compare __comp) { typedef typename iterator_traits<_ForwardIterator>::difference_type _DistanceType; _DistanceType __len = std::distance(__first, __last); while (__len > 0) { _DistanceType __half = __len >> 1; _ForwardIterator __middle = __first; std::advance(__middle, __half); if (__comp(__middle, __val)) { __first = __middle; ++__first; __len = __len - __half - 1; } else __len = __half; } return __first; } # 992 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 3 template inline _ForwardIterator lower_bound(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __val) { ; return std::__lower_bound(__first, __last, __val, __gnu_cxx::__ops::__iter_less_val()); } inline int __lg(int __n) { return sizeof(int) * 8 - 1 - __builtin_clz(__n); } inline unsigned __lg(unsigned __n) { return sizeof(int) * 8 - 1 - __builtin_clz(__n); } inline long __lg(long __n) { return sizeof(long) * 8 - 1 - __builtin_clzl(__n); } inline unsigned long __lg(unsigned long __n) { return sizeof(long) * 8 - 1 - __builtin_clzl(__n); } inline long long __lg(long long __n) { return sizeof(long long) * 8 - 1 - __builtin_clzll(__n); } inline unsigned long long __lg(unsigned long long __n) { return sizeof(long long) * 8 - 1 - __builtin_clzll(__n); } # 1049 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 3 template inline bool equal(_II1 __first1, _II1 __last1, _II2 __first2) { ; return std::__equal_aux(std::__niter_base(__first1), std::__niter_base(__last1), std::__niter_base(__first2)); } # 1081 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 3 template inline bool equal(_IIter1 __first1, _IIter1 __last1, _IIter2 __first2, _BinaryPredicate __binary_pred) { ; for (; __first1 != __last1; ++__first1, ++__first2) if (!bool(__binary_pred(*__first1, *__first2))) return false; return true; } # 1209 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 3 template inline bool lexicographical_compare(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) { ; ; return std::__lexicographical_compare_aux(std::__niter_base(__first1), std::__niter_base(__last1), std::__niter_base(__first2), std::__niter_base(__last2)); } # 1245 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 3 template inline bool lexicographical_compare(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2, _Compare __comp) { ; ; return std::__lexicographical_compare_impl (__first1, __last1, __first2, __last2, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template pair<_InputIterator1, _InputIterator2> __mismatch(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _BinaryPredicate __binary_pred) { while (__first1 != __last1 && __binary_pred(__first1, __first2)) { ++__first1; ++__first2; } return pair<_InputIterator1, _InputIterator2>(__first1, __first2); } # 1288 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 3 template inline pair<_InputIterator1, _InputIterator2> mismatch(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2) { ; return std::__mismatch(__first1, __last1, __first2, __gnu_cxx::__ops::__iter_equal_to_iter()); } # 1321 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 3 template inline pair<_InputIterator1, _InputIterator2> mismatch(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _BinaryPredicate __binary_pred) { ; return std::__mismatch(__first1, __last1, __first2, __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); } # 1421 "/usr/include/c++/5.0.0/bits/stl_algobase.h" 3 } # 40 "/usr/include/c++/5.0.0/bits/char_traits.h" 2 3 # 1 "/usr/include/c++/5.0.0/cwchar" 1 3 # 39 "/usr/include/c++/5.0.0/cwchar" 3 # 40 "/usr/include/c++/5.0.0/cwchar" 3 # 1 "/usr/include/wchar.h" 1 3 4 # 45 "/usr/include/c++/5.0.0/cwchar" 2 3 # 42 "/usr/include/c++/5.0.0/bits/char_traits.h" 2 3 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { # 57 "/usr/include/c++/5.0.0/bits/char_traits.h" 3 template struct _Char_types { typedef unsigned long int_type; typedef std::streampos pos_type; typedef std::streamoff off_type; typedef std::mbstate_t state_type; }; # 82 "/usr/include/c++/5.0.0/bits/char_traits.h" 3 template struct char_traits { typedef _CharT char_type; typedef typename _Char_types<_CharT>::int_type int_type; typedef typename _Char_types<_CharT>::pos_type pos_type; typedef typename _Char_types<_CharT>::off_type off_type; typedef typename _Char_types<_CharT>::state_type state_type; static void assign(char_type& __c1, const char_type& __c2) { __c1 = __c2; } static bool eq(const char_type& __c1, const char_type& __c2) { return __c1 == __c2; } static bool lt(const char_type& __c1, const char_type& __c2) { return __c1 < __c2; } static int compare(const char_type* __s1, const char_type* __s2, std::size_t __n); static std::size_t length(const char_type* __s); static const char_type* find(const char_type* __s, std::size_t __n, const char_type& __a); static char_type* move(char_type* __s1, const char_type* __s2, std::size_t __n); static char_type* copy(char_type* __s1, const char_type* __s2, std::size_t __n); static char_type* assign(char_type* __s, std::size_t __n, char_type __a); static char_type to_char_type(const int_type& __c) { return static_cast(__c); } static int_type to_int_type(const char_type& __c) { return static_cast(__c); } static bool eq_int_type(const int_type& __c1, const int_type& __c2) { return __c1 == __c2; } static int_type eof() { return static_cast(-1); } static int_type not_eof(const int_type& __c) { return !eq_int_type(__c, eof()) ? __c : to_int_type(char_type()); } }; template int char_traits<_CharT>:: compare(const char_type* __s1, const char_type* __s2, std::size_t __n) { for (std::size_t __i = 0; __i < __n; ++__i) if (lt(__s1[__i], __s2[__i])) return -1; else if (lt(__s2[__i], __s1[__i])) return 1; return 0; } template std::size_t char_traits<_CharT>:: length(const char_type* __p) { std::size_t __i = 0; while (!eq(__p[__i], char_type())) ++__i; return __i; } template const typename char_traits<_CharT>::char_type* char_traits<_CharT>:: find(const char_type* __s, std::size_t __n, const char_type& __a) { for (std::size_t __i = 0; __i < __n; ++__i) if (eq(__s[__i], __a)) return __s + __i; return 0; } template typename char_traits<_CharT>::char_type* char_traits<_CharT>:: move(char_type* __s1, const char_type* __s2, std::size_t __n) { return static_cast<_CharT*>(__builtin_memmove(__s1, __s2, __n * sizeof(char_type))); } template typename char_traits<_CharT>::char_type* char_traits<_CharT>:: copy(char_type* __s1, const char_type* __s2, std::size_t __n) { std::copy(__s2, __s2 + __n, __s1); return __s1; } template typename char_traits<_CharT>::char_type* char_traits<_CharT>:: assign(char_type* __s, std::size_t __n, char_type __a) { std::fill_n(__s, __n, __a); return __s; } } namespace std __attribute__ ((__visibility__ ("default"))) { # 226 "/usr/include/c++/5.0.0/bits/char_traits.h" 3 template struct char_traits : public __gnu_cxx::char_traits<_CharT> { }; template<> struct char_traits { typedef char char_type; typedef int int_type; typedef streampos pos_type; typedef streamoff off_type; typedef mbstate_t state_type; static void assign(char_type& __c1, const char_type& __c2) { __c1 = __c2; } static bool eq(const char_type& __c1, const char_type& __c2) { return __c1 == __c2; } static bool lt(const char_type& __c1, const char_type& __c2) { return (static_cast(__c1) < static_cast(__c2)); } static int compare(const char_type* __s1, const char_type* __s2, size_t __n) { return __builtin_memcmp(__s1, __s2, __n); } static size_t length(const char_type* __s) { return __builtin_strlen(__s); } static const char_type* find(const char_type* __s, size_t __n, const char_type& __a) { return static_cast(__builtin_memchr(__s, __a, __n)); } static char_type* move(char_type* __s1, const char_type* __s2, size_t __n) { return static_cast(__builtin_memmove(__s1, __s2, __n)); } static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) { return static_cast(__builtin_memcpy(__s1, __s2, __n)); } static char_type* assign(char_type* __s, size_t __n, char_type __a) { return static_cast(__builtin_memset(__s, __a, __n)); } static char_type to_char_type(const int_type& __c) { return static_cast(__c); } static int_type to_int_type(const char_type& __c) { return static_cast(static_cast(__c)); } static bool eq_int_type(const int_type& __c1, const int_type& __c2) { return __c1 == __c2; } static int_type eof() { return static_cast(-1); } static int_type not_eof(const int_type& __c) { return (__c == eof()) ? 0 : __c; } }; template<> struct char_traits { typedef wchar_t char_type; typedef wint_t int_type; typedef streamoff off_type; typedef wstreampos pos_type; typedef mbstate_t state_type; static void assign(char_type& __c1, const char_type& __c2) { __c1 = __c2; } static bool eq(const char_type& __c1, const char_type& __c2) { return __c1 == __c2; } static bool lt(const char_type& __c1, const char_type& __c2) { return __c1 < __c2; } static int compare(const char_type* __s1, const char_type* __s2, size_t __n) { return wmemcmp(__s1, __s2, __n); } static size_t length(const char_type* __s) { return wcslen(__s); } static const char_type* find(const char_type* __s, size_t __n, const char_type& __a) { return wmemchr(__s, __a, __n); } static char_type* move(char_type* __s1, const char_type* __s2, size_t __n) { return wmemmove(__s1, __s2, __n); } static char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) { return wmemcpy(__s1, __s2, __n); } static char_type* assign(char_type* __s, size_t __n, char_type __a) { return wmemset(__s, __a, __n); } static char_type to_char_type(const int_type& __c) { return char_type(__c); } static int_type to_int_type(const char_type& __c) { return int_type(__c); } static bool eq_int_type(const int_type& __c1, const int_type& __c2) { return __c1 == __c2; } static int_type eof() { return static_cast((0xffffffffu)); } static int_type not_eof(const int_type& __c) { return eq_int_type(__c, eof()) ? 0 : __c; } }; } # 41 "/usr/include/c++/5.0.0/ios" 2 3 # 1 "/usr/include/c++/5.0.0/bits/localefwd.h" 1 3 # 37 "/usr/include/c++/5.0.0/bits/localefwd.h" 3 # 38 "/usr/include/c++/5.0.0/bits/localefwd.h" 3 # 1 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/c++locale.h" 1 3 # 39 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/c++locale.h" 3 # 40 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/c++locale.h" 3 # 1 "/usr/include/c++/5.0.0/clocale" 1 3 # 39 "/usr/include/c++/5.0.0/clocale" 3 # 40 "/usr/include/c++/5.0.0/clocale" 3 # 1 "/usr/include/locale.h" 1 3 4 # 28 "/usr/include/locale.h" 3 4 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stddef.h" 1 3 4 # 29 "/usr/include/locale.h" 2 3 4 # 1 "/usr/include/bits/locale.h" 1 3 4 # 30 "/usr/include/locale.h" 2 3 4 extern "C" { # 50 "/usr/include/locale.h" 3 4 struct lconv { char *decimal_point; char *thousands_sep; char *grouping; char *int_curr_symbol; char *currency_symbol; char *mon_decimal_point; char *mon_thousands_sep; char *mon_grouping; char *positive_sign; char *negative_sign; char int_frac_digits; char frac_digits; char p_cs_precedes; char p_sep_by_space; char n_cs_precedes; char n_sep_by_space; char p_sign_posn; char n_sign_posn; char int_p_cs_precedes; char int_p_sep_by_space; char int_n_cs_precedes; char int_n_sep_by_space; char int_p_sign_posn; char int_n_sign_posn; # 120 "/usr/include/locale.h" 3 4 }; extern char *setlocale (int __category, const char *__locale) throw (); extern struct lconv *localeconv (void) throw (); # 151 "/usr/include/locale.h" 3 4 extern __locale_t newlocale (int __category_mask, const char *__locale, __locale_t __base) throw (); # 186 "/usr/include/locale.h" 3 4 extern __locale_t duplocale (__locale_t __dataset) throw (); extern void freelocale (__locale_t __dataset) throw (); extern __locale_t uselocale (__locale_t __dataset) throw (); } # 43 "/usr/include/c++/5.0.0/clocale" 2 3 # 51 "/usr/include/c++/5.0.0/clocale" 3 namespace std { using ::lconv; using ::setlocale; using ::localeconv; } # 42 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/c++locale.h" 2 3 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { extern "C" __typeof(uselocale) __uselocale; } namespace std __attribute__ ((__visibility__ ("default"))) { typedef __locale_t __c_locale; inline int __convert_from_v(const __c_locale& __cloc __attribute__ ((__unused__)), char* __out, const int __size __attribute__ ((__unused__)), const char* __fmt, ...) { __c_locale __old = __gnu_cxx::__uselocale(__cloc); # 88 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/c++locale.h" 3 __builtin_va_list __args; __builtin_va_start(__args, __fmt); const int __ret = __builtin_vsnprintf(__out, __size, __fmt, __args); __builtin_va_end(__args); __gnu_cxx::__uselocale(__old); return __ret; } } # 41 "/usr/include/c++/5.0.0/bits/localefwd.h" 2 3 # 1 "/usr/include/c++/5.0.0/cctype" 1 3 # 39 "/usr/include/c++/5.0.0/cctype" 3 # 40 "/usr/include/c++/5.0.0/cctype" 3 # 1 "/usr/include/ctype.h" 1 3 4 # 28 "/usr/include/ctype.h" 3 4 extern "C" { # 46 "/usr/include/ctype.h" 3 4 enum { _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) }; # 79 "/usr/include/ctype.h" 3 4 extern const unsigned short int **__ctype_b_loc (void) throw () __attribute__ ((__const__)); extern const __int32_t **__ctype_tolower_loc (void) throw () __attribute__ ((__const__)); extern const __int32_t **__ctype_toupper_loc (void) throw () __attribute__ ((__const__)); # 104 "/usr/include/ctype.h" 3 4 extern int isalnum (int) throw (); extern int isalpha (int) throw (); extern int iscntrl (int) throw (); extern int isdigit (int) throw (); extern int islower (int) throw (); extern int isgraph (int) throw (); extern int isprint (int) throw (); extern int ispunct (int) throw (); extern int isspace (int) throw (); extern int isupper (int) throw (); extern int isxdigit (int) throw (); extern int tolower (int __c) throw (); extern int toupper (int __c) throw (); extern int isblank (int) throw (); extern int isctype (int __c, int __mask) throw (); extern int isascii (int __c) throw (); extern int toascii (int __c) throw (); extern int _toupper (int) throw (); extern int _tolower (int) throw (); # 271 "/usr/include/ctype.h" 3 4 extern int isalnum_l (int, __locale_t) throw (); extern int isalpha_l (int, __locale_t) throw (); extern int iscntrl_l (int, __locale_t) throw (); extern int isdigit_l (int, __locale_t) throw (); extern int islower_l (int, __locale_t) throw (); extern int isgraph_l (int, __locale_t) throw (); extern int isprint_l (int, __locale_t) throw (); extern int ispunct_l (int, __locale_t) throw (); extern int isspace_l (int, __locale_t) throw (); extern int isupper_l (int, __locale_t) throw (); extern int isxdigit_l (int, __locale_t) throw (); extern int isblank_l (int, __locale_t) throw (); extern int __tolower_l (int __c, __locale_t __l) throw (); extern int tolower_l (int __c, __locale_t __l) throw (); extern int __toupper_l (int __c, __locale_t __l) throw (); extern int toupper_l (int __c, __locale_t __l) throw (); # 347 "/usr/include/ctype.h" 3 4 } # 43 "/usr/include/c++/5.0.0/cctype" 2 3 # 62 "/usr/include/c++/5.0.0/cctype" 3 namespace std { using ::isalnum; using ::isalpha; using ::iscntrl; using ::isdigit; using ::isgraph; using ::islower; using ::isprint; using ::ispunct; using ::isspace; using ::isupper; using ::isxdigit; using ::tolower; using ::toupper; } # 43 "/usr/include/c++/5.0.0/bits/localefwd.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 55 "/usr/include/c++/5.0.0/bits/localefwd.h" 3 class locale; template bool has_facet(const locale&) throw(); template const _Facet& use_facet(const locale&); template bool isspace(_CharT, const locale&); template bool isprint(_CharT, const locale&); template bool iscntrl(_CharT, const locale&); template bool isupper(_CharT, const locale&); template bool islower(_CharT, const locale&); template bool isalpha(_CharT, const locale&); template bool isdigit(_CharT, const locale&); template bool ispunct(_CharT, const locale&); template bool isxdigit(_CharT, const locale&); template bool isalnum(_CharT, const locale&); template bool isgraph(_CharT, const locale&); template _CharT toupper(_CharT, const locale&); template _CharT tolower(_CharT, const locale&); class ctype_base; template class ctype; template<> class ctype; template<> class ctype; template class ctype_byname; class codecvt_base; template class codecvt; template<> class codecvt; template<> class codecvt; template class codecvt_byname; template > class num_get; template > class num_put; template class numpunct; template class numpunct_byname; template class collate; template class collate_byname; class time_base; template > class time_get; template > class time_get_byname; template > class time_put; template > class time_put_byname; class money_base; template > class money_get; template > class money_put; template class moneypunct; template class moneypunct_byname; class messages_base; template class messages; template class messages_byname; } # 42 "/usr/include/c++/5.0.0/ios" 2 3 # 1 "/usr/include/c++/5.0.0/bits/ios_base.h" 1 3 # 37 "/usr/include/c++/5.0.0/bits/ios_base.h" 3 # 38 "/usr/include/c++/5.0.0/bits/ios_base.h" 3 # 1 "/usr/include/c++/5.0.0/ext/atomicity.h" 1 3 # 32 "/usr/include/c++/5.0.0/ext/atomicity.h" 3 # 33 "/usr/include/c++/5.0.0/ext/atomicity.h" 3 # 1 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/gthr.h" 1 3 # 30 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/gthr.h" 3 #pragma GCC visibility push(default) # 148 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/gthr.h" 3 # 1 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/gthr-default.h" 1 3 # 35 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/gthr-default.h" 3 # 1 "/usr/include/pthread.h" 1 3 4 # 23 "/usr/include/pthread.h" 3 4 # 1 "/usr/include/sched.h" 1 3 4 # 28 "/usr/include/sched.h" 3 4 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stddef.h" 1 3 4 # 29 "/usr/include/sched.h" 2 3 4 # 1 "/usr/include/time.h" 1 3 4 # 35 "/usr/include/sched.h" 2 3 4 # 43 "/usr/include/sched.h" 3 4 # 1 "/usr/include/bits/sched.h" 1 3 4 # 72 "/usr/include/bits/sched.h" 3 4 struct sched_param { int __sched_priority; }; extern "C" { extern int clone (int (*__fn) (void *__arg), void *__child_stack, int __flags, void *__arg, ...) throw (); extern int unshare (int __flags) throw (); extern int sched_getcpu (void) throw (); extern int setns (int __fd, int __nstype) throw (); } struct __sched_param { int __sched_priority; }; # 118 "/usr/include/bits/sched.h" 3 4 typedef unsigned long int __cpu_mask; typedef struct { __cpu_mask __bits[1024 / (8 * sizeof (__cpu_mask))]; } cpu_set_t; # 201 "/usr/include/bits/sched.h" 3 4 extern "C" { extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp) throw (); extern cpu_set_t *__sched_cpualloc (size_t __count) throw () __attribute__ ((__warn_unused_result__)); extern void __sched_cpufree (cpu_set_t *__set) throw (); } # 44 "/usr/include/sched.h" 2 3 4 extern "C" { extern int sched_setparam (__pid_t __pid, const struct sched_param *__param) throw (); extern int sched_getparam (__pid_t __pid, struct sched_param *__param) throw (); extern int sched_setscheduler (__pid_t __pid, int __policy, const struct sched_param *__param) throw (); extern int sched_getscheduler (__pid_t __pid) throw (); extern int sched_yield (void) throw (); extern int sched_get_priority_max (int __algorithm) throw (); extern int sched_get_priority_min (int __algorithm) throw (); extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) throw (); # 118 "/usr/include/sched.h" 3 4 extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize, const cpu_set_t *__cpuset) throw (); extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize, cpu_set_t *__cpuset) throw (); } # 24 "/usr/include/pthread.h" 2 3 4 # 1 "/usr/include/time.h" 1 3 4 # 29 "/usr/include/time.h" 3 4 extern "C" { # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stddef.h" 1 3 4 # 38 "/usr/include/time.h" 2 3 4 # 1 "/usr/include/bits/time.h" 1 3 4 # 88 "/usr/include/bits/time.h" 3 4 # 1 "/usr/include/bits/timex.h" 1 3 4 # 25 "/usr/include/bits/timex.h" 3 4 struct timex { unsigned int modes; __syscall_slong_t offset; __syscall_slong_t freq; __syscall_slong_t maxerror; __syscall_slong_t esterror; int status; __syscall_slong_t constant; __syscall_slong_t precision; __syscall_slong_t tolerance; struct timeval time; __syscall_slong_t tick; __syscall_slong_t ppsfreq; __syscall_slong_t jitter; int shift; __syscall_slong_t stabil; __syscall_slong_t jitcnt; __syscall_slong_t calcnt; __syscall_slong_t errcnt; __syscall_slong_t stbcnt; int tai; int :32; int :32; int :32; int :32; int :32; int :32; int :32; int :32; int :32; int :32; int :32; }; # 89 "/usr/include/bits/time.h" 2 3 4 extern "C" { extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) throw (); } # 42 "/usr/include/time.h" 2 3 4 # 131 "/usr/include/time.h" 3 4 struct tm { int tm_sec; int tm_min; int tm_hour; int tm_mday; int tm_mon; int tm_year; int tm_wday; int tm_yday; int tm_isdst; long int tm_gmtoff; const char *tm_zone; }; struct itimerspec { struct timespec it_interval; struct timespec it_value; }; struct sigevent; # 186 "/usr/include/time.h" 3 4 extern clock_t clock (void) throw (); extern time_t time (time_t *__timer) throw (); extern double difftime (time_t __time1, time_t __time0) throw () __attribute__ ((__const__)); extern time_t mktime (struct tm *__tp) throw (); extern size_t strftime (char *__restrict __s, size_t __maxsize, const char *__restrict __format, const struct tm *__restrict __tp) throw (); extern char *strptime (const char *__restrict __s, const char *__restrict __fmt, struct tm *__tp) throw (); extern size_t strftime_l (char *__restrict __s, size_t __maxsize, const char *__restrict __format, const struct tm *__restrict __tp, __locale_t __loc) throw (); extern char *strptime_l (const char *__restrict __s, const char *__restrict __fmt, struct tm *__tp, __locale_t __loc) throw (); extern struct tm *gmtime (const time_t *__timer) throw (); extern struct tm *localtime (const time_t *__timer) throw (); extern struct tm *gmtime_r (const time_t *__restrict __timer, struct tm *__restrict __tp) throw (); extern struct tm *localtime_r (const time_t *__restrict __timer, struct tm *__restrict __tp) throw (); extern char *asctime (const struct tm *__tp) throw (); extern char *ctime (const time_t *__timer) throw (); extern char *asctime_r (const struct tm *__restrict __tp, char *__restrict __buf) throw (); extern char *ctime_r (const time_t *__restrict __timer, char *__restrict __buf) throw (); extern char *__tzname[2]; extern int __daylight; extern long int __timezone; extern char *tzname[2]; extern void tzset (void) throw (); extern int daylight; extern long int timezone; extern int stime (const time_t *__when) throw (); # 319 "/usr/include/time.h" 3 4 extern time_t timegm (struct tm *__tp) throw (); extern time_t timelocal (struct tm *__tp) throw (); extern int dysize (int __year) throw () __attribute__ ((__const__)); # 334 "/usr/include/time.h" 3 4 extern int nanosleep (const struct timespec *__requested_time, struct timespec *__remaining); extern int clock_getres (clockid_t __clock_id, struct timespec *__res) throw (); extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) throw (); extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp) throw (); extern int clock_nanosleep (clockid_t __clock_id, int __flags, const struct timespec *__req, struct timespec *__rem); extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) throw (); extern int timer_create (clockid_t __clock_id, struct sigevent *__restrict __evp, timer_t *__restrict __timerid) throw (); extern int timer_delete (timer_t __timerid) throw (); extern int timer_settime (timer_t __timerid, int __flags, const struct itimerspec *__restrict __value, struct itimerspec *__restrict __ovalue) throw (); extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) throw (); extern int timer_getoverrun (timer_t __timerid) throw (); extern int timespec_get (struct timespec *__ts, int __base) throw () __attribute__ ((__nonnull__ (1))); # 403 "/usr/include/time.h" 3 4 extern int getdate_err; # 412 "/usr/include/time.h" 3 4 extern struct tm *getdate (const char *__string); # 426 "/usr/include/time.h" 3 4 extern int getdate_r (const char *__restrict __string, struct tm *__restrict __resbufp); } # 25 "/usr/include/pthread.h" 2 3 4 # 1 "/usr/include/bits/setjmp.h" 1 3 4 # 26 "/usr/include/bits/setjmp.h" 3 4 # 1 "/usr/include/bits/wordsize.h" 1 3 4 # 27 "/usr/include/bits/setjmp.h" 2 3 4 typedef long int __jmp_buf[8]; # 28 "/usr/include/pthread.h" 2 3 4 # 1 "/usr/include/bits/wordsize.h" 1 3 4 # 29 "/usr/include/pthread.h" 2 3 4 enum { PTHREAD_CREATE_JOINABLE, PTHREAD_CREATE_DETACHED }; enum { PTHREAD_MUTEX_TIMED_NP, PTHREAD_MUTEX_RECURSIVE_NP, PTHREAD_MUTEX_ERRORCHECK_NP, PTHREAD_MUTEX_ADAPTIVE_NP , PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP, PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP, PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP, PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL , PTHREAD_MUTEX_FAST_NP = PTHREAD_MUTEX_TIMED_NP }; enum { PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_STALLED_NP = PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_MUTEX_ROBUST_NP = PTHREAD_MUTEX_ROBUST }; enum { PTHREAD_PRIO_NONE, PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT }; # 116 "/usr/include/pthread.h" 3 4 enum { PTHREAD_RWLOCK_PREFER_READER_NP, PTHREAD_RWLOCK_PREFER_WRITER_NP, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP }; # 157 "/usr/include/pthread.h" 3 4 enum { PTHREAD_INHERIT_SCHED, PTHREAD_EXPLICIT_SCHED }; enum { PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS }; enum { PTHREAD_PROCESS_PRIVATE, PTHREAD_PROCESS_SHARED }; # 192 "/usr/include/pthread.h" 3 4 struct _pthread_cleanup_buffer { void (*__routine) (void *); void *__arg; int __canceltype; struct _pthread_cleanup_buffer *__prev; }; enum { PTHREAD_CANCEL_ENABLE, PTHREAD_CANCEL_DISABLE }; enum { PTHREAD_CANCEL_DEFERRED, PTHREAD_CANCEL_ASYNCHRONOUS }; # 230 "/usr/include/pthread.h" 3 4 extern "C" { extern int pthread_create (pthread_t *__restrict __newthread, const pthread_attr_t *__restrict __attr, void *(*__start_routine) (void *), void *__restrict __arg) throw () __attribute__ ((__nonnull__ (1, 3))); extern void pthread_exit (void *__retval) __attribute__ ((__noreturn__)); extern int pthread_join (pthread_t __th, void **__thread_return); extern int pthread_tryjoin_np (pthread_t __th, void **__thread_return) throw (); extern int pthread_timedjoin_np (pthread_t __th, void **__thread_return, const struct timespec *__abstime); extern int pthread_detach (pthread_t __th) throw (); extern pthread_t pthread_self (void) throw () __attribute__ ((__const__)); extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) throw () __attribute__ ((__const__)); extern int pthread_attr_init (pthread_attr_t *__attr) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_attr_destroy (pthread_attr_t *__attr) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_attr_getdetachstate (const pthread_attr_t *__attr, int *__detachstate) throw () __attribute__ ((__nonnull__ (1, 2))); extern int pthread_attr_setdetachstate (pthread_attr_t *__attr, int __detachstate) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_attr_getguardsize (const pthread_attr_t *__attr, size_t *__guardsize) throw () __attribute__ ((__nonnull__ (1, 2))); extern int pthread_attr_setguardsize (pthread_attr_t *__attr, size_t __guardsize) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_attr_getschedparam (const pthread_attr_t *__restrict __attr, struct sched_param *__restrict __param) throw () __attribute__ ((__nonnull__ (1, 2))); extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr, const struct sched_param *__restrict __param) throw () __attribute__ ((__nonnull__ (1, 2))); extern int pthread_attr_getschedpolicy (const pthread_attr_t *__restrict __attr, int *__restrict __policy) throw () __attribute__ ((__nonnull__ (1, 2))); extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_attr_getinheritsched (const pthread_attr_t *__restrict __attr, int *__restrict __inherit) throw () __attribute__ ((__nonnull__ (1, 2))); extern int pthread_attr_setinheritsched (pthread_attr_t *__attr, int __inherit) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_attr_getscope (const pthread_attr_t *__restrict __attr, int *__restrict __scope) throw () __attribute__ ((__nonnull__ (1, 2))); extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_attr_getstackaddr (const pthread_attr_t *__restrict __attr, void **__restrict __stackaddr) throw () __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__deprecated__)); extern int pthread_attr_setstackaddr (pthread_attr_t *__attr, void *__stackaddr) throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)); extern int pthread_attr_getstacksize (const pthread_attr_t *__restrict __attr, size_t *__restrict __stacksize) throw () __attribute__ ((__nonnull__ (1, 2))); extern int pthread_attr_setstacksize (pthread_attr_t *__attr, size_t __stacksize) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_attr_getstack (const pthread_attr_t *__restrict __attr, void **__restrict __stackaddr, size_t *__restrict __stacksize) throw () __attribute__ ((__nonnull__ (1, 2, 3))); extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr, size_t __stacksize) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_attr_setaffinity_np (pthread_attr_t *__attr, size_t __cpusetsize, const cpu_set_t *__cpuset) throw () __attribute__ ((__nonnull__ (1, 3))); extern int pthread_attr_getaffinity_np (const pthread_attr_t *__attr, size_t __cpusetsize, cpu_set_t *__cpuset) throw () __attribute__ ((__nonnull__ (1, 3))); extern int pthread_getattr_default_np (pthread_attr_t *__attr) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_setattr_default_np (const pthread_attr_t *__attr) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_getattr_np (pthread_t __th, pthread_attr_t *__attr) throw () __attribute__ ((__nonnull__ (2))); extern int pthread_setschedparam (pthread_t __target_thread, int __policy, const struct sched_param *__param) throw () __attribute__ ((__nonnull__ (3))); extern int pthread_getschedparam (pthread_t __target_thread, int *__restrict __policy, struct sched_param *__restrict __param) throw () __attribute__ ((__nonnull__ (2, 3))); extern int pthread_setschedprio (pthread_t __target_thread, int __prio) throw (); extern int pthread_getname_np (pthread_t __target_thread, char *__buf, size_t __buflen) throw () __attribute__ ((__nonnull__ (2))); extern int pthread_setname_np (pthread_t __target_thread, const char *__name) throw () __attribute__ ((__nonnull__ (2))); extern int pthread_getconcurrency (void) throw (); extern int pthread_setconcurrency (int __level) throw (); extern int pthread_yield (void) throw (); extern int pthread_setaffinity_np (pthread_t __th, size_t __cpusetsize, const cpu_set_t *__cpuset) throw () __attribute__ ((__nonnull__ (3))); extern int pthread_getaffinity_np (pthread_t __th, size_t __cpusetsize, cpu_set_t *__cpuset) throw () __attribute__ ((__nonnull__ (3))); # 496 "/usr/include/pthread.h" 3 4 extern int pthread_once (pthread_once_t *__once_control, void (*__init_routine) (void)) __attribute__ ((__nonnull__ (1, 2))); # 508 "/usr/include/pthread.h" 3 4 extern int pthread_setcancelstate (int __state, int *__oldstate); extern int pthread_setcanceltype (int __type, int *__oldtype); extern int pthread_cancel (pthread_t __th); extern void pthread_testcancel (void); typedef struct { struct { __jmp_buf __cancel_jmp_buf; int __mask_was_saved; } __cancel_jmp_buf[1]; void *__pad[4]; } __pthread_unwind_buf_t __attribute__ ((__aligned__)); # 542 "/usr/include/pthread.h" 3 4 struct __pthread_cleanup_frame { void (*__cancel_routine) (void *); void *__cancel_arg; int __do_it; int __cancel_type; }; class __pthread_cleanup_class { void (*__cancel_routine) (void *); void *__cancel_arg; int __do_it; int __cancel_type; public: __pthread_cleanup_class (void (*__fct) (void *), void *__arg) : __cancel_routine (__fct), __cancel_arg (__arg), __do_it (1) { } ~__pthread_cleanup_class () { if (__do_it) __cancel_routine (__cancel_arg); } void __setdoit (int __newval) { __do_it = __newval; } void __defer () { pthread_setcanceltype (PTHREAD_CANCEL_DEFERRED, &__cancel_type); } void __restore () const { pthread_setcanceltype (__cancel_type, 0); } }; # 744 "/usr/include/pthread.h" 3 4 struct __jmp_buf_tag; extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask) throw (); extern int pthread_mutex_init (pthread_mutex_t *__mutex, const pthread_mutexattr_t *__mutexattr) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_mutex_destroy (pthread_mutex_t *__mutex) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_mutex_trylock (pthread_mutex_t *__mutex) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_mutex_lock (pthread_mutex_t *__mutex) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex, const struct timespec *__restrict __abstime) throw () __attribute__ ((__nonnull__ (1, 2))); extern int pthread_mutex_unlock (pthread_mutex_t *__mutex) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_mutex_getprioceiling (const pthread_mutex_t * __restrict __mutex, int *__restrict __prioceiling) throw () __attribute__ ((__nonnull__ (1, 2))); extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex, int __prioceiling, int *__restrict __old_ceiling) throw () __attribute__ ((__nonnull__ (1, 3))); extern int pthread_mutex_consistent (pthread_mutex_t *__mutex) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_mutex_consistent_np (pthread_mutex_t *__mutex) throw () __attribute__ ((__nonnull__ (1))); # 808 "/usr/include/pthread.h" 3 4 extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_mutexattr_getpshared (const pthread_mutexattr_t * __restrict __attr, int *__restrict __pshared) throw () __attribute__ ((__nonnull__ (1, 2))); extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr, int __pshared) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_mutexattr_gettype (const pthread_mutexattr_t *__restrict __attr, int *__restrict __kind) throw () __attribute__ ((__nonnull__ (1, 2))); extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_mutexattr_getprotocol (const pthread_mutexattr_t * __restrict __attr, int *__restrict __protocol) throw () __attribute__ ((__nonnull__ (1, 2))); extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr, int __protocol) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_mutexattr_getprioceiling (const pthread_mutexattr_t * __restrict __attr, int *__restrict __prioceiling) throw () __attribute__ ((__nonnull__ (1, 2))); extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr, int __prioceiling) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_mutexattr_getrobust (const pthread_mutexattr_t *__attr, int *__robustness) throw () __attribute__ ((__nonnull__ (1, 2))); extern int pthread_mutexattr_getrobust_np (const pthread_mutexattr_t *__attr, int *__robustness) throw () __attribute__ ((__nonnull__ (1, 2))); extern int pthread_mutexattr_setrobust (pthread_mutexattr_t *__attr, int __robustness) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_mutexattr_setrobust_np (pthread_mutexattr_t *__attr, int __robustness) throw () __attribute__ ((__nonnull__ (1))); # 890 "/usr/include/pthread.h" 3 4 extern int pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock, const pthread_rwlockattr_t *__restrict __attr) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock, const struct timespec *__restrict __abstime) throw () __attribute__ ((__nonnull__ (1, 2))); extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_rwlock_timedwrlock (pthread_rwlock_t *__restrict __rwlock, const struct timespec *__restrict __abstime) throw () __attribute__ ((__nonnull__ (1, 2))); extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_rwlockattr_getpshared (const pthread_rwlockattr_t * __restrict __attr, int *__restrict __pshared) throw () __attribute__ ((__nonnull__ (1, 2))); extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr, int __pshared) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_rwlockattr_getkind_np (const pthread_rwlockattr_t * __restrict __attr, int *__restrict __pref) throw () __attribute__ ((__nonnull__ (1, 2))); extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr, int __pref) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_cond_init (pthread_cond_t *__restrict __cond, const pthread_condattr_t *__restrict __cond_attr) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_cond_destroy (pthread_cond_t *__cond) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_cond_signal (pthread_cond_t *__cond) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_cond_broadcast (pthread_cond_t *__cond) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_cond_wait (pthread_cond_t *__restrict __cond, pthread_mutex_t *__restrict __mutex) __attribute__ ((__nonnull__ (1, 2))); # 1002 "/usr/include/pthread.h" 3 4 extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond, pthread_mutex_t *__restrict __mutex, const struct timespec *__restrict __abstime) __attribute__ ((__nonnull__ (1, 2, 3))); extern int pthread_condattr_init (pthread_condattr_t *__attr) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_condattr_destroy (pthread_condattr_t *__attr) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_condattr_getpshared (const pthread_condattr_t * __restrict __attr, int *__restrict __pshared) throw () __attribute__ ((__nonnull__ (1, 2))); extern int pthread_condattr_setpshared (pthread_condattr_t *__attr, int __pshared) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_condattr_getclock (const pthread_condattr_t * __restrict __attr, __clockid_t *__restrict __clock_id) throw () __attribute__ ((__nonnull__ (1, 2))); extern int pthread_condattr_setclock (pthread_condattr_t *__attr, __clockid_t __clock_id) throw () __attribute__ ((__nonnull__ (1))); # 1046 "/usr/include/pthread.h" 3 4 extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_spin_destroy (pthread_spinlock_t *__lock) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_spin_lock (pthread_spinlock_t *__lock) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_spin_trylock (pthread_spinlock_t *__lock) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_spin_unlock (pthread_spinlock_t *__lock) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_barrier_init (pthread_barrier_t *__restrict __barrier, const pthread_barrierattr_t *__restrict __attr, unsigned int __count) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_barrier_destroy (pthread_barrier_t *__barrier) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_barrier_wait (pthread_barrier_t *__barrier) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_barrierattr_init (pthread_barrierattr_t *__attr) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_barrierattr_destroy (pthread_barrierattr_t *__attr) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_barrierattr_getpshared (const pthread_barrierattr_t * __restrict __attr, int *__restrict __pshared) throw () __attribute__ ((__nonnull__ (1, 2))); extern int pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr, int __pshared) throw () __attribute__ ((__nonnull__ (1))); # 1113 "/usr/include/pthread.h" 3 4 extern int pthread_key_create (pthread_key_t *__key, void (*__destr_function) (void *)) throw () __attribute__ ((__nonnull__ (1))); extern int pthread_key_delete (pthread_key_t __key) throw (); extern void *pthread_getspecific (pthread_key_t __key) throw (); extern int pthread_setspecific (pthread_key_t __key, const void *__pointer) throw () ; extern int pthread_getcpuclockid (pthread_t __thread_id, __clockid_t *__clock_id) throw () __attribute__ ((__nonnull__ (2))); # 1147 "/usr/include/pthread.h" 3 4 extern int pthread_atfork (void (*__prepare) (void), void (*__parent) (void), void (*__child) (void)) throw (); extern __inline __attribute__ ((__gnu_inline__)) int __attribute__ ((__leaf__)) pthread_equal (pthread_t __thread1, pthread_t __thread2) throw () { return __thread1 == __thread2; } } # 36 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/gthr-default.h" 2 3 # 47 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/gthr-default.h" 3 typedef pthread_t __gthread_t; typedef pthread_key_t __gthread_key_t; typedef pthread_once_t __gthread_once_t; typedef pthread_mutex_t __gthread_mutex_t; typedef pthread_mutex_t __gthread_recursive_mutex_t; typedef pthread_cond_t __gthread_cond_t; typedef struct timespec __gthread_time_t; # 101 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/gthr-default.h" 3 static __typeof(pthread_once) __gthrw_pthread_once __attribute__ ((__weakref__("pthread_once"))); static __typeof(pthread_getspecific) __gthrw_pthread_getspecific __attribute__ ((__weakref__("pthread_getspecific"))); static __typeof(pthread_setspecific) __gthrw_pthread_setspecific __attribute__ ((__weakref__("pthread_setspecific"))); static __typeof(pthread_create) __gthrw_pthread_create __attribute__ ((__weakref__("pthread_create"))); static __typeof(pthread_join) __gthrw_pthread_join __attribute__ ((__weakref__("pthread_join"))); static __typeof(pthread_equal) __gthrw_pthread_equal __attribute__ ((__weakref__("pthread_equal"))); static __typeof(pthread_self) __gthrw_pthread_self __attribute__ ((__weakref__("pthread_self"))); static __typeof(pthread_detach) __gthrw_pthread_detach __attribute__ ((__weakref__("pthread_detach"))); static __typeof(pthread_cancel) __gthrw_pthread_cancel __attribute__ ((__weakref__("pthread_cancel"))); static __typeof(sched_yield) __gthrw_sched_yield __attribute__ ((__weakref__("sched_yield"))); static __typeof(pthread_mutex_lock) __gthrw_pthread_mutex_lock __attribute__ ((__weakref__("pthread_mutex_lock"))); static __typeof(pthread_mutex_trylock) __gthrw_pthread_mutex_trylock __attribute__ ((__weakref__("pthread_mutex_trylock"))); static __typeof(pthread_mutex_timedlock) __gthrw_pthread_mutex_timedlock __attribute__ ((__weakref__("pthread_mutex_timedlock"))); static __typeof(pthread_mutex_unlock) __gthrw_pthread_mutex_unlock __attribute__ ((__weakref__("pthread_mutex_unlock"))); static __typeof(pthread_mutex_init) __gthrw_pthread_mutex_init __attribute__ ((__weakref__("pthread_mutex_init"))); static __typeof(pthread_mutex_destroy) __gthrw_pthread_mutex_destroy __attribute__ ((__weakref__("pthread_mutex_destroy"))); static __typeof(pthread_cond_init) __gthrw_pthread_cond_init __attribute__ ((__weakref__("pthread_cond_init"))); static __typeof(pthread_cond_broadcast) __gthrw_pthread_cond_broadcast __attribute__ ((__weakref__("pthread_cond_broadcast"))); static __typeof(pthread_cond_signal) __gthrw_pthread_cond_signal __attribute__ ((__weakref__("pthread_cond_signal"))); static __typeof(pthread_cond_wait) __gthrw_pthread_cond_wait __attribute__ ((__weakref__("pthread_cond_wait"))); static __typeof(pthread_cond_timedwait) __gthrw_pthread_cond_timedwait __attribute__ ((__weakref__("pthread_cond_timedwait"))); static __typeof(pthread_cond_destroy) __gthrw_pthread_cond_destroy __attribute__ ((__weakref__("pthread_cond_destroy"))); static __typeof(pthread_key_create) __gthrw_pthread_key_create __attribute__ ((__weakref__("pthread_key_create"))); static __typeof(pthread_key_delete) __gthrw_pthread_key_delete __attribute__ ((__weakref__("pthread_key_delete"))); static __typeof(pthread_mutexattr_init) __gthrw_pthread_mutexattr_init __attribute__ ((__weakref__("pthread_mutexattr_init"))); static __typeof(pthread_mutexattr_settype) __gthrw_pthread_mutexattr_settype __attribute__ ((__weakref__("pthread_mutexattr_settype"))); static __typeof(pthread_mutexattr_destroy) __gthrw_pthread_mutexattr_destroy __attribute__ ((__weakref__("pthread_mutexattr_destroy"))); # 236 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/gthr-default.h" 3 static __typeof(pthread_key_create) __gthrw___pthread_key_create __attribute__ ((__weakref__("__pthread_key_create"))); # 246 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/gthr-default.h" 3 static inline int __gthread_active_p (void) { static void *const __gthread_active_ptr = __extension__ (void *) &__gthrw___pthread_key_create; return __gthread_active_ptr != 0; } # 658 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/gthr-default.h" 3 static inline int __gthread_create (__gthread_t *__threadid, void *(*__func) (void*), void *__args) { return __gthrw_pthread_create (__threadid, __null, __func, __args); } static inline int __gthread_join (__gthread_t __threadid, void **__value_ptr) { return __gthrw_pthread_join (__threadid, __value_ptr); } static inline int __gthread_detach (__gthread_t __threadid) { return __gthrw_pthread_detach (__threadid); } static inline int __gthread_equal (__gthread_t __t1, __gthread_t __t2) { return __gthrw_pthread_equal (__t1, __t2); } static inline __gthread_t __gthread_self (void) { return __gthrw_pthread_self (); } static inline int __gthread_yield (void) { return __gthrw_sched_yield (); } static inline int __gthread_once (__gthread_once_t *__once, void (*__func) (void)) { if (__gthread_active_p ()) return __gthrw_pthread_once (__once, __func); else return -1; } static inline int __gthread_key_create (__gthread_key_t *__key, void (*__dtor) (void *)) { return __gthrw_pthread_key_create (__key, __dtor); } static inline int __gthread_key_delete (__gthread_key_t __key) { return __gthrw_pthread_key_delete (__key); } static inline void * __gthread_getspecific (__gthread_key_t __key) { return __gthrw_pthread_getspecific (__key); } static inline int __gthread_setspecific (__gthread_key_t __key, const void *__ptr) { return __gthrw_pthread_setspecific (__key, __ptr); } static inline void __gthread_mutex_init_function (__gthread_mutex_t *__mutex) { if (__gthread_active_p ()) __gthrw_pthread_mutex_init (__mutex, __null); } static inline int __gthread_mutex_destroy (__gthread_mutex_t *__mutex) { if (__gthread_active_p ()) return __gthrw_pthread_mutex_destroy (__mutex); else return 0; } static inline int __gthread_mutex_lock (__gthread_mutex_t *__mutex) { if (__gthread_active_p ()) return __gthrw_pthread_mutex_lock (__mutex); else return 0; } static inline int __gthread_mutex_trylock (__gthread_mutex_t *__mutex) { if (__gthread_active_p ()) return __gthrw_pthread_mutex_trylock (__mutex); else return 0; } static inline int __gthread_mutex_timedlock (__gthread_mutex_t *__mutex, const __gthread_time_t *__abs_timeout) { if (__gthread_active_p ()) return __gthrw_pthread_mutex_timedlock (__mutex, __abs_timeout); else return 0; } static inline int __gthread_mutex_unlock (__gthread_mutex_t *__mutex) { if (__gthread_active_p ()) return __gthrw_pthread_mutex_unlock (__mutex); else return 0; } # 807 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/gthr-default.h" 3 static inline int __gthread_recursive_mutex_lock (__gthread_recursive_mutex_t *__mutex) { return __gthread_mutex_lock (__mutex); } static inline int __gthread_recursive_mutex_trylock (__gthread_recursive_mutex_t *__mutex) { return __gthread_mutex_trylock (__mutex); } static inline int __gthread_recursive_mutex_timedlock (__gthread_recursive_mutex_t *__mutex, const __gthread_time_t *__abs_timeout) { return __gthread_mutex_timedlock (__mutex, __abs_timeout); } static inline int __gthread_recursive_mutex_unlock (__gthread_recursive_mutex_t *__mutex) { return __gthread_mutex_unlock (__mutex); } static inline int __gthread_recursive_mutex_destroy (__gthread_recursive_mutex_t *__mutex) { return __gthread_mutex_destroy (__mutex); } # 849 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/gthr-default.h" 3 static inline int __gthread_cond_broadcast (__gthread_cond_t *__cond) { return __gthrw_pthread_cond_broadcast (__cond); } static inline int __gthread_cond_signal (__gthread_cond_t *__cond) { return __gthrw_pthread_cond_signal (__cond); } static inline int __gthread_cond_wait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex) { return __gthrw_pthread_cond_wait (__cond, __mutex); } static inline int __gthread_cond_timedwait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex, const __gthread_time_t *__abs_timeout) { return __gthrw_pthread_cond_timedwait (__cond, __mutex, __abs_timeout); } static inline int __gthread_cond_wait_recursive (__gthread_cond_t *__cond, __gthread_recursive_mutex_t *__mutex) { return __gthread_cond_wait (__cond, __mutex); } static inline int __gthread_cond_destroy (__gthread_cond_t* __cond) { return __gthrw_pthread_cond_destroy (__cond); } # 149 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/gthr.h" 2 3 #pragma GCC visibility pop # 36 "/usr/include/c++/5.0.0/ext/atomicity.h" 2 3 # 1 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/atomic_word.h" 1 3 # 32 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/atomic_word.h" 3 typedef int _Atomic_word; # 37 "/usr/include/c++/5.0.0/ext/atomicity.h" 2 3 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { static inline _Atomic_word __exchange_and_add(volatile _Atomic_word* __mem, int __val) { return __atomic_fetch_add(__mem, __val, 4); } static inline void __atomic_add(volatile _Atomic_word* __mem, int __val) { __atomic_fetch_add(__mem, __val, 4); } # 64 "/usr/include/c++/5.0.0/ext/atomicity.h" 3 static inline _Atomic_word __exchange_and_add_single(_Atomic_word* __mem, int __val) { _Atomic_word __result = *__mem; *__mem += __val; return __result; } static inline void __atomic_add_single(_Atomic_word* __mem, int __val) { *__mem += __val; } static inline _Atomic_word __attribute__ ((__unused__)) __exchange_and_add_dispatch(_Atomic_word* __mem, int __val) { if (__gthread_active_p()) return __exchange_and_add(__mem, __val); else return __exchange_and_add_single(__mem, __val); } static inline void __attribute__ ((__unused__)) __atomic_add_dispatch(_Atomic_word* __mem, int __val) { if (__gthread_active_p()) __atomic_add(__mem, __val); else __atomic_add_single(__mem, __val); } } # 40 "/usr/include/c++/5.0.0/bits/ios_base.h" 2 3 # 1 "/usr/include/c++/5.0.0/bits/locale_classes.h" 1 3 # 37 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 # 38 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 # 1 "/usr/include/c++/5.0.0/string" 1 3 # 36 "/usr/include/c++/5.0.0/string" 3 # 37 "/usr/include/c++/5.0.0/string" 3 # 1 "/usr/include/c++/5.0.0/bits/allocator.h" 1 3 # 46 "/usr/include/c++/5.0.0/bits/allocator.h" 3 # 1 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/c++allocator.h" 1 3 # 33 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/c++allocator.h" 3 # 1 "/usr/include/c++/5.0.0/ext/new_allocator.h" 1 3 # 33 "/usr/include/c++/5.0.0/ext/new_allocator.h" 3 # 1 "/usr/include/c++/5.0.0/new" 1 3 # 37 "/usr/include/c++/5.0.0/new" 3 # 38 "/usr/include/c++/5.0.0/new" 3 #pragma GCC visibility push(default) extern "C++" { namespace std { class bad_alloc : public exception { public: bad_alloc() throw() { } virtual ~bad_alloc() throw(); virtual const char* what() const throw(); }; # 82 "/usr/include/c++/5.0.0/new" 3 struct nothrow_t { }; extern const nothrow_t nothrow; typedef void (*new_handler)(); new_handler set_new_handler(new_handler) throw(); } # 111 "/usr/include/c++/5.0.0/new" 3 void* operator new(std::size_t) throw(std::bad_alloc) __attribute__((__externally_visible__)); void* operator new[](std::size_t) throw(std::bad_alloc) __attribute__((__externally_visible__)); void operator delete(void*) throw() __attribute__((__externally_visible__)); void operator delete[](void*) throw() __attribute__((__externally_visible__)); void* operator new(std::size_t, const std::nothrow_t&) throw() __attribute__((__externally_visible__)); void* operator new[](std::size_t, const std::nothrow_t&) throw() __attribute__((__externally_visible__)); void operator delete(void*, const std::nothrow_t&) throw() __attribute__((__externally_visible__)); void operator delete[](void*, const std::nothrow_t&) throw() __attribute__((__externally_visible__)); inline void* operator new(std::size_t, void* __p) throw() { return __p; } inline void* operator new[](std::size_t, void* __p) throw() { return __p; } inline void operator delete (void*, void*) throw() { } inline void operator delete[](void*, void*) throw() { } } #pragma GCC visibility pop # 34 "/usr/include/c++/5.0.0/ext/new_allocator.h" 2 3 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { using std::size_t; using std::ptrdiff_t; # 57 "/usr/include/c++/5.0.0/ext/new_allocator.h" 3 template class new_allocator { public: typedef size_t size_type; typedef ptrdiff_t difference_type; typedef _Tp* pointer; typedef const _Tp* const_pointer; typedef _Tp& reference; typedef const _Tp& const_reference; typedef _Tp value_type; template struct rebind { typedef new_allocator<_Tp1> other; }; new_allocator() throw() { } new_allocator(const new_allocator&) throw() { } template new_allocator(const new_allocator<_Tp1>&) throw() { } ~new_allocator() throw() { } pointer address(reference __x) const { return std::__addressof(__x); } const_pointer address(const_reference __x) const { return std::__addressof(__x); } pointer allocate(size_type __n, const void* = 0) { if (__n > this->max_size()) std::__throw_bad_alloc(); return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp))); } void deallocate(pointer __p, size_type) { ::operator delete(__p); } size_type max_size() const throw() { return size_t(-1) / sizeof(_Tp); } # 128 "/usr/include/c++/5.0.0/ext/new_allocator.h" 3 void construct(pointer __p, const _Tp& __val) { ::new((void *)__p) _Tp(__val); } void destroy(pointer __p) { __p->~_Tp(); } }; template inline bool operator==(const new_allocator<_Tp>&, const new_allocator<_Tp>&) { return true; } template inline bool operator!=(const new_allocator<_Tp>&, const new_allocator<_Tp>&) { return false; } } # 34 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/c++allocator.h" 2 3 # 47 "/usr/include/c++/5.0.0/bits/allocator.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<> class allocator { public: typedef size_t size_type; typedef ptrdiff_t difference_type; typedef void* pointer; typedef const void* const_pointer; typedef void value_type; template struct rebind { typedef allocator<_Tp1> other; }; }; # 91 "/usr/include/c++/5.0.0/bits/allocator.h" 3 template class allocator: public __gnu_cxx::new_allocator<_Tp> { public: typedef size_t size_type; typedef ptrdiff_t difference_type; typedef _Tp* pointer; typedef const _Tp* const_pointer; typedef _Tp& reference; typedef const _Tp& const_reference; typedef _Tp value_type; template struct rebind { typedef allocator<_Tp1> other; }; allocator() throw() { } allocator(const allocator& __a) throw() : __gnu_cxx::new_allocator<_Tp>(__a) { } template allocator(const allocator<_Tp1>&) throw() { } ~allocator() throw() { } }; template inline bool operator==(const allocator<_T1>&, const allocator<_T2>&) throw() { return true; } template inline bool operator==(const allocator<_Tp>&, const allocator<_Tp>&) throw() { return true; } template inline bool operator!=(const allocator<_T1>&, const allocator<_T2>&) throw() { return false; } template inline bool operator!=(const allocator<_Tp>&, const allocator<_Tp>&) throw() { return false; } extern template class allocator; extern template class allocator; template struct __alloc_swap { static void _S_do_it(_Alloc&, _Alloc&) { } }; template struct __alloc_swap<_Alloc, false> { static void _S_do_it(_Alloc& __one, _Alloc& __two) { if (__one != __two) swap(__one, __two); } }; template struct __alloc_neq { static bool _S_do_it(const _Alloc&, const _Alloc&) { return false; } }; template struct __alloc_neq<_Alloc, false> { static bool _S_do_it(const _Alloc& __one, const _Alloc& __two) { return __one != __two; } }; # 222 "/usr/include/c++/5.0.0/bits/allocator.h" 3 } # 42 "/usr/include/c++/5.0.0/string" 2 3 # 1 "/usr/include/c++/5.0.0/bits/ostream_insert.h" 1 3 # 33 "/usr/include/c++/5.0.0/bits/ostream_insert.h" 3 # 34 "/usr/include/c++/5.0.0/bits/ostream_insert.h" 3 # 1 "/usr/include/c++/5.0.0/bits/cxxabi_forced.h" 1 3 # 34 "/usr/include/c++/5.0.0/bits/cxxabi_forced.h" 3 # 35 "/usr/include/c++/5.0.0/bits/cxxabi_forced.h" 3 #pragma GCC visibility push(default) namespace __cxxabiv1 { class __forced_unwind { virtual ~__forced_unwind() throw(); virtual void __pure_dummy() = 0; }; } #pragma GCC visibility pop # 37 "/usr/include/c++/5.0.0/bits/ostream_insert.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template inline void __ostream_write(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s, streamsize __n) { typedef basic_ostream<_CharT, _Traits> __ostream_type; typedef typename __ostream_type::ios_base __ios_base; const streamsize __put = __out.rdbuf()->sputn(__s, __n); if (__put != __n) __out.setstate(__ios_base::badbit); } template inline void __ostream_fill(basic_ostream<_CharT, _Traits>& __out, streamsize __n) { typedef basic_ostream<_CharT, _Traits> __ostream_type; typedef typename __ostream_type::ios_base __ios_base; const _CharT __c = __out.fill(); for (; __n > 0; --__n) { const typename _Traits::int_type __put = __out.rdbuf()->sputc(__c); if (_Traits::eq_int_type(__put, _Traits::eof())) { __out.setstate(__ios_base::badbit); break; } } } template basic_ostream<_CharT, _Traits>& __ostream_insert(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s, streamsize __n) { typedef basic_ostream<_CharT, _Traits> __ostream_type; typedef typename __ostream_type::ios_base __ios_base; typename __ostream_type::sentry __cerb(__out); if (__cerb) { try { const streamsize __w = __out.width(); if (__w > __n) { const bool __left = ((__out.flags() & __ios_base::adjustfield) == __ios_base::left); if (!__left) __ostream_fill(__out, __w - __n); if (__out.good()) __ostream_write(__out, __s, __n); if (__left && __out.good()) __ostream_fill(__out, __w - __n); } else __ostream_write(__out, __s, __n); __out.width(0); } catch(__cxxabiv1::__forced_unwind&) { __out._M_setstate(__ios_base::badbit); throw; } catch(...) { __out._M_setstate(__ios_base::badbit); } } return __out; } extern template ostream& __ostream_insert(ostream&, const char*, streamsize); extern template wostream& __ostream_insert(wostream&, const wchar_t*, streamsize); } # 45 "/usr/include/c++/5.0.0/string" 2 3 # 1 "/usr/include/c++/5.0.0/bits/stl_function.h" 1 3 # 63 "/usr/include/c++/5.0.0/bits/stl_function.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 104 "/usr/include/c++/5.0.0/bits/stl_function.h" 3 template struct unary_function { typedef _Arg argument_type; typedef _Result result_type; }; template struct binary_function { typedef _Arg1 first_argument_type; typedef _Arg2 second_argument_type; typedef _Result result_type; }; # 166 "/usr/include/c++/5.0.0/bits/stl_function.h" 3 template struct plus : public binary_function<_Tp, _Tp, _Tp> { _Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x + __y; } }; template struct minus : public binary_function<_Tp, _Tp, _Tp> { _Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x - __y; } }; template struct multiplies : public binary_function<_Tp, _Tp, _Tp> { _Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x * __y; } }; template struct divides : public binary_function<_Tp, _Tp, _Tp> { _Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x / __y; } }; template struct modulus : public binary_function<_Tp, _Tp, _Tp> { _Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x % __y; } }; template struct negate : public unary_function<_Tp, _Tp> { _Tp operator()(const _Tp& __x) const { return -__x; } }; # 351 "/usr/include/c++/5.0.0/bits/stl_function.h" 3 template struct equal_to : public binary_function<_Tp, _Tp, bool> { bool operator()(const _Tp& __x, const _Tp& __y) const { return __x == __y; } }; template struct not_equal_to : public binary_function<_Tp, _Tp, bool> { bool operator()(const _Tp& __x, const _Tp& __y) const { return __x != __y; } }; template struct greater : public binary_function<_Tp, _Tp, bool> { bool operator()(const _Tp& __x, const _Tp& __y) const { return __x > __y; } }; template struct less : public binary_function<_Tp, _Tp, bool> { bool operator()(const _Tp& __x, const _Tp& __y) const { return __x < __y; } }; template struct greater_equal : public binary_function<_Tp, _Tp, bool> { bool operator()(const _Tp& __x, const _Tp& __y) const { return __x >= __y; } }; template struct less_equal : public binary_function<_Tp, _Tp, bool> { bool operator()(const _Tp& __x, const _Tp& __y) const { return __x <= __y; } }; # 524 "/usr/include/c++/5.0.0/bits/stl_function.h" 3 template struct logical_and : public binary_function<_Tp, _Tp, bool> { bool operator()(const _Tp& __x, const _Tp& __y) const { return __x && __y; } }; template struct logical_or : public binary_function<_Tp, _Tp, bool> { bool operator()(const _Tp& __x, const _Tp& __y) const { return __x || __y; } }; template struct logical_not : public unary_function<_Tp, bool> { bool operator()(const _Tp& __x) const { return !__x; } }; # 617 "/usr/include/c++/5.0.0/bits/stl_function.h" 3 template struct bit_and : public binary_function<_Tp, _Tp, _Tp> { _Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x & __y; } }; template struct bit_or : public binary_function<_Tp, _Tp, _Tp> { _Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x | __y; } }; template struct bit_xor : public binary_function<_Tp, _Tp, _Tp> { _Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x ^ __y; } }; template struct bit_not : public unary_function<_Tp, _Tp> { _Tp operator()(const _Tp& __x) const { return ~__x; } }; # 741 "/usr/include/c++/5.0.0/bits/stl_function.h" 3 template class unary_negate : public unary_function { protected: _Predicate _M_pred; public: explicit unary_negate(const _Predicate& __x) : _M_pred(__x) { } bool operator()(const typename _Predicate::argument_type& __x) const { return !_M_pred(__x); } }; template inline unary_negate<_Predicate> not1(const _Predicate& __pred) { return unary_negate<_Predicate>(__pred); } template class binary_negate : public binary_function { protected: _Predicate _M_pred; public: explicit binary_negate(const _Predicate& __x) : _M_pred(__x) { } bool operator()(const typename _Predicate::first_argument_type& __x, const typename _Predicate::second_argument_type& __y) const { return !_M_pred(__x, __y); } }; template inline binary_negate<_Predicate> not2(const _Predicate& __pred) { return binary_negate<_Predicate>(__pred); } # 818 "/usr/include/c++/5.0.0/bits/stl_function.h" 3 template class pointer_to_unary_function : public unary_function<_Arg, _Result> { protected: _Result (*_M_ptr)(_Arg); public: pointer_to_unary_function() { } explicit pointer_to_unary_function(_Result (*__x)(_Arg)) : _M_ptr(__x) { } _Result operator()(_Arg __x) const { return _M_ptr(__x); } }; template inline pointer_to_unary_function<_Arg, _Result> ptr_fun(_Result (*__x)(_Arg)) { return pointer_to_unary_function<_Arg, _Result>(__x); } template class pointer_to_binary_function : public binary_function<_Arg1, _Arg2, _Result> { protected: _Result (*_M_ptr)(_Arg1, _Arg2); public: pointer_to_binary_function() { } explicit pointer_to_binary_function(_Result (*__x)(_Arg1, _Arg2)) : _M_ptr(__x) { } _Result operator()(_Arg1 __x, _Arg2 __y) const { return _M_ptr(__x, __y); } }; template inline pointer_to_binary_function<_Arg1, _Arg2, _Result> ptr_fun(_Result (*__x)(_Arg1, _Arg2)) { return pointer_to_binary_function<_Arg1, _Arg2, _Result>(__x); } template struct _Identity : public unary_function<_Tp,_Tp> { _Tp& operator()(_Tp& __x) const { return __x; } const _Tp& operator()(const _Tp& __x) const { return __x; } }; template struct _Select1st : public unary_function<_Pair, typename _Pair::first_type> { typename _Pair::first_type& operator()(_Pair& __x) const { return __x.first; } const typename _Pair::first_type& operator()(const _Pair& __x) const { return __x.first; } # 905 "/usr/include/c++/5.0.0/bits/stl_function.h" 3 }; template struct _Select2nd : public unary_function<_Pair, typename _Pair::second_type> { typename _Pair::second_type& operator()(_Pair& __x) const { return __x.second; } const typename _Pair::second_type& operator()(const _Pair& __x) const { return __x.second; } }; # 938 "/usr/include/c++/5.0.0/bits/stl_function.h" 3 template class mem_fun_t : public unary_function<_Tp*, _Ret> { public: explicit mem_fun_t(_Ret (_Tp::*__pf)()) : _M_f(__pf) { } _Ret operator()(_Tp* __p) const { return (__p->*_M_f)(); } private: _Ret (_Tp::*_M_f)(); }; template class const_mem_fun_t : public unary_function { public: explicit const_mem_fun_t(_Ret (_Tp::*__pf)() const) : _M_f(__pf) { } _Ret operator()(const _Tp* __p) const { return (__p->*_M_f)(); } private: _Ret (_Tp::*_M_f)() const; }; template class mem_fun_ref_t : public unary_function<_Tp, _Ret> { public: explicit mem_fun_ref_t(_Ret (_Tp::*__pf)()) : _M_f(__pf) { } _Ret operator()(_Tp& __r) const { return (__r.*_M_f)(); } private: _Ret (_Tp::*_M_f)(); }; template class const_mem_fun_ref_t : public unary_function<_Tp, _Ret> { public: explicit const_mem_fun_ref_t(_Ret (_Tp::*__pf)() const) : _M_f(__pf) { } _Ret operator()(const _Tp& __r) const { return (__r.*_M_f)(); } private: _Ret (_Tp::*_M_f)() const; }; template class mem_fun1_t : public binary_function<_Tp*, _Arg, _Ret> { public: explicit mem_fun1_t(_Ret (_Tp::*__pf)(_Arg)) : _M_f(__pf) { } _Ret operator()(_Tp* __p, _Arg __x) const { return (__p->*_M_f)(__x); } private: _Ret (_Tp::*_M_f)(_Arg); }; template class const_mem_fun1_t : public binary_function { public: explicit const_mem_fun1_t(_Ret (_Tp::*__pf)(_Arg) const) : _M_f(__pf) { } _Ret operator()(const _Tp* __p, _Arg __x) const { return (__p->*_M_f)(__x); } private: _Ret (_Tp::*_M_f)(_Arg) const; }; template class mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> { public: explicit mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg)) : _M_f(__pf) { } _Ret operator()(_Tp& __r, _Arg __x) const { return (__r.*_M_f)(__x); } private: _Ret (_Tp::*_M_f)(_Arg); }; template class const_mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> { public: explicit const_mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg) const) : _M_f(__pf) { } _Ret operator()(const _Tp& __r, _Arg __x) const { return (__r.*_M_f)(__x); } private: _Ret (_Tp::*_M_f)(_Arg) const; }; template inline mem_fun_t<_Ret, _Tp> mem_fun(_Ret (_Tp::*__f)()) { return mem_fun_t<_Ret, _Tp>(__f); } template inline const_mem_fun_t<_Ret, _Tp> mem_fun(_Ret (_Tp::*__f)() const) { return const_mem_fun_t<_Ret, _Tp>(__f); } template inline mem_fun_ref_t<_Ret, _Tp> mem_fun_ref(_Ret (_Tp::*__f)()) { return mem_fun_ref_t<_Ret, _Tp>(__f); } template inline const_mem_fun_ref_t<_Ret, _Tp> mem_fun_ref(_Ret (_Tp::*__f)() const) { return const_mem_fun_ref_t<_Ret, _Tp>(__f); } template inline mem_fun1_t<_Ret, _Tp, _Arg> mem_fun(_Ret (_Tp::*__f)(_Arg)) { return mem_fun1_t<_Ret, _Tp, _Arg>(__f); } template inline const_mem_fun1_t<_Ret, _Tp, _Arg> mem_fun(_Ret (_Tp::*__f)(_Arg) const) { return const_mem_fun1_t<_Ret, _Tp, _Arg>(__f); } template inline mem_fun1_ref_t<_Ret, _Tp, _Arg> mem_fun_ref(_Ret (_Tp::*__f)(_Arg)) { return mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } template inline const_mem_fun1_ref_t<_Ret, _Tp, _Arg> mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) { return const_mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } } # 1 "/usr/include/c++/5.0.0/backward/binders.h" 1 3 # 60 "/usr/include/c++/5.0.0/backward/binders.h" 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" namespace std __attribute__ ((__visibility__ ("default"))) { # 107 "/usr/include/c++/5.0.0/backward/binders.h" 3 template class binder1st : public unary_function { protected: _Operation op; typename _Operation::first_argument_type value; public: binder1st(const _Operation& __x, const typename _Operation::first_argument_type& __y) : op(__x), value(__y) { } typename _Operation::result_type operator()(const typename _Operation::second_argument_type& __x) const { return op(value, __x); } typename _Operation::result_type operator()(typename _Operation::second_argument_type& __x) const { return op(value, __x); } } ; template inline binder1st<_Operation> bind1st(const _Operation& __fn, const _Tp& __x) { typedef typename _Operation::first_argument_type _Arg1_type; return binder1st<_Operation>(__fn, _Arg1_type(__x)); } template class binder2nd : public unary_function { protected: _Operation op; typename _Operation::second_argument_type value; public: binder2nd(const _Operation& __x, const typename _Operation::second_argument_type& __y) : op(__x), value(__y) { } typename _Operation::result_type operator()(const typename _Operation::first_argument_type& __x) const { return op(__x, value); } typename _Operation::result_type operator()(typename _Operation::first_argument_type& __x) const { return op(__x, value); } } ; template inline binder2nd<_Operation> bind2nd(const _Operation& __fn, const _Tp& __x) { typedef typename _Operation::second_argument_type _Arg2_type; return binder2nd<_Operation>(__fn, _Arg2_type(__x)); } } #pragma GCC diagnostic pop # 1129 "/usr/include/c++/5.0.0/bits/stl_function.h" 2 3 # 49 "/usr/include/c++/5.0.0/string" 2 3 # 1 "/usr/include/c++/5.0.0/bits/range_access.h" 1 3 # 33 "/usr/include/c++/5.0.0/bits/range_access.h" 3 # 34 "/usr/include/c++/5.0.0/bits/range_access.h" 3 # 52 "/usr/include/c++/5.0.0/string" 2 3 # 1 "/usr/include/c++/5.0.0/bits/basic_string.h" 1 3 # 37 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 # 38 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 # 1 "/usr/include/c++/5.0.0/ext/alloc_traits.h" 1 3 # 32 "/usr/include/c++/5.0.0/ext/alloc_traits.h" 3 # 33 "/usr/include/c++/5.0.0/ext/alloc_traits.h" 3 # 41 "/usr/include/c++/5.0.0/ext/alloc_traits.h" 3 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { # 94 "/usr/include/c++/5.0.0/ext/alloc_traits.h" 3 template struct __alloc_traits { typedef _Alloc allocator_type; # 172 "/usr/include/c++/5.0.0/ext/alloc_traits.h" 3 typedef typename _Alloc::pointer pointer; typedef typename _Alloc::const_pointer const_pointer; typedef typename _Alloc::value_type value_type; typedef typename _Alloc::reference reference; typedef typename _Alloc::const_reference const_reference; typedef typename _Alloc::size_type size_type; typedef typename _Alloc::difference_type difference_type; static pointer allocate(_Alloc& __a, size_type __n) { return __a.allocate(__n); } static void deallocate(_Alloc& __a, pointer __p, size_type __n) { __a.deallocate(__p, __n); } template static void construct(_Alloc& __a, pointer __p, const _Tp& __arg) { __a.construct(__p, __arg); } static void destroy(_Alloc& __a, pointer __p) { __a.destroy(__p); } static size_type max_size(const _Alloc& __a) { return __a.max_size(); } static const _Alloc& _S_select_on_copy(const _Alloc& __a) { return __a; } static void _S_on_swap(_Alloc& __a, _Alloc& __b) { std::__alloc_swap<_Alloc>::_S_do_it(__a, __b); } template struct rebind { typedef typename _Alloc::template rebind<_Tp>::other other; }; }; } # 41 "/usr/include/c++/5.0.0/bits/basic_string.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 2505 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 template class basic_string { typedef typename _Alloc::template rebind<_CharT>::other _CharT_alloc_type; public: typedef _Traits traits_type; typedef typename _Traits::char_type value_type; typedef _Alloc allocator_type; typedef typename _CharT_alloc_type::size_type size_type; typedef typename _CharT_alloc_type::difference_type difference_type; typedef typename _CharT_alloc_type::reference reference; typedef typename _CharT_alloc_type::const_reference const_reference; typedef typename _CharT_alloc_type::pointer pointer; typedef typename _CharT_alloc_type::const_pointer const_pointer; typedef __gnu_cxx::__normal_iterator iterator; typedef __gnu_cxx::__normal_iterator const_iterator; typedef std::reverse_iterator const_reverse_iterator; typedef std::reverse_iterator reverse_iterator; private: # 2542 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 struct _Rep_base { size_type _M_length; size_type _M_capacity; _Atomic_word _M_refcount; }; struct _Rep : _Rep_base { typedef typename _Alloc::template rebind::other _Raw_bytes_alloc; # 2567 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 static const size_type _S_max_size; static const _CharT _S_terminal; static size_type _S_empty_rep_storage[]; static _Rep& _S_empty_rep() { void* __p = reinterpret_cast(&_S_empty_rep_storage); return *reinterpret_cast<_Rep*>(__p); } bool _M_is_leaked() const { return this->_M_refcount < 0; } bool _M_is_shared() const { return this->_M_refcount > 0; } void _M_set_leaked() { this->_M_refcount = -1; } void _M_set_sharable() { this->_M_refcount = 0; } void _M_set_length_and_sharable(size_type __n) { if (__builtin_expect(this != &_S_empty_rep(), false)) { this->_M_set_sharable(); this->_M_length = __n; traits_type::assign(this->_M_refdata()[__n], _S_terminal); } } _CharT* _M_refdata() throw() { return reinterpret_cast<_CharT*>(this + 1); } _CharT* _M_grab(const _Alloc& __alloc1, const _Alloc& __alloc2) { return (!_M_is_leaked() && __alloc1 == __alloc2) ? _M_refcopy() : _M_clone(__alloc1); } static _Rep* _S_create(size_type, size_type, const _Alloc&); void _M_dispose(const _Alloc& __a) { if (__builtin_expect(this != &_S_empty_rep(), false)) { ; if (__gnu_cxx::__exchange_and_add_dispatch(&this->_M_refcount, -1) <= 0) { ; _M_destroy(__a); } } } void _M_destroy(const _Alloc&) throw(); _CharT* _M_refcopy() throw() { if (__builtin_expect(this != &_S_empty_rep(), false)) __gnu_cxx::__atomic_add_dispatch(&this->_M_refcount, 1); return _M_refdata(); } _CharT* _M_clone(const _Alloc&, size_type __res = 0); }; struct _Alloc_hider : _Alloc { _Alloc_hider(_CharT* __dat, const _Alloc& __a) : _Alloc(__a), _M_p(__dat) { } _CharT* _M_p; }; public: static const size_type npos = static_cast(-1); private: mutable _Alloc_hider _M_dataplus; _CharT* _M_data() const { return _M_dataplus._M_p; } _CharT* _M_data(_CharT* __p) { return (_M_dataplus._M_p = __p); } _Rep* _M_rep() const { return &((reinterpret_cast<_Rep*> (_M_data()))[-1]); } iterator _M_ibegin() const { return iterator(_M_data()); } iterator _M_iend() const { return iterator(_M_data() + this->size()); } void _M_leak() { if (!_M_rep()->_M_is_leaked()) _M_leak_hard(); } size_type _M_check(size_type __pos, const char* __s) const { if (__pos > this->size()) __throw_out_of_range_fmt(("%s: __pos (which is %zu) > " "this->size() (which is %zu)") , __s, __pos, this->size()); return __pos; } void _M_check_length(size_type __n1, size_type __n2, const char* __s) const { if (this->max_size() - (this->size() - __n1) < __n2) __throw_length_error((__s)); } size_type _M_limit(size_type __pos, size_type __off) const { const bool __testoff = __off < this->size() - __pos; return __testoff ? __off : this->size() - __pos; } bool _M_disjunct(const _CharT* __s) const { return (less()(__s, _M_data()) || less()(_M_data() + this->size(), __s)); } static void _M_copy(_CharT* __d, const _CharT* __s, size_type __n) { if (__n == 1) traits_type::assign(*__d, *__s); else traits_type::copy(__d, __s, __n); } static void _M_move(_CharT* __d, const _CharT* __s, size_type __n) { if (__n == 1) traits_type::assign(*__d, *__s); else traits_type::move(__d, __s, __n); } static void _M_assign(_CharT* __d, size_type __n, _CharT __c) { if (__n == 1) traits_type::assign(*__d, __c); else traits_type::assign(__d, __n, __c); } template static void _S_copy_chars(_CharT* __p, _Iterator __k1, _Iterator __k2) { for (; __k1 != __k2; ++__k1, ++__p) traits_type::assign(*__p, *__k1); } static void _S_copy_chars(_CharT* __p, iterator __k1, iterator __k2) { _S_copy_chars(__p, __k1.base(), __k2.base()); } static void _S_copy_chars(_CharT* __p, const_iterator __k1, const_iterator __k2) { _S_copy_chars(__p, __k1.base(), __k2.base()); } static void _S_copy_chars(_CharT* __p, _CharT* __k1, _CharT* __k2) { _M_copy(__p, __k1, __k2 - __k1); } static void _S_copy_chars(_CharT* __p, const _CharT* __k1, const _CharT* __k2) { _M_copy(__p, __k1, __k2 - __k1); } static int _S_compare(size_type __n1, size_type __n2) { const difference_type __d = difference_type(__n1 - __n2); if (__d > __gnu_cxx::__numeric_traits::__max) return __gnu_cxx::__numeric_traits::__max; else if (__d < __gnu_cxx::__numeric_traits::__min) return __gnu_cxx::__numeric_traits::__min; else return int(__d); } void _M_mutate(size_type __pos, size_type __len1, size_type __len2); void _M_leak_hard(); static _Rep& _S_empty_rep() { return _Rep::_S_empty_rep(); } public: basic_string() : _M_dataplus(_S_empty_rep()._M_refdata(), _Alloc()) { } explicit basic_string(const _Alloc& __a); basic_string(const basic_string& __str); basic_string(const basic_string& __str, size_type __pos, size_type __n = npos); basic_string(const basic_string& __str, size_type __pos, size_type __n, const _Alloc& __a); # 2882 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 basic_string(const _CharT* __s, size_type __n, const _Alloc& __a = _Alloc()); basic_string(const _CharT* __s, const _Alloc& __a = _Alloc()); basic_string(size_type __n, _CharT __c, const _Alloc& __a = _Alloc()); # 2933 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 template basic_string(_InputIterator __beg, _InputIterator __end, const _Alloc& __a = _Alloc()); ~basic_string() { _M_rep()->_M_dispose(this->get_allocator()); } basic_string& operator=(const basic_string& __str) { return this->assign(__str); } basic_string& operator=(const _CharT* __s) { return this->assign(__s); } # 2966 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 basic_string& operator=(_CharT __c) { this->assign(1, __c); return *this; } # 3007 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 iterator begin() { _M_leak(); return iterator(_M_data()); } const_iterator begin() const { return const_iterator(_M_data()); } iterator end() { _M_leak(); return iterator(_M_data() + this->size()); } const_iterator end() const { return const_iterator(_M_data() + this->size()); } reverse_iterator rbegin() { return reverse_iterator(this->end()); } const_reverse_iterator rbegin() const { return const_reverse_iterator(this->end()); } reverse_iterator rend() { return reverse_iterator(this->begin()); } const_reverse_iterator rend() const { return const_reverse_iterator(this->begin()); } # 3113 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 public: size_type size() const { return _M_rep()->_M_length; } size_type length() const { return _M_rep()->_M_length; } size_type max_size() const { return _Rep::_S_max_size; } # 3142 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 void resize(size_type __n, _CharT __c); # 3155 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 void resize(size_type __n) { this->resize(__n, _CharT()); } # 3178 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 size_type capacity() const { return _M_rep()->_M_capacity; } # 3199 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 void reserve(size_type __res_arg = 0); void clear() { _M_mutate(0, this->size(), 0); } bool empty() const { return this->size() == 0; } # 3229 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 const_reference operator[] (size_type __pos) const { ; return _M_data()[__pos]; } # 3246 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 reference operator[](size_type __pos) { ; ; _M_leak(); return _M_data()[__pos]; } # 3268 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 const_reference at(size_type __n) const { if (__n >= this->size()) __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") , __n, this->size()); return _M_data()[__n]; } # 3290 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 reference at(size_type __n) { if (__n >= size()) __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") , __n, this->size()); _M_leak(); return _M_data()[__n]; } # 3342 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 basic_string& operator+=(const basic_string& __str) { return this->append(__str); } basic_string& operator+=(const _CharT* __s) { return this->append(__s); } basic_string& operator+=(_CharT __c) { this->push_back(__c); return *this; } # 3383 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 basic_string& append(const basic_string& __str); # 3399 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 basic_string& append(const basic_string& __str, size_type __pos, size_type __n); basic_string& append(const _CharT* __s, size_type __n); basic_string& append(const _CharT* __s) { ; return this->append(__s, traits_type::length(__s)); } # 3431 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 basic_string& append(size_type __n, _CharT __c); # 3453 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 template basic_string& append(_InputIterator __first, _InputIterator __last) { return this->replace(_M_iend(), _M_iend(), __first, __last); } void push_back(_CharT __c) { const size_type __len = 1 + this->size(); if (__len > this->capacity() || _M_rep()->_M_is_shared()) this->reserve(__len); traits_type::assign(_M_data()[this->size()], __c); _M_rep()->_M_set_length_and_sharable(__len); } basic_string& assign(const basic_string& __str); # 3511 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 basic_string& assign(const basic_string& __str, size_type __pos, size_type __n) { return this->assign(__str._M_data() + __str._M_check(__pos, "basic_string::assign"), __str._M_limit(__pos, __n)); } # 3527 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 basic_string& assign(const _CharT* __s, size_type __n); # 3539 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 basic_string& assign(const _CharT* __s) { ; return this->assign(__s, traits_type::length(__s)); } # 3555 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 basic_string& assign(size_type __n, _CharT __c) { return _M_replace_aux(size_type(0), this->size(), __n, __c); } # 3567 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 template basic_string& assign(_InputIterator __first, _InputIterator __last) { return this->replace(_M_ibegin(), _M_iend(), __first, __last); } # 3596 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 void insert(iterator __p, size_type __n, _CharT __c) { this->replace(__p, __p, __n, __c); } # 3612 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 template void insert(iterator __p, _InputIterator __beg, _InputIterator __end) { this->replace(__p, __p, __beg, __end); } # 3644 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 basic_string& insert(size_type __pos1, const basic_string& __str) { return this->insert(__pos1, __str, size_type(0), __str.size()); } # 3666 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 basic_string& insert(size_type __pos1, const basic_string& __str, size_type __pos2, size_type __n) { return this->insert(__pos1, __str._M_data() + __str._M_check(__pos2, "basic_string::insert"), __str._M_limit(__pos2, __n)); } # 3689 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 basic_string& insert(size_type __pos, const _CharT* __s, size_type __n); # 3707 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 basic_string& insert(size_type __pos, const _CharT* __s) { ; return this->insert(__pos, __s, traits_type::length(__s)); } # 3730 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 basic_string& insert(size_type __pos, size_type __n, _CharT __c) { return _M_replace_aux(_M_check(__pos, "basic_string::insert"), size_type(0), __n, __c); } # 3748 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 iterator insert(iterator __p, _CharT __c) { ; const size_type __pos = __p - _M_ibegin(); _M_replace_aux(__pos, size_type(0), size_type(1), __c); _M_rep()->_M_set_leaked(); return iterator(_M_data() + __pos); } # 3773 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 basic_string& erase(size_type __pos = 0, size_type __n = npos) { _M_mutate(_M_check(__pos, "basic_string::erase"), _M_limit(__pos, __n), size_type(0)); return *this; } # 3789 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 iterator erase(iterator __position) { ; const size_type __pos = __position - _M_ibegin(); _M_mutate(__pos, size_type(1), size_type(0)); _M_rep()->_M_set_leaked(); return iterator(_M_data() + __pos); } # 3809 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 iterator erase(iterator __first, iterator __last); # 3840 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 basic_string& replace(size_type __pos, size_type __n, const basic_string& __str) { return this->replace(__pos, __n, __str._M_data(), __str.size()); } # 3862 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 basic_string& replace(size_type __pos1, size_type __n1, const basic_string& __str, size_type __pos2, size_type __n2) { return this->replace(__pos1, __n1, __str._M_data() + __str._M_check(__pos2, "basic_string::replace"), __str._M_limit(__pos2, __n2)); } # 3887 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 basic_string& replace(size_type __pos, size_type __n1, const _CharT* __s, size_type __n2); # 3907 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 basic_string& replace(size_type __pos, size_type __n1, const _CharT* __s) { ; return this->replace(__pos, __n1, __s, traits_type::length(__s)); } # 3931 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 basic_string& replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c) { return _M_replace_aux(_M_check(__pos, "basic_string::replace"), _M_limit(__pos, __n1), __n2, __c); } # 3949 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 basic_string& replace(iterator __i1, iterator __i2, const basic_string& __str) { return this->replace(__i1, __i2, __str._M_data(), __str.size()); } # 3968 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 basic_string& replace(iterator __i1, iterator __i2, const _CharT* __s, size_type __n) { ; return this->replace(__i1 - _M_ibegin(), __i2 - __i1, __s, __n); } # 3989 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 basic_string& replace(iterator __i1, iterator __i2, const _CharT* __s) { ; return this->replace(__i1, __i2, __s, traits_type::length(__s)); } # 4010 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 basic_string& replace(iterator __i1, iterator __i2, size_type __n, _CharT __c) { ; return _M_replace_aux(__i1 - _M_ibegin(), __i2 - __i1, __n, __c); } # 4033 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 template basic_string& replace(iterator __i1, iterator __i2, _InputIterator __k1, _InputIterator __k2) { ; ; typedef typename std::__is_integer<_InputIterator>::__type _Integral; return _M_replace_dispatch(__i1, __i2, __k1, __k2, _Integral()); } basic_string& replace(iterator __i1, iterator __i2, _CharT* __k1, _CharT* __k2) { ; ; return this->replace(__i1 - _M_ibegin(), __i2 - __i1, __k1, __k2 - __k1); } basic_string& replace(iterator __i1, iterator __i2, const _CharT* __k1, const _CharT* __k2) { ; ; return this->replace(__i1 - _M_ibegin(), __i2 - __i1, __k1, __k2 - __k1); } basic_string& replace(iterator __i1, iterator __i2, iterator __k1, iterator __k2) { ; ; return this->replace(__i1 - _M_ibegin(), __i2 - __i1, __k1.base(), __k2 - __k1); } basic_string& replace(iterator __i1, iterator __i2, const_iterator __k1, const_iterator __k2) { ; ; return this->replace(__i1 - _M_ibegin(), __i2 - __i1, __k1.base(), __k2 - __k1); } # 4109 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 private: template basic_string& _M_replace_dispatch(iterator __i1, iterator __i2, _Integer __n, _Integer __val, __true_type) { return _M_replace_aux(__i1 - _M_ibegin(), __i2 - __i1, __n, __val); } template basic_string& _M_replace_dispatch(iterator __i1, iterator __i2, _InputIterator __k1, _InputIterator __k2, __false_type); basic_string& _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, _CharT __c); basic_string& _M_replace_safe(size_type __pos1, size_type __n1, const _CharT* __s, size_type __n2); template static _CharT* _S_construct_aux(_InIterator __beg, _InIterator __end, const _Alloc& __a, __false_type) { typedef typename iterator_traits<_InIterator>::iterator_category _Tag; return _S_construct(__beg, __end, __a, _Tag()); } template static _CharT* _S_construct_aux(_Integer __beg, _Integer __end, const _Alloc& __a, __true_type) { return _S_construct_aux_2(static_cast(__beg), __end, __a); } static _CharT* _S_construct_aux_2(size_type __req, _CharT __c, const _Alloc& __a) { return _S_construct(__req, __c, __a); } template static _CharT* _S_construct(_InIterator __beg, _InIterator __end, const _Alloc& __a) { typedef typename std::__is_integer<_InIterator>::__type _Integral; return _S_construct_aux(__beg, __end, __a, _Integral()); } template static _CharT* _S_construct(_InIterator __beg, _InIterator __end, const _Alloc& __a, input_iterator_tag); template static _CharT* _S_construct(_FwdIterator __beg, _FwdIterator __end, const _Alloc& __a, forward_iterator_tag); static _CharT* _S_construct(size_type __req, _CharT __c, const _Alloc& __a); public: # 4191 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 size_type copy(_CharT* __s, size_type __n, size_type __pos = 0) const; # 4202 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 void swap(basic_string& __s); # 4212 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 const _CharT* c_str() const { return _M_data(); } const _CharT* data() const { return _M_data(); } allocator_type get_allocator() const { return _M_dataplus; } # 4245 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 size_type find(const _CharT* __s, size_type __pos, size_type __n) const; # 4258 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 size_type find(const basic_string& __str, size_type __pos = 0) const { return this->find(__str.data(), __pos, __str.size()); } # 4273 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 size_type find(const _CharT* __s, size_type __pos = 0) const { ; return this->find(__s, __pos, traits_type::length(__s)); } # 4290 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 size_type find(_CharT __c, size_type __pos = 0) const ; # 4303 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 size_type rfind(const basic_string& __str, size_type __pos = npos) const { return this->rfind(__str.data(), __pos, __str.size()); } # 4320 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 size_type rfind(const _CharT* __s, size_type __pos, size_type __n) const; # 4333 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 size_type rfind(const _CharT* __s, size_type __pos = npos) const { ; return this->rfind(__s, __pos, traits_type::length(__s)); } # 4350 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 size_type rfind(_CharT __c, size_type __pos = npos) const ; # 4364 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 size_type find_first_of(const basic_string& __str, size_type __pos = 0) const { return this->find_first_of(__str.data(), __pos, __str.size()); } # 4381 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 size_type find_first_of(const _CharT* __s, size_type __pos, size_type __n) const; # 4394 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 size_type find_first_of(const _CharT* __s, size_type __pos = 0) const { ; return this->find_first_of(__s, __pos, traits_type::length(__s)); } # 4413 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 size_type find_first_of(_CharT __c, size_type __pos = 0) const { return this->find(__c, __pos); } # 4428 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 size_type find_last_of(const basic_string& __str, size_type __pos = npos) const { return this->find_last_of(__str.data(), __pos, __str.size()); } # 4445 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 size_type find_last_of(const _CharT* __s, size_type __pos, size_type __n) const; # 4458 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 size_type find_last_of(const _CharT* __s, size_type __pos = npos) const { ; return this->find_last_of(__s, __pos, traits_type::length(__s)); } # 4477 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 size_type find_last_of(_CharT __c, size_type __pos = npos) const { return this->rfind(__c, __pos); } # 4491 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 size_type find_first_not_of(const basic_string& __str, size_type __pos = 0) const { return this->find_first_not_of(__str.data(), __pos, __str.size()); } # 4508 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 size_type find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const; # 4522 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 size_type find_first_not_of(const _CharT* __s, size_type __pos = 0) const { ; return this->find_first_not_of(__s, __pos, traits_type::length(__s)); } # 4539 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 size_type find_first_not_of(_CharT __c, size_type __pos = 0) const ; # 4554 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 size_type find_last_not_of(const basic_string& __str, size_type __pos = npos) const { return this->find_last_not_of(__str.data(), __pos, __str.size()); } # 4571 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 size_type find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const; # 4585 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 size_type find_last_not_of(const _CharT* __s, size_type __pos = npos) const { ; return this->find_last_not_of(__s, __pos, traits_type::length(__s)); } # 4602 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 size_type find_last_not_of(_CharT __c, size_type __pos = npos) const ; # 4618 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 basic_string substr(size_type __pos = 0, size_type __n = npos) const { return basic_string(*this, _M_check(__pos, "basic_string::substr"), __n); } # 4637 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 int compare(const basic_string& __str) const { const size_type __size = this->size(); const size_type __osize = __str.size(); const size_type __len = std::min(__size, __osize); int __r = traits_type::compare(_M_data(), __str.data(), __len); if (!__r) __r = _S_compare(__size, __osize); return __r; } # 4669 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 int compare(size_type __pos, size_type __n, const basic_string& __str) const; # 4695 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 int compare(size_type __pos1, size_type __n1, const basic_string& __str, size_type __pos2, size_type __n2) const; # 4713 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 int compare(const _CharT* __s) const; # 4737 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 int compare(size_type __pos, size_type __n1, const _CharT* __s) const; # 4764 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 int compare(size_type __pos, size_type __n1, const _CharT* __s, size_type __n2) const; }; # 4777 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 template basic_string<_CharT, _Traits, _Alloc> operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs) { basic_string<_CharT, _Traits, _Alloc> __str(__lhs); __str.append(__rhs); return __str; } template basic_string<_CharT,_Traits,_Alloc> operator+(const _CharT* __lhs, const basic_string<_CharT,_Traits,_Alloc>& __rhs); template basic_string<_CharT,_Traits,_Alloc> operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Alloc>& __rhs); template inline basic_string<_CharT, _Traits, _Alloc> operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, const _CharT* __rhs) { basic_string<_CharT, _Traits, _Alloc> __str(__lhs); __str.append(__rhs); return __str; } template inline basic_string<_CharT, _Traits, _Alloc> operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs) { typedef basic_string<_CharT, _Traits, _Alloc> __string_type; typedef typename __string_type::size_type __size_type; __string_type __str(__lhs); __str.append(__size_type(1), __rhs); return __str; } # 4898 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 template inline bool operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs) { return __lhs.compare(__rhs) == 0; } template inline typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, bool>::__type operator==(const basic_string<_CharT>& __lhs, const basic_string<_CharT>& __rhs) { return (__lhs.size() == __rhs.size() && !std::char_traits<_CharT>::compare(__lhs.data(), __rhs.data(), __lhs.size())); } template inline bool operator==(const _CharT* __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs) { return __rhs.compare(__lhs) == 0; } template inline bool operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, const _CharT* __rhs) { return __lhs.compare(__rhs) == 0; } # 4944 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 template inline bool operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs) { return !(__lhs == __rhs); } template inline bool operator!=(const _CharT* __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs) { return !(__lhs == __rhs); } template inline bool operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, const _CharT* __rhs) { return !(__lhs == __rhs); } # 4981 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 template inline bool operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs) { return __lhs.compare(__rhs) < 0; } template inline bool operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, const _CharT* __rhs) { return __lhs.compare(__rhs) < 0; } template inline bool operator<(const _CharT* __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs) { return __rhs.compare(__lhs) > 0; } # 5018 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 template inline bool operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs) { return __lhs.compare(__rhs) > 0; } template inline bool operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, const _CharT* __rhs) { return __lhs.compare(__rhs) > 0; } template inline bool operator>(const _CharT* __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs) { return __rhs.compare(__lhs) < 0; } # 5055 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 template inline bool operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs) { return __lhs.compare(__rhs) <= 0; } template inline bool operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, const _CharT* __rhs) { return __lhs.compare(__rhs) <= 0; } template inline bool operator<=(const _CharT* __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs) { return __rhs.compare(__lhs) >= 0; } # 5092 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 template inline bool operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs) { return __lhs.compare(__rhs) >= 0; } template inline bool operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, const _CharT* __rhs) { return __lhs.compare(__rhs) >= 0; } template inline bool operator>=(const _CharT* __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs) { return __rhs.compare(__lhs) <= 0; } # 5129 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 template inline void swap(basic_string<_CharT, _Traits, _Alloc>& __lhs, basic_string<_CharT, _Traits, _Alloc>& __rhs) { __lhs.swap(__rhs); } # 5148 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 template basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __is, basic_string<_CharT, _Traits, _Alloc>& __str); template<> basic_istream& operator>>(basic_istream& __is, basic_string& __str); # 5166 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 template inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const basic_string<_CharT, _Traits, _Alloc>& __str) { return __ostream_insert(__os, __str.data(), __str.size()); } # 5189 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 template basic_istream<_CharT, _Traits>& getline(basic_istream<_CharT, _Traits>& __is, basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim); # 5206 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 template inline basic_istream<_CharT, _Traits>& getline(basic_istream<_CharT, _Traits>& __is, basic_string<_CharT, _Traits, _Alloc>& __str) { return std::getline(__is, __str, __is.widen('\n')); } # 5228 "/usr/include/c++/5.0.0/bits/basic_string.h" 3 template<> basic_istream& getline(basic_istream& __in, basic_string& __str, char __delim); template<> basic_istream& getline(basic_istream& __in, basic_string& __str, wchar_t __delim); } # 53 "/usr/include/c++/5.0.0/string" 2 3 # 1 "/usr/include/c++/5.0.0/bits/basic_string.tcc" 1 3 # 42 "/usr/include/c++/5.0.0/bits/basic_string.tcc" 3 # 43 "/usr/include/c++/5.0.0/bits/basic_string.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 492 "/usr/include/c++/5.0.0/bits/basic_string.tcc" 3 template const typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: _Rep::_S_max_size = (((npos - sizeof(_Rep_base))/sizeof(_CharT)) - 1) / 4; template const _CharT basic_string<_CharT, _Traits, _Alloc>:: _Rep::_S_terminal = _CharT(); template const typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>::npos; template typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_empty_rep_storage[ (sizeof(_Rep_base) + sizeof(_CharT) + sizeof(size_type) - 1) / sizeof(size_type)]; template template _CharT* basic_string<_CharT, _Traits, _Alloc>:: _S_construct(_InIterator __beg, _InIterator __end, const _Alloc& __a, input_iterator_tag) { if (__beg == __end && __a == _Alloc()) return _S_empty_rep()._M_refdata(); _CharT __buf[128]; size_type __len = 0; while (__beg != __end && __len < sizeof(__buf) / sizeof(_CharT)) { __buf[__len++] = *__beg; ++__beg; } _Rep* __r = _Rep::_S_create(__len, size_type(0), __a); _M_copy(__r->_M_refdata(), __buf, __len); try { while (__beg != __end) { if (__len == __r->_M_capacity) { _Rep* __another = _Rep::_S_create(__len + 1, __len, __a); _M_copy(__another->_M_refdata(), __r->_M_refdata(), __len); __r->_M_destroy(__a); __r = __another; } __r->_M_refdata()[__len++] = *__beg; ++__beg; } } catch(...) { __r->_M_destroy(__a); throw; } __r->_M_set_length_and_sharable(__len); return __r->_M_refdata(); } template template _CharT* basic_string<_CharT, _Traits, _Alloc>:: _S_construct(_InIterator __beg, _InIterator __end, const _Alloc& __a, forward_iterator_tag) { if (__beg == __end && __a == _Alloc()) return _S_empty_rep()._M_refdata(); if (__gnu_cxx::__is_null_pointer(__beg) && __beg != __end) __throw_logic_error(("basic_string::_S_construct null not valid")); const size_type __dnew = static_cast(std::distance(__beg, __end)); _Rep* __r = _Rep::_S_create(__dnew, size_type(0), __a); try { _S_copy_chars(__r->_M_refdata(), __beg, __end); } catch(...) { __r->_M_destroy(__a); throw; } __r->_M_set_length_and_sharable(__dnew); return __r->_M_refdata(); } template _CharT* basic_string<_CharT, _Traits, _Alloc>:: _S_construct(size_type __n, _CharT __c, const _Alloc& __a) { if (__n == 0 && __a == _Alloc()) return _S_empty_rep()._M_refdata(); _Rep* __r = _Rep::_S_create(__n, size_type(0), __a); if (__n) _M_assign(__r->_M_refdata(), __n, __c); __r->_M_set_length_and_sharable(__n); return __r->_M_refdata(); } template basic_string<_CharT, _Traits, _Alloc>:: basic_string(const basic_string& __str) : _M_dataplus(__str._M_rep()->_M_grab(_Alloc(__str.get_allocator()), __str.get_allocator()), __str.get_allocator()) { } template basic_string<_CharT, _Traits, _Alloc>:: basic_string(const _Alloc& __a) : _M_dataplus(_S_construct(size_type(), _CharT(), __a), __a) { } template basic_string<_CharT, _Traits, _Alloc>:: basic_string(const basic_string& __str, size_type __pos, size_type __n) : _M_dataplus(_S_construct(__str._M_data() + __str._M_check(__pos, "basic_string::basic_string"), __str._M_data() + __str._M_limit(__pos, __n) + __pos, _Alloc()), _Alloc()) { } template basic_string<_CharT, _Traits, _Alloc>:: basic_string(const basic_string& __str, size_type __pos, size_type __n, const _Alloc& __a) : _M_dataplus(_S_construct(__str._M_data() + __str._M_check(__pos, "basic_string::basic_string"), __str._M_data() + __str._M_limit(__pos, __n) + __pos, __a), __a) { } template basic_string<_CharT, _Traits, _Alloc>:: basic_string(const _CharT* __s, size_type __n, const _Alloc& __a) : _M_dataplus(_S_construct(__s, __s + __n, __a), __a) { } template basic_string<_CharT, _Traits, _Alloc>:: basic_string(const _CharT* __s, const _Alloc& __a) : _M_dataplus(_S_construct(__s, __s ? __s + traits_type::length(__s) : __s + npos, __a), __a) { } template basic_string<_CharT, _Traits, _Alloc>:: basic_string(size_type __n, _CharT __c, const _Alloc& __a) : _M_dataplus(_S_construct(__n, __c, __a), __a) { } template template basic_string<_CharT, _Traits, _Alloc>:: basic_string(_InputIterator __beg, _InputIterator __end, const _Alloc& __a) : _M_dataplus(_S_construct(__beg, __end, __a), __a) { } # 684 "/usr/include/c++/5.0.0/bits/basic_string.tcc" 3 template basic_string<_CharT, _Traits, _Alloc>& basic_string<_CharT, _Traits, _Alloc>:: assign(const basic_string& __str) { if (_M_rep() != __str._M_rep()) { const allocator_type __a = this->get_allocator(); _CharT* __tmp = __str._M_rep()->_M_grab(__a, __str.get_allocator()); _M_rep()->_M_dispose(__a); _M_data(__tmp); } return *this; } template basic_string<_CharT, _Traits, _Alloc>& basic_string<_CharT, _Traits, _Alloc>:: assign(const _CharT* __s, size_type __n) { ; _M_check_length(this->size(), __n, "basic_string::assign"); if (_M_disjunct(__s) || _M_rep()->_M_is_shared()) return _M_replace_safe(size_type(0), this->size(), __s, __n); else { const size_type __pos = __s - _M_data(); if (__pos >= __n) _M_copy(_M_data(), __s, __n); else if (__pos) _M_move(_M_data(), __s, __n); _M_rep()->_M_set_length_and_sharable(__n); return *this; } } template basic_string<_CharT, _Traits, _Alloc>& basic_string<_CharT, _Traits, _Alloc>:: append(size_type __n, _CharT __c) { if (__n) { _M_check_length(size_type(0), __n, "basic_string::append"); const size_type __len = __n + this->size(); if (__len > this->capacity() || _M_rep()->_M_is_shared()) this->reserve(__len); _M_assign(_M_data() + this->size(), __n, __c); _M_rep()->_M_set_length_and_sharable(__len); } return *this; } template basic_string<_CharT, _Traits, _Alloc>& basic_string<_CharT, _Traits, _Alloc>:: append(const _CharT* __s, size_type __n) { ; if (__n) { _M_check_length(size_type(0), __n, "basic_string::append"); const size_type __len = __n + this->size(); if (__len > this->capacity() || _M_rep()->_M_is_shared()) { if (_M_disjunct(__s)) this->reserve(__len); else { const size_type __off = __s - _M_data(); this->reserve(__len); __s = _M_data() + __off; } } _M_copy(_M_data() + this->size(), __s, __n); _M_rep()->_M_set_length_and_sharable(__len); } return *this; } template basic_string<_CharT, _Traits, _Alloc>& basic_string<_CharT, _Traits, _Alloc>:: append(const basic_string& __str) { const size_type __size = __str.size(); if (__size) { const size_type __len = __size + this->size(); if (__len > this->capacity() || _M_rep()->_M_is_shared()) this->reserve(__len); _M_copy(_M_data() + this->size(), __str._M_data(), __size); _M_rep()->_M_set_length_and_sharable(__len); } return *this; } template basic_string<_CharT, _Traits, _Alloc>& basic_string<_CharT, _Traits, _Alloc>:: append(const basic_string& __str, size_type __pos, size_type __n) { __str._M_check(__pos, "basic_string::append"); __n = __str._M_limit(__pos, __n); if (__n) { const size_type __len = __n + this->size(); if (__len > this->capacity() || _M_rep()->_M_is_shared()) this->reserve(__len); _M_copy(_M_data() + this->size(), __str._M_data() + __pos, __n); _M_rep()->_M_set_length_and_sharable(__len); } return *this; } template basic_string<_CharT, _Traits, _Alloc>& basic_string<_CharT, _Traits, _Alloc>:: insert(size_type __pos, const _CharT* __s, size_type __n) { ; _M_check(__pos, "basic_string::insert"); _M_check_length(size_type(0), __n, "basic_string::insert"); if (_M_disjunct(__s) || _M_rep()->_M_is_shared()) return _M_replace_safe(__pos, size_type(0), __s, __n); else { const size_type __off = __s - _M_data(); _M_mutate(__pos, 0, __n); __s = _M_data() + __off; _CharT* __p = _M_data() + __pos; if (__s + __n <= __p) _M_copy(__p, __s, __n); else if (__s >= __p) _M_copy(__p, __s + __n, __n); else { const size_type __nleft = __p - __s; _M_copy(__p, __s, __nleft); _M_copy(__p + __nleft, __p + __n, __n - __nleft); } return *this; } } template typename basic_string<_CharT, _Traits, _Alloc>::iterator basic_string<_CharT, _Traits, _Alloc>:: erase(iterator __first, iterator __last) { ; const size_type __size = __last - __first; if (__size) { const size_type __pos = __first - _M_ibegin(); _M_mutate(__pos, __size, size_type(0)); _M_rep()->_M_set_leaked(); return iterator(_M_data() + __pos); } else return __first; } template basic_string<_CharT, _Traits, _Alloc>& basic_string<_CharT, _Traits, _Alloc>:: replace(size_type __pos, size_type __n1, const _CharT* __s, size_type __n2) { ; _M_check(__pos, "basic_string::replace"); __n1 = _M_limit(__pos, __n1); _M_check_length(__n1, __n2, "basic_string::replace"); bool __left; if (_M_disjunct(__s) || _M_rep()->_M_is_shared()) return _M_replace_safe(__pos, __n1, __s, __n2); else if ((__left = __s + __n2 <= _M_data() + __pos) || _M_data() + __pos + __n1 <= __s) { size_type __off = __s - _M_data(); __left ? __off : (__off += __n2 - __n1); _M_mutate(__pos, __n1, __n2); _M_copy(_M_data() + __pos, _M_data() + __off, __n2); return *this; } else { const basic_string __tmp(__s, __n2); return _M_replace_safe(__pos, __n1, __tmp._M_data(), __n2); } } template void basic_string<_CharT, _Traits, _Alloc>::_Rep:: _M_destroy(const _Alloc& __a) throw () { const size_type __size = sizeof(_Rep_base) + (this->_M_capacity + 1) * sizeof(_CharT); _Raw_bytes_alloc(__a).deallocate(reinterpret_cast(this), __size); } template void basic_string<_CharT, _Traits, _Alloc>:: _M_leak_hard() { if (_M_rep() == &_S_empty_rep()) return; if (_M_rep()->_M_is_shared()) _M_mutate(0, 0, 0); _M_rep()->_M_set_leaked(); } template void basic_string<_CharT, _Traits, _Alloc>:: _M_mutate(size_type __pos, size_type __len1, size_type __len2) { const size_type __old_size = this->size(); const size_type __new_size = __old_size + __len2 - __len1; const size_type __how_much = __old_size - __pos - __len1; if (__new_size > this->capacity() || _M_rep()->_M_is_shared()) { const allocator_type __a = get_allocator(); _Rep* __r = _Rep::_S_create(__new_size, this->capacity(), __a); if (__pos) _M_copy(__r->_M_refdata(), _M_data(), __pos); if (__how_much) _M_copy(__r->_M_refdata() + __pos + __len2, _M_data() + __pos + __len1, __how_much); _M_rep()->_M_dispose(__a); _M_data(__r->_M_refdata()); } else if (__how_much && __len1 != __len2) { _M_move(_M_data() + __pos + __len2, _M_data() + __pos + __len1, __how_much); } _M_rep()->_M_set_length_and_sharable(__new_size); } template void basic_string<_CharT, _Traits, _Alloc>:: reserve(size_type __res) { if (__res != this->capacity() || _M_rep()->_M_is_shared()) { if (__res < this->size()) __res = this->size(); const allocator_type __a = get_allocator(); _CharT* __tmp = _M_rep()->_M_clone(__a, __res - this->size()); _M_rep()->_M_dispose(__a); _M_data(__tmp); } } template void basic_string<_CharT, _Traits, _Alloc>:: swap(basic_string& __s) { if (_M_rep()->_M_is_leaked()) _M_rep()->_M_set_sharable(); if (__s._M_rep()->_M_is_leaked()) __s._M_rep()->_M_set_sharable(); if (this->get_allocator() == __s.get_allocator()) { _CharT* __tmp = _M_data(); _M_data(__s._M_data()); __s._M_data(__tmp); } else { const basic_string __tmp1(_M_ibegin(), _M_iend(), __s.get_allocator()); const basic_string __tmp2(__s._M_ibegin(), __s._M_iend(), this->get_allocator()); *this = __tmp2; __s = __tmp1; } } template typename basic_string<_CharT, _Traits, _Alloc>::_Rep* basic_string<_CharT, _Traits, _Alloc>::_Rep:: _S_create(size_type __capacity, size_type __old_capacity, const _Alloc& __alloc) { if (__capacity > _S_max_size) __throw_length_error(("basic_string::_S_create")); # 1021 "/usr/include/c++/5.0.0/bits/basic_string.tcc" 3 const size_type __pagesize = 4096; const size_type __malloc_header_size = 4 * sizeof(void*); if (__capacity > __old_capacity && __capacity < 2 * __old_capacity) __capacity = 2 * __old_capacity; size_type __size = (__capacity + 1) * sizeof(_CharT) + sizeof(_Rep); const size_type __adj_size = __size + __malloc_header_size; if (__adj_size > __pagesize && __capacity > __old_capacity) { const size_type __extra = __pagesize - __adj_size % __pagesize; __capacity += __extra / sizeof(_CharT); if (__capacity > _S_max_size) __capacity = _S_max_size; __size = (__capacity + 1) * sizeof(_CharT) + sizeof(_Rep); } void* __place = _Raw_bytes_alloc(__alloc).allocate(__size); _Rep *__p = new (__place) _Rep; __p->_M_capacity = __capacity; __p->_M_set_sharable(); return __p; } template _CharT* basic_string<_CharT, _Traits, _Alloc>::_Rep:: _M_clone(const _Alloc& __alloc, size_type __res) { const size_type __requested_cap = this->_M_length + __res; _Rep* __r = _Rep::_S_create(__requested_cap, this->_M_capacity, __alloc); if (this->_M_length) _M_copy(__r->_M_refdata(), _M_refdata(), this->_M_length); __r->_M_set_length_and_sharable(this->_M_length); return __r->_M_refdata(); } template void basic_string<_CharT, _Traits, _Alloc>:: resize(size_type __n, _CharT __c) { const size_type __size = this->size(); _M_check_length(__size, __n, "basic_string::resize"); if (__size < __n) this->append(__n - __size, __c); else if (__n < __size) this->erase(__n); } template template basic_string<_CharT, _Traits, _Alloc>& basic_string<_CharT, _Traits, _Alloc>:: _M_replace_dispatch(iterator __i1, iterator __i2, _InputIterator __k1, _InputIterator __k2, __false_type) { const basic_string __s(__k1, __k2); const size_type __n1 = __i2 - __i1; _M_check_length(__n1, __s.size(), "basic_string::_M_replace_dispatch"); return _M_replace_safe(__i1 - _M_ibegin(), __n1, __s._M_data(), __s.size()); } template basic_string<_CharT, _Traits, _Alloc>& basic_string<_CharT, _Traits, _Alloc>:: _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, _CharT __c) { _M_check_length(__n1, __n2, "basic_string::_M_replace_aux"); _M_mutate(__pos1, __n1, __n2); if (__n2) _M_assign(_M_data() + __pos1, __n2, __c); return *this; } template basic_string<_CharT, _Traits, _Alloc>& basic_string<_CharT, _Traits, _Alloc>:: _M_replace_safe(size_type __pos1, size_type __n1, const _CharT* __s, size_type __n2) { _M_mutate(__pos1, __n1, __n2); if (__n2) _M_copy(_M_data() + __pos1, __s, __n2); return *this; } template typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: copy(_CharT* __s, size_type __n, size_type __pos) const { _M_check(__pos, "basic_string::copy"); __n = _M_limit(__pos, __n); ; if (__n) _M_copy(__s, _M_data() + __pos, __n); return __n; } template basic_string<_CharT, _Traits, _Alloc> operator+(const _CharT* __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs) { ; typedef basic_string<_CharT, _Traits, _Alloc> __string_type; typedef typename __string_type::size_type __size_type; const __size_type __len = _Traits::length(__lhs); __string_type __str; __str.reserve(__len + __rhs.size()); __str.append(__lhs, __len); __str.append(__rhs); return __str; } template basic_string<_CharT, _Traits, _Alloc> operator+(_CharT __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs) { typedef basic_string<_CharT, _Traits, _Alloc> __string_type; typedef typename __string_type::size_type __size_type; __string_type __str; const __size_type __len = __rhs.size(); __str.reserve(__len + 1); __str.append(__size_type(1), __lhs); __str.append(__rhs); return __str; } template typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: find(const _CharT* __s, size_type __pos, size_type __n) const { ; const size_type __size = this->size(); const _CharT* __data = _M_data(); if (__n == 0) return __pos <= __size ? __pos : npos; if (__n <= __size) { for (; __pos <= __size - __n; ++__pos) if (traits_type::eq(__data[__pos], __s[0]) && traits_type::compare(__data + __pos + 1, __s + 1, __n - 1) == 0) return __pos; } return npos; } template typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: find(_CharT __c, size_type __pos) const { size_type __ret = npos; const size_type __size = this->size(); if (__pos < __size) { const _CharT* __data = _M_data(); const size_type __n = __size - __pos; const _CharT* __p = traits_type::find(__data + __pos, __n, __c); if (__p) __ret = __p - __data; } return __ret; } template typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: rfind(const _CharT* __s, size_type __pos, size_type __n) const { ; const size_type __size = this->size(); if (__n <= __size) { __pos = std::min(size_type(__size - __n), __pos); const _CharT* __data = _M_data(); do { if (traits_type::compare(__data + __pos, __s, __n) == 0) return __pos; } while (__pos-- > 0); } return npos; } template typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: rfind(_CharT __c, size_type __pos) const { size_type __size = this->size(); if (__size) { if (--__size > __pos) __size = __pos; for (++__size; __size-- > 0; ) if (traits_type::eq(_M_data()[__size], __c)) return __size; } return npos; } template typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: find_first_of(const _CharT* __s, size_type __pos, size_type __n) const { ; for (; __n && __pos < this->size(); ++__pos) { const _CharT* __p = traits_type::find(__s, __n, _M_data()[__pos]); if (__p) return __pos; } return npos; } template typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: find_last_of(const _CharT* __s, size_type __pos, size_type __n) const { ; size_type __size = this->size(); if (__size && __n) { if (--__size > __pos) __size = __pos; do { if (traits_type::find(__s, __n, _M_data()[__size])) return __size; } while (__size-- != 0); } return npos; } template typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const { ; for (; __pos < this->size(); ++__pos) if (!traits_type::find(__s, __n, _M_data()[__pos])) return __pos; return npos; } template typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: find_first_not_of(_CharT __c, size_type __pos) const { for (; __pos < this->size(); ++__pos) if (!traits_type::eq(_M_data()[__pos], __c)) return __pos; return npos; } template typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const { ; size_type __size = this->size(); if (__size) { if (--__size > __pos) __size = __pos; do { if (!traits_type::find(__s, __n, _M_data()[__size])) return __size; } while (__size--); } return npos; } template typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: find_last_not_of(_CharT __c, size_type __pos) const { size_type __size = this->size(); if (__size) { if (--__size > __pos) __size = __pos; do { if (!traits_type::eq(_M_data()[__size], __c)) return __size; } while (__size--); } return npos; } template int basic_string<_CharT, _Traits, _Alloc>:: compare(size_type __pos, size_type __n, const basic_string& __str) const { _M_check(__pos, "basic_string::compare"); __n = _M_limit(__pos, __n); const size_type __osize = __str.size(); const size_type __len = std::min(__n, __osize); int __r = traits_type::compare(_M_data() + __pos, __str.data(), __len); if (!__r) __r = _S_compare(__n, __osize); return __r; } template int basic_string<_CharT, _Traits, _Alloc>:: compare(size_type __pos1, size_type __n1, const basic_string& __str, size_type __pos2, size_type __n2) const { _M_check(__pos1, "basic_string::compare"); __str._M_check(__pos2, "basic_string::compare"); __n1 = _M_limit(__pos1, __n1); __n2 = __str._M_limit(__pos2, __n2); const size_type __len = std::min(__n1, __n2); int __r = traits_type::compare(_M_data() + __pos1, __str.data() + __pos2, __len); if (!__r) __r = _S_compare(__n1, __n2); return __r; } template int basic_string<_CharT, _Traits, _Alloc>:: compare(const _CharT* __s) const { ; const size_type __size = this->size(); const size_type __osize = traits_type::length(__s); const size_type __len = std::min(__size, __osize); int __r = traits_type::compare(_M_data(), __s, __len); if (!__r) __r = _S_compare(__size, __osize); return __r; } template int basic_string <_CharT, _Traits, _Alloc>:: compare(size_type __pos, size_type __n1, const _CharT* __s) const { ; _M_check(__pos, "basic_string::compare"); __n1 = _M_limit(__pos, __n1); const size_type __osize = traits_type::length(__s); const size_type __len = std::min(__n1, __osize); int __r = traits_type::compare(_M_data() + __pos, __s, __len); if (!__r) __r = _S_compare(__n1, __osize); return __r; } template int basic_string <_CharT, _Traits, _Alloc>:: compare(size_type __pos, size_type __n1, const _CharT* __s, size_type __n2) const { ; _M_check(__pos, "basic_string::compare"); __n1 = _M_limit(__pos, __n1); const size_type __len = std::min(__n1, __n2); int __r = traits_type::compare(_M_data() + __pos, __s, __len); if (!__r) __r = _S_compare(__n1, __n2); return __r; } template basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __in, basic_string<_CharT, _Traits, _Alloc>& __str) { typedef basic_istream<_CharT, _Traits> __istream_type; typedef basic_string<_CharT, _Traits, _Alloc> __string_type; typedef typename __istream_type::ios_base __ios_base; typedef typename __istream_type::int_type __int_type; typedef typename __string_type::size_type __size_type; typedef ctype<_CharT> __ctype_type; typedef typename __ctype_type::ctype_base __ctype_base; __size_type __extracted = 0; typename __ios_base::iostate __err = __ios_base::goodbit; typename __istream_type::sentry __cerb(__in, false); if (__cerb) { try { __str.erase(); _CharT __buf[128]; __size_type __len = 0; const streamsize __w = __in.width(); const __size_type __n = __w > 0 ? static_cast<__size_type>(__w) : __str.max_size(); const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); const __int_type __eof = _Traits::eof(); __int_type __c = __in.rdbuf()->sgetc(); while (__extracted < __n && !_Traits::eq_int_type(__c, __eof) && !__ct.is(__ctype_base::space, _Traits::to_char_type(__c))) { if (__len == sizeof(__buf) / sizeof(_CharT)) { __str.append(__buf, sizeof(__buf) / sizeof(_CharT)); __len = 0; } __buf[__len++] = _Traits::to_char_type(__c); ++__extracted; __c = __in.rdbuf()->snextc(); } __str.append(__buf, __len); if (_Traits::eq_int_type(__c, __eof)) __err |= __ios_base::eofbit; __in.width(0); } catch(__cxxabiv1::__forced_unwind&) { __in._M_setstate(__ios_base::badbit); throw; } catch(...) { __in._M_setstate(__ios_base::badbit); } } if (!__extracted) __err |= __ios_base::failbit; if (__err) __in.setstate(__err); return __in; } template basic_istream<_CharT, _Traits>& getline(basic_istream<_CharT, _Traits>& __in, basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) { typedef basic_istream<_CharT, _Traits> __istream_type; typedef basic_string<_CharT, _Traits, _Alloc> __string_type; typedef typename __istream_type::ios_base __ios_base; typedef typename __istream_type::int_type __int_type; typedef typename __string_type::size_type __size_type; __size_type __extracted = 0; const __size_type __n = __str.max_size(); typename __ios_base::iostate __err = __ios_base::goodbit; typename __istream_type::sentry __cerb(__in, true); if (__cerb) { try { __str.erase(); const __int_type __idelim = _Traits::to_int_type(__delim); const __int_type __eof = _Traits::eof(); __int_type __c = __in.rdbuf()->sgetc(); while (__extracted < __n && !_Traits::eq_int_type(__c, __eof) && !_Traits::eq_int_type(__c, __idelim)) { __str += _Traits::to_char_type(__c); ++__extracted; __c = __in.rdbuf()->snextc(); } if (_Traits::eq_int_type(__c, __eof)) __err |= __ios_base::eofbit; else if (_Traits::eq_int_type(__c, __idelim)) { ++__extracted; __in.rdbuf()->sbumpc(); } else __err |= __ios_base::failbit; } catch(__cxxabiv1::__forced_unwind&) { __in._M_setstate(__ios_base::badbit); throw; } catch(...) { __in._M_setstate(__ios_base::badbit); } } if (!__extracted) __err |= __ios_base::failbit; if (__err) __in.setstate(__err); return __in; } extern template class basic_string; extern template basic_istream& operator>>(basic_istream&, string&); extern template basic_ostream& operator<<(basic_ostream&, const string&); extern template basic_istream& getline(basic_istream&, string&, char); extern template basic_istream& getline(basic_istream&, string&); extern template class basic_string; extern template basic_istream& operator>>(basic_istream&, wstring&); extern template basic_ostream& operator<<(basic_ostream&, const wstring&); extern template basic_istream& getline(basic_istream&, wstring&, wchar_t); extern template basic_istream& getline(basic_istream&, wstring&); } # 54 "/usr/include/c++/5.0.0/string" 2 3 # 41 "/usr/include/c++/5.0.0/bits/locale_classes.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 62 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 class locale { public: typedef int category; class facet; class id; class _Impl; friend class facet; friend class _Impl; template friend bool has_facet(const locale&) throw(); template friend const _Facet& use_facet(const locale&); template friend struct __use_cache; # 98 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 static const category none = 0; static const category ctype = 1L << 0; static const category numeric = 1L << 1; static const category collate = 1L << 2; static const category time = 1L << 3; static const category monetary = 1L << 4; static const category messages = 1L << 5; static const category all = (ctype | numeric | collate | time | monetary | messages); # 117 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 locale() throw(); # 126 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 locale(const locale& __other) throw(); # 136 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 explicit locale(const char* __s); # 151 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 locale(const locale& __base, const char* __s, category __cat); # 192 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 locale(const locale& __base, const locale& __add, category __cat); # 205 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 template locale(const locale& __other, _Facet* __f); ~locale() throw(); # 219 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 const locale& operator=(const locale& __other) throw(); # 234 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 template locale combine(const locale& __other) const; string name() const; # 254 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 bool operator==(const locale& __other) const throw(); bool operator!=(const locale& __other) const throw() { return !(this->operator==(__other)); } # 282 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 template bool operator()(const basic_string<_Char, _Traits, _Alloc>& __s1, const basic_string<_Char, _Traits, _Alloc>& __s2) const; # 298 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 static locale global(const locale& __loc); static const locale& classic(); private: _Impl* _M_impl; static _Impl* _S_classic; static _Impl* _S_global; static const char* const* const _S_categories; # 333 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 enum { _S_categories_size = 6 + 6 }; static __gthread_once_t _S_once; explicit locale(_Impl*) throw(); static void _S_initialize(); static void _S_initialize_once() throw(); static category _S_normalize_category(category); void _M_coalesce(const locale& __base, const locale& __add, category __cat); }; # 371 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 class locale::facet { private: friend class locale; friend class locale::_Impl; mutable _Atomic_word _M_refcount; static __c_locale _S_c_locale; static const char _S_c_name[2]; static __gthread_once_t _S_once; static void _S_initialize_once(); protected: # 402 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 explicit facet(size_t __refs = 0) throw() : _M_refcount(__refs ? 1 : 0) { } virtual ~facet(); static void _S_create_c_locale(__c_locale& __cloc, const char* __s, __c_locale __old = 0); static __c_locale _S_clone_c_locale(__c_locale& __cloc) throw(); static void _S_destroy_c_locale(__c_locale& __cloc); static __c_locale _S_lc_ctype_c_locale(__c_locale __cloc, const char* __s); static __c_locale _S_get_c_locale(); __attribute__ ((__const__)) static const char* _S_get_c_name() throw(); private: void _M_add_reference() const throw() { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } void _M_remove_reference() const throw() { ; if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) { ; try { delete this; } catch(...) { } } } facet(const facet&); facet& operator=(const facet&); class __shim; const facet* _M_sso_shim(const id*) const; const facet* _M_cow_shim(const id*) const; }; # 474 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 class locale::id { private: friend class locale; friend class locale::_Impl; template friend const _Facet& use_facet(const locale&); template friend bool has_facet(const locale&) throw(); mutable size_t _M_index; static _Atomic_word _S_refcount; void operator=(const id&); id(const id&); public: id() { } size_t _M_id() const throw(); }; class locale::_Impl { public: friend class locale; friend class locale::facet; template friend bool has_facet(const locale&) throw(); template friend const _Facet& use_facet(const locale&); template friend struct __use_cache; private: _Atomic_word _M_refcount; const facet** _M_facets; size_t _M_facets_size; const facet** _M_caches; char** _M_names; static const locale::id* const _S_id_ctype[]; static const locale::id* const _S_id_numeric[]; static const locale::id* const _S_id_collate[]; static const locale::id* const _S_id_time[]; static const locale::id* const _S_id_monetary[]; static const locale::id* const _S_id_messages[]; static const locale::id* const* const _S_facet_categories[]; void _M_add_reference() throw() { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } void _M_remove_reference() throw() { ; if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) { ; try { delete this; } catch(...) { } } } _Impl(const _Impl&, size_t); _Impl(const char*, size_t); _Impl(size_t) throw(); ~_Impl() throw(); _Impl(const _Impl&); void operator=(const _Impl&); bool _M_check_same_name() { bool __ret = true; if (_M_names[1]) for (size_t __i = 0; __ret && __i < _S_categories_size - 1; ++__i) __ret = __builtin_strcmp(_M_names[__i], _M_names[__i + 1]) == 0; return __ret; } void _M_replace_categories(const _Impl*, category); void _M_replace_category(const _Impl*, const locale::id* const*); void _M_replace_facet(const _Impl*, const locale::id*); void _M_install_facet(const locale::id*, const facet*); template void _M_init_facet(_Facet* __facet) { _M_install_facet(&_Facet::id, __facet); } template void _M_init_facet_unchecked(_Facet* __facet) { __facet->_M_add_reference(); _M_facets[_Facet::id._M_id()] = __facet; } void _M_install_cache(const facet*, size_t); void _M_init_extra(facet**); void _M_init_extra(void*, void*, const char*, const char*); }; # 632 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 template class collate : public locale::facet { public: typedef _CharT char_type; typedef basic_string<_CharT> string_type; protected: __c_locale _M_c_locale_collate; public: static locale::id id; # 659 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 explicit collate(size_t __refs = 0) : facet(__refs), _M_c_locale_collate(_S_get_c_locale()) { } # 673 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 explicit collate(__c_locale __cloc, size_t __refs = 0) : facet(__refs), _M_c_locale_collate(_S_clone_c_locale(__cloc)) { } # 690 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 int compare(const _CharT* __lo1, const _CharT* __hi1, const _CharT* __lo2, const _CharT* __hi2) const { return this->do_compare(__lo1, __hi1, __lo2, __hi2); } # 709 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 string_type transform(const _CharT* __lo, const _CharT* __hi) const { return this->do_transform(__lo, __hi); } # 723 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 long hash(const _CharT* __lo, const _CharT* __hi) const { return this->do_hash(__lo, __hi); } int _M_compare(const _CharT*, const _CharT*) const throw(); size_t _M_transform(_CharT*, const _CharT*, size_t) const throw(); protected: virtual ~collate() { _S_destroy_c_locale(_M_c_locale_collate); } # 752 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 virtual int do_compare(const _CharT* __lo1, const _CharT* __hi1, const _CharT* __lo2, const _CharT* __hi2) const; # 766 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 virtual string_type do_transform(const _CharT* __lo, const _CharT* __hi) const; # 779 "/usr/include/c++/5.0.0/bits/locale_classes.h" 3 virtual long do_hash(const _CharT* __lo, const _CharT* __hi) const; }; template locale::id collate<_CharT>::id; template<> int collate::_M_compare(const char*, const char*) const throw(); template<> size_t collate::_M_transform(char*, const char*, size_t) const throw(); template<> int collate::_M_compare(const wchar_t*, const wchar_t*) const throw(); template<> size_t collate::_M_transform(wchar_t*, const wchar_t*, size_t) const throw(); template class collate_byname : public collate<_CharT> { public: typedef _CharT char_type; typedef basic_string<_CharT> string_type; explicit collate_byname(const char* __s, size_t __refs = 0) : collate<_CharT>(__refs) { if (__builtin_strcmp(__s, "C") != 0 && __builtin_strcmp(__s, "POSIX") != 0) { this->_S_destroy_c_locale(this->_M_c_locale_collate); this->_S_create_c_locale(this->_M_c_locale_collate, __s); } } protected: virtual ~collate_byname() { } }; } # 1 "/usr/include/c++/5.0.0/bits/locale_classes.tcc" 1 3 # 37 "/usr/include/c++/5.0.0/bits/locale_classes.tcc" 3 # 38 "/usr/include/c++/5.0.0/bits/locale_classes.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template locale:: locale(const locale& __other, _Facet* __f) { _M_impl = new _Impl(*__other._M_impl, 1); try { _M_impl->_M_install_facet(&_Facet::id, __f); } catch(...) { _M_impl->_M_remove_reference(); throw; } delete [] _M_impl->_M_names[0]; _M_impl->_M_names[0] = 0; } template locale locale:: combine(const locale& __other) const { _Impl* __tmp = new _Impl(*_M_impl, 1); try { __tmp->_M_replace_facet(__other._M_impl, &_Facet::id); } catch(...) { __tmp->_M_remove_reference(); throw; } return locale(__tmp); } template bool locale:: operator()(const basic_string<_CharT, _Traits, _Alloc>& __s1, const basic_string<_CharT, _Traits, _Alloc>& __s2) const { typedef std::collate<_CharT> __collate_type; const __collate_type& __collate = use_facet<__collate_type>(*this); return (__collate.compare(__s1.data(), __s1.data() + __s1.length(), __s2.data(), __s2.data() + __s2.length()) < 0); } # 102 "/usr/include/c++/5.0.0/bits/locale_classes.tcc" 3 template bool has_facet(const locale& __loc) throw() { const size_t __i = _Facet::id._M_id(); const locale::facet** __facets = __loc._M_impl->_M_facets; return (__i < __loc._M_impl->_M_facets_size && dynamic_cast(__facets[__i])); } # 130 "/usr/include/c++/5.0.0/bits/locale_classes.tcc" 3 template const _Facet& use_facet(const locale& __loc) { const size_t __i = _Facet::id._M_id(); const locale::facet** __facets = __loc._M_impl->_M_facets; if (__i >= __loc._M_impl->_M_facets_size || !__facets[__i]) __throw_bad_cast(); return dynamic_cast(*__facets[__i]); } template int collate<_CharT>::_M_compare(const _CharT*, const _CharT*) const throw () { return 0; } template size_t collate<_CharT>::_M_transform(_CharT*, const _CharT*, size_t) const throw () { return 0; } template int collate<_CharT>:: do_compare(const _CharT* __lo1, const _CharT* __hi1, const _CharT* __lo2, const _CharT* __hi2) const { const string_type __one(__lo1, __hi1); const string_type __two(__lo2, __hi2); const _CharT* __p = __one.c_str(); const _CharT* __pend = __one.data() + __one.length(); const _CharT* __q = __two.c_str(); const _CharT* __qend = __two.data() + __two.length(); for (;;) { const int __res = _M_compare(__p, __q); if (__res) return __res; __p += char_traits<_CharT>::length(__p); __q += char_traits<_CharT>::length(__q); if (__p == __pend && __q == __qend) return 0; else if (__p == __pend) return -1; else if (__q == __qend) return 1; __p++; __q++; } } template typename collate<_CharT>::string_type collate<_CharT>:: do_transform(const _CharT* __lo, const _CharT* __hi) const { string_type __ret; const string_type __str(__lo, __hi); const _CharT* __p = __str.c_str(); const _CharT* __pend = __str.data() + __str.length(); size_t __len = (__hi - __lo) * 2; _CharT* __c = new _CharT[__len]; try { for (;;) { size_t __res = _M_transform(__c, __p, __len); if (__res >= __len) { __len = __res + 1; delete [] __c, __c = 0; __c = new _CharT[__len]; __res = _M_transform(__c, __p, __len); } __ret.append(__c, __res); __p += char_traits<_CharT>::length(__p); if (__p == __pend) break; __p++; __ret.push_back(_CharT()); } } catch(...) { delete [] __c; throw; } delete [] __c; return __ret; } template long collate<_CharT>:: do_hash(const _CharT* __lo, const _CharT* __hi) const { unsigned long __val = 0; for (; __lo < __hi; ++__lo) __val = *__lo + ((__val << 7) | (__val >> (__gnu_cxx::__numeric_traits:: __digits - 7))); return static_cast(__val); } extern template class collate; extern template class collate_byname; extern template const collate& use_facet >(const locale&); extern template bool has_facet >(const locale&); extern template class collate; extern template class collate_byname; extern template const collate& use_facet >(const locale&); extern template bool has_facet >(const locale&); } # 843 "/usr/include/c++/5.0.0/bits/locale_classes.h" 2 3 # 42 "/usr/include/c++/5.0.0/bits/ios_base.h" 2 3 # 1 "/usr/include/c++/5.0.0/stdexcept" 1 3 # 36 "/usr/include/c++/5.0.0/stdexcept" 3 # 37 "/usr/include/c++/5.0.0/stdexcept" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 69 "/usr/include/c++/5.0.0/stdexcept" 3 typedef basic_string __cow_string; struct __sso_string { struct __str { const char* _M_p; size_t _M_string_length; char _M_local_buf[16]; }; union { __str _M_s; char _M_bytes[sizeof(_M_s)]; }; __sso_string() throw(); __sso_string(const std::string&); __sso_string(const char*, size_t); __sso_string(const __sso_string&); __sso_string& operator=(const __sso_string&); ~__sso_string(); }; # 113 "/usr/include/c++/5.0.0/stdexcept" 3 class logic_error : public exception { __cow_string _M_msg; public: explicit logic_error(const string& __arg); # 132 "/usr/include/c++/5.0.0/stdexcept" 3 virtual ~logic_error() throw(); virtual const char* what() const throw(); }; class domain_error : public logic_error { public: explicit domain_error(const string& __arg); virtual ~domain_error() throw(); }; class invalid_argument : public logic_error { public: explicit invalid_argument(const string& __arg); virtual ~invalid_argument() throw(); }; class length_error : public logic_error { public: explicit length_error(const string& __arg); virtual ~length_error() throw(); }; class out_of_range : public logic_error { public: explicit out_of_range(const string& __arg); virtual ~out_of_range() throw(); }; class runtime_error : public exception { __cow_string _M_msg; public: explicit runtime_error(const string& __arg); # 211 "/usr/include/c++/5.0.0/stdexcept" 3 virtual ~runtime_error() throw(); virtual const char* what() const throw(); }; class range_error : public runtime_error { public: explicit range_error(const string& __arg); virtual ~range_error() throw(); }; class overflow_error : public runtime_error { public: explicit overflow_error(const string& __arg); virtual ~overflow_error() throw(); }; class underflow_error : public runtime_error { public: explicit underflow_error(const string& __arg); virtual ~underflow_error() throw(); }; } # 45 "/usr/include/c++/5.0.0/bits/ios_base.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { enum _Ios_Fmtflags { _S_boolalpha = 1L << 0, _S_dec = 1L << 1, _S_fixed = 1L << 2, _S_hex = 1L << 3, _S_internal = 1L << 4, _S_left = 1L << 5, _S_oct = 1L << 6, _S_right = 1L << 7, _S_scientific = 1L << 8, _S_showbase = 1L << 9, _S_showpoint = 1L << 10, _S_showpos = 1L << 11, _S_skipws = 1L << 12, _S_unitbuf = 1L << 13, _S_uppercase = 1L << 14, _S_adjustfield = _S_left | _S_right | _S_internal, _S_basefield = _S_dec | _S_oct | _S_hex, _S_floatfield = _S_scientific | _S_fixed, _S_ios_fmtflags_end = 1L << 16 }; inline _Ios_Fmtflags operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b) { return _Ios_Fmtflags(static_cast(__a) & static_cast(__b)); } inline _Ios_Fmtflags operator|(_Ios_Fmtflags __a, _Ios_Fmtflags __b) { return _Ios_Fmtflags(static_cast(__a) | static_cast(__b)); } inline _Ios_Fmtflags operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b) { return _Ios_Fmtflags(static_cast(__a) ^ static_cast(__b)); } inline _Ios_Fmtflags operator~(_Ios_Fmtflags __a) { return _Ios_Fmtflags(~static_cast(__a)); } inline const _Ios_Fmtflags& operator|=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) { return __a = __a | __b; } inline const _Ios_Fmtflags& operator&=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) { return __a = __a & __b; } inline const _Ios_Fmtflags& operator^=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) { return __a = __a ^ __b; } enum _Ios_Openmode { _S_app = 1L << 0, _S_ate = 1L << 1, _S_bin = 1L << 2, _S_in = 1L << 3, _S_out = 1L << 4, _S_trunc = 1L << 5, _S_ios_openmode_end = 1L << 16 }; inline _Ios_Openmode operator&(_Ios_Openmode __a, _Ios_Openmode __b) { return _Ios_Openmode(static_cast(__a) & static_cast(__b)); } inline _Ios_Openmode operator|(_Ios_Openmode __a, _Ios_Openmode __b) { return _Ios_Openmode(static_cast(__a) | static_cast(__b)); } inline _Ios_Openmode operator^(_Ios_Openmode __a, _Ios_Openmode __b) { return _Ios_Openmode(static_cast(__a) ^ static_cast(__b)); } inline _Ios_Openmode operator~(_Ios_Openmode __a) { return _Ios_Openmode(~static_cast(__a)); } inline const _Ios_Openmode& operator|=(_Ios_Openmode& __a, _Ios_Openmode __b) { return __a = __a | __b; } inline const _Ios_Openmode& operator&=(_Ios_Openmode& __a, _Ios_Openmode __b) { return __a = __a & __b; } inline const _Ios_Openmode& operator^=(_Ios_Openmode& __a, _Ios_Openmode __b) { return __a = __a ^ __b; } enum _Ios_Iostate { _S_goodbit = 0, _S_badbit = 1L << 0, _S_eofbit = 1L << 1, _S_failbit = 1L << 2, _S_ios_iostate_end = 1L << 16 }; inline _Ios_Iostate operator&(_Ios_Iostate __a, _Ios_Iostate __b) { return _Ios_Iostate(static_cast(__a) & static_cast(__b)); } inline _Ios_Iostate operator|(_Ios_Iostate __a, _Ios_Iostate __b) { return _Ios_Iostate(static_cast(__a) | static_cast(__b)); } inline _Ios_Iostate operator^(_Ios_Iostate __a, _Ios_Iostate __b) { return _Ios_Iostate(static_cast(__a) ^ static_cast(__b)); } inline _Ios_Iostate operator~(_Ios_Iostate __a) { return _Ios_Iostate(~static_cast(__a)); } inline const _Ios_Iostate& operator|=(_Ios_Iostate& __a, _Ios_Iostate __b) { return __a = __a | __b; } inline const _Ios_Iostate& operator&=(_Ios_Iostate& __a, _Ios_Iostate __b) { return __a = __a & __b; } inline const _Ios_Iostate& operator^=(_Ios_Iostate& __a, _Ios_Iostate __b) { return __a = __a ^ __b; } enum _Ios_Seekdir { _S_beg = 0, _S_cur = 1, _S_end = 2, _S_ios_seekdir_end = 1L << 16 }; # 222 "/usr/include/c++/5.0.0/bits/ios_base.h" 3 class ios_base { # 240 "/usr/include/c++/5.0.0/bits/ios_base.h" 3 public: # 270 "/usr/include/c++/5.0.0/bits/ios_base.h" 3 class failure : public exception { public: explicit failure(const string& __str) throw(); virtual ~failure() throw(); virtual const char* what() const throw(); private: string _M_msg; }; # 317 "/usr/include/c++/5.0.0/bits/ios_base.h" 3 typedef _Ios_Fmtflags fmtflags; static const fmtflags boolalpha = _S_boolalpha; static const fmtflags dec = _S_dec; static const fmtflags fixed = _S_fixed; static const fmtflags hex = _S_hex; static const fmtflags internal = _S_internal; static const fmtflags left = _S_left; static const fmtflags oct = _S_oct; static const fmtflags right = _S_right; static const fmtflags scientific = _S_scientific; static const fmtflags showbase = _S_showbase; static const fmtflags showpoint = _S_showpoint; static const fmtflags showpos = _S_showpos; static const fmtflags skipws = _S_skipws; static const fmtflags unitbuf = _S_unitbuf; static const fmtflags uppercase = _S_uppercase; static const fmtflags adjustfield = _S_adjustfield; static const fmtflags basefield = _S_basefield; static const fmtflags floatfield = _S_floatfield; # 392 "/usr/include/c++/5.0.0/bits/ios_base.h" 3 typedef _Ios_Iostate iostate; static const iostate badbit = _S_badbit; static const iostate eofbit = _S_eofbit; static const iostate failbit = _S_failbit; static const iostate goodbit = _S_goodbit; # 423 "/usr/include/c++/5.0.0/bits/ios_base.h" 3 typedef _Ios_Openmode openmode; static const openmode app = _S_app; static const openmode ate = _S_ate; static const openmode binary = _S_bin; static const openmode in = _S_in; static const openmode out = _S_out; static const openmode trunc = _S_trunc; # 455 "/usr/include/c++/5.0.0/bits/ios_base.h" 3 typedef _Ios_Seekdir seekdir; static const seekdir beg = _S_beg; static const seekdir cur = _S_cur; static const seekdir end = _S_end; typedef int io_state; typedef int open_mode; typedef int seek_dir; typedef std::streampos streampos; typedef std::streamoff streamoff; # 481 "/usr/include/c++/5.0.0/bits/ios_base.h" 3 enum event { erase_event, imbue_event, copyfmt_event }; # 498 "/usr/include/c++/5.0.0/bits/ios_base.h" 3 typedef void (*event_callback) (event __e, ios_base& __b, int __i); # 510 "/usr/include/c++/5.0.0/bits/ios_base.h" 3 void register_callback(event_callback __fn, int __index); protected: streamsize _M_precision; streamsize _M_width; fmtflags _M_flags; iostate _M_exception; iostate _M_streambuf_state; struct _Callback_list { _Callback_list* _M_next; ios_base::event_callback _M_fn; int _M_index; _Atomic_word _M_refcount; _Callback_list(ios_base::event_callback __fn, int __index, _Callback_list* __cb) : _M_next(__cb), _M_fn(__fn), _M_index(__index), _M_refcount(0) { } void _M_add_reference() { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } int _M_remove_reference() { ; int __res = __gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1); if (__res == 0) { ; } return __res; } }; _Callback_list* _M_callbacks; void _M_call_callbacks(event __ev) throw(); void _M_dispose_callbacks(void) throw(); struct _Words { void* _M_pword; long _M_iword; _Words() : _M_pword(0), _M_iword(0) { } }; _Words _M_word_zero; enum { _S_local_word_size = 8 }; _Words _M_local_word[_S_local_word_size]; int _M_word_size; _Words* _M_word; _Words& _M_grow_words(int __index, bool __iword); locale _M_ios_locale; void _M_init() throw(); public: class Init { friend class ios_base; public: Init(); ~Init(); private: static _Atomic_word _S_refcount; static bool _S_synced_with_stdio; }; fmtflags flags() const { return _M_flags; } # 623 "/usr/include/c++/5.0.0/bits/ios_base.h" 3 fmtflags flags(fmtflags __fmtfl) { fmtflags __old = _M_flags; _M_flags = __fmtfl; return __old; } # 639 "/usr/include/c++/5.0.0/bits/ios_base.h" 3 fmtflags setf(fmtflags __fmtfl) { fmtflags __old = _M_flags; _M_flags |= __fmtfl; return __old; } # 656 "/usr/include/c++/5.0.0/bits/ios_base.h" 3 fmtflags setf(fmtflags __fmtfl, fmtflags __mask) { fmtflags __old = _M_flags; _M_flags &= ~__mask; _M_flags |= (__fmtfl & __mask); return __old; } void unsetf(fmtflags __mask) { _M_flags &= ~__mask; } # 682 "/usr/include/c++/5.0.0/bits/ios_base.h" 3 streamsize precision() const { return _M_precision; } streamsize precision(streamsize __prec) { streamsize __old = _M_precision; _M_precision = __prec; return __old; } streamsize width() const { return _M_width; } streamsize width(streamsize __wide) { streamsize __old = _M_width; _M_width = __wide; return __old; } # 733 "/usr/include/c++/5.0.0/bits/ios_base.h" 3 static bool sync_with_stdio(bool __sync = true); # 745 "/usr/include/c++/5.0.0/bits/ios_base.h" 3 locale imbue(const locale& __loc) throw(); # 756 "/usr/include/c++/5.0.0/bits/ios_base.h" 3 locale getloc() const { return _M_ios_locale; } # 767 "/usr/include/c++/5.0.0/bits/ios_base.h" 3 const locale& _M_getloc() const { return _M_ios_locale; } # 786 "/usr/include/c++/5.0.0/bits/ios_base.h" 3 static int xalloc() throw(); # 802 "/usr/include/c++/5.0.0/bits/ios_base.h" 3 long& iword(int __ix) { _Words& __word = (__ix < _M_word_size) ? _M_word[__ix] : _M_grow_words(__ix, true); return __word._M_iword; } # 823 "/usr/include/c++/5.0.0/bits/ios_base.h" 3 void*& pword(int __ix) { _Words& __word = (__ix < _M_word_size) ? _M_word[__ix] : _M_grow_words(__ix, false); return __word._M_pword; } # 840 "/usr/include/c++/5.0.0/bits/ios_base.h" 3 virtual ~ios_base(); protected: ios_base() throw (); private: ios_base(const ios_base&); ios_base& operator=(const ios_base&); # 867 "/usr/include/c++/5.0.0/bits/ios_base.h" 3 }; inline ios_base& boolalpha(ios_base& __base) { __base.setf(ios_base::boolalpha); return __base; } inline ios_base& noboolalpha(ios_base& __base) { __base.unsetf(ios_base::boolalpha); return __base; } inline ios_base& showbase(ios_base& __base) { __base.setf(ios_base::showbase); return __base; } inline ios_base& noshowbase(ios_base& __base) { __base.unsetf(ios_base::showbase); return __base; } inline ios_base& showpoint(ios_base& __base) { __base.setf(ios_base::showpoint); return __base; } inline ios_base& noshowpoint(ios_base& __base) { __base.unsetf(ios_base::showpoint); return __base; } inline ios_base& showpos(ios_base& __base) { __base.setf(ios_base::showpos); return __base; } inline ios_base& noshowpos(ios_base& __base) { __base.unsetf(ios_base::showpos); return __base; } inline ios_base& skipws(ios_base& __base) { __base.setf(ios_base::skipws); return __base; } inline ios_base& noskipws(ios_base& __base) { __base.unsetf(ios_base::skipws); return __base; } inline ios_base& uppercase(ios_base& __base) { __base.setf(ios_base::uppercase); return __base; } inline ios_base& nouppercase(ios_base& __base) { __base.unsetf(ios_base::uppercase); return __base; } inline ios_base& unitbuf(ios_base& __base) { __base.setf(ios_base::unitbuf); return __base; } inline ios_base& nounitbuf(ios_base& __base) { __base.unsetf(ios_base::unitbuf); return __base; } inline ios_base& internal(ios_base& __base) { __base.setf(ios_base::internal, ios_base::adjustfield); return __base; } inline ios_base& left(ios_base& __base) { __base.setf(ios_base::left, ios_base::adjustfield); return __base; } inline ios_base& right(ios_base& __base) { __base.setf(ios_base::right, ios_base::adjustfield); return __base; } inline ios_base& dec(ios_base& __base) { __base.setf(ios_base::dec, ios_base::basefield); return __base; } inline ios_base& hex(ios_base& __base) { __base.setf(ios_base::hex, ios_base::basefield); return __base; } inline ios_base& oct(ios_base& __base) { __base.setf(ios_base::oct, ios_base::basefield); return __base; } inline ios_base& fixed(ios_base& __base) { __base.setf(ios_base::fixed, ios_base::floatfield); return __base; } inline ios_base& scientific(ios_base& __base) { __base.setf(ios_base::scientific, ios_base::floatfield); return __base; } # 1070 "/usr/include/c++/5.0.0/bits/ios_base.h" 3 } # 43 "/usr/include/c++/5.0.0/ios" 2 3 # 1 "/usr/include/c++/5.0.0/streambuf" 1 3 # 36 "/usr/include/c++/5.0.0/streambuf" 3 # 37 "/usr/include/c++/5.0.0/streambuf" 3 # 45 "/usr/include/c++/5.0.0/streambuf" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template streamsize __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>*, basic_streambuf<_CharT, _Traits>*, bool&); # 119 "/usr/include/c++/5.0.0/streambuf" 3 template class basic_streambuf { public: typedef _CharT char_type; typedef _Traits traits_type; typedef typename traits_type::int_type int_type; typedef typename traits_type::pos_type pos_type; typedef typename traits_type::off_type off_type; typedef basic_streambuf __streambuf_type; friend class basic_ios; friend class basic_istream; friend class basic_ostream; friend class istreambuf_iterator; friend class ostreambuf_iterator; friend streamsize __copy_streambufs_eof<>(basic_streambuf*, basic_streambuf*, bool&); template friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, _CharT2*>::__type __copy_move_a2(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, _CharT2*); template friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, istreambuf_iterator<_CharT2> >::__type find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, const _CharT2&); template friend basic_istream<_CharT2, _Traits2>& operator>>(basic_istream<_CharT2, _Traits2>&, _CharT2*); template friend basic_istream<_CharT2, _Traits2>& operator>>(basic_istream<_CharT2, _Traits2>&, basic_string<_CharT2, _Traits2, _Alloc>&); template friend basic_istream<_CharT2, _Traits2>& getline(basic_istream<_CharT2, _Traits2>&, basic_string<_CharT2, _Traits2, _Alloc>&, _CharT2); protected: char_type* _M_in_beg; char_type* _M_in_cur; char_type* _M_in_end; char_type* _M_out_beg; char_type* _M_out_cur; char_type* _M_out_end; locale _M_buf_locale; public: virtual ~basic_streambuf() { } # 208 "/usr/include/c++/5.0.0/streambuf" 3 locale pubimbue(const locale& __loc) { locale __tmp(this->getloc()); this->imbue(__loc); _M_buf_locale = __loc; return __tmp; } # 225 "/usr/include/c++/5.0.0/streambuf" 3 locale getloc() const { return _M_buf_locale; } # 238 "/usr/include/c++/5.0.0/streambuf" 3 basic_streambuf* pubsetbuf(char_type* __s, streamsize __n) { return this->setbuf(__s, __n); } # 250 "/usr/include/c++/5.0.0/streambuf" 3 pos_type pubseekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode __mode = ios_base::in | ios_base::out) { return this->seekoff(__off, __way, __mode); } # 262 "/usr/include/c++/5.0.0/streambuf" 3 pos_type pubseekpos(pos_type __sp, ios_base::openmode __mode = ios_base::in | ios_base::out) { return this->seekpos(__sp, __mode); } int pubsync() { return this->sync(); } # 283 "/usr/include/c++/5.0.0/streambuf" 3 streamsize in_avail() { const streamsize __ret = this->egptr() - this->gptr(); return __ret ? __ret : this->showmanyc(); } # 297 "/usr/include/c++/5.0.0/streambuf" 3 int_type snextc() { int_type __ret = traits_type::eof(); if (__builtin_expect(!traits_type::eq_int_type(this->sbumpc(), __ret), true)) __ret = this->sgetc(); return __ret; } # 315 "/usr/include/c++/5.0.0/streambuf" 3 int_type sbumpc() { int_type __ret; if (__builtin_expect(this->gptr() < this->egptr(), true)) { __ret = traits_type::to_int_type(*this->gptr()); this->gbump(1); } else __ret = this->uflow(); return __ret; } # 337 "/usr/include/c++/5.0.0/streambuf" 3 int_type sgetc() { int_type __ret; if (__builtin_expect(this->gptr() < this->egptr(), true)) __ret = traits_type::to_int_type(*this->gptr()); else __ret = this->underflow(); return __ret; } # 356 "/usr/include/c++/5.0.0/streambuf" 3 streamsize sgetn(char_type* __s, streamsize __n) { return this->xsgetn(__s, __n); } # 371 "/usr/include/c++/5.0.0/streambuf" 3 int_type sputbackc(char_type __c) { int_type __ret; const bool __testpos = this->eback() < this->gptr(); if (__builtin_expect(!__testpos || !traits_type::eq(__c, this->gptr()[-1]), false)) __ret = this->pbackfail(traits_type::to_int_type(__c)); else { this->gbump(-1); __ret = traits_type::to_int_type(*this->gptr()); } return __ret; } # 396 "/usr/include/c++/5.0.0/streambuf" 3 int_type sungetc() { int_type __ret; if (__builtin_expect(this->eback() < this->gptr(), true)) { this->gbump(-1); __ret = traits_type::to_int_type(*this->gptr()); } else __ret = this->pbackfail(); return __ret; } # 423 "/usr/include/c++/5.0.0/streambuf" 3 int_type sputc(char_type __c) { int_type __ret; if (__builtin_expect(this->pptr() < this->epptr(), true)) { *this->pptr() = __c; this->pbump(1); __ret = traits_type::to_int_type(__c); } else __ret = this->overflow(traits_type::to_int_type(__c)); return __ret; } # 449 "/usr/include/c++/5.0.0/streambuf" 3 streamsize sputn(const char_type* __s, streamsize __n) { return this->xsputn(__s, __n); } protected: # 463 "/usr/include/c++/5.0.0/streambuf" 3 basic_streambuf() : _M_in_beg(0), _M_in_cur(0), _M_in_end(0), _M_out_beg(0), _M_out_cur(0), _M_out_end(0), _M_buf_locale(locale()) { } # 481 "/usr/include/c++/5.0.0/streambuf" 3 char_type* eback() const { return _M_in_beg; } char_type* gptr() const { return _M_in_cur; } char_type* egptr() const { return _M_in_end; } # 497 "/usr/include/c++/5.0.0/streambuf" 3 void gbump(int __n) { _M_in_cur += __n; } # 508 "/usr/include/c++/5.0.0/streambuf" 3 void setg(char_type* __gbeg, char_type* __gnext, char_type* __gend) { _M_in_beg = __gbeg; _M_in_cur = __gnext; _M_in_end = __gend; } # 528 "/usr/include/c++/5.0.0/streambuf" 3 char_type* pbase() const { return _M_out_beg; } char_type* pptr() const { return _M_out_cur; } char_type* epptr() const { return _M_out_end; } # 544 "/usr/include/c++/5.0.0/streambuf" 3 void pbump(int __n) { _M_out_cur += __n; } # 554 "/usr/include/c++/5.0.0/streambuf" 3 void setp(char_type* __pbeg, char_type* __pend) { _M_out_beg = _M_out_cur = __pbeg; _M_out_end = __pend; } # 575 "/usr/include/c++/5.0.0/streambuf" 3 virtual void imbue(const locale& __loc) { } # 590 "/usr/include/c++/5.0.0/streambuf" 3 virtual basic_streambuf* setbuf(char_type*, streamsize) { return this; } # 601 "/usr/include/c++/5.0.0/streambuf" 3 virtual pos_type seekoff(off_type, ios_base::seekdir, ios_base::openmode = ios_base::in | ios_base::out) { return pos_type(off_type(-1)); } # 613 "/usr/include/c++/5.0.0/streambuf" 3 virtual pos_type seekpos(pos_type, ios_base::openmode = ios_base::in | ios_base::out) { return pos_type(off_type(-1)); } # 626 "/usr/include/c++/5.0.0/streambuf" 3 virtual int sync() { return 0; } # 648 "/usr/include/c++/5.0.0/streambuf" 3 virtual streamsize showmanyc() { return 0; } # 664 "/usr/include/c++/5.0.0/streambuf" 3 virtual streamsize xsgetn(char_type* __s, streamsize __n); # 686 "/usr/include/c++/5.0.0/streambuf" 3 virtual int_type underflow() { return traits_type::eof(); } # 699 "/usr/include/c++/5.0.0/streambuf" 3 virtual int_type uflow() { int_type __ret = traits_type::eof(); const bool __testeof = traits_type::eq_int_type(this->underflow(), __ret); if (!__testeof) { __ret = traits_type::to_int_type(*this->gptr()); this->gbump(1); } return __ret; } # 723 "/usr/include/c++/5.0.0/streambuf" 3 virtual int_type pbackfail(int_type __c = traits_type::eof()) { return traits_type::eof(); } # 741 "/usr/include/c++/5.0.0/streambuf" 3 virtual streamsize xsputn(const char_type* __s, streamsize __n); # 767 "/usr/include/c++/5.0.0/streambuf" 3 virtual int_type overflow(int_type __c = traits_type::eof()) { return traits_type::eof(); } public: # 782 "/usr/include/c++/5.0.0/streambuf" 3 void stossc() { if (this->gptr() < this->egptr()) this->gbump(1); else this->uflow(); } void __safe_gbump(streamsize __n) { _M_in_cur += __n; } void __safe_pbump(streamsize __n) { _M_out_cur += __n; } private: basic_streambuf(const basic_streambuf&); basic_streambuf& operator=(const basic_streambuf&); # 822 "/usr/include/c++/5.0.0/streambuf" 3 }; # 836 "/usr/include/c++/5.0.0/streambuf" 3 template<> streamsize __copy_streambufs_eof(basic_streambuf* __sbin, basic_streambuf* __sbout, bool& __ineof); template<> streamsize __copy_streambufs_eof(basic_streambuf* __sbin, basic_streambuf* __sbout, bool& __ineof); } # 1 "/usr/include/c++/5.0.0/bits/streambuf.tcc" 1 3 # 37 "/usr/include/c++/5.0.0/bits/streambuf.tcc" 3 # 38 "/usr/include/c++/5.0.0/bits/streambuf.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template streamsize basic_streambuf<_CharT, _Traits>:: xsgetn(char_type* __s, streamsize __n) { streamsize __ret = 0; while (__ret < __n) { const streamsize __buf_len = this->egptr() - this->gptr(); if (__buf_len) { const streamsize __remaining = __n - __ret; const streamsize __len = std::min(__buf_len, __remaining); traits_type::copy(__s, this->gptr(), __len); __ret += __len; __s += __len; this->__safe_gbump(__len); } if (__ret < __n) { const int_type __c = this->uflow(); if (!traits_type::eq_int_type(__c, traits_type::eof())) { traits_type::assign(*__s++, traits_type::to_char_type(__c)); ++__ret; } else break; } } return __ret; } template streamsize basic_streambuf<_CharT, _Traits>:: xsputn(const char_type* __s, streamsize __n) { streamsize __ret = 0; while (__ret < __n) { const streamsize __buf_len = this->epptr() - this->pptr(); if (__buf_len) { const streamsize __remaining = __n - __ret; const streamsize __len = std::min(__buf_len, __remaining); traits_type::copy(this->pptr(), __s, __len); __ret += __len; __s += __len; this->__safe_pbump(__len); } if (__ret < __n) { int_type __c = this->overflow(traits_type::to_int_type(*__s)); if (!traits_type::eq_int_type(__c, traits_type::eof())) { ++__ret; ++__s; } else break; } } return __ret; } template streamsize __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>* __sbin, basic_streambuf<_CharT, _Traits>* __sbout, bool& __ineof) { streamsize __ret = 0; __ineof = true; typename _Traits::int_type __c = __sbin->sgetc(); while (!_Traits::eq_int_type(__c, _Traits::eof())) { __c = __sbout->sputc(_Traits::to_char_type(__c)); if (_Traits::eq_int_type(__c, _Traits::eof())) { __ineof = false; break; } ++__ret; __c = __sbin->snextc(); } return __ret; } template inline streamsize __copy_streambufs(basic_streambuf<_CharT, _Traits>* __sbin, basic_streambuf<_CharT, _Traits>* __sbout) { bool __ineof; return __copy_streambufs_eof(__sbin, __sbout, __ineof); } extern template class basic_streambuf; extern template streamsize __copy_streambufs(basic_streambuf*, basic_streambuf*); extern template streamsize __copy_streambufs_eof(basic_streambuf*, basic_streambuf*, bool&); extern template class basic_streambuf; extern template streamsize __copy_streambufs(basic_streambuf*, basic_streambuf*); extern template streamsize __copy_streambufs_eof(basic_streambuf*, basic_streambuf*, bool&); } # 851 "/usr/include/c++/5.0.0/streambuf" 2 3 # 44 "/usr/include/c++/5.0.0/ios" 2 3 # 1 "/usr/include/c++/5.0.0/bits/basic_ios.h" 1 3 # 33 "/usr/include/c++/5.0.0/bits/basic_ios.h" 3 # 34 "/usr/include/c++/5.0.0/bits/basic_ios.h" 3 # 1 "/usr/include/c++/5.0.0/bits/locale_facets.h" 1 3 # 37 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 # 38 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 # 1 "/usr/include/c++/5.0.0/cwctype" 1 3 # 39 "/usr/include/c++/5.0.0/cwctype" 3 # 40 "/usr/include/c++/5.0.0/cwctype" 3 # 50 "/usr/include/c++/5.0.0/cwctype" 3 # 1 "/usr/include/wctype.h" 1 3 4 # 33 "/usr/include/wctype.h" 3 4 # 1 "/usr/include/wchar.h" 1 3 4 # 34 "/usr/include/wctype.h" 2 3 4 # 49 "/usr/include/wctype.h" 3 4 typedef unsigned long int wctype_t; # 71 "/usr/include/wctype.h" 3 4 enum { __ISwupper = 0, __ISwlower = 1, __ISwalpha = 2, __ISwdigit = 3, __ISwxdigit = 4, __ISwspace = 5, __ISwprint = 6, __ISwgraph = 7, __ISwblank = 8, __ISwcntrl = 9, __ISwpunct = 10, __ISwalnum = 11, _ISwupper = ((__ISwupper) < 8 ? (int) ((1UL << (__ISwupper)) << 24) : ((__ISwupper) < 16 ? (int) ((1UL << (__ISwupper)) << 8) : ((__ISwupper) < 24 ? (int) ((1UL << (__ISwupper)) >> 8) : (int) ((1UL << (__ISwupper)) >> 24)))), _ISwlower = ((__ISwlower) < 8 ? (int) ((1UL << (__ISwlower)) << 24) : ((__ISwlower) < 16 ? (int) ((1UL << (__ISwlower)) << 8) : ((__ISwlower) < 24 ? (int) ((1UL << (__ISwlower)) >> 8) : (int) ((1UL << (__ISwlower)) >> 24)))), _ISwalpha = ((__ISwalpha) < 8 ? (int) ((1UL << (__ISwalpha)) << 24) : ((__ISwalpha) < 16 ? (int) ((1UL << (__ISwalpha)) << 8) : ((__ISwalpha) < 24 ? (int) ((1UL << (__ISwalpha)) >> 8) : (int) ((1UL << (__ISwalpha)) >> 24)))), _ISwdigit = ((__ISwdigit) < 8 ? (int) ((1UL << (__ISwdigit)) << 24) : ((__ISwdigit) < 16 ? (int) ((1UL << (__ISwdigit)) << 8) : ((__ISwdigit) < 24 ? (int) ((1UL << (__ISwdigit)) >> 8) : (int) ((1UL << (__ISwdigit)) >> 24)))), _ISwxdigit = ((__ISwxdigit) < 8 ? (int) ((1UL << (__ISwxdigit)) << 24) : ((__ISwxdigit) < 16 ? (int) ((1UL << (__ISwxdigit)) << 8) : ((__ISwxdigit) < 24 ? (int) ((1UL << (__ISwxdigit)) >> 8) : (int) ((1UL << (__ISwxdigit)) >> 24)))), _ISwspace = ((__ISwspace) < 8 ? (int) ((1UL << (__ISwspace)) << 24) : ((__ISwspace) < 16 ? (int) ((1UL << (__ISwspace)) << 8) : ((__ISwspace) < 24 ? (int) ((1UL << (__ISwspace)) >> 8) : (int) ((1UL << (__ISwspace)) >> 24)))), _ISwprint = ((__ISwprint) < 8 ? (int) ((1UL << (__ISwprint)) << 24) : ((__ISwprint) < 16 ? (int) ((1UL << (__ISwprint)) << 8) : ((__ISwprint) < 24 ? (int) ((1UL << (__ISwprint)) >> 8) : (int) ((1UL << (__ISwprint)) >> 24)))), _ISwgraph = ((__ISwgraph) < 8 ? (int) ((1UL << (__ISwgraph)) << 24) : ((__ISwgraph) < 16 ? (int) ((1UL << (__ISwgraph)) << 8) : ((__ISwgraph) < 24 ? (int) ((1UL << (__ISwgraph)) >> 8) : (int) ((1UL << (__ISwgraph)) >> 24)))), _ISwblank = ((__ISwblank) < 8 ? (int) ((1UL << (__ISwblank)) << 24) : ((__ISwblank) < 16 ? (int) ((1UL << (__ISwblank)) << 8) : ((__ISwblank) < 24 ? (int) ((1UL << (__ISwblank)) >> 8) : (int) ((1UL << (__ISwblank)) >> 24)))), _ISwcntrl = ((__ISwcntrl) < 8 ? (int) ((1UL << (__ISwcntrl)) << 24) : ((__ISwcntrl) < 16 ? (int) ((1UL << (__ISwcntrl)) << 8) : ((__ISwcntrl) < 24 ? (int) ((1UL << (__ISwcntrl)) >> 8) : (int) ((1UL << (__ISwcntrl)) >> 24)))), _ISwpunct = ((__ISwpunct) < 8 ? (int) ((1UL << (__ISwpunct)) << 24) : ((__ISwpunct) < 16 ? (int) ((1UL << (__ISwpunct)) << 8) : ((__ISwpunct) < 24 ? (int) ((1UL << (__ISwpunct)) >> 8) : (int) ((1UL << (__ISwpunct)) >> 24)))), _ISwalnum = ((__ISwalnum) < 8 ? (int) ((1UL << (__ISwalnum)) << 24) : ((__ISwalnum) < 16 ? (int) ((1UL << (__ISwalnum)) << 8) : ((__ISwalnum) < 24 ? (int) ((1UL << (__ISwalnum)) >> 8) : (int) ((1UL << (__ISwalnum)) >> 24)))) }; extern "C" { extern int iswalnum (wint_t __wc) throw (); extern int iswalpha (wint_t __wc) throw (); extern int iswcntrl (wint_t __wc) throw (); extern int iswdigit (wint_t __wc) throw (); extern int iswgraph (wint_t __wc) throw (); extern int iswlower (wint_t __wc) throw (); extern int iswprint (wint_t __wc) throw (); extern int iswpunct (wint_t __wc) throw (); extern int iswspace (wint_t __wc) throw (); extern int iswupper (wint_t __wc) throw (); extern int iswxdigit (wint_t __wc) throw (); extern int iswblank (wint_t __wc) throw (); # 171 "/usr/include/wctype.h" 3 4 extern wctype_t wctype (const char *__property) throw (); extern int iswctype (wint_t __wc, wctype_t __desc) throw (); typedef const __int32_t *wctrans_t; extern wint_t towlower (wint_t __wc) throw (); extern wint_t towupper (wint_t __wc) throw (); } # 213 "/usr/include/wctype.h" 3 4 extern "C" { extern wctrans_t wctrans (const char *__property) throw (); extern wint_t towctrans (wint_t __wc, wctrans_t __desc) throw (); extern int iswalnum_l (wint_t __wc, __locale_t __locale) throw (); extern int iswalpha_l (wint_t __wc, __locale_t __locale) throw (); extern int iswcntrl_l (wint_t __wc, __locale_t __locale) throw (); extern int iswdigit_l (wint_t __wc, __locale_t __locale) throw (); extern int iswgraph_l (wint_t __wc, __locale_t __locale) throw (); extern int iswlower_l (wint_t __wc, __locale_t __locale) throw (); extern int iswprint_l (wint_t __wc, __locale_t __locale) throw (); extern int iswpunct_l (wint_t __wc, __locale_t __locale) throw (); extern int iswspace_l (wint_t __wc, __locale_t __locale) throw (); extern int iswupper_l (wint_t __wc, __locale_t __locale) throw (); extern int iswxdigit_l (wint_t __wc, __locale_t __locale) throw (); extern int iswblank_l (wint_t __wc, __locale_t __locale) throw (); extern wctype_t wctype_l (const char *__property, __locale_t __locale) throw (); extern int iswctype_l (wint_t __wc, wctype_t __desc, __locale_t __locale) throw (); extern wint_t towlower_l (wint_t __wc, __locale_t __locale) throw (); extern wint_t towupper_l (wint_t __wc, __locale_t __locale) throw (); extern wctrans_t wctrans_l (const char *__property, __locale_t __locale) throw (); extern wint_t towctrans_l (wint_t __wc, wctrans_t __desc, __locale_t __locale) throw (); } # 51 "/usr/include/c++/5.0.0/cwctype" 2 3 # 80 "/usr/include/c++/5.0.0/cwctype" 3 namespace std { using ::wctrans_t; using ::wctype_t; using ::wint_t; using ::iswalnum; using ::iswalpha; using ::iswblank; using ::iswcntrl; using ::iswctype; using ::iswdigit; using ::iswgraph; using ::iswlower; using ::iswprint; using ::iswpunct; using ::iswspace; using ::iswupper; using ::iswxdigit; using ::towctrans; using ::towlower; using ::towupper; using ::wctrans; using ::wctype; } # 40 "/usr/include/c++/5.0.0/bits/locale_facets.h" 2 3 # 1 "/usr/include/c++/5.0.0/cctype" 1 3 # 39 "/usr/include/c++/5.0.0/cctype" 3 # 40 "/usr/include/c++/5.0.0/cctype" 3 # 41 "/usr/include/c++/5.0.0/bits/locale_facets.h" 2 3 # 1 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/ctype_base.h" 1 3 # 36 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/ctype_base.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { struct ctype_base { typedef const int* __to_type; typedef unsigned short mask; static const mask upper = _ISupper; static const mask lower = _ISlower; static const mask alpha = _ISalpha; static const mask digit = _ISdigit; static const mask xdigit = _ISxdigit; static const mask space = _ISspace; static const mask print = _ISprint; static const mask graph = _ISalpha | _ISdigit | _ISpunct; static const mask cntrl = _IScntrl; static const mask punct = _ISpunct; static const mask alnum = _ISalpha | _ISdigit; }; } # 42 "/usr/include/c++/5.0.0/bits/locale_facets.h" 2 3 # 1 "/usr/include/c++/5.0.0/bits/streambuf_iterator.h" 1 3 # 33 "/usr/include/c++/5.0.0/bits/streambuf_iterator.h" 3 # 34 "/usr/include/c++/5.0.0/bits/streambuf_iterator.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 49 "/usr/include/c++/5.0.0/bits/streambuf_iterator.h" 3 template class istreambuf_iterator : public iterator { public: typedef _CharT char_type; typedef _Traits traits_type; typedef typename _Traits::int_type int_type; typedef basic_streambuf<_CharT, _Traits> streambuf_type; typedef basic_istream<_CharT, _Traits> istream_type; template friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, ostreambuf_iterator<_CharT2> >::__type copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, ostreambuf_iterator<_CharT2>); template friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, _CharT2*>::__type __copy_move_a2(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, _CharT2*); template friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, istreambuf_iterator<_CharT2> >::__type find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, const _CharT2&); private: mutable streambuf_type* _M_sbuf; mutable int_type _M_c; public: istreambuf_iterator() throw() : _M_sbuf(0), _M_c(traits_type::eof()) { } # 112 "/usr/include/c++/5.0.0/bits/streambuf_iterator.h" 3 istreambuf_iterator(istream_type& __s) throw() : _M_sbuf(__s.rdbuf()), _M_c(traits_type::eof()) { } istreambuf_iterator(streambuf_type* __s) throw() : _M_sbuf(__s), _M_c(traits_type::eof()) { } char_type operator*() const { return traits_type::to_char_type(_M_get()); } istreambuf_iterator& operator++() { ; if (_M_sbuf) { _M_sbuf->sbumpc(); _M_c = traits_type::eof(); } return *this; } istreambuf_iterator operator++(int) { ; istreambuf_iterator __old = *this; if (_M_sbuf) { __old._M_c = _M_sbuf->sbumpc(); _M_c = traits_type::eof(); } return __old; } bool equal(const istreambuf_iterator& __b) const { return _M_at_eof() == __b._M_at_eof(); } private: int_type _M_get() const { const int_type __eof = traits_type::eof(); int_type __ret = __eof; if (_M_sbuf) { if (!traits_type::eq_int_type(_M_c, __eof)) __ret = _M_c; else if (!traits_type::eq_int_type((__ret = _M_sbuf->sgetc()), __eof)) _M_c = __ret; else _M_sbuf = 0; } return __ret; } bool _M_at_eof() const { const int_type __eof = traits_type::eof(); return traits_type::eq_int_type(_M_get(), __eof); } }; template inline bool operator==(const istreambuf_iterator<_CharT, _Traits>& __a, const istreambuf_iterator<_CharT, _Traits>& __b) { return __a.equal(__b); } template inline bool operator!=(const istreambuf_iterator<_CharT, _Traits>& __a, const istreambuf_iterator<_CharT, _Traits>& __b) { return !__a.equal(__b); } template class ostreambuf_iterator : public iterator { public: typedef _CharT char_type; typedef _Traits traits_type; typedef basic_streambuf<_CharT, _Traits> streambuf_type; typedef basic_ostream<_CharT, _Traits> ostream_type; template friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, ostreambuf_iterator<_CharT2> >::__type copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, ostreambuf_iterator<_CharT2>); private: streambuf_type* _M_sbuf; bool _M_failed; public: ostreambuf_iterator(ostream_type& __s) throw() : _M_sbuf(__s.rdbuf()), _M_failed(!_M_sbuf) { } ostreambuf_iterator(streambuf_type* __s) throw() : _M_sbuf(__s), _M_failed(!_M_sbuf) { } ostreambuf_iterator& operator=(_CharT __c) { if (!_M_failed && _Traits::eq_int_type(_M_sbuf->sputc(__c), _Traits::eof())) _M_failed = true; return *this; } ostreambuf_iterator& operator*() { return *this; } ostreambuf_iterator& operator++(int) { return *this; } ostreambuf_iterator& operator++() { return *this; } bool failed() const throw() { return _M_failed; } ostreambuf_iterator& _M_put(const _CharT* __ws, streamsize __len) { if (__builtin_expect(!_M_failed, true) && __builtin_expect(this->_M_sbuf->sputn(__ws, __len) != __len, false)) _M_failed = true; return *this; } }; template typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ostreambuf_iterator<_CharT> >::__type copy(istreambuf_iterator<_CharT> __first, istreambuf_iterator<_CharT> __last, ostreambuf_iterator<_CharT> __result) { if (__first._M_sbuf && !__last._M_sbuf && !__result._M_failed) { bool __ineof; __copy_streambufs_eof(__first._M_sbuf, __result._M_sbuf, __ineof); if (!__ineof) __result._M_failed = true; } return __result; } template typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ostreambuf_iterator<_CharT> >::__type __copy_move_a2(_CharT* __first, _CharT* __last, ostreambuf_iterator<_CharT> __result) { const streamsize __num = __last - __first; if (__num > 0) __result._M_put(__first, __num); return __result; } template typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ostreambuf_iterator<_CharT> >::__type __copy_move_a2(const _CharT* __first, const _CharT* __last, ostreambuf_iterator<_CharT> __result) { const streamsize __num = __last - __first; if (__num > 0) __result._M_put(__first, __num); return __result; } template typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, _CharT*>::__type __copy_move_a2(istreambuf_iterator<_CharT> __first, istreambuf_iterator<_CharT> __last, _CharT* __result) { typedef istreambuf_iterator<_CharT> __is_iterator_type; typedef typename __is_iterator_type::traits_type traits_type; typedef typename __is_iterator_type::streambuf_type streambuf_type; typedef typename traits_type::int_type int_type; if (__first._M_sbuf && !__last._M_sbuf) { streambuf_type* __sb = __first._M_sbuf; int_type __c = __sb->sgetc(); while (!traits_type::eq_int_type(__c, traits_type::eof())) { const streamsize __n = __sb->egptr() - __sb->gptr(); if (__n > 1) { traits_type::copy(__result, __sb->gptr(), __n); __sb->__safe_gbump(__n); __result += __n; __c = __sb->underflow(); } else { *__result++ = traits_type::to_char_type(__c); __c = __sb->snextc(); } } } return __result; } template typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, istreambuf_iterator<_CharT> >::__type find(istreambuf_iterator<_CharT> __first, istreambuf_iterator<_CharT> __last, const _CharT& __val) { typedef istreambuf_iterator<_CharT> __is_iterator_type; typedef typename __is_iterator_type::traits_type traits_type; typedef typename __is_iterator_type::streambuf_type streambuf_type; typedef typename traits_type::int_type int_type; if (__first._M_sbuf && !__last._M_sbuf) { const int_type __ival = traits_type::to_int_type(__val); streambuf_type* __sb = __first._M_sbuf; int_type __c = __sb->sgetc(); while (!traits_type::eq_int_type(__c, traits_type::eof()) && !traits_type::eq_int_type(__c, __ival)) { streamsize __n = __sb->egptr() - __sb->gptr(); if (__n > 1) { const _CharT* __p = traits_type::find(__sb->gptr(), __n, __val); if (__p) __n = __p - __sb->gptr(); __sb->__safe_gbump(__n); __c = __sb->sgetc(); } else __c = __sb->snextc(); } if (!traits_type::eq_int_type(__c, traits_type::eof())) __first._M_c = __c; else __first._M_sbuf = 0; } return __first; } } # 49 "/usr/include/c++/5.0.0/bits/locale_facets.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 71 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 template void __convert_to_v(const char*, _Tp&, ios_base::iostate&, const __c_locale&) throw(); template<> void __convert_to_v(const char*, float&, ios_base::iostate&, const __c_locale&) throw(); template<> void __convert_to_v(const char*, double&, ios_base::iostate&, const __c_locale&) throw(); template<> void __convert_to_v(const char*, long double&, ios_base::iostate&, const __c_locale&) throw(); template struct __pad { static void _S_pad(ios_base& __io, _CharT __fill, _CharT* __news, const _CharT* __olds, streamsize __newlen, streamsize __oldlen); }; template _CharT* __add_grouping(_CharT* __s, _CharT __sep, const char* __gbeg, size_t __gsize, const _CharT* __first, const _CharT* __last); template inline ostreambuf_iterator<_CharT> __write(ostreambuf_iterator<_CharT> __s, const _CharT* __ws, int __len) { __s._M_put(__ws, __len); return __s; } template inline _OutIter __write(_OutIter __s, const _CharT* __ws, int __len) { for (int __j = 0; __j < __len; __j++, ++__s) *__s = __ws[__j]; return __s; } # 149 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 template class __ctype_abstract_base : public locale::facet, public ctype_base { public: typedef _CharT char_type; # 168 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 bool is(mask __m, char_type __c) const { return this->do_is(__m, __c); } # 185 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 const char_type* is(const char_type *__lo, const char_type *__hi, mask *__vec) const { return this->do_is(__lo, __hi, __vec); } # 201 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 const char_type* scan_is(mask __m, const char_type* __lo, const char_type* __hi) const { return this->do_scan_is(__m, __lo, __hi); } # 217 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 const char_type* scan_not(mask __m, const char_type* __lo, const char_type* __hi) const { return this->do_scan_not(__m, __lo, __hi); } # 231 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 char_type toupper(char_type __c) const { return this->do_toupper(__c); } # 246 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 const char_type* toupper(char_type *__lo, const char_type* __hi) const { return this->do_toupper(__lo, __hi); } # 260 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 char_type tolower(char_type __c) const { return this->do_tolower(__c); } # 275 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 const char_type* tolower(char_type* __lo, const char_type* __hi) const { return this->do_tolower(__lo, __hi); } # 292 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 char_type widen(char __c) const { return this->do_widen(__c); } # 311 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 const char* widen(const char* __lo, const char* __hi, char_type* __to) const { return this->do_widen(__lo, __hi, __to); } # 330 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 char narrow(char_type __c, char __dfault) const { return this->do_narrow(__c, __dfault); } # 352 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 const char_type* narrow(const char_type* __lo, const char_type* __hi, char __dfault, char* __to) const { return this->do_narrow(__lo, __hi, __dfault, __to); } protected: explicit __ctype_abstract_base(size_t __refs = 0): facet(__refs) { } virtual ~__ctype_abstract_base() { } # 377 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual bool do_is(mask __m, char_type __c) const = 0; # 396 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual const char_type* do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const = 0; # 415 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual const char_type* do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const = 0; # 434 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual const char_type* do_scan_not(mask __m, const char_type* __lo, const char_type* __hi) const = 0; # 452 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual char_type do_toupper(char_type __c) const = 0; # 469 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual const char_type* do_toupper(char_type* __lo, const char_type* __hi) const = 0; # 485 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual char_type do_tolower(char_type __c) const = 0; # 502 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual const char_type* do_tolower(char_type* __lo, const char_type* __hi) const = 0; # 521 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual char_type do_widen(char __c) const = 0; # 542 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual const char* do_widen(const char* __lo, const char* __hi, char_type* __to) const = 0; # 563 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual char do_narrow(char_type __c, char __dfault) const = 0; # 588 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual const char_type* do_narrow(const char_type* __lo, const char_type* __hi, char __dfault, char* __to) const = 0; }; # 611 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 template class ctype : public __ctype_abstract_base<_CharT> { public: typedef _CharT char_type; typedef typename __ctype_abstract_base<_CharT>::mask mask; static locale::id id; explicit ctype(size_t __refs = 0) : __ctype_abstract_base<_CharT>(__refs) { } protected: virtual ~ctype(); virtual bool do_is(mask __m, char_type __c) const; virtual const char_type* do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; virtual const char_type* do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; virtual const char_type* do_scan_not(mask __m, const char_type* __lo, const char_type* __hi) const; virtual char_type do_toupper(char_type __c) const; virtual const char_type* do_toupper(char_type* __lo, const char_type* __hi) const; virtual char_type do_tolower(char_type __c) const; virtual const char_type* do_tolower(char_type* __lo, const char_type* __hi) const; virtual char_type do_widen(char __c) const; virtual const char* do_widen(const char* __lo, const char* __hi, char_type* __dest) const; virtual char do_narrow(char_type, char __dfault) const; virtual const char_type* do_narrow(const char_type* __lo, const char_type* __hi, char __dfault, char* __to) const; }; template locale::id ctype<_CharT>::id; # 680 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 template<> class ctype : public locale::facet, public ctype_base { public: typedef char char_type; protected: __c_locale _M_c_locale_ctype; bool _M_del; __to_type _M_toupper; __to_type _M_tolower; const mask* _M_table; mutable char _M_widen_ok; mutable char _M_widen[1 + static_cast(-1)]; mutable char _M_narrow[1 + static_cast(-1)]; mutable char _M_narrow_ok; public: static locale::id id; static const size_t table_size = 1 + static_cast(-1); # 717 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 explicit ctype(const mask* __table = 0, bool __del = false, size_t __refs = 0); # 730 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 explicit ctype(__c_locale __cloc, const mask* __table = 0, bool __del = false, size_t __refs = 0); # 743 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 inline bool is(mask __m, char __c) const; # 758 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 inline const char* is(const char* __lo, const char* __hi, mask* __vec) const; # 772 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 inline const char* scan_is(mask __m, const char* __lo, const char* __hi) const; # 786 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 inline const char* scan_not(mask __m, const char* __lo, const char* __hi) const; # 801 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 char_type toupper(char_type __c) const { return this->do_toupper(__c); } # 818 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 const char_type* toupper(char_type *__lo, const char_type* __hi) const { return this->do_toupper(__lo, __hi); } # 834 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 char_type tolower(char_type __c) const { return this->do_tolower(__c); } # 851 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 const char_type* tolower(char_type* __lo, const char_type* __hi) const { return this->do_tolower(__lo, __hi); } # 871 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 char_type widen(char __c) const { if (_M_widen_ok) return _M_widen[static_cast(__c)]; this->_M_widen_init(); return this->do_widen(__c); } # 898 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 const char* widen(const char* __lo, const char* __hi, char_type* __to) const { if (_M_widen_ok == 1) { __builtin_memcpy(__to, __lo, __hi - __lo); return __hi; } if (!_M_widen_ok) _M_widen_init(); return this->do_widen(__lo, __hi, __to); } # 929 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 char narrow(char_type __c, char __dfault) const { if (_M_narrow[static_cast(__c)]) return _M_narrow[static_cast(__c)]; const char __t = do_narrow(__c, __dfault); if (__t != __dfault) _M_narrow[static_cast(__c)] = __t; return __t; } # 962 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 const char_type* narrow(const char_type* __lo, const char_type* __hi, char __dfault, char* __to) const { if (__builtin_expect(_M_narrow_ok == 1, true)) { __builtin_memcpy(__to, __lo, __hi - __lo); return __hi; } if (!_M_narrow_ok) _M_narrow_init(); return this->do_narrow(__lo, __hi, __dfault, __to); } const mask* table() const throw() { return _M_table; } static const mask* classic_table() throw(); protected: virtual ~ctype(); # 1011 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual char_type do_toupper(char_type __c) const; # 1028 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual const char_type* do_toupper(char_type* __lo, const char_type* __hi) const; # 1044 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual char_type do_tolower(char_type __c) const; # 1061 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual const char_type* do_tolower(char_type* __lo, const char_type* __hi) const; # 1081 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual char_type do_widen(char __c) const { return __c; } # 1104 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual const char* do_widen(const char* __lo, const char* __hi, char_type* __to) const { __builtin_memcpy(__to, __lo, __hi - __lo); return __hi; } # 1130 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual char do_narrow(char_type __c, char __dfault) const { return __c; } # 1156 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual const char_type* do_narrow(const char_type* __lo, const char_type* __hi, char __dfault, char* __to) const { __builtin_memcpy(__to, __lo, __hi - __lo); return __hi; } private: void _M_narrow_init() const; void _M_widen_init() const; }; # 1181 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 template<> class ctype : public __ctype_abstract_base { public: typedef wchar_t char_type; typedef wctype_t __wmask_type; protected: __c_locale _M_c_locale_ctype; bool _M_narrow_ok; char _M_narrow[128]; wint_t _M_widen[1 + static_cast(-1)]; mask _M_bit[16]; __wmask_type _M_wmask[16]; public: static locale::id id; # 1214 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 explicit ctype(size_t __refs = 0); # 1225 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 explicit ctype(__c_locale __cloc, size_t __refs = 0); protected: __wmask_type _M_convert_to_wmask(const mask __m) const throw(); virtual ~ctype(); # 1249 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual bool do_is(mask __m, char_type __c) const; # 1268 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual const char_type* do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; # 1286 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual const char_type* do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; # 1304 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual const char_type* do_scan_not(mask __m, const char_type* __lo, const char_type* __hi) const; # 1321 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual char_type do_toupper(char_type __c) const; # 1338 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual const char_type* do_toupper(char_type* __lo, const char_type* __hi) const; # 1354 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual char_type do_tolower(char_type __c) const; # 1371 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual const char_type* do_tolower(char_type* __lo, const char_type* __hi) const; # 1391 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual char_type do_widen(char __c) const; # 1413 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual const char* do_widen(const char* __lo, const char* __hi, char_type* __to) const; # 1436 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual char do_narrow(char_type __c, char __dfault) const; # 1462 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual const char_type* do_narrow(const char_type* __lo, const char_type* __hi, char __dfault, char* __to) const; void _M_initialize_ctype() throw(); }; template class ctype_byname : public ctype<_CharT> { public: typedef typename ctype<_CharT>::mask mask; explicit ctype_byname(const char* __s, size_t __refs = 0); protected: virtual ~ctype_byname() { }; }; template<> class ctype_byname : public ctype { public: explicit ctype_byname(const char* __s, size_t __refs = 0); protected: virtual ~ctype_byname(); }; template<> class ctype_byname : public ctype { public: explicit ctype_byname(const char* __s, size_t __refs = 0); protected: virtual ~ctype_byname(); }; } # 1 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/ctype_inline.h" 1 3 # 37 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/ctype_inline.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { bool ctype:: is(mask __m, char __c) const { return _M_table[static_cast(__c)] & __m; } const char* ctype:: is(const char* __low, const char* __high, mask* __vec) const { while (__low < __high) *__vec++ = _M_table[static_cast(*__low++)]; return __high; } const char* ctype:: scan_is(mask __m, const char* __low, const char* __high) const { while (__low < __high && !(_M_table[static_cast(*__low)] & __m)) ++__low; return __low; } const char* ctype:: scan_not(mask __m, const char* __low, const char* __high) const { while (__low < __high && (_M_table[static_cast(*__low)] & __m) != 0) ++__low; return __low; } } # 1535 "/usr/include/c++/5.0.0/bits/locale_facets.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { class __num_base { public: enum { _S_ominus, _S_oplus, _S_ox, _S_oX, _S_odigits, _S_odigits_end = _S_odigits + 16, _S_oudigits = _S_odigits_end, _S_oudigits_end = _S_oudigits + 16, _S_oe = _S_odigits + 14, _S_oE = _S_oudigits + 14, _S_oend = _S_oudigits_end }; static const char* _S_atoms_out; static const char* _S_atoms_in; enum { _S_iminus, _S_iplus, _S_ix, _S_iX, _S_izero, _S_ie = _S_izero + 14, _S_iE = _S_izero + 20, _S_iend = 26 }; static void _S_format_float(const ios_base& __io, char* __fptr, char __mod) throw(); }; template struct __numpunct_cache : public locale::facet { const char* _M_grouping; size_t _M_grouping_size; bool _M_use_grouping; const _CharT* _M_truename; size_t _M_truename_size; const _CharT* _M_falsename; size_t _M_falsename_size; _CharT _M_decimal_point; _CharT _M_thousands_sep; _CharT _M_atoms_out[__num_base::_S_oend]; _CharT _M_atoms_in[__num_base::_S_iend]; bool _M_allocated; __numpunct_cache(size_t __refs = 0) : facet(__refs), _M_grouping(0), _M_grouping_size(0), _M_use_grouping(false), _M_truename(0), _M_truename_size(0), _M_falsename(0), _M_falsename_size(0), _M_decimal_point(_CharT()), _M_thousands_sep(_CharT()), _M_allocated(false) { } ~__numpunct_cache(); void _M_cache(const locale& __loc); private: __numpunct_cache& operator=(const __numpunct_cache&); explicit __numpunct_cache(const __numpunct_cache&); }; template __numpunct_cache<_CharT>::~__numpunct_cache() { if (_M_allocated) { delete [] _M_grouping; delete [] _M_truename; delete [] _M_falsename; } } # 1665 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 template class numpunct : public locale::facet { public: typedef _CharT char_type; typedef basic_string<_CharT> string_type; typedef __numpunct_cache<_CharT> __cache_type; protected: __cache_type* _M_data; public: static locale::id id; explicit numpunct(size_t __refs = 0) : facet(__refs), _M_data(0) { _M_initialize_numpunct(); } # 1703 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 explicit numpunct(__cache_type* __cache, size_t __refs = 0) : facet(__refs), _M_data(__cache) { _M_initialize_numpunct(); } # 1717 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 explicit numpunct(__c_locale __cloc, size_t __refs = 0) : facet(__refs), _M_data(0) { _M_initialize_numpunct(__cloc); } # 1731 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 char_type decimal_point() const { return this->do_decimal_point(); } # 1744 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 char_type thousands_sep() const { return this->do_thousands_sep(); } # 1775 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 string grouping() const { return this->do_grouping(); } # 1788 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 string_type truename() const { return this->do_truename(); } # 1801 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 string_type falsename() const { return this->do_falsename(); } protected: virtual ~numpunct(); # 1818 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual char_type do_decimal_point() const { return _M_data->_M_decimal_point; } # 1830 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual char_type do_thousands_sep() const { return _M_data->_M_thousands_sep; } # 1843 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual string do_grouping() const { return _M_data->_M_grouping; } # 1856 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual string_type do_truename() const { return _M_data->_M_truename; } # 1869 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual string_type do_falsename() const { return _M_data->_M_falsename; } void _M_initialize_numpunct(__c_locale __cloc = 0); }; template locale::id numpunct<_CharT>::id; template<> numpunct::~numpunct(); template<> void numpunct::_M_initialize_numpunct(__c_locale __cloc); template<> numpunct::~numpunct(); template<> void numpunct::_M_initialize_numpunct(__c_locale __cloc); template class numpunct_byname : public numpunct<_CharT> { public: typedef _CharT char_type; typedef basic_string<_CharT> string_type; explicit numpunct_byname(const char* __s, size_t __refs = 0) : numpunct<_CharT>(__refs) { if (__builtin_strcmp(__s, "C") != 0 && __builtin_strcmp(__s, "POSIX") != 0) { __c_locale __tmp; this->_S_create_c_locale(__tmp, __s); this->_M_initialize_numpunct(__tmp); this->_S_destroy_c_locale(__tmp); } } protected: virtual ~numpunct_byname() { } }; # 1947 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 template class num_get : public locale::facet { public: typedef _CharT char_type; typedef _InIter iter_type; static locale::id id; # 1968 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 explicit num_get(size_t __refs = 0) : facet(__refs) { } # 1994 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 iter_type get(iter_type __in, iter_type __end, ios_base& __io, ios_base::iostate& __err, bool& __v) const { return this->do_get(__in, __end, __io, __err, __v); } # 2031 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 iter_type get(iter_type __in, iter_type __end, ios_base& __io, ios_base::iostate& __err, long& __v) const { return this->do_get(__in, __end, __io, __err, __v); } iter_type get(iter_type __in, iter_type __end, ios_base& __io, ios_base::iostate& __err, unsigned short& __v) const { return this->do_get(__in, __end, __io, __err, __v); } iter_type get(iter_type __in, iter_type __end, ios_base& __io, ios_base::iostate& __err, unsigned int& __v) const { return this->do_get(__in, __end, __io, __err, __v); } iter_type get(iter_type __in, iter_type __end, ios_base& __io, ios_base::iostate& __err, unsigned long& __v) const { return this->do_get(__in, __end, __io, __err, __v); } iter_type get(iter_type __in, iter_type __end, ios_base& __io, ios_base::iostate& __err, long long& __v) const { return this->do_get(__in, __end, __io, __err, __v); } iter_type get(iter_type __in, iter_type __end, ios_base& __io, ios_base::iostate& __err, unsigned long long& __v) const { return this->do_get(__in, __end, __io, __err, __v); } # 2091 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 iter_type get(iter_type __in, iter_type __end, ios_base& __io, ios_base::iostate& __err, float& __v) const { return this->do_get(__in, __end, __io, __err, __v); } iter_type get(iter_type __in, iter_type __end, ios_base& __io, ios_base::iostate& __err, double& __v) const { return this->do_get(__in, __end, __io, __err, __v); } iter_type get(iter_type __in, iter_type __end, ios_base& __io, ios_base::iostate& __err, long double& __v) const { return this->do_get(__in, __end, __io, __err, __v); } # 2134 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 iter_type get(iter_type __in, iter_type __end, ios_base& __io, ios_base::iostate& __err, void*& __v) const { return this->do_get(__in, __end, __io, __err, __v); } protected: virtual ~num_get() { } iter_type _M_extract_float(iter_type, iter_type, ios_base&, ios_base::iostate&, string&) const; template iter_type _M_extract_int(iter_type, iter_type, ios_base&, ios_base::iostate&, _ValueT&) const; template typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, int>::__type _M_find(const _CharT2*, size_t __len, _CharT2 __c) const { int __ret = -1; if (__len <= 10) { if (__c >= _CharT2('0') && __c < _CharT2(_CharT2('0') + __len)) __ret = __c - _CharT2('0'); } else { if (__c >= _CharT2('0') && __c <= _CharT2('9')) __ret = __c - _CharT2('0'); else if (__c >= _CharT2('a') && __c <= _CharT2('f')) __ret = 10 + (__c - _CharT2('a')); else if (__c >= _CharT2('A') && __c <= _CharT2('F')) __ret = 10 + (__c - _CharT2('A')); } return __ret; } template typename __gnu_cxx::__enable_if::__value, int>::__type _M_find(const _CharT2* __zero, size_t __len, _CharT2 __c) const { int __ret = -1; const char_type* __q = char_traits<_CharT2>::find(__zero, __len, __c); if (__q) { __ret = __q - __zero; if (__ret > 15) __ret -= 6; } return __ret; } # 2207 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual iter_type do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, bool&) const; virtual iter_type do_get(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, long& __v) const { return _M_extract_int(__beg, __end, __io, __err, __v); } virtual iter_type do_get(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, unsigned short& __v) const { return _M_extract_int(__beg, __end, __io, __err, __v); } virtual iter_type do_get(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, unsigned int& __v) const { return _M_extract_int(__beg, __end, __io, __err, __v); } virtual iter_type do_get(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, unsigned long& __v) const { return _M_extract_int(__beg, __end, __io, __err, __v); } virtual iter_type do_get(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, long long& __v) const { return _M_extract_int(__beg, __end, __io, __err, __v); } virtual iter_type do_get(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, unsigned long long& __v) const { return _M_extract_int(__beg, __end, __io, __err, __v); } virtual iter_type do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, float&) const; virtual iter_type do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, double&) const; virtual iter_type do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, long double&) const; virtual iter_type do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, void*&) const; # 2270 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 }; template locale::id num_get<_CharT, _InIter>::id; # 2288 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 template class num_put : public locale::facet { public: typedef _CharT char_type; typedef _OutIter iter_type; static locale::id id; # 2309 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 explicit num_put(size_t __refs = 0) : facet(__refs) { } # 2327 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 iter_type put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const { return this->do_put(__s, __io, __fill, __v); } # 2369 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 iter_type put(iter_type __s, ios_base& __io, char_type __fill, long __v) const { return this->do_put(__s, __io, __fill, __v); } iter_type put(iter_type __s, ios_base& __io, char_type __fill, unsigned long __v) const { return this->do_put(__s, __io, __fill, __v); } iter_type put(iter_type __s, ios_base& __io, char_type __fill, long long __v) const { return this->do_put(__s, __io, __fill, __v); } iter_type put(iter_type __s, ios_base& __io, char_type __fill, unsigned long long __v) const { return this->do_put(__s, __io, __fill, __v); } # 2432 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 iter_type put(iter_type __s, ios_base& __io, char_type __fill, double __v) const { return this->do_put(__s, __io, __fill, __v); } iter_type put(iter_type __s, ios_base& __io, char_type __fill, long double __v) const { return this->do_put(__s, __io, __fill, __v); } # 2457 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 iter_type put(iter_type __s, ios_base& __io, char_type __fill, const void* __v) const { return this->do_put(__s, __io, __fill, __v); } protected: template iter_type _M_insert_float(iter_type, ios_base& __io, char_type __fill, char __mod, _ValueT __v) const; void _M_group_float(const char* __grouping, size_t __grouping_size, char_type __sep, const char_type* __p, char_type* __new, char_type* __cs, int& __len) const; template iter_type _M_insert_int(iter_type, ios_base& __io, char_type __fill, _ValueT __v) const; void _M_group_int(const char* __grouping, size_t __grouping_size, char_type __sep, ios_base& __io, char_type* __new, char_type* __cs, int& __len) const; void _M_pad(char_type __fill, streamsize __w, ios_base& __io, char_type* __new, const char_type* __cs, int& __len) const; virtual ~num_put() { }; # 2505 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 virtual iter_type do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const; virtual iter_type do_put(iter_type __s, ios_base& __io, char_type __fill, long __v) const { return _M_insert_int(__s, __io, __fill, __v); } virtual iter_type do_put(iter_type __s, ios_base& __io, char_type __fill, unsigned long __v) const { return _M_insert_int(__s, __io, __fill, __v); } virtual iter_type do_put(iter_type __s, ios_base& __io, char_type __fill, long long __v) const { return _M_insert_int(__s, __io, __fill, __v); } virtual iter_type do_put(iter_type __s, ios_base& __io, char_type __fill, unsigned long long __v) const { return _M_insert_int(__s, __io, __fill, __v); } virtual iter_type do_put(iter_type, ios_base&, char_type, double) const; virtual iter_type do_put(iter_type, ios_base&, char_type, long double) const; virtual iter_type do_put(iter_type, ios_base&, char_type, const void*) const; }; template locale::id num_put<_CharT, _OutIter>::id; template inline bool isspace(_CharT __c, const locale& __loc) { return use_facet >(__loc).is(ctype_base::space, __c); } template inline bool isprint(_CharT __c, const locale& __loc) { return use_facet >(__loc).is(ctype_base::print, __c); } template inline bool iscntrl(_CharT __c, const locale& __loc) { return use_facet >(__loc).is(ctype_base::cntrl, __c); } template inline bool isupper(_CharT __c, const locale& __loc) { return use_facet >(__loc).is(ctype_base::upper, __c); } template inline bool islower(_CharT __c, const locale& __loc) { return use_facet >(__loc).is(ctype_base::lower, __c); } template inline bool isalpha(_CharT __c, const locale& __loc) { return use_facet >(__loc).is(ctype_base::alpha, __c); } template inline bool isdigit(_CharT __c, const locale& __loc) { return use_facet >(__loc).is(ctype_base::digit, __c); } template inline bool ispunct(_CharT __c, const locale& __loc) { return use_facet >(__loc).is(ctype_base::punct, __c); } template inline bool isxdigit(_CharT __c, const locale& __loc) { return use_facet >(__loc).is(ctype_base::xdigit, __c); } template inline bool isalnum(_CharT __c, const locale& __loc) { return use_facet >(__loc).is(ctype_base::alnum, __c); } template inline bool isgraph(_CharT __c, const locale& __loc) { return use_facet >(__loc).is(ctype_base::graph, __c); } # 2637 "/usr/include/c++/5.0.0/bits/locale_facets.h" 3 template inline _CharT toupper(_CharT __c, const locale& __loc) { return use_facet >(__loc).toupper(__c); } template inline _CharT tolower(_CharT __c, const locale& __loc) { return use_facet >(__loc).tolower(__c); } } # 1 "/usr/include/c++/5.0.0/bits/locale_facets.tcc" 1 3 # 33 "/usr/include/c++/5.0.0/bits/locale_facets.tcc" 3 # 34 "/usr/include/c++/5.0.0/bits/locale_facets.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template struct __use_cache { const _Facet* operator() (const locale& __loc) const; }; template struct __use_cache<__numpunct_cache<_CharT> > { const __numpunct_cache<_CharT>* operator() (const locale& __loc) const { const size_t __i = numpunct<_CharT>::id._M_id(); const locale::facet** __caches = __loc._M_impl->_M_caches; if (!__caches[__i]) { __numpunct_cache<_CharT>* __tmp = 0; try { __tmp = new __numpunct_cache<_CharT>; __tmp->_M_cache(__loc); } catch(...) { delete __tmp; throw; } __loc._M_impl->_M_install_cache(__tmp, __i); } return static_cast*>(__caches[__i]); } }; template void __numpunct_cache<_CharT>::_M_cache(const locale& __loc) { const numpunct<_CharT>& __np = use_facet >(__loc); char* __grouping = 0; _CharT* __truename = 0; _CharT* __falsename = 0; try { const string& __g = __np.grouping(); _M_grouping_size = __g.size(); __grouping = new char[_M_grouping_size]; __g.copy(__grouping, _M_grouping_size); _M_use_grouping = (_M_grouping_size && static_cast(__grouping[0]) > 0 && (__grouping[0] != __gnu_cxx::__numeric_traits::__max)); const basic_string<_CharT>& __tn = __np.truename(); _M_truename_size = __tn.size(); __truename = new _CharT[_M_truename_size]; __tn.copy(__truename, _M_truename_size); const basic_string<_CharT>& __fn = __np.falsename(); _M_falsename_size = __fn.size(); __falsename = new _CharT[_M_falsename_size]; __fn.copy(__falsename, _M_falsename_size); _M_decimal_point = __np.decimal_point(); _M_thousands_sep = __np.thousands_sep(); const ctype<_CharT>& __ct = use_facet >(__loc); __ct.widen(__num_base::_S_atoms_out, __num_base::_S_atoms_out + __num_base::_S_oend, _M_atoms_out); __ct.widen(__num_base::_S_atoms_in, __num_base::_S_atoms_in + __num_base::_S_iend, _M_atoms_in); _M_grouping = __grouping; _M_truename = __truename; _M_falsename = __falsename; _M_allocated = true; } catch(...) { delete [] __grouping; delete [] __truename; delete [] __falsename; throw; } } # 139 "/usr/include/c++/5.0.0/bits/locale_facets.tcc" 3 __attribute__ ((__pure__)) bool __verify_grouping(const char* __grouping, size_t __grouping_size, const string& __grouping_tmp) throw (); template _InIter num_get<_CharT, _InIter>:: _M_extract_float(_InIter __beg, _InIter __end, ios_base& __io, ios_base::iostate& __err, string& __xtrc) const { typedef char_traits<_CharT> __traits_type; typedef __numpunct_cache<_CharT> __cache_type; __use_cache<__cache_type> __uc; const locale& __loc = __io._M_getloc(); const __cache_type* __lc = __uc(__loc); const _CharT* __lit = __lc->_M_atoms_in; char_type __c = char_type(); bool __testeof = __beg == __end; if (!__testeof) { __c = *__beg; const bool __plus = __c == __lit[__num_base::_S_iplus]; if ((__plus || __c == __lit[__num_base::_S_iminus]) && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) && !(__c == __lc->_M_decimal_point)) { __xtrc += __plus ? '+' : '-'; if (++__beg != __end) __c = *__beg; else __testeof = true; } } bool __found_mantissa = false; int __sep_pos = 0; while (!__testeof) { if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) || __c == __lc->_M_decimal_point) break; else if (__c == __lit[__num_base::_S_izero]) { if (!__found_mantissa) { __xtrc += '0'; __found_mantissa = true; } ++__sep_pos; if (++__beg != __end) __c = *__beg; else __testeof = true; } else break; } bool __found_dec = false; bool __found_sci = false; string __found_grouping; if (__lc->_M_use_grouping) __found_grouping.reserve(32); const char_type* __lit_zero = __lit + __num_base::_S_izero; if (!__lc->_M_allocated) while (!__testeof) { const int __digit = _M_find(__lit_zero, 10, __c); if (__digit != -1) { __xtrc += '0' + __digit; __found_mantissa = true; } else if (__c == __lc->_M_decimal_point && !__found_dec && !__found_sci) { __xtrc += '.'; __found_dec = true; } else if ((__c == __lit[__num_base::_S_ie] || __c == __lit[__num_base::_S_iE]) && !__found_sci && __found_mantissa) { __xtrc += 'e'; __found_sci = true; if (++__beg != __end) { __c = *__beg; const bool __plus = __c == __lit[__num_base::_S_iplus]; if (__plus || __c == __lit[__num_base::_S_iminus]) __xtrc += __plus ? '+' : '-'; else continue; } else { __testeof = true; break; } } else break; if (++__beg != __end) __c = *__beg; else __testeof = true; } else while (!__testeof) { if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) { if (!__found_dec && !__found_sci) { if (__sep_pos) { __found_grouping += static_cast(__sep_pos); __sep_pos = 0; } else { __xtrc.clear(); break; } } else break; } else if (__c == __lc->_M_decimal_point) { if (!__found_dec && !__found_sci) { if (__found_grouping.size()) __found_grouping += static_cast(__sep_pos); __xtrc += '.'; __found_dec = true; } else break; } else { const char_type* __q = __traits_type::find(__lit_zero, 10, __c); if (__q) { __xtrc += '0' + (__q - __lit_zero); __found_mantissa = true; ++__sep_pos; } else if ((__c == __lit[__num_base::_S_ie] || __c == __lit[__num_base::_S_iE]) && !__found_sci && __found_mantissa) { if (__found_grouping.size() && !__found_dec) __found_grouping += static_cast(__sep_pos); __xtrc += 'e'; __found_sci = true; if (++__beg != __end) { __c = *__beg; const bool __plus = __c == __lit[__num_base::_S_iplus]; if ((__plus || __c == __lit[__num_base::_S_iminus]) && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) && !(__c == __lc->_M_decimal_point)) __xtrc += __plus ? '+' : '-'; else continue; } else { __testeof = true; break; } } else break; } if (++__beg != __end) __c = *__beg; else __testeof = true; } if (__found_grouping.size()) { if (!__found_dec && !__found_sci) __found_grouping += static_cast(__sep_pos); if (!std::__verify_grouping(__lc->_M_grouping, __lc->_M_grouping_size, __found_grouping)) __err = ios_base::failbit; } return __beg; } template template _InIter num_get<_CharT, _InIter>:: _M_extract_int(_InIter __beg, _InIter __end, ios_base& __io, ios_base::iostate& __err, _ValueT& __v) const { typedef char_traits<_CharT> __traits_type; using __gnu_cxx::__add_unsigned; typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; typedef __numpunct_cache<_CharT> __cache_type; __use_cache<__cache_type> __uc; const locale& __loc = __io._M_getloc(); const __cache_type* __lc = __uc(__loc); const _CharT* __lit = __lc->_M_atoms_in; char_type __c = char_type(); const ios_base::fmtflags __basefield = __io.flags() & ios_base::basefield; const bool __oct = __basefield == ios_base::oct; int __base = __oct ? 8 : (__basefield == ios_base::hex ? 16 : 10); bool __testeof = __beg == __end; bool __negative = false; if (!__testeof) { __c = *__beg; __negative = __c == __lit[__num_base::_S_iminus]; if ((__negative || __c == __lit[__num_base::_S_iplus]) && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) && !(__c == __lc->_M_decimal_point)) { if (++__beg != __end) __c = *__beg; else __testeof = true; } } bool __found_zero = false; int __sep_pos = 0; while (!__testeof) { if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) || __c == __lc->_M_decimal_point) break; else if (__c == __lit[__num_base::_S_izero] && (!__found_zero || __base == 10)) { __found_zero = true; ++__sep_pos; if (__basefield == 0) __base = 8; if (__base == 8) __sep_pos = 0; } else if (__found_zero && (__c == __lit[__num_base::_S_ix] || __c == __lit[__num_base::_S_iX])) { if (__basefield == 0) __base = 16; if (__base == 16) { __found_zero = false; __sep_pos = 0; } else break; } else break; if (++__beg != __end) { __c = *__beg; if (!__found_zero) break; } else __testeof = true; } const size_t __len = (__base == 16 ? __num_base::_S_iend - __num_base::_S_izero : __base); string __found_grouping; if (__lc->_M_use_grouping) __found_grouping.reserve(32); bool __testfail = false; bool __testoverflow = false; const __unsigned_type __max = (__negative && __gnu_cxx::__numeric_traits<_ValueT>::__is_signed) ? -__gnu_cxx::__numeric_traits<_ValueT>::__min : __gnu_cxx::__numeric_traits<_ValueT>::__max; const __unsigned_type __smax = __max / __base; __unsigned_type __result = 0; int __digit = 0; const char_type* __lit_zero = __lit + __num_base::_S_izero; if (!__lc->_M_allocated) while (!__testeof) { __digit = _M_find(__lit_zero, __len, __c); if (__digit == -1) break; if (__result > __smax) __testoverflow = true; else { __result *= __base; __testoverflow |= __result > __max - __digit; __result += __digit; ++__sep_pos; } if (++__beg != __end) __c = *__beg; else __testeof = true; } else while (!__testeof) { if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) { if (__sep_pos) { __found_grouping += static_cast(__sep_pos); __sep_pos = 0; } else { __testfail = true; break; } } else if (__c == __lc->_M_decimal_point) break; else { const char_type* __q = __traits_type::find(__lit_zero, __len, __c); if (!__q) break; __digit = __q - __lit_zero; if (__digit > 15) __digit -= 6; if (__result > __smax) __testoverflow = true; else { __result *= __base; __testoverflow |= __result > __max - __digit; __result += __digit; ++__sep_pos; } } if (++__beg != __end) __c = *__beg; else __testeof = true; } if (__found_grouping.size()) { __found_grouping += static_cast(__sep_pos); if (!std::__verify_grouping(__lc->_M_grouping, __lc->_M_grouping_size, __found_grouping)) __err = ios_base::failbit; } if ((!__sep_pos && !__found_zero && !__found_grouping.size()) || __testfail) { __v = 0; __err = ios_base::failbit; } else if (__testoverflow) { if (__negative && __gnu_cxx::__numeric_traits<_ValueT>::__is_signed) __v = __gnu_cxx::__numeric_traits<_ValueT>::__min; else __v = __gnu_cxx::__numeric_traits<_ValueT>::__max; __err = ios_base::failbit; } else __v = __negative ? -__result : __result; if (__testeof) __err |= ios_base::eofbit; return __beg; } template _InIter num_get<_CharT, _InIter>:: do_get(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, bool& __v) const { if (!(__io.flags() & ios_base::boolalpha)) { long __l = -1; __beg = _M_extract_int(__beg, __end, __io, __err, __l); if (__l == 0 || __l == 1) __v = bool(__l); else { __v = true; __err = ios_base::failbit; if (__beg == __end) __err |= ios_base::eofbit; } } else { typedef __numpunct_cache<_CharT> __cache_type; __use_cache<__cache_type> __uc; const locale& __loc = __io._M_getloc(); const __cache_type* __lc = __uc(__loc); bool __testf = true; bool __testt = true; bool __donef = __lc->_M_falsename_size == 0; bool __donet = __lc->_M_truename_size == 0; bool __testeof = false; size_t __n = 0; while (!__donef || !__donet) { if (__beg == __end) { __testeof = true; break; } const char_type __c = *__beg; if (!__donef) __testf = __c == __lc->_M_falsename[__n]; if (!__testf && __donet) break; if (!__donet) __testt = __c == __lc->_M_truename[__n]; if (!__testt && __donef) break; if (!__testt && !__testf) break; ++__n; ++__beg; __donef = !__testf || __n >= __lc->_M_falsename_size; __donet = !__testt || __n >= __lc->_M_truename_size; } if (__testf && __n == __lc->_M_falsename_size && __n) { __v = false; if (__testt && __n == __lc->_M_truename_size) __err = ios_base::failbit; else __err = __testeof ? ios_base::eofbit : ios_base::goodbit; } else if (__testt && __n == __lc->_M_truename_size && __n) { __v = true; __err = __testeof ? ios_base::eofbit : ios_base::goodbit; } else { __v = false; __err = ios_base::failbit; if (__testeof) __err |= ios_base::eofbit; } } return __beg; } template _InIter num_get<_CharT, _InIter>:: do_get(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, float& __v) const { string __xtrc; __xtrc.reserve(32); __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); if (__beg == __end) __err |= ios_base::eofbit; return __beg; } template _InIter num_get<_CharT, _InIter>:: do_get(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, double& __v) const { string __xtrc; __xtrc.reserve(32); __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); if (__beg == __end) __err |= ios_base::eofbit; return __beg; } # 735 "/usr/include/c++/5.0.0/bits/locale_facets.tcc" 3 template _InIter num_get<_CharT, _InIter>:: do_get(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, long double& __v) const { string __xtrc; __xtrc.reserve(32); __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); if (__beg == __end) __err |= ios_base::eofbit; return __beg; } template _InIter num_get<_CharT, _InIter>:: do_get(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, void*& __v) const { typedef ios_base::fmtflags fmtflags; const fmtflags __fmt = __io.flags(); __io.flags((__fmt & ~ios_base::basefield) | ios_base::hex); typedef __gnu_cxx::__conditional_type<(sizeof(void*) <= sizeof(unsigned long)), unsigned long, unsigned long long>::__type _UIntPtrType; _UIntPtrType __ul; __beg = _M_extract_int(__beg, __end, __io, __err, __ul); __io.flags(__fmt); __v = reinterpret_cast(__ul); return __beg; } template void num_put<_CharT, _OutIter>:: _M_pad(_CharT __fill, streamsize __w, ios_base& __io, _CharT* __new, const _CharT* __cs, int& __len) const { __pad<_CharT, char_traits<_CharT> >::_S_pad(__io, __fill, __new, __cs, __w, __len); __len = static_cast(__w); } template int __int_to_char(_CharT* __bufend, _ValueT __v, const _CharT* __lit, ios_base::fmtflags __flags, bool __dec) { _CharT* __buf = __bufend; if (__builtin_expect(__dec, true)) { do { *--__buf = __lit[(__v % 10) + __num_base::_S_odigits]; __v /= 10; } while (__v != 0); } else if ((__flags & ios_base::basefield) == ios_base::oct) { do { *--__buf = __lit[(__v & 0x7) + __num_base::_S_odigits]; __v >>= 3; } while (__v != 0); } else { const bool __uppercase = __flags & ios_base::uppercase; const int __case_offset = __uppercase ? __num_base::_S_oudigits : __num_base::_S_odigits; do { *--__buf = __lit[(__v & 0xf) + __case_offset]; __v >>= 4; } while (__v != 0); } return __bufend - __buf; } template void num_put<_CharT, _OutIter>:: _M_group_int(const char* __grouping, size_t __grouping_size, _CharT __sep, ios_base&, _CharT* __new, _CharT* __cs, int& __len) const { _CharT* __p = std::__add_grouping(__new, __sep, __grouping, __grouping_size, __cs, __cs + __len); __len = __p - __new; } template template _OutIter num_put<_CharT, _OutIter>:: _M_insert_int(_OutIter __s, ios_base& __io, _CharT __fill, _ValueT __v) const { using __gnu_cxx::__add_unsigned; typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; typedef __numpunct_cache<_CharT> __cache_type; __use_cache<__cache_type> __uc; const locale& __loc = __io._M_getloc(); const __cache_type* __lc = __uc(__loc); const _CharT* __lit = __lc->_M_atoms_out; const ios_base::fmtflags __flags = __io.flags(); const int __ilen = 5 * sizeof(_ValueT); _CharT* __cs = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * __ilen)); const ios_base::fmtflags __basefield = __flags & ios_base::basefield; const bool __dec = (__basefield != ios_base::oct && __basefield != ios_base::hex); const __unsigned_type __u = ((__v > 0 || !__dec) ? __unsigned_type(__v) : -__unsigned_type(__v)); int __len = __int_to_char(__cs + __ilen, __u, __lit, __flags, __dec); __cs += __ilen - __len; if (__lc->_M_use_grouping) { _CharT* __cs2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * (__len + 1) * 2)); _M_group_int(__lc->_M_grouping, __lc->_M_grouping_size, __lc->_M_thousands_sep, __io, __cs2 + 2, __cs, __len); __cs = __cs2 + 2; } if (__builtin_expect(__dec, true)) { if (__v >= 0) { if (bool(__flags & ios_base::showpos) && __gnu_cxx::__numeric_traits<_ValueT>::__is_signed) *--__cs = __lit[__num_base::_S_oplus], ++__len; } else *--__cs = __lit[__num_base::_S_ominus], ++__len; } else if (bool(__flags & ios_base::showbase) && __v) { if (__basefield == ios_base::oct) *--__cs = __lit[__num_base::_S_odigits], ++__len; else { const bool __uppercase = __flags & ios_base::uppercase; *--__cs = __lit[__num_base::_S_ox + __uppercase]; *--__cs = __lit[__num_base::_S_odigits]; __len += 2; } } const streamsize __w = __io.width(); if (__w > static_cast(__len)) { _CharT* __cs3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * __w)); _M_pad(__fill, __w, __io, __cs3, __cs, __len); __cs = __cs3; } __io.width(0); return std::__write(__s, __cs, __len); } template void num_put<_CharT, _OutIter>:: _M_group_float(const char* __grouping, size_t __grouping_size, _CharT __sep, const _CharT* __p, _CharT* __new, _CharT* __cs, int& __len) const { const int __declen = __p ? __p - __cs : __len; _CharT* __p2 = std::__add_grouping(__new, __sep, __grouping, __grouping_size, __cs, __cs + __declen); int __newlen = __p2 - __new; if (__p) { char_traits<_CharT>::copy(__p2, __p, __len - __declen); __newlen += __len - __declen; } __len = __newlen; } # 971 "/usr/include/c++/5.0.0/bits/locale_facets.tcc" 3 template template _OutIter num_put<_CharT, _OutIter>:: _M_insert_float(_OutIter __s, ios_base& __io, _CharT __fill, char __mod, _ValueT __v) const { typedef __numpunct_cache<_CharT> __cache_type; __use_cache<__cache_type> __uc; const locale& __loc = __io._M_getloc(); const __cache_type* __lc = __uc(__loc); const streamsize __prec = __io.precision() < 0 ? 6 : __io.precision(); const int __max_digits = __gnu_cxx::__numeric_traits<_ValueT>::__digits10; int __len; char __fbuf[16]; __num_base::_S_format_float(__io, __fbuf, __mod); const bool __use_prec = (__io.flags() & ios_base::floatfield) != ios_base::floatfield; int __cs_size = __max_digits * 3; char* __cs = static_cast(__builtin_alloca(__cs_size)); if (__use_prec) __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, __fbuf, __prec, __v); else __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, __fbuf, __v); if (__len >= __cs_size) { __cs_size = __len + 1; __cs = static_cast(__builtin_alloca(__cs_size)); if (__use_prec) __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, __fbuf, __prec, __v); else __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, __fbuf, __v); } # 1044 "/usr/include/c++/5.0.0/bits/locale_facets.tcc" 3 const ctype<_CharT>& __ctype = use_facet >(__loc); _CharT* __ws = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * __len)); __ctype.widen(__cs, __cs + __len, __ws); _CharT* __wp = 0; const char* __p = char_traits::find(__cs, __len, '.'); if (__p) { __wp = __ws + (__p - __cs); *__wp = __lc->_M_decimal_point; } if (__lc->_M_use_grouping && (__wp || __len < 3 || (__cs[1] <= '9' && __cs[2] <= '9' && __cs[1] >= '0' && __cs[2] >= '0'))) { _CharT* __ws2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * __len * 2)); streamsize __off = 0; if (__cs[0] == '-' || __cs[0] == '+') { __off = 1; __ws2[0] = __ws[0]; __len -= 1; } _M_group_float(__lc->_M_grouping, __lc->_M_grouping_size, __lc->_M_thousands_sep, __wp, __ws2 + __off, __ws + __off, __len); __len += __off; __ws = __ws2; } const streamsize __w = __io.width(); if (__w > static_cast(__len)) { _CharT* __ws3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * __w)); _M_pad(__fill, __w, __io, __ws3, __ws, __len); __ws = __ws3; } __io.width(0); return std::__write(__s, __ws, __len); } template _OutIter num_put<_CharT, _OutIter>:: do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const { const ios_base::fmtflags __flags = __io.flags(); if ((__flags & ios_base::boolalpha) == 0) { const long __l = __v; __s = _M_insert_int(__s, __io, __fill, __l); } else { typedef __numpunct_cache<_CharT> __cache_type; __use_cache<__cache_type> __uc; const locale& __loc = __io._M_getloc(); const __cache_type* __lc = __uc(__loc); const _CharT* __name = __v ? __lc->_M_truename : __lc->_M_falsename; int __len = __v ? __lc->_M_truename_size : __lc->_M_falsename_size; const streamsize __w = __io.width(); if (__w > static_cast(__len)) { const streamsize __plen = __w - __len; _CharT* __ps = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * __plen)); char_traits<_CharT>::assign(__ps, __plen, __fill); __io.width(0); if ((__flags & ios_base::adjustfield) == ios_base::left) { __s = std::__write(__s, __name, __len); __s = std::__write(__s, __ps, __plen); } else { __s = std::__write(__s, __ps, __plen); __s = std::__write(__s, __name, __len); } return __s; } __io.width(0); __s = std::__write(__s, __name, __len); } return __s; } template _OutIter num_put<_CharT, _OutIter>:: do_put(iter_type __s, ios_base& __io, char_type __fill, double __v) const { return _M_insert_float(__s, __io, __fill, char(), __v); } # 1169 "/usr/include/c++/5.0.0/bits/locale_facets.tcc" 3 template _OutIter num_put<_CharT, _OutIter>:: do_put(iter_type __s, ios_base& __io, char_type __fill, long double __v) const { return _M_insert_float(__s, __io, __fill, 'L', __v); } template _OutIter num_put<_CharT, _OutIter>:: do_put(iter_type __s, ios_base& __io, char_type __fill, const void* __v) const { const ios_base::fmtflags __flags = __io.flags(); const ios_base::fmtflags __fmt = ~(ios_base::basefield | ios_base::uppercase); __io.flags((__flags & __fmt) | (ios_base::hex | ios_base::showbase)); typedef __gnu_cxx::__conditional_type<(sizeof(const void*) <= sizeof(unsigned long)), unsigned long, unsigned long long>::__type _UIntPtrType; __s = _M_insert_int(__s, __io, __fill, reinterpret_cast<_UIntPtrType>(__v)); __io.flags(__flags); return __s; } # 1206 "/usr/include/c++/5.0.0/bits/locale_facets.tcc" 3 template void __pad<_CharT, _Traits>::_S_pad(ios_base& __io, _CharT __fill, _CharT* __news, const _CharT* __olds, streamsize __newlen, streamsize __oldlen) { const size_t __plen = static_cast(__newlen - __oldlen); const ios_base::fmtflags __adjust = __io.flags() & ios_base::adjustfield; if (__adjust == ios_base::left) { _Traits::copy(__news, __olds, __oldlen); _Traits::assign(__news + __oldlen, __plen, __fill); return; } size_t __mod = 0; if (__adjust == ios_base::internal) { const locale& __loc = __io._M_getloc(); const ctype<_CharT>& __ctype = use_facet >(__loc); if (__ctype.widen('-') == __olds[0] || __ctype.widen('+') == __olds[0]) { __news[0] = __olds[0]; __mod = 1; ++__news; } else if (__ctype.widen('0') == __olds[0] && __oldlen > 1 && (__ctype.widen('x') == __olds[1] || __ctype.widen('X') == __olds[1])) { __news[0] = __olds[0]; __news[1] = __olds[1]; __mod = 2; __news += 2; } } _Traits::assign(__news, __plen, __fill); _Traits::copy(__news + __plen, __olds + __mod, __oldlen - __mod); } template _CharT* __add_grouping(_CharT* __s, _CharT __sep, const char* __gbeg, size_t __gsize, const _CharT* __first, const _CharT* __last) { size_t __idx = 0; size_t __ctr = 0; while (__last - __first > __gbeg[__idx] && static_cast(__gbeg[__idx]) > 0 && __gbeg[__idx] != __gnu_cxx::__numeric_traits::__max) { __last -= __gbeg[__idx]; __idx < __gsize - 1 ? ++__idx : ++__ctr; } while (__first != __last) *__s++ = *__first++; while (__ctr--) { *__s++ = __sep; for (char __i = __gbeg[__idx]; __i > 0; --__i) *__s++ = *__first++; } while (__idx--) { *__s++ = __sep; for (char __i = __gbeg[__idx]; __i > 0; --__i) *__s++ = *__first++; } return __s; } extern template class numpunct; extern template class numpunct_byname; extern template class num_get; extern template class num_put; extern template class ctype_byname; extern template const ctype& use_facet >(const locale&); extern template const numpunct& use_facet >(const locale&); extern template const num_put& use_facet >(const locale&); extern template const num_get& use_facet >(const locale&); extern template bool has_facet >(const locale&); extern template bool has_facet >(const locale&); extern template bool has_facet >(const locale&); extern template bool has_facet >(const locale&); extern template class numpunct; extern template class numpunct_byname; extern template class num_get; extern template class num_put; extern template class ctype_byname; extern template const ctype& use_facet >(const locale&); extern template const numpunct& use_facet >(const locale&); extern template const num_put& use_facet >(const locale&); extern template const num_get& use_facet >(const locale&); extern template bool has_facet >(const locale&); extern template bool has_facet >(const locale&); extern template bool has_facet >(const locale&); extern template bool has_facet >(const locale&); } # 2652 "/usr/include/c++/5.0.0/bits/locale_facets.h" 2 3 # 38 "/usr/include/c++/5.0.0/bits/basic_ios.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template inline const _Facet& __check_facet(const _Facet* __f) { if (!__f) __throw_bad_cast(); return *__f; } # 66 "/usr/include/c++/5.0.0/bits/basic_ios.h" 3 template class basic_ios : public ios_base { public: typedef _CharT char_type; typedef typename _Traits::int_type int_type; typedef typename _Traits::pos_type pos_type; typedef typename _Traits::off_type off_type; typedef _Traits traits_type; typedef ctype<_CharT> __ctype_type; typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > __num_put_type; typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > __num_get_type; protected: basic_ostream<_CharT, _Traits>* _M_tie; mutable char_type _M_fill; mutable bool _M_fill_init; basic_streambuf<_CharT, _Traits>* _M_streambuf; const __ctype_type* _M_ctype; const __num_put_type* _M_num_put; const __num_get_type* _M_num_get; public: # 120 "/usr/include/c++/5.0.0/bits/basic_ios.h" 3 operator void*() const { return this->fail() ? 0 : const_cast(this); } bool operator!() const { return this->fail(); } # 136 "/usr/include/c++/5.0.0/bits/basic_ios.h" 3 iostate rdstate() const { return _M_streambuf_state; } # 147 "/usr/include/c++/5.0.0/bits/basic_ios.h" 3 void clear(iostate __state = goodbit); void setstate(iostate __state) { this->clear(this->rdstate() | __state); } void _M_setstate(iostate __state) { _M_streambuf_state |= __state; if (this->exceptions() & __state) throw; } bool good() const { return this->rdstate() == 0; } bool eof() const { return (this->rdstate() & eofbit) != 0; } # 200 "/usr/include/c++/5.0.0/bits/basic_ios.h" 3 bool fail() const { return (this->rdstate() & (badbit | failbit)) != 0; } bool bad() const { return (this->rdstate() & badbit) != 0; } # 221 "/usr/include/c++/5.0.0/bits/basic_ios.h" 3 iostate exceptions() const { return _M_exception; } # 256 "/usr/include/c++/5.0.0/bits/basic_ios.h" 3 void exceptions(iostate __except) { _M_exception = __except; this->clear(_M_streambuf_state); } explicit basic_ios(basic_streambuf<_CharT, _Traits>* __sb) : ios_base(), _M_tie(0), _M_fill(), _M_fill_init(false), _M_streambuf(0), _M_ctype(0), _M_num_put(0), _M_num_get(0) { this->init(__sb); } virtual ~basic_ios() { } # 294 "/usr/include/c++/5.0.0/bits/basic_ios.h" 3 basic_ostream<_CharT, _Traits>* tie() const { return _M_tie; } # 306 "/usr/include/c++/5.0.0/bits/basic_ios.h" 3 basic_ostream<_CharT, _Traits>* tie(basic_ostream<_CharT, _Traits>* __tiestr) { basic_ostream<_CharT, _Traits>* __old = _M_tie; _M_tie = __tiestr; return __old; } basic_streambuf<_CharT, _Traits>* rdbuf() const { return _M_streambuf; } # 346 "/usr/include/c++/5.0.0/bits/basic_ios.h" 3 basic_streambuf<_CharT, _Traits>* rdbuf(basic_streambuf<_CharT, _Traits>* __sb); # 360 "/usr/include/c++/5.0.0/bits/basic_ios.h" 3 basic_ios& copyfmt(const basic_ios& __rhs); char_type fill() const { if (!_M_fill_init) { _M_fill = this->widen(' '); _M_fill_init = true; } return _M_fill; } # 389 "/usr/include/c++/5.0.0/bits/basic_ios.h" 3 char_type fill(char_type __ch) { char_type __old = this->fill(); _M_fill = __ch; return __old; } # 409 "/usr/include/c++/5.0.0/bits/basic_ios.h" 3 locale imbue(const locale& __loc); # 429 "/usr/include/c++/5.0.0/bits/basic_ios.h" 3 char narrow(char_type __c, char __dfault) const { return __check_facet(_M_ctype).narrow(__c, __dfault); } # 448 "/usr/include/c++/5.0.0/bits/basic_ios.h" 3 char_type widen(char __c) const { return __check_facet(_M_ctype).widen(__c); } protected: basic_ios() : ios_base(), _M_tie(0), _M_fill(char_type()), _M_fill_init(false), _M_streambuf(0), _M_ctype(0), _M_num_put(0), _M_num_get(0) { } void init(basic_streambuf<_CharT, _Traits>* __sb); # 509 "/usr/include/c++/5.0.0/bits/basic_ios.h" 3 void _M_cache_locale(const locale& __loc); }; } # 1 "/usr/include/c++/5.0.0/bits/basic_ios.tcc" 1 3 # 33 "/usr/include/c++/5.0.0/bits/basic_ios.tcc" 3 # 34 "/usr/include/c++/5.0.0/bits/basic_ios.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template void basic_ios<_CharT, _Traits>::clear(iostate __state) { if (this->rdbuf()) _M_streambuf_state = __state; else _M_streambuf_state = __state | badbit; if (this->exceptions() & this->rdstate()) __throw_ios_failure(("basic_ios::clear")); } template basic_streambuf<_CharT, _Traits>* basic_ios<_CharT, _Traits>::rdbuf(basic_streambuf<_CharT, _Traits>* __sb) { basic_streambuf<_CharT, _Traits>* __old = _M_streambuf; _M_streambuf = __sb; this->clear(); return __old; } template basic_ios<_CharT, _Traits>& basic_ios<_CharT, _Traits>::copyfmt(const basic_ios& __rhs) { if (this != &__rhs) { _Words* __words = (__rhs._M_word_size <= _S_local_word_size) ? _M_local_word : new _Words[__rhs._M_word_size]; _Callback_list* __cb = __rhs._M_callbacks; if (__cb) __cb->_M_add_reference(); _M_call_callbacks(erase_event); if (_M_word != _M_local_word) { delete [] _M_word; _M_word = 0; } _M_dispose_callbacks(); _M_callbacks = __cb; for (int __i = 0; __i < __rhs._M_word_size; ++__i) __words[__i] = __rhs._M_word[__i]; _M_word = __words; _M_word_size = __rhs._M_word_size; this->flags(__rhs.flags()); this->width(__rhs.width()); this->precision(__rhs.precision()); this->tie(__rhs.tie()); this->fill(__rhs.fill()); _M_ios_locale = __rhs.getloc(); _M_cache_locale(_M_ios_locale); _M_call_callbacks(copyfmt_event); this->exceptions(__rhs.exceptions()); } return *this; } template locale basic_ios<_CharT, _Traits>::imbue(const locale& __loc) { locale __old(this->getloc()); ios_base::imbue(__loc); _M_cache_locale(__loc); if (this->rdbuf() != 0) this->rdbuf()->pubimbue(__loc); return __old; } template void basic_ios<_CharT, _Traits>::init(basic_streambuf<_CharT, _Traits>* __sb) { ios_base::_M_init(); _M_cache_locale(_M_ios_locale); # 146 "/usr/include/c++/5.0.0/bits/basic_ios.tcc" 3 _M_fill = _CharT(); _M_fill_init = false; _M_tie = 0; _M_exception = goodbit; _M_streambuf = __sb; _M_streambuf_state = __sb ? goodbit : badbit; } template void basic_ios<_CharT, _Traits>::_M_cache_locale(const locale& __loc) { if (__builtin_expect(has_facet<__ctype_type>(__loc), true)) _M_ctype = &use_facet<__ctype_type>(__loc); else _M_ctype = 0; if (__builtin_expect(has_facet<__num_put_type>(__loc), true)) _M_num_put = &use_facet<__num_put_type>(__loc); else _M_num_put = 0; if (__builtin_expect(has_facet<__num_get_type>(__loc), true)) _M_num_get = &use_facet<__num_get_type>(__loc); else _M_num_get = 0; } extern template class basic_ios; extern template class basic_ios; } # 517 "/usr/include/c++/5.0.0/bits/basic_ios.h" 2 3 # 45 "/usr/include/c++/5.0.0/ios" 2 3 # 39 "/usr/include/c++/5.0.0/ostream" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 57 "/usr/include/c++/5.0.0/ostream" 3 template class basic_ostream : virtual public basic_ios<_CharT, _Traits> { public: typedef _CharT char_type; typedef typename _Traits::int_type int_type; typedef typename _Traits::pos_type pos_type; typedef typename _Traits::off_type off_type; typedef _Traits traits_type; typedef basic_streambuf<_CharT, _Traits> __streambuf_type; typedef basic_ios<_CharT, _Traits> __ios_type; typedef basic_ostream<_CharT, _Traits> __ostream_type; typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > __num_put_type; typedef ctype<_CharT> __ctype_type; # 83 "/usr/include/c++/5.0.0/ostream" 3 explicit basic_ostream(__streambuf_type* __sb) { this->init(__sb); } virtual ~basic_ostream() { } class sentry; friend class sentry; # 107 "/usr/include/c++/5.0.0/ostream" 3 __ostream_type& operator<<(__ostream_type& (*__pf)(__ostream_type&)) { return __pf(*this); } __ostream_type& operator<<(__ios_type& (*__pf)(__ios_type&)) { __pf(*this); return *this; } __ostream_type& operator<<(ios_base& (*__pf) (ios_base&)) { __pf(*this); return *this; } # 165 "/usr/include/c++/5.0.0/ostream" 3 __ostream_type& operator<<(long __n) { return _M_insert(__n); } __ostream_type& operator<<(unsigned long __n) { return _M_insert(__n); } __ostream_type& operator<<(bool __n) { return _M_insert(__n); } __ostream_type& operator<<(short __n); __ostream_type& operator<<(unsigned short __n) { return _M_insert(static_cast(__n)); } __ostream_type& operator<<(int __n); __ostream_type& operator<<(unsigned int __n) { return _M_insert(static_cast(__n)); } __ostream_type& operator<<(long long __n) { return _M_insert(__n); } __ostream_type& operator<<(unsigned long long __n) { return _M_insert(__n); } # 219 "/usr/include/c++/5.0.0/ostream" 3 __ostream_type& operator<<(double __f) { return _M_insert(__f); } __ostream_type& operator<<(float __f) { return _M_insert(static_cast(__f)); } __ostream_type& operator<<(long double __f) { return _M_insert(__f); } # 244 "/usr/include/c++/5.0.0/ostream" 3 __ostream_type& operator<<(const void* __p) { return _M_insert(__p); } # 269 "/usr/include/c++/5.0.0/ostream" 3 __ostream_type& operator<<(__streambuf_type* __sb); # 302 "/usr/include/c++/5.0.0/ostream" 3 __ostream_type& put(char_type __c); void _M_write(const char_type* __s, streamsize __n) { const streamsize __put = this->rdbuf()->sputn(__s, __n); if (__put != __n) this->setstate(ios_base::badbit); } # 334 "/usr/include/c++/5.0.0/ostream" 3 __ostream_type& write(const char_type* __s, streamsize __n); # 347 "/usr/include/c++/5.0.0/ostream" 3 __ostream_type& flush(); # 357 "/usr/include/c++/5.0.0/ostream" 3 pos_type tellp(); # 368 "/usr/include/c++/5.0.0/ostream" 3 __ostream_type& seekp(pos_type); # 380 "/usr/include/c++/5.0.0/ostream" 3 __ostream_type& seekp(off_type, ios_base::seekdir); protected: basic_ostream() { this->init(0); } # 413 "/usr/include/c++/5.0.0/ostream" 3 template __ostream_type& _M_insert(_ValueT __v); }; # 425 "/usr/include/c++/5.0.0/ostream" 3 template class basic_ostream<_CharT, _Traits>::sentry { bool _M_ok; basic_ostream<_CharT, _Traits>& _M_os; public: # 444 "/usr/include/c++/5.0.0/ostream" 3 explicit sentry(basic_ostream<_CharT, _Traits>& __os); # 454 "/usr/include/c++/5.0.0/ostream" 3 ~sentry() { if (bool(_M_os.flags() & ios_base::unitbuf) && !uncaught_exception()) { if (_M_os.rdbuf() && _M_os.rdbuf()->pubsync() == -1) _M_os.setstate(ios_base::badbit); } } # 475 "/usr/include/c++/5.0.0/ostream" 3 operator bool() const { return _M_ok; } }; # 495 "/usr/include/c++/5.0.0/ostream" 3 template inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) { return __ostream_insert(__out, &__c, 1); } template inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) { return (__out << __out.widen(__c)); } template inline basic_ostream& operator<<(basic_ostream& __out, char __c) { return __ostream_insert(__out, &__c, 1); } template inline basic_ostream& operator<<(basic_ostream& __out, signed char __c) { return (__out << static_cast(__c)); } template inline basic_ostream& operator<<(basic_ostream& __out, unsigned char __c) { return (__out << static_cast(__c)); } # 537 "/usr/include/c++/5.0.0/ostream" 3 template inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) { if (!__s) __out.setstate(ios_base::badbit); else __ostream_insert(__out, __s, static_cast(_Traits::length(__s))); return __out; } template basic_ostream<_CharT, _Traits> & operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s); template inline basic_ostream& operator<<(basic_ostream& __out, const char* __s) { if (!__s) __out.setstate(ios_base::badbit); else __ostream_insert(__out, __s, static_cast(_Traits::length(__s))); return __out; } template inline basic_ostream& operator<<(basic_ostream& __out, const signed char* __s) { return (__out << reinterpret_cast(__s)); } template inline basic_ostream & operator<<(basic_ostream& __out, const unsigned char* __s) { return (__out << reinterpret_cast(__s)); } # 588 "/usr/include/c++/5.0.0/ostream" 3 template inline basic_ostream<_CharT, _Traits>& endl(basic_ostream<_CharT, _Traits>& __os) { return flush(__os.put(__os.widen('\n'))); } # 600 "/usr/include/c++/5.0.0/ostream" 3 template inline basic_ostream<_CharT, _Traits>& ends(basic_ostream<_CharT, _Traits>& __os) { return __os.put(_CharT()); } template inline basic_ostream<_CharT, _Traits>& flush(basic_ostream<_CharT, _Traits>& __os) { return __os.flush(); } # 632 "/usr/include/c++/5.0.0/ostream" 3 } # 1 "/usr/include/c++/5.0.0/bits/ostream.tcc" 1 3 # 37 "/usr/include/c++/5.0.0/bits/ostream.tcc" 3 # 38 "/usr/include/c++/5.0.0/bits/ostream.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template basic_ostream<_CharT, _Traits>::sentry:: sentry(basic_ostream<_CharT, _Traits>& __os) : _M_ok(false), _M_os(__os) { if (__os.tie() && __os.good()) __os.tie()->flush(); if (__os.good()) _M_ok = true; else __os.setstate(ios_base::failbit); } template template basic_ostream<_CharT, _Traits>& basic_ostream<_CharT, _Traits>:: _M_insert(_ValueT __v) { sentry __cerb(*this); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { const __num_put_type& __np = __check_facet(this->_M_num_put); if (__np.put(*this, *this, this->fill(), __v).failed()) __err |= ios_base::badbit; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return *this; } template basic_ostream<_CharT, _Traits>& basic_ostream<_CharT, _Traits>:: operator<<(short __n) { const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; if (__fmt == ios_base::oct || __fmt == ios_base::hex) return _M_insert(static_cast(static_cast(__n))); else return _M_insert(static_cast(__n)); } template basic_ostream<_CharT, _Traits>& basic_ostream<_CharT, _Traits>:: operator<<(int __n) { const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; if (__fmt == ios_base::oct || __fmt == ios_base::hex) return _M_insert(static_cast(static_cast(__n))); else return _M_insert(static_cast(__n)); } template basic_ostream<_CharT, _Traits>& basic_ostream<_CharT, _Traits>:: operator<<(__streambuf_type* __sbin) { ios_base::iostate __err = ios_base::goodbit; sentry __cerb(*this); if (__cerb && __sbin) { try { if (!__copy_streambufs(__sbin, this->rdbuf())) __err |= ios_base::failbit; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::failbit); } } else if (!__sbin) __err |= ios_base::badbit; if (__err) this->setstate(__err); return *this; } template basic_ostream<_CharT, _Traits>& basic_ostream<_CharT, _Traits>:: put(char_type __c) { sentry __cerb(*this); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { const int_type __put = this->rdbuf()->sputc(__c); if (traits_type::eq_int_type(__put, traits_type::eof())) __err |= ios_base::badbit; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return *this; } template basic_ostream<_CharT, _Traits>& basic_ostream<_CharT, _Traits>:: write(const _CharT* __s, streamsize __n) { sentry __cerb(*this); if (__cerb) { try { _M_write(__s, __n); } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } } return *this; } template basic_ostream<_CharT, _Traits>& basic_ostream<_CharT, _Traits>:: flush() { ios_base::iostate __err = ios_base::goodbit; try { if (this->rdbuf() && this->rdbuf()->pubsync() == -1) __err |= ios_base::badbit; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); return *this; } template typename basic_ostream<_CharT, _Traits>::pos_type basic_ostream<_CharT, _Traits>:: tellp() { pos_type __ret = pos_type(-1); try { if (!this->fail()) __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, ios_base::out); } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } return __ret; } template basic_ostream<_CharT, _Traits>& basic_ostream<_CharT, _Traits>:: seekp(pos_type __pos) { ios_base::iostate __err = ios_base::goodbit; try { if (!this->fail()) { const pos_type __p = this->rdbuf()->pubseekpos(__pos, ios_base::out); if (__p == pos_type(off_type(-1))) __err |= ios_base::failbit; } } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); return *this; } template basic_ostream<_CharT, _Traits>& basic_ostream<_CharT, _Traits>:: seekp(off_type __off, ios_base::seekdir __dir) { ios_base::iostate __err = ios_base::goodbit; try { if (!this->fail()) { const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, ios_base::out); if (__p == pos_type(off_type(-1))) __err |= ios_base::failbit; } } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); return *this; } template basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s) { if (!__s) __out.setstate(ios_base::badbit); else { const size_t __clen = char_traits::length(__s); try { struct __ptr_guard { _CharT *__p; __ptr_guard (_CharT *__ip): __p(__ip) { } ~__ptr_guard() { delete[] __p; } _CharT* __get() { return __p; } } __pg (new _CharT[__clen]); _CharT *__ws = __pg.__get(); for (size_t __i = 0; __i < __clen; ++__i) __ws[__i] = __out.widen(__s[__i]); __ostream_insert(__out, __ws, __clen); } catch(__cxxabiv1::__forced_unwind&) { __out._M_setstate(ios_base::badbit); throw; } catch(...) { __out._M_setstate(ios_base::badbit); } } return __out; } extern template class basic_ostream; extern template ostream& endl(ostream&); extern template ostream& ends(ostream&); extern template ostream& flush(ostream&); extern template ostream& operator<<(ostream&, char); extern template ostream& operator<<(ostream&, unsigned char); extern template ostream& operator<<(ostream&, signed char); extern template ostream& operator<<(ostream&, const char*); extern template ostream& operator<<(ostream&, const unsigned char*); extern template ostream& operator<<(ostream&, const signed char*); extern template ostream& ostream::_M_insert(long); extern template ostream& ostream::_M_insert(unsigned long); extern template ostream& ostream::_M_insert(bool); extern template ostream& ostream::_M_insert(long long); extern template ostream& ostream::_M_insert(unsigned long long); extern template ostream& ostream::_M_insert(double); extern template ostream& ostream::_M_insert(long double); extern template ostream& ostream::_M_insert(const void*); extern template class basic_ostream; extern template wostream& endl(wostream&); extern template wostream& ends(wostream&); extern template wostream& flush(wostream&); extern template wostream& operator<<(wostream&, wchar_t); extern template wostream& operator<<(wostream&, char); extern template wostream& operator<<(wostream&, const wchar_t*); extern template wostream& operator<<(wostream&, const char*); extern template wostream& wostream::_M_insert(long); extern template wostream& wostream::_M_insert(unsigned long); extern template wostream& wostream::_M_insert(bool); extern template wostream& wostream::_M_insert(long long); extern template wostream& wostream::_M_insert(unsigned long long); extern template wostream& wostream::_M_insert(double); extern template wostream& wostream::_M_insert(long double); extern template wostream& wostream::_M_insert(const void*); } # 636 "/usr/include/c++/5.0.0/ostream" 2 3 # 65 "/usr/include/c++/5.0.0/iterator" 2 3 # 1 "/usr/include/c++/5.0.0/istream" 1 3 # 36 "/usr/include/c++/5.0.0/istream" 3 # 37 "/usr/include/c++/5.0.0/istream" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 57 "/usr/include/c++/5.0.0/istream" 3 template class basic_istream : virtual public basic_ios<_CharT, _Traits> { public: typedef _CharT char_type; typedef typename _Traits::int_type int_type; typedef typename _Traits::pos_type pos_type; typedef typename _Traits::off_type off_type; typedef _Traits traits_type; typedef basic_streambuf<_CharT, _Traits> __streambuf_type; typedef basic_ios<_CharT, _Traits> __ios_type; typedef basic_istream<_CharT, _Traits> __istream_type; typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > __num_get_type; typedef ctype<_CharT> __ctype_type; protected: streamsize _M_gcount; public: explicit basic_istream(__streambuf_type* __sb) : _M_gcount(streamsize(0)) { this->init(__sb); } virtual ~basic_istream() { _M_gcount = streamsize(0); } class sentry; friend class sentry; # 119 "/usr/include/c++/5.0.0/istream" 3 __istream_type& operator>>(__istream_type& (*__pf)(__istream_type&)) { return __pf(*this); } __istream_type& operator>>(__ios_type& (*__pf)(__ios_type&)) { __pf(*this); return *this; } __istream_type& operator>>(ios_base& (*__pf)(ios_base&)) { __pf(*this); return *this; } # 167 "/usr/include/c++/5.0.0/istream" 3 __istream_type& operator>>(bool& __n) { return _M_extract(__n); } __istream_type& operator>>(short& __n); __istream_type& operator>>(unsigned short& __n) { return _M_extract(__n); } __istream_type& operator>>(int& __n); __istream_type& operator>>(unsigned int& __n) { return _M_extract(__n); } __istream_type& operator>>(long& __n) { return _M_extract(__n); } __istream_type& operator>>(unsigned long& __n) { return _M_extract(__n); } __istream_type& operator>>(long long& __n) { return _M_extract(__n); } __istream_type& operator>>(unsigned long long& __n) { return _M_extract(__n); } # 213 "/usr/include/c++/5.0.0/istream" 3 __istream_type& operator>>(float& __f) { return _M_extract(__f); } __istream_type& operator>>(double& __f) { return _M_extract(__f); } __istream_type& operator>>(long double& __f) { return _M_extract(__f); } # 234 "/usr/include/c++/5.0.0/istream" 3 __istream_type& operator>>(void*& __p) { return _M_extract(__p); } # 258 "/usr/include/c++/5.0.0/istream" 3 __istream_type& operator>>(__streambuf_type* __sb); # 268 "/usr/include/c++/5.0.0/istream" 3 streamsize gcount() const { return _M_gcount; } # 301 "/usr/include/c++/5.0.0/istream" 3 int_type get(); # 315 "/usr/include/c++/5.0.0/istream" 3 __istream_type& get(char_type& __c); # 342 "/usr/include/c++/5.0.0/istream" 3 __istream_type& get(char_type* __s, streamsize __n, char_type __delim); # 353 "/usr/include/c++/5.0.0/istream" 3 __istream_type& get(char_type* __s, streamsize __n) { return this->get(__s, __n, this->widen('\n')); } # 376 "/usr/include/c++/5.0.0/istream" 3 __istream_type& get(__streambuf_type& __sb, char_type __delim); # 386 "/usr/include/c++/5.0.0/istream" 3 __istream_type& get(__streambuf_type& __sb) { return this->get(__sb, this->widen('\n')); } # 415 "/usr/include/c++/5.0.0/istream" 3 __istream_type& getline(char_type* __s, streamsize __n, char_type __delim); # 426 "/usr/include/c++/5.0.0/istream" 3 __istream_type& getline(char_type* __s, streamsize __n) { return this->getline(__s, __n, this->widen('\n')); } # 450 "/usr/include/c++/5.0.0/istream" 3 __istream_type& ignore(streamsize __n, int_type __delim); __istream_type& ignore(streamsize __n); __istream_type& ignore(); # 467 "/usr/include/c++/5.0.0/istream" 3 int_type peek(); # 485 "/usr/include/c++/5.0.0/istream" 3 __istream_type& read(char_type* __s, streamsize __n); # 504 "/usr/include/c++/5.0.0/istream" 3 streamsize readsome(char_type* __s, streamsize __n); # 521 "/usr/include/c++/5.0.0/istream" 3 __istream_type& putback(char_type __c); # 537 "/usr/include/c++/5.0.0/istream" 3 __istream_type& unget(); # 555 "/usr/include/c++/5.0.0/istream" 3 int sync(); # 570 "/usr/include/c++/5.0.0/istream" 3 pos_type tellg(); # 585 "/usr/include/c++/5.0.0/istream" 3 __istream_type& seekg(pos_type); # 601 "/usr/include/c++/5.0.0/istream" 3 __istream_type& seekg(off_type, ios_base::seekdir); protected: basic_istream() : _M_gcount(streamsize(0)) { this->init(0); } # 639 "/usr/include/c++/5.0.0/istream" 3 template __istream_type& _M_extract(_ValueT& __v); }; template<> basic_istream& basic_istream:: getline(char_type* __s, streamsize __n, char_type __delim); template<> basic_istream& basic_istream:: ignore(streamsize __n); template<> basic_istream& basic_istream:: ignore(streamsize __n, int_type __delim); template<> basic_istream& basic_istream:: getline(char_type* __s, streamsize __n, char_type __delim); template<> basic_istream& basic_istream:: ignore(streamsize __n); template<> basic_istream& basic_istream:: ignore(streamsize __n, int_type __delim); # 685 "/usr/include/c++/5.0.0/istream" 3 template class basic_istream<_CharT, _Traits>::sentry { bool _M_ok; public: typedef _Traits traits_type; typedef basic_streambuf<_CharT, _Traits> __streambuf_type; typedef basic_istream<_CharT, _Traits> __istream_type; typedef typename __istream_type::__ctype_type __ctype_type; typedef typename _Traits::int_type __int_type; # 721 "/usr/include/c++/5.0.0/istream" 3 explicit sentry(basic_istream<_CharT, _Traits>& __is, bool __noskipws = false); # 734 "/usr/include/c++/5.0.0/istream" 3 operator bool() const { return _M_ok; } }; # 750 "/usr/include/c++/5.0.0/istream" 3 template basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c); template inline basic_istream& operator>>(basic_istream& __in, unsigned char& __c) { return (__in >> reinterpret_cast(__c)); } template inline basic_istream& operator>>(basic_istream& __in, signed char& __c) { return (__in >> reinterpret_cast(__c)); } # 792 "/usr/include/c++/5.0.0/istream" 3 template basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s); template<> basic_istream& operator>>(basic_istream& __in, char* __s); template inline basic_istream& operator>>(basic_istream& __in, unsigned char* __s) { return (__in >> reinterpret_cast(__s)); } template inline basic_istream& operator>>(basic_istream& __in, signed char* __s) { return (__in >> reinterpret_cast(__s)); } # 823 "/usr/include/c++/5.0.0/istream" 3 template class basic_iostream : public basic_istream<_CharT, _Traits>, public basic_ostream<_CharT, _Traits> { public: typedef _CharT char_type; typedef typename _Traits::int_type int_type; typedef typename _Traits::pos_type pos_type; typedef typename _Traits::off_type off_type; typedef _Traits traits_type; typedef basic_istream<_CharT, _Traits> __istream_type; typedef basic_ostream<_CharT, _Traits> __ostream_type; explicit basic_iostream(basic_streambuf<_CharT, _Traits>* __sb) : __istream_type(__sb), __ostream_type(__sb) { } virtual ~basic_iostream() { } protected: basic_iostream() : __istream_type(), __ostream_type() { } # 884 "/usr/include/c++/5.0.0/istream" 3 }; # 906 "/usr/include/c++/5.0.0/istream" 3 template basic_istream<_CharT, _Traits>& ws(basic_istream<_CharT, _Traits>& __is); # 928 "/usr/include/c++/5.0.0/istream" 3 } # 1 "/usr/include/c++/5.0.0/bits/istream.tcc" 1 3 # 37 "/usr/include/c++/5.0.0/bits/istream.tcc" 3 # 38 "/usr/include/c++/5.0.0/bits/istream.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template basic_istream<_CharT, _Traits>::sentry:: sentry(basic_istream<_CharT, _Traits>& __in, bool __noskip) : _M_ok(false) { ios_base::iostate __err = ios_base::goodbit; if (__in.good()) { if (__in.tie()) __in.tie()->flush(); if (!__noskip && bool(__in.flags() & ios_base::skipws)) { const __int_type __eof = traits_type::eof(); __streambuf_type* __sb = __in.rdbuf(); __int_type __c = __sb->sgetc(); const __ctype_type& __ct = __check_facet(__in._M_ctype); while (!traits_type::eq_int_type(__c, __eof) && __ct.is(ctype_base::space, traits_type::to_char_type(__c))) __c = __sb->snextc(); if (traits_type::eq_int_type(__c, __eof)) __err |= ios_base::eofbit; } } if (__in.good() && __err == ios_base::goodbit) _M_ok = true; else { __err |= ios_base::failbit; __in.setstate(__err); } } template template basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: _M_extract(_ValueT& __v) { sentry __cerb(*this, false); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { const __num_get_type& __ng = __check_facet(this->_M_num_get); __ng.get(*this, 0, *this, __err, __v); } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return *this; } template basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: operator>>(short& __n) { sentry __cerb(*this, false); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { long __l; const __num_get_type& __ng = __check_facet(this->_M_num_get); __ng.get(*this, 0, *this, __err, __l); if (__l < __gnu_cxx::__numeric_traits::__min) { __err |= ios_base::failbit; __n = __gnu_cxx::__numeric_traits::__min; } else if (__l > __gnu_cxx::__numeric_traits::__max) { __err |= ios_base::failbit; __n = __gnu_cxx::__numeric_traits::__max; } else __n = short(__l); } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return *this; } template basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: operator>>(int& __n) { sentry __cerb(*this, false); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { long __l; const __num_get_type& __ng = __check_facet(this->_M_num_get); __ng.get(*this, 0, *this, __err, __l); if (__l < __gnu_cxx::__numeric_traits::__min) { __err |= ios_base::failbit; __n = __gnu_cxx::__numeric_traits::__min; } else if (__l > __gnu_cxx::__numeric_traits::__max) { __err |= ios_base::failbit; __n = __gnu_cxx::__numeric_traits::__max; } else __n = int(__l); } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return *this; } template basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: operator>>(__streambuf_type* __sbout) { ios_base::iostate __err = ios_base::goodbit; sentry __cerb(*this, false); if (__cerb && __sbout) { try { bool __ineof; if (!__copy_streambufs_eof(this->rdbuf(), __sbout, __ineof)) __err |= ios_base::failbit; if (__ineof) __err |= ios_base::eofbit; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::failbit); throw; } catch(...) { this->_M_setstate(ios_base::failbit); } } else if (!__sbout) __err |= ios_base::failbit; if (__err) this->setstate(__err); return *this; } template typename basic_istream<_CharT, _Traits>::int_type basic_istream<_CharT, _Traits>:: get(void) { const int_type __eof = traits_type::eof(); int_type __c = __eof; _M_gcount = 0; ios_base::iostate __err = ios_base::goodbit; sentry __cerb(*this, true); if (__cerb) { try { __c = this->rdbuf()->sbumpc(); if (!traits_type::eq_int_type(__c, __eof)) _M_gcount = 1; else __err |= ios_base::eofbit; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } } if (!_M_gcount) __err |= ios_base::failbit; if (__err) this->setstate(__err); return __c; } template basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: get(char_type& __c) { _M_gcount = 0; ios_base::iostate __err = ios_base::goodbit; sentry __cerb(*this, true); if (__cerb) { try { const int_type __cb = this->rdbuf()->sbumpc(); if (!traits_type::eq_int_type(__cb, traits_type::eof())) { _M_gcount = 1; __c = traits_type::to_char_type(__cb); } else __err |= ios_base::eofbit; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } } if (!_M_gcount) __err |= ios_base::failbit; if (__err) this->setstate(__err); return *this; } template basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: get(char_type* __s, streamsize __n, char_type __delim) { _M_gcount = 0; ios_base::iostate __err = ios_base::goodbit; sentry __cerb(*this, true); if (__cerb) { try { const int_type __idelim = traits_type::to_int_type(__delim); const int_type __eof = traits_type::eof(); __streambuf_type* __sb = this->rdbuf(); int_type __c = __sb->sgetc(); while (_M_gcount + 1 < __n && !traits_type::eq_int_type(__c, __eof) && !traits_type::eq_int_type(__c, __idelim)) { *__s++ = traits_type::to_char_type(__c); ++_M_gcount; __c = __sb->snextc(); } if (traits_type::eq_int_type(__c, __eof)) __err |= ios_base::eofbit; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } } if (__n > 0) *__s = char_type(); if (!_M_gcount) __err |= ios_base::failbit; if (__err) this->setstate(__err); return *this; } template basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: get(__streambuf_type& __sb, char_type __delim) { _M_gcount = 0; ios_base::iostate __err = ios_base::goodbit; sentry __cerb(*this, true); if (__cerb) { try { const int_type __idelim = traits_type::to_int_type(__delim); const int_type __eof = traits_type::eof(); __streambuf_type* __this_sb = this->rdbuf(); int_type __c = __this_sb->sgetc(); char_type __c2 = traits_type::to_char_type(__c); while (!traits_type::eq_int_type(__c, __eof) && !traits_type::eq_int_type(__c, __idelim) && !traits_type::eq_int_type(__sb.sputc(__c2), __eof)) { ++_M_gcount; __c = __this_sb->snextc(); __c2 = traits_type::to_char_type(__c); } if (traits_type::eq_int_type(__c, __eof)) __err |= ios_base::eofbit; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } } if (!_M_gcount) __err |= ios_base::failbit; if (__err) this->setstate(__err); return *this; } template basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: getline(char_type* __s, streamsize __n, char_type __delim) { _M_gcount = 0; ios_base::iostate __err = ios_base::goodbit; sentry __cerb(*this, true); if (__cerb) { try { const int_type __idelim = traits_type::to_int_type(__delim); const int_type __eof = traits_type::eof(); __streambuf_type* __sb = this->rdbuf(); int_type __c = __sb->sgetc(); while (_M_gcount + 1 < __n && !traits_type::eq_int_type(__c, __eof) && !traits_type::eq_int_type(__c, __idelim)) { *__s++ = traits_type::to_char_type(__c); __c = __sb->snextc(); ++_M_gcount; } if (traits_type::eq_int_type(__c, __eof)) __err |= ios_base::eofbit; else { if (traits_type::eq_int_type(__c, __idelim)) { __sb->sbumpc(); ++_M_gcount; } else __err |= ios_base::failbit; } } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } } if (__n > 0) *__s = char_type(); if (!_M_gcount) __err |= ios_base::failbit; if (__err) this->setstate(__err); return *this; } template basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: ignore(void) { _M_gcount = 0; sentry __cerb(*this, true); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { const int_type __eof = traits_type::eof(); __streambuf_type* __sb = this->rdbuf(); if (traits_type::eq_int_type(__sb->sbumpc(), __eof)) __err |= ios_base::eofbit; else _M_gcount = 1; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return *this; } template basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: ignore(streamsize __n) { _M_gcount = 0; sentry __cerb(*this, true); if (__cerb && __n > 0) { ios_base::iostate __err = ios_base::goodbit; try { const int_type __eof = traits_type::eof(); __streambuf_type* __sb = this->rdbuf(); int_type __c = __sb->sgetc(); # 513 "/usr/include/c++/5.0.0/bits/istream.tcc" 3 bool __large_ignore = false; while (true) { while (_M_gcount < __n && !traits_type::eq_int_type(__c, __eof)) { ++_M_gcount; __c = __sb->snextc(); } if (__n == __gnu_cxx::__numeric_traits::__max && !traits_type::eq_int_type(__c, __eof)) { _M_gcount = __gnu_cxx::__numeric_traits::__min; __large_ignore = true; } else break; } if (__large_ignore) _M_gcount = __gnu_cxx::__numeric_traits::__max; if (traits_type::eq_int_type(__c, __eof)) __err |= ios_base::eofbit; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return *this; } template basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: ignore(streamsize __n, int_type __delim) { _M_gcount = 0; sentry __cerb(*this, true); if (__cerb && __n > 0) { ios_base::iostate __err = ios_base::goodbit; try { const int_type __eof = traits_type::eof(); __streambuf_type* __sb = this->rdbuf(); int_type __c = __sb->sgetc(); bool __large_ignore = false; while (true) { while (_M_gcount < __n && !traits_type::eq_int_type(__c, __eof) && !traits_type::eq_int_type(__c, __delim)) { ++_M_gcount; __c = __sb->snextc(); } if (__n == __gnu_cxx::__numeric_traits::__max && !traits_type::eq_int_type(__c, __eof) && !traits_type::eq_int_type(__c, __delim)) { _M_gcount = __gnu_cxx::__numeric_traits::__min; __large_ignore = true; } else break; } if (__large_ignore) _M_gcount = __gnu_cxx::__numeric_traits::__max; if (traits_type::eq_int_type(__c, __eof)) __err |= ios_base::eofbit; else if (traits_type::eq_int_type(__c, __delim)) { if (_M_gcount < __gnu_cxx::__numeric_traits::__max) ++_M_gcount; __sb->sbumpc(); } } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return *this; } template typename basic_istream<_CharT, _Traits>::int_type basic_istream<_CharT, _Traits>:: peek(void) { int_type __c = traits_type::eof(); _M_gcount = 0; sentry __cerb(*this, true); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { __c = this->rdbuf()->sgetc(); if (traits_type::eq_int_type(__c, traits_type::eof())) __err |= ios_base::eofbit; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return __c; } template basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: read(char_type* __s, streamsize __n) { _M_gcount = 0; sentry __cerb(*this, true); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { _M_gcount = this->rdbuf()->sgetn(__s, __n); if (_M_gcount != __n) __err |= (ios_base::eofbit | ios_base::failbit); } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return *this; } template streamsize basic_istream<_CharT, _Traits>:: readsome(char_type* __s, streamsize __n) { _M_gcount = 0; sentry __cerb(*this, true); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { const streamsize __num = this->rdbuf()->in_avail(); if (__num > 0) _M_gcount = this->rdbuf()->sgetn(__s, std::min(__num, __n)); else if (__num == -1) __err |= ios_base::eofbit; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return _M_gcount; } template basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: putback(char_type __c) { _M_gcount = 0; this->clear(this->rdstate() & ~ios_base::eofbit); sentry __cerb(*this, true); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { const int_type __eof = traits_type::eof(); __streambuf_type* __sb = this->rdbuf(); if (!__sb || traits_type::eq_int_type(__sb->sputbackc(__c), __eof)) __err |= ios_base::badbit; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return *this; } template basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: unget(void) { _M_gcount = 0; this->clear(this->rdstate() & ~ios_base::eofbit); sentry __cerb(*this, true); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { const int_type __eof = traits_type::eof(); __streambuf_type* __sb = this->rdbuf(); if (!__sb || traits_type::eq_int_type(__sb->sungetc(), __eof)) __err |= ios_base::badbit; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return *this; } template int basic_istream<_CharT, _Traits>:: sync(void) { int __ret = -1; sentry __cerb(*this, true); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { __streambuf_type* __sb = this->rdbuf(); if (__sb) { if (__sb->pubsync() == -1) __err |= ios_base::badbit; else __ret = 0; } } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return __ret; } template typename basic_istream<_CharT, _Traits>::pos_type basic_istream<_CharT, _Traits>:: tellg(void) { pos_type __ret = pos_type(-1); sentry __cerb(*this, true); if (__cerb) { try { if (!this->fail()) __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, ios_base::in); } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } } return __ret; } template basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: seekg(pos_type __pos) { this->clear(this->rdstate() & ~ios_base::eofbit); sentry __cerb(*this, true); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { if (!this->fail()) { const pos_type __p = this->rdbuf()->pubseekpos(__pos, ios_base::in); if (__p == pos_type(off_type(-1))) __err |= ios_base::failbit; } } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return *this; } template basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: seekg(off_type __off, ios_base::seekdir __dir) { this->clear(this->rdstate() & ~ios_base::eofbit); sentry __cerb(*this, true); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { if (!this->fail()) { const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, ios_base::in); if (__p == pos_type(off_type(-1))) __err |= ios_base::failbit; } } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return *this; } template basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) { typedef basic_istream<_CharT, _Traits> __istream_type; typedef typename __istream_type::int_type __int_type; typename __istream_type::sentry __cerb(__in, false); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { const __int_type __cb = __in.rdbuf()->sbumpc(); if (!_Traits::eq_int_type(__cb, _Traits::eof())) __c = _Traits::to_char_type(__cb); else __err |= (ios_base::eofbit | ios_base::failbit); } catch(__cxxabiv1::__forced_unwind&) { __in._M_setstate(ios_base::badbit); throw; } catch(...) { __in._M_setstate(ios_base::badbit); } if (__err) __in.setstate(__err); } return __in; } template basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) { typedef basic_istream<_CharT, _Traits> __istream_type; typedef basic_streambuf<_CharT, _Traits> __streambuf_type; typedef typename _Traits::int_type int_type; typedef _CharT char_type; typedef ctype<_CharT> __ctype_type; streamsize __extracted = 0; ios_base::iostate __err = ios_base::goodbit; typename __istream_type::sentry __cerb(__in, false); if (__cerb) { try { streamsize __num = __in.width(); if (__num <= 0) __num = __gnu_cxx::__numeric_traits::__max; const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); const int_type __eof = _Traits::eof(); __streambuf_type* __sb = __in.rdbuf(); int_type __c = __sb->sgetc(); while (__extracted < __num - 1 && !_Traits::eq_int_type(__c, __eof) && !__ct.is(ctype_base::space, _Traits::to_char_type(__c))) { *__s++ = _Traits::to_char_type(__c); ++__extracted; __c = __sb->snextc(); } if (_Traits::eq_int_type(__c, __eof)) __err |= ios_base::eofbit; *__s = char_type(); __in.width(0); } catch(__cxxabiv1::__forced_unwind&) { __in._M_setstate(ios_base::badbit); throw; } catch(...) { __in._M_setstate(ios_base::badbit); } } if (!__extracted) __err |= ios_base::failbit; if (__err) __in.setstate(__err); return __in; } template basic_istream<_CharT, _Traits>& ws(basic_istream<_CharT, _Traits>& __in) { typedef basic_istream<_CharT, _Traits> __istream_type; typedef basic_streambuf<_CharT, _Traits> __streambuf_type; typedef typename __istream_type::int_type __int_type; typedef ctype<_CharT> __ctype_type; const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); const __int_type __eof = _Traits::eof(); __streambuf_type* __sb = __in.rdbuf(); __int_type __c = __sb->sgetc(); while (!_Traits::eq_int_type(__c, __eof) && __ct.is(ctype_base::space, _Traits::to_char_type(__c))) __c = __sb->snextc(); if (_Traits::eq_int_type(__c, __eof)) __in.setstate(ios_base::eofbit); return __in; } extern template class basic_istream; extern template istream& ws(istream&); extern template istream& operator>>(istream&, char&); extern template istream& operator>>(istream&, char*); extern template istream& operator>>(istream&, unsigned char&); extern template istream& operator>>(istream&, signed char&); extern template istream& operator>>(istream&, unsigned char*); extern template istream& operator>>(istream&, signed char*); extern template istream& istream::_M_extract(unsigned short&); extern template istream& istream::_M_extract(unsigned int&); extern template istream& istream::_M_extract(long&); extern template istream& istream::_M_extract(unsigned long&); extern template istream& istream::_M_extract(bool&); extern template istream& istream::_M_extract(long long&); extern template istream& istream::_M_extract(unsigned long long&); extern template istream& istream::_M_extract(float&); extern template istream& istream::_M_extract(double&); extern template istream& istream::_M_extract(long double&); extern template istream& istream::_M_extract(void*&); extern template class basic_iostream; extern template class basic_istream; extern template wistream& ws(wistream&); extern template wistream& operator>>(wistream&, wchar_t&); extern template wistream& operator>>(wistream&, wchar_t*); extern template wistream& wistream::_M_extract(unsigned short&); extern template wistream& wistream::_M_extract(unsigned int&); extern template wistream& wistream::_M_extract(long&); extern template wistream& wistream::_M_extract(unsigned long&); extern template wistream& wistream::_M_extract(bool&); extern template wistream& wistream::_M_extract(long long&); extern template wistream& wistream::_M_extract(unsigned long long&); extern template wistream& wistream::_M_extract(float&); extern template wistream& wistream::_M_extract(double&); extern template wistream& wistream::_M_extract(long double&); extern template wistream& wistream::_M_extract(void*&); extern template class basic_iostream; } # 932 "/usr/include/c++/5.0.0/istream" 2 3 # 66 "/usr/include/c++/5.0.0/iterator" 2 3 # 1 "/usr/include/c++/5.0.0/bits/stream_iterator.h" 1 3 # 33 "/usr/include/c++/5.0.0/bits/stream_iterator.h" 3 # 34 "/usr/include/c++/5.0.0/bits/stream_iterator.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template, typename _Dist = ptrdiff_t> class istream_iterator : public iterator { public: typedef _CharT char_type; typedef _Traits traits_type; typedef basic_istream<_CharT, _Traits> istream_type; private: istream_type* _M_stream; _Tp _M_value; bool _M_ok; public: istream_iterator() : _M_stream(0), _M_value(), _M_ok(false) {} istream_iterator(istream_type& __s) : _M_stream(&__s) { _M_read(); } istream_iterator(const istream_iterator& __obj) : _M_stream(__obj._M_stream), _M_value(__obj._M_value), _M_ok(__obj._M_ok) { } const _Tp& operator*() const { ; return _M_value; } const _Tp* operator->() const { return &(operator*()); } istream_iterator& operator++() { ; _M_read(); return *this; } istream_iterator operator++(int) { ; istream_iterator __tmp = *this; _M_read(); return __tmp; } bool _M_equal(const istream_iterator& __x) const { return (_M_ok == __x._M_ok) && (!_M_ok || _M_stream == __x._M_stream); } private: void _M_read() { _M_ok = (_M_stream && *_M_stream) ? true : false; if (_M_ok) { *_M_stream >> _M_value; _M_ok = *_M_stream ? true : false; } } }; template inline bool operator==(const istream_iterator<_Tp, _CharT, _Traits, _Dist>& __x, const istream_iterator<_Tp, _CharT, _Traits, _Dist>& __y) { return __x._M_equal(__y); } template inline bool operator!=(const istream_iterator<_Tp, _CharT, _Traits, _Dist>& __x, const istream_iterator<_Tp, _CharT, _Traits, _Dist>& __y) { return !__x._M_equal(__y); } # 152 "/usr/include/c++/5.0.0/bits/stream_iterator.h" 3 template > class ostream_iterator : public iterator { public: typedef _CharT char_type; typedef _Traits traits_type; typedef basic_ostream<_CharT, _Traits> ostream_type; private: ostream_type* _M_stream; const _CharT* _M_string; public: ostream_iterator(ostream_type& __s) : _M_stream(&__s), _M_string(0) {} # 183 "/usr/include/c++/5.0.0/bits/stream_iterator.h" 3 ostream_iterator(ostream_type& __s, const _CharT* __c) : _M_stream(&__s), _M_string(__c) { } ostream_iterator(const ostream_iterator& __obj) : _M_stream(__obj._M_stream), _M_string(__obj._M_string) { } ostream_iterator& operator=(const _Tp& __value) { ; *_M_stream << __value; if (_M_string) *_M_stream << _M_string; return *this; } ostream_iterator& operator*() { return *this; } ostream_iterator& operator++() { return *this; } ostream_iterator& operator++(int) { return *this; } }; } # 67 "/usr/include/c++/5.0.0/iterator" 2 3 # 12 "/usr/include/boost/detail/iterator.hpp" 2 3 4 namespace boost { namespace detail { using std::iterator_traits; using std::distance; } } # 9 "/usr/include/boost/iterator/iterator_traits.hpp" 2 3 4 namespace boost { namespace iterators { template struct iterator_value { typedef typename boost::detail::iterator_traits::value_type type; }; template struct iterator_reference { typedef typename boost::detail::iterator_traits::reference type; }; template struct iterator_pointer { typedef typename boost::detail::iterator_traits::pointer type; }; template struct iterator_difference { typedef typename boost::detail::iterator_traits::difference_type type; }; template struct iterator_category { typedef typename boost::detail::iterator_traits::iterator_category type; }; } using iterators::iterator_value; using iterators::iterator_reference; using iterators::iterator_pointer; using iterators::iterator_difference; using iterators::iterator_category; } # 24 "/usr/include/boost/range/mutable_iterator.hpp" 2 3 4 namespace boost { namespace range_detail { template< typename T, typename fallback_ = boost::mpl::bool_ > struct has_iterator { struct gcc_3_2_wknd { template< typename U > static boost::mpl::aux::yes_tag test( boost::mpl::aux::type_wrapper const volatile* , boost::mpl::aux::type_wrapper* = 0 ); static boost::mpl::aux::no_tag test(...); }; typedef boost::mpl::aux::type_wrapper t_; static const bool value = sizeof(gcc_3_2_wknd::test(static_cast(0))) == sizeof(boost::mpl::aux::yes_tag); typedef boost::mpl::bool_ type; }; template< typename C, bool B = has_iterator::value > struct extract_iterator {}; template< typename C > struct extract_iterator< C, true > { typedef typename C::iterator type; }; template< typename C > struct range_mutable_iterator : range_detail::extract_iterator< typename remove_reference::type> {}; template< typename Iterator > struct range_mutable_iterator< std::pair > { typedef Iterator type; }; template< typename T, std::size_t sz > struct range_mutable_iterator< T[sz] > { typedef T* type; }; } template struct range_mutable_iterator : range_detail::range_mutable_iterator< typename remove_reference::type > { }; } # 1 "/usr/include/boost/range/detail/msvc_has_iterator_workaround.hpp" 1 3 4 # 78 "/usr/include/boost/range/mutable_iterator.hpp" 2 3 4 # 21 "/usr/include/boost/range/iterator.hpp" 2 3 4 # 1 "/usr/include/boost/range/const_iterator.hpp" 1 3 4 # 22 "/usr/include/boost/range/const_iterator.hpp" 3 4 # 1 "/usr/include/boost/type_traits/remove_const.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/remove_const.hpp" 3 4 # 1 "/usr/include/boost/type_traits/is_volatile.hpp" 1 3 4 # 27 "/usr/include/boost/type_traits/is_volatile.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/cv_traits_impl.hpp" 1 3 4 # 22 "/usr/include/boost/type_traits/detail/cv_traits_impl.hpp" 3 4 namespace boost { namespace detail { # 101 "/usr/include/boost/type_traits/detail/cv_traits_impl.hpp" 3 4 template struct cv_traits_imp {}; template struct cv_traits_imp { static const bool is_const = false; static const bool is_volatile = false; typedef T unqualified_type; }; template struct cv_traits_imp { static const bool is_const = true; static const bool is_volatile = false; typedef T unqualified_type; }; template struct cv_traits_imp { static const bool is_const = false; static const bool is_volatile = true; typedef T unqualified_type; }; template struct cv_traits_imp { static const bool is_const = true; static const bool is_volatile = true; typedef T unqualified_type; }; } } # 28 "/usr/include/boost/type_traits/is_volatile.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 34 "/usr/include/boost/type_traits/is_volatile.hpp" 2 3 4 namespace boost { namespace detail{ template struct is_volatile_rval_filter { static const bool value = ::boost::detail::cv_traits_imp::is_volatile; }; # 58 "/usr/include/boost/type_traits/is_volatile.hpp" 3 4 } template< typename T > struct is_volatile : public ::boost::integral_constant::value> { public: }; template< typename T > struct is_volatile< T& > : public ::boost::integral_constant { public: }; # 80 "/usr/include/boost/type_traits/is_volatile.hpp" 3 4 } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 83 "/usr/include/boost/type_traits/is_volatile.hpp" 2 3 4 # 15 "/usr/include/boost/type_traits/remove_const.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 2 3 4 # 23 "/usr/include/boost/type_traits/remove_const.hpp" 2 3 4 namespace boost { namespace detail { template struct remove_const_helper { typedef T type; }; template struct remove_const_helper { typedef T volatile type; }; template struct remove_const_impl { typedef typename remove_const_helper< typename cv_traits_imp::unqualified_type , ::boost::is_volatile::value >::type type; }; # 63 "/usr/include/boost/type_traits/remove_const.hpp" 3 4 } template< typename T > struct remove_const { public: typedef typename boost::detail::remove_const_impl::type type; }; template< typename T > struct remove_const { public: typedef T& type; }; template< typename T, std::size_t N > struct remove_const { public: typedef T type[N]; }; template< typename T, std::size_t N > struct remove_const { public: typedef T volatile type[N]; }; } # 1 "/usr/include/boost/type_traits/detail/type_trait_undef.hpp" 1 3 4 # 78 "/usr/include/boost/type_traits/remove_const.hpp" 2 3 4 # 23 "/usr/include/boost/range/const_iterator.hpp" 2 3 4 namespace boost { namespace range_detail { template< typename T, typename fallback_ = boost::mpl::bool_ > struct has_const_iterator { struct gcc_3_2_wknd { template< typename U > static boost::mpl::aux::yes_tag test( boost::mpl::aux::type_wrapper const volatile* , boost::mpl::aux::type_wrapper* = 0 ); static boost::mpl::aux::no_tag test(...); }; typedef boost::mpl::aux::type_wrapper t_; static const bool value = sizeof(gcc_3_2_wknd::test(static_cast(0))) == sizeof(boost::mpl::aux::yes_tag); typedef boost::mpl::bool_ type; }; template< typename C, bool B = has_const_iterator::value > struct extract_const_iterator {}; template< typename C > struct extract_const_iterator< C, true > { typedef typename C::const_iterator type; }; template< typename C > struct range_const_iterator : extract_const_iterator {}; template< typename Iterator > struct range_const_iterator > { typedef Iterator type; }; template< typename T, std::size_t sz > struct range_const_iterator< T[sz] > { typedef const T* type; }; } template struct range_const_iterator : range_detail::range_const_iterator< typename remove_reference::type > { }; } # 22 "/usr/include/boost/range/iterator.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/is_const.hpp" 1 3 4 # 29 "/usr/include/boost/type_traits/is_const.hpp" 3 4 # 1 "/usr/include/boost/type_traits/is_reference.hpp" 1 3 4 # 16 "/usr/include/boost/type_traits/is_reference.hpp" 3 4 # 1 "/usr/include/boost/type_traits/is_lvalue_reference.hpp" 1 3 4 # 28 "/usr/include/boost/type_traits/is_lvalue_reference.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 29 "/usr/include/boost/type_traits/is_lvalue_reference.hpp" 2 3 4 namespace boost { template< typename T > struct is_lvalue_reference : public ::boost::integral_constant { public: }; template< typename T > struct is_lvalue_reference< T& > : public ::boost::integral_constant { public: }; # 51 "/usr/include/boost/type_traits/is_lvalue_reference.hpp" 3 4 } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 54 "/usr/include/boost/type_traits/is_lvalue_reference.hpp" 2 3 4 # 17 "/usr/include/boost/type_traits/is_reference.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/is_rvalue_reference.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/is_rvalue_reference.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 16 "/usr/include/boost/type_traits/is_rvalue_reference.hpp" 2 3 4 namespace boost { template< typename T > struct is_rvalue_reference : public ::boost::integral_constant { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 27 "/usr/include/boost/type_traits/is_rvalue_reference.hpp" 2 3 4 # 18 "/usr/include/boost/type_traits/is_reference.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/ice.hpp" 1 3 4 # 16 "/usr/include/boost/type_traits/ice.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/ice_and.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/ice_and.hpp" 3 4 namespace boost { namespace type_traits { template struct ice_and; template struct ice_and { static const bool value = false; }; template <> struct ice_and { static const bool value = true; }; } } # 17 "/usr/include/boost/type_traits/ice.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/detail/ice_not.hpp" 1 3 4 # 13 "/usr/include/boost/type_traits/detail/ice_not.hpp" 3 4 namespace boost { namespace type_traits { template struct ice_not { static const bool value = true; }; template <> struct ice_not { static const bool value = false; }; } } # 18 "/usr/include/boost/type_traits/ice.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/detail/ice_eq.hpp" 1 3 4 # 13 "/usr/include/boost/type_traits/detail/ice_eq.hpp" 3 4 namespace boost { namespace type_traits { template struct ice_eq { static const bool value = (b1 == b2); }; template struct ice_ne { static const bool value = (b1 != b2); }; template bool const ice_eq::value; template bool const ice_ne::value; } } # 19 "/usr/include/boost/type_traits/ice.hpp" 2 3 4 # 19 "/usr/include/boost/type_traits/is_reference.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 22 "/usr/include/boost/type_traits/is_reference.hpp" 2 3 4 namespace boost { namespace detail { template struct is_reference_impl { static const bool value = (::boost::type_traits::ice_or< ::boost::is_lvalue_reference::value, ::boost::is_rvalue_reference::value >::value) ; }; } template< typename T > struct is_reference : public ::boost::integral_constant::value> { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 43 "/usr/include/boost/type_traits/is_reference.hpp" 2 3 4 # 30 "/usr/include/boost/type_traits/is_const.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 37 "/usr/include/boost/type_traits/is_const.hpp" 2 3 4 namespace boost { namespace detail{ template struct is_const_rvalue_filter { static const bool value = ::boost::detail::cv_traits_imp::is_const; }; } template< typename T > struct is_const : public ::boost::integral_constant::value> { public: }; template< typename T > struct is_const< T& > : public ::boost::integral_constant { public: }; # 85 "/usr/include/boost/type_traits/is_const.hpp" 3 4 } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 88 "/usr/include/boost/type_traits/is_const.hpp" 2 3 4 # 23 "/usr/include/boost/range/iterator.hpp" 2 3 4 namespace boost { # 51 "/usr/include/boost/range/iterator.hpp" 3 4 template< typename C, typename Enabler=void > struct range_iterator { private: typedef typename remove_reference::type param_t; public: typedef typename mpl::eval_if_c< is_const::value, range_const_iterator::type>, range_mutable_iterator >::type type; }; } # 26 "/usr/include/boost/range/end.hpp" 2 3 4 namespace boost { namespace range_detail { template< typename C > inline typename range_iterator::type range_end( C& c ) { return c.end(); } template< typename Iterator > inline Iterator range_end( const std::pair& p ) { return p.second; } template< typename Iterator > inline Iterator range_end( std::pair& p ) { return p.second; } template< typename T, std::size_t sz > inline const T* range_end( const T (&a)[sz] ) { return range_detail::array_end( a ); } template< typename T, std::size_t sz > inline T* range_end( T (&a)[sz] ) { return range_detail::array_end( a ); } } namespace range_adl_barrier { template< class T > inline typename range_iterator::type end( T& r ) { using namespace range_detail; return range_end( r ); } template< class T > inline typename range_iterator::type end( const T& r ) { using namespace range_detail; return range_end( r ); } } } namespace boost { namespace range_adl_barrier { template< class T > inline typename range_iterator::type const_end( const T& r ) { return boost::range_adl_barrier::end( r ); } } using namespace range_adl_barrier; } # 74 "/usr/include/boost/foreach.hpp" 2 3 4 # 1 "/usr/include/boost/range/begin.hpp" 1 3 4 # 26 "/usr/include/boost/range/begin.hpp" 3 4 namespace boost { namespace range_detail { template< typename C > inline typename range_iterator::type range_begin( C& c ) { return c.begin(); } template< typename Iterator > inline Iterator range_begin( const std::pair& p ) { return p.first; } template< typename Iterator > inline Iterator range_begin( std::pair& p ) { return p.first; } # 73 "/usr/include/boost/range/begin.hpp" 3 4 template< typename T, std::size_t sz > inline const T* range_begin( const T (&a)[sz] ) { return a; } template< typename T, std::size_t sz > inline T* range_begin( T (&a)[sz] ) { return a; } } namespace range_adl_barrier { template< class T > inline typename range_iterator::type begin( T& r ) { using namespace range_detail; return range_begin( r ); } template< class T > inline typename range_iterator::type begin( const T& r ) { using namespace range_detail; return range_begin( r ); } } } namespace boost { namespace range_adl_barrier { template< class T > inline typename range_iterator::type const_begin( const T& r ) { return boost::range_adl_barrier::begin( r ); } } using namespace range_adl_barrier; } # 75 "/usr/include/boost/foreach.hpp" 2 3 4 # 1 "/usr/include/boost/range/rend.hpp" 1 3 4 # 19 "/usr/include/boost/range/rend.hpp" 3 4 # 1 "/usr/include/boost/range/reverse_iterator.hpp" 1 3 4 # 21 "/usr/include/boost/range/reverse_iterator.hpp" 3 4 # 1 "/usr/include/boost/iterator/reverse_iterator.hpp" 1 3 4 # 10 "/usr/include/boost/iterator/reverse_iterator.hpp" 3 4 # 1 "/usr/include/boost/next_prior.hpp" 1 3 4 # 20 "/usr/include/boost/next_prior.hpp" 3 4 # 1 "/usr/include/boost/type_traits/is_unsigned.hpp" 1 3 4 # 13 "/usr/include/boost/type_traits/is_unsigned.hpp" 3 4 # 1 "/usr/include/boost/type_traits/is_integral.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/is_integral.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 16 "/usr/include/boost/type_traits/is_integral.hpp" 2 3 4 namespace boost { template< typename T > struct is_integral : public ::boost::integral_constant { public: }; template<> struct is_integral< unsigned char > : public ::boost::integral_constant { public: }; template<> struct is_integral< unsigned char const > : public ::boost::integral_constant { public: }; template<> struct is_integral< unsigned char volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< unsigned char const volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< unsigned short > : public ::boost::integral_constant { public: }; template<> struct is_integral< unsigned short const > : public ::boost::integral_constant { public: }; template<> struct is_integral< unsigned short volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< unsigned short const volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< unsigned int > : public ::boost::integral_constant { public: }; template<> struct is_integral< unsigned int const > : public ::boost::integral_constant { public: }; template<> struct is_integral< unsigned int volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< unsigned int const volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< unsigned long > : public ::boost::integral_constant { public: }; template<> struct is_integral< unsigned long const > : public ::boost::integral_constant { public: }; template<> struct is_integral< unsigned long volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< unsigned long const volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< signed char > : public ::boost::integral_constant { public: }; template<> struct is_integral< signed char const > : public ::boost::integral_constant { public: }; template<> struct is_integral< signed char volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< signed char const volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< signed short > : public ::boost::integral_constant { public: }; template<> struct is_integral< signed short const > : public ::boost::integral_constant { public: }; template<> struct is_integral< signed short volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< signed short const volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< signed int > : public ::boost::integral_constant { public: }; template<> struct is_integral< signed int const > : public ::boost::integral_constant { public: }; template<> struct is_integral< signed int volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< signed int const volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< signed long > : public ::boost::integral_constant { public: }; template<> struct is_integral< signed long const > : public ::boost::integral_constant { public: }; template<> struct is_integral< signed long volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< signed long const volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< bool > : public ::boost::integral_constant { public: }; template<> struct is_integral< bool const > : public ::boost::integral_constant { public: }; template<> struct is_integral< bool volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< bool const volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< char > : public ::boost::integral_constant { public: }; template<> struct is_integral< char const > : public ::boost::integral_constant { public: }; template<> struct is_integral< char volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< char const volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< wchar_t > : public ::boost::integral_constant { public: }; template<> struct is_integral< wchar_t const > : public ::boost::integral_constant { public: }; template<> struct is_integral< wchar_t volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< wchar_t const volatile > : public ::boost::integral_constant { public: }; # 64 "/usr/include/boost/type_traits/is_integral.hpp" 3 4 template<> struct is_integral< ::boost::ulong_long_type > : public ::boost::integral_constant { public: }; template<> struct is_integral< ::boost::ulong_long_type const > : public ::boost::integral_constant { public: }; template<> struct is_integral< ::boost::ulong_long_type volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< ::boost::ulong_long_type const volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< ::boost::long_long_type > : public ::boost::integral_constant { public: }; template<> struct is_integral< ::boost::long_long_type const > : public ::boost::integral_constant { public: }; template<> struct is_integral< ::boost::long_long_type volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< ::boost::long_long_type const volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< boost::int128_type > : public ::boost::integral_constant { public: }; template<> struct is_integral< boost::int128_type const > : public ::boost::integral_constant { public: }; template<> struct is_integral< boost::int128_type volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< boost::int128_type const volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< boost::uint128_type > : public ::boost::integral_constant { public: }; template<> struct is_integral< boost::uint128_type const > : public ::boost::integral_constant { public: }; template<> struct is_integral< boost::uint128_type volatile > : public ::boost::integral_constant { public: }; template<> struct is_integral< boost::uint128_type const volatile > : public ::boost::integral_constant { public: }; # 84 "/usr/include/boost/type_traits/is_integral.hpp" 3 4 } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 87 "/usr/include/boost/type_traits/is_integral.hpp" 2 3 4 # 14 "/usr/include/boost/type_traits/is_unsigned.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/is_enum.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/is_enum.hpp" 3 4 # 1 "/usr/include/boost/type_traits/intrinsics.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/is_enum.hpp" 2 3 4 # 32 "/usr/include/boost/type_traits/is_enum.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 33 "/usr/include/boost/type_traits/is_enum.hpp" 2 3 4 namespace boost { # 180 "/usr/include/boost/type_traits/is_enum.hpp" 3 4 template< typename T > struct is_enum : public ::boost::integral_constant { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 187 "/usr/include/boost/type_traits/is_enum.hpp" 2 3 4 # 15 "/usr/include/boost/type_traits/is_unsigned.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/remove_cv.hpp" 1 3 4 # 21 "/usr/include/boost/type_traits/remove_cv.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 2 3 4 # 22 "/usr/include/boost/type_traits/remove_cv.hpp" 2 3 4 namespace boost { namespace detail{ template struct rvalue_ref_filter_rem_cv { typedef typename boost::detail::cv_traits_imp::unqualified_type type; }; # 46 "/usr/include/boost/type_traits/remove_cv.hpp" 3 4 } template< typename T > struct remove_cv { public: typedef typename boost::detail::rvalue_ref_filter_rem_cv::type type; }; template< typename T > struct remove_cv { public: typedef T& type; }; template< typename T, std::size_t N > struct remove_cv { public: typedef T type[N]; }; template< typename T, std::size_t N > struct remove_cv { public: typedef T type[N]; }; template< typename T, std::size_t N > struct remove_cv { public: typedef T type[N]; }; } # 1 "/usr/include/boost/type_traits/detail/type_trait_undef.hpp" 1 3 4 # 62 "/usr/include/boost/type_traits/remove_cv.hpp" 2 3 4 # 16 "/usr/include/boost/type_traits/is_unsigned.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 20 "/usr/include/boost/type_traits/is_unsigned.hpp" 2 3 4 namespace boost { namespace detail{ template struct is_unsigned_values { typedef typename remove_cv::type no_cv_t; static const no_cv_t minus_one = (static_cast(-1)); static const no_cv_t zero = (static_cast(0)); }; template struct is_ununsigned_helper { static const bool value = (::boost::detail::is_unsigned_values::minus_one > ::boost::detail::is_unsigned_values::zero); }; template struct is_ununsigned_select_helper { template struct rebind { typedef is_ununsigned_helper type; }; }; template <> struct is_ununsigned_select_helper { template struct rebind { typedef false_type type; }; }; template struct is_unsigned_imp { typedef is_ununsigned_select_helper< ::boost::type_traits::ice_or< ::boost::is_integral::value, ::boost::is_enum::value>::value > selector; typedef typename selector::template rebind binder; typedef typename binder::type type; static const bool value = type::value; }; # 121 "/usr/include/boost/type_traits/is_unsigned.hpp" 3 4 } template< typename T > struct is_unsigned : public ::boost::integral_constant::value> { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 134 "/usr/include/boost/type_traits/is_unsigned.hpp" 2 3 4 # 21 "/usr/include/boost/next_prior.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/integral_promotion.hpp" 1 3 4 # 12 "/usr/include/boost/type_traits/integral_promotion.hpp" 3 4 # 1 "/usr/include/boost/mpl/identity.hpp" 1 3 4 # 20 "/usr/include/boost/mpl/identity.hpp" 3 4 namespace boost { namespace mpl { template< typename T = na > struct identity { typedef T type; }; template< typename T = na > struct make_identity { typedef identity type; }; template<> struct identity< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : identity< T1 > { }; }; template< typename Tag > struct lambda< identity< na > , Tag , int_<-1> > { typedef false_ is_le; typedef identity< na > result_; typedef identity< na > type; }; namespace aux { template< typename T1 > struct template_arity< identity< T1 > > : int_<1> { }; template<> struct template_arity< identity< na > > : int_<-1> { }; } template<> struct make_identity< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : make_identity< T1 > { }; }; template< typename Tag > struct lambda< make_identity< na > , Tag , int_<-1> > { typedef false_ is_le; typedef make_identity< na > result_; typedef make_identity< na > type; }; namespace aux { template< typename T1 > struct template_arity< make_identity< T1 > > : int_<1> { }; template<> struct template_arity< make_identity< na > > : int_<-1> { }; } }} # 13 "/usr/include/boost/type_traits/integral_promotion.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 2 3 4 # 21 "/usr/include/boost/type_traits/integral_promotion.hpp" 2 3 4 namespace boost { namespace type_traits { namespace detail { template struct need_promotion : public boost::is_enum {}; template<> struct need_promotion : public true_type {}; template<> struct need_promotion : public true_type {}; template<> struct need_promotion : public true_type {}; template<> struct need_promotion : public true_type {}; template<> struct need_promotion : public true_type {}; # 62 "/usr/include/boost/type_traits/integral_promotion.hpp" 3 4 template<> struct need_promotion : public integral_constant {}; template<> struct need_promotion : public integral_constant {}; # 74 "/usr/include/boost/type_traits/integral_promotion.hpp" 3 4 template<> struct need_promotion : public true_type {}; template<> struct need_promotion : public true_type {}; template struct promote_from_index; # 94 "/usr/include/boost/type_traits/integral_promotion.hpp" 3 4 template<> struct promote_from_index<1,0,0> { typedef int type; }; template<> struct promote_from_index<1,0,1> { typedef int volatile type; }; template<> struct promote_from_index<1,1,0> { typedef int const type; }; template<> struct promote_from_index<1,1,1> { typedef int const volatile type; }; template<> struct promote_from_index<2,0,0> { typedef unsigned int type; }; template<> struct promote_from_index<2,0,1> { typedef unsigned int volatile type; }; template<> struct promote_from_index<2,1,0> { typedef unsigned int const type; }; template<> struct promote_from_index<2,1,1> { typedef unsigned int const volatile type; }; template<> struct promote_from_index<3,0,0> { typedef long type; }; template<> struct promote_from_index<3,0,1> { typedef long volatile type; }; template<> struct promote_from_index<3,1,0> { typedef long const type; }; template<> struct promote_from_index<3,1,1> { typedef long const volatile type; }; template<> struct promote_from_index<4,0,0> { typedef unsigned long type; }; template<> struct promote_from_index<4,0,1> { typedef unsigned long volatile type; }; template<> struct promote_from_index<4,1,0> { typedef unsigned long const type; }; template<> struct promote_from_index<4,1,1> { typedef unsigned long const volatile type; }; # 106 "/usr/include/boost/type_traits/integral_promotion.hpp" 3 4 template<> struct promote_from_index<5,0,0> { typedef boost::long_long_type type; }; template<> struct promote_from_index<5,0,1> { typedef boost::long_long_type volatile type; }; template<> struct promote_from_index<5,1,0> { typedef boost::long_long_type const type; }; template<> struct promote_from_index<5,1,1> { typedef boost::long_long_type const volatile type; }; template<> struct promote_from_index<6,0,0> { typedef boost::ulong_long_type type; }; template<> struct promote_from_index<6,0,1> { typedef boost::ulong_long_type volatile type; }; template<> struct promote_from_index<6,1,0> { typedef boost::ulong_long_type const type; }; template<> struct promote_from_index<6,1,1> { typedef boost::ulong_long_type const volatile type; }; # 119 "/usr/include/boost/type_traits/integral_promotion.hpp" 3 4 template struct sized_type_for_promotion { typedef char (&type)[N]; }; # 135 "/usr/include/boost/type_traits/integral_promotion.hpp" 3 4 sized_type_for_promotion<1>::type promoted_index_tester(int); sized_type_for_promotion<2>::type promoted_index_tester(unsigned int); sized_type_for_promotion<3>::type promoted_index_tester(long); sized_type_for_promotion<4>::type promoted_index_tester(unsigned long); sized_type_for_promotion<5>::type promoted_index_tester(boost::long_long_type); sized_type_for_promotion<6>::type promoted_index_tester(boost::ulong_long_type); # 153 "/usr/include/boost/type_traits/integral_promotion.hpp" 3 4 template struct promoted_index { static T testee; static const int value = sizeof(promoted_index_tester(+testee)); }; template struct integral_promotion_impl { typedef typename promote_from_index< (boost::type_traits::detail::promoted_index::value) , (boost::is_const::value) , (boost::is_volatile::value) >::type type; }; template struct integral_promotion : public boost::mpl::eval_if< need_promotion::type> , integral_promotion_impl , boost::mpl::identity > { }; } } template< typename T > struct integral_promotion { public: typedef typename boost::type_traits::detail::integral_promotion::type type; }; } # 1 "/usr/include/boost/type_traits/detail/type_trait_undef.hpp" 1 3 4 # 192 "/usr/include/boost/type_traits/integral_promotion.hpp" 2 3 4 # 22 "/usr/include/boost/next_prior.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/make_signed.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/make_signed.hpp" 3 4 # 1 "/usr/include/boost/type_traits/is_signed.hpp" 1 3 4 # 19 "/usr/include/boost/type_traits/is_signed.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 20 "/usr/include/boost/type_traits/is_signed.hpp" 2 3 4 namespace boost { namespace detail{ template struct is_signed_values { typedef typename remove_cv::type no_cv_t; static const no_cv_t minus_one = (static_cast(-1)); static const no_cv_t zero = (static_cast(0)); }; template struct is_signed_helper { typedef typename remove_cv::type no_cv_t; static const bool value = (!(::boost::detail::is_signed_values::minus_one > boost::detail::is_signed_values::zero)); }; template struct is_signed_select_helper { template struct rebind { typedef is_signed_helper type; }; }; template <> struct is_signed_select_helper { template struct rebind { typedef false_type type; }; }; template struct is_signed_imp { typedef is_signed_select_helper< ::boost::type_traits::ice_or< ::boost::is_integral::value, ::boost::is_enum::value>::value > selector; typedef typename selector::template rebind binder; typedef typename binder::type type; static const bool value = type::value; }; # 122 "/usr/include/boost/type_traits/is_signed.hpp" 3 4 } template< typename T > struct is_signed : public ::boost::integral_constant::value> { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 135 "/usr/include/boost/type_traits/is_signed.hpp" 2 3 4 # 15 "/usr/include/boost/type_traits/make_signed.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/add_const.hpp" 1 3 4 # 16 "/usr/include/boost/type_traits/add_const.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 2 3 4 # 17 "/usr/include/boost/type_traits/add_const.hpp" 2 3 4 namespace boost { # 33 "/usr/include/boost/type_traits/add_const.hpp" 3 4 template< typename T > struct add_const { public: typedef T const type; }; template< typename T > struct add_const { public: typedef T& type; }; } # 1 "/usr/include/boost/type_traits/detail/type_trait_undef.hpp" 1 3 4 # 44 "/usr/include/boost/type_traits/add_const.hpp" 2 3 4 # 22 "/usr/include/boost/type_traits/make_signed.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/add_volatile.hpp" 1 3 4 # 16 "/usr/include/boost/type_traits/add_volatile.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 2 3 4 # 17 "/usr/include/boost/type_traits/add_volatile.hpp" 2 3 4 namespace boost { # 33 "/usr/include/boost/type_traits/add_volatile.hpp" 3 4 template< typename T > struct add_volatile { public: typedef T volatile type; }; template< typename T > struct add_volatile { public: typedef T& type; }; } # 1 "/usr/include/boost/type_traits/detail/type_trait_undef.hpp" 1 3 4 # 44 "/usr/include/boost/type_traits/add_volatile.hpp" 2 3 4 # 23 "/usr/include/boost/type_traits/make_signed.hpp" 2 3 4 # 1 "/usr/include/boost/static_assert.hpp" 1 3 4 # 26 "/usr/include/boost/static_assert.hpp" 3 4 # 27 "/usr/include/boost/static_assert.hpp" 3 # 84 "/usr/include/boost/static_assert.hpp" 3 namespace boost{ template struct STATIC_ASSERTION_FAILURE; template <> struct STATIC_ASSERTION_FAILURE { enum { value = 1 }; }; template struct static_assert_test{}; } # 27 "/usr/include/boost/type_traits/make_signed.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 2 3 4 # 30 "/usr/include/boost/type_traits/make_signed.hpp" 2 3 4 namespace boost { namespace detail { template struct make_signed_imp { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< (((::boost::type_traits::ice_or< ::boost::is_integral::value, ::boost::is_enum::value>::value)) == 0 ? false : true) >)> boost_static_assert_typedef_39 __attribute__((unused)) ; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< (((::boost::type_traits::ice_not< ::boost::is_same< typename remove_cv::type, bool>::value>::value)) == 0 ? false : true) >)> boost_static_assert_typedef_42 __attribute__((unused)) ; typedef typename remove_cv::type t_no_cv; typedef typename mpl::if_c< (::boost::type_traits::ice_and< ::boost::is_signed::value, ::boost::is_integral::value, ::boost::type_traits::ice_not< ::boost::is_same::value>::value, ::boost::type_traits::ice_not< ::boost::is_same::value>::value, ::boost::type_traits::ice_not< ::boost::is_same::value>::value >::value), T, typename mpl::if_c< (::boost::type_traits::ice_and< ::boost::is_integral::value, ::boost::type_traits::ice_not< ::boost::is_same::value>::value, ::boost::type_traits::ice_not< ::boost::is_same::value>::value, ::boost::type_traits::ice_not< ::boost::is_same::value>::value> ::value), typename mpl::if_< is_same, signed char, typename mpl::if_< is_same, signed short, typename mpl::if_< is_same, int, typename mpl::if_< is_same, long, typename mpl::if_c< sizeof(t_no_cv) == sizeof(boost::long_long_type), boost::long_long_type, boost::int128_type >::type # 87 "/usr/include/boost/type_traits/make_signed.hpp" 3 4 >::type >::type >::type >::type, typename mpl::if_c< sizeof(t_no_cv) == sizeof(unsigned char), signed char, typename mpl::if_c< sizeof(t_no_cv) == sizeof(unsigned short), signed short, typename mpl::if_c< sizeof(t_no_cv) == sizeof(unsigned int), int, typename mpl::if_c< sizeof(t_no_cv) == sizeof(unsigned long), long, typename mpl::if_c< sizeof(t_no_cv) == sizeof(boost::long_long_type), boost::long_long_type, boost::int128_type >::type # 119 "/usr/include/boost/type_traits/make_signed.hpp" 3 4 >::type >::type >::type >::type >::type >::type base_integer_type; typedef typename mpl::if_< is_const, typename add_const::type, base_integer_type >::type const_base_integer_type; typedef typename mpl::if_< is_volatile, typename add_volatile::type, const_base_integer_type >::type type; }; } template< typename T > struct make_signed { public: typedef typename boost::detail::make_signed_imp::type type; }; } # 1 "/usr/include/boost/type_traits/detail/type_trait_undef.hpp" 1 3 4 # 149 "/usr/include/boost/type_traits/make_signed.hpp" 2 3 4 # 23 "/usr/include/boost/next_prior.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/has_plus.hpp" 1 3 4 # 48 "/usr/include/boost/type_traits/has_plus.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 1 3 4 # 12 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 4 # 1 "/usr/include/boost/type_traits/is_base_of.hpp" 1 3 4 # 12 "/usr/include/boost/type_traits/is_base_of.hpp" 3 4 # 1 "/usr/include/boost/type_traits/is_base_and_derived.hpp" 1 3 4 # 24 "/usr/include/boost/type_traits/is_base_and_derived.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 25 "/usr/include/boost/type_traits/is_base_and_derived.hpp" 2 3 4 namespace boost { namespace detail { # 222 "/usr/include/boost/type_traits/is_base_and_derived.hpp" 3 4 template struct is_base_and_derived_impl { typedef typename remove_cv::type ncvB; typedef typename remove_cv::type ncvD; static const bool value = ((__is_base_of(B,D) && !is_same::value) && ! ::boost::is_same::value); }; } template< typename Base, typename Derived > struct is_base_and_derived : public ::boost::integral_constant::value)> { public: }; template< typename Base, typename Derived > struct is_base_and_derived< Base&,Derived > : public ::boost::integral_constant { public: }; template< typename Base, typename Derived > struct is_base_and_derived< Base,Derived& > : public ::boost::integral_constant { public: }; template< typename Base, typename Derived > struct is_base_and_derived< Base&,Derived& > : public ::boost::integral_constant { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 251 "/usr/include/boost/type_traits/is_base_and_derived.hpp" 2 3 4 # 13 "/usr/include/boost/type_traits/is_base_of.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/is_class.hpp" 1 3 4 # 37 "/usr/include/boost/type_traits/is_class.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 38 "/usr/include/boost/type_traits/is_class.hpp" 2 3 4 namespace boost { namespace detail { # 109 "/usr/include/boost/type_traits/is_class.hpp" 3 4 template struct is_class_impl { static const bool value = __is_class(T); }; } template< typename T > struct is_class : public ::boost::integral_constant::value> { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 128 "/usr/include/boost/type_traits/is_class.hpp" 2 3 4 # 15 "/usr/include/boost/type_traits/is_base_of.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 20 "/usr/include/boost/type_traits/is_base_of.hpp" 2 3 4 namespace boost { namespace detail{ template struct is_base_of_imp { typedef typename remove_cv::type ncvB; typedef typename remove_cv::type ncvD; static const bool value = (::boost::type_traits::ice_or< (::boost::detail::is_base_and_derived_impl::value), (::boost::type_traits::ice_and< ::boost::is_same::value, ::boost::is_class::value>::value)>::value) ; }; } template< typename Base, typename Derived > struct is_base_of : public ::boost::integral_constant::value)> { public: }; template< typename Base, typename Derived > struct is_base_of< Base&,Derived > : public ::boost::integral_constant { public: }; template< typename Base, typename Derived > struct is_base_of< Base,Derived& > : public ::boost::integral_constant { public: }; template< typename Base, typename Derived > struct is_base_of< Base&,Derived& > : public ::boost::integral_constant { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 48 "/usr/include/boost/type_traits/is_base_of.hpp" 2 3 4 # 13 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/is_convertible.hpp" 1 3 4 # 21 "/usr/include/boost/type_traits/is_convertible.hpp" 3 4 # 1 "/usr/include/boost/type_traits/is_arithmetic.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/is_arithmetic.hpp" 3 4 # 1 "/usr/include/boost/type_traits/is_float.hpp" 1 3 4 # 13 "/usr/include/boost/type_traits/is_float.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 14 "/usr/include/boost/type_traits/is_float.hpp" 2 3 4 namespace boost { template< typename T > struct is_float : public ::boost::integral_constant { public: }; template<> struct is_float< float > : public ::boost::integral_constant { public: }; template<> struct is_float< float const > : public ::boost::integral_constant { public: }; template<> struct is_float< float volatile > : public ::boost::integral_constant { public: }; template<> struct is_float< float const volatile > : public ::boost::integral_constant { public: }; template<> struct is_float< double > : public ::boost::integral_constant { public: }; template<> struct is_float< double const > : public ::boost::integral_constant { public: }; template<> struct is_float< double volatile > : public ::boost::integral_constant { public: }; template<> struct is_float< double const volatile > : public ::boost::integral_constant { public: }; template<> struct is_float< long double > : public ::boost::integral_constant { public: }; template<> struct is_float< long double const > : public ::boost::integral_constant { public: }; template<> struct is_float< long double volatile > : public ::boost::integral_constant { public: }; template<> struct is_float< long double const volatile > : public ::boost::integral_constant { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 26 "/usr/include/boost/type_traits/is_float.hpp" 2 3 4 # 15 "/usr/include/boost/type_traits/is_arithmetic.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 21 "/usr/include/boost/type_traits/is_arithmetic.hpp" 2 3 4 namespace boost { namespace detail { template< typename T > struct is_arithmetic_impl { static const bool value = (::boost::type_traits::ice_or< ::boost::is_integral::value, ::boost::is_float::value >::value) ; }; } template< typename T > struct is_arithmetic : public ::boost::integral_constant::value> { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 50 "/usr/include/boost/type_traits/is_arithmetic.hpp" 2 3 4 # 22 "/usr/include/boost/type_traits/is_convertible.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/is_abstract.hpp" 1 3 4 # 62 "/usr/include/boost/type_traits/is_abstract.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 63 "/usr/include/boost/type_traits/is_abstract.hpp" 2 3 4 namespace boost { namespace detail{ template struct is_abstract_imp { static const bool value = __is_abstract(T); }; # 141 "/usr/include/boost/type_traits/is_abstract.hpp" 3 4 } template< typename T > struct is_abstract : public ::boost::integral_constant::value> { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 152 "/usr/include/boost/type_traits/is_abstract.hpp" 2 3 4 # 25 "/usr/include/boost/type_traits/is_convertible.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/add_lvalue_reference.hpp" 1 3 4 # 9 "/usr/include/boost/type_traits/add_lvalue_reference.hpp" 3 4 # 1 "/usr/include/boost/type_traits/add_reference.hpp" 1 3 4 # 17 "/usr/include/boost/type_traits/add_reference.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 2 3 4 # 18 "/usr/include/boost/type_traits/add_reference.hpp" 2 3 4 namespace boost { namespace detail { template struct add_reference_rvalue_layer { typedef T& type; }; # 42 "/usr/include/boost/type_traits/add_reference.hpp" 3 4 template struct add_reference_impl { typedef typename add_reference_rvalue_layer::type type; }; template< typename T > struct add_reference_impl { public: typedef T& type; }; template<> struct add_reference_impl { public: typedef void type; }; template<> struct add_reference_impl { public: typedef void const type; }; template<> struct add_reference_impl { public: typedef void volatile type; }; template<> struct add_reference_impl { public: typedef void const volatile type; }; } template< typename T > struct add_reference { public: typedef typename boost::detail::add_reference_impl::type type; }; } # 1 "/usr/include/boost/type_traits/detail/type_trait_undef.hpp" 1 3 4 # 71 "/usr/include/boost/type_traits/add_reference.hpp" 2 3 4 # 10 "/usr/include/boost/type_traits/add_lvalue_reference.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 2 3 4 # 13 "/usr/include/boost/type_traits/add_lvalue_reference.hpp" 2 3 4 namespace boost{ template< typename T > struct add_lvalue_reference { public: typedef typename boost::add_reference::type type; }; } # 1 "/usr/include/boost/type_traits/detail/type_trait_undef.hpp" 1 3 4 # 25 "/usr/include/boost/type_traits/add_lvalue_reference.hpp" 2 3 4 # 27 "/usr/include/boost/type_traits/is_convertible.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/add_rvalue_reference.hpp" 1 3 4 # 19 "/usr/include/boost/type_traits/add_rvalue_reference.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 2 3 4 # 20 "/usr/include/boost/type_traits/add_rvalue_reference.hpp" 2 3 4 # 34 "/usr/include/boost/type_traits/add_rvalue_reference.hpp" 3 4 namespace boost { namespace type_traits_detail { template struct add_rvalue_reference_helper { typedef T type; }; # 50 "/usr/include/boost/type_traits/add_rvalue_reference.hpp" 3 4 template struct add_rvalue_reference_imp { typedef typename boost::type_traits_detail::add_rvalue_reference_helper ::value == false && is_reference::value == false) >::type type; }; } template< typename T > struct add_rvalue_reference { public: typedef typename boost::type_traits_detail::add_rvalue_reference_imp::type type; }; } # 1 "/usr/include/boost/type_traits/detail/type_trait_undef.hpp" 1 3 4 # 64 "/usr/include/boost/type_traits/add_rvalue_reference.hpp" 2 3 4 # 28 "/usr/include/boost/type_traits/is_convertible.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/is_function.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/is_function.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/false_result.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/false_result.hpp" 3 4 namespace boost { namespace type_traits { struct false_result { template struct result_ { static const bool value = false; }; }; }} # 16 "/usr/include/boost/type_traits/is_function.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/detail/is_function_ptr_helper.hpp" 1 3 4 # 26 "/usr/include/boost/type_traits/detail/is_function_ptr_helper.hpp" 3 4 namespace boost { namespace type_traits { template struct is_function_ptr_helper { static const bool value = false; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; template struct is_function_ptr_helper { static const bool value = true; }; # 151 "/usr/include/boost/type_traits/detail/is_function_ptr_helper.hpp" 3 4 } } # 20 "/usr/include/boost/type_traits/is_function.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 27 "/usr/include/boost/type_traits/is_function.hpp" 2 3 4 namespace boost { namespace detail { template struct is_function_chooser : public ::boost::type_traits::false_result { }; template <> struct is_function_chooser { template< typename T > struct result_ : public ::boost::type_traits::is_function_ptr_helper { }; }; template struct is_function_impl : public is_function_chooser< ::boost::is_reference::value > ::template result_ { }; # 93 "/usr/include/boost/type_traits/is_function.hpp" 3 4 } template< typename T > struct is_function : public ::boost::integral_constant::value> { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 108 "/usr/include/boost/type_traits/is_function.hpp" 2 3 4 # 29 "/usr/include/boost/type_traits/is_convertible.hpp" 2 3 4 # 39 "/usr/include/boost/type_traits/is_convertible.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 40 "/usr/include/boost/type_traits/is_convertible.hpp" 2 3 4 namespace boost { # 55 "/usr/include/boost/type_traits/is_convertible.hpp" 3 4 namespace detail { # 123 "/usr/include/boost/type_traits/is_convertible.hpp" 3 4 struct any_conversion { template any_conversion(const volatile T&); template any_conversion(const T&); template any_conversion(volatile T&); template any_conversion(T&); }; template struct checker { static boost::type_traits::no_type _m_check(any_conversion ...); static boost::type_traits::yes_type _m_check(T, int); }; template struct is_convertible_basic_impl { typedef typename add_lvalue_reference::type lvalue_type; typedef typename add_rvalue_reference::type rvalue_type; static lvalue_type _m_from; static bool const value = sizeof( boost::detail::checker::_m_check(_m_from, 0) ) == sizeof(::boost::type_traits::yes_type); }; # 354 "/usr/include/boost/type_traits/is_convertible.hpp" 3 4 template struct is_convertible_impl { static const bool value = (::boost::type_traits::ice_and< ::boost::type_traits::ice_or< ::boost::detail::is_convertible_basic_impl::value, ::boost::is_void::value >::value, ::boost::type_traits::ice_not< ::boost::is_array::value >::value, ::boost::type_traits::ice_not< ::boost::is_function::value >::value >::value) # 370 "/usr/include/boost/type_traits/is_convertible.hpp" 3 4 ; }; template struct is_convertible_impl_select { template struct rebind { typedef is_convertible_impl type; }; }; template <> struct is_convertible_impl_select { template struct rebind { typedef true_type type; }; }; template <> struct is_convertible_impl_select { template struct rebind { typedef false_type type; }; }; template <> struct is_convertible_impl_select { template struct rebind { typedef false_type type; }; }; template struct is_convertible_impl_dispatch_base { typedef is_convertible_impl_select< ::boost::is_arithmetic::value, ::boost::is_arithmetic::value, ::boost::is_abstract::value > selector; typedef typename selector::template rebind isc_binder; typedef typename isc_binder::type type; }; template struct is_convertible_impl_dispatch : public is_convertible_impl_dispatch_base::type {}; # 460 "/usr/include/boost/type_traits/is_convertible.hpp" 3 4 template<> struct is_convertible_impl< void,void > { public: static const bool value = (true); }; template<> struct is_convertible_impl< void,void const > { public: static const bool value = (true); }; template<> struct is_convertible_impl< void,void volatile > { public: static const bool value = (true); }; template<> struct is_convertible_impl< void,void const volatile > { public: static const bool value = (true); }; template<> struct is_convertible_impl< void const,void > { public: static const bool value = (true); }; template<> struct is_convertible_impl< void const,void const > { public: static const bool value = (true); }; template<> struct is_convertible_impl< void const,void volatile > { public: static const bool value = (true); }; template<> struct is_convertible_impl< void const,void const volatile > { public: static const bool value = (true); }; template<> struct is_convertible_impl< void volatile,void > { public: static const bool value = (true); }; template<> struct is_convertible_impl< void volatile,void const > { public: static const bool value = (true); }; template<> struct is_convertible_impl< void volatile,void volatile > { public: static const bool value = (true); }; template<> struct is_convertible_impl< void volatile,void const volatile > { public: static const bool value = (true); }; template<> struct is_convertible_impl< void const volatile,void > { public: static const bool value = (true); }; template<> struct is_convertible_impl< void const volatile,void const > { public: static const bool value = (true); }; template<> struct is_convertible_impl< void const volatile,void volatile > { public: static const bool value = (true); }; template<> struct is_convertible_impl< void const volatile,void const volatile > { public: static const bool value = (true); }; # 469 "/usr/include/boost/type_traits/is_convertible.hpp" 3 4 template< typename To > struct is_convertible_impl< void,To > { public: static const bool value = (false); }; template< typename From > struct is_convertible_impl< From,void > { public: static const bool value = (false); }; template< typename To > struct is_convertible_impl< void const,To > { public: static const bool value = (false); }; template< typename To > struct is_convertible_impl< void volatile,To > { public: static const bool value = (false); }; template< typename To > struct is_convertible_impl< void const volatile,To > { public: static const bool value = (false); }; template< typename From > struct is_convertible_impl< From,void const > { public: static const bool value = (false); }; template< typename From > struct is_convertible_impl< From,void volatile > { public: static const bool value = (false); }; template< typename From > struct is_convertible_impl< From,void const volatile > { public: static const bool value = (false); }; } template< typename From, typename To > struct is_convertible : public ::boost::integral_constant::value)> { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 493 "/usr/include/boost/type_traits/is_convertible.hpp" 2 3 4 # 15 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/is_fundamental.hpp" 1 3 4 # 17 "/usr/include/boost/type_traits/is_fundamental.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 18 "/usr/include/boost/type_traits/is_fundamental.hpp" 2 3 4 namespace boost { namespace detail { template struct is_fundamental_impl : public ::boost::type_traits::ice_or< ::boost::is_arithmetic::value , ::boost::is_void::value > { }; } template< typename T > struct is_fundamental : public ::boost::integral_constant::value> { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 44 "/usr/include/boost/type_traits/is_fundamental.hpp" 2 3 4 # 16 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/is_pointer.hpp" 1 3 4 # 24 "/usr/include/boost/type_traits/is_pointer.hpp" 3 4 # 1 "/usr/include/boost/type_traits/is_member_pointer.hpp" 1 3 4 # 28 "/usr/include/boost/type_traits/is_member_pointer.hpp" 3 4 # 1 "/usr/include/boost/type_traits/is_member_function_pointer.hpp" 1 3 4 # 23 "/usr/include/boost/type_traits/is_member_function_pointer.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/is_mem_fun_pointer_impl.hpp" 1 3 4 # 25 "/usr/include/boost/type_traits/detail/is_mem_fun_pointer_impl.hpp" 3 4 namespace boost { namespace type_traits { template struct is_mem_fun_pointer_impl { static const bool value = false; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; template struct is_mem_fun_pointer_impl { static const bool value = true; }; # 672 "/usr/include/boost/type_traits/detail/is_mem_fun_pointer_impl.hpp" 3 4 } } # 24 "/usr/include/boost/type_traits/is_member_function_pointer.hpp" 2 3 4 # 35 "/usr/include/boost/type_traits/is_member_function_pointer.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 36 "/usr/include/boost/type_traits/is_member_function_pointer.hpp" 2 3 4 namespace boost { template< typename T > struct is_member_function_pointer : public ::boost::integral_constant::type>::value> { public: }; # 129 "/usr/include/boost/type_traits/is_member_function_pointer.hpp" 3 4 } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 132 "/usr/include/boost/type_traits/is_member_function_pointer.hpp" 2 3 4 # 29 "/usr/include/boost/type_traits/is_member_pointer.hpp" 2 3 4 # 39 "/usr/include/boost/type_traits/is_member_pointer.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 40 "/usr/include/boost/type_traits/is_member_pointer.hpp" 2 3 4 namespace boost { # 50 "/usr/include/boost/type_traits/is_member_pointer.hpp" 3 4 template< typename T > struct is_member_pointer : public ::boost::integral_constant::value> { public: }; template< typename T, typename U > struct is_member_pointer< U T::* > : public ::boost::integral_constant { public: }; template< typename T, typename U > struct is_member_pointer< U T::*const > : public ::boost::integral_constant { public: }; template< typename T, typename U > struct is_member_pointer< U T::*volatile > : public ::boost::integral_constant { public: }; template< typename T, typename U > struct is_member_pointer< U T::*const volatile > : public ::boost::integral_constant { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 64 "/usr/include/boost/type_traits/is_member_pointer.hpp" 2 3 4 # 25 "/usr/include/boost/type_traits/is_pointer.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 33 "/usr/include/boost/type_traits/is_pointer.hpp" 2 3 4 namespace boost { namespace detail { template< typename T > struct is_pointer_helper { static const bool value = false; }; # 54 "/usr/include/boost/type_traits/is_pointer.hpp" 3 4 template< typename T > struct is_pointer_helper { static const bool value = true; }; template< typename T > struct is_pointer_impl { static const bool value = (::boost::type_traits::ice_and< ::boost::detail::is_pointer_helper::type>::value , ::boost::type_traits::ice_not< ::boost::is_member_pointer::value >::value >::value) ; }; } template< typename T > struct is_pointer : public ::boost::integral_constant::value> { public: }; # 84 "/usr/include/boost/type_traits/is_pointer.hpp" 3 4 } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 87 "/usr/include/boost/type_traits/is_pointer.hpp" 2 3 4 # 18 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/remove_pointer.hpp" 1 3 4 # 21 "/usr/include/boost/type_traits/remove_pointer.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 2 3 4 # 22 "/usr/include/boost/type_traits/remove_pointer.hpp" 2 3 4 namespace boost { # 71 "/usr/include/boost/type_traits/remove_pointer.hpp" 3 4 template< typename T > struct remove_pointer { public: typedef T type; }; template< typename T > struct remove_pointer { public: typedef T type; }; template< typename T > struct remove_pointer { public: typedef T type; }; template< typename T > struct remove_pointer { public: typedef T type; }; template< typename T > struct remove_pointer { public: typedef T type; }; } # 1 "/usr/include/boost/type_traits/detail/type_trait_undef.hpp" 1 3 4 # 82 "/usr/include/boost/type_traits/remove_pointer.hpp" 2 3 4 # 22 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 26 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 2 3 4 # 40 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 4 # 41 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 namespace boost { namespace detail { namespace has_plus_impl { template T &make(); struct no_operator { }; struct any { template any(T const&); }; no_operator operator + (const any&, const any&); # 82 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 struct returns_void_t { }; template int operator,(const T&, returns_void_t); template int operator,(const volatile T&, returns_void_t); template < typename Lhs, typename Rhs > struct operator_returns_void { static ::boost::type_traits::yes_type returns_void(returns_void_t); static ::boost::type_traits::no_type returns_void(int); static const bool value = (sizeof(::boost::type_traits::yes_type)==sizeof(returns_void((make() + make(),returns_void_t())))); }; struct dont_care { }; template < typename Lhs, typename Rhs, typename Ret, bool Returns_void > struct operator_returns_Ret; template < typename Lhs, typename Rhs > struct operator_returns_Ret < Lhs, Rhs, dont_care, true > { static const bool value = true; }; template < typename Lhs, typename Rhs > struct operator_returns_Ret < Lhs, Rhs, dont_care, false > { static const bool value = true; }; template < typename Lhs, typename Rhs > struct operator_returns_Ret < Lhs, Rhs, void, true > { static const bool value = true; }; template < typename Lhs, typename Rhs > struct operator_returns_Ret < Lhs, Rhs, void, false > { static const bool value = false; }; template < typename Lhs, typename Rhs, typename Ret > struct operator_returns_Ret < Lhs, Rhs, Ret, true > { static const bool value = false; }; template < typename Lhs, typename Rhs, typename Ret > struct operator_returns_Ret < Lhs, Rhs, Ret, false > { static ::boost::type_traits::yes_type is_convertible_to_Ret(Ret); static ::boost::type_traits::no_type is_convertible_to_Ret(...); static const bool value = (sizeof(is_convertible_to_Ret(make() + make()))==sizeof(::boost::type_traits::yes_type)); }; # 150 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 struct has_operator { }; no_operator operator,(no_operator, has_operator); template < typename Lhs, typename Rhs > struct operator_exists { static ::boost::type_traits::yes_type s_check(has_operator); static ::boost::type_traits::no_type s_check(no_operator); static const bool value = (sizeof(s_check(((make() + make()),make())))==sizeof(::boost::type_traits::yes_type)); }; # 169 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 template < typename Lhs, typename Rhs, typename Ret, bool Forbidden_if > struct trait_impl1; template < typename Lhs, typename Rhs, typename Ret > struct trait_impl1 < Lhs, Rhs, Ret, true > { static const bool value = false; }; template < typename Lhs, typename Rhs, typename Ret > struct trait_impl1 < Lhs, Rhs, Ret, false > { static const bool value = ( ::boost::type_traits::ice_and< operator_exists < Lhs, Rhs >::value, operator_returns_Ret < Lhs, Rhs, Ret, operator_returns_void < Lhs, Rhs >::value >::value >::value ) ; }; template < typename Rhs, typename Ret > struct trait_impl1 < void, Rhs, Ret, false > { static const bool value = false; }; template < typename Lhs, typename Ret > struct trait_impl1 < Lhs, void, Ret, false > { static const bool value = false; }; template < typename Ret > struct trait_impl1 < void, void, Ret, false > { static const bool value = false; }; template < typename Lhs, typename Rhs, typename Ret > struct trait_impl { typedef typename ::boost::remove_reference::type Lhs_noref; typedef typename ::boost::remove_reference::type Rhs_noref; typedef typename ::boost::remove_cv::type Lhs_nocv; typedef typename ::boost::remove_cv::type Rhs_nocv; typedef typename ::boost::remove_cv< typename ::boost::remove_reference< typename ::boost::remove_pointer::type >::type >::type Lhs_noptr; typedef typename ::boost::remove_cv< typename ::boost::remove_reference< typename ::boost::remove_pointer::type >::type >::type Rhs_noptr; static const bool value = (trait_impl1 < Lhs_noref, Rhs_noref, Ret, ::boost::type_traits::ice_or< ::boost::type_traits::ice_and< ::boost::is_pointer< Lhs_noref >::value, ::boost::is_pointer< Rhs_noref >::value >::value, ::boost::type_traits::ice_and< ::boost::is_pointer< Lhs_noref >::value, ::boost::is_void< Lhs_noptr >::value, ::boost::is_fundamental< Rhs_nocv >::value >::value, ::boost::type_traits::ice_and< ::boost::is_pointer< Rhs_noref >::value, ::boost::is_void< Rhs_noptr >::value, ::boost::is_fundamental< Lhs_nocv >::value >::value, ::boost::type_traits::ice_and< ::boost::is_pointer< Lhs_noref >::value, ::boost::is_fundamental< Rhs_nocv >::value, ::boost::type_traits::ice_not< ::boost::is_integral< Rhs_noref >::value >::value >::value, ::boost::type_traits::ice_and< ::boost::is_pointer< Rhs_noref >::value, ::boost::is_fundamental< Lhs_nocv >::value, ::boost::type_traits::ice_not< ::boost::is_integral< Lhs_noref >::value >::value >::value >::value >::value); }; } } template< typename Lhs, typename Rhs=Lhs, typename Ret=::boost::detail::has_plus_impl::dont_care > struct has_plus : public ::boost::integral_constant::value)> { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 229 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 2 3 # 49 "/usr/include/boost/type_traits/has_plus.hpp" 2 3 4 # 24 "/usr/include/boost/next_prior.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/has_plus_assign.hpp" 1 3 4 # 60 "/usr/include/boost/type_traits/has_plus_assign.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 1 3 4 # 25 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 26 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 2 3 4 # 40 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 4 # 41 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 namespace boost { namespace detail { namespace has_plus_assign_impl { template T &make(); struct no_operator { }; struct any { template any(T const&); }; no_operator operator += (const any&, const any&); # 82 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 struct returns_void_t { }; template int operator,(const T&, returns_void_t); template int operator,(const volatile T&, returns_void_t); template < typename Lhs, typename Rhs > struct operator_returns_void { static ::boost::type_traits::yes_type returns_void(returns_void_t); static ::boost::type_traits::no_type returns_void(int); static const bool value = (sizeof(::boost::type_traits::yes_type)==sizeof(returns_void((make() += make(),returns_void_t())))); }; struct dont_care { }; template < typename Lhs, typename Rhs, typename Ret, bool Returns_void > struct operator_returns_Ret; template < typename Lhs, typename Rhs > struct operator_returns_Ret < Lhs, Rhs, dont_care, true > { static const bool value = true; }; template < typename Lhs, typename Rhs > struct operator_returns_Ret < Lhs, Rhs, dont_care, false > { static const bool value = true; }; template < typename Lhs, typename Rhs > struct operator_returns_Ret < Lhs, Rhs, void, true > { static const bool value = true; }; template < typename Lhs, typename Rhs > struct operator_returns_Ret < Lhs, Rhs, void, false > { static const bool value = false; }; template < typename Lhs, typename Rhs, typename Ret > struct operator_returns_Ret < Lhs, Rhs, Ret, true > { static const bool value = false; }; template < typename Lhs, typename Rhs, typename Ret > struct operator_returns_Ret < Lhs, Rhs, Ret, false > { static ::boost::type_traits::yes_type is_convertible_to_Ret(Ret); static ::boost::type_traits::no_type is_convertible_to_Ret(...); static const bool value = (sizeof(is_convertible_to_Ret(make() += make()))==sizeof(::boost::type_traits::yes_type)); }; # 150 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 struct has_operator { }; no_operator operator,(no_operator, has_operator); template < typename Lhs, typename Rhs > struct operator_exists { static ::boost::type_traits::yes_type s_check(has_operator); static ::boost::type_traits::no_type s_check(no_operator); static const bool value = (sizeof(s_check(((make() += make()),make())))==sizeof(::boost::type_traits::yes_type)); }; # 169 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 template < typename Lhs, typename Rhs, typename Ret, bool Forbidden_if > struct trait_impl1; template < typename Lhs, typename Rhs, typename Ret > struct trait_impl1 < Lhs, Rhs, Ret, true > { static const bool value = false; }; template < typename Lhs, typename Rhs, typename Ret > struct trait_impl1 < Lhs, Rhs, Ret, false > { static const bool value = ( ::boost::type_traits::ice_and< operator_exists < Lhs, Rhs >::value, operator_returns_Ret < Lhs, Rhs, Ret, operator_returns_void < Lhs, Rhs >::value >::value >::value ) ; }; template < typename Rhs, typename Ret > struct trait_impl1 < void, Rhs, Ret, false > { static const bool value = false; }; template < typename Lhs, typename Ret > struct trait_impl1 < Lhs, void, Ret, false > { static const bool value = false; }; template < typename Ret > struct trait_impl1 < void, void, Ret, false > { static const bool value = false; }; template < typename Lhs, typename Rhs, typename Ret > struct trait_impl { typedef typename ::boost::remove_reference::type Lhs_noref; typedef typename ::boost::remove_reference::type Rhs_noref; typedef typename ::boost::remove_cv::type Lhs_nocv; typedef typename ::boost::remove_cv::type Rhs_nocv; typedef typename ::boost::remove_cv< typename ::boost::remove_reference< typename ::boost::remove_pointer::type >::type >::type Lhs_noptr; typedef typename ::boost::remove_cv< typename ::boost::remove_reference< typename ::boost::remove_pointer::type >::type >::type Rhs_noptr; static const bool value = (trait_impl1 < Lhs_noref, Rhs_noref, Ret, ::boost::type_traits::ice_or< ::boost::type_traits::ice_and< ::boost::is_pointer< Lhs_noref >::value, ::boost::is_pointer< Rhs_noref >::value >::value, ::boost::type_traits::ice_and< ::boost::is_pointer< Lhs_noref >::value, ::boost::is_void< Lhs_noptr >::value, ::boost::is_fundamental< Rhs_nocv >::value >::value, ::boost::type_traits::ice_and< ::boost::is_pointer< Rhs_noref >::value, ::boost::is_void< Rhs_noptr >::value, ::boost::is_fundamental< Lhs_nocv >::value >::value, ::boost::type_traits::ice_and< ::boost::is_pointer< Lhs_noref >::value, ::boost::is_fundamental< Rhs_nocv >::value, ::boost::type_traits::ice_not< ::boost::is_integral< Rhs_noref >::value >::value >::value, ::boost::type_traits::ice_and< ::boost::is_pointer< Rhs_noref >::value, ::boost::is_fundamental< Lhs_nocv >::value, ::boost::type_traits::ice_not< ::boost::is_same< Lhs_nocv, bool >::value >::value >::value, ::boost::type_traits::ice_and< ::boost::type_traits::ice_or< ::boost::is_fundamental< Lhs_nocv >::value, ::boost::is_pointer< Lhs_noref >::value >::value, ::boost::type_traits::ice_or< ::boost::is_fundamental< Rhs_nocv >::value, ::boost::is_pointer< Rhs_noref >::value >::value, ::boost::is_const< Lhs_noref >::value >::value >::value >::value); }; } } template< typename Lhs, typename Rhs=Lhs, typename Ret=::boost::detail::has_plus_assign_impl::dont_care > struct has_plus_assign : public ::boost::integral_constant::value)> { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 229 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 2 3 # 61 "/usr/include/boost/type_traits/has_plus_assign.hpp" 2 3 4 # 25 "/usr/include/boost/next_prior.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/has_minus.hpp" 1 3 4 # 54 "/usr/include/boost/type_traits/has_minus.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 1 3 4 # 25 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 26 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 2 3 4 # 40 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 4 # 41 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 namespace boost { namespace detail { namespace has_minus_impl { template T &make(); struct no_operator { }; struct any { template any(T const&); }; no_operator operator - (const any&, const any&); # 82 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 struct returns_void_t { }; template int operator,(const T&, returns_void_t); template int operator,(const volatile T&, returns_void_t); template < typename Lhs, typename Rhs > struct operator_returns_void { static ::boost::type_traits::yes_type returns_void(returns_void_t); static ::boost::type_traits::no_type returns_void(int); static const bool value = (sizeof(::boost::type_traits::yes_type)==sizeof(returns_void((make() - make(),returns_void_t())))); }; struct dont_care { }; template < typename Lhs, typename Rhs, typename Ret, bool Returns_void > struct operator_returns_Ret; template < typename Lhs, typename Rhs > struct operator_returns_Ret < Lhs, Rhs, dont_care, true > { static const bool value = true; }; template < typename Lhs, typename Rhs > struct operator_returns_Ret < Lhs, Rhs, dont_care, false > { static const bool value = true; }; template < typename Lhs, typename Rhs > struct operator_returns_Ret < Lhs, Rhs, void, true > { static const bool value = true; }; template < typename Lhs, typename Rhs > struct operator_returns_Ret < Lhs, Rhs, void, false > { static const bool value = false; }; template < typename Lhs, typename Rhs, typename Ret > struct operator_returns_Ret < Lhs, Rhs, Ret, true > { static const bool value = false; }; template < typename Lhs, typename Rhs, typename Ret > struct operator_returns_Ret < Lhs, Rhs, Ret, false > { static ::boost::type_traits::yes_type is_convertible_to_Ret(Ret); static ::boost::type_traits::no_type is_convertible_to_Ret(...); static const bool value = (sizeof(is_convertible_to_Ret(make() - make()))==sizeof(::boost::type_traits::yes_type)); }; # 150 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 struct has_operator { }; no_operator operator,(no_operator, has_operator); template < typename Lhs, typename Rhs > struct operator_exists { static ::boost::type_traits::yes_type s_check(has_operator); static ::boost::type_traits::no_type s_check(no_operator); static const bool value = (sizeof(s_check(((make() - make()),make())))==sizeof(::boost::type_traits::yes_type)); }; # 169 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 template < typename Lhs, typename Rhs, typename Ret, bool Forbidden_if > struct trait_impl1; template < typename Lhs, typename Rhs, typename Ret > struct trait_impl1 < Lhs, Rhs, Ret, true > { static const bool value = false; }; template < typename Lhs, typename Rhs, typename Ret > struct trait_impl1 < Lhs, Rhs, Ret, false > { static const bool value = ( ::boost::type_traits::ice_and< operator_exists < Lhs, Rhs >::value, operator_returns_Ret < Lhs, Rhs, Ret, operator_returns_void < Lhs, Rhs >::value >::value >::value ) ; }; template < typename Rhs, typename Ret > struct trait_impl1 < void, Rhs, Ret, false > { static const bool value = false; }; template < typename Lhs, typename Ret > struct trait_impl1 < Lhs, void, Ret, false > { static const bool value = false; }; template < typename Ret > struct trait_impl1 < void, void, Ret, false > { static const bool value = false; }; template < typename Lhs, typename Rhs, typename Ret > struct trait_impl { typedef typename ::boost::remove_reference::type Lhs_noref; typedef typename ::boost::remove_reference::type Rhs_noref; typedef typename ::boost::remove_cv::type Lhs_nocv; typedef typename ::boost::remove_cv::type Rhs_nocv; typedef typename ::boost::remove_cv< typename ::boost::remove_reference< typename ::boost::remove_pointer::type >::type >::type Lhs_noptr; typedef typename ::boost::remove_cv< typename ::boost::remove_reference< typename ::boost::remove_pointer::type >::type >::type Rhs_noptr; static const bool value = (trait_impl1 < Lhs_noref, Rhs_noref, Ret, ::boost::type_traits::ice_or< ::boost::type_traits::ice_and< ::boost::is_pointer< Lhs_noref >::value, ::boost::is_fundamental< Rhs_nocv >::value, ::boost::type_traits::ice_not< ::boost::is_integral< Rhs_noref >::value >::value >::value, ::boost::type_traits::ice_and< ::boost::is_pointer< Lhs_noref >::value, ::boost::is_void< Lhs_noptr >::value, ::boost::type_traits::ice_or< ::boost::is_fundamental< Rhs_nocv >::value, ::boost::is_pointer< Rhs_noref >::value >::value >::value, ::boost::type_traits::ice_and< ::boost::is_pointer< Rhs_noref >::value, ::boost::is_void< Rhs_noptr >::value, ::boost::type_traits::ice_or< ::boost::is_fundamental< Lhs_nocv >::value, ::boost::is_pointer< Lhs_noref >::value >::value >::value, ::boost::type_traits::ice_and< ::boost::is_fundamental< Lhs_nocv >::value, ::boost::is_pointer< Rhs_noref >::value >::value, ::boost::type_traits::ice_and< ::boost::is_pointer< Lhs_noref >::value, ::boost::is_pointer< Rhs_noref >::value, ::boost::type_traits::ice_not< ::boost::is_same< Lhs_nocv, Rhs_nocv >::value >::value >::value >::value >::value); }; } } template< typename Lhs, typename Rhs=Lhs, typename Ret=::boost::detail::has_minus_impl::dont_care > struct has_minus : public ::boost::integral_constant::value)> { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 229 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 2 3 # 55 "/usr/include/boost/type_traits/has_minus.hpp" 2 3 4 # 26 "/usr/include/boost/next_prior.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/has_minus_assign.hpp" 1 3 4 # 59 "/usr/include/boost/type_traits/has_minus_assign.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 1 3 4 # 25 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 26 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 2 3 4 # 40 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 4 # 41 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 namespace boost { namespace detail { namespace has_minus_assign_impl { template T &make(); struct no_operator { }; struct any { template any(T const&); }; no_operator operator -= (const any&, const any&); # 82 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 struct returns_void_t { }; template int operator,(const T&, returns_void_t); template int operator,(const volatile T&, returns_void_t); template < typename Lhs, typename Rhs > struct operator_returns_void { static ::boost::type_traits::yes_type returns_void(returns_void_t); static ::boost::type_traits::no_type returns_void(int); static const bool value = (sizeof(::boost::type_traits::yes_type)==sizeof(returns_void((make() -= make(),returns_void_t())))); }; struct dont_care { }; template < typename Lhs, typename Rhs, typename Ret, bool Returns_void > struct operator_returns_Ret; template < typename Lhs, typename Rhs > struct operator_returns_Ret < Lhs, Rhs, dont_care, true > { static const bool value = true; }; template < typename Lhs, typename Rhs > struct operator_returns_Ret < Lhs, Rhs, dont_care, false > { static const bool value = true; }; template < typename Lhs, typename Rhs > struct operator_returns_Ret < Lhs, Rhs, void, true > { static const bool value = true; }; template < typename Lhs, typename Rhs > struct operator_returns_Ret < Lhs, Rhs, void, false > { static const bool value = false; }; template < typename Lhs, typename Rhs, typename Ret > struct operator_returns_Ret < Lhs, Rhs, Ret, true > { static const bool value = false; }; template < typename Lhs, typename Rhs, typename Ret > struct operator_returns_Ret < Lhs, Rhs, Ret, false > { static ::boost::type_traits::yes_type is_convertible_to_Ret(Ret); static ::boost::type_traits::no_type is_convertible_to_Ret(...); static const bool value = (sizeof(is_convertible_to_Ret(make() -= make()))==sizeof(::boost::type_traits::yes_type)); }; # 150 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 struct has_operator { }; no_operator operator,(no_operator, has_operator); template < typename Lhs, typename Rhs > struct operator_exists { static ::boost::type_traits::yes_type s_check(has_operator); static ::boost::type_traits::no_type s_check(no_operator); static const bool value = (sizeof(s_check(((make() -= make()),make())))==sizeof(::boost::type_traits::yes_type)); }; # 169 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 template < typename Lhs, typename Rhs, typename Ret, bool Forbidden_if > struct trait_impl1; template < typename Lhs, typename Rhs, typename Ret > struct trait_impl1 < Lhs, Rhs, Ret, true > { static const bool value = false; }; template < typename Lhs, typename Rhs, typename Ret > struct trait_impl1 < Lhs, Rhs, Ret, false > { static const bool value = ( ::boost::type_traits::ice_and< operator_exists < Lhs, Rhs >::value, operator_returns_Ret < Lhs, Rhs, Ret, operator_returns_void < Lhs, Rhs >::value >::value >::value ) ; }; template < typename Rhs, typename Ret > struct trait_impl1 < void, Rhs, Ret, false > { static const bool value = false; }; template < typename Lhs, typename Ret > struct trait_impl1 < Lhs, void, Ret, false > { static const bool value = false; }; template < typename Ret > struct trait_impl1 < void, void, Ret, false > { static const bool value = false; }; template < typename Lhs, typename Rhs, typename Ret > struct trait_impl { typedef typename ::boost::remove_reference::type Lhs_noref; typedef typename ::boost::remove_reference::type Rhs_noref; typedef typename ::boost::remove_cv::type Lhs_nocv; typedef typename ::boost::remove_cv::type Rhs_nocv; typedef typename ::boost::remove_cv< typename ::boost::remove_reference< typename ::boost::remove_pointer::type >::type >::type Lhs_noptr; typedef typename ::boost::remove_cv< typename ::boost::remove_reference< typename ::boost::remove_pointer::type >::type >::type Rhs_noptr; static const bool value = (trait_impl1 < Lhs_noref, Rhs_noref, Ret, ::boost::type_traits::ice_or< ::boost::type_traits::ice_and< ::boost::is_pointer< Lhs_noref >::value, ::boost::is_fundamental< Rhs_nocv >::value, ::boost::type_traits::ice_not< ::boost::is_integral< Rhs_noref >::value >::value >::value, ::boost::type_traits::ice_and< ::boost::is_pointer< Lhs_noref >::value, ::boost::is_void< Lhs_noptr >::value, ::boost::is_fundamental< Rhs_nocv >::value >::value, ::boost::type_traits::ice_and< ::boost::is_pointer< Rhs_noref >::value, ::boost::is_void< Rhs_noptr >::value, ::boost::is_fundamental< Lhs_nocv >::value >::value, ::boost::type_traits::ice_and< ::boost::is_fundamental< Lhs_nocv >::value, ::boost::is_pointer< Rhs_noref >::value >::value, ::boost::type_traits::ice_and< ::boost::is_pointer< Lhs_noref >::value, ::boost::is_pointer< Rhs_noref >::value >::value, ::boost::type_traits::ice_and< ::boost::type_traits::ice_or< ::boost::is_fundamental< Lhs_nocv >::value, ::boost::is_pointer< Lhs_noref >::value >::value, ::boost::type_traits::ice_or< ::boost::is_fundamental< Rhs_nocv >::value, ::boost::is_pointer< Rhs_noref >::value >::value, ::boost::is_const< Lhs_noref >::value >::value >::value >::value); }; } } template< typename Lhs, typename Rhs=Lhs, typename Ret=::boost::detail::has_minus_assign_impl::dont_care > struct has_minus_assign : public ::boost::integral_constant::value)> { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 229 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 2 3 # 60 "/usr/include/boost/type_traits/has_minus_assign.hpp" 2 3 4 # 27 "/usr/include/boost/next_prior.hpp" 2 3 4 namespace boost { # 40 "/usr/include/boost/next_prior.hpp" 3 4 namespace next_prior_detail { template< typename T, typename Distance, bool HasPlus = has_plus< T, Distance >::value > struct next_impl2 { static T call(T x, Distance n) { std::advance(x, n); return x; } }; template< typename T, typename Distance > struct next_impl2< T, Distance, true > { static T call(T x, Distance n) { return x + n; } }; template< typename T, typename Distance, bool HasPlusAssign = has_plus_assign< T, Distance >::value > struct next_impl1 : public next_impl2< T, Distance > { }; template< typename T, typename Distance > struct next_impl1< T, Distance, true > { static T call(T x, Distance n) { x += n; return x; } }; template< typename T, typename Distance, typename PromotedDistance = typename integral_promotion< Distance >::type, bool IsUInt = is_unsigned< PromotedDistance >::value > struct prior_impl3 { static T call(T x, Distance n) { std::advance(x, -n); return x; } }; template< typename T, typename Distance, typename PromotedDistance > struct prior_impl3< T, Distance, PromotedDistance, true > { static T call(T x, Distance n) { typedef typename make_signed< PromotedDistance >::type signed_distance; std::advance(x, -static_cast< signed_distance >(static_cast< PromotedDistance >(n))); return x; } }; template< typename T, typename Distance, bool HasMinus = has_minus< T, Distance >::value > struct prior_impl2 : public prior_impl3< T, Distance > { }; template< typename T, typename Distance > struct prior_impl2< T, Distance, true > { static T call(T x, Distance n) { return x - n; } }; template< typename T, typename Distance, bool HasMinusAssign = has_minus_assign< T, Distance >::value > struct prior_impl1 : public prior_impl2< T, Distance > { }; template< typename T, typename Distance > struct prior_impl1< T, Distance, true > { static T call(T x, Distance n) { x -= n; return x; } }; } template inline T next(T x) { return ++x; } template inline T next(T x, Distance n) { return next_prior_detail::next_impl1< T, Distance >::call(x, n); } template inline T prior(T x) { return --x; } template inline T prior(T x, Distance n) { return next_prior_detail::prior_impl1< T, Distance >::call(x, n); } } # 11 "/usr/include/boost/iterator/reverse_iterator.hpp" 2 3 4 # 1 "/usr/include/boost/iterator.hpp" 1 3 4 # 13 "/usr/include/boost/iterator.hpp" 3 4 namespace boost { using std::iterator; } # 12 "/usr/include/boost/iterator/reverse_iterator.hpp" 2 3 4 # 1 "/usr/include/boost/iterator/iterator_adaptor.hpp" 1 3 4 # 14 "/usr/include/boost/iterator/iterator_adaptor.hpp" 3 4 # 1 "/usr/include/boost/iterator/iterator_categories.hpp" 1 3 4 # 11 "/usr/include/boost/iterator/iterator_categories.hpp" 3 4 # 1 "/usr/include/boost/iterator/detail/config_def.hpp" 1 3 4 # 12 "/usr/include/boost/iterator/iterator_categories.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/placeholders.hpp" 1 3 4 # 24 "/usr/include/boost/mpl/placeholders.hpp" 3 4 # 1 "/usr/include/boost/mpl/arg.hpp" 1 3 4 # 23 "/usr/include/boost/mpl/arg.hpp" 3 4 # 1 "/usr/include/boost/mpl/arg_fwd.hpp" 1 3 4 # 21 "/usr/include/boost/mpl/arg_fwd.hpp" 3 4 namespace mpl_ { template< int N > struct arg; } namespace boost { namespace mpl { using ::mpl_::arg; } } # 24 "/usr/include/boost/mpl/arg.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/na_assert.hpp" 1 3 4 # 26 "/usr/include/boost/mpl/arg.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/arity_spec.hpp" 1 3 4 # 27 "/usr/include/boost/mpl/arg.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/arg_typedef.hpp" 1 3 4 # 28 "/usr/include/boost/mpl/arg.hpp" 2 3 4 # 37 "/usr/include/boost/mpl/arg.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/arg.hpp" 1 3 4 # 13 "/usr/include/boost/mpl/aux_/preprocessed/gcc/arg.hpp" 3 4 namespace mpl_ { template<> struct arg< -1 > { static const int value = -1; template< typename U1 = na, typename U2 = na, typename U3 = na , typename U4 = na, typename U5 = na > struct apply { typedef U1 type; enum { mpl_assertion_in_line_27 = sizeof( boost::mpl::assertion_failed( boost::mpl::assert_not_arg( (void (*) (boost::mpl::is_na))0, 1 ) ) ) }; }; }; template<> struct arg<1> { static const int value = 1; typedef arg<2> next; template< typename U1 = na, typename U2 = na, typename U3 = na , typename U4 = na, typename U5 = na > struct apply { typedef U1 type; enum { mpl_assertion_in_line_45 = sizeof( boost::mpl::assertion_failed( boost::mpl::assert_not_arg( (void (*) (boost::mpl::is_na))0, 1 ) ) ) }; }; }; template<> struct arg<2> { static const int value = 2; typedef arg<3> next; template< typename U1 = na, typename U2 = na, typename U3 = na , typename U4 = na, typename U5 = na > struct apply { typedef U2 type; enum { mpl_assertion_in_line_63 = sizeof( boost::mpl::assertion_failed( boost::mpl::assert_not_arg( (void (*) (boost::mpl::is_na))0, 1 ) ) ) }; }; }; template<> struct arg<3> { static const int value = 3; typedef arg<4> next; template< typename U1 = na, typename U2 = na, typename U3 = na , typename U4 = na, typename U5 = na > struct apply { typedef U3 type; enum { mpl_assertion_in_line_81 = sizeof( boost::mpl::assertion_failed( boost::mpl::assert_not_arg( (void (*) (boost::mpl::is_na))0, 1 ) ) ) }; }; }; template<> struct arg<4> { static const int value = 4; typedef arg<5> next; template< typename U1 = na, typename U2 = na, typename U3 = na , typename U4 = na, typename U5 = na > struct apply { typedef U4 type; enum { mpl_assertion_in_line_99 = sizeof( boost::mpl::assertion_failed( boost::mpl::assert_not_arg( (void (*) (boost::mpl::is_na))0, 1 ) ) ) }; }; }; template<> struct arg<5> { static const int value = 5; typedef arg<6> next; template< typename U1 = na, typename U2 = na, typename U3 = na , typename U4 = na, typename U5 = na > struct apply { typedef U5 type; enum { mpl_assertion_in_line_117 = sizeof( boost::mpl::assertion_failed( boost::mpl::assert_not_arg( (void (*) (boost::mpl::is_na))0, 1 ) ) ) }; }; }; } # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 38 "/usr/include/boost/mpl/arg.hpp" 2 3 4 # 25 "/usr/include/boost/mpl/placeholders.hpp" 2 3 4 # 43 "/usr/include/boost/mpl/placeholders.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp" 1 3 4 # 13 "/usr/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp" 3 4 namespace mpl_ { typedef arg< -1 > _; } namespace boost { namespace mpl { using ::mpl_::_; namespace placeholders { using mpl_::_; } }} namespace mpl_ { typedef arg<1> _1; } namespace boost { namespace mpl { using ::mpl_::_1; namespace placeholders { using mpl_::_1; } }} namespace mpl_ { typedef arg<2> _2; } namespace boost { namespace mpl { using ::mpl_::_2; namespace placeholders { using mpl_::_2; } }} namespace mpl_ { typedef arg<3> _3; } namespace boost { namespace mpl { using ::mpl_::_3; namespace placeholders { using mpl_::_3; } }} namespace mpl_ { typedef arg<4> _4; } namespace boost { namespace mpl { using ::mpl_::_4; namespace placeholders { using mpl_::_4; } }} namespace mpl_ { typedef arg<5> _5; } namespace boost { namespace mpl { using ::mpl_::_5; namespace placeholders { using mpl_::_5; } }} namespace mpl_ { typedef arg<6> _6; } namespace boost { namespace mpl { using ::mpl_::_6; namespace placeholders { using mpl_::_6; } }} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 44 "/usr/include/boost/mpl/placeholders.hpp" 2 3 4 # 18 "/usr/include/boost/iterator/iterator_categories.hpp" 2 3 4 namespace boost { namespace iterators { struct no_traversal_tag {}; struct incrementable_traversal_tag : no_traversal_tag { }; struct single_pass_traversal_tag : incrementable_traversal_tag { }; struct forward_traversal_tag : single_pass_traversal_tag { }; struct bidirectional_traversal_tag : forward_traversal_tag { }; struct random_access_traversal_tag : bidirectional_traversal_tag { }; namespace detail { template struct old_category_to_traversal : mpl::eval_if< is_convertible , mpl::identity , mpl::eval_if< is_convertible , mpl::identity , mpl::eval_if< is_convertible , mpl::identity , mpl::eval_if< is_convertible , mpl::identity , mpl::eval_if< is_convertible , mpl::identity , void > > > > > {}; } template struct iterator_category_to_traversal : mpl::eval_if< is_convertible , mpl::identity , boost::iterators::detail::old_category_to_traversal > {}; template struct iterator_traversal : iterator_category_to_traversal< typename boost::detail::iterator_traits::iterator_category > {}; # 145 "/usr/include/boost/iterator/iterator_categories.hpp" 3 4 template struct pure_traversal_tag : mpl::eval_if< is_convertible , mpl::identity , mpl::eval_if< is_convertible , mpl::identity , mpl::eval_if< is_convertible , mpl::identity , mpl::eval_if< is_convertible , mpl::identity , mpl::eval_if< is_convertible , mpl::identity , void > > > > > { }; namespace detail { using iterators::pure_traversal_tag; } template struct pure_iterator_traversal : pure_traversal_tag::type> {}; # 200 "/usr/include/boost/iterator/iterator_categories.hpp" 3 4 } using iterators::no_traversal_tag; using iterators::incrementable_traversal_tag; using iterators::single_pass_traversal_tag; using iterators::forward_traversal_tag; using iterators::bidirectional_traversal_tag; using iterators::random_access_traversal_tag; using iterators::iterator_category_to_traversal; using iterators::iterator_traversal; namespace detail { using iterators::pure_traversal_tag; } } # 1 "/usr/include/boost/iterator/detail/config_undef.hpp" 1 3 4 # 221 "/usr/include/boost/iterator/iterator_categories.hpp" 2 3 4 # 15 "/usr/include/boost/iterator/iterator_adaptor.hpp" 2 3 4 # 1 "/usr/include/boost/iterator/iterator_facade.hpp" 1 3 4 # 12 "/usr/include/boost/iterator/iterator_facade.hpp" 3 4 # 1 "/usr/include/boost/iterator/interoperable.hpp" 1 3 4 # 15 "/usr/include/boost/iterator/interoperable.hpp" 3 4 # 1 "/usr/include/boost/iterator/detail/config_def.hpp" 1 3 4 # 16 "/usr/include/boost/iterator/interoperable.hpp" 2 3 4 namespace boost { namespace iterators { # 34 "/usr/include/boost/iterator/interoperable.hpp" 3 4 template struct is_interoperable : mpl::or_< is_convertible< A, B > , is_convertible< B, A > > { }; } using iterators::is_interoperable; } # 1 "/usr/include/boost/iterator/detail/config_undef.hpp" 1 3 4 # 53 "/usr/include/boost/iterator/interoperable.hpp" 2 3 4 # 13 "/usr/include/boost/iterator/iterator_facade.hpp" 2 3 4 # 1 "/usr/include/boost/iterator/detail/facade_iterator_category.hpp" 1 3 4 # 23 "/usr/include/boost/iterator/detail/facade_iterator_category.hpp" 3 4 # 1 "/usr/include/boost/iterator/detail/config_def.hpp" 1 3 4 # 24 "/usr/include/boost/iterator/detail/facade_iterator_category.hpp" 2 3 4 # 1 "/usr/include/boost/detail/indirect_traits.hpp" 1 3 4 # 30 "/usr/include/boost/detail/indirect_traits.hpp" 3 4 namespace boost { namespace detail { namespace indirect_traits { template struct is_reference_to_const : mpl::false_ { }; template struct is_reference_to_const : mpl::true_ { }; # 51 "/usr/include/boost/detail/indirect_traits.hpp" 3 4 template struct is_reference_to_function : mpl::false_ { }; template struct is_reference_to_function : is_function { }; template struct is_pointer_to_function : mpl::false_ { }; template struct is_pointer_to_function : is_function { }; template struct is_reference_to_member_function_pointer_impl : mpl::false_ { }; template struct is_reference_to_member_function_pointer_impl : is_member_function_pointer::type> { }; template struct is_reference_to_member_function_pointer : is_reference_to_member_function_pointer_impl { }; template struct is_reference_to_function_pointer_aux : mpl::and_< is_reference , is_pointer_to_function< typename remove_cv< typename remove_reference::type >::type > > { }; template struct is_reference_to_function_pointer : mpl::if_< is_reference_to_function , mpl::false_ , is_reference_to_function_pointer_aux >::type { }; template struct is_reference_to_non_const : mpl::and_< is_reference , mpl::not_< is_reference_to_const > > { }; template struct is_reference_to_volatile : mpl::false_ { }; template struct is_reference_to_volatile : mpl::true_ { }; # 145 "/usr/include/boost/detail/indirect_traits.hpp" 3 4 template struct is_reference_to_pointer : mpl::false_ { }; template struct is_reference_to_pointer : mpl::true_ { }; template struct is_reference_to_pointer : mpl::true_ { }; template struct is_reference_to_pointer : mpl::true_ { }; template struct is_reference_to_pointer : mpl::true_ { }; template struct is_reference_to_class : mpl::and_< is_reference , is_class< typename remove_cv< typename remove_reference::type >::type > > { }; template struct is_pointer_to_class : mpl::and_< is_pointer , is_class< typename remove_cv< typename remove_pointer::type >::type > > { }; } using namespace indirect_traits; }} # 27 "/usr/include/boost/iterator/detail/facade_iterator_category.hpp" 2 3 4 namespace boost { namespace iterators { struct use_default; namespace detail { struct input_output_iterator_tag : std::input_iterator_tag { operator std::output_iterator_tag() const { return std::output_iterator_tag(); } }; template struct iterator_writability_disabled : mpl::or_< is_const , boost::detail::indirect_traits::is_reference_to_const , is_const > {}; # 83 "/usr/include/boost/iterator/detail/facade_iterator_category.hpp" 3 4 template struct iterator_facade_default_category : mpl::eval_if< mpl::and_< is_reference , is_convertible > , mpl::eval_if< is_convertible , mpl::identity , mpl::if_< is_convertible , std::bidirectional_iterator_tag , std::forward_iterator_tag > > , typename mpl::eval_if< mpl::and_< is_convertible , is_convertible > , mpl::identity , mpl::identity > > { }; template struct is_iterator_category : mpl::or_< is_convertible , is_convertible > { }; template struct is_iterator_traversal : is_convertible {}; template struct iterator_category_with_traversal : Category, Traversal { enum { mpl_assertion_in_line_145 = sizeof( boost::mpl::assertion_failed( boost::mpl::assert_not_arg( (void (*) ( is_convertible< typename iterator_category_to_traversal::type , Traversal >))0, 1 ) ) ) } ; enum { mpl_assertion_in_line_147 = sizeof( boost::mpl::assertion_failed( boost::mpl::assert_arg( (void (*) (is_iterator_category))0, 1 ) ) ) }; enum { mpl_assertion_in_line_148 = sizeof( boost::mpl::assertion_failed( boost::mpl::assert_not_arg( (void (*) (is_iterator_category))0, 1 ) ) ) }; enum { mpl_assertion_in_line_149 = sizeof( boost::mpl::assertion_failed( boost::mpl::assert_not_arg( (void (*) (is_iterator_traversal))0, 1 ) ) ) }; enum { mpl_assertion_in_line_151 = sizeof( boost::mpl::assertion_failed( boost::mpl::assert_arg( (void (*) (is_iterator_traversal))0, 1 ) ) ) }; }; template struct facade_iterator_category_impl { enum { mpl_assertion_in_line_160 = sizeof( boost::mpl::assertion_failed( boost::mpl::assert_not_arg( (void (*) (is_iterator_category))0, 1 ) ) ) }; typedef typename iterator_facade_default_category< Traversal,ValueParam,Reference >::type category; typedef typename mpl::if_< is_same< Traversal , typename iterator_category_to_traversal::type > , category , iterator_category_with_traversal >::type type; }; template struct facade_iterator_category : mpl::eval_if< is_iterator_category , mpl::identity , facade_iterator_category_impl > { }; }}} # 1 "/usr/include/boost/iterator/detail/config_undef.hpp" 1 3 4 # 192 "/usr/include/boost/iterator/detail/facade_iterator_category.hpp" 2 3 4 # 17 "/usr/include/boost/iterator/iterator_facade.hpp" 2 3 4 # 1 "/usr/include/boost/iterator/detail/enable_if.hpp" 1 3 4 # 13 "/usr/include/boost/iterator/detail/enable_if.hpp" 3 4 # 1 "/usr/include/boost/iterator/detail/config_def.hpp" 1 3 4 # 14 "/usr/include/boost/iterator/detail/enable_if.hpp" 2 3 4 namespace boost { namespace iterators { template struct enabled { template struct base { typedef T type; }; }; template<> struct enabled { template struct base { # 62 "/usr/include/boost/iterator/detail/enable_if.hpp" 3 4 }; }; template struct enable_if : enabled<(Cond::value)>::template base { }; } } # 1 "/usr/include/boost/iterator/detail/config_undef.hpp" 1 3 4 # 82 "/usr/include/boost/iterator/detail/enable_if.hpp" 2 3 4 # 18 "/usr/include/boost/iterator/iterator_facade.hpp" 2 3 4 # 1 "/usr/include/boost/utility/addressof.hpp" 1 3 4 # 15 "/usr/include/boost/utility/addressof.hpp" 3 4 # 1 "/usr/include/boost/core/addressof.hpp" 1 3 4 # 19 "/usr/include/boost/core/addressof.hpp" 3 4 namespace boost { namespace detail { template struct addr_impl_ref { T & v_; inline __attribute__ ((__always_inline__)) addr_impl_ref( T & v ): v_( v ) {} inline __attribute__ ((__always_inline__)) operator T& () const { return v_; } private: addr_impl_ref & operator=(const addr_impl_ref &); }; template struct addressof_impl { static inline __attribute__ ((__always_inline__)) T * f( T & v, long ) { return reinterpret_cast( &const_cast(reinterpret_cast(v))); } static inline __attribute__ ((__always_inline__)) T * f( T * v, int ) { return v; } }; # 104 "/usr/include/boost/core/addressof.hpp" 3 4 } template inline __attribute__ ((__always_inline__)) T * addressof( T & v ) { return boost::detail::addressof_impl::f( boost::detail::addr_impl_ref( v ), 0 ); } # 160 "/usr/include/boost/core/addressof.hpp" 3 4 } # 16 "/usr/include/boost/utility/addressof.hpp" 2 3 4 # 21 "/usr/include/boost/iterator/iterator_facade.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/add_pointer.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/add_pointer.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 2 3 4 # 16 "/usr/include/boost/type_traits/add_pointer.hpp" 2 3 4 namespace boost { namespace detail { # 55 "/usr/include/boost/type_traits/add_pointer.hpp" 3 4 template struct add_pointer_impl { typedef typename remove_reference::type no_ref_type; typedef no_ref_type* type; }; } template< typename T > struct add_pointer { public: typedef typename boost::detail::add_pointer_impl::type type; }; } # 1 "/usr/include/boost/type_traits/detail/type_trait_undef.hpp" 1 3 4 # 71 "/usr/include/boost/type_traits/add_pointer.hpp" 2 3 4 # 25 "/usr/include/boost/iterator/iterator_facade.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/is_pod.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/is_pod.hpp" 3 4 # 1 "/usr/include/boost/type_traits/is_scalar.hpp" 1 3 4 # 20 "/usr/include/boost/type_traits/is_scalar.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 21 "/usr/include/boost/type_traits/is_scalar.hpp" 2 3 4 namespace boost { namespace detail { template struct is_scalar_impl { static const bool value = (::boost::type_traits::ice_or< ::boost::is_arithmetic::value, ::boost::is_enum::value, ::boost::is_pointer::value, ::boost::is_member_pointer::value >::value) ; }; template <> struct is_scalar_impl{ static const bool value = false; }; template <> struct is_scalar_impl{ static const bool value = false; }; template <> struct is_scalar_impl{ static const bool value = false; }; template <> struct is_scalar_impl{ static const bool value = false; }; } template< typename T > struct is_scalar : public ::boost::integral_constant::value> { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 54 "/usr/include/boost/type_traits/is_scalar.hpp" 2 3 4 # 15 "/usr/include/boost/type_traits/is_pod.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 22 "/usr/include/boost/type_traits/is_pod.hpp" 2 3 4 namespace boost { template< typename T > struct is_POD; namespace detail { template struct is_pod_impl { static const bool value = (::boost::type_traits::ice_or< ::boost::is_scalar::value, ::boost::is_void::value, __is_pod(T) >::value) ; }; template struct is_pod_impl : public is_pod_impl { }; template<> struct is_pod_impl< void > { public: static const bool value = (true); }; template<> struct is_pod_impl< void const > { public: static const bool value = (true); }; template<> struct is_pod_impl< void volatile > { public: static const bool value = (true); }; template<> struct is_pod_impl< void const volatile > { public: static const bool value = (true); }; } template< typename T > struct is_pod : public ::boost::integral_constant::value> { public: }; template< typename T > struct is_POD : public ::boost::integral_constant::value> { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 76 "/usr/include/boost/type_traits/is_pod.hpp" 2 3 4 # 29 "/usr/include/boost/iterator/iterator_facade.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/always.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/always.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessor/default_params.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/always.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Value > struct always { template< typename T1 = na , typename T2 = na , typename T3 = na , typename T4 = na , typename T5 = na > struct apply { typedef Value type; }; }; }} # 36 "/usr/include/boost/iterator/iterator_facade.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/apply.hpp" 1 3 4 # 22 "/usr/include/boost/mpl/apply.hpp" 3 4 # 1 "/usr/include/boost/mpl/apply_fwd.hpp" 1 3 4 # 31 "/usr/include/boost/mpl/apply_fwd.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/apply_fwd.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/aux_/preprocessed/gcc/apply_fwd.hpp" 3 4 namespace boost { namespace mpl { template< typename F, typename T1 = na, typename T2 = na, typename T3 = na , typename T4 = na, typename T5 = na > struct apply; template< typename F > struct apply0; template< typename F, typename T1 > struct apply1; template< typename F, typename T1, typename T2 > struct apply2; template< typename F, typename T1, typename T2, typename T3 > struct apply3; template< typename F, typename T1, typename T2, typename T3, typename T4 > struct apply4; template< typename F, typename T1, typename T2, typename T3, typename T4 , typename T5 > struct apply5; }} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 32 "/usr/include/boost/mpl/apply_fwd.hpp" 2 3 4 # 23 "/usr/include/boost/mpl/apply.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/apply_wrap.hpp" 1 3 4 # 23 "/usr/include/boost/mpl/apply_wrap.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/has_apply.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/aux_/has_apply.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/config/has_apply.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/aux_/has_apply.hpp" 2 3 4 namespace boost { namespace mpl { namespace aux { template< typename T, typename fallback_ = boost::mpl::bool_ > struct has_apply { struct gcc_3_2_wknd { template< typename U > static boost::mpl::aux::yes_tag test( boost::mpl::aux::type_wrapper const volatile* , boost::mpl::aux::type_wrapper* = 0 ); static boost::mpl::aux::no_tag test(...); }; typedef boost::mpl::aux::type_wrapper t_; static const bool value = sizeof(gcc_3_2_wknd::test(static_cast(0))) == sizeof(boost::mpl::aux::yes_tag); typedef boost::mpl::bool_ type; }; }}} # 24 "/usr/include/boost/mpl/apply_wrap.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/msvc_never_true.hpp" 1 3 4 # 26 "/usr/include/boost/mpl/apply_wrap.hpp" 2 3 4 # 34 "/usr/include/boost/mpl/apply_wrap.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/apply_wrap.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/aux_/preprocessed/gcc/apply_wrap.hpp" 3 4 namespace boost { namespace mpl { template< typename F , typename has_apply_ = typename aux::has_apply::type > struct apply_wrap0 : F::template apply< > { }; template< typename F > struct apply_wrap0< F,true_ > : F::apply { }; template< typename F, typename T1 > struct apply_wrap1 : F::template apply { }; template< typename F, typename T1, typename T2 > struct apply_wrap2 : F::template apply< T1,T2 > { }; template< typename F, typename T1, typename T2, typename T3 > struct apply_wrap3 : F::template apply< T1,T2,T3 > { }; template< typename F, typename T1, typename T2, typename T3, typename T4 > struct apply_wrap4 : F::template apply< T1,T2,T3,T4 > { }; template< typename F, typename T1, typename T2, typename T3, typename T4 , typename T5 > struct apply_wrap5 : F::template apply< T1,T2,T3,T4,T5 > { }; }} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 35 "/usr/include/boost/mpl/apply_wrap.hpp" 2 3 4 # 24 "/usr/include/boost/mpl/apply.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/placeholders.hpp" 1 3 4 # 25 "/usr/include/boost/mpl/apply.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/lambda.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/lambda.hpp" 3 4 # 1 "/usr/include/boost/mpl/bind.hpp" 1 3 4 # 23 "/usr/include/boost/mpl/bind.hpp" 3 4 # 1 "/usr/include/boost/mpl/bind_fwd.hpp" 1 3 4 # 25 "/usr/include/boost/mpl/bind_fwd.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/config/bind.hpp" 1 3 4 # 26 "/usr/include/boost/mpl/bind_fwd.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/bind_fwd.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/aux_/preprocessed/gcc/bind_fwd.hpp" 3 4 namespace boost { namespace mpl { template< typename F, typename T1 = na, typename T2 = na, typename T3 = na , typename T4 = na, typename T5 = na > struct bind; template< typename F > struct bind0; template< typename F, typename T1 > struct bind1; template< typename F, typename T1, typename T2 > struct bind2; template< typename F, typename T1, typename T2, typename T3 > struct bind3; template< typename F, typename T1, typename T2, typename T3, typename T4 > struct bind4; template< typename F, typename T1, typename T2, typename T3, typename T4 , typename T5 > struct bind5; }} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 33 "/usr/include/boost/mpl/bind_fwd.hpp" 2 3 4 # 24 "/usr/include/boost/mpl/bind.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/placeholders.hpp" 1 3 4 # 25 "/usr/include/boost/mpl/bind.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/next.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/next.hpp" 3 4 # 1 "/usr/include/boost/mpl/next_prior.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/next_prior.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/common_name_wknd.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/next_prior.hpp" 2 3 4 namespace boost { namespace mpl { template< typename T = na > struct next { typedef typename T::next type; }; template< typename T = na > struct prior { typedef typename T::prior type; }; template<> struct next< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : next< T1 > { }; }; template< typename Tag > struct lambda< next< na > , Tag , int_<-1> > { typedef false_ is_le; typedef next< na > result_; typedef next< na > type; }; namespace aux { template< typename T1 > struct template_arity< next< T1 > > : int_<1> { }; template<> struct template_arity< next< na > > : int_<-1> { }; } template<> struct prior< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : prior< T1 > { }; }; template< typename Tag > struct lambda< prior< na > , Tag , int_<-1> > { typedef false_ is_le; typedef prior< na > result_; typedef prior< na > type; }; namespace aux { template< typename T1 > struct template_arity< prior< T1 > > : int_<1> { }; template<> struct template_arity< prior< na > > : int_<-1> { }; } }} # 18 "/usr/include/boost/mpl/next.hpp" 2 3 4 # 26 "/usr/include/boost/mpl/bind.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/protect.hpp" 1 3 4 # 23 "/usr/include/boost/mpl/protect.hpp" 3 4 namespace boost { namespace mpl { template< typename T = na , int not_le_ = 0 > struct protect : T { typedef protect type; }; # 48 "/usr/include/boost/mpl/protect.hpp" 3 4 template<> struct protect< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : protect< T1 > { }; }; namespace aux { template< typename T1 > struct template_arity< protect< T1 > > : int_<1> { }; template<> struct template_arity< protect< na > > : int_<-1> { }; } }} # 27 "/usr/include/boost/mpl/bind.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/apply_wrap.hpp" 1 3 4 # 28 "/usr/include/boost/mpl/bind.hpp" 2 3 4 # 50 "/usr/include/boost/mpl/bind.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/bind.hpp" 1 3 4 # 13 "/usr/include/boost/mpl/aux_/preprocessed/gcc/bind.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< typename T, typename U1, typename U2, typename U3, typename U4 , typename U5 > struct resolve_bind_arg { typedef T type; }; template< typename T , typename Arg > struct replace_unnamed_arg { typedef Arg next; typedef T type; }; template< typename Arg > struct replace_unnamed_arg< arg< -1 >, Arg > { typedef typename Arg::next next; typedef Arg type; }; template< int N, typename U1, typename U2, typename U3, typename U4, typename U5 > struct resolve_bind_arg< arg, U1, U2, U3, U4, U5 > { typedef typename apply_wrap5, U1, U2, U3, U4, U5>::type type; }; template< typename F, typename T1, typename T2, typename T3, typename T4 , typename T5, typename U1, typename U2, typename U3, typename U4 , typename U5 > struct resolve_bind_arg< bind< F,T1,T2,T3,T4,T5 >, U1, U2, U3, U4, U5 > { typedef bind< F,T1,T2,T3,T4,T5 > f_; typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type; }; } template< typename F > struct bind0 { template< typename U1 = na, typename U2 = na, typename U3 = na , typename U4 = na, typename U5 = na > struct apply { private: typedef aux::replace_unnamed_arg< F, mpl::arg<1> > r0; typedef typename r0::type a0; typedef typename r0::next n1; typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_; public: typedef typename apply_wrap0< f_ >::type type; }; }; namespace aux { template< typename F, typename U1, typename U2, typename U3, typename U4 , typename U5 > struct resolve_bind_arg< bind0, U1, U2, U3, U4, U5 > { typedef bind0 f_; typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type; }; } namespace aux { template< typename T1 > struct template_arity< bind0< T1> > : int_<1> { }; } template< typename F > struct bind< F,na,na,na,na,na > : bind0 { }; template< typename F, typename T1 > struct bind1 { template< typename U1 = na, typename U2 = na, typename U3 = na , typename U4 = na, typename U5 = na > struct apply { private: typedef aux::replace_unnamed_arg< F, mpl::arg<1> > r0; typedef typename r0::type a0; typedef typename r0::next n1; typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_; typedef aux::replace_unnamed_arg< T1,n1 > r1; typedef typename r1::type a1; typedef typename r1::next n2; typedef aux::resolve_bind_arg< a1,U1,U2,U3,U4,U5 > t1; public: typedef typename apply_wrap1< f_ , typename t1::type >::type type; }; }; namespace aux { template< typename F, typename T1, typename U1, typename U2, typename U3 , typename U4, typename U5 > struct resolve_bind_arg< bind1< F,T1 >, U1, U2, U3, U4, U5 > { typedef bind1< F,T1 > f_; typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type; }; } namespace aux { template< typename T1 , typename T2 > struct template_arity< bind1< T1 , T2> > : int_<2> { }; } template< typename F, typename T1 > struct bind< F,T1,na,na,na,na > : bind1< F,T1 > { }; template< typename F, typename T1, typename T2 > struct bind2 { template< typename U1 = na, typename U2 = na, typename U3 = na , typename U4 = na, typename U5 = na > struct apply { private: typedef aux::replace_unnamed_arg< F, mpl::arg<1> > r0; typedef typename r0::type a0; typedef typename r0::next n1; typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_; typedef aux::replace_unnamed_arg< T1,n1 > r1; typedef typename r1::type a1; typedef typename r1::next n2; typedef aux::resolve_bind_arg< a1,U1,U2,U3,U4,U5 > t1; typedef aux::replace_unnamed_arg< T2,n2 > r2; typedef typename r2::type a2; typedef typename r2::next n3; typedef aux::resolve_bind_arg< a2,U1,U2,U3,U4,U5 > t2; public: typedef typename apply_wrap2< f_ , typename t1::type, typename t2::type >::type type; }; }; namespace aux { template< typename F, typename T1, typename T2, typename U1, typename U2 , typename U3, typename U4, typename U5 > struct resolve_bind_arg< bind2< F,T1,T2 >, U1, U2, U3, U4, U5 > { typedef bind2< F,T1,T2 > f_; typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type; }; } namespace aux { template< typename T1 , typename T2 , typename T3 > struct template_arity< bind2< T1 , T2 , T3> > : int_<3> { }; } template< typename F, typename T1, typename T2 > struct bind< F,T1,T2,na,na,na > : bind2< F,T1,T2 > { }; template< typename F, typename T1, typename T2, typename T3 > struct bind3 { template< typename U1 = na, typename U2 = na, typename U3 = na , typename U4 = na, typename U5 = na > struct apply { private: typedef aux::replace_unnamed_arg< F, mpl::arg<1> > r0; typedef typename r0::type a0; typedef typename r0::next n1; typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_; typedef aux::replace_unnamed_arg< T1,n1 > r1; typedef typename r1::type a1; typedef typename r1::next n2; typedef aux::resolve_bind_arg< a1,U1,U2,U3,U4,U5 > t1; typedef aux::replace_unnamed_arg< T2,n2 > r2; typedef typename r2::type a2; typedef typename r2::next n3; typedef aux::resolve_bind_arg< a2,U1,U2,U3,U4,U5 > t2; typedef aux::replace_unnamed_arg< T3,n3 > r3; typedef typename r3::type a3; typedef typename r3::next n4; typedef aux::resolve_bind_arg< a3,U1,U2,U3,U4,U5 > t3; public: typedef typename apply_wrap3< f_ , typename t1::type, typename t2::type, typename t3::type >::type type; }; }; namespace aux { template< typename F, typename T1, typename T2, typename T3, typename U1 , typename U2, typename U3, typename U4, typename U5 > struct resolve_bind_arg< bind3< F,T1,T2,T3 >, U1, U2, U3, U4, U5 > { typedef bind3< F,T1,T2,T3 > f_; typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type; }; } namespace aux { template< typename T1 , typename T2 , typename T3 , typename T4 > struct template_arity< bind3< T1 , T2 , T3 , T4> > : int_<4> { }; } template< typename F, typename T1, typename T2, typename T3 > struct bind< F,T1,T2,T3,na,na > : bind3< F,T1,T2,T3 > { }; template< typename F, typename T1, typename T2, typename T3, typename T4 > struct bind4 { template< typename U1 = na, typename U2 = na, typename U3 = na , typename U4 = na, typename U5 = na > struct apply { private: typedef aux::replace_unnamed_arg< F, mpl::arg<1> > r0; typedef typename r0::type a0; typedef typename r0::next n1; typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_; typedef aux::replace_unnamed_arg< T1,n1 > r1; typedef typename r1::type a1; typedef typename r1::next n2; typedef aux::resolve_bind_arg< a1,U1,U2,U3,U4,U5 > t1; typedef aux::replace_unnamed_arg< T2,n2 > r2; typedef typename r2::type a2; typedef typename r2::next n3; typedef aux::resolve_bind_arg< a2,U1,U2,U3,U4,U5 > t2; typedef aux::replace_unnamed_arg< T3,n3 > r3; typedef typename r3::type a3; typedef typename r3::next n4; typedef aux::resolve_bind_arg< a3,U1,U2,U3,U4,U5 > t3; typedef aux::replace_unnamed_arg< T4,n4 > r4; typedef typename r4::type a4; typedef typename r4::next n5; typedef aux::resolve_bind_arg< a4,U1,U2,U3,U4,U5 > t4; public: typedef typename apply_wrap4< f_ , typename t1::type, typename t2::type, typename t3::type , typename t4::type >::type type; }; }; namespace aux { template< typename F, typename T1, typename T2, typename T3, typename T4 , typename U1, typename U2, typename U3, typename U4, typename U5 > struct resolve_bind_arg< bind4< F,T1,T2,T3,T4 >, U1, U2, U3, U4, U5 > { typedef bind4< F,T1,T2,T3,T4 > f_; typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type; }; } namespace aux { template< typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > struct template_arity< bind4< T1 , T2 , T3 , T4 , T5> > : int_<5> { }; } template< typename F, typename T1, typename T2, typename T3, typename T4 > struct bind< F,T1,T2,T3,T4,na > : bind4< F,T1,T2,T3,T4 > { }; template< typename F, typename T1, typename T2, typename T3, typename T4 , typename T5 > struct bind5 { template< typename U1 = na, typename U2 = na, typename U3 = na , typename U4 = na, typename U5 = na > struct apply { private: typedef aux::replace_unnamed_arg< F, mpl::arg<1> > r0; typedef typename r0::type a0; typedef typename r0::next n1; typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_; typedef aux::replace_unnamed_arg< T1,n1 > r1; typedef typename r1::type a1; typedef typename r1::next n2; typedef aux::resolve_bind_arg< a1,U1,U2,U3,U4,U5 > t1; typedef aux::replace_unnamed_arg< T2,n2 > r2; typedef typename r2::type a2; typedef typename r2::next n3; typedef aux::resolve_bind_arg< a2,U1,U2,U3,U4,U5 > t2; typedef aux::replace_unnamed_arg< T3,n3 > r3; typedef typename r3::type a3; typedef typename r3::next n4; typedef aux::resolve_bind_arg< a3,U1,U2,U3,U4,U5 > t3; typedef aux::replace_unnamed_arg< T4,n4 > r4; typedef typename r4::type a4; typedef typename r4::next n5; typedef aux::resolve_bind_arg< a4,U1,U2,U3,U4,U5 > t4; typedef aux::replace_unnamed_arg< T5,n5 > r5; typedef typename r5::type a5; typedef typename r5::next n6; typedef aux::resolve_bind_arg< a5,U1,U2,U3,U4,U5 > t5; public: typedef typename apply_wrap5< f_ , typename t1::type, typename t2::type, typename t3::type , typename t4::type, typename t5::type >::type type; }; }; namespace aux { template< typename F, typename T1, typename T2, typename T3, typename T4 , typename T5, typename U1, typename U2, typename U3, typename U4 , typename U5 > struct resolve_bind_arg< bind5< F,T1,T2,T3,T4,T5 >, U1, U2, U3, U4, U5 > { typedef bind5< F,T1,T2,T3,T4,T5 > f_; typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type; }; } namespace aux { template< typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > struct template_arity< bind5< T1 , T2 , T3 , T4 , T5 , T6> > : int_<6> { }; } template< typename F, typename T1, typename T2, typename T3, typename T4 , typename T5 > struct bind : bind5< F,T1,T2,T3,T4,T5 > { }; template< template< typename T1, typename T2, typename T3 > class F, typename Tag > struct quote3; template< typename T1, typename T2, typename T3 > struct if_; template< typename Tag, typename T1, typename T2, typename T3 > struct bind3< quote3< if_,Tag > , T1, T2, T3 > { template< typename U1 = na, typename U2 = na, typename U3 = na , typename U4 = na, typename U5 = na > struct apply { private: typedef mpl::arg<1> n1; typedef aux::replace_unnamed_arg< T1,n1 > r1; typedef typename r1::type a1; typedef typename r1::next n2; typedef aux::resolve_bind_arg< a1,U1,U2,U3,U4,U5 > t1; typedef aux::replace_unnamed_arg< T2,n2 > r2; typedef typename r2::type a2; typedef typename r2::next n3; typedef aux::resolve_bind_arg< a2,U1,U2,U3,U4,U5 > t2; typedef aux::replace_unnamed_arg< T3,n3 > r3; typedef typename r3::type a3; typedef typename r3::next n4; typedef aux::resolve_bind_arg< a3,U1,U2,U3,U4,U5 > t3; typedef typename if_< typename t1::type , t2, t3 >::type f_; public: typedef typename f_::type type; }; }; template< template< typename T1, typename T2, typename T3 > class F, typename Tag > struct quote3; template< typename T1, typename T2, typename T3 > struct eval_if; template< typename Tag, typename T1, typename T2, typename T3 > struct bind3< quote3< eval_if,Tag > , T1, T2, T3 > { template< typename U1 = na, typename U2 = na, typename U3 = na , typename U4 = na, typename U5 = na > struct apply { private: typedef mpl::arg<1> n1; typedef aux::replace_unnamed_arg< T1,n1 > r1; typedef typename r1::type a1; typedef typename r1::next n2; typedef aux::resolve_bind_arg< a1,U1,U2,U3,U4,U5 > t1; typedef aux::replace_unnamed_arg< T2,n2 > r2; typedef typename r2::type a2; typedef typename r2::next n3; typedef aux::resolve_bind_arg< a2,U1,U2,U3,U4,U5 > t2; typedef aux::replace_unnamed_arg< T3,n3 > r3; typedef typename r3::type a3; typedef typename r3::next n4; typedef aux::resolve_bind_arg< a3,U1,U2,U3,U4,U5 > t3; typedef typename eval_if< typename t1::type , t2, t3 >::type f_; public: typedef typename f_::type type; }; }; }} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 51 "/usr/include/boost/mpl/bind.hpp" 2 3 4 # 19 "/usr/include/boost/mpl/lambda.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/full_lambda.hpp" 1 3 4 # 23 "/usr/include/boost/mpl/aux_/full_lambda.hpp" 3 4 # 1 "/usr/include/boost/mpl/bind_fwd.hpp" 1 3 4 # 24 "/usr/include/boost/mpl/aux_/full_lambda.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/quote.hpp" 1 3 4 # 22 "/usr/include/boost/mpl/quote.hpp" 3 4 # 1 "/usr/include/boost/mpl/void.hpp" 1 3 4 # 23 "/usr/include/boost/mpl/void.hpp" 3 4 namespace mpl_ { struct void_ { typedef void_ type; }; } namespace boost { namespace mpl { template< typename T > struct is_void_ : false_ { }; template<> struct is_void_ : true_ { }; template< typename T > struct is_not_void_ : true_ { }; template<> struct is_not_void_ : false_ { }; template<> struct is_void_< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : is_void_< T1 > { }; }; template< typename Tag > struct lambda< is_void_< na > , Tag , int_<-1> > { typedef false_ is_le; typedef is_void_< na > result_; typedef is_void_< na > type; }; namespace aux { template< typename T1 > struct template_arity< is_void_< T1 > > : int_<1> { }; template<> struct template_arity< is_void_< na > > : int_<-1> { }; } template<> struct is_not_void_< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : is_not_void_< T1 > { }; }; template< typename Tag > struct lambda< is_not_void_< na > , Tag , int_<-1> > { typedef false_ is_le; typedef is_not_void_< na > result_; typedef is_not_void_< na > type; }; namespace aux { template< typename T1 > struct template_arity< is_not_void_< T1 > > : int_<1> { }; template<> struct template_arity< is_not_void_< na > > : int_<-1> { }; } }} # 23 "/usr/include/boost/mpl/quote.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/has_type.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/aux_/has_type.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< typename T, typename fallback_ = boost::mpl::bool_ > struct has_type { struct gcc_3_2_wknd { template< typename U > static boost::mpl::aux::yes_tag test( boost::mpl::aux::type_wrapper const volatile* , boost::mpl::aux::type_wrapper* = 0 ); static boost::mpl::aux::no_tag test(...); }; typedef boost::mpl::aux::type_wrapper t_; static const bool value = sizeof(gcc_3_2_wknd::test(static_cast(0))) == sizeof(boost::mpl::aux::yes_tag); typedef boost::mpl::bool_ type; }; }}} # 24 "/usr/include/boost/mpl/quote.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/config/bcc.hpp" 1 3 4 # 27 "/usr/include/boost/mpl/quote.hpp" 2 3 4 # 45 "/usr/include/boost/mpl/quote.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/quote.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/aux_/preprocessed/gcc/quote.hpp" 3 4 namespace boost { namespace mpl { template< typename T, bool has_type_ > struct quote_impl { typedef typename T::type type; }; template< typename T > struct quote_impl< T,false > { typedef T type; }; template< template< typename P1 > class F , typename Tag = void_ > struct quote1 { template< typename U1 > struct apply : quote_impl< F , aux::has_type< F >::value > { }; }; template< template< typename P1, typename P2 > class F , typename Tag = void_ > struct quote2 { template< typename U1, typename U2 > struct apply : quote_impl< F< U1,U2 > , aux::has_type< F< U1,U2 > >::value > { }; }; template< template< typename P1, typename P2, typename P3 > class F , typename Tag = void_ > struct quote3 { template< typename U1, typename U2, typename U3 > struct apply : quote_impl< F< U1,U2,U3 > , aux::has_type< F< U1,U2,U3 > >::value > { }; }; template< template< typename P1, typename P2, typename P3, typename P4 > class F , typename Tag = void_ > struct quote4 { template< typename U1, typename U2, typename U3, typename U4 > struct apply : quote_impl< F< U1,U2,U3,U4 > , aux::has_type< F< U1,U2,U3,U4 > >::value > { }; }; template< template< typename P1, typename P2, typename P3, typename P4 , typename P5 > class F , typename Tag = void_ > struct quote5 { template< typename U1, typename U2, typename U3, typename U4 , typename U5 > struct apply : quote_impl< F< U1,U2,U3,U4,U5 > , aux::has_type< F< U1,U2,U3,U4,U5 > >::value > { }; }; }} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 46 "/usr/include/boost/mpl/quote.hpp" 2 3 4 # 26 "/usr/include/boost/mpl/aux_/full_lambda.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/arg.hpp" 1 3 4 # 27 "/usr/include/boost/mpl/aux_/full_lambda.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/template_arity.hpp" 1 3 4 # 43 "/usr/include/boost/mpl/aux_/template_arity.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< int N > struct arity_tag { typedef char (&type)[N + 1]; }; template< int C1, int C2, int C3, int C4, int C5, int C6 > struct max_arity { static const int value = ( C6 > 0 ? C6 : ( C5 > 0 ? C5 : ( C4 > 0 ? C4 : ( C3 > 0 ? C3 : ( C2 > 0 ? C2 : ( C1 > 0 ? C1 : -1 ) ) ) ) ) ) ; }; arity_tag<0>::type arity_helper(...); template< template< typename P1 > class F , typename T1 > typename arity_tag<1>::type arity_helper(type_wrapper< F >, arity_tag<1>); template< template< typename P1, typename P2 > class F , typename T1, typename T2 > typename arity_tag<2>::type arity_helper(type_wrapper< F< T1,T2 > >, arity_tag<2>); template< template< typename P1, typename P2, typename P3 > class F , typename T1, typename T2, typename T3 > typename arity_tag<3>::type arity_helper(type_wrapper< F< T1,T2,T3 > >, arity_tag<3>); template< template< typename P1, typename P2, typename P3, typename P4 > class F , typename T1, typename T2, typename T3, typename T4 > typename arity_tag<4>::type arity_helper(type_wrapper< F< T1,T2,T3,T4 > >, arity_tag<4>); template< template< typename P1, typename P2, typename P3, typename P4 , typename P5 > class F , typename T1, typename T2, typename T3, typename T4, typename T5 > typename arity_tag<5>::type arity_helper(type_wrapper< F< T1,T2,T3,T4,T5 > >, arity_tag<5>); template< template< typename P1, typename P2, typename P3, typename P4 , typename P5, typename P6 > class F , typename T1, typename T2, typename T3, typename T4, typename T5 , typename T6 > typename arity_tag<6>::type arity_helper(type_wrapper< F< T1,T2,T3,T4,T5,T6 > >, arity_tag<6>); template< typename F, int N > struct template_arity_impl { static const int value = sizeof(::boost::mpl::aux::arity_helper(type_wrapper(), arity_tag())) - 1 ; }; template< typename F > struct template_arity { static const int value = ( max_arity< template_arity_impl< F,1 >::value, template_arity_impl< F,2 >::value, template_arity_impl< F,3 >::value, template_arity_impl< F,4 >::value, template_arity_impl< F,5 >::value, template_arity_impl< F,6 >::value >::value ) ; typedef mpl::int_ type; }; }}} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 44 "/usr/include/boost/mpl/aux_/template_arity.hpp" 2 3 4 # 30 "/usr/include/boost/mpl/aux_/full_lambda.hpp" 2 3 4 # 44 "/usr/include/boost/mpl/aux_/full_lambda.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/full_lambda.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/aux_/preprocessed/gcc/full_lambda.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< bool C1 = false, bool C2 = false, bool C3 = false, bool C4 = false , bool C5 = false > struct lambda_or : true_ { }; template<> struct lambda_or< false,false,false,false,false > : false_ { }; } template< typename T , typename Tag , typename Arity > struct lambda { typedef false_ is_le; typedef T result_; typedef T type; }; template< typename T > struct is_lambda_expression : lambda::is_le { }; template< int N, typename Tag > struct lambda< arg,Tag, int_< -1 > > { typedef true_ is_le; typedef mpl::arg result_; typedef mpl::protect type; }; template< typename F , typename Tag > struct lambda< bind0 , Tag , int_<1> > { typedef false_ is_le; typedef bind0< F > result_; typedef result_ type; }; namespace aux { template< typename IsLE, typename Tag , template< typename P1 > class F , typename L1 > struct le_result1 { typedef F< typename L1::type > result_; typedef result_ type; }; template< typename Tag , template< typename P1 > class F , typename L1 > struct le_result1< true_,Tag,F,L1 > { typedef bind1< quote1< F,Tag > , typename L1::result_ > result_; typedef mpl::protect type; }; } template< template< typename P1 > class F , typename T1 , typename Tag > struct lambda< F , Tag , int_<1> > { typedef lambda< T1,Tag > l1; typedef typename l1::is_le is_le1; typedef typename aux::lambda_or< is_le1::value >::type is_le; typedef aux::le_result1< is_le, Tag, F, l1 > le_result_; typedef typename le_result_::result_ result_; typedef typename le_result_::type type; }; template< typename F, typename T1 , typename Tag > struct lambda< bind1< F,T1 > , Tag , int_<2> > { typedef false_ is_le; typedef bind1< F , T1 > result_; typedef result_ type; }; namespace aux { template< typename IsLE, typename Tag , template< typename P1, typename P2 > class F , typename L1, typename L2 > struct le_result2 { typedef F< typename L1::type, typename L2::type > result_; typedef result_ type; }; template< typename Tag , template< typename P1, typename P2 > class F , typename L1, typename L2 > struct le_result2< true_,Tag,F,L1,L2 > { typedef bind2< quote2< F,Tag > , typename L1::result_, typename L2::result_ > result_; typedef mpl::protect type; }; } template< template< typename P1, typename P2 > class F , typename T1, typename T2 , typename Tag > struct lambda< F< T1,T2 > , Tag , int_<2> > { typedef lambda< T1,Tag > l1; typedef lambda< T2,Tag > l2; typedef typename l1::is_le is_le1; typedef typename l2::is_le is_le2; typedef typename aux::lambda_or< is_le1::value, is_le2::value >::type is_le; typedef aux::le_result2< is_le, Tag, F, l1, l2 > le_result_; typedef typename le_result_::result_ result_; typedef typename le_result_::type type; }; template< typename F, typename T1, typename T2 , typename Tag > struct lambda< bind2< F,T1,T2 > , Tag , int_<3> > { typedef false_ is_le; typedef bind2< F , T1, T2 > result_; typedef result_ type; }; namespace aux { template< typename IsLE, typename Tag , template< typename P1, typename P2, typename P3 > class F , typename L1, typename L2, typename L3 > struct le_result3 { typedef F< typename L1::type, typename L2::type, typename L3::type > result_; typedef result_ type; }; template< typename Tag , template< typename P1, typename P2, typename P3 > class F , typename L1, typename L2, typename L3 > struct le_result3< true_,Tag,F,L1,L2,L3 > { typedef bind3< quote3< F,Tag > , typename L1::result_, typename L2::result_, typename L3::result_ > result_; typedef mpl::protect type; }; } template< template< typename P1, typename P2, typename P3 > class F , typename T1, typename T2, typename T3 , typename Tag > struct lambda< F< T1,T2,T3 > , Tag , int_<3> > { typedef lambda< T1,Tag > l1; typedef lambda< T2,Tag > l2; typedef lambda< T3,Tag > l3; typedef typename l1::is_le is_le1; typedef typename l2::is_le is_le2; typedef typename l3::is_le is_le3; typedef typename aux::lambda_or< is_le1::value, is_le2::value, is_le3::value >::type is_le; typedef aux::le_result3< is_le, Tag, F, l1, l2, l3 > le_result_; typedef typename le_result_::result_ result_; typedef typename le_result_::type type; }; template< typename F, typename T1, typename T2, typename T3 , typename Tag > struct lambda< bind3< F,T1,T2,T3 > , Tag , int_<4> > { typedef false_ is_le; typedef bind3< F , T1, T2, T3 > result_; typedef result_ type; }; namespace aux { template< typename IsLE, typename Tag , template< typename P1, typename P2, typename P3, typename P4 > class F , typename L1, typename L2, typename L3, typename L4 > struct le_result4 { typedef F< typename L1::type, typename L2::type, typename L3::type , typename L4::type > result_; typedef result_ type; }; template< typename Tag , template< typename P1, typename P2, typename P3, typename P4 > class F , typename L1, typename L2, typename L3, typename L4 > struct le_result4< true_,Tag,F,L1,L2,L3,L4 > { typedef bind4< quote4< F,Tag > , typename L1::result_, typename L2::result_, typename L3::result_ , typename L4::result_ > result_; typedef mpl::protect type; }; } template< template< typename P1, typename P2, typename P3, typename P4 > class F , typename T1, typename T2, typename T3, typename T4 , typename Tag > struct lambda< F< T1,T2,T3,T4 > , Tag , int_<4> > { typedef lambda< T1,Tag > l1; typedef lambda< T2,Tag > l2; typedef lambda< T3,Tag > l3; typedef lambda< T4,Tag > l4; typedef typename l1::is_le is_le1; typedef typename l2::is_le is_le2; typedef typename l3::is_le is_le3; typedef typename l4::is_le is_le4; typedef typename aux::lambda_or< is_le1::value, is_le2::value, is_le3::value, is_le4::value >::type is_le; typedef aux::le_result4< is_le, Tag, F, l1, l2, l3, l4 > le_result_; typedef typename le_result_::result_ result_; typedef typename le_result_::type type; }; template< typename F, typename T1, typename T2, typename T3, typename T4 , typename Tag > struct lambda< bind4< F,T1,T2,T3,T4 > , Tag , int_<5> > { typedef false_ is_le; typedef bind4< F , T1, T2, T3, T4 > result_; typedef result_ type; }; namespace aux { template< typename IsLE, typename Tag , template< typename P1, typename P2, typename P3, typename P4, typename P5 > class F , typename L1, typename L2, typename L3, typename L4, typename L5 > struct le_result5 { typedef F< typename L1::type, typename L2::type, typename L3::type , typename L4::type, typename L5::type > result_; typedef result_ type; }; template< typename Tag , template< typename P1, typename P2, typename P3, typename P4, typename P5 > class F , typename L1, typename L2, typename L3, typename L4, typename L5 > struct le_result5< true_,Tag,F,L1,L2,L3,L4,L5 > { typedef bind5< quote5< F,Tag > , typename L1::result_, typename L2::result_, typename L3::result_ , typename L4::result_, typename L5::result_ > result_; typedef mpl::protect type; }; } template< template< typename P1, typename P2, typename P3, typename P4 , typename P5 > class F , typename T1, typename T2, typename T3, typename T4, typename T5 , typename Tag > struct lambda< F< T1,T2,T3,T4,T5 > , Tag , int_<5> > { typedef lambda< T1,Tag > l1; typedef lambda< T2,Tag > l2; typedef lambda< T3,Tag > l3; typedef lambda< T4,Tag > l4; typedef lambda< T5,Tag > l5; typedef typename l1::is_le is_le1; typedef typename l2::is_le is_le2; typedef typename l3::is_le is_le3; typedef typename l4::is_le is_le4; typedef typename l5::is_le is_le5; typedef typename aux::lambda_or< is_le1::value, is_le2::value, is_le3::value, is_le4::value , is_le5::value >::type is_le; typedef aux::le_result5< is_le, Tag, F, l1, l2, l3, l4, l5 > le_result_; typedef typename le_result_::result_ result_; typedef typename le_result_::type type; }; template< typename F, typename T1, typename T2, typename T3, typename T4 , typename T5 , typename Tag > struct lambda< bind5< F,T1,T2,T3,T4,T5 > , Tag , int_<6> > { typedef false_ is_le; typedef bind5< F , T1, T2, T3, T4, T5 > result_; typedef result_ type; }; template< typename T, typename Tag > struct lambda< mpl::protect,Tag, int_<1> > { typedef false_ is_le; typedef mpl::protect result_; typedef result_ type; }; template< typename F, typename T1, typename T2, typename T3, typename T4 , typename T5 , typename Tag > struct lambda< bind< F,T1,T2,T3,T4,T5 > , Tag , int_<6> > { typedef false_ is_le; typedef bind< F,T1,T2,T3,T4,T5 > result_; typedef result_ type; }; template< typename F , typename Tag1 , typename Tag2 , typename Arity > struct lambda< lambda< F,Tag1,Arity > , Tag2 , int_<3> > { typedef lambda< F,Tag2 > l1; typedef lambda< Tag1,Tag2 > l2; typedef typename l1::is_le is_le; typedef bind1< quote1, typename l1::result_ > arity_; typedef lambda< typename if_< is_le,arity_,Arity >::type, Tag2 > l3; typedef aux::le_result3 le_result_; typedef typename le_result_::result_ result_; typedef typename le_result_::type type; }; template<> struct lambda< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : lambda< T1 , T2 > { }; }; template< typename Tag > struct lambda< lambda< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef lambda< na , na > result_; typedef lambda< na , na > type; }; namespace aux { template< typename T1 , typename T2 , typename T3 > struct template_arity< lambda< T1 , T2 , T3 > > : int_<3> { }; template<> struct template_arity< lambda< na , na > > : int_<-1> { }; } }} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 45 "/usr/include/boost/mpl/aux_/full_lambda.hpp" 2 3 4 # 23 "/usr/include/boost/mpl/lambda.hpp" 2 3 4 # 26 "/usr/include/boost/mpl/apply.hpp" 2 3 4 # 36 "/usr/include/boost/mpl/apply.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/apply.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/aux_/preprocessed/gcc/apply.hpp" 3 4 namespace boost { namespace mpl { template< typename F > struct apply0 : apply_wrap0< typename lambda::type > { }; template< typename F > struct apply< F,na,na,na,na,na > : apply0 { }; template< typename F, typename T1 > struct apply1 : apply_wrap1< typename lambda::type , T1 > { }; template< typename F, typename T1 > struct apply< F,T1,na,na,na,na > : apply1< F,T1 > { }; template< typename F, typename T1, typename T2 > struct apply2 : apply_wrap2< typename lambda::type , T1, T2 > { }; template< typename F, typename T1, typename T2 > struct apply< F,T1,T2,na,na,na > : apply2< F,T1,T2 > { }; template< typename F, typename T1, typename T2, typename T3 > struct apply3 : apply_wrap3< typename lambda::type , T1, T2, T3 > { }; template< typename F, typename T1, typename T2, typename T3 > struct apply< F,T1,T2,T3,na,na > : apply3< F,T1,T2,T3 > { }; template< typename F, typename T1, typename T2, typename T3, typename T4 > struct apply4 : apply_wrap4< typename lambda::type , T1, T2, T3, T4 > { }; template< typename F, typename T1, typename T2, typename T3, typename T4 > struct apply< F,T1,T2,T3,T4,na > : apply4< F,T1,T2,T3,T4 > { }; template< typename F, typename T1, typename T2, typename T3, typename T4 , typename T5 > struct apply5 : apply_wrap5< typename lambda::type , T1, T2, T3, T4, T5 > { }; template< typename F, typename T1, typename T2, typename T3, typename T4 , typename T5 > struct apply : apply5< F,T1,T2,T3,T4,T5 > { }; }} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 37 "/usr/include/boost/mpl/apply.hpp" 2 3 4 # 37 "/usr/include/boost/iterator/iterator_facade.hpp" 2 3 4 # 1 "/usr/include/boost/iterator/detail/config_def.hpp" 1 3 4 # 40 "/usr/include/boost/iterator/iterator_facade.hpp" 2 3 4 namespace boost { namespace iterators { template class iterator_facade; namespace detail { struct always_bool2 { template struct apply { typedef bool type; }; }; template< typename CategoryOrTraversal, typename Required > struct is_traversal_at_least : public boost::is_convertible< typename iterator_category_to_traversal< CategoryOrTraversal >::type, Required > {}; template < class Facade1 , class Facade2 , class Return > struct enable_if_interoperable : public boost::iterators::enable_if< is_interoperable< Facade1, Facade2 > , Return > {}; template < class Facade1 , class Facade2 , class Return > struct enable_if_interoperable_and_random_access_traversal : public boost::iterators::enable_if< mpl::and_< is_interoperable< Facade1, Facade2 > , is_traversal_at_least< typename iterator_category< Facade1 >::type, random_access_traversal_tag > , is_traversal_at_least< typename iterator_category< Facade2 >::type, random_access_traversal_tag > > , Return > {}; template < class ValueParam , class CategoryOrTraversal , class Reference , class Difference > struct iterator_facade_types { typedef typename facade_iterator_category< CategoryOrTraversal, ValueParam, Reference >::type iterator_category; typedef typename remove_const::type value_type; typedef typename mpl::eval_if< boost::iterators::detail::iterator_writability_disabled , add_pointer , add_pointer >::type pointer; # 143 "/usr/include/boost/iterator/iterator_facade.hpp" 3 4 }; template class postfix_increment_proxy { typedef typename iterator_value::type value_type; public: explicit postfix_increment_proxy(Iterator const& x) : stored_value(*x) {} value_type& operator*() const { return this->stored_value; } private: mutable value_type stored_value; }; template class writable_postfix_increment_proxy { typedef typename iterator_value::type value_type; public: explicit writable_postfix_increment_proxy(Iterator const& x) : stored_value(*x) , stored_iterator(x) {} writable_postfix_increment_proxy const& operator*() const { return *this; } operator value_type&() const { return stored_value; } template T const& operator=(T const& x) const { *this->stored_iterator = x; return x; } template T& operator=(T& x) const { *this->stored_iterator = x; return x; } operator Iterator const&() const { return stored_iterator; } private: mutable value_type stored_value; Iterator stored_iterator; }; # 257 "/usr/include/boost/iterator/iterator_facade.hpp" 3 4 template struct is_non_proxy_reference : is_convertible< typename remove_reference::type const volatile* , Value const volatile* > {}; # 282 "/usr/include/boost/iterator/iterator_facade.hpp" 3 4 template struct postfix_increment_result : mpl::eval_if< mpl::and_< is_convertible , mpl::not_< is_convertible< typename iterator_category_to_traversal::type , forward_traversal_tag > > > , mpl::if_< is_non_proxy_reference , postfix_increment_proxy , writable_postfix_increment_proxy > , mpl::identity > {}; template struct operator_arrow_dispatch { struct proxy { explicit proxy(Reference const & x) : m_ref(x) {} Reference* operator->() { return boost::addressof(m_ref); } operator Reference*() { return boost::addressof(m_ref); } Reference m_ref; }; typedef proxy result_type; static result_type apply(Reference const & x) { return result_type(x); } }; template struct operator_arrow_dispatch { typedef Pointer result_type; static result_type apply(T& x) { return boost::addressof(x); } }; template class operator_brackets_proxy { typedef typename Iterator::reference reference; typedef typename Iterator::value_type value_type; public: operator_brackets_proxy(Iterator const& iter) : m_iter(iter) {} operator reference() const { return *m_iter; } operator_brackets_proxy& operator=(value_type const& val) { *m_iter = val; return *this; } private: Iterator m_iter; }; template struct use_operator_brackets_proxy : mpl::not_< mpl::and_< boost::is_POD , iterator_writability_disabled > > {}; template struct operator_brackets_result { typedef typename mpl::if_< use_operator_brackets_proxy , operator_brackets_proxy , Value >::type type; }; template operator_brackets_proxy make_operator_brackets_result(Iterator const& iter, mpl::true_) { return operator_brackets_proxy(iter); } template typename Iterator::value_type make_operator_brackets_result(Iterator const& iter, mpl::false_) { return *iter; } struct choose_difference_type { template struct apply : mpl::eval_if< is_convertible , iterator_difference , iterator_difference > {}; }; template < class Derived , class Value , class CategoryOrTraversal , class Reference , class Difference , bool IsBidirectionalTraversal , bool IsRandomAccessTraversal > class iterator_facade_base; } # 487 "/usr/include/boost/iterator/iterator_facade.hpp" 3 4 class iterator_core_access { template friend class iterator_facade; template friend class detail::iterator_facade_base; template < class Derived1, class V1, class TC1, class Reference1, class Difference1 , class Derived2, class V2, class TC2, class Reference2, class Difference2 > friend typename boost::iterators::detail::enable_if_interoperable< Derived1, Derived2 , typename mpl::apply2::type >::type operator ==( iterator_facade const& lhs , iterator_facade const& rhs); template < class Derived1, class V1, class TC1, class Reference1, class Difference1 , class Derived2, class V2, class TC2, class Reference2, class Difference2 > friend typename boost::iterators::detail::enable_if_interoperable< Derived1, Derived2 , typename mpl::apply2::type >::type operator !=( iterator_facade const& lhs , iterator_facade const& rhs); template < class Derived1, class V1, class TC1, class Reference1, class Difference1 , class Derived2, class V2, class TC2, class Reference2, class Difference2 > friend typename boost::iterators::detail::enable_if_interoperable_and_random_access_traversal< Derived1, Derived2 , typename mpl::apply2::type >::type operator <( iterator_facade const& lhs , iterator_facade const& rhs); template < class Derived1, class V1, class TC1, class Reference1, class Difference1 , class Derived2, class V2, class TC2, class Reference2, class Difference2 > friend typename boost::iterators::detail::enable_if_interoperable_and_random_access_traversal< Derived1, Derived2 , typename mpl::apply2::type >::type operator >( iterator_facade const& lhs , iterator_facade const& rhs); template < class Derived1, class V1, class TC1, class Reference1, class Difference1 , class Derived2, class V2, class TC2, class Reference2, class Difference2 > friend typename boost::iterators::detail::enable_if_interoperable_and_random_access_traversal< Derived1, Derived2 , typename mpl::apply2::type >::type operator <=( iterator_facade const& lhs , iterator_facade const& rhs); template < class Derived1, class V1, class TC1, class Reference1, class Difference1 , class Derived2, class V2, class TC2, class Reference2, class Difference2 > friend typename boost::iterators::detail::enable_if_interoperable_and_random_access_traversal< Derived1, Derived2 , typename mpl::apply2::type >::type operator >=( iterator_facade const& lhs , iterator_facade const& rhs); template < class Derived1, class V1, class TC1, class Reference1, class Difference1 , class Derived2, class V2, class TC2, class Reference2, class Difference2 > friend typename boost::iterators::detail::enable_if_interoperable_and_random_access_traversal< Derived1, Derived2 , typename mpl::apply2::type >::type operator -( iterator_facade const& lhs , iterator_facade const& rhs) ; template friend inline typename boost::iterators::enable_if< boost::iterators::detail::is_traversal_at_least< TC, boost::iterators::random_access_traversal_tag >, Derived >::type operator+ (iterator_facade const& , typename Derived::difference_type) ; template friend inline typename boost::iterators::enable_if< boost::iterators::detail::is_traversal_at_least< TC, boost::iterators::random_access_traversal_tag >, Derived >::type operator+ (typename Derived::difference_type , iterator_facade const&) ; template static typename Facade::reference dereference(Facade const& f) { return f.dereference(); } template static void increment(Facade& f) { f.increment(); } template static void decrement(Facade& f) { f.decrement(); } template static bool equal(Facade1 const& f1, Facade2 const& f2, mpl::true_) { return f1.equal(f2); } template static bool equal(Facade1 const& f1, Facade2 const& f2, mpl::false_) { return f2.equal(f1); } template static void advance(Facade& f, typename Facade::difference_type n) { f.advance(n); } template static typename Facade1::difference_type distance_from( Facade1 const& f1, Facade2 const& f2, mpl::true_) { return -f1.distance_to(f2); } template static typename Facade2::difference_type distance_from( Facade1 const& f1, Facade2 const& f2, mpl::false_) { return f2.distance_to(f1); } template static I& derived(iterator_facade& facade) { return *static_cast(&facade); } template static I const& derived(iterator_facade const& facade) { return *static_cast(&facade); } private: iterator_core_access(); }; namespace detail { template < class Derived , class Value , class CategoryOrTraversal , class Reference , class Difference > class iterator_facade_base< Derived, Value, CategoryOrTraversal, Reference, Difference, false, false > { private: typedef boost::iterators::detail::iterator_facade_types< Value, CategoryOrTraversal, Reference, Difference > associated_types; typedef boost::iterators::detail::operator_arrow_dispatch< Reference , typename associated_types::pointer > operator_arrow_dispatch_; public: typedef typename associated_types::value_type value_type; typedef Reference reference; typedef Difference difference_type; typedef typename operator_arrow_dispatch_::result_type pointer; typedef typename associated_types::iterator_category iterator_category; public: reference operator*() const { return iterator_core_access::dereference(this->derived()); } pointer operator->() const { return operator_arrow_dispatch_::apply(*this->derived()); } Derived& operator++() { iterator_core_access::increment(this->derived()); return this->derived(); } protected: Derived& derived() { return *static_cast(this); } Derived const& derived() const { return *static_cast(this); } }; template < class Derived , class Value , class CategoryOrTraversal , class Reference , class Difference > class iterator_facade_base< Derived, Value, CategoryOrTraversal, Reference, Difference, true, false > : public iterator_facade_base< Derived, Value, CategoryOrTraversal, Reference, Difference, false, false > { public: Derived& operator--() { iterator_core_access::decrement(this->derived()); return this->derived(); } Derived operator--(int) { Derived tmp(this->derived()); --*this; return tmp; } }; template < class Derived , class Value , class CategoryOrTraversal , class Reference , class Difference > class iterator_facade_base< Derived, Value, CategoryOrTraversal, Reference, Difference, true, true > : public iterator_facade_base< Derived, Value, CategoryOrTraversal, Reference, Difference, true, false > { private: typedef iterator_facade_base< Derived, Value, CategoryOrTraversal, Reference, Difference, true, false > base_type; public: typedef typename base_type::reference reference; typedef typename base_type::difference_type difference_type; public: typename boost::iterators::detail::operator_brackets_result::type operator[](difference_type n) const { typedef boost::iterators::detail::use_operator_brackets_proxy use_proxy; return boost::iterators::detail::make_operator_brackets_result( this->derived() + n , use_proxy() ); } Derived& operator+=(difference_type n) { iterator_core_access::advance(this->derived(), n); return this->derived(); } Derived& operator-=(difference_type n) { iterator_core_access::advance(this->derived(), -n); return this->derived(); } Derived operator-(difference_type x) const { Derived result(this->derived()); return result -= x; } }; } template < class Derived , class Value , class CategoryOrTraversal , class Reference = Value& , class Difference = std::ptrdiff_t > class iterator_facade : public detail::iterator_facade_base< Derived, Value, CategoryOrTraversal, Reference, Difference, detail::is_traversal_at_least< CategoryOrTraversal, bidirectional_traversal_tag >::value, detail::is_traversal_at_least< CategoryOrTraversal, random_access_traversal_tag >::value > { protected: typedef iterator_facade iterator_facade_; }; template inline typename boost::iterators::detail::postfix_increment_result::type operator++( iterator_facade& i , int ) { typename boost::iterators::detail::postfix_increment_result::type tmp(*static_cast(&i)); ++i; return tmp; } # 890 "/usr/include/boost/iterator/iterator_facade.hpp" 3 4 template < class Derived1, class V1, class TC1, class Reference1, class Difference1 , class Derived2, class V2, class TC2, class Reference2, class Difference2 > inline typename boost::iterators::detail::enable_if_interoperable< Derived1, Derived2 , typename mpl::apply2::type >::type operator ==( iterator_facade const& lhs , iterator_facade const& rhs) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((( is_interoperable< Derived1, Derived2 >::value )) == 0 ? false : true) >)> boost_static_assert_typedef_890 __attribute__((unused)); return iterator_core_access::equal( *static_cast(&lhs) , *static_cast(&rhs) , is_convertible() ); } template < class Derived1, class V1, class TC1, class Reference1, class Difference1 , class Derived2, class V2, class TC2, class Reference2, class Difference2 > inline typename boost::iterators::detail::enable_if_interoperable< Derived1, Derived2 , typename mpl::apply2::type >::type operator !=( iterator_facade const& lhs , iterator_facade const& rhs) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((( is_interoperable< Derived1, Derived2 >::value )) == 0 ? false : true) >)> boost_static_assert_typedef_891 __attribute__((unused)); return ! iterator_core_access::equal( *static_cast(&lhs) , *static_cast(&rhs) , is_convertible() ); } # 920 "/usr/include/boost/iterator/iterator_facade.hpp" 3 4 template < class Derived1, class V1, class TC1, class Reference1, class Difference1 , class Derived2, class V2, class TC2, class Reference2, class Difference2 > inline typename boost::iterators::detail::enable_if_interoperable_and_random_access_traversal< Derived1, Derived2 , typename mpl::apply2::type >::type operator <( iterator_facade const& lhs , iterator_facade const& rhs) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((( is_interoperable< Derived1, Derived2 >::value && boost::iterators::detail::is_traversal_at_least< typename iterator_category< Derived1 >::type, random_access_traversal_tag >::value && boost::iterators::detail::is_traversal_at_least< typename iterator_category< Derived2 >::type, random_access_traversal_tag >::value )) == 0 ? false : true) >)> boost_static_assert_typedef_920 __attribute__((unused)); return 0 > iterator_core_access::distance_from( *static_cast(&lhs) , *static_cast(&rhs) , is_convertible() ); } template < class Derived1, class V1, class TC1, class Reference1, class Difference1 , class Derived2, class V2, class TC2, class Reference2, class Difference2 > inline typename boost::iterators::detail::enable_if_interoperable_and_random_access_traversal< Derived1, Derived2 , typename mpl::apply2::type >::type operator >( iterator_facade const& lhs , iterator_facade const& rhs) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((( is_interoperable< Derived1, Derived2 >::value && boost::iterators::detail::is_traversal_at_least< typename iterator_category< Derived1 >::type, random_access_traversal_tag >::value && boost::iterators::detail::is_traversal_at_least< typename iterator_category< Derived2 >::type, random_access_traversal_tag >::value )) == 0 ? false : true) >)> boost_static_assert_typedef_921 __attribute__((unused)); return 0 < iterator_core_access::distance_from( *static_cast(&lhs) , *static_cast(&rhs) , is_convertible() ); } template < class Derived1, class V1, class TC1, class Reference1, class Difference1 , class Derived2, class V2, class TC2, class Reference2, class Difference2 > inline typename boost::iterators::detail::enable_if_interoperable_and_random_access_traversal< Derived1, Derived2 , typename mpl::apply2::type >::type operator <=( iterator_facade const& lhs , iterator_facade const& rhs) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((( is_interoperable< Derived1, Derived2 >::value && boost::iterators::detail::is_traversal_at_least< typename iterator_category< Derived1 >::type, random_access_traversal_tag >::value && boost::iterators::detail::is_traversal_at_least< typename iterator_category< Derived2 >::type, random_access_traversal_tag >::value )) == 0 ? false : true) >)> boost_static_assert_typedef_922 __attribute__((unused)); return 0 >= iterator_core_access::distance_from( *static_cast(&lhs) , *static_cast(&rhs) , is_convertible() ); } template < class Derived1, class V1, class TC1, class Reference1, class Difference1 , class Derived2, class V2, class TC2, class Reference2, class Difference2 > inline typename boost::iterators::detail::enable_if_interoperable_and_random_access_traversal< Derived1, Derived2 , typename mpl::apply2::type >::type operator >=( iterator_facade const& lhs , iterator_facade const& rhs) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((( is_interoperable< Derived1, Derived2 >::value && boost::iterators::detail::is_traversal_at_least< typename iterator_category< Derived1 >::type, random_access_traversal_tag >::value && boost::iterators::detail::is_traversal_at_least< typename iterator_category< Derived2 >::type, random_access_traversal_tag >::value )) == 0 ? false : true) >)> boost_static_assert_typedef_923 __attribute__((unused)); return 0 <= iterator_core_access::distance_from( *static_cast(&lhs) , *static_cast(&rhs) , is_convertible() ); } template < class Derived1, class V1, class TC1, class Reference1, class Difference1 , class Derived2, class V2, class TC2, class Reference2, class Difference2 > inline typename boost::iterators::detail::enable_if_interoperable_and_random_access_traversal< Derived1, Derived2 , typename mpl::apply2::type >::type operator -( iterator_facade const& lhs , iterator_facade const& rhs) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((( is_interoperable< Derived1, Derived2 >::value && boost::iterators::detail::is_traversal_at_least< typename iterator_category< Derived1 >::type, random_access_traversal_tag >::value && boost::iterators::detail::is_traversal_at_least< typename iterator_category< Derived2 >::type, random_access_traversal_tag >::value )) == 0 ? false : true) >)> boost_static_assert_typedef_933 __attribute__((unused)); return iterator_core_access::distance_from( *static_cast(&lhs) , *static_cast(&rhs) , is_convertible() ); } # 945 "/usr/include/boost/iterator/iterator_facade.hpp" 3 4 template inline typename boost::iterators::enable_if< boost::iterators::detail::is_traversal_at_least< TC, boost::iterators::random_access_traversal_tag >, Derived >::type operator+ ( iterator_facade const& i , typename Derived::difference_type n ) { Derived tmp(static_cast(i)); return tmp += n; } template inline typename boost::iterators::enable_if< boost::iterators::detail::is_traversal_at_least< TC, boost::iterators::random_access_traversal_tag >, Derived >::type operator+ ( typename Derived::difference_type n , iterator_facade const& i ) { Derived tmp(static_cast(i)); return tmp += n; } # 962 "/usr/include/boost/iterator/iterator_facade.hpp" 3 4 } using iterators::iterator_core_access; using iterators::iterator_facade; } # 1 "/usr/include/boost/iterator/detail/config_undef.hpp" 1 3 4 # 970 "/usr/include/boost/iterator/iterator_facade.hpp" 2 3 4 # 16 "/usr/include/boost/iterator/iterator_adaptor.hpp" 2 3 4 # 30 "/usr/include/boost/iterator/iterator_adaptor.hpp" 3 4 # 1 "/usr/include/boost/iterator/detail/config_def.hpp" 1 3 4 # 31 "/usr/include/boost/iterator/iterator_adaptor.hpp" 2 3 4 namespace boost { namespace iterators { struct use_default; } using iterators::use_default; template struct is_convertible : mpl::false_ {}; namespace iterators { namespace detail { # 65 "/usr/include/boost/iterator/iterator_adaptor.hpp" 3 4 struct enable_type; } # 132 "/usr/include/boost/iterator/iterator_adaptor.hpp" 3 4 template struct enable_if_convertible : iterators::enable_if< is_convertible , boost::iterators::detail::enable_type > {}; namespace detail { template struct ia_dflt_help : mpl::eval_if< is_same , DefaultNullaryFn , mpl::identity > { }; template < class Derived , class Base , class Value , class Traversal , class Reference , class Difference > struct iterator_adaptor_base { typedef iterator_facade< Derived , typename boost::iterators::detail::ia_dflt_help< Value , mpl::eval_if< is_same , iterator_value , remove_reference > >::type , typename boost::iterators::detail::ia_dflt_help< Traversal , iterator_traversal >::type , typename boost::iterators::detail::ia_dflt_help< Reference , mpl::eval_if< is_same , iterator_reference , add_reference > >::type , typename boost::iterators::detail::ia_dflt_help< Difference, iterator_difference >::type > type; }; template inline void iterator_adaptor_assert_traversal () { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< (((is_convertible::value)) == 0 ? false : true) >)> boost_static_assert_typedef_214 __attribute__((unused)); } } # 243 "/usr/include/boost/iterator/iterator_adaptor.hpp" 3 4 template < class Derived , class Base , class Value = use_default , class Traversal = use_default , class Reference = use_default , class Difference = use_default > class iterator_adaptor : public boost::iterators::detail::iterator_adaptor_base< Derived, Base, Value, Traversal, Reference, Difference >::type { friend class iterator_core_access; protected: typedef typename boost::iterators::detail::iterator_adaptor_base< Derived, Base, Value, Traversal, Reference, Difference >::type super_t; public: iterator_adaptor() {} explicit iterator_adaptor(Base const &iter) : m_iterator(iter) { } typedef Base base_type; Base const& base() const { return m_iterator; } protected: typedef iterator_adaptor iterator_adaptor_; Base const& base_reference() const { return m_iterator; } Base& base_reference() { return m_iterator; } private: typename super_t::reference dereference() const { return *m_iterator; } template < class OtherDerived, class OtherIterator, class V, class C, class R, class D > bool equal(iterator_adaptor const& x) const { return m_iterator == x.base(); } typedef typename iterator_category_to_traversal< typename super_t::iterator_category >::type my_traversal; void advance(typename super_t::difference_type n) { boost::iterators::detail::iterator_adaptor_assert_traversal(); m_iterator += n; } void increment() { ++m_iterator; } void decrement() { boost::iterators::detail::iterator_adaptor_assert_traversal(); --m_iterator; } template < class OtherDerived, class OtherIterator, class V, class C, class R, class D > typename super_t::difference_type distance_to( iterator_adaptor const& y) const { boost::iterators::detail::iterator_adaptor_assert_traversal(); return y.base() - m_iterator; } private: Base m_iterator; }; } using iterators::iterator_adaptor; using iterators::enable_if_convertible; } # 1 "/usr/include/boost/iterator/detail/config_undef.hpp" 1 3 4 # 359 "/usr/include/boost/iterator/iterator_adaptor.hpp" 2 3 4 # 13 "/usr/include/boost/iterator/reverse_iterator.hpp" 2 3 4 namespace boost { namespace iterators { template class reverse_iterator : public iterator_adaptor< reverse_iterator, Iterator > { typedef iterator_adaptor< reverse_iterator, Iterator > super_t; friend class iterator_core_access; public: reverse_iterator() {} explicit reverse_iterator(Iterator x) : super_t(x) {} template reverse_iterator( reverse_iterator const& r , typename enable_if_convertible::type* = 0 ) : super_t(r.base()) {} private: typename super_t::reference dereference() const { return *boost::prior(this->base()); } void increment() { --this->base_reference(); } void decrement() { ++this->base_reference(); } void advance(typename super_t::difference_type n) { this->base_reference() += -n; } template typename super_t::difference_type distance_to(reverse_iterator const& y) const { return this->base_reference() - y.base(); } }; template inline reverse_iterator make_reverse_iterator(BidirectionalIterator x) { return reverse_iterator(x); } } using iterators::reverse_iterator; using iterators::make_reverse_iterator; } # 22 "/usr/include/boost/range/reverse_iterator.hpp" 2 3 4 namespace boost { template< typename T > struct range_reverse_iterator { typedef reverse_iterator< typename range_iterator< typename remove_reference::type>::type > type; }; } # 20 "/usr/include/boost/range/rend.hpp" 2 3 4 namespace boost { # 35 "/usr/include/boost/range/rend.hpp" 3 4 template< class C > inline typename range_reverse_iterator::type rend( C& c ) { typedef typename range_reverse_iterator::type iter_type; return iter_type( boost::begin( c ) ); } template< class C > inline typename range_reverse_iterator::type rend( const C& c ) { typedef typename range_reverse_iterator::type iter_type; return iter_type( boost::begin( c ) ); } template< class T > inline typename range_reverse_iterator::type const_rend( const T& r ) { return boost::rend( r ); } } # 76 "/usr/include/boost/foreach.hpp" 2 3 4 # 1 "/usr/include/boost/range/rbegin.hpp" 1 3 4 # 21 "/usr/include/boost/range/rbegin.hpp" 3 4 namespace boost { # 35 "/usr/include/boost/range/rbegin.hpp" 3 4 template< class C > inline typename range_reverse_iterator::type rbegin( C& c ) { typedef typename range_reverse_iterator::type iter_type; return iter_type( boost::end( c ) ); } template< class C > inline typename range_reverse_iterator::type rbegin( const C& c ) { typedef typename range_reverse_iterator::type iter_type; return iter_type( boost::end( c ) ); } template< class T > inline typename range_reverse_iterator::type const_rbegin( const T& r ) { return boost::rbegin( r ); } } # 77 "/usr/include/boost/foreach.hpp" 2 3 4 # 86 "/usr/include/boost/foreach.hpp" 3 4 # 1 "/usr/include/boost/foreach_fwd.hpp" 1 3 4 # 18 "/usr/include/boost/foreach_fwd.hpp" 3 4 enum boost_foreach_argument_dependent_lookup_hack { boost_foreach_argument_dependent_lookup_hack_value }; namespace boost { namespace foreach { typedef boost_foreach_argument_dependent_lookup_hack tag; template struct is_lightweight_proxy; template struct is_noncopyable; } } # 87 "/usr/include/boost/foreach.hpp" 2 3 4 # 1 "/usr/include/boost/aligned_storage.hpp" 1 3 4 # 20 "/usr/include/boost/aligned_storage.hpp" 3 4 # 1 "/usr/include/boost/type_traits/alignment_of.hpp" 1 3 4 # 17 "/usr/include/boost/type_traits/alignment_of.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/size_t_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/size_t_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/size_t_trait_def.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/size_t.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/size_t.hpp" 3 4 # 1 "/usr/include/boost/mpl/size_t_fwd.hpp" 1 3 4 # 21 "/usr/include/boost/mpl/size_t_fwd.hpp" 3 4 namespace mpl_ { template< std::size_t N > struct size_t; } namespace boost { namespace mpl { using ::mpl_::size_t; } } # 18 "/usr/include/boost/mpl/size_t.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/integral_wrapper.hpp" 1 3 4 # 40 "/usr/include/boost/mpl/aux_/integral_wrapper.hpp" 3 4 namespace mpl_ { template< std::size_t N > struct size_t { static const std::size_t value = N; typedef size_t type; typedef std::size_t value_type; typedef integral_c_tag tag; # 72 "/usr/include/boost/mpl/aux_/integral_wrapper.hpp" 3 4 typedef mpl_::size_t< static_cast((value + 1)) > next; typedef mpl_::size_t< static_cast((value - 1)) > prior; operator std::size_t() const { return static_cast(this->value); } }; template< std::size_t N > std::size_t const mpl_::size_t< N >::value; } # 24 "/usr/include/boost/mpl/size_t.hpp" 2 3 4 # 18 "/usr/include/boost/type_traits/detail/size_t_trait_def.hpp" 2 3 4 # 18 "/usr/include/boost/type_traits/alignment_of.hpp" 2 3 4 # 27 "/usr/include/boost/type_traits/alignment_of.hpp" 3 4 namespace boost { template struct alignment_of; namespace detail { template struct alignment_of_hack { char c; T t; alignment_of_hack(); }; template struct alignment_logic { static const std::size_t value = A < S ? A : S; }; template< typename T > struct alignment_of_impl { # 83 "/usr/include/boost/type_traits/alignment_of.hpp" 3 4 static const std::size_t value = __alignof__(T); }; } template< typename T > struct alignment_of : public ::boost::integral_constant::value> { public: }; template struct alignment_of : public alignment_of { }; # 107 "/usr/include/boost/type_traits/alignment_of.hpp" 3 4 template<> struct alignment_of : public ::boost::integral_constant { public: }; template<> struct alignment_of : public ::boost::integral_constant { public: }; template<> struct alignment_of : public ::boost::integral_constant { public: }; template<> struct alignment_of : public ::boost::integral_constant { public: }; } # 123 "/usr/include/boost/type_traits/alignment_of.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/size_t_trait_undef.hpp" 1 3 4 # 124 "/usr/include/boost/type_traits/alignment_of.hpp" 2 3 4 # 21 "/usr/include/boost/aligned_storage.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/type_with_alignment.hpp" 1 3 4 # 12 "/usr/include/boost/type_traits/type_with_alignment.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/list/for_each_i.hpp" 1 3 4 # 20 "/usr/include/boost/preprocessor/list/for_each_i.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/repetition/for.hpp" 1 3 4 # 19 "/usr/include/boost/preprocessor/repetition/for.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/detail/auto_rec.hpp" 1 3 4 # 20 "/usr/include/boost/preprocessor/repetition/for.hpp" 2 3 4 # 42 "/usr/include/boost/preprocessor/repetition/for.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/repetition/detail/for.hpp" 1 3 4 # 43 "/usr/include/boost/preprocessor/repetition/for.hpp" 2 3 4 # 21 "/usr/include/boost/preprocessor/list/for_each_i.hpp" 2 3 4 # 13 "/usr/include/boost/type_traits/type_with_alignment.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/tuple/to_list.hpp" 1 3 4 # 21 "/usr/include/boost/preprocessor/tuple/to_list.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/tuple/size.hpp" 1 3 4 # 22 "/usr/include/boost/preprocessor/tuple/to_list.hpp" 2 3 4 # 14 "/usr/include/boost/type_traits/type_with_alignment.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/list/transform.hpp" 1 3 4 # 16 "/usr/include/boost/type_traits/type_with_alignment.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/list/append.hpp" 1 3 4 # 17 "/usr/include/boost/type_traits/type_with_alignment.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 24 "/usr/include/boost/type_traits/type_with_alignment.hpp" 2 3 4 # 32 "/usr/include/boost/type_traits/type_with_alignment.hpp" 3 4 namespace boost { namespace detail { class alignment_dummy; typedef void (*function_ptr)(); typedef int (alignment_dummy::*member_ptr); typedef int (alignment_dummy::*member_function_ptr)(); # 72 "/usr/include/boost/type_traits/type_with_alignment.hpp" 3 4 template struct lower_alignment_helper { typedef char type; enum { value = true }; }; template struct lower_alignment_helper { enum { value = (alignment_of::value == target) }; typedef typename mpl::if_c::type type; }; # 97 "/usr/include/boost/type_traits/type_with_alignment.hpp" 3 4 template struct has_one_T { T data; }; template union lower_alignment { enum { found0 = false }; typename lower_alignment_helper< found0,target,char >::type t0; enum { found1 = lower_alignment_helper::value }; typename lower_alignment_helper< found1,target,short >::type t1; enum { found2 = lower_alignment_helper::value }; typename lower_alignment_helper< found2,target,int >::type t2; enum { found3 = lower_alignment_helper::value }; typename lower_alignment_helper< found3,target,long >::type t3; enum { found4 = lower_alignment_helper::value }; typename lower_alignment_helper< found4,target,::boost::long_long_type >::type t4; enum { found5 = lower_alignment_helper::value }; typename lower_alignment_helper< found5,target,float >::type t5; enum { found6 = lower_alignment_helper::value }; typename lower_alignment_helper< found6,target,double >::type t6; enum { found7 = lower_alignment_helper::value }; typename lower_alignment_helper< found7,target,long double >::type t7; enum { found8 = lower_alignment_helper::value }; typename lower_alignment_helper< found8,target,void* >::type t8; enum { found9 = lower_alignment_helper::value }; typename lower_alignment_helper< found9,target,function_ptr >::type t9; enum { found10 = lower_alignment_helper::value }; typename lower_alignment_helper< found10,target,member_ptr >::type t10; enum { found11 = lower_alignment_helper::value }; typename lower_alignment_helper< found11,target,member_function_ptr >::type t11; enum { found12 = lower_alignment_helper::value }; typename lower_alignment_helper< found12,target,boost::detail::has_one_T< char > >::type t12; enum { found13 = lower_alignment_helper >::value }; typename lower_alignment_helper< found13,target,boost::detail::has_one_T< short > >::type t13; enum { found14 = lower_alignment_helper >::value }; typename lower_alignment_helper< found14,target,boost::detail::has_one_T< int > >::type t14; enum { found15 = lower_alignment_helper >::value }; typename lower_alignment_helper< found15,target,boost::detail::has_one_T< long > >::type t15; enum { found16 = lower_alignment_helper >::value }; typename lower_alignment_helper< found16,target,boost::detail::has_one_T< ::boost::long_long_type > >::type t16; enum { found17 = lower_alignment_helper >::value }; typename lower_alignment_helper< found17,target,boost::detail::has_one_T< float > >::type t17; enum { found18 = lower_alignment_helper >::value }; typename lower_alignment_helper< found18,target,boost::detail::has_one_T< double > >::type t18; enum { found19 = lower_alignment_helper >::value }; typename lower_alignment_helper< found19,target,boost::detail::has_one_T< long double > >::type t19; enum { found20 = lower_alignment_helper >::value }; typename lower_alignment_helper< found20,target,boost::detail::has_one_T< void* > >::type t20; enum { found21 = lower_alignment_helper >::value }; typename lower_alignment_helper< found21,target,boost::detail::has_one_T< function_ptr > >::type t21; enum { found22 = lower_alignment_helper >::value }; typename lower_alignment_helper< found22,target,boost::detail::has_one_T< member_ptr > >::type t22; enum { found23 = lower_alignment_helper >::value }; typename lower_alignment_helper< found23,target,boost::detail::has_one_T< member_function_ptr > >::type t23; enum { found24 = lower_alignment_helper >::value }; }; union max_align { char t0; short t1; int t2; long t3; ::boost::long_long_type t4; float t5; double t6; long double t7; void* t8; function_ptr t9; member_ptr t10; member_function_ptr t11; boost::detail::has_one_T< char > t12; boost::detail::has_one_T< short > t13; boost::detail::has_one_T< int > t14; boost::detail::has_one_T< long > t15; boost::detail::has_one_T< ::boost::long_long_type > t16; boost::detail::has_one_T< float > t17; boost::detail::has_one_T< double > t18; boost::detail::has_one_T< long double > t19; boost::detail::has_one_T< void* > t20; boost::detail::has_one_T< function_ptr > t21; boost::detail::has_one_T< member_ptr > t22; boost::detail::has_one_T< member_function_ptr > t23; }; # 131 "/usr/include/boost/type_traits/type_with_alignment.hpp" 3 4 template struct is_aligned { static const bool value = (TAlign >= Align) & (TAlign % Align == 0) ; }; } template struct is_pod< ::boost::detail::lower_alignment > { static const std::size_t value = true; }; namespace detail{ template class type_with_alignment_imp { typedef ::boost::detail::lower_alignment t1; typedef typename mpl::if_c< ::boost::detail::is_aligned< ::boost::alignment_of::value,Align >::value , t1 , ::boost::detail::max_align >::type align_t; static const std::size_t found = alignment_of::value; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((found >= Align) == 0 ? false : true) >)> boost_static_assert_typedef_164 __attribute__((unused)); typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((found % Align == 0) == 0 ? false : true) >)> boost_static_assert_typedef_165 __attribute__((unused)); public: typedef align_t type; }; } template class type_with_alignment : public ::boost::detail::type_with_alignment_imp { }; namespace tt_align_ns { struct __attribute__((__aligned__(2))) a2 {}; struct __attribute__((__aligned__(4))) a4 {}; struct __attribute__((__aligned__(8))) a8 {}; struct __attribute__((__aligned__(16))) a16 {}; struct __attribute__((__aligned__(32))) a32 {}; struct __attribute__((__aligned__(64))) a64 {}; struct __attribute__((__aligned__(128))) a128 {}; } template<> class type_with_alignment<1> { public: typedef char type; }; template<> class type_with_alignment<2> { public: typedef tt_align_ns::a2 type; }; template<> class type_with_alignment<4> { public: typedef tt_align_ns::a4 type; }; template<> class type_with_alignment<8> { public: typedef tt_align_ns::a8 type; }; template<> class type_with_alignment<16> { public: typedef tt_align_ns::a16 type; }; template<> class type_with_alignment<32> { public: typedef tt_align_ns::a32 type; }; template<> class type_with_alignment<64> { public: typedef tt_align_ns::a64 type; }; template<> class type_with_alignment<128> { public: typedef tt_align_ns::a128 type; }; namespace detail { template<> struct is_pod_impl< ::boost::tt_align_ns::a2 > { public: static const bool value = (true); }; template<> struct is_pod_impl< ::boost::tt_align_ns::a4 > { public: static const bool value = (true); }; template<> struct is_pod_impl< ::boost::tt_align_ns::a8 > { public: static const bool value = (true); }; template<> struct is_pod_impl< ::boost::tt_align_ns::a16 > { public: static const bool value = (true); }; template<> struct is_pod_impl< ::boost::tt_align_ns::a32 > { public: static const bool value = (true); }; template<> struct is_pod_impl< ::boost::tt_align_ns::a64 > { public: static const bool value = (true); }; template<> struct is_pod_impl< ::boost::tt_align_ns::a128 > { public: static const bool value = (true); }; } # 347 "/usr/include/boost/type_traits/type_with_alignment.hpp" 3 4 } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 354 "/usr/include/boost/type_traits/type_with_alignment.hpp" 2 3 4 # 22 "/usr/include/boost/aligned_storage.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 28 "/usr/include/boost/aligned_storage.hpp" 2 3 4 namespace boost { namespace detail { namespace aligned_storage { static const std::size_t alignment_of_max_align = ::boost::alignment_of::value ; template < std::size_t size_ , std::size_t alignment_ > struct aligned_storage_imp { union data_t { char buf[size_]; typename ::boost::mpl::eval_if_c< alignment_ == std::size_t(-1) , ::boost::mpl::identity< ::boost::detail::max_align > , ::boost::type_with_alignment >::type align_; } data_; void* address() const { return const_cast(this); } }; template< std::size_t alignment_ > struct aligned_storage_imp<0u,alignment_> { void* address() const { return 0; } }; }} template < std::size_t size_ , std::size_t alignment_ = std::size_t(-1) > class aligned_storage : private ::boost::detail::aligned_storage::aligned_storage_imp { public: typedef ::boost::detail::aligned_storage::aligned_storage_imp type; static const std::size_t size = size_ ; static const std::size_t alignment = ( alignment_ == std::size_t(-1) ? ::boost::detail::aligned_storage::alignment_of_max_align : alignment_ ) ; private: aligned_storage(const aligned_storage&); aligned_storage& operator=(const aligned_storage&); public: aligned_storage() { } ~aligned_storage() { } public: void* address() { return static_cast(this)->address(); } const void* address() const { return static_cast(this)->address(); } }; template struct is_pod< ::boost::detail::aligned_storage::aligned_storage_imp > : public ::boost::integral_constant { }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 142 "/usr/include/boost/aligned_storage.hpp" 2 3 4 # 91 "/usr/include/boost/foreach.hpp" 2 3 4 # 1 "/usr/include/boost/utility/enable_if.hpp" 1 3 4 # 15 "/usr/include/boost/utility/enable_if.hpp" 3 4 # 1 "/usr/include/boost/core/enable_if.hpp" 1 3 4 # 24 "/usr/include/boost/core/enable_if.hpp" 3 4 namespace boost { template struct enable_if_c { typedef T type; }; template struct enable_if_c {}; template struct enable_if : public enable_if_c {}; template struct lazy_enable_if_c { typedef typename T::type type; }; template struct lazy_enable_if_c {}; template struct lazy_enable_if : public lazy_enable_if_c {}; template struct disable_if_c { typedef T type; }; template struct disable_if_c {}; template struct disable_if : public disable_if_c {}; template struct lazy_disable_if_c { typedef typename T::type type; }; template struct lazy_disable_if_c {}; template struct lazy_disable_if : public lazy_disable_if_c {}; } # 16 "/usr/include/boost/utility/enable_if.hpp" 2 3 4 # 92 "/usr/include/boost/foreach.hpp" 2 3 4 namespace boost { template class iterator_range; template class sub_range; namespace foreach { template inline std::pair in_range(T begin, T end) { return std::make_pair(begin, end); } template struct is_lightweight_proxy : boost::mpl::false_ { }; template struct is_noncopyable : boost::mpl::or_< boost::is_abstract , boost::is_base_and_derived > { }; } } # 164 "/usr/include/boost/foreach.hpp" 3 4 template inline boost::foreach::is_lightweight_proxy * boost_foreach_is_lightweight_proxy(T *&, boost::foreach::tag) { return 0; } template inline boost::mpl::true_ * boost_foreach_is_lightweight_proxy(std::pair *&, boost::foreach::tag) { return 0; } template inline boost::mpl::true_ * boost_foreach_is_lightweight_proxy(boost::iterator_range *&, boost::foreach::tag) { return 0; } template inline boost::mpl::true_ * boost_foreach_is_lightweight_proxy(boost::sub_range *&, boost::foreach::tag) { return 0; } template inline boost::mpl::true_ * boost_foreach_is_lightweight_proxy(T **&, boost::foreach::tag) { return 0; } template inline boost::foreach::is_noncopyable * boost_foreach_is_noncopyable(T *&, boost::foreach::tag) { return 0; } namespace boost { namespace foreach_detail_ { template inline boost::mpl::and_ *and_(Bool1 *, Bool2 *) { return 0; } template inline boost::mpl::and_ *and_(Bool1 *, Bool2 *, Bool3 *) { return 0; } template inline boost::mpl::or_ *or_(Bool1 *, Bool2 *) { return 0; } template inline boost::mpl::or_ *or_(Bool1 *, Bool2 *, Bool3 *) { return 0; } template inline boost::mpl::not_ *not_(Bool1 *) { return 0; } template inline boost::is_array *is_array_(T const &) { return 0; } template inline boost::is_const *is_const_(T &) { return 0; } template inline boost::mpl::true_ *is_const_(T const &) { return 0; } template inline boost::mpl::false_ *is_rvalue_(T &, int) { return 0; } template inline boost::mpl::true_ *is_rvalue_(T const &, ...) { return 0; } # 242 "/usr/include/boost/foreach.hpp" 3 4 struct auto_any_base { operator bool() const { return false; } }; template struct auto_any : auto_any_base { explicit auto_any(T const &t) : item(t) { } mutable T item; }; typedef auto_any_base const &auto_any_t; template inline typename boost::mpl::if_::type &auto_any_cast(auto_any_t a) { return static_cast const &>(a).item; } typedef boost::mpl::true_ const_; template struct type2type : boost::mpl::if_ { }; template struct wrap_cstr { typedef T type; }; template<> struct wrap_cstr { typedef wrap_cstr type; typedef char *iterator; typedef char *const_iterator; }; template<> struct wrap_cstr { typedef wrap_cstr type; typedef char const *iterator; typedef char const *const_iterator; }; template<> struct wrap_cstr { typedef wrap_cstr type; typedef wchar_t *iterator; typedef wchar_t *const_iterator; }; template<> struct wrap_cstr { typedef wrap_cstr type; typedef wchar_t const *iterator; typedef wchar_t const *const_iterator; }; template struct is_char_array : mpl::and_< is_array , mpl::or_< is_convertible , is_convertible > > {}; template struct foreach_iterator { # 349 "/usr/include/boost/foreach.hpp" 3 4 struct IS_THIS_AN_ARRAY_OR_A_NULL_TERMINATED_STRING; typedef struct IS_THIS_AN_ARRAY_OR_A_NULL_TERMINATED_STRING349 : boost::mpl::assert_ { static boost::mpl::failed ************ (IS_THIS_AN_ARRAY_OR_A_NULL_TERMINATED_STRING::************ assert_arg()) (T&) { return 0; } } mpl_assert_arg349; enum { mpl_assertion_in_line_349 = sizeof( boost::mpl::assertion_failed<((!is_char_array::value))>( mpl_assert_arg349::assert_arg() ) ) }; typedef typename wrap_cstr::type container; typedef typename boost::mpl::eval_if< C , range_const_iterator , range_mutable_iterator >::type type; }; template struct foreach_reverse_iterator { # 378 "/usr/include/boost/foreach.hpp" 3 4 struct IS_THIS_AN_ARRAY_OR_A_NULL_TERMINATED_STRING; typedef struct IS_THIS_AN_ARRAY_OR_A_NULL_TERMINATED_STRING378 : boost::mpl::assert_ { static boost::mpl::failed ************ (IS_THIS_AN_ARRAY_OR_A_NULL_TERMINATED_STRING::************ assert_arg()) (T&) { return 0; } } mpl_assert_arg378; enum { mpl_assertion_in_line_378 = sizeof( boost::mpl::assertion_failed<((!is_char_array::value))>( mpl_assert_arg378::assert_arg() ) ) }; typedef typename wrap_cstr::type container; typedef typename boost::mpl::eval_if< C , range_reverse_iterator , range_reverse_iterator >::type type; }; template struct foreach_reference : iterator_reference::type> { }; template inline type2type *encode_type(T &, boost::mpl::false_ *) { return 0; } template inline type2type *encode_type(T const &, boost::mpl::true_ *) { return 0; } inline bool set_false(bool &b) { b = false; return false; } template inline T *&to_ptr(T const &) { static T *t = 0; return t; } # 510 "/usr/include/boost/foreach.hpp" 3 4 template struct rvalue_probe { rvalue_probe(T &t, bool &b) : value(t) , is_rvalue(b) { } struct private_type_ {}; typedef typename boost::mpl::if_< boost::mpl::or_, boost::is_array >, private_type_, T >::type value_type; operator value_type() { this->is_rvalue = true; return this->value; } operator T &() const { return this->value; } private: T &value; bool &is_rvalue; }; template rvalue_probe make_probe(T &t, bool &b) { return rvalue_probe(t, b); } template rvalue_probe make_probe(T const &t, bool &b) { return rvalue_probe(t, b); } template struct simple_variant { simple_variant(T const *t) : is_rvalue(false) { *static_cast(this->data.address()) = t; } simple_variant(T const &t) : is_rvalue(true) { ::new(this->data.address()) T(t); } simple_variant(simple_variant const &that) : is_rvalue(that.is_rvalue) { if(this->is_rvalue) ::new(this->data.address()) T(*that.get()); else *static_cast(this->data.address()) = that.get(); } ~simple_variant() { if(this->is_rvalue) this->get()->~T(); } T const *get() const { if(this->is_rvalue) return static_cast(this->data.address()); else return *static_cast(this->data.address()); } private: enum size_type { size = sizeof(T) > sizeof(T*) ? sizeof(T) : sizeof(T*) }; simple_variant &operator =(simple_variant const &); bool const is_rvalue; aligned_storage data; }; template inline typename boost::enable_if, IsProxy>::type * should_copy_impl(LValue *, IsProxy *, bool *) { return 0; } inline bool * should_copy_impl(boost::mpl::false_ *, boost::mpl::false_ *, bool *is_rvalue) { return is_rvalue; } template inline auto_any contain(T const &t, boost::mpl::true_ *) { return auto_any(t); } template inline auto_any contain(T &t, boost::mpl::false_ *) { return auto_any(boost::addressof(t)); } template inline auto_any > contain(T const &t, bool *rvalue) { return auto_any >(*rvalue ? simple_variant(t) : simple_variant(&t)); } template inline auto_any::type> begin(auto_any_t col, type2type *, boost::mpl::true_ *) { return auto_any::type>( boost::begin(auto_any_cast(col))); } template inline auto_any::type> begin(auto_any_t col, type2type *, boost::mpl::false_ *) { typedef typename type2type::type type; typedef typename foreach_iterator::type iterator; return auto_any::type>( iterator(boost::begin((*(auto_any_cast(col)))))); } template inline auto_any::type> begin(auto_any_t col, type2type *, bool *) { return auto_any::type>( boost::begin(*auto_any_cast, boost::mpl::false_>(col).get())); } template inline auto_any begin(auto_any_t col, type2type *, boost::mpl::true_ *) { return auto_any(auto_any_cast(col)); } template inline auto_any::type> end(auto_any_t col, type2type *, boost::mpl::true_ *) { return auto_any::type>( boost::end(auto_any_cast(col))); } template inline auto_any::type> end(auto_any_t col, type2type *, boost::mpl::false_ *) { typedef typename type2type::type type; typedef typename foreach_iterator::type iterator; return auto_any::type>( iterator(boost::end((*(auto_any_cast(col)))))); } template inline auto_any::type> end(auto_any_t col, type2type *, bool *) { return auto_any::type>( boost::end(*auto_any_cast, boost::mpl::false_>(col).get())); } template inline auto_any end(auto_any_t, type2type *, boost::mpl::true_ *) { return auto_any(0); } template inline bool done(auto_any_t cur, auto_any_t end, type2type *) { typedef typename foreach_iterator::type iter_t; return auto_any_cast(cur) == auto_any_cast(end); } template inline bool done(auto_any_t cur, auto_any_t, type2type *) { return ! *auto_any_cast(cur); } template inline void next(auto_any_t cur, type2type *) { typedef typename foreach_iterator::type iter_t; ++auto_any_cast(cur); } template inline typename foreach_reference::type deref(auto_any_t cur, type2type *) { typedef typename foreach_iterator::type iter_t; return *auto_any_cast(cur); } template inline auto_any::type> rbegin(auto_any_t col, type2type *, boost::mpl::true_ *) { return auto_any::type>( boost::rbegin(auto_any_cast(col))); } template inline auto_any::type> rbegin(auto_any_t col, type2type *, boost::mpl::false_ *) { typedef typename type2type::type type; typedef typename foreach_reverse_iterator::type iterator; return auto_any::type>( iterator(boost::rbegin((*(auto_any_cast(col)))))); } template inline auto_any::type> rbegin(auto_any_t col, type2type *, bool *) { return auto_any::type>( boost::rbegin(*auto_any_cast, boost::mpl::false_>(col).get())); } template inline auto_any > rbegin(auto_any_t col, type2type *, boost::mpl::true_ *) { T *p = auto_any_cast(col); while(0 != *p) ++p; return auto_any >(reverse_iterator(p)); } template inline auto_any::type> rend(auto_any_t col, type2type *, boost::mpl::true_ *) { return auto_any::type>( boost::rend(auto_any_cast(col))); } template inline auto_any::type> rend(auto_any_t col, type2type *, boost::mpl::false_ *) { typedef typename type2type::type type; typedef typename foreach_reverse_iterator::type iterator; return auto_any::type>( iterator(boost::rend((*(auto_any_cast(col)))))); } template inline auto_any::type> rend(auto_any_t col, type2type *, bool *) { return auto_any::type>( boost::rend(*auto_any_cast, boost::mpl::false_>(col).get())); } template inline auto_any > rend(auto_any_t col, type2type *, boost::mpl::true_ *) { return auto_any >( reverse_iterator(auto_any_cast(col))); } template inline bool rdone(auto_any_t cur, auto_any_t end, type2type *) { typedef typename foreach_reverse_iterator::type iter_t; return auto_any_cast(cur) == auto_any_cast(end); } template inline void rnext(auto_any_t cur, type2type *) { typedef typename foreach_reverse_iterator::type iter_t; ++auto_any_cast(cur); } template inline typename foreach_reference::type rderef(auto_any_t cur, type2type *) { typedef typename foreach_reverse_iterator::type iter_t; return *auto_any_cast(cur); } } } # 27 "pdns_recursor.cc" 2 # 1 "ws-recursor.hh" 1 # 22 "ws-recursor.hh" # 1 "/usr/include/boost/utility.hpp" 1 3 4 # 13 "/usr/include/boost/utility.hpp" 3 4 # 1 "/usr/include/boost/utility/base_from_member.hpp" 1 3 4 # 15 "/usr/include/boost/utility/base_from_member.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/repetition/enum_binary_params.hpp" 1 3 4 # 16 "/usr/include/boost/utility/base_from_member.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/repetition/repeat_from_to.hpp" 1 3 4 # 23 "/usr/include/boost/preprocessor/repetition/repeat_from_to.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/detail/auto_rec.hpp" 1 3 4 # 24 "/usr/include/boost/preprocessor/repetition/repeat_from_to.hpp" 2 3 4 # 18 "/usr/include/boost/utility/base_from_member.hpp" 2 3 4 # 58 "/usr/include/boost/utility/base_from_member.hpp" 3 4 namespace boost { namespace detail { # 72 "/usr/include/boost/utility/base_from_member.hpp" 3 4 template < typename T > struct remove_cv_ref { typedef typename ::boost::remove_cv::type>::type type; }; template < typename T, typename U > struct is_related : public ::boost::is_same< typename ::boost::detail::remove_cv_ref::type, typename ::boost::detail::remove_cv_ref::type > {}; # 111 "/usr/include/boost/utility/base_from_member.hpp" 3 4 } # 123 "/usr/include/boost/utility/base_from_member.hpp" 3 4 template < typename MemberType, int UniqueID = 0 > class base_from_member { protected: MemberType member; # 141 "/usr/include/boost/utility/base_from_member.hpp" 3 4 base_from_member() : member() {} template < typename T0 > explicit base_from_member( T0 x0 ) : member( x0 ) {} template < typename T0 , typename T1 > explicit base_from_member( T0 x0 , T1 x1 ) : member( x0 , x1 ) {} template < typename T0 , typename T1 , typename T2 > explicit base_from_member( T0 x0 , T1 x1 , T2 x2 ) : member( x0 , x1 , x2 ) {} template < typename T0 , typename T1 , typename T2 , typename T3 > explicit base_from_member( T0 x0 , T1 x1 , T2 x2 , T3 x3 ) : member( x0 , x1 , x2 , x3 ) {} template < typename T0 , typename T1 , typename T2 , typename T3 , typename T4 > explicit base_from_member( T0 x0 , T1 x1 , T2 x2 , T3 x3 , T4 x4 ) : member( x0 , x1 , x2 , x3 , x4 ) {} template < typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > explicit base_from_member( T0 x0 , T1 x1 , T2 x2 , T3 x3 , T4 x4 , T5 x5 ) : member( x0 , x1 , x2 , x3 , x4 , x5 ) {} template < typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > explicit base_from_member( T0 x0 , T1 x1 , T2 x2 , T3 x3 , T4 x4 , T5 x5 , T6 x6 ) : member( x0 , x1 , x2 , x3 , x4 , x5 , x6 ) {} template < typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 > explicit base_from_member( T0 x0 , T1 x1 , T2 x2 , T3 x3 , T4 x4 , T5 x5 , T6 x6 , T7 x7 ) : member( x0 , x1 , x2 , x3 , x4 , x5 , x6 , x7 ) {} template < typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 > explicit base_from_member( T0 x0 , T1 x1 , T2 x2 , T3 x3 , T4 x4 , T5 x5 , T6 x6 , T7 x7 , T8 x8 ) : member( x0 , x1 , x2 , x3 , x4 , x5 , x6 , x7 , x8 ) {} template < typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 > explicit base_from_member( T0 x0 , T1 x1 , T2 x2 , T3 x3 , T4 x4 , T5 x5 , T6 x6 , T7 x7 , T8 x8 , T9 x9 ) : member( x0 , x1 , x2 , x3 , x4 , x5 , x6 , x7 , x8 , x9 ) {} }; template < typename MemberType, int UniqueID > class base_from_member { protected: MemberType& member; explicit base_from_member( MemberType& x ) : member( x ) {} }; } # 14 "/usr/include/boost/utility.hpp" 2 3 4 # 1 "/usr/include/boost/utility/binary.hpp" 1 3 4 # 26 "/usr/include/boost/utility/binary.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/control/deduce_d.hpp" 1 3 4 # 16 "/usr/include/boost/preprocessor/control/deduce_d.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/detail/auto_rec.hpp" 1 3 4 # 17 "/usr/include/boost/preprocessor/control/deduce_d.hpp" 2 3 4 # 27 "/usr/include/boost/utility/binary.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/seq/cat.hpp" 1 3 4 # 18 "/usr/include/boost/preprocessor/seq/cat.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/seq/fold_left.hpp" 1 3 4 # 19 "/usr/include/boost/preprocessor/seq/fold_left.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/detail/auto_rec.hpp" 1 3 4 # 20 "/usr/include/boost/preprocessor/seq/fold_left.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/seq/seq.hpp" 1 3 4 # 16 "/usr/include/boost/preprocessor/seq/seq.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/seq/elem.hpp" 1 3 4 # 17 "/usr/include/boost/preprocessor/seq/seq.hpp" 2 3 4 # 21 "/usr/include/boost/preprocessor/seq/fold_left.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/seq/size.hpp" 1 3 4 # 22 "/usr/include/boost/preprocessor/seq/fold_left.hpp" 2 3 4 # 19 "/usr/include/boost/preprocessor/seq/cat.hpp" 2 3 4 # 30 "/usr/include/boost/utility/binary.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/seq/transform.hpp" 1 3 4 # 31 "/usr/include/boost/utility/binary.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/arithmetic/mod.hpp" 1 3 4 # 17 "/usr/include/boost/preprocessor/arithmetic/mod.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/arithmetic/detail/div_base.hpp" 1 3 4 # 19 "/usr/include/boost/preprocessor/arithmetic/detail/div_base.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/comparison/less_equal.hpp" 1 3 4 # 19 "/usr/include/boost/preprocessor/comparison/less_equal.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/logical/not.hpp" 1 3 4 # 20 "/usr/include/boost/preprocessor/comparison/less_equal.hpp" 2 3 4 # 20 "/usr/include/boost/preprocessor/arithmetic/detail/div_base.hpp" 2 3 4 # 18 "/usr/include/boost/preprocessor/arithmetic/mod.hpp" 2 3 4 # 32 "/usr/include/boost/utility/binary.hpp" 2 3 4 # 15 "/usr/include/boost/utility.hpp" 2 3 4 # 1 "/usr/include/boost/utility/identity_type.hpp" 1 3 4 # 16 "/usr/include/boost/utility/identity_type.hpp" 3 4 # 1 "/usr/include/boost/type_traits/function_traits.hpp" 1 3 4 # 16 "/usr/include/boost/type_traits/function_traits.hpp" 3 4 namespace boost { namespace detail { template struct function_traits_helper; template struct function_traits_helper { static const unsigned arity = 0; typedef R result_type; }; template struct function_traits_helper { static const unsigned arity = 1; typedef R result_type; typedef T1 arg1_type; typedef T1 argument_type; }; template struct function_traits_helper { static const unsigned arity = 2; typedef R result_type; typedef T1 arg1_type; typedef T2 arg2_type; typedef T1 first_argument_type; typedef T2 second_argument_type; }; template struct function_traits_helper { static const unsigned arity = 3; typedef R result_type; typedef T1 arg1_type; typedef T2 arg2_type; typedef T3 arg3_type; }; template struct function_traits_helper { static const unsigned arity = 4; typedef R result_type; typedef T1 arg1_type; typedef T2 arg2_type; typedef T3 arg3_type; typedef T4 arg4_type; }; template struct function_traits_helper { static const unsigned arity = 5; typedef R result_type; typedef T1 arg1_type; typedef T2 arg2_type; typedef T3 arg3_type; typedef T4 arg4_type; typedef T5 arg5_type; }; template struct function_traits_helper { static const unsigned arity = 6; typedef R result_type; typedef T1 arg1_type; typedef T2 arg2_type; typedef T3 arg3_type; typedef T4 arg4_type; typedef T5 arg5_type; typedef T6 arg6_type; }; template struct function_traits_helper { static const unsigned arity = 7; typedef R result_type; typedef T1 arg1_type; typedef T2 arg2_type; typedef T3 arg3_type; typedef T4 arg4_type; typedef T5 arg5_type; typedef T6 arg6_type; typedef T7 arg7_type; }; template struct function_traits_helper { static const unsigned arity = 8; typedef R result_type; typedef T1 arg1_type; typedef T2 arg2_type; typedef T3 arg3_type; typedef T4 arg4_type; typedef T5 arg5_type; typedef T6 arg6_type; typedef T7 arg7_type; typedef T8 arg8_type; }; template struct function_traits_helper { static const unsigned arity = 9; typedef R result_type; typedef T1 arg1_type; typedef T2 arg2_type; typedef T3 arg3_type; typedef T4 arg4_type; typedef T5 arg5_type; typedef T6 arg6_type; typedef T7 arg7_type; typedef T8 arg8_type; typedef T9 arg9_type; }; template struct function_traits_helper { static const unsigned arity = 10; typedef R result_type; typedef T1 arg1_type; typedef T2 arg2_type; typedef T3 arg3_type; typedef T4 arg4_type; typedef T5 arg5_type; typedef T6 arg6_type; typedef T7 arg7_type; typedef T8 arg8_type; typedef T9 arg9_type; typedef T10 arg10_type; }; } template struct function_traits : public boost::detail::function_traits_helper::type> { }; } # 17 "/usr/include/boost/utility/identity_type.hpp" 2 3 4 # 17 "/usr/include/boost/utility.hpp" 2 3 4 # 1 "/usr/include/boost/checked_delete.hpp" 1 3 4 # 15 "/usr/include/boost/checked_delete.hpp" 3 4 # 1 "/usr/include/boost/core/checked_delete.hpp" 1 3 4 # 24 "/usr/include/boost/core/checked_delete.hpp" 3 4 namespace boost { template inline void checked_delete(T * x) { typedef char type_must_be_complete[ sizeof(T)? 1: -1 ]; (void) sizeof(type_must_be_complete); delete x; } template inline void checked_array_delete(T * x) { typedef char type_must_be_complete[ sizeof(T)? 1: -1 ]; (void) sizeof(type_must_be_complete); delete [] x; } template struct checked_deleter { typedef void result_type; typedef T * argument_type; void operator()(T * x) const { boost::checked_delete(x); } }; template struct checked_array_deleter { typedef void result_type; typedef T * argument_type; void operator()(T * x) const { boost::checked_array_delete(x); } }; } # 16 "/usr/include/boost/checked_delete.hpp" 2 3 4 # 18 "/usr/include/boost/utility.hpp" 2 3 4 # 23 "ws-recursor.hh" 2 # 1 "namespaces.hh" 1 # 1 "/usr/include/boost/lexical_cast.hpp" 1 3 4 # 23 "/usr/include/boost/lexical_cast.hpp" 3 4 # 1 "/usr/include/boost/range/iterator_range_core.hpp" 1 3 4 # 25 "/usr/include/boost/range/iterator_range_core.hpp" 3 4 # 1 "/usr/include/boost/assert.hpp" 1 3 4 # 54 "/usr/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 64 "/usr/include/assert.h" 3 4 extern "C" { extern void __assert_fail (const char *__assertion, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert_perror_fail (int __errnum, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert (const char *__assertion, const char *__file, int __line) throw () __attribute__ ((__noreturn__)); } # 55 "/usr/include/boost/assert.hpp" 2 3 4 # 26 "/usr/include/boost/range/iterator_range_core.hpp" 2 3 4 # 38 "/usr/include/boost/range/iterator_range_core.hpp" 3 4 # 1 "/usr/include/boost/range/functions.hpp" 1 3 4 # 20 "/usr/include/boost/range/functions.hpp" 3 4 # 1 "/usr/include/boost/range/size.hpp" 1 3 4 # 21 "/usr/include/boost/range/size.hpp" 3 4 # 1 "/usr/include/boost/range/size_type.hpp" 1 3 4 # 19 "/usr/include/boost/range/size_type.hpp" 3 4 # 1 "/usr/include/boost/range/difference_type.hpp" 1 3 4 # 23 "/usr/include/boost/range/difference_type.hpp" 3 4 namespace boost { template< class T > struct range_difference : iterator_difference< typename range_iterator< typename remove_reference::type >::type > { }; } # 20 "/usr/include/boost/range/size_type.hpp" 2 3 4 # 1 "/usr/include/boost/range/concepts.hpp" 1 3 4 # 19 "/usr/include/boost/range/concepts.hpp" 3 4 # 1 "/usr/include/boost/concept_check.hpp" 1 3 4 # 20 "/usr/include/boost/concept_check.hpp" 3 4 # 1 "/usr/include/boost/concept/assert.hpp" 1 3 4 # 35 "/usr/include/boost/concept/assert.hpp" 3 4 # 1 "/usr/include/boost/concept/detail/general.hpp" 1 3 4 # 1 "/usr/include/boost/concept/detail/backward_compatibility.hpp" 1 3 4 namespace boost { namespace concepts {} } # 9 "/usr/include/boost/concept/detail/general.hpp" 2 3 4 # 1 "/usr/include/boost/concept/detail/has_constraints.hpp" 1 3 4 # 11 "/usr/include/boost/concept/detail/has_constraints.hpp" 3 4 namespace boost { namespace concepts { namespace detail { typedef char yes; typedef char (&no)[2]; template struct wrap_constraints {}; # 31 "/usr/include/boost/concept/detail/has_constraints.hpp" 3 4 template inline yes has_constraints_(Model*, wrap_constraints* = 0); inline no has_constraints_(...); } template struct not_satisfied { static const bool value = sizeof( detail::has_constraints_((Model*)0) ) == sizeof(detail::yes) ; typedef mpl::bool_ type; }; }} # 12 "/usr/include/boost/concept/detail/general.hpp" 2 3 4 namespace boost { namespace concepts { template struct requirement_; namespace detail { template struct instantiate {}; } template struct requirement { static void failed() { ((Model*)0)->~Model(); } }; struct failed {}; template struct requirement { static void failed() { ((Model*)0)->~Model(); } }; template struct constraint { static void failed() { ((Model*)0)->constraints(); } }; template struct requirement_ : mpl::if_< concepts::not_satisfied , constraint , requirement >::type {}; # 82 "/usr/include/boost/concept/detail/general.hpp" 3 4 }} # 36 "/usr/include/boost/concept/assert.hpp" 2 3 4 # 21 "/usr/include/boost/concept_check.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/conversion_traits.hpp" 1 3 4 # 24 "/usr/include/boost/concept_check.hpp" 2 3 4 # 32 "/usr/include/boost/concept_check.hpp" 3 4 # 1 "/usr/include/boost/concept/usage.hpp" 1 3 4 # 11 "/usr/include/boost/concept/usage.hpp" 3 4 namespace boost { namespace concepts { template struct usage_requirements { ~usage_requirements() { ((Model*)0)->~Model(); } }; # 34 "/usr/include/boost/concept/usage.hpp" 3 4 }} # 33 "/usr/include/boost/concept_check.hpp" 2 3 4 # 1 "/usr/include/boost/concept/detail/concept_def.hpp" 1 3 4 # 1 "/usr/include/boost/preprocessor/seq/for_each_i.hpp" 1 3 4 # 7 "/usr/include/boost/concept/detail/concept_def.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/seq/enum.hpp" 1 3 4 # 8 "/usr/include/boost/concept/detail/concept_def.hpp" 2 3 4 # 34 "/usr/include/boost/concept_check.hpp" 2 3 4 namespace boost { template inline void function_requires(Model* = 0) { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_::failed> boost_concept_check51 __attribute__((unused)); } template inline void ignore_unused_variable_warning(T const&) {} # 71 "/usr/include/boost/concept_check.hpp" 3 4 template < typename T > struct Integer; template < typename T > struct IntegerConcept : Integer< T > { }; template < typename T > struct Integer { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check73 __attribute__((unused)); ~Integer() { x.error_type_must_be_an_integer_type(); } private: T x; }; template <> struct Integer {}; template <> struct Integer {}; template <> struct Integer {}; template <> struct Integer {}; template <> struct Integer {}; template <> struct Integer {}; template <> struct Integer {}; template <> struct Integer {}; template <> struct Integer {}; template <> struct Integer< ::boost::long_long_type> {}; template <> struct Integer< ::boost::ulong_long_type> {}; template < typename T > struct SignedInteger; template < typename T > struct SignedIntegerConcept : SignedInteger< T > { }; template < typename T > struct SignedInteger { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check99 __attribute__((unused)); ~SignedInteger() { x.error_type_must_be_a_signed_integer_type(); } private: T x; }; template <> struct SignedInteger { }; template <> struct SignedInteger {}; template <> struct SignedInteger {}; template <> struct SignedInteger {}; template <> struct SignedInteger< ::boost::long_long_type> {}; template < typename T > struct UnsignedInteger; template < typename T > struct UnsignedIntegerConcept : UnsignedInteger< T > { }; template < typename T > struct UnsignedInteger { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check116 __attribute__((unused)); ~UnsignedInteger() { x.error_type_must_be_an_unsigned_integer_type(); } private: T x; }; template <> struct UnsignedInteger {}; template <> struct UnsignedInteger {}; template <> struct UnsignedInteger {}; template <> struct UnsignedInteger {}; template <> struct UnsignedInteger< ::boost::ulong_long_type> {}; template < typename TT > struct DefaultConstructible; template < typename TT > struct DefaultConstructibleConcept : DefaultConstructible< TT > { }; template < typename TT > struct DefaultConstructible { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check138 __attribute__((unused)); ~DefaultConstructible() { TT a; ignore_unused_variable_warning(a); } }; template < typename TT > struct Assignable; template < typename TT > struct AssignableConcept : Assignable< TT > { }; template < typename TT > struct Assignable { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check146 __attribute__((unused)); ~Assignable() { a = b; const_constraints(b); } private: void const_constraints(const TT& x) { a = x; } private: TT a; TT b; }; template < typename TT > struct CopyConstructible; template < typename TT > struct CopyConstructibleConcept : CopyConstructible< TT > { }; template < typename TT > struct CopyConstructible { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check168 __attribute__((unused)); ~CopyConstructible() { TT a(b); TT* ptr = &a; const_constraints(a); ignore_unused_variable_warning(ptr); } private: void const_constraints(const TT& a) { TT c(a); const TT* ptr = &a; ignore_unused_variable_warning(c); ignore_unused_variable_warning(ptr); } TT b; }; template < typename TT > struct SGIAssignable; template < typename TT > struct SGIAssignableConcept : SGIAssignable< TT > { }; template < typename TT > struct SGIAssignable { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check187 __attribute__((unused)); ~SGIAssignable() { TT c(a); a = b; const_constraints(b); ignore_unused_variable_warning(c); } private: void const_constraints(const TT& x) { TT c(x); a = x; ignore_unused_variable_warning(c); } TT a; TT b; }; template < typename X , typename Y > struct Convertible; template < typename X , typename Y > struct ConvertibleConcept : Convertible< X, Y > { }; template < typename X , typename Y > struct Convertible { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check209 __attribute__((unused)); ~Convertible() { Y y = x; ignore_unused_variable_warning(y); } private: X x; }; # 226 "/usr/include/boost/concept_check.hpp" 3 4 template void require_boolean_expr(const TT& t) { bool x = t; ignore_unused_variable_warning(x); } template < typename TT > struct EqualityComparable; template < typename TT > struct EqualityComparableConcept : EqualityComparable< TT > { }; template < typename TT > struct EqualityComparable { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check234 __attribute__((unused)); ~EqualityComparable() { require_boolean_expr(a == b); require_boolean_expr(a != b); } private: TT a, b; }; template < typename TT > struct LessThanComparable; template < typename TT > struct LessThanComparableConcept : LessThanComparable< TT > { }; template < typename TT > struct LessThanComparable { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check244 __attribute__((unused)); ~LessThanComparable() { require_boolean_expr(a < b); } private: TT a, b; }; template < typename TT > struct Comparable; template < typename TT > struct ComparableConcept : Comparable< TT > { }; template < typename TT > struct Comparable { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check254 __attribute__((unused)); ~Comparable() { require_boolean_expr(a < b); require_boolean_expr(a > b); require_boolean_expr(a <= b); require_boolean_expr(a >= b); } private: TT a, b; }; # 284 "/usr/include/boost/concept_check.hpp" 3 4 template < typename First , typename Second > struct EqualOp; template < typename First , typename Second > struct EqualOpConcept : EqualOp< First, Second > { }; template < typename First , typename Second > struct EqualOp { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check284 __attribute__((unused)); ~EqualOp() { (void)constraints_(); } private: bool constraints_() { return a == b; } First a; Second b; }; template < typename First , typename Second > struct NotEqualOp; template < typename First , typename Second > struct NotEqualOpConcept : NotEqualOp< First, Second > { }; template < typename First , typename Second > struct NotEqualOp { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check285 __attribute__((unused)); ~NotEqualOp() { (void)constraints_(); } private: bool constraints_() { return a != b; } First a; Second b; }; template < typename First , typename Second > struct LessThanOp; template < typename First , typename Second > struct LessThanOpConcept : LessThanOp< First, Second > { }; template < typename First , typename Second > struct LessThanOp { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check286 __attribute__((unused)); ~LessThanOp() { (void)constraints_(); } private: bool constraints_() { return a < b; } First a; Second b; }; template < typename First , typename Second > struct LessEqualOp; template < typename First , typename Second > struct LessEqualOpConcept : LessEqualOp< First, Second > { }; template < typename First , typename Second > struct LessEqualOp { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check287 __attribute__((unused)); ~LessEqualOp() { (void)constraints_(); } private: bool constraints_() { return a <= b; } First a; Second b; }; template < typename First , typename Second > struct GreaterThanOp; template < typename First , typename Second > struct GreaterThanOpConcept : GreaterThanOp< First, Second > { }; template < typename First , typename Second > struct GreaterThanOp { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check288 __attribute__((unused)); ~GreaterThanOp() { (void)constraints_(); } private: bool constraints_() { return a > b; } First a; Second b; }; template < typename First , typename Second > struct GreaterEqualOp; template < typename First , typename Second > struct GreaterEqualOpConcept : GreaterEqualOp< First, Second > { }; template < typename First , typename Second > struct GreaterEqualOp { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check289 __attribute__((unused)); ~GreaterEqualOp() { (void)constraints_(); } private: bool constraints_() { return a >= b; } First a; Second b; }; template < typename Ret , typename First , typename Second > struct PlusOp; template < typename Ret , typename First , typename Second > struct PlusOpConcept : PlusOp< Ret, First, Second > { }; template < typename Ret , typename First , typename Second > struct PlusOp { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check291 __attribute__((unused)); ~PlusOp() { (void)constraints_(); } private: Ret constraints_() { return a + b; } First a; Second b; }; template < typename Ret , typename First , typename Second > struct TimesOp; template < typename Ret , typename First , typename Second > struct TimesOpConcept : TimesOp< Ret, First, Second > { }; template < typename Ret , typename First , typename Second > struct TimesOp { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check292 __attribute__((unused)); ~TimesOp() { (void)constraints_(); } private: Ret constraints_() { return a * b; } First a; Second b; }; template < typename Ret , typename First , typename Second > struct DivideOp; template < typename Ret , typename First , typename Second > struct DivideOpConcept : DivideOp< Ret, First, Second > { }; template < typename Ret , typename First , typename Second > struct DivideOp { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check293 __attribute__((unused)); ~DivideOp() { (void)constraints_(); } private: Ret constraints_() { return a / b; } First a; Second b; }; template < typename Ret , typename First , typename Second > struct SubtractOp; template < typename Ret , typename First , typename Second > struct SubtractOpConcept : SubtractOp< Ret, First, Second > { }; template < typename Ret , typename First , typename Second > struct SubtractOp { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check294 __attribute__((unused)); ~SubtractOp() { (void)constraints_(); } private: Ret constraints_() { return a - b; } First a; Second b; }; template < typename Ret , typename First , typename Second > struct ModOp; template < typename Ret , typename First , typename Second > struct ModOpConcept : ModOp< Ret, First, Second > { }; template < typename Ret , typename First , typename Second > struct ModOp { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check295 __attribute__((unused)); ~ModOp() { (void)constraints_(); } private: Ret constraints_() { return a % b; } First a; Second b; }; template < typename Func , typename Return > struct Generator; template < typename Func , typename Return > struct GeneratorConcept : Generator< Func, Return > { }; template < typename Func , typename Return > struct Generator { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check302 __attribute__((unused)); ~Generator() { test(is_void()); } private: void test(boost::mpl::false_) { const Return& r = f(); ignore_unused_variable_warning(r); } void test(boost::mpl::true_) { f(); } Func f; }; template < typename Func , typename Return , typename Arg > struct UnaryFunction; template < typename Func , typename Return , typename Arg > struct UnaryFunctionConcept : UnaryFunction< Func, Return, Arg > { }; template < typename Func , typename Return , typename Arg > struct UnaryFunction { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check322 __attribute__((unused)); ~UnaryFunction() { test(is_void()); } private: void test(boost::mpl::false_) { f(arg); Return r = f(arg); ignore_unused_variable_warning(r); } void test(boost::mpl::true_) { f(arg); } UnaryFunction(); Func f; Arg arg; }; template < typename Func , typename Return , typename First , typename Second > struct BinaryFunction; template < typename Func , typename Return , typename First , typename Second > struct BinaryFunctionConcept : BinaryFunction< Func, Return, First, Second > { }; template < typename Func , typename Return , typename First , typename Second > struct BinaryFunction { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check352 __attribute__((unused)); ~BinaryFunction() { test(is_void()); } private: void test(boost::mpl::false_) { f(first,second); Return r = f(first, second); (void)r; } void test(boost::mpl::true_) { f(first,second); } BinaryFunction(); Func f; First first; Second second; }; template < typename Func , typename Arg > struct UnaryPredicate; template < typename Func , typename Arg > struct UnaryPredicateConcept : UnaryPredicate< Func, Arg > { }; template < typename Func , typename Arg > struct UnaryPredicate { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check382 __attribute__((unused)); ~UnaryPredicate() { require_boolean_expr(f(arg)); } private: UnaryPredicate(); Func f; Arg arg; }; template < typename Func , typename First , typename Second > struct BinaryPredicate; template < typename Func , typename First , typename Second > struct BinaryPredicateConcept : BinaryPredicate< Func, First, Second > { }; template < typename Func , typename First , typename Second > struct BinaryPredicate { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check401 __attribute__((unused)); ~BinaryPredicate() { require_boolean_expr(f(a, b)); } private: BinaryPredicate(); Func f; First a; Second b; }; template < typename Func , typename First , typename Second > struct Const_BinaryPredicate; template < typename Func , typename First , typename Second > struct Const_BinaryPredicateConcept : Const_BinaryPredicate< Func, First, Second > { }; template < typename Func , typename First , typename Second > struct Const_BinaryPredicate : BinaryPredicate { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check422 __attribute__((unused)); ~Const_BinaryPredicate() { const_constraints(f); } private: void const_constraints(const Func& fun) { require_boolean_expr(fun(a, b)); } Const_BinaryPredicate(); Func f; First a; Second b; }; template < typename Func , typename Return > struct AdaptableGenerator; template < typename Func , typename Return > struct AdaptableGeneratorConcept : AdaptableGenerator< Func, Return > { }; template < typename Func , typename Return > struct AdaptableGenerator : Generator { typedef typename Func::result_type result_type; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check449 __attribute__((unused)); ~AdaptableGenerator() { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check451 __attribute__((unused)); } }; template < typename Func , typename Return , typename Arg > struct AdaptableUnaryFunction; template < typename Func , typename Return , typename Arg > struct AdaptableUnaryFunctionConcept : AdaptableUnaryFunction< Func, Return, Arg > { }; template < typename Func , typename Return , typename Arg > struct AdaptableUnaryFunction : UnaryFunction { typedef typename Func::argument_type argument_type; typedef typename Func::result_type result_type; ~AdaptableUnaryFunction() { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check463 __attribute__((unused)); typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check464 __attribute__((unused)); } }; template < typename Func , typename Return , typename First , typename Second > struct AdaptableBinaryFunction; template < typename Func , typename Return , typename First , typename Second > struct AdaptableBinaryFunctionConcept : AdaptableBinaryFunction< Func, Return, First, Second > { }; template < typename Func , typename Return , typename First , typename Second > struct AdaptableBinaryFunction : BinaryFunction< Func , typename Func::result_type , typename Func::first_argument_type , typename Func::second_argument_type > { typedef typename Func::first_argument_type first_argument_type; typedef typename Func::second_argument_type second_argument_type; typedef typename Func::result_type result_type; ~AdaptableBinaryFunction() { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check482 __attribute__((unused)); typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check483 __attribute__((unused)); typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check484 __attribute__((unused)); } }; template < typename Func , typename Arg > struct AdaptablePredicate; template < typename Func , typename Arg > struct AdaptablePredicateConcept : AdaptablePredicate< Func, Arg > { }; template < typename Func , typename Arg > struct AdaptablePredicate : UnaryPredicate , AdaptableUnaryFunction { }; template < typename Func , typename First , typename Second > struct AdaptableBinaryPredicate; template < typename Func , typename First , typename Second > struct AdaptableBinaryPredicateConcept : AdaptableBinaryPredicate< Func, First, Second > { }; template < typename Func , typename First , typename Second > struct AdaptableBinaryPredicate : BinaryPredicate , AdaptableBinaryFunction { }; template < typename TT > struct InputIterator; template < typename TT > struct InputIteratorConcept : InputIterator< TT > { }; template < typename TT > struct InputIterator : Assignable , EqualityComparable { typedef typename boost::detail::iterator_traits::value_type value_type; typedef typename boost::detail::iterator_traits::difference_type difference_type; typedef typename boost::detail::iterator_traits::reference reference; typedef typename boost::detail::iterator_traits::pointer pointer; typedef typename boost::detail::iterator_traits::iterator_category iterator_category; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check513 __attribute__((unused)); ~InputIterator() { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check515 __attribute__((unused)); typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check516 __attribute__((unused)); TT j(i); (void)*i; ++j; i++; } private: TT i; }; template < typename TT , typename ValueT > struct OutputIterator; template < typename TT , typename ValueT > struct OutputIteratorConcept : OutputIterator< TT, ValueT > { }; template < typename TT , typename ValueT > struct OutputIterator : Assignable { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check530 __attribute__((unused)); ~OutputIterator() { ++i; i++; *i++ = t; } private: TT i, j; ValueT t; }; template < typename TT > struct ForwardIterator; template < typename TT > struct ForwardIteratorConcept : ForwardIterator< TT > { }; template < typename TT > struct ForwardIterator : InputIterator { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check544 __attribute__((unused)); ~ForwardIterator() { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check549 __attribute__((unused)) ; typename InputIterator::reference r = *i; ignore_unused_variable_warning(r); } private: TT i; }; template < typename TT > struct Mutable_ForwardIterator; template < typename TT > struct Mutable_ForwardIteratorConcept : Mutable_ForwardIterator< TT > { }; template < typename TT > struct Mutable_ForwardIterator : ForwardIterator { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check562 __attribute__((unused)); ~Mutable_ForwardIterator() { *i++ = *j; } private: TT i, j; }; template < typename TT > struct BidirectionalIterator; template < typename TT > struct BidirectionalIteratorConcept : BidirectionalIterator< TT > { }; template < typename TT > struct BidirectionalIterator : ForwardIterator { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check572 __attribute__((unused)); ~BidirectionalIterator() { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check577 __attribute__((unused)) ; --i; i--; } private: TT i; }; template < typename TT > struct Mutable_BidirectionalIterator; template < typename TT > struct Mutable_BidirectionalIteratorConcept : Mutable_BidirectionalIterator< TT > { }; template < typename TT > struct Mutable_BidirectionalIterator : BidirectionalIterator , Mutable_ForwardIterator { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check590 __attribute__((unused)); ~Mutable_BidirectionalIterator() { *i-- = *j; } private: TT i, j; }; template < typename TT > struct RandomAccessIterator; template < typename TT > struct RandomAccessIteratorConcept : RandomAccessIterator< TT > { }; template < typename TT > struct RandomAccessIterator : BidirectionalIterator , Comparable { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check602 __attribute__((unused)); ~RandomAccessIterator() { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_::iterator_category , std::random_access_iterator_tag >)>::failed> boost_concept_check607 __attribute__((unused)) ; i += n; i = i + n; i = n + i; i -= n; i = i - n; n = i - j; (void)i[n]; } private: TT a, b; TT i, j; typename boost::detail::iterator_traits::difference_type n; }; template < typename TT > struct Mutable_RandomAccessIterator; template < typename TT > struct Mutable_RandomAccessIteratorConcept : Mutable_RandomAccessIterator< TT > { }; template < typename TT > struct Mutable_RandomAccessIterator : RandomAccessIterator , Mutable_BidirectionalIterator { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check627 __attribute__((unused)); ~Mutable_RandomAccessIterator() { i[n] = *i; } private: TT i; typename boost::detail::iterator_traits::difference_type n; }; template < typename C > struct Container; template < typename C > struct ContainerConcept : Container< C > { }; template < typename C > struct Container : Assignable { typedef typename C::value_type value_type; typedef typename C::difference_type difference_type; typedef typename C::size_type size_type; typedef typename C::const_reference const_reference; typedef typename C::const_pointer const_pointer; typedef typename C::const_iterator const_iterator; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check649 __attribute__((unused)); ~Container() { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check651 __attribute__((unused)); const_constraints(c); } private: void const_constraints(const C& cc) { i = cc.begin(); i = cc.end(); n = cc.size(); n = cc.max_size(); b = cc.empty(); } C c; bool b; const_iterator i; size_type n; }; template < typename C > struct Mutable_Container; template < typename C > struct Mutable_ContainerConcept : Mutable_Container< C > { }; template < typename C > struct Mutable_Container : Container { typedef typename C::reference reference; typedef typename C::iterator iterator; typedef typename C::pointer pointer; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check676 __attribute__((unused)); ~Mutable_Container() { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check679 __attribute__((unused)) ; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check681 __attribute__((unused)); i = c.begin(); i = c.end(); c.swap(c2); } private: iterator i; C c, c2; }; template < typename C > struct ForwardContainer; template < typename C > struct ForwardContainerConcept : ForwardContainer< C > { }; template < typename C > struct ForwardContainer : Container { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check696 __attribute__((unused)); ~ForwardContainer() { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check701 __attribute__((unused)) ; } }; template < typename C > struct Mutable_ForwardContainer; template < typename C > struct Mutable_ForwardContainerConcept : Mutable_ForwardContainer< C > { }; template < typename C > struct Mutable_ForwardContainer : ForwardContainer , Mutable_Container { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check709 __attribute__((unused)); ~Mutable_ForwardContainer() { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check714 __attribute__((unused)) ; } }; template < typename C > struct ReversibleContainer; template < typename C > struct ReversibleContainerConcept : ReversibleContainer< C > { }; template < typename C > struct ReversibleContainer : ForwardContainer { typedef typename C::const_reverse_iterator const_reverse_iterator; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check725 __attribute__((unused)); ~ReversibleContainer() { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check729 __attribute__((unused)) ; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check731 __attribute__((unused)); const_constraints(c); } private: void const_constraints(const C& cc) { const_reverse_iterator i = cc.rbegin(); i = cc.rend(); } C c; }; template < typename C > struct Mutable_ReversibleContainer; template < typename C > struct Mutable_ReversibleContainerConcept : Mutable_ReversibleContainer< C > { }; template < typename C > struct Mutable_ReversibleContainer : Mutable_ForwardContainer , ReversibleContainer { typedef typename C::reverse_iterator reverse_iterator; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check750 __attribute__((unused)); ~Mutable_ReversibleContainer() { typedef typename Mutable_ForwardContainer::iterator iterator; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check753 __attribute__((unused)); typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check754 __attribute__((unused)); reverse_iterator i = c.rbegin(); i = c.rend(); } private: C c; }; template < typename C > struct RandomAccessContainer; template < typename C > struct RandomAccessContainerConcept : RandomAccessContainer< C > { }; template < typename C > struct RandomAccessContainer : ReversibleContainer { typedef typename C::size_type size_type; typedef typename C::const_reference const_reference; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check769 __attribute__((unused)); ~RandomAccessContainer() { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check774 __attribute__((unused)) ; const_constraints(c); } private: void const_constraints(const C& cc) { const_reference r = cc[n]; ignore_unused_variable_warning(r); } C c; size_type n; }; template < typename C > struct Mutable_RandomAccessContainer; template < typename C > struct Mutable_RandomAccessContainerConcept : Mutable_RandomAccessContainer< C > { }; template < typename C > struct Mutable_RandomAccessContainer : Mutable_ReversibleContainer , RandomAccessContainer { private: typedef Mutable_RandomAccessContainer self; public: typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check796 __attribute__((unused)); ~Mutable_RandomAccessContainer() { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check798 __attribute__((unused)); typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check799 __attribute__((unused)); typename self::reference r = c[i]; ignore_unused_variable_warning(r); } private: typename Mutable_ReversibleContainer::size_type i; C c; }; template < typename S > struct Sequence; template < typename S > struct SequenceConcept : Sequence< S > { }; template < typename S > struct Sequence : Mutable_ForwardContainer , DefaultConstructible { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check818 __attribute__((unused)); ~Sequence() { S c(n), c2(n, t), c3(first, last); c.insert(p, t); c.insert(p, n, t); c.insert(p, first, last); c.erase(p); c.erase(p, q); typename Sequence::reference r = c.front(); ignore_unused_variable_warning(c); ignore_unused_variable_warning(c2); ignore_unused_variable_warning(c3); ignore_unused_variable_warning(r); const_constraints(c); } private: void const_constraints(const S& c) { typename Sequence::const_reference r = c.front(); ignore_unused_variable_warning(r); } typename S::value_type t; typename S::size_type n; typename S::value_type* first, *last; typename S::iterator p, q; }; template < typename S > struct FrontInsertionSequence; template < typename S > struct FrontInsertionSequenceConcept : FrontInsertionSequence< S > { }; template < typename S > struct FrontInsertionSequence : Sequence { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check855 __attribute__((unused)); ~FrontInsertionSequence() { c.push_front(t); c.pop_front(); } private: S c; typename S::value_type t; }; template < typename S > struct BackInsertionSequence; template < typename S > struct BackInsertionSequenceConcept : BackInsertionSequence< S > { }; template < typename S > struct BackInsertionSequence : Sequence { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check868 __attribute__((unused)); ~BackInsertionSequence() { c.push_back(t); c.pop_back(); typename BackInsertionSequence::reference r = c.back(); ignore_unused_variable_warning(r); const_constraints(c); } private: void const_constraints(const S& cc) { typename BackInsertionSequence::const_reference r = cc.back(); ignore_unused_variable_warning(r); } S c; typename S::value_type t; }; template < typename C > struct AssociativeContainer; template < typename C > struct AssociativeContainerConcept : AssociativeContainer< C > { }; template < typename C > struct AssociativeContainer : ForwardContainer , DefaultConstructible { typedef typename C::key_type key_type; typedef typename C::key_compare key_compare; typedef typename C::value_compare value_compare; typedef typename C::iterator iterator; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check895 __attribute__((unused)); ~AssociativeContainer() { i = c.find(k); r = c.equal_range(k); c.erase(k); c.erase(i); c.erase(r.first, r.second); const_constraints(c); typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check903 __attribute__((unused)); typedef typename AssociativeContainer::value_type value_type_; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check906 __attribute__((unused)); } typedef typename C::const_iterator const_iterator; private: void const_constraints(const C& cc) { ci = cc.find(k); n = cc.count(k); cr = cc.equal_range(k); } C c; iterator i; std::pair r; const_iterator ci; std::pair cr; typename C::key_type k; typename C::size_type n; }; template < typename C > struct UniqueAssociativeContainer; template < typename C > struct UniqueAssociativeContainerConcept : UniqueAssociativeContainer< C > { }; template < typename C > struct UniqueAssociativeContainer : AssociativeContainer { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check931 __attribute__((unused)); ~UniqueAssociativeContainer() { C c(first, last); pos_flag = c.insert(t); c.insert(first, last); ignore_unused_variable_warning(c); } private: std::pair pos_flag; typename C::value_type t; typename C::value_type* first, *last; }; template < typename C > struct MultipleAssociativeContainer; template < typename C > struct MultipleAssociativeContainerConcept : MultipleAssociativeContainer< C > { }; template < typename C > struct MultipleAssociativeContainer : AssociativeContainer { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check949 __attribute__((unused)); ~MultipleAssociativeContainer() { C c(first, last); pos = c.insert(t); c.insert(first, last); ignore_unused_variable_warning(c); ignore_unused_variable_warning(pos); } private: typename C::iterator pos; typename C::value_type t; typename C::value_type* first, *last; }; template < typename C > struct SimpleAssociativeContainer; template < typename C > struct SimpleAssociativeContainerConcept : SimpleAssociativeContainer< C > { }; template < typename C > struct SimpleAssociativeContainer : AssociativeContainer { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check968 __attribute__((unused)); ~SimpleAssociativeContainer() { typedef typename C::key_type key_type; typedef typename C::value_type value_type; enum { mpl_assertion_in_line_972 = sizeof( boost::mpl::assertion_failed( boost::mpl::assert_arg( (void (*) (boost::is_same))0, 1 ) ) ) }; } }; template < typename C > struct PairAssociativeContainer; template < typename C > struct PairAssociativeContainerConcept : PairAssociativeContainer< C > { }; template < typename C > struct PairAssociativeContainer : AssociativeContainer { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check979 __attribute__((unused)); ~PairAssociativeContainer() { typedef typename C::key_type key_type; typedef typename C::value_type value_type; typedef typename C::mapped_type mapped_type; typedef std::pair required_value_type; enum { mpl_assertion_in_line_985 = sizeof( boost::mpl::assertion_failed( boost::mpl::assert_arg( (void (*) (boost::is_same))0, 1 ) ) ) }; } }; template < typename C > struct SortedAssociativeContainer; template < typename C > struct SortedAssociativeContainerConcept : SortedAssociativeContainer< C > { }; template < typename C > struct SortedAssociativeContainer : AssociativeContainer , ReversibleContainer { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check993 __attribute__((unused)); ~SortedAssociativeContainer() { C c(kc), c2(first, last), c3(first, last, kc); p = c.upper_bound(k); p = c.lower_bound(k); r = c.equal_range(k); c.insert(p, t); ignore_unused_variable_warning(c); ignore_unused_variable_warning(c2); ignore_unused_variable_warning(c3); const_constraints(c); } void const_constraints(const C& c) { kc = c.key_comp(); vc = c.value_comp(); cp = c.upper_bound(k); cp = c.lower_bound(k); cr = c.equal_range(k); } private: typename C::key_compare kc; typename C::value_compare vc; typename C::value_type t; typename C::key_type k; typedef typename C::iterator iterator; typedef typename C::const_iterator const_iterator; typedef SortedAssociativeContainer self; iterator p; const_iterator cp; std::pair r; std::pair cr; typename C::value_type* first, *last; }; template < typename C > struct Collection; template < typename C > struct CollectionConcept : Collection< C > { }; template < typename C > struct Collection { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check1042 __attribute__((unused)); ~Collection() { boost::function_requires >(); boost::function_requires >(); boost::function_requires >(); const_constraints(c); i = c.begin(); i = c.end(); c.swap(c); } void const_constraints(const C& cc) { ci = cc.begin(); ci = cc.end(); n = cc.size(); b = cc.empty(); } private: typedef typename C::value_type value_type; typedef typename C::iterator iterator; typedef typename C::const_iterator const_iterator; typedef typename C::reference reference; typedef typename C::const_reference const_reference; typedef typename C::difference_type difference_type; typedef typename C::size_type size_type; C c; bool b; iterator i; const_iterator ci; size_type n; }; } # 1 "/usr/include/boost/concept/detail/concept_undef.hpp" 1 3 4 # 1083 "/usr/include/boost/concept_check.hpp" 2 3 4 # 20 "/usr/include/boost/range/concepts.hpp" 2 3 4 # 1 "/usr/include/boost/iterator/iterator_concepts.hpp" 1 3 4 # 26 "/usr/include/boost/iterator/iterator_concepts.hpp" 3 4 # 1 "/usr/include/boost/limits.hpp" 1 3 4 # 19 "/usr/include/boost/limits.hpp" 3 4 # 1 "/usr/include/c++/5.0.0/limits" 1 3 4 # 40 "/usr/include/c++/5.0.0/limits" 3 4 # 41 "/usr/include/c++/5.0.0/limits" 3 # 158 "/usr/include/c++/5.0.0/limits" 3 namespace std __attribute__ ((__visibility__ ("default"))) { enum float_round_style { round_indeterminate = -1, round_toward_zero = 0, round_to_nearest = 1, round_toward_infinity = 2, round_toward_neg_infinity = 3 }; enum float_denorm_style { denorm_indeterminate = -1, denorm_absent = 0, denorm_present = 1 }; # 202 "/usr/include/c++/5.0.0/limits" 3 struct __numeric_limits_base { static const bool is_specialized = false; static const int digits = 0; static const int digits10 = 0; # 223 "/usr/include/c++/5.0.0/limits" 3 static const bool is_signed = false; static const bool is_integer = false; static const bool is_exact = false; static const int radix = 0; static const int min_exponent = 0; static const int min_exponent10 = 0; static const int max_exponent = 0; static const int max_exponent10 = 0; static const bool has_infinity = false; static const bool has_quiet_NaN = false; static const bool has_signaling_NaN = false; static const float_denorm_style has_denorm = denorm_absent; static const bool has_denorm_loss = false; static const bool is_iec559 = false; static const bool is_bounded = false; # 288 "/usr/include/c++/5.0.0/limits" 3 static const bool is_modulo = false; static const bool traps = false; static const bool tinyness_before = false; static const float_round_style round_style = round_toward_zero; }; # 314 "/usr/include/c++/5.0.0/limits" 3 template struct numeric_limits : public __numeric_limits_base { static _Tp min() throw() { return _Tp(); } static _Tp max() throw() { return _Tp(); } # 335 "/usr/include/c++/5.0.0/limits" 3 static _Tp epsilon() throw() { return _Tp(); } static _Tp round_error() throw() { return _Tp(); } static _Tp infinity() throw() { return _Tp(); } static _Tp quiet_NaN() throw() { return _Tp(); } static _Tp signaling_NaN() throw() { return _Tp(); } static _Tp denorm_min() throw() { return _Tp(); } }; # 381 "/usr/include/c++/5.0.0/limits" 3 template<> struct numeric_limits { static const bool is_specialized = true; static bool min() throw() { return false; } static bool max() throw() { return true; } static const int digits = 1; static const int digits10 = 0; static const bool is_signed = false; static const bool is_integer = true; static const bool is_exact = true; static const int radix = 2; static bool epsilon() throw() { return false; } static bool round_error() throw() { return false; } static const int min_exponent = 0; static const int min_exponent10 = 0; static const int max_exponent = 0; static const int max_exponent10 = 0; static const bool has_infinity = false; static const bool has_quiet_NaN = false; static const bool has_signaling_NaN = false; static const float_denorm_style has_denorm = denorm_absent; static const bool has_denorm_loss = false; static bool infinity() throw() { return false; } static bool quiet_NaN() throw() { return false; } static bool signaling_NaN() throw() { return false; } static bool denorm_min() throw() { return false; } static const bool is_iec559 = false; static const bool is_bounded = true; static const bool is_modulo = false; static const bool traps = true; static const bool tinyness_before = false; static const float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits { static const bool is_specialized = true; static char min() throw() { return (((char)(-1) < 0) ? -(((char)(-1) < 0) ? (((((char)1 << ((sizeof(char) * 8 - ((char)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char)0) - 1 : (char)0); } static char max() throw() { return (((char)(-1) < 0) ? (((((char)1 << ((sizeof(char) * 8 - ((char)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char)0); } static const int digits = (sizeof(char) * 8 - ((char)(-1) < 0)); static const int digits10 = ((sizeof(char) * 8 - ((char)(-1) < 0)) * 643L / 2136); static const bool is_signed = ((char)(-1) < 0); static const bool is_integer = true; static const bool is_exact = true; static const int radix = 2; static char epsilon() throw() { return 0; } static char round_error() throw() { return 0; } static const int min_exponent = 0; static const int min_exponent10 = 0; static const int max_exponent = 0; static const int max_exponent10 = 0; static const bool has_infinity = false; static const bool has_quiet_NaN = false; static const bool has_signaling_NaN = false; static const float_denorm_style has_denorm = denorm_absent; static const bool has_denorm_loss = false; static char infinity() throw() { return char(); } static char quiet_NaN() throw() { return char(); } static char signaling_NaN() throw() { return char(); } static char denorm_min() throw() { return static_cast(0); } static const bool is_iec559 = false; static const bool is_bounded = true; static const bool is_modulo = !is_signed; static const bool traps = true; static const bool tinyness_before = false; static const float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits { static const bool is_specialized = true; static signed char min() throw() { return -0x7f - 1; } static signed char max() throw() { return 0x7f; } static const int digits = (sizeof(signed char) * 8 - ((signed char)(-1) < 0)); static const int digits10 = ((sizeof(signed char) * 8 - ((signed char)(-1) < 0)) * 643L / 2136); static const bool is_signed = true; static const bool is_integer = true; static const bool is_exact = true; static const int radix = 2; static signed char epsilon() throw() { return 0; } static signed char round_error() throw() { return 0; } static const int min_exponent = 0; static const int min_exponent10 = 0; static const int max_exponent = 0; static const int max_exponent10 = 0; static const bool has_infinity = false; static const bool has_quiet_NaN = false; static const bool has_signaling_NaN = false; static const float_denorm_style has_denorm = denorm_absent; static const bool has_denorm_loss = false; static signed char infinity() throw() { return static_cast(0); } static signed char quiet_NaN() throw() { return static_cast(0); } static signed char signaling_NaN() throw() { return static_cast(0); } static signed char denorm_min() throw() { return static_cast(0); } static const bool is_iec559 = false; static const bool is_bounded = true; static const bool is_modulo = false; static const bool traps = true; static const bool tinyness_before = false; static const float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits { static const bool is_specialized = true; static unsigned char min() throw() { return 0; } static unsigned char max() throw() { return 0x7f * 2U + 1; } static const int digits = (sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)); static const int digits10 = ((sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)) * 643L / 2136); static const bool is_signed = false; static const bool is_integer = true; static const bool is_exact = true; static const int radix = 2; static unsigned char epsilon() throw() { return 0; } static unsigned char round_error() throw() { return 0; } static const int min_exponent = 0; static const int min_exponent10 = 0; static const int max_exponent = 0; static const int max_exponent10 = 0; static const bool has_infinity = false; static const bool has_quiet_NaN = false; static const bool has_signaling_NaN = false; static const float_denorm_style has_denorm = denorm_absent; static const bool has_denorm_loss = false; static unsigned char infinity() throw() { return static_cast(0); } static unsigned char quiet_NaN() throw() { return static_cast(0); } static unsigned char signaling_NaN() throw() { return static_cast(0); } static unsigned char denorm_min() throw() { return static_cast(0); } static const bool is_iec559 = false; static const bool is_bounded = true; static const bool is_modulo = true; static const bool traps = true; static const bool tinyness_before = false; static const float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits { static const bool is_specialized = true; static wchar_t min() throw() { return (((wchar_t)(-1) < 0) ? -(((wchar_t)(-1) < 0) ? (((((wchar_t)1 << ((sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(wchar_t)0) - 1 : (wchar_t)0); } static wchar_t max() throw() { return (((wchar_t)(-1) < 0) ? (((((wchar_t)1 << ((sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(wchar_t)0); } static const int digits = (sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)); static const int digits10 = ((sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)) * 643L / 2136); static const bool is_signed = ((wchar_t)(-1) < 0); static const bool is_integer = true; static const bool is_exact = true; static const int radix = 2; static wchar_t epsilon() throw() { return 0; } static wchar_t round_error() throw() { return 0; } static const int min_exponent = 0; static const int min_exponent10 = 0; static const int max_exponent = 0; static const int max_exponent10 = 0; static const bool has_infinity = false; static const bool has_quiet_NaN = false; static const bool has_signaling_NaN = false; static const float_denorm_style has_denorm = denorm_absent; static const bool has_denorm_loss = false; static wchar_t infinity() throw() { return wchar_t(); } static wchar_t quiet_NaN() throw() { return wchar_t(); } static wchar_t signaling_NaN() throw() { return wchar_t(); } static wchar_t denorm_min() throw() { return wchar_t(); } static const bool is_iec559 = false; static const bool is_bounded = true; static const bool is_modulo = !is_signed; static const bool traps = true; static const bool tinyness_before = false; static const float_round_style round_style = round_toward_zero; }; # 852 "/usr/include/c++/5.0.0/limits" 3 template<> struct numeric_limits { static const bool is_specialized = true; static short min() throw() { return -0x7fff - 1; } static short max() throw() { return 0x7fff; } static const int digits = (sizeof(short) * 8 - ((short)(-1) < 0)); static const int digits10 = ((sizeof(short) * 8 - ((short)(-1) < 0)) * 643L / 2136); static const bool is_signed = true; static const bool is_integer = true; static const bool is_exact = true; static const int radix = 2; static short epsilon() throw() { return 0; } static short round_error() throw() { return 0; } static const int min_exponent = 0; static const int min_exponent10 = 0; static const int max_exponent = 0; static const int max_exponent10 = 0; static const bool has_infinity = false; static const bool has_quiet_NaN = false; static const bool has_signaling_NaN = false; static const float_denorm_style has_denorm = denorm_absent; static const bool has_denorm_loss = false; static short infinity() throw() { return short(); } static short quiet_NaN() throw() { return short(); } static short signaling_NaN() throw() { return short(); } static short denorm_min() throw() { return short(); } static const bool is_iec559 = false; static const bool is_bounded = true; static const bool is_modulo = false; static const bool traps = true; static const bool tinyness_before = false; static const float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits { static const bool is_specialized = true; static unsigned short min() throw() { return 0; } static unsigned short max() throw() { return 0x7fff * 2U + 1; } static const int digits = (sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)); static const int digits10 = ((sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)) * 643L / 2136); static const bool is_signed = false; static const bool is_integer = true; static const bool is_exact = true; static const int radix = 2; static unsigned short epsilon() throw() { return 0; } static unsigned short round_error() throw() { return 0; } static const int min_exponent = 0; static const int min_exponent10 = 0; static const int max_exponent = 0; static const int max_exponent10 = 0; static const bool has_infinity = false; static const bool has_quiet_NaN = false; static const bool has_signaling_NaN = false; static const float_denorm_style has_denorm = denorm_absent; static const bool has_denorm_loss = false; static unsigned short infinity() throw() { return static_cast(0); } static unsigned short quiet_NaN() throw() { return static_cast(0); } static unsigned short signaling_NaN() throw() { return static_cast(0); } static unsigned short denorm_min() throw() { return static_cast(0); } static const bool is_iec559 = false; static const bool is_bounded = true; static const bool is_modulo = true; static const bool traps = true; static const bool tinyness_before = false; static const float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits { static const bool is_specialized = true; static int min() throw() { return -0x7fffffff - 1; } static int max() throw() { return 0x7fffffff; } static const int digits = (sizeof(int) * 8 - ((int)(-1) < 0)); static const int digits10 = ((sizeof(int) * 8 - ((int)(-1) < 0)) * 643L / 2136); static const bool is_signed = true; static const bool is_integer = true; static const bool is_exact = true; static const int radix = 2; static int epsilon() throw() { return 0; } static int round_error() throw() { return 0; } static const int min_exponent = 0; static const int min_exponent10 = 0; static const int max_exponent = 0; static const int max_exponent10 = 0; static const bool has_infinity = false; static const bool has_quiet_NaN = false; static const bool has_signaling_NaN = false; static const float_denorm_style has_denorm = denorm_absent; static const bool has_denorm_loss = false; static int infinity() throw() { return static_cast(0); } static int quiet_NaN() throw() { return static_cast(0); } static int signaling_NaN() throw() { return static_cast(0); } static int denorm_min() throw() { return static_cast(0); } static const bool is_iec559 = false; static const bool is_bounded = true; static const bool is_modulo = false; static const bool traps = true; static const bool tinyness_before = false; static const float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits { static const bool is_specialized = true; static unsigned int min() throw() { return 0; } static unsigned int max() throw() { return 0x7fffffff * 2U + 1; } static const int digits = (sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)); static const int digits10 = ((sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)) * 643L / 2136); static const bool is_signed = false; static const bool is_integer = true; static const bool is_exact = true; static const int radix = 2; static unsigned int epsilon() throw() { return 0; } static unsigned int round_error() throw() { return 0; } static const int min_exponent = 0; static const int min_exponent10 = 0; static const int max_exponent = 0; static const int max_exponent10 = 0; static const bool has_infinity = false; static const bool has_quiet_NaN = false; static const bool has_signaling_NaN = false; static const float_denorm_style has_denorm = denorm_absent; static const bool has_denorm_loss = false; static unsigned int infinity() throw() { return static_cast(0); } static unsigned int quiet_NaN() throw() { return static_cast(0); } static unsigned int signaling_NaN() throw() { return static_cast(0); } static unsigned int denorm_min() throw() { return static_cast(0); } static const bool is_iec559 = false; static const bool is_bounded = true; static const bool is_modulo = true; static const bool traps = true; static const bool tinyness_before = false; static const float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits { static const bool is_specialized = true; static long min() throw() { return -0x7fffffffffffffffL - 1; } static long max() throw() { return 0x7fffffffffffffffL; } static const int digits = (sizeof(long) * 8 - ((long)(-1) < 0)); static const int digits10 = ((sizeof(long) * 8 - ((long)(-1) < 0)) * 643L / 2136); static const bool is_signed = true; static const bool is_integer = true; static const bool is_exact = true; static const int radix = 2; static long epsilon() throw() { return 0; } static long round_error() throw() { return 0; } static const int min_exponent = 0; static const int min_exponent10 = 0; static const int max_exponent = 0; static const int max_exponent10 = 0; static const bool has_infinity = false; static const bool has_quiet_NaN = false; static const bool has_signaling_NaN = false; static const float_denorm_style has_denorm = denorm_absent; static const bool has_denorm_loss = false; static long infinity() throw() { return static_cast(0); } static long quiet_NaN() throw() { return static_cast(0); } static long signaling_NaN() throw() { return static_cast(0); } static long denorm_min() throw() { return static_cast(0); } static const bool is_iec559 = false; static const bool is_bounded = true; static const bool is_modulo = false; static const bool traps = true; static const bool tinyness_before = false; static const float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits { static const bool is_specialized = true; static unsigned long min() throw() { return 0; } static unsigned long max() throw() { return 0x7fffffffffffffffL * 2UL + 1; } static const int digits = (sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)); static const int digits10 = ((sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)) * 643L / 2136); static const bool is_signed = false; static const bool is_integer = true; static const bool is_exact = true; static const int radix = 2; static unsigned long epsilon() throw() { return 0; } static unsigned long round_error() throw() { return 0; } static const int min_exponent = 0; static const int min_exponent10 = 0; static const int max_exponent = 0; static const int max_exponent10 = 0; static const bool has_infinity = false; static const bool has_quiet_NaN = false; static const bool has_signaling_NaN = false; static const float_denorm_style has_denorm = denorm_absent; static const bool has_denorm_loss = false; static unsigned long infinity() throw() { return static_cast(0); } static unsigned long quiet_NaN() throw() { return static_cast(0); } static unsigned long signaling_NaN() throw() { return static_cast(0); } static unsigned long denorm_min() throw() { return static_cast(0); } static const bool is_iec559 = false; static const bool is_bounded = true; static const bool is_modulo = true; static const bool traps = true; static const bool tinyness_before = false; static const float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits { static const bool is_specialized = true; static long long min() throw() { return -0x7fffffffffffffffLL - 1; } static long long max() throw() { return 0x7fffffffffffffffLL; } static const int digits = (sizeof(long long) * 8 - ((long long)(-1) < 0)); static const int digits10 = ((sizeof(long long) * 8 - ((long long)(-1) < 0)) * 643L / 2136); static const bool is_signed = true; static const bool is_integer = true; static const bool is_exact = true; static const int radix = 2; static long long epsilon() throw() { return 0; } static long long round_error() throw() { return 0; } static const int min_exponent = 0; static const int min_exponent10 = 0; static const int max_exponent = 0; static const int max_exponent10 = 0; static const bool has_infinity = false; static const bool has_quiet_NaN = false; static const bool has_signaling_NaN = false; static const float_denorm_style has_denorm = denorm_absent; static const bool has_denorm_loss = false; static long long infinity() throw() { return static_cast(0); } static long long quiet_NaN() throw() { return static_cast(0); } static long long signaling_NaN() throw() { return static_cast(0); } static long long denorm_min() throw() { return static_cast(0); } static const bool is_iec559 = false; static const bool is_bounded = true; static const bool is_modulo = false; static const bool traps = true; static const bool tinyness_before = false; static const float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits { static const bool is_specialized = true; static unsigned long long min() throw() { return 0; } static unsigned long long max() throw() { return 0x7fffffffffffffffLL * 2ULL + 1; } static const int digits = (sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)); static const int digits10 = ((sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)) * 643L / 2136); static const bool is_signed = false; static const bool is_integer = true; static const bool is_exact = true; static const int radix = 2; static unsigned long long epsilon() throw() { return 0; } static unsigned long long round_error() throw() { return 0; } static const int min_exponent = 0; static const int min_exponent10 = 0; static const int max_exponent = 0; static const int max_exponent10 = 0; static const bool has_infinity = false; static const bool has_quiet_NaN = false; static const bool has_signaling_NaN = false; static const float_denorm_style has_denorm = denorm_absent; static const bool has_denorm_loss = false; static unsigned long long infinity() throw() { return static_cast(0); } static unsigned long long quiet_NaN() throw() { return static_cast(0); } static unsigned long long signaling_NaN() throw() { return static_cast(0); } static unsigned long long denorm_min() throw() { return static_cast(0); } static const bool is_iec559 = false; static const bool is_bounded = true; static const bool is_modulo = true; static const bool traps = true; static const bool tinyness_before = false; static const float_round_style round_style = round_toward_zero; }; # 1568 "/usr/include/c++/5.0.0/limits" 3 template<> struct numeric_limits<__int128> { static const bool is_specialized = true; static __int128 min() throw() { return (((__int128)(-1) < 0) ? -(((__int128)(-1) < 0) ? (((((__int128)1 << ((128 - ((__int128)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(__int128)0) - 1 : (__int128)0); } static __int128 max() throw() { return (((__int128)(-1) < 0) ? (((((__int128)1 << ((128 - ((__int128)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(__int128)0); } static const int digits = 128 - 1; static const int digits10 = (128 - 1) * 643L / 2136; static const bool is_signed = true; static const bool is_integer = true; static const bool is_exact = true; static const int radix = 2; static __int128 epsilon() throw() { return 0; } static __int128 round_error() throw() { return 0; } static const int min_exponent = 0; static const int min_exponent10 = 0; static const int max_exponent = 0; static const int max_exponent10 = 0; static const bool has_infinity = false; static const bool has_quiet_NaN = false; static const bool has_signaling_NaN = false; static const float_denorm_style has_denorm = denorm_absent; static const bool has_denorm_loss = false; static __int128 infinity() throw() { return static_cast<__int128>(0); } static __int128 quiet_NaN() throw() { return static_cast<__int128>(0); } static __int128 signaling_NaN() throw() { return static_cast<__int128>(0); } static __int128 denorm_min() throw() { return static_cast<__int128>(0); } static const bool is_iec559 = false; static const bool is_bounded = true; static const bool is_modulo = false; static const bool traps = true; static const bool tinyness_before = false; static const float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits { static const bool is_specialized = true; static unsigned __int128 min() throw() { return 0; } static unsigned __int128 max() throw() { return (((__int128)(-1) < 0) ? (((((__int128)1 << ((128 - ((__int128)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(__int128)0); } static const int digits = 128; static const int digits10 = 128 * 643L / 2136; static const bool is_signed = false; static const bool is_integer = true; static const bool is_exact = true; static const int radix = 2; static unsigned __int128 epsilon() throw() { return 0; } static unsigned __int128 round_error() throw() { return 0; } static const int min_exponent = 0; static const int min_exponent10 = 0; static const int max_exponent = 0; static const int max_exponent10 = 0; static const bool has_infinity = false; static const bool has_quiet_NaN = false; static const bool has_signaling_NaN = false; static const float_denorm_style has_denorm = denorm_absent; static const bool has_denorm_loss = false; static unsigned __int128 infinity() throw() { return static_cast(0); } static unsigned __int128 quiet_NaN() throw() { return static_cast(0); } static unsigned __int128 signaling_NaN() throw() { return static_cast(0); } static unsigned __int128 denorm_min() throw() { return static_cast(0); } static const bool is_iec559 = false; static const bool is_bounded = true; static const bool is_modulo = true; static const bool traps = true; static const bool tinyness_before = false; static const float_round_style round_style = round_toward_zero; }; # 1591 "/usr/include/c++/5.0.0/limits" 3 template<> struct numeric_limits { static const bool is_specialized = true; static float min() throw() { return 1.17549435082228750797e-38F; } static float max() throw() { return 3.40282346638528859812e+38F; } static const int digits = 24; static const int digits10 = 6; static const bool is_signed = true; static const bool is_integer = false; static const bool is_exact = false; static const int radix = 2; static float epsilon() throw() { return 1.19209289550781250000e-7F; } static float round_error() throw() { return 0.5F; } static const int min_exponent = (-125); static const int min_exponent10 = (-37); static const int max_exponent = 128; static const int max_exponent10 = 38; static const bool has_infinity = 1; static const bool has_quiet_NaN = 1; static const bool has_signaling_NaN = has_quiet_NaN; static const float_denorm_style has_denorm = bool(1) ? denorm_present : denorm_absent; static const bool has_denorm_loss = false; static float infinity() throw() { return __builtin_huge_valf(); } static float quiet_NaN() throw() { return __builtin_nanf(""); } static float signaling_NaN() throw() { return __builtin_nansf(""); } static float denorm_min() throw() { return 1.40129846432481707092e-45F; } static const bool is_iec559 = has_infinity && has_quiet_NaN && has_denorm == denorm_present; static const bool is_bounded = true; static const bool is_modulo = false; static const bool traps = false; static const bool tinyness_before = false; static const float_round_style round_style = round_to_nearest; }; template<> struct numeric_limits { static const bool is_specialized = true; static double min() throw() { return double(2.22507385850720138309e-308L); } static double max() throw() { return double(1.79769313486231570815e+308L); } static const int digits = 53; static const int digits10 = 15; static const bool is_signed = true; static const bool is_integer = false; static const bool is_exact = false; static const int radix = 2; static double epsilon() throw() { return double(2.22044604925031308085e-16L); } static double round_error() throw() { return 0.5; } static const int min_exponent = (-1021); static const int min_exponent10 = (-307); static const int max_exponent = 1024; static const int max_exponent10 = 308; static const bool has_infinity = 1; static const bool has_quiet_NaN = 1; static const bool has_signaling_NaN = has_quiet_NaN; static const float_denorm_style has_denorm = bool(1) ? denorm_present : denorm_absent; static const bool has_denorm_loss = false; static double infinity() throw() { return __builtin_huge_val(); } static double quiet_NaN() throw() { return __builtin_nan(""); } static double signaling_NaN() throw() { return __builtin_nans(""); } static double denorm_min() throw() { return double(4.94065645841246544177e-324L); } static const bool is_iec559 = has_infinity && has_quiet_NaN && has_denorm == denorm_present; static const bool is_bounded = true; static const bool is_modulo = false; static const bool traps = false; static const bool tinyness_before = false; static const float_round_style round_style = round_to_nearest; }; template<> struct numeric_limits { static const bool is_specialized = true; static long double min() throw() { return 3.36210314311209350626e-4932L; } static long double max() throw() { return 1.18973149535723176502e+4932L; } static const int digits = 64; static const int digits10 = 18; static const bool is_signed = true; static const bool is_integer = false; static const bool is_exact = false; static const int radix = 2; static long double epsilon() throw() { return 1.08420217248550443401e-19L; } static long double round_error() throw() { return 0.5L; } static const int min_exponent = (-16381); static const int min_exponent10 = (-4931); static const int max_exponent = 16384; static const int max_exponent10 = 4932; static const bool has_infinity = 1; static const bool has_quiet_NaN = 1; static const bool has_signaling_NaN = has_quiet_NaN; static const float_denorm_style has_denorm = bool(1) ? denorm_present : denorm_absent; static const bool has_denorm_loss = false; static long double infinity() throw() { return __builtin_huge_vall(); } static long double quiet_NaN() throw() { return __builtin_nanl(""); } static long double signaling_NaN() throw() { return __builtin_nansl(""); } static long double denorm_min() throw() { return 3.64519953188247460253e-4951L; } static const bool is_iec559 = has_infinity && has_quiet_NaN && has_denorm == denorm_present; static const bool is_bounded = true; static const bool is_modulo = false; static const bool traps = false; static const bool tinyness_before = false; static const float_round_style round_style = round_to_nearest; }; } # 20 "/usr/include/boost/limits.hpp" 2 3 4 # 27 "/usr/include/boost/iterator/iterator_concepts.hpp" 2 3 4 # 1 "/usr/include/c++/5.0.0/algorithm" 1 3 4 # 58 "/usr/include/c++/5.0.0/algorithm" 3 4 # 59 "/usr/include/c++/5.0.0/algorithm" 3 # 1 "/usr/include/c++/5.0.0/bits/stl_algo.h" 1 3 # 59 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 # 1 "/usr/include/c++/5.0.0/cstdlib" 1 3 # 39 "/usr/include/c++/5.0.0/cstdlib" 3 # 40 "/usr/include/c++/5.0.0/cstdlib" 3 # 60 "/usr/include/c++/5.0.0/bits/stl_algo.h" 2 3 # 1 "/usr/include/c++/5.0.0/bits/algorithmfwd.h" 1 3 # 33 "/usr/include/c++/5.0.0/bits/algorithmfwd.h" 3 # 34 "/usr/include/c++/5.0.0/bits/algorithmfwd.h" 3 # 42 "/usr/include/c++/5.0.0/bits/algorithmfwd.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 203 "/usr/include/c++/5.0.0/bits/algorithmfwd.h" 3 template bool binary_search(_FIter, _FIter, const _Tp&); template bool binary_search(_FIter, _FIter, const _Tp&, _Compare); template _OIter copy(_IIter, _IIter, _OIter); template _BIter2 copy_backward(_BIter1, _BIter1, _BIter2); # 232 "/usr/include/c++/5.0.0/bits/algorithmfwd.h" 3 template pair<_FIter, _FIter> equal_range(_FIter, _FIter, const _Tp&); template pair<_FIter, _FIter> equal_range(_FIter, _FIter, const _Tp&, _Compare); template void fill(_FIter, _FIter, const _Tp&); template _OIter fill_n(_OIter, _Size, const _Tp&); template _FIter1 find_end(_FIter1, _FIter1, _FIter2, _FIter2); template _FIter1 find_end(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); # 271 "/usr/include/c++/5.0.0/bits/algorithmfwd.h" 3 template bool includes(_IIter1, _IIter1, _IIter2, _IIter2); template bool includes(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); template void inplace_merge(_BIter, _BIter, _BIter); template void inplace_merge(_BIter, _BIter, _BIter, _Compare); # 334 "/usr/include/c++/5.0.0/bits/algorithmfwd.h" 3 template void iter_swap(_FIter1, _FIter2); template _FIter lower_bound(_FIter, _FIter, const _Tp&); template _FIter lower_bound(_FIter, _FIter, const _Tp&, _Compare); template void make_heap(_RAIter, _RAIter); template void make_heap(_RAIter, _RAIter, _Compare); template const _Tp& max(const _Tp&, const _Tp&); template const _Tp& max(const _Tp&, const _Tp&, _Compare); template const _Tp& min(const _Tp&, const _Tp&); template const _Tp& min(const _Tp&, const _Tp&, _Compare); # 433 "/usr/include/c++/5.0.0/bits/algorithmfwd.h" 3 template bool next_permutation(_BIter, _BIter); template bool next_permutation(_BIter, _BIter, _Compare); # 450 "/usr/include/c++/5.0.0/bits/algorithmfwd.h" 3 template _RAIter partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter); template _RAIter partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter, _Compare); # 471 "/usr/include/c++/5.0.0/bits/algorithmfwd.h" 3 template void pop_heap(_RAIter, _RAIter); template void pop_heap(_RAIter, _RAIter, _Compare); template bool prev_permutation(_BIter, _BIter); template bool prev_permutation(_BIter, _BIter, _Compare); template void push_heap(_RAIter, _RAIter); template void push_heap(_RAIter, _RAIter, _Compare); template _FIter remove(_FIter, _FIter, const _Tp&); template _FIter remove_if(_FIter, _FIter, _Predicate); template _OIter remove_copy(_IIter, _IIter, _OIter, const _Tp&); template _OIter remove_copy_if(_IIter, _IIter, _OIter, _Predicate); template _OIter replace_copy(_IIter, _IIter, _OIter, const _Tp&, const _Tp&); template _OIter replace_copy_if(_Iter, _Iter, _OIter, _Predicate, const _Tp&); template void reverse(_BIter, _BIter); template _OIter reverse_copy(_BIter, _BIter, _OIter); template _FIter rotate(_FIter, _FIter, _FIter); template _OIter rotate_copy(_FIter, _FIter, _FIter, _OIter); # 554 "/usr/include/c++/5.0.0/bits/algorithmfwd.h" 3 template void sort_heap(_RAIter, _RAIter); template void sort_heap(_RAIter, _RAIter, _Compare); template _BIter stable_partition(_BIter, _BIter, _Predicate); template void swap(_Tp&, _Tp&) ; template void swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) ; template _FIter2 swap_ranges(_FIter1, _FIter1, _FIter2); template _FIter unique(_FIter, _FIter); template _FIter unique(_FIter, _FIter, _BinaryPredicate); template _FIter upper_bound(_FIter, _FIter, const _Tp&); template _FIter upper_bound(_FIter, _FIter, const _Tp&, _Compare); template _FIter adjacent_find(_FIter, _FIter); template _FIter adjacent_find(_FIter, _FIter, _BinaryPredicate); template typename iterator_traits<_IIter>::difference_type count(_IIter, _IIter, const _Tp&); template typename iterator_traits<_IIter>::difference_type count_if(_IIter, _IIter, _Predicate); template bool equal(_IIter1, _IIter1, _IIter2); template bool equal(_IIter1, _IIter1, _IIter2, _BinaryPredicate); template _IIter find(_IIter, _IIter, const _Tp&); template _FIter1 find_first_of(_FIter1, _FIter1, _FIter2, _FIter2); template _FIter1 find_first_of(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); template _IIter find_if(_IIter, _IIter, _Predicate); template _Funct for_each(_IIter, _IIter, _Funct); template void generate(_FIter, _FIter, _Generator); template _OIter generate_n(_OIter, _Size, _Generator); template bool lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2); template bool lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); template _FIter max_element(_FIter, _FIter); template _FIter max_element(_FIter, _FIter, _Compare); template _OIter merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); template _OIter merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); template _FIter min_element(_FIter, _FIter); template _FIter min_element(_FIter, _FIter, _Compare); template pair<_IIter1, _IIter2> mismatch(_IIter1, _IIter1, _IIter2); template pair<_IIter1, _IIter2> mismatch(_IIter1, _IIter1, _IIter2, _BinaryPredicate); template void nth_element(_RAIter, _RAIter, _RAIter); template void nth_element(_RAIter, _RAIter, _RAIter, _Compare); template void partial_sort(_RAIter, _RAIter, _RAIter); template void partial_sort(_RAIter, _RAIter, _RAIter, _Compare); template _BIter partition(_BIter, _BIter, _Predicate); template void random_shuffle(_RAIter, _RAIter); template void random_shuffle(_RAIter, _RAIter, _Generator&); template void replace(_FIter, _FIter, const _Tp&, const _Tp&); template void replace_if(_FIter, _FIter, _Predicate, const _Tp&); template _FIter1 search(_FIter1, _FIter1, _FIter2, _FIter2); template _FIter1 search(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); template _FIter search_n(_FIter, _FIter, _Size, const _Tp&); template _FIter search_n(_FIter, _FIter, _Size, const _Tp&, _BinaryPredicate); template _OIter set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); template _OIter set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); template _OIter set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); template _OIter set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); template _OIter set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); template _OIter set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); template _OIter set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); template _OIter set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); template void sort(_RAIter, _RAIter); template void sort(_RAIter, _RAIter, _Compare); template void stable_sort(_RAIter, _RAIter); template void stable_sort(_RAIter, _RAIter, _Compare); template _OIter transform(_IIter, _IIter, _OIter, _UnaryOperation); template _OIter transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation); template _OIter unique_copy(_IIter, _IIter, _OIter); template _OIter unique_copy(_IIter, _IIter, _OIter, _BinaryPredicate); } # 61 "/usr/include/c++/5.0.0/bits/stl_algo.h" 2 3 # 1 "/usr/include/c++/5.0.0/bits/stl_heap.h" 1 3 # 62 "/usr/include/c++/5.0.0/bits/stl_heap.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template _Distance __is_heap_until(_RandomAccessIterator __first, _Distance __n, _Compare __comp) { _Distance __parent = 0; for (_Distance __child = 1; __child < __n; ++__child) { if (__comp(__first + __parent, __first + __child)) return __child; if ((__child & 1) == 0) ++__parent; } return __n; } template inline bool __is_heap(_RandomAccessIterator __first, _Distance __n) { return std::__is_heap_until(__first, __n, __gnu_cxx::__ops::__iter_less_iter()) == __n; } template inline bool __is_heap(_RandomAccessIterator __first, _Compare __comp, _Distance __n) { return std::__is_heap_until(__first, __n, __gnu_cxx::__ops::__iter_comp_iter(__comp)) == __n; } template inline bool __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) { return std::__is_heap(__first, std::distance(__first, __last)); } template inline bool __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { return std::__is_heap(__first, __comp, std::distance(__first, __last)); } template void __push_heap(_RandomAccessIterator __first, _Distance __holeIndex, _Distance __topIndex, _Tp __value, _Compare __comp) { _Distance __parent = (__holeIndex - 1) / 2; while (__holeIndex > __topIndex && __comp(__first + __parent, __value)) { *(__first + __holeIndex) = (*(__first + __parent)); __holeIndex = __parent; __parent = (__holeIndex - 1) / 2; } *(__first + __holeIndex) = (__value); } # 148 "/usr/include/c++/5.0.0/bits/stl_heap.h" 3 template inline void push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) { typedef typename iterator_traits<_RandomAccessIterator>::value_type _ValueType; typedef typename iterator_traits<_RandomAccessIterator>::difference_type _DistanceType; ; ; _ValueType __value = (*(__last - 1)); std::__push_heap(__first, _DistanceType((__last - __first) - 1), _DistanceType(0), (__value), __gnu_cxx::__ops::__iter_less_val()); } # 182 "/usr/include/c++/5.0.0/bits/stl_heap.h" 3 template inline void push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { typedef typename iterator_traits<_RandomAccessIterator>::value_type _ValueType; typedef typename iterator_traits<_RandomAccessIterator>::difference_type _DistanceType; ; ; _ValueType __value = (*(__last - 1)); std::__push_heap(__first, _DistanceType((__last - __first) - 1), _DistanceType(0), (__value), __gnu_cxx::__ops::__iter_comp_val(__comp)); } template void __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, _Distance __len, _Tp __value, _Compare __comp) { const _Distance __topIndex = __holeIndex; _Distance __secondChild = __holeIndex; while (__secondChild < (__len - 1) / 2) { __secondChild = 2 * (__secondChild + 1); if (__comp(__first + __secondChild, __first + (__secondChild - 1))) __secondChild--; *(__first + __holeIndex) = (*(__first + __secondChild)); __holeIndex = __secondChild; } if ((__len & 1) == 0 && __secondChild == (__len - 2) / 2) { __secondChild = 2 * (__secondChild + 1); *(__first + __holeIndex) = (*(__first + (__secondChild - 1))) ; __holeIndex = __secondChild - 1; } std::__push_heap(__first, __holeIndex, __topIndex, (__value), __gnu_cxx::__ops::__iter_comp_val(__comp)); } template inline void __pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, _RandomAccessIterator __result, _Compare __comp) { typedef typename iterator_traits<_RandomAccessIterator>::value_type _ValueType; typedef typename iterator_traits<_RandomAccessIterator>::difference_type _DistanceType; _ValueType __value = (*__result); *__result = (*__first); std::__adjust_heap(__first, _DistanceType(0), _DistanceType(__last - __first), (__value), __comp); } # 261 "/usr/include/c++/5.0.0/bits/stl_heap.h" 3 template inline void pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) { typedef typename iterator_traits<_RandomAccessIterator>::value_type _ValueType; ; ; ; if (__last - __first > 1) { --__last; std::__pop_heap(__first, __last, __last, __gnu_cxx::__ops::__iter_less_iter()); } } # 295 "/usr/include/c++/5.0.0/bits/stl_heap.h" 3 template inline void pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { ; ; ; if (__last - __first > 1) { --__last; std::__pop_heap(__first, __last, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } } template void __make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { typedef typename iterator_traits<_RandomAccessIterator>::value_type _ValueType; typedef typename iterator_traits<_RandomAccessIterator>::difference_type _DistanceType; if (__last - __first < 2) return; const _DistanceType __len = __last - __first; _DistanceType __parent = (__len - 2) / 2; while (true) { _ValueType __value = (*(__first + __parent)); std::__adjust_heap(__first, __parent, __len, (__value), __comp); if (__parent == 0) return; __parent--; } } # 349 "/usr/include/c++/5.0.0/bits/stl_heap.h" 3 template inline void make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) { ; std::__make_heap(__first, __last, __gnu_cxx::__ops::__iter_less_iter()); } # 374 "/usr/include/c++/5.0.0/bits/stl_heap.h" 3 template inline void make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { ; std::__make_heap(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template void __sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { while (__last - __first > 1) { --__last; std::__pop_heap(__first, __last, __last, __comp); } } # 408 "/usr/include/c++/5.0.0/bits/stl_heap.h" 3 template inline void sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) { ; ; std::__sort_heap(__first, __last, __gnu_cxx::__ops::__iter_less_iter()); } # 434 "/usr/include/c++/5.0.0/bits/stl_heap.h" 3 template inline void sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { ; ; std::__sort_heap(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } # 529 "/usr/include/c++/5.0.0/bits/stl_heap.h" 3 } # 62 "/usr/include/c++/5.0.0/bits/stl_algo.h" 2 3 # 1 "/usr/include/c++/5.0.0/bits/stl_tempbuf.h" 1 3 # 60 "/usr/include/c++/5.0.0/bits/stl_tempbuf.h" 3 # 1 "/usr/include/c++/5.0.0/bits/stl_construct.h" 1 3 # 63 "/usr/include/c++/5.0.0/bits/stl_construct.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 77 "/usr/include/c++/5.0.0/bits/stl_construct.h" 3 template inline void _Construct(_T1* __p, const _T2& __value) { ::new(static_cast(__p)) _T1(__value); } template inline void _Destroy(_Tp* __pointer) { __pointer->~_Tp(); } template struct _Destroy_aux { template static void __destroy(_ForwardIterator __first, _ForwardIterator __last) { for (; __first != __last; ++__first) std::_Destroy(std::__addressof(*__first)); } }; template<> struct _Destroy_aux { template static void __destroy(_ForwardIterator, _ForwardIterator) { } }; template inline void _Destroy(_ForwardIterator __first, _ForwardIterator __last) { typedef typename iterator_traits<_ForwardIterator>::value_type _Value_type; std::_Destroy_aux<__has_trivial_destructor(_Value_type)>:: __destroy(__first, __last); } template void _Destroy(_ForwardIterator __first, _ForwardIterator __last, _Allocator& __alloc) { typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; for (; __first != __last; ++__first) __traits::destroy(__alloc, std::__addressof(*__first)); } template inline void _Destroy(_ForwardIterator __first, _ForwardIterator __last, allocator<_Tp>&) { _Destroy(__first, __last); } } # 61 "/usr/include/c++/5.0.0/bits/stl_tempbuf.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 83 "/usr/include/c++/5.0.0/bits/stl_tempbuf.h" 3 template pair<_Tp*, ptrdiff_t> get_temporary_buffer(ptrdiff_t __len) { const ptrdiff_t __max = __gnu_cxx::__numeric_traits::__max / sizeof(_Tp); if (__len > __max) __len = __max; while (__len > 0) { _Tp* __tmp = static_cast<_Tp*>(::operator new(__len * sizeof(_Tp), std::nothrow)); if (__tmp != 0) return std::pair<_Tp*, ptrdiff_t>(__tmp, __len); __len /= 2; } return std::pair<_Tp*, ptrdiff_t>(static_cast<_Tp*>(0), 0); } # 110 "/usr/include/c++/5.0.0/bits/stl_tempbuf.h" 3 template inline void return_temporary_buffer(_Tp* __p) { ::operator delete(__p, std::nothrow); } template class _Temporary_buffer { public: typedef _Tp value_type; typedef value_type* pointer; typedef pointer iterator; typedef ptrdiff_t size_type; protected: size_type _M_original_len; size_type _M_len; pointer _M_buffer; public: size_type size() const { return _M_len; } size_type requested_size() const { return _M_original_len; } iterator begin() { return _M_buffer; } iterator end() { return _M_buffer + _M_len; } _Temporary_buffer(_ForwardIterator __first, _ForwardIterator __last); ~_Temporary_buffer() { std::_Destroy(_M_buffer, _M_buffer + _M_len); std::return_temporary_buffer(_M_buffer); } private: _Temporary_buffer(const _Temporary_buffer&); void operator=(const _Temporary_buffer&); }; template struct __uninitialized_construct_buf_dispatch { template static void __ucr(_Pointer __first, _Pointer __last, _ForwardIterator __seed) { if(__first == __last) return; _Pointer __cur = __first; try { std::_Construct(std::__addressof(*__first), (*__seed)); _Pointer __prev = __cur; ++__cur; for(; __cur != __last; ++__cur, ++__prev) std::_Construct(std::__addressof(*__cur), (*__prev)); *__seed = (*__prev); } catch(...) { std::_Destroy(__first, __cur); throw; } } }; template<> struct __uninitialized_construct_buf_dispatch { template static void __ucr(_Pointer, _Pointer, _ForwardIterator) { } }; # 229 "/usr/include/c++/5.0.0/bits/stl_tempbuf.h" 3 template inline void __uninitialized_construct_buf(_Pointer __first, _Pointer __last, _ForwardIterator __seed) { typedef typename std::iterator_traits<_Pointer>::value_type _ValueType; std::__uninitialized_construct_buf_dispatch< __has_trivial_constructor(_ValueType)>:: __ucr(__first, __last, __seed); } template _Temporary_buffer<_ForwardIterator, _Tp>:: _Temporary_buffer(_ForwardIterator __first, _ForwardIterator __last) : _M_original_len(std::distance(__first, __last)), _M_len(0), _M_buffer(0) { try { std::pair __p(std::get_temporary_buffer< value_type>(_M_original_len)); _M_buffer = __p.first; _M_len = __p.second; if (_M_buffer) std::__uninitialized_construct_buf(_M_buffer, _M_buffer + _M_len, __first); } catch(...) { std::return_temporary_buffer(_M_buffer); _M_buffer = 0; _M_len = 0; throw; } } } # 63 "/usr/include/c++/5.0.0/bits/stl_algo.h" 2 3 # 71 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template void __move_median_to_first(_Iterator __result,_Iterator __a, _Iterator __b, _Iterator __c, _Compare __comp) { if (__comp(__a, __b)) { if (__comp(__b, __c)) std::iter_swap(__result, __b); else if (__comp(__a, __c)) std::iter_swap(__result, __c); else std::iter_swap(__result, __a); } else if (__comp(__a, __c)) std::iter_swap(__result, __a); else if (__comp(__b, __c)) std::iter_swap(__result, __c); else std::iter_swap(__result, __b); } template inline _InputIterator __find_if(_InputIterator __first, _InputIterator __last, _Predicate __pred, input_iterator_tag) { while (__first != __last && !__pred(__first)) ++__first; return __first; } template _RandomAccessIterator __find_if(_RandomAccessIterator __first, _RandomAccessIterator __last, _Predicate __pred, random_access_iterator_tag) { typename iterator_traits<_RandomAccessIterator>::difference_type __trip_count = (__last - __first) >> 2; for (; __trip_count > 0; --__trip_count) { if (__pred(__first)) return __first; ++__first; if (__pred(__first)) return __first; ++__first; if (__pred(__first)) return __first; ++__first; if (__pred(__first)) return __first; ++__first; } switch (__last - __first) { case 3: if (__pred(__first)) return __first; ++__first; case 2: if (__pred(__first)) return __first; ++__first; case 1: if (__pred(__first)) return __first; ++__first; case 0: default: return __last; } } template inline _Iterator __find_if(_Iterator __first, _Iterator __last, _Predicate __pred) { return __find_if(__first, __last, __pred, std::__iterator_category(__first)); } template inline _InputIterator __find_if_not(_InputIterator __first, _InputIterator __last, _Predicate __pred) { return std::__find_if(__first, __last, __gnu_cxx::__ops::__negate(__pred), std::__iterator_category(__first)); } template _InputIterator __find_if_not_n(_InputIterator __first, _Distance& __len, _Predicate __pred) { for (; __len; --__len, ++__first) if (!__pred(__first)) break; return __first; } # 202 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template _ForwardIterator1 __search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, _BinaryPredicate __predicate) { if (__first1 == __last1 || __first2 == __last2) return __first1; _ForwardIterator2 __p1(__first2); if (++__p1 == __last2) return std::__find_if(__first1, __last1, __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); _ForwardIterator2 __p; _ForwardIterator1 __current = __first1; for (;;) { __first1 = std::__find_if(__first1, __last1, __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); if (__first1 == __last1) return __last1; __p = __p1; __current = __first1; if (++__current == __last1) return __last1; while (__predicate(__current, __p)) { if (++__p == __last2) return __first1; if (++__current == __last1) return __last1; } ++__first1; } return __first1; } template _ForwardIterator __search_n_aux(_ForwardIterator __first, _ForwardIterator __last, _Integer __count, _UnaryPredicate __unary_pred, std::forward_iterator_tag) { __first = std::__find_if(__first, __last, __unary_pred); while (__first != __last) { typename iterator_traits<_ForwardIterator>::difference_type __n = __count; _ForwardIterator __i = __first; ++__i; while (__i != __last && __n != 1 && __unary_pred(__i)) { ++__i; --__n; } if (__n == 1) return __first; if (__i == __last) return __last; __first = std::__find_if(++__i, __last, __unary_pred); } return __last; } template _RandomAccessIter __search_n_aux(_RandomAccessIter __first, _RandomAccessIter __last, _Integer __count, _UnaryPredicate __unary_pred, std::random_access_iterator_tag) { typedef typename std::iterator_traits<_RandomAccessIter>::difference_type _DistanceType; _DistanceType __tailSize = __last - __first; _DistanceType __remainder = __count; while (__remainder <= __tailSize) { __first += __remainder; __tailSize -= __remainder; _RandomAccessIter __backTrack = __first; while (__unary_pred(--__backTrack)) { if (--__remainder == 0) return (__first - __count); } __remainder = __count + 1 - (__first - __backTrack); } return __last; } template _ForwardIterator __search_n(_ForwardIterator __first, _ForwardIterator __last, _Integer __count, _UnaryPredicate __unary_pred) { if (__count <= 0) return __first; if (__count == 1) return std::__find_if(__first, __last, __unary_pred); return std::__search_n_aux(__first, __last, __count, __unary_pred, std::__iterator_category(__first)); } template _ForwardIterator1 __find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, forward_iterator_tag, forward_iterator_tag, _BinaryPredicate __comp) { if (__first2 == __last2) return __last1; _ForwardIterator1 __result = __last1; while (1) { _ForwardIterator1 __new_result = std::__search(__first1, __last1, __first2, __last2, __comp); if (__new_result == __last1) return __result; else { __result = __new_result; __first1 = __new_result; ++__first1; } } } template _BidirectionalIterator1 __find_end(_BidirectionalIterator1 __first1, _BidirectionalIterator1 __last1, _BidirectionalIterator2 __first2, _BidirectionalIterator2 __last2, bidirectional_iterator_tag, bidirectional_iterator_tag, _BinaryPredicate __comp) { typedef reverse_iterator<_BidirectionalIterator1> _RevIterator1; typedef reverse_iterator<_BidirectionalIterator2> _RevIterator2; _RevIterator1 __rlast1(__first1); _RevIterator2 __rlast2(__first2); _RevIterator1 __rresult = std::__search(_RevIterator1(__last1), __rlast1, _RevIterator2(__last2), __rlast2, __comp); if (__rresult == __rlast1) return __last1; else { _BidirectionalIterator1 __result = __rresult.base(); std::advance(__result, -std::distance(__first2, __last2)); return __result; } } # 423 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _ForwardIterator1 find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2) { ; ; return std::__find_end(__first1, __last1, __first2, __last2, std::__iterator_category(__first1), std::__iterator_category(__first2), __gnu_cxx::__ops::__iter_equal_to_iter()); } # 471 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _ForwardIterator1 find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, _BinaryPredicate __comp) { ; ; return std::__find_end(__first1, __last1, __first2, __last2, std::__iterator_category(__first1), std::__iterator_category(__first2), __gnu_cxx::__ops::__iter_comp_iter(__comp)); } # 636 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template _OutputIterator __remove_copy_if(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _Predicate __pred) { for (; __first != __last; ++__first) if (!__pred(__first)) { *__result = *__first; ++__result; } return __result; } # 665 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _OutputIterator remove_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, const _Tp& __value) { ; return std::__remove_copy_if(__first, __last, __result, __gnu_cxx::__ops::__iter_equals_val(__value)); } # 697 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _OutputIterator remove_copy_if(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _Predicate __pred) { ; return std::__remove_copy_if(__first, __last, __result, __gnu_cxx::__ops::__pred_iter(__pred)); } # 855 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template _ForwardIterator __remove_if(_ForwardIterator __first, _ForwardIterator __last, _Predicate __pred) { __first = std::__find_if(__first, __last, __pred); if (__first == __last) return __first; _ForwardIterator __result = __first; ++__first; for (; __first != __last; ++__first) if (!__pred(__first)) { *__result = (*__first); ++__result; } return __result; } # 891 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _ForwardIterator remove(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) { ; return std::__remove_if(__first, __last, __gnu_cxx::__ops::__iter_equals_val(__value)); } # 924 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _ForwardIterator remove_if(_ForwardIterator __first, _ForwardIterator __last, _Predicate __pred) { ; return std::__remove_if(__first, __last, __gnu_cxx::__ops::__pred_iter(__pred)); } template _ForwardIterator __adjacent_find(_ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __binary_pred) { if (__first == __last) return __last; _ForwardIterator __next = __first; while (++__next != __last) { if (__binary_pred(__first, __next)) return __first; __first = __next; } return __last; } template _ForwardIterator __unique(_ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __binary_pred) { __first = std::__adjacent_find(__first, __last, __binary_pred); if (__first == __last) return __last; _ForwardIterator __dest = __first; ++__first; while (++__first != __last) if (!__binary_pred(__dest, __first)) *++__dest = (*__first); return ++__dest; } # 990 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _ForwardIterator unique(_ForwardIterator __first, _ForwardIterator __last) { ; return std::__unique(__first, __last, __gnu_cxx::__ops::__iter_equal_to_iter()); } # 1020 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _ForwardIterator unique(_ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __binary_pred) { ; return std::__unique(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); } template _OutputIterator __unique_copy(_ForwardIterator __first, _ForwardIterator __last, _OutputIterator __result, _BinaryPredicate __binary_pred, forward_iterator_tag, output_iterator_tag) { _ForwardIterator __next = __first; *__result = *__first; while (++__next != __last) if (!__binary_pred(__first, __next)) { __first = __next; *++__result = *__first; } return ++__result; } template _OutputIterator __unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryPredicate __binary_pred, input_iterator_tag, output_iterator_tag) { typename iterator_traits<_InputIterator>::value_type __value = *__first; __decltype(__gnu_cxx::__ops::__iter_comp_val(__binary_pred)) __rebound_pred = __gnu_cxx::__ops::__iter_comp_val(__binary_pred); *__result = __value; while (++__first != __last) if (!__rebound_pred(__first, __value)) { __value = *__first; *++__result = __value; } return ++__result; } template _ForwardIterator __unique_copy(_InputIterator __first, _InputIterator __last, _ForwardIterator __result, _BinaryPredicate __binary_pred, input_iterator_tag, forward_iterator_tag) { *__result = *__first; while (++__first != __last) if (!__binary_pred(__result, __first)) *++__result = *__first; return ++__result; } template void __reverse(_BidirectionalIterator __first, _BidirectionalIterator __last, bidirectional_iterator_tag) { while (true) if (__first == __last || __first == --__last) return; else { std::iter_swap(__first, __last); ++__first; } } template void __reverse(_RandomAccessIterator __first, _RandomAccessIterator __last, random_access_iterator_tag) { if (__first == __last) return; --__last; while (__first < __last) { std::iter_swap(__first, __last); ++__first; --__last; } } # 1175 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline void reverse(_BidirectionalIterator __first, _BidirectionalIterator __last) { ; std::__reverse(__first, __last, std::__iterator_category(__first)); } # 1202 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template _OutputIterator reverse_copy(_BidirectionalIterator __first, _BidirectionalIterator __last, _OutputIterator __result) { ; while (__first != __last) { --__last; *__result = *__last; ++__result; } return __result; } template _EuclideanRingElement __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n) { while (__n != 0) { _EuclideanRingElement __t = __m % __n; __m = __n; __n = __t; } return __m; } template _ForwardIterator __rotate(_ForwardIterator __first, _ForwardIterator __middle, _ForwardIterator __last, forward_iterator_tag) { if (__first == __middle) return __last; else if (__last == __middle) return __first; _ForwardIterator __first2 = __middle; do { std::iter_swap(__first, __first2); ++__first; ++__first2; if (__first == __middle) __middle = __first2; } while (__first2 != __last); _ForwardIterator __ret = __first; __first2 = __middle; while (__first2 != __last) { std::iter_swap(__first, __first2); ++__first; ++__first2; if (__first == __middle) __middle = __first2; else if (__first2 == __last) __first2 = __middle; } return __ret; } template _BidirectionalIterator __rotate(_BidirectionalIterator __first, _BidirectionalIterator __middle, _BidirectionalIterator __last, bidirectional_iterator_tag) { if (__first == __middle) return __last; else if (__last == __middle) return __first; std::__reverse(__first, __middle, bidirectional_iterator_tag()); std::__reverse(__middle, __last, bidirectional_iterator_tag()); while (__first != __middle && __middle != __last) { std::iter_swap(__first, --__last); ++__first; } if (__first == __middle) { std::__reverse(__middle, __last, bidirectional_iterator_tag()); return __last; } else { std::__reverse(__first, __middle, bidirectional_iterator_tag()); return __first; } } template _RandomAccessIterator __rotate(_RandomAccessIterator __first, _RandomAccessIterator __middle, _RandomAccessIterator __last, random_access_iterator_tag) { if (__first == __middle) return __last; else if (__last == __middle) return __first; typedef typename iterator_traits<_RandomAccessIterator>::difference_type _Distance; typedef typename iterator_traits<_RandomAccessIterator>::value_type _ValueType; _Distance __n = __last - __first; _Distance __k = __middle - __first; if (__k == __n - __k) { std::swap_ranges(__first, __middle, __middle); return __middle; } _RandomAccessIterator __p = __first; _RandomAccessIterator __ret = __first + (__last - __middle); for (;;) { if (__k < __n - __k) { if (__is_pod(_ValueType) && __k == 1) { _ValueType __t = (*__p); std::copy(__p + 1, __p + __n, __p); *(__p + __n - 1) = (__t); return __ret; } _RandomAccessIterator __q = __p + __k; for (_Distance __i = 0; __i < __n - __k; ++ __i) { std::iter_swap(__p, __q); ++__p; ++__q; } __n %= __k; if (__n == 0) return __ret; std::swap(__n, __k); __k = __n - __k; } else { __k = __n - __k; if (__is_pod(_ValueType) && __k == 1) { _ValueType __t = (*(__p + __n - 1)); std::copy_backward(__p, __p + __n - 1, __p + __n); *__p = (__t); return __ret; } _RandomAccessIterator __q = __p + __n; __p = __q - __k; for (_Distance __i = 0; __i < __n - __k; ++ __i) { --__p; --__q; std::iter_swap(__p, __q); } __n %= __k; if (__n == 0) return __ret; std::swap(__n, __k); } } } # 1426 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _ForwardIterator rotate(_ForwardIterator __first, _ForwardIterator __middle, _ForwardIterator __last) { ; ; return std::__rotate(__first, __middle, __last, std::__iterator_category(__first)); } # 1461 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _OutputIterator rotate_copy(_ForwardIterator __first, _ForwardIterator __middle, _ForwardIterator __last, _OutputIterator __result) { ; ; return std::copy(__first, __middle, std::copy(__middle, __last, __result)); } template _ForwardIterator __partition(_ForwardIterator __first, _ForwardIterator __last, _Predicate __pred, forward_iterator_tag) { if (__first == __last) return __first; while (__pred(*__first)) if (++__first == __last) return __first; _ForwardIterator __next = __first; while (++__next != __last) if (__pred(*__next)) { std::iter_swap(__first, __next); ++__first; } return __first; } template _BidirectionalIterator __partition(_BidirectionalIterator __first, _BidirectionalIterator __last, _Predicate __pred, bidirectional_iterator_tag) { while (true) { while (true) if (__first == __last) return __first; else if (__pred(*__first)) ++__first; else break; --__last; while (true) if (__first == __last) return __first; else if (!bool(__pred(*__last))) --__last; else break; std::iter_swap(__first, __last); ++__first; } } # 1538 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template _ForwardIterator __stable_partition_adaptive(_ForwardIterator __first, _ForwardIterator __last, _Predicate __pred, _Distance __len, _Pointer __buffer, _Distance __buffer_size) { if (__len == 1) return __first; if (__len <= __buffer_size) { _ForwardIterator __result1 = __first; _Pointer __result2 = __buffer; *__result2 = (*__first); ++__result2; ++__first; for (; __first != __last; ++__first) if (__pred(__first)) { *__result1 = (*__first); ++__result1; } else { *__result2 = (*__first); ++__result2; } std::copy(__buffer, __result2, __result1); return __result1; } _ForwardIterator __middle = __first; std::advance(__middle, __len / 2); _ForwardIterator __left_split = std::__stable_partition_adaptive(__first, __middle, __pred, __len / 2, __buffer, __buffer_size); _Distance __right_len = __len - __len / 2; _ForwardIterator __right_split = std::__find_if_not_n(__middle, __right_len, __pred); if (__right_len) __right_split = std::__stable_partition_adaptive(__right_split, __last, __pred, __right_len, __buffer, __buffer_size); std::rotate(__left_split, __middle, __right_split); std::advance(__left_split, std::distance(__middle, __right_split)); return __left_split; } template _ForwardIterator __stable_partition(_ForwardIterator __first, _ForwardIterator __last, _Predicate __pred) { __first = std::__find_if_not(__first, __last, __pred); if (__first == __last) return __first; typedef typename iterator_traits<_ForwardIterator>::value_type _ValueType; typedef typename iterator_traits<_ForwardIterator>::difference_type _DistanceType; _Temporary_buffer<_ForwardIterator, _ValueType> __buf(__first, __last); return std::__stable_partition_adaptive(__first, __last, __pred, _DistanceType(__buf.requested_size()), __buf.begin(), _DistanceType(__buf.size())); } # 1641 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _ForwardIterator stable_partition(_ForwardIterator __first, _ForwardIterator __last, _Predicate __pred) { ; return std::__stable_partition(__first, __last, __gnu_cxx::__ops::__pred_iter(__pred)); } template void __heap_select(_RandomAccessIterator __first, _RandomAccessIterator __middle, _RandomAccessIterator __last, _Compare __comp) { std::__make_heap(__first, __middle, __comp); for (_RandomAccessIterator __i = __middle; __i < __last; ++__i) if (__comp(__i, __first)) std::__pop_heap(__first, __middle, __i, __comp); } template _RandomAccessIterator __partial_sort_copy(_InputIterator __first, _InputIterator __last, _RandomAccessIterator __result_first, _RandomAccessIterator __result_last, _Compare __comp) { typedef typename iterator_traits<_InputIterator>::value_type _InputValueType; typedef iterator_traits<_RandomAccessIterator> _RItTraits; typedef typename _RItTraits::difference_type _DistanceType; if (__result_first == __result_last) return __result_last; _RandomAccessIterator __result_real_last = __result_first; while (__first != __last && __result_real_last != __result_last) { *__result_real_last = *__first; ++__result_real_last; ++__first; } std::__make_heap(__result_first, __result_real_last, __comp); while (__first != __last) { if (__comp(__first, __result_first)) std::__adjust_heap(__result_first, _DistanceType(0), _DistanceType(__result_real_last - __result_first), _InputValueType(*__first), __comp); ++__first; } std::__sort_heap(__result_first, __result_real_last, __comp); return __result_real_last; } # 1727 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _RandomAccessIterator partial_sort_copy(_InputIterator __first, _InputIterator __last, _RandomAccessIterator __result_first, _RandomAccessIterator __result_last) { typedef typename iterator_traits<_InputIterator>::value_type _InputValueType; typedef typename iterator_traits<_RandomAccessIterator>::value_type _OutputValueType; typedef typename iterator_traits<_RandomAccessIterator>::difference_type _DistanceType; ; ; return std::__partial_sort_copy(__first, __last, __result_first, __result_last, __gnu_cxx::__ops::__iter_less_iter()); } # 1775 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _RandomAccessIterator partial_sort_copy(_InputIterator __first, _InputIterator __last, _RandomAccessIterator __result_first, _RandomAccessIterator __result_last, _Compare __comp) { typedef typename iterator_traits<_InputIterator>::value_type _InputValueType; typedef typename iterator_traits<_RandomAccessIterator>::value_type _OutputValueType; typedef typename iterator_traits<_RandomAccessIterator>::difference_type _DistanceType; ; ; return std::__partial_sort_copy(__first, __last, __result_first, __result_last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template void __unguarded_linear_insert(_RandomAccessIterator __last, _Compare __comp) { typename iterator_traits<_RandomAccessIterator>::value_type __val = (*__last); _RandomAccessIterator __next = __last; --__next; while (__comp(__val, __next)) { *__last = (*__next); __last = __next; --__next; } *__last = (__val); } template void __insertion_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { if (__first == __last) return; for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) { if (__comp(__i, __first)) { typename iterator_traits<_RandomAccessIterator>::value_type __val = (*__i); std::copy_backward(__first, __i, __i + 1); *__first = (__val); } else std::__unguarded_linear_insert(__i, __gnu_cxx::__ops::__val_comp_iter(__comp)); } } template inline void __unguarded_insertion_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { for (_RandomAccessIterator __i = __first; __i != __last; ++__i) std::__unguarded_linear_insert(__i, __gnu_cxx::__ops::__val_comp_iter(__comp)); } enum { _S_threshold = 16 }; template void __final_insertion_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { if (__last - __first > int(_S_threshold)) { std::__insertion_sort(__first, __first + int(_S_threshold), __comp); std::__unguarded_insertion_sort(__first + int(_S_threshold), __last, __comp); } else std::__insertion_sort(__first, __last, __comp); } template _RandomAccessIterator __unguarded_partition(_RandomAccessIterator __first, _RandomAccessIterator __last, _RandomAccessIterator __pivot, _Compare __comp) { while (true) { while (__comp(__first, __pivot)) ++__first; --__last; while (__comp(__pivot, __last)) --__last; if (!(__first < __last)) return __first; std::iter_swap(__first, __last); ++__first; } } template inline _RandomAccessIterator __unguarded_partition_pivot(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { _RandomAccessIterator __mid = __first + (__last - __first) / 2; std::__move_median_to_first(__first, __first + 1, __mid, __last - 1, __comp); return std::__unguarded_partition(__first + 1, __last, __first, __comp); } template inline void __partial_sort(_RandomAccessIterator __first, _RandomAccessIterator __middle, _RandomAccessIterator __last, _Compare __comp) { std::__heap_select(__first, __middle, __last, __comp); std::__sort_heap(__first, __middle, __comp); } template void __introsort_loop(_RandomAccessIterator __first, _RandomAccessIterator __last, _Size __depth_limit, _Compare __comp) { while (__last - __first > int(_S_threshold)) { if (__depth_limit == 0) { std::__partial_sort(__first, __last, __last, __comp); return; } --__depth_limit; _RandomAccessIterator __cut = std::__unguarded_partition_pivot(__first, __last, __comp); std::__introsort_loop(__cut, __last, __depth_limit, __comp); __last = __cut; } } template inline void __sort(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { if (__first != __last) { std::__introsort_loop(__first, __last, std::__lg(__last - __first) * 2, __comp); std::__final_insertion_sort(__first, __last, __comp); } } template void __introselect(_RandomAccessIterator __first, _RandomAccessIterator __nth, _RandomAccessIterator __last, _Size __depth_limit, _Compare __comp) { while (__last - __first > 3) { if (__depth_limit == 0) { std::__heap_select(__first, __nth + 1, __last, __comp); std::iter_swap(__first, __nth); return; } --__depth_limit; _RandomAccessIterator __cut = std::__unguarded_partition_pivot(__first, __last, __comp); if (__cut <= __nth) __first = __cut; else __last = __cut; } std::__insertion_sort(__first, __last, __comp); } # 2011 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _ForwardIterator lower_bound(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __val, _Compare __comp) { typedef typename iterator_traits<_ForwardIterator>::value_type _ValueType; ; return std::__lower_bound(__first, __last, __val, __gnu_cxx::__ops::__iter_comp_val(__comp)); } template _ForwardIterator __upper_bound(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __val, _Compare __comp) { typedef typename iterator_traits<_ForwardIterator>::difference_type _DistanceType; _DistanceType __len = std::distance(__first, __last); while (__len > 0) { _DistanceType __half = __len >> 1; _ForwardIterator __middle = __first; std::advance(__middle, __half); if (__comp(__val, __middle)) __len = __half; else { __first = __middle; ++__first; __len = __len - __half - 1; } } return __first; } # 2068 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _ForwardIterator upper_bound(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __val) { typedef typename iterator_traits<_ForwardIterator>::value_type _ValueType; ; return std::__upper_bound(__first, __last, __val, __gnu_cxx::__ops::__val_less_iter()); } # 2100 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _ForwardIterator upper_bound(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __val, _Compare __comp) { typedef typename iterator_traits<_ForwardIterator>::value_type _ValueType; ; return std::__upper_bound(__first, __last, __val, __gnu_cxx::__ops::__val_comp_iter(__comp)); } template pair<_ForwardIterator, _ForwardIterator> __equal_range(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __val, _CompareItTp __comp_it_val, _CompareTpIt __comp_val_it) { typedef typename iterator_traits<_ForwardIterator>::difference_type _DistanceType; _DistanceType __len = std::distance(__first, __last); while (__len > 0) { _DistanceType __half = __len >> 1; _ForwardIterator __middle = __first; std::advance(__middle, __half); if (__comp_it_val(__middle, __val)) { __first = __middle; ++__first; __len = __len - __half - 1; } else if (__comp_val_it(__val, __middle)) __len = __half; else { _ForwardIterator __left = std::__lower_bound(__first, __middle, __val, __comp_it_val); std::advance(__first, __len); _ForwardIterator __right = std::__upper_bound(++__middle, __first, __val, __comp_val_it); return pair<_ForwardIterator, _ForwardIterator>(__left, __right); } } return pair<_ForwardIterator, _ForwardIterator>(__first, __first); } # 2174 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline pair<_ForwardIterator, _ForwardIterator> equal_range(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __val) { typedef typename iterator_traits<_ForwardIterator>::value_type _ValueType; ; ; return std::__equal_range(__first, __last, __val, __gnu_cxx::__ops::__iter_less_val(), __gnu_cxx::__ops::__val_less_iter()); } # 2211 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline pair<_ForwardIterator, _ForwardIterator> equal_range(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __val, _Compare __comp) { typedef typename iterator_traits<_ForwardIterator>::value_type _ValueType; ; ; return std::__equal_range(__first, __last, __val, __gnu_cxx::__ops::__iter_comp_val(__comp), __gnu_cxx::__ops::__val_comp_iter(__comp)); } # 2247 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template bool binary_search(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __val) { typedef typename iterator_traits<_ForwardIterator>::value_type _ValueType; ; ; _ForwardIterator __i = std::__lower_bound(__first, __last, __val, __gnu_cxx::__ops::__iter_less_val()); return __i != __last && !(__val < *__i); } # 2282 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template bool binary_search(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __val, _Compare __comp) { typedef typename iterator_traits<_ForwardIterator>::value_type _ValueType; ; ; _ForwardIterator __i = std::__lower_bound(__first, __last, __val, __gnu_cxx::__ops::__iter_comp_val(__comp)); return __i != __last && !bool(__comp(__val, *__i)); } template void __move_merge_adaptive(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result, _Compare __comp) { while (__first1 != __last1 && __first2 != __last2) { if (__comp(__first2, __first1)) { *__result = (*__first2); ++__first2; } else { *__result = (*__first1); ++__first1; } ++__result; } if (__first1 != __last1) std::copy(__first1, __last1, __result); } template void __move_merge_adaptive_backward(_BidirectionalIterator1 __first1, _BidirectionalIterator1 __last1, _BidirectionalIterator2 __first2, _BidirectionalIterator2 __last2, _BidirectionalIterator3 __result, _Compare __comp) { if (__first1 == __last1) { std::copy_backward(__first2, __last2, __result); return; } else if (__first2 == __last2) return; --__last1; --__last2; while (true) { if (__comp(__last2, __last1)) { *--__result = (*__last1); if (__first1 == __last1) { std::copy_backward(__first2, ++__last2, __result); return; } --__last1; } else { *--__result = (*__last2); if (__first2 == __last2) return; --__last2; } } } template _BidirectionalIterator1 __rotate_adaptive(_BidirectionalIterator1 __first, _BidirectionalIterator1 __middle, _BidirectionalIterator1 __last, _Distance __len1, _Distance __len2, _BidirectionalIterator2 __buffer, _Distance __buffer_size) { _BidirectionalIterator2 __buffer_end; if (__len1 > __len2 && __len2 <= __buffer_size) { if (__len2) { __buffer_end = std::copy(__middle, __last, __buffer); std::copy_backward(__first, __middle, __last); return std::copy(__buffer, __buffer_end, __first); } else return __first; } else if (__len1 <= __buffer_size) { if (__len1) { __buffer_end = std::copy(__first, __middle, __buffer); std::copy(__middle, __last, __first); return std::copy_backward(__buffer, __buffer_end, __last); } else return __last; } else { std::rotate(__first, __middle, __last); std::advance(__first, std::distance(__middle, __last)); return __first; } } template void __merge_adaptive(_BidirectionalIterator __first, _BidirectionalIterator __middle, _BidirectionalIterator __last, _Distance __len1, _Distance __len2, _Pointer __buffer, _Distance __buffer_size, _Compare __comp) { if (__len1 <= __len2 && __len1 <= __buffer_size) { _Pointer __buffer_end = std::copy(__first, __middle, __buffer); std::__move_merge_adaptive(__buffer, __buffer_end, __middle, __last, __first, __comp); } else if (__len2 <= __buffer_size) { _Pointer __buffer_end = std::copy(__middle, __last, __buffer); std::__move_merge_adaptive_backward(__first, __middle, __buffer, __buffer_end, __last, __comp); } else { _BidirectionalIterator __first_cut = __first; _BidirectionalIterator __second_cut = __middle; _Distance __len11 = 0; _Distance __len22 = 0; if (__len1 > __len2) { __len11 = __len1 / 2; std::advance(__first_cut, __len11); __second_cut = std::__lower_bound(__middle, __last, *__first_cut, __gnu_cxx::__ops::__iter_comp_val(__comp)); __len22 = std::distance(__middle, __second_cut); } else { __len22 = __len2 / 2; std::advance(__second_cut, __len22); __first_cut = std::__upper_bound(__first, __middle, *__second_cut, __gnu_cxx::__ops::__val_comp_iter(__comp)); __len11 = std::distance(__first, __first_cut); } _BidirectionalIterator __new_middle = std::__rotate_adaptive(__first_cut, __middle, __second_cut, __len1 - __len11, __len22, __buffer, __buffer_size); std::__merge_adaptive(__first, __first_cut, __new_middle, __len11, __len22, __buffer, __buffer_size, __comp); std::__merge_adaptive(__new_middle, __second_cut, __last, __len1 - __len11, __len2 - __len22, __buffer, __buffer_size, __comp); } } template void __merge_without_buffer(_BidirectionalIterator __first, _BidirectionalIterator __middle, _BidirectionalIterator __last, _Distance __len1, _Distance __len2, _Compare __comp) { if (__len1 == 0 || __len2 == 0) return; if (__len1 + __len2 == 2) { if (__comp(__middle, __first)) std::iter_swap(__first, __middle); return; } _BidirectionalIterator __first_cut = __first; _BidirectionalIterator __second_cut = __middle; _Distance __len11 = 0; _Distance __len22 = 0; if (__len1 > __len2) { __len11 = __len1 / 2; std::advance(__first_cut, __len11); __second_cut = std::__lower_bound(__middle, __last, *__first_cut, __gnu_cxx::__ops::__iter_comp_val(__comp)); __len22 = std::distance(__middle, __second_cut); } else { __len22 = __len2 / 2; std::advance(__second_cut, __len22); __first_cut = std::__upper_bound(__first, __middle, *__second_cut, __gnu_cxx::__ops::__val_comp_iter(__comp)); __len11 = std::distance(__first, __first_cut); } std::rotate(__first_cut, __middle, __second_cut); _BidirectionalIterator __new_middle = __first_cut; std::advance(__new_middle, std::distance(__middle, __second_cut)); std::__merge_without_buffer(__first, __first_cut, __new_middle, __len11, __len22, __comp); std::__merge_without_buffer(__new_middle, __second_cut, __last, __len1 - __len11, __len2 - __len22, __comp); } template void __inplace_merge(_BidirectionalIterator __first, _BidirectionalIterator __middle, _BidirectionalIterator __last, _Compare __comp) { typedef typename iterator_traits<_BidirectionalIterator>::value_type _ValueType; typedef typename iterator_traits<_BidirectionalIterator>::difference_type _DistanceType; if (__first == __middle || __middle == __last) return; const _DistanceType __len1 = std::distance(__first, __middle); const _DistanceType __len2 = std::distance(__middle, __last); typedef _Temporary_buffer<_BidirectionalIterator, _ValueType> _TmpBuf; _TmpBuf __buf(__first, __last); if (__buf.begin() == 0) std::__merge_without_buffer (__first, __middle, __last, __len1, __len2, __comp); else std::__merge_adaptive (__first, __middle, __last, __len1, __len2, __buf.begin(), _DistanceType(__buf.size()), __comp); } # 2579 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline void inplace_merge(_BidirectionalIterator __first, _BidirectionalIterator __middle, _BidirectionalIterator __last) { ; ; std::__inplace_merge(__first, __middle, __last, __gnu_cxx::__ops::__iter_less_iter()); } # 2619 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline void inplace_merge(_BidirectionalIterator __first, _BidirectionalIterator __middle, _BidirectionalIterator __last, _Compare __comp) { ; ; std::__inplace_merge(__first, __middle, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template _OutputIterator __move_merge(_InputIterator __first1, _InputIterator __last1, _InputIterator __first2, _InputIterator __last2, _OutputIterator __result, _Compare __comp) { while (__first1 != __last1 && __first2 != __last2) { if (__comp(__first2, __first1)) { *__result = (*__first2); ++__first2; } else { *__result = (*__first1); ++__first1; } ++__result; } return std::copy(__first2, __last2, std::copy(__first1, __last1, __result)) ; } template void __merge_sort_loop(_RandomAccessIterator1 __first, _RandomAccessIterator1 __last, _RandomAccessIterator2 __result, _Distance __step_size, _Compare __comp) { const _Distance __two_step = 2 * __step_size; while (__last - __first >= __two_step) { __result = std::__move_merge(__first, __first + __step_size, __first + __step_size, __first + __two_step, __result, __comp); __first += __two_step; } __step_size = std::min(_Distance(__last - __first), __step_size); std::__move_merge(__first, __first + __step_size, __first + __step_size, __last, __result, __comp); } template void __chunk_insertion_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, _Distance __chunk_size, _Compare __comp) { while (__last - __first >= __chunk_size) { std::__insertion_sort(__first, __first + __chunk_size, __comp); __first += __chunk_size; } std::__insertion_sort(__first, __last, __comp); } enum { _S_chunk_size = 7 }; template void __merge_sort_with_buffer(_RandomAccessIterator __first, _RandomAccessIterator __last, _Pointer __buffer, _Compare __comp) { typedef typename iterator_traits<_RandomAccessIterator>::difference_type _Distance; const _Distance __len = __last - __first; const _Pointer __buffer_last = __buffer + __len; _Distance __step_size = _S_chunk_size; std::__chunk_insertion_sort(__first, __last, __step_size, __comp); while (__step_size < __len) { std::__merge_sort_loop(__first, __last, __buffer, __step_size, __comp); __step_size *= 2; std::__merge_sort_loop(__buffer, __buffer_last, __first, __step_size, __comp); __step_size *= 2; } } template void __stable_sort_adaptive(_RandomAccessIterator __first, _RandomAccessIterator __last, _Pointer __buffer, _Distance __buffer_size, _Compare __comp) { const _Distance __len = (__last - __first + 1) / 2; const _RandomAccessIterator __middle = __first + __len; if (__len > __buffer_size) { std::__stable_sort_adaptive(__first, __middle, __buffer, __buffer_size, __comp); std::__stable_sort_adaptive(__middle, __last, __buffer, __buffer_size, __comp); } else { std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); } std::__merge_adaptive(__first, __middle, __last, _Distance(__middle - __first), _Distance(__last - __middle), __buffer, __buffer_size, __comp); } template void __inplace_stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { if (__last - __first < 15) { std::__insertion_sort(__first, __last, __comp); return; } _RandomAccessIterator __middle = __first + (__last - __first) / 2; std::__inplace_stable_sort(__first, __middle, __comp); std::__inplace_stable_sort(__middle, __last, __comp); std::__merge_without_buffer(__first, __middle, __last, __middle - __first, __last - __middle, __comp); } # 2790 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template bool __includes(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _Compare __comp) { while (__first1 != __last1 && __first2 != __last2) if (__comp(__first2, __first1)) return false; else if (__comp(__first1, __first2)) ++__first1; else ++__first1, ++__first2; return __first2 == __last2; } # 2826 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline bool includes(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2) { ; ; return std::__includes(__first1, __last1, __first2, __last2, __gnu_cxx::__ops::__iter_less_iter()); } # 2868 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline bool includes(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _Compare __comp) { ; ; return std::__includes(__first1, __last1, __first2, __last2, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } # 2901 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template bool __next_permutation(_BidirectionalIterator __first, _BidirectionalIterator __last, _Compare __comp) { if (__first == __last) return false; _BidirectionalIterator __i = __first; ++__i; if (__i == __last) return false; __i = __last; --__i; for(;;) { _BidirectionalIterator __ii = __i; --__i; if (__comp(__i, __ii)) { _BidirectionalIterator __j = __last; while (!__comp(__i, --__j)) {} std::iter_swap(__i, __j); std::__reverse(__ii, __last, std::__iterator_category(__first)); return true; } if (__i == __first) { std::__reverse(__first, __last, std::__iterator_category(__first)); return false; } } } # 2950 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline bool next_permutation(_BidirectionalIterator __first, _BidirectionalIterator __last) { ; return std::__next_permutation (__first, __last, __gnu_cxx::__ops::__iter_less_iter()); } # 2981 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline bool next_permutation(_BidirectionalIterator __first, _BidirectionalIterator __last, _Compare __comp) { ; return std::__next_permutation (__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template bool __prev_permutation(_BidirectionalIterator __first, _BidirectionalIterator __last, _Compare __comp) { if (__first == __last) return false; _BidirectionalIterator __i = __first; ++__i; if (__i == __last) return false; __i = __last; --__i; for(;;) { _BidirectionalIterator __ii = __i; --__i; if (__comp(__ii, __i)) { _BidirectionalIterator __j = __last; while (!__comp(--__j, __i)) {} std::iter_swap(__i, __j); std::__reverse(__ii, __last, std::__iterator_category(__first)); return true; } if (__i == __first) { std::__reverse(__first, __last, std::__iterator_category(__first)); return false; } } } # 3048 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline bool prev_permutation(_BidirectionalIterator __first, _BidirectionalIterator __last) { ; return std::__prev_permutation(__first, __last, __gnu_cxx::__ops::__iter_less_iter()); } # 3079 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline bool prev_permutation(_BidirectionalIterator __first, _BidirectionalIterator __last, _Compare __comp) { ; return std::__prev_permutation(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template _OutputIterator __replace_copy_if(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _Predicate __pred, const _Tp& __new_value) { for (; __first != __last; ++__first, ++__result) if (__pred(__first)) *__result = __new_value; else *__result = *__first; return __result; } # 3128 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _OutputIterator replace_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, const _Tp& __old_value, const _Tp& __new_value) { ; return std::__replace_copy_if(__first, __last, __result, __gnu_cxx::__ops::__iter_equals_val(__old_value), __new_value); } # 3162 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _OutputIterator replace_copy_if(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _Predicate __pred, const _Tp& __new_value) { ; return std::__replace_copy_if(__first, __last, __result, __gnu_cxx::__ops::__pred_iter(__pred), __new_value); } template typename iterator_traits<_InputIterator>::difference_type __count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) { typename iterator_traits<_InputIterator>::difference_type __n = 0; for (; __first != __last; ++__first) if (__pred(__first)) ++__n; return __n; } # 3738 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 # 3754 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template _Function for_each(_InputIterator __first, _InputIterator __last, _Function __f) { ; for (; __first != __last; ++__first) __f(*__first); return (__f); } # 3775 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _InputIterator find(_InputIterator __first, _InputIterator __last, const _Tp& __val) { ; return std::__find_if(__first, __last, __gnu_cxx::__ops::__iter_equals_val(__val)); } # 3799 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _InputIterator find_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) { ; return std::__find_if(__first, __last, __gnu_cxx::__ops::__pred_iter(__pred)); } # 3830 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template _InputIterator find_first_of(_InputIterator __first1, _InputIterator __last1, _ForwardIterator __first2, _ForwardIterator __last2) { ; ; for (; __first1 != __last1; ++__first1) for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) if (*__first1 == *__iter) return __first1; return __last1; } # 3870 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template _InputIterator find_first_of(_InputIterator __first1, _InputIterator __last1, _ForwardIterator __first2, _ForwardIterator __last2, _BinaryPredicate __comp) { ; ; for (; __first1 != __last1; ++__first1) for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) if (__comp(*__first1, *__iter)) return __first1; return __last1; } # 3902 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _ForwardIterator adjacent_find(_ForwardIterator __first, _ForwardIterator __last) { ; return std::__adjacent_find(__first, __last, __gnu_cxx::__ops::__iter_equal_to_iter()); } # 3927 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _ForwardIterator adjacent_find(_ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __binary_pred) { ; return std::__adjacent_find(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); } # 3952 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline typename iterator_traits<_InputIterator>::difference_type count(_InputIterator __first, _InputIterator __last, const _Tp& __value) { ; return std::__count_if(__first, __last, __gnu_cxx::__ops::__iter_equals_val(__value)); } # 3975 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline typename iterator_traits<_InputIterator>::difference_type count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) { ; return std::__count_if(__first, __last, __gnu_cxx::__ops::__pred_iter(__pred)); } # 4015 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _ForwardIterator1 search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2) { ; ; return std::__search(__first1, __last1, __first2, __last2, __gnu_cxx::__ops::__iter_equal_to_iter()); } # 4054 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _ForwardIterator1 search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, _BinaryPredicate __predicate) { ; ; return std::__search(__first1, __last1, __first2, __last2, __gnu_cxx::__ops::__iter_comp_iter(__predicate)); } # 4089 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _ForwardIterator search_n(_ForwardIterator __first, _ForwardIterator __last, _Integer __count, const _Tp& __val) { ; return std::__search_n(__first, __last, __count, __gnu_cxx::__ops::__iter_equals_val(__val)); } # 4122 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _ForwardIterator search_n(_ForwardIterator __first, _ForwardIterator __last, _Integer __count, const _Tp& __val, _BinaryPredicate __binary_pred) { ; return std::__search_n(__first, __last, __count, __gnu_cxx::__ops::__iter_comp_val(__binary_pred, __val)); } # 4156 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template _OutputIterator transform(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _UnaryOperation __unary_op) { ; for (; __first != __last; ++__first, ++__result) *__result = __unary_op(*__first); return __result; } # 4193 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template _OutputIterator transform(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _OutputIterator __result, _BinaryOperation __binary_op) { ; for (; __first1 != __last1; ++__first1, ++__first2, ++__result) *__result = __binary_op(*__first1, *__first2); return __result; } # 4226 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template void replace(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __old_value, const _Tp& __new_value) { ; for (; __first != __last; ++__first) if (*__first == __old_value) *__first = __new_value; } # 4258 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template void replace_if(_ForwardIterator __first, _ForwardIterator __last, _Predicate __pred, const _Tp& __new_value) { ; for (; __first != __last; ++__first) if (__pred(*__first)) *__first = __new_value; } # 4290 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template void generate(_ForwardIterator __first, _ForwardIterator __last, _Generator __gen) { ; for (; __first != __last; ++__first) *__first = __gen(); } # 4321 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template _OutputIterator generate_n(_OutputIterator __first, _Size __n, _Generator __gen) { for (__decltype(__n + 0) __niter = __n; __niter > 0; --__niter, ++__first) *__first = __gen(); return __first; } # 4357 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _OutputIterator unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result) { ; if (__first == __last) return __result; return std::__unique_copy(__first, __last, __result, __gnu_cxx::__ops::__iter_equal_to_iter(), std::__iterator_category(__first), std::__iterator_category(__result)); } # 4397 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _OutputIterator unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryPredicate __binary_pred) { ; if (__first == __last) return __result; return std::__unique_copy(__first, __last, __result, __gnu_cxx::__ops::__iter_comp_iter(__binary_pred), std::__iterator_category(__first), std::__iterator_category(__result)); } # 4429 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline void random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last) { ; if (__first != __last) for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) { _RandomAccessIterator __j = __first + std::rand() % ((__i - __first) + 1); if (__i != __j) std::iter_swap(__i, __j); } } # 4463 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template void random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, _RandomNumberGenerator& __rand) { ; if (__first == __last) return; for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) { _RandomAccessIterator __j = __first + __rand((__i - __first) + 1); if (__i != __j) std::iter_swap(__i, __j); } } # 4503 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _ForwardIterator partition(_ForwardIterator __first, _ForwardIterator __last, _Predicate __pred) { ; return std::__partition(__first, __last, __pred, std::__iterator_category(__first)); } # 4536 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline void partial_sort(_RandomAccessIterator __first, _RandomAccessIterator __middle, _RandomAccessIterator __last) { ; ; std::__partial_sort(__first, __middle, __last, __gnu_cxx::__ops::__iter_less_iter()); } # 4573 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline void partial_sort(_RandomAccessIterator __first, _RandomAccessIterator __middle, _RandomAccessIterator __last, _Compare __comp) { ; ; std::__partial_sort(__first, __middle, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } # 4608 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline void nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, _RandomAccessIterator __last) { ; ; if (__first == __last || __nth == __last) return; std::__introselect(__first, __nth, __last, std::__lg(__last - __first) * 2, __gnu_cxx::__ops::__iter_less_iter()); } # 4646 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline void nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, _RandomAccessIterator __last, _Compare __comp) { ; ; if (__first == __last || __nth == __last) return; std::__introselect(__first, __nth, __last, std::__lg(__last - __first) * 2, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } # 4682 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline void sort(_RandomAccessIterator __first, _RandomAccessIterator __last) { ; std::__sort(__first, __last, __gnu_cxx::__ops::__iter_less_iter()); } # 4711 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline void sort(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { ; std::__sort(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template _OutputIterator __merge(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result, _Compare __comp) { while (__first1 != __last1 && __first2 != __last2) { if (__comp(__first2, __first1)) { *__result = *__first2; ++__first2; } else { *__result = *__first1; ++__first1; } ++__result; } return std::copy(__first2, __last2, std::copy(__first1, __last1, __result)); } # 4771 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _OutputIterator merge(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result) { ; ; return std::__merge(__first1, __last1, __first2, __last2, __result, __gnu_cxx::__ops::__iter_less_iter()); } # 4819 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _OutputIterator merge(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result, _Compare __comp) { ; ; return std::__merge(__first1, __last1, __first2, __last2, __result, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template inline void __stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { typedef typename iterator_traits<_RandomAccessIterator>::value_type _ValueType; typedef typename iterator_traits<_RandomAccessIterator>::difference_type _DistanceType; typedef _Temporary_buffer<_RandomAccessIterator, _ValueType> _TmpBuf; _TmpBuf __buf(__first, __last); if (__buf.begin() == 0) std::__inplace_stable_sort(__first, __last, __comp); else std::__stable_sort_adaptive(__first, __last, __buf.begin(), _DistanceType(__buf.size()), __comp); } # 4881 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline void stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last) { ; std::__stable_sort(__first, __last, __gnu_cxx::__ops::__iter_less_iter()); } # 4914 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline void stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { ; std::__stable_sort(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template _OutputIterator __set_union(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result, _Compare __comp) { while (__first1 != __last1 && __first2 != __last2) { if (__comp(__first1, __first2)) { *__result = *__first1; ++__first1; } else if (__comp(__first2, __first1)) { *__result = *__first2; ++__first2; } else { *__result = *__first1; ++__first1; ++__first2; } ++__result; } return std::copy(__first2, __last2, std::copy(__first1, __last1, __result)); } # 4981 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _OutputIterator set_union(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result) { ; ; return std::__set_union(__first1, __last1, __first2, __last2, __result, __gnu_cxx::__ops::__iter_less_iter()); } # 5028 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _OutputIterator set_union(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result, _Compare __comp) { ; ; return std::__set_union(__first1, __last1, __first2, __last2, __result, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template _OutputIterator __set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result, _Compare __comp) { while (__first1 != __last1 && __first2 != __last2) if (__comp(__first1, __first2)) ++__first1; else if (__comp(__first2, __first1)) ++__first2; else { *__result = *__first1; ++__first1; ++__first2; ++__result; } return __result; } # 5096 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _OutputIterator set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result) { ; ; return std::__set_intersection(__first1, __last1, __first2, __last2, __result, __gnu_cxx::__ops::__iter_less_iter()); } # 5142 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _OutputIterator set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result, _Compare __comp) { ; ; return std::__set_intersection(__first1, __last1, __first2, __last2, __result, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template _OutputIterator __set_difference(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result, _Compare __comp) { while (__first1 != __last1 && __first2 != __last2) if (__comp(__first1, __first2)) { *__result = *__first1; ++__first1; ++__result; } else if (__comp(__first2, __first1)) ++__first2; else { ++__first1; ++__first2; } return std::copy(__first1, __last1, __result); } # 5212 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _OutputIterator set_difference(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result) { ; ; return std::__set_difference(__first1, __last1, __first2, __last2, __result, __gnu_cxx::__ops::__iter_less_iter()); } # 5260 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _OutputIterator set_difference(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result, _Compare __comp) { ; ; return std::__set_difference(__first1, __last1, __first2, __last2, __result, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template _OutputIterator __set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result, _Compare __comp) { while (__first1 != __last1 && __first2 != __last2) if (__comp(__first1, __first2)) { *__result = *__first1; ++__first1; ++__result; } else if (__comp(__first2, __first1)) { *__result = *__first2; ++__first2; ++__result; } else { ++__first1; ++__first2; } return std::copy(__first2, __last2, std::copy(__first1, __last1, __result)); } # 5336 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _OutputIterator set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result) { ; ; return std::__set_symmetric_difference(__first1, __last1, __first2, __last2, __result, __gnu_cxx::__ops::__iter_less_iter()); } # 5384 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _OutputIterator set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result, _Compare __comp) { ; ; return std::__set_symmetric_difference(__first1, __last1, __first2, __last2, __result, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template _ForwardIterator __min_element(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp) { if (__first == __last) return __first; _ForwardIterator __result = __first; while (++__first != __last) if (__comp(__first, __result)) __result = __first; return __result; } # 5435 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template _ForwardIterator inline min_element(_ForwardIterator __first, _ForwardIterator __last) { ; return std::__min_element(__first, __last, __gnu_cxx::__ops::__iter_less_iter()); } # 5459 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _ForwardIterator min_element(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp) { ; return std::__min_element(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template _ForwardIterator __max_element(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp) { if (__first == __last) return __first; _ForwardIterator __result = __first; while (++__first != __last) if (__comp(__result, __first)) __result = __first; return __result; } # 5497 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _ForwardIterator max_element(_ForwardIterator __first, _ForwardIterator __last) { ; return std::__max_element(__first, __last, __gnu_cxx::__ops::__iter_less_iter()); } # 5521 "/usr/include/c++/5.0.0/bits/stl_algo.h" 3 template inline _ForwardIterator max_element(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp) { ; return std::__max_element(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } } # 63 "/usr/include/c++/5.0.0/algorithm" 2 3 # 30 "/usr/include/boost/iterator/iterator_concepts.hpp" 2 3 4 # 1 "/usr/include/boost/concept/detail/concept_def.hpp" 1 3 4 # 32 "/usr/include/boost/iterator/iterator_concepts.hpp" 2 3 4 namespace boost_concepts { template < typename Iterator > struct ReadableIterator; template < typename Iterator > struct ReadableIteratorConcept : ReadableIterator< Iterator > { }; template < typename Iterator > struct ReadableIterator : boost::Assignable , boost::CopyConstructible { typedef typename boost::detail::iterator_traits::value_type value_type; typedef typename boost::detail::iterator_traits::reference reference; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check50 __attribute__((unused)); ~ReadableIterator() { value_type v = *i; boost::ignore_unused_variable_warning(v); } private: Iterator i; }; template < typename Iterator , typename ValueType = typename boost::detail::iterator_traits::value_type > struct WritableIterator : boost::CopyConstructible { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check67 __attribute__((unused)); ~WritableIterator() { *i = v; } private: ValueType v; Iterator i; }; template < typename Iterator , typename ValueType = typename boost::detail::iterator_traits::value_type > struct WritableIteratorConcept : WritableIterator {}; template < typename Iterator > struct SwappableIterator; template < typename Iterator > struct SwappableIteratorConcept : SwappableIterator< Iterator > { }; template < typename Iterator > struct SwappableIterator { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check84 __attribute__((unused)); ~SwappableIterator() { std::iter_swap(i1, i2); } private: Iterator i1; Iterator i2; }; template < typename Iterator > struct LvalueIterator; template < typename Iterator > struct LvalueIteratorConcept : LvalueIterator< Iterator > { }; template < typename Iterator > struct LvalueIterator { typedef typename boost::detail::iterator_traits::value_type value_type; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check97 __attribute__((unused)); ~LvalueIterator() { value_type& r = const_cast(*i); boost::ignore_unused_variable_warning(r); } private: Iterator i; }; template < typename Iterator > struct IncrementableIterator; template < typename Iterator > struct IncrementableIteratorConcept : IncrementableIterator< Iterator > { }; template < typename Iterator > struct IncrementableIterator : boost::Assignable , boost::CopyConstructible { typedef typename boost::iterator_traversal::type traversal_category; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check120 __attribute__((unused)) ; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check122 __attribute__((unused)); ~IncrementableIterator() { ++i; (void)i++; } private: Iterator i; }; template < typename Iterator > struct SinglePassIterator; template < typename Iterator > struct SinglePassIteratorConcept : SinglePassIterator< Iterator > { }; template < typename Iterator > struct SinglePassIterator : IncrementableIterator , boost::EqualityComparable { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_ )>::failed> boost_concept_check140 __attribute__((unused)) ; }; template < typename Iterator > struct ForwardTraversal; template < typename Iterator > struct ForwardTraversalConcept : ForwardTraversal< Iterator > { }; template < typename Iterator > struct ForwardTraversal : SinglePassIterator , boost::DefaultConstructible { typedef typename boost::detail::iterator_traits::difference_type difference_type; enum { mpl_assertion_in_line_149 = sizeof( boost::mpl::assertion_failed( boost::mpl::assert_arg( (void (*) (boost::is_integral))0, 1 ) ) ) }; enum { mpl_assert_rel_value150 = (std::numeric_limits::is_signed == true) }; enum { mpl_assertion_in_line_150 = sizeof( boost::mpl::assertion_failed( (boost::mpl::failed ************ ( boost::mpl::assert_relation< boost::mpl::assert_::relations( sizeof( boost::mpl::assert_::arg == boost::mpl::assert_::arg ) ) , std::numeric_limits::is_signed , true >::************)) 0 ) ) }; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_ )>::failed> boost_concept_check156 __attribute__((unused)) ; }; template < typename Iterator > struct BidirectionalTraversal; template < typename Iterator > struct BidirectionalTraversalConcept : BidirectionalTraversal< Iterator > { }; template < typename Iterator > struct BidirectionalTraversal : ForwardTraversal { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_ )>::failed> boost_concept_check166 __attribute__((unused)) ; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check168 __attribute__((unused)); ~BidirectionalTraversal() { --i; (void)i--; } private: Iterator i; }; template < typename Iterator > struct RandomAccessTraversal; template < typename Iterator > struct RandomAccessTraversalConcept : RandomAccessTraversal< Iterator > { }; template < typename Iterator > struct RandomAccessTraversal : BidirectionalTraversal { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_ )>::failed> boost_concept_check184 __attribute__((unused)) ; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check186 __attribute__((unused)); ~RandomAccessTraversal() { i += n; i = i + n; i = n + i; i -= n; i = i - n; n = i - j; } private: typename BidirectionalTraversal::difference_type n; Iterator i, j; }; namespace detail { template void interop_single_pass_constraints(Iterator1 const& i1, Iterator2 const& i2) { bool b; b = i1 == i2; b = i1 != i2; b = i2 == i1; b = i2 != i1; boost::ignore_unused_variable_warning(b); } template void interop_rand_access_constraints( Iterator1 const& i1, Iterator2 const& i2, boost::random_access_traversal_tag, boost::random_access_traversal_tag) { bool b; typename boost::detail::iterator_traits::difference_type n; b = i1 < i2; b = i1 <= i2; b = i1 > i2; b = i1 >= i2; n = i1 - i2; b = i2 < i1; b = i2 <= i1; b = i2 > i1; b = i2 >= i1; n = i2 - i1; boost::ignore_unused_variable_warning(b); boost::ignore_unused_variable_warning(n); } template void interop_rand_access_constraints( Iterator1 const&, Iterator2 const&, boost::single_pass_traversal_tag, boost::single_pass_traversal_tag) { } } template < typename Iterator , typename ConstIterator > struct InteroperableIterator; template < typename Iterator , typename ConstIterator > struct InteroperableIteratorConcept : InteroperableIterator< Iterator, ConstIterator > { }; template < typename Iterator , typename ConstIterator > struct InteroperableIterator { private: typedef typename boost::iterators::pure_iterator_traversal::type traversal_category; typedef typename boost::iterators::pure_iterator_traversal::type const_traversal_category; public: typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check255 __attribute__((unused)); typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check256 __attribute__((unused)); typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check258 __attribute__((unused)); ~InteroperableIterator() { detail::interop_single_pass_constraints(i, ci); detail::interop_rand_access_constraints(i, ci, traversal_category(), const_traversal_category()); ci = i; } private: Iterator i; ConstIterator ci; }; } # 1 "/usr/include/boost/concept/detail/concept_undef.hpp" 1 3 4 # 274 "/usr/include/boost/iterator/iterator_concepts.hpp" 2 3 4 # 21 "/usr/include/boost/range/concepts.hpp" 2 3 4 # 1 "/usr/include/boost/range/value_type.hpp" 1 3 4 # 23 "/usr/include/boost/range/value_type.hpp" 3 4 namespace boost { template< class T > struct range_value : iterator_value< typename range_iterator::type > { }; } # 25 "/usr/include/boost/range/concepts.hpp" 2 3 4 # 1 "/usr/include/boost/range/detail/misc_concept.hpp" 1 3 4 # 13 "/usr/include/boost/range/detail/misc_concept.hpp" 3 4 namespace boost { namespace range_detail { template class SameTypeConcept { public: typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check21 __attribute__((unused)); ~SameTypeConcept() { same_type(a,b); } private: template void same_type(T,T) {} T1 a; T2 b; }; } } # 26 "/usr/include/boost/range/concepts.hpp" 2 3 4 # 60 "/usr/include/boost/range/concepts.hpp" 3 4 namespace boost { namespace range_detail { # 122 "/usr/include/boost/range/concepts.hpp" 3 4 template struct IncrementableIteratorConcept : CopyConstructible { typedef typename iterator_traversal::type traversal_category; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check132 __attribute__((unused)) ; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check134 __attribute__((unused)); ~IncrementableIteratorConcept() { ++i; (void)i++; } private: Iterator i; }; template struct SinglePassIteratorConcept : IncrementableIteratorConcept , EqualityComparable { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check154 __attribute__((unused)) ; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check156 __attribute__((unused)); ~SinglePassIteratorConcept() { Iterator i2(++i); boost::ignore_unused_variable_warning(i2); (void)(i++); typename boost::detail::iterator_traits::reference r1(*i); boost::ignore_unused_variable_warning(r1); typename boost::detail::iterator_traits::reference r2(*(++i)); boost::ignore_unused_variable_warning(r2); } private: Iterator i; }; template struct ForwardIteratorConcept : SinglePassIteratorConcept , DefaultConstructible { typedef typename boost::detail::iterator_traits::difference_type difference_type; enum { mpl_assertion_in_line_186 = sizeof( boost::mpl::assertion_failed( boost::mpl::assert_arg( (void (*) (is_integral))0, 1 ) ) ) }; enum { mpl_assert_rel_value187 = (std::numeric_limits::is_signed == true) }; enum { mpl_assertion_in_line_187 = sizeof( boost::mpl::assertion_failed( (boost::mpl::failed ************ ( boost::mpl::assert_relation< boost::mpl::assert_::relations( sizeof( boost::mpl::assert_::arg == boost::mpl::assert_::arg ) ) , std::numeric_limits::is_signed , true >::************)) 0 ) ) }; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check193 __attribute__((unused)) ; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check195 __attribute__((unused)); ~ForwardIteratorConcept() { Iterator i2(i++); boost::ignore_unused_variable_warning(i2); typename boost::detail::iterator_traits::reference r(*(i++)); boost::ignore_unused_variable_warning(r); } private: Iterator i; }; template struct BidirectionalIteratorConcept : ForwardIteratorConcept { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check220 __attribute__((unused)) ; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check222 __attribute__((unused)); ~BidirectionalIteratorConcept() { --i; (void)i--; } private: Iterator i; }; template struct RandomAccessIteratorConcept : BidirectionalIteratorConcept { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check241 __attribute__((unused)) ; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check243 __attribute__((unused)); ~RandomAccessIteratorConcept() { i += n; i = i + n; i = n + i; i -= n; i = i - n; n = i - j; } private: typename RandomAccessIteratorConcept::difference_type n; Iterator i; Iterator j; }; } template struct SinglePassRangeConcept { typedef typename remove_reference::type Rng; typedef typename range_iterator< Rng const >::type const_iterator; typedef typename range_iterator::type iterator; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check277 __attribute__((unused)) ; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check280 __attribute__((unused)) ; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check282 __attribute__((unused)); ~SinglePassRangeConcept() { iterator i1 = boost::begin(*m_range); iterator i2 = boost::end(*m_range); boost::ignore_unused_variable_warning(i1); boost::ignore_unused_variable_warning(i2); const_constraints(*m_range); } private: void const_constraints(const Rng& const_range) { const_iterator ci1 = boost::begin(const_range); const_iterator ci2 = boost::end(const_range); boost::ignore_unused_variable_warning(ci1); boost::ignore_unused_variable_warning(ci2); } Rng* m_range; }; template struct ForwardRangeConcept : SinglePassRangeConcept { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check319 __attribute__((unused)); typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check320 __attribute__((unused)); }; template struct WriteableRangeConcept { typedef typename range_iterator::type iterator; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check330 __attribute__((unused)); ~WriteableRangeConcept() { *i = v; } private: iterator i; typename range_value::type v; }; template struct WriteableForwardRangeConcept : ForwardRangeConcept , WriteableRangeConcept { }; template struct BidirectionalRangeConcept : ForwardRangeConcept { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check353 __attribute__((unused)); typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check354 __attribute__((unused)); }; template struct WriteableBidirectionalRangeConcept : BidirectionalRangeConcept , WriteableRangeConcept { }; template struct RandomAccessRangeConcept : BidirectionalRangeConcept { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check371 __attribute__((unused)); typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check372 __attribute__((unused)); }; template struct WriteableRandomAccessRangeConcept : RandomAccessRangeConcept , WriteableRangeConcept { }; } # 21 "/usr/include/boost/range/size_type.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/make_unsigned.hpp" 1 3 4 # 29 "/usr/include/boost/type_traits/make_unsigned.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 2 3 4 # 30 "/usr/include/boost/type_traits/make_unsigned.hpp" 2 3 4 namespace boost { namespace detail { template struct make_unsigned_imp { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< (((::boost::type_traits::ice_or< ::boost::is_integral::value, ::boost::is_enum::value>::value)) == 0 ? false : true) >)> boost_static_assert_typedef_39 __attribute__((unused)) ; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< (((::boost::type_traits::ice_not< ::boost::is_same< typename remove_cv::type, bool>::value>::value)) == 0 ? false : true) >)> boost_static_assert_typedef_42 __attribute__((unused)) ; typedef typename remove_cv::type t_no_cv; typedef typename mpl::if_c< (::boost::type_traits::ice_and< ::boost::is_unsigned::value, ::boost::is_integral::value, ::boost::type_traits::ice_not< ::boost::is_same::value>::value, ::boost::type_traits::ice_not< ::boost::is_same::value>::value, ::boost::type_traits::ice_not< ::boost::is_same::value>::value >::value), T, typename mpl::if_c< (::boost::type_traits::ice_and< ::boost::is_integral::value, ::boost::type_traits::ice_not< ::boost::is_same::value>::value, ::boost::type_traits::ice_not< ::boost::is_same::value>::value, ::boost::type_traits::ice_not< ::boost::is_same::value>::value> ::value), typename mpl::if_< is_same, unsigned char, typename mpl::if_< is_same, unsigned short, typename mpl::if_< is_same, unsigned int, typename mpl::if_< is_same, unsigned long, typename mpl::if_c< sizeof(t_no_cv) == sizeof(boost::ulong_long_type), boost::ulong_long_type, boost::uint128_type >::type # 87 "/usr/include/boost/type_traits/make_unsigned.hpp" 3 4 >::type >::type >::type >::type, typename mpl::if_c< sizeof(t_no_cv) == sizeof(unsigned char), unsigned char, typename mpl::if_c< sizeof(t_no_cv) == sizeof(unsigned short), unsigned short, typename mpl::if_c< sizeof(t_no_cv) == sizeof(unsigned int), unsigned int, typename mpl::if_c< sizeof(t_no_cv) == sizeof(unsigned long), unsigned long, typename mpl::if_c< sizeof(t_no_cv) == sizeof(boost::ulong_long_type), boost::ulong_long_type, boost::uint128_type >::type # 119 "/usr/include/boost/type_traits/make_unsigned.hpp" 3 4 >::type >::type >::type >::type >::type >::type base_integer_type; typedef typename mpl::if_< is_const, typename add_const::type, base_integer_type >::type const_base_integer_type; typedef typename mpl::if_< is_volatile, typename add_volatile::type, const_base_integer_type >::type type; }; } template< typename T > struct make_unsigned { public: typedef typename boost::detail::make_unsigned_imp::type type; }; } # 1 "/usr/include/boost/type_traits/detail/type_trait_undef.hpp" 1 3 4 # 149 "/usr/include/boost/type_traits/make_unsigned.hpp" 2 3 4 # 24 "/usr/include/boost/range/size_type.hpp" 2 3 4 namespace boost { namespace detail { template class has_size_type { typedef char no_type; struct yes_type { char dummy[2]; }; template static yes_type test(typename C::size_type x); template static no_type test(...); public: static const bool value = sizeof(test(0)) == sizeof(yes_type); }; template struct range_size { typedef typename make_unsigned< typename range_difference::type >::type type; }; template struct range_size< C, typename ::boost::enable_if, void>::type > { typedef typename C::size_type type; }; } template< class T > struct range_size : detail::range_size { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check81 __attribute__((unused)); }; template< class T > struct range_size : detail::range_size { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_)>::failed> boost_concept_check90 __attribute__((unused)); }; } # 22 "/usr/include/boost/range/size.hpp" 2 3 4 # 1 "/usr/include/boost/range/detail/has_member_size.hpp" 1 3 4 # 18 "/usr/include/boost/range/detail/has_member_size.hpp" 3 4 # 1 "/usr/include/boost/cstdint.hpp" 1 3 4 # 103 "/usr/include/boost/cstdint.hpp" 3 4 namespace boost { using ::int8_t; using ::int_least8_t; using ::int_fast8_t; using ::uint8_t; using ::uint_least8_t; using ::uint_fast8_t; using ::int16_t; using ::int_least16_t; using ::int_fast16_t; using ::uint16_t; using ::uint_least16_t; using ::uint_fast16_t; using ::int32_t; using ::int_least32_t; using ::int_fast32_t; using ::uint32_t; using ::uint_least32_t; using ::uint_fast32_t; using ::int64_t; using ::int_least64_t; using ::int_fast64_t; using ::uint64_t; using ::uint_least64_t; using ::uint_fast64_t; using ::intmax_t; using ::uintmax_t; } # 379 "/usr/include/boost/cstdint.hpp" 3 4 namespace boost { using ::intptr_t; using ::uintptr_t; } # 19 "/usr/include/boost/range/detail/has_member_size.hpp" 2 3 4 namespace boost { namespace range_detail { template class has_member_size_impl { private: template class check { }; template static boost::uint8_t f(check*); template static boost::uint16_t f(...); public: static const bool value = (sizeof(f(0)) == sizeof(boost::uint8_t)); typedef typename mpl::if_c< (sizeof(f(0)) == sizeof(boost::uint8_t)), mpl::true_, mpl::false_ >::type type; }; template struct has_member_size { typedef typename mpl::and_< typename is_class::type, typename has_member_size_impl::type >::type type; static const bool value = is_class::value && has_member_size_impl::value; }; } } # 23 "/usr/include/boost/range/size.hpp" 2 3 4 # 1 "/usr/include/boost/assert.hpp" 1 3 4 # 54 "/usr/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 64 "/usr/include/assert.h" 3 4 extern "C" { extern void __assert_fail (const char *__assertion, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert_perror_fail (int __errnum, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert (const char *__assertion, const char *__file, int __line) throw () __attribute__ ((__noreturn__)); } # 55 "/usr/include/boost/assert.hpp" 2 3 4 # 24 "/usr/include/boost/range/size.hpp" 2 3 4 # 1 "/usr/include/boost/cstdint.hpp" 1 3 4 # 25 "/usr/include/boost/range/size.hpp" 2 3 4 namespace boost { namespace range_detail { template inline typename ::boost::enable_if< has_member_size, typename range_size::type >::type range_calculate_size(const SinglePassRange& rng) { return rng.size(); } template inline typename disable_if< has_member_size, typename range_size::type >::type range_calculate_size(const SinglePassRange& rng) { return std::distance(boost::begin(rng), boost::end(rng)); } } template inline typename range_size::type size(const SinglePassRange& rng) { using namespace range_detail; return range_calculate_size(rng); } } # 21 "/usr/include/boost/range/functions.hpp" 2 3 4 # 1 "/usr/include/boost/range/distance.hpp" 1 3 4 # 22 "/usr/include/boost/range/distance.hpp" 3 4 namespace boost { template< class T > inline typename range_difference::type distance( const T& r ) { return std::distance( boost::begin( r ), boost::end( r ) ); } } # 22 "/usr/include/boost/range/functions.hpp" 2 3 4 # 1 "/usr/include/boost/range/empty.hpp" 1 3 4 # 22 "/usr/include/boost/range/empty.hpp" 3 4 namespace boost { template< class T > inline bool empty( const T& r ) { return boost::begin( r ) == boost::end( r ); } } # 23 "/usr/include/boost/range/functions.hpp" 2 3 4 # 39 "/usr/include/boost/range/iterator_range_core.hpp" 2 3 4 # 1 "/usr/include/boost/range/has_range_iterator.hpp" 1 3 4 # 23 "/usr/include/boost/range/has_range_iterator.hpp" 3 4 namespace boost { namespace range_detail { template< typename T, typename fallback_ = boost::mpl::bool_ > struct has_type { struct gcc_3_2_wknd { template< typename U > static boost::mpl::aux::yes_tag test( boost::mpl::aux::type_wrapper const volatile* , boost::mpl::aux::type_wrapper* = 0 ); static boost::mpl::aux::no_tag test(...); }; typedef boost::mpl::aux::type_wrapper t_; static const bool value = sizeof(gcc_3_2_wknd::test(static_cast(0))) == sizeof(boost::mpl::aux::yes_tag); typedef boost::mpl::bool_ type; }; template struct has_range_iterator_impl : boost::mpl::false_ { }; template struct has_range_iterator_impl< T, typename ::boost::enable_if< typename mpl::eval_if, has_type::type> >, has_type > >::type >::type > : boost::mpl::true_ { }; template struct has_range_const_iterator_impl : boost::mpl::false_ { }; template struct has_range_const_iterator_impl< T, typename ::boost::enable_if< has_type > >::type > : boost::mpl::true_ { }; } template struct has_range_iterator : range_detail::has_range_iterator_impl< typename remove_reference::type> {}; template struct has_range_const_iterator : range_detail::has_range_const_iterator_impl< typename remove_reference::type> {}; } # 42 "/usr/include/boost/range/iterator_range_core.hpp" 2 3 4 # 1 "/usr/include/boost/range/algorithm/equal.hpp" 1 3 4 # 17 "/usr/include/boost/range/algorithm/equal.hpp" 3 4 namespace boost { namespace range_detail { template< class SinglePassTraversalReadableIterator1, class SinglePassTraversalReadableIterator2, class IteratorCategoryTag1, class IteratorCategoryTag2 > inline bool equal_impl( SinglePassTraversalReadableIterator1 first1, SinglePassTraversalReadableIterator1 last1, SinglePassTraversalReadableIterator2 first2, SinglePassTraversalReadableIterator2 last2, IteratorCategoryTag1, IteratorCategoryTag2 ) { for (;;) { if (first1 == last1) return first2 == last2; if (first2 == last2) return false; if (*first1 != *first2) break; ++first1; ++first2; } return false; } template< class SinglePassTraversalReadableIterator1, class SinglePassTraversalReadableIterator2, class IteratorCategoryTag1, class IteratorCategoryTag2, class BinaryPredicate > inline bool equal_impl( SinglePassTraversalReadableIterator1 first1, SinglePassTraversalReadableIterator1 last1, SinglePassTraversalReadableIterator2 first2, SinglePassTraversalReadableIterator2 last2, BinaryPredicate pred, IteratorCategoryTag1, IteratorCategoryTag2 ) { for (;;) { if (first1 == last1) return first2 == last2; if (first2 == last2) return false; if (!pred(*first1, *first2)) break; ++first1; ++first2; } return false; } template< class RandomAccessTraversalReadableIterator1, class RandomAccessTraversalReadableIterator2 > inline bool equal_impl( RandomAccessTraversalReadableIterator1 first1, RandomAccessTraversalReadableIterator1 last1, RandomAccessTraversalReadableIterator2 first2, RandomAccessTraversalReadableIterator2 last2, std::random_access_iterator_tag, std::random_access_iterator_tag ) { return ((last1 - first1) == (last2 - first2)) && std::equal(first1, last1, first2); } template< class RandomAccessTraversalReadableIterator1, class RandomAccessTraversalReadableIterator2, class BinaryPredicate > inline bool equal_impl( RandomAccessTraversalReadableIterator1 first1, RandomAccessTraversalReadableIterator1 last1, RandomAccessTraversalReadableIterator2 first2, RandomAccessTraversalReadableIterator2 last2, BinaryPredicate pred, std::random_access_iterator_tag, std::random_access_iterator_tag ) { return ((last1 - first1) == (last2 - first2)) && std::equal(first1, last1, first2, pred); } template< class SinglePassTraversalReadableIterator1, class SinglePassTraversalReadableIterator2 > inline bool equal( SinglePassTraversalReadableIterator1 first1, SinglePassTraversalReadableIterator1 last1, SinglePassTraversalReadableIterator2 first2, SinglePassTraversalReadableIterator2 last2 ) { typename std::iterator_traits< SinglePassTraversalReadableIterator1 >::iterator_category tag1; typename std::iterator_traits< SinglePassTraversalReadableIterator2 >::iterator_category tag2; return equal_impl(first1, last1, first2, last2, tag1, tag2); } template< class SinglePassTraversalReadableIterator1, class SinglePassTraversalReadableIterator2, class BinaryPredicate > inline bool equal( SinglePassTraversalReadableIterator1 first1, SinglePassTraversalReadableIterator1 last1, SinglePassTraversalReadableIterator2 first2, SinglePassTraversalReadableIterator2 last2, BinaryPredicate pred ) { typename std::iterator_traits< SinglePassTraversalReadableIterator1 >::iterator_category tag1; typename std::iterator_traits< SinglePassTraversalReadableIterator2 >::iterator_category tag2; return equal_impl(first1, last1, first2, last2, pred, tag1, tag2); } } namespace range { # 171 "/usr/include/boost/range/algorithm/equal.hpp" 3 4 template< class SinglePassRange1, class SinglePassRange2 > inline bool equal( const SinglePassRange1& rng1, const SinglePassRange2& rng2 ) { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_ )>::failed> boost_concept_check174 __attribute__((unused)); typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_ )>::failed> boost_concept_check175 __attribute__((unused)); return ::boost::range_detail::equal( ::boost::begin(rng1), ::boost::end(rng1), ::boost::begin(rng2), ::boost::end(rng2) ); } template< class SinglePassRange1, class SinglePassRange2, class BinaryPredicate > inline bool equal( const SinglePassRange1& rng1, const SinglePassRange2& rng2, BinaryPredicate pred ) { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_ )>::failed> boost_concept_check187 __attribute__((unused)); typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_ )>::failed> boost_concept_check188 __attribute__((unused)); return ::boost::range_detail::equal( ::boost::begin(rng1), ::boost::end(rng1), ::boost::begin(rng2), ::boost::end(rng2), pred); } } using ::boost::range::equal; } # 43 "/usr/include/boost/range/iterator_range_core.hpp" 2 3 4 # 1 "/usr/include/boost/range/detail/safe_bool.hpp" 1 3 4 # 16 "/usr/include/boost/range/detail/safe_bool.hpp" 3 4 namespace boost { namespace range_detail { template class safe_bool { public: typedef safe_bool this_type; # 56 "/usr/include/boost/range/detail/safe_bool.hpp" 3 4 typedef DataMemberPtr unspecified_bool_type; static unspecified_bool_type to_unspecified_bool(const bool x, DataMemberPtr p) { return x ? p : 0; } private: safe_bool(); safe_bool(const safe_bool&); void operator=(const safe_bool&); ~safe_bool(); }; } } # 44 "/usr/include/boost/range/iterator_range_core.hpp" 2 3 4 # 56 "/usr/include/boost/range/iterator_range_core.hpp" 3 4 namespace boost { namespace iterator_range_detail { template struct iterator_range_impl { template< class ForwardRange > static IteratorT adl_begin( ForwardRange& r ) { return static_cast( boost::begin( r ) ); } template< class ForwardRange > static IteratorT adl_end( ForwardRange& r ) { return static_cast( boost::end( r ) ); } }; template< class Left, class Right > inline bool less_than( const Left& l, const Right& r ) { return std::lexicographical_compare( boost::begin(l), boost::end(l), boost::begin(r), boost::end(r) ); } template< class Left, class Right > inline bool greater_than( const Left& l, const Right& r ) { return iterator_range_detail::less_than(r,l); } template< class Left, class Right > inline bool less_or_equal_than( const Left& l, const Right& r ) { return !iterator_range_detail::less_than(r,l); } template< class Left, class Right > inline bool greater_or_equal_than( const Left& l, const Right& r ) { return !iterator_range_detail::less_than(l,r); } template< class Left, class Right > inline bool equal(const Left& l, const Right& r) { return boost::equal(l, r); } struct range_tag { }; struct const_range_tag { }; struct iterator_range_tag { }; typedef char (&incrementable_t)[1]; typedef char (&bidirectional_t)[2]; typedef char (&random_access_t)[3]; incrementable_t test_traversal_tag(boost::incrementable_traversal_tag); bidirectional_t test_traversal_tag(boost::bidirectional_traversal_tag); random_access_t test_traversal_tag(boost::random_access_traversal_tag); template struct pure_iterator_traversal_impl { typedef boost::incrementable_traversal_tag type; }; template<> struct pure_iterator_traversal_impl { typedef boost::bidirectional_traversal_tag type; }; template<> struct pure_iterator_traversal_impl { typedef boost::random_access_traversal_tag type; }; template struct pure_iterator_traversal { typedef typename iterator_traversal::type traversal_t; static const std::size_t traversal_i = sizeof(iterator_range_detail::test_traversal_tag((traversal_t()))) ; typedef typename pure_iterator_traversal_impl::type type; }; template class iterator_range_base : public iterator_range_tag { typedef range_detail::safe_bool< IteratorT iterator_range_base::* > safe_bool_t; typedef iterator_range_base type; protected: typedef iterator_range_impl impl; public: typedef typename safe_bool_t::unspecified_bool_type unspecified_bool_type; typedef typename iterator_value::type value_type; typedef typename iterator_difference::type difference_type; typedef std::size_t size_type; typedef typename iterator_reference::type reference; typedef IteratorT const_iterator; typedef IteratorT iterator; protected: iterator_range_base() : m_Begin() , m_End() { } template iterator_range_base(Iterator Begin, Iterator End) : m_Begin(Begin) , m_End(End) { } public: IteratorT begin() const { return m_Begin; } IteratorT end() const { return m_End; } bool empty() const { return m_Begin == m_End; } operator unspecified_bool_type() const { return safe_bool_t::to_unspecified_bool( m_Begin != m_End, &iterator_range_base::m_Begin); } bool operator!() const { return empty(); } bool equal(const iterator_range_base& r) const { return m_Begin == r.m_Begin && m_End == r.m_End; } reference front() const { ((!empty()) ? static_cast (0) : __assert_fail ("!empty()", "/usr/include/boost/range/iterator_range_core.hpp", 254, __PRETTY_FUNCTION__)); return *m_Begin; } void drop_front() { ((!empty()) ? static_cast (0) : __assert_fail ("!empty()", "/usr/include/boost/range/iterator_range_core.hpp", 260, __PRETTY_FUNCTION__)); ++m_Begin; } void drop_front(difference_type n) { ((n >= difference_type()) ? static_cast (0) : __assert_fail ("n >= difference_type()", "/usr/include/boost/range/iterator_range_core.hpp", 266, __PRETTY_FUNCTION__)); std::advance(this->m_Begin, n); } void pop_front() { drop_front(); } protected: template void assign(Iterator first, Iterator last) { m_Begin = first; m_End = last; } template void assign(const SinglePassRange& r) { m_Begin = impl::adl_begin(r); m_End = impl::adl_end(r); } template void assign(SinglePassRange& r) { m_Begin = impl::adl_begin(r); m_End = impl::adl_end(r); } IteratorT m_Begin; IteratorT m_End; }; template class iterator_range_base : public iterator_range_base { typedef iterator_range_base base_type; protected: iterator_range_base() { } template iterator_range_base(Iterator first, Iterator last) : base_type(first, last) { } public: typedef typename base_type::difference_type difference_type; typedef typename base_type::reference reference; reference back() const { ((!this->empty()) ? static_cast (0) : __assert_fail ("!this->empty()", "/usr/include/boost/range/iterator_range_core.hpp", 322, __PRETTY_FUNCTION__)); return *boost::prior(this->m_End); } void drop_back() { ((!this->empty()) ? static_cast (0) : __assert_fail ("!this->empty()", "/usr/include/boost/range/iterator_range_core.hpp", 328, __PRETTY_FUNCTION__)); --this->m_End; } void drop_back(difference_type n) { ((n >= difference_type()) ? static_cast (0) : __assert_fail ("n >= difference_type()", "/usr/include/boost/range/iterator_range_core.hpp", 334, __PRETTY_FUNCTION__)); std::advance(this->m_End, -n); } void pop_back() { drop_back(); } }; template class iterator_range_base : public iterator_range_base { typedef iterator_range_base< IteratorT, bidirectional_traversal_tag> base_type; public: typedef typename boost::mpl::if_< boost::mpl::or_< boost::is_abstract< typename base_type::value_type >, boost::is_array< typename base_type::value_type >, boost::is_function< typename base_type::value_type > >, typename base_type::reference, typename base_type::value_type >::type abstract_value_type; typedef typename base_type::difference_type difference_type; typedef typename base_type::size_type size_type; typedef typename base_type::reference reference; protected: iterator_range_base() { } template iterator_range_base(Iterator first, Iterator last) : base_type(first, last) { } public: reference operator[](difference_type at) const { ((at >= 0) ? static_cast (0) : __assert_fail ("at >= 0", "/usr/include/boost/range/iterator_range_core.hpp", 388, __PRETTY_FUNCTION__)); ((static_cast(at) < size()) ? static_cast (0) : __assert_fail ("static_cast(at) < size()", "/usr/include/boost/range/iterator_range_core.hpp", 389, __PRETTY_FUNCTION__)); return this->m_Begin[at]; } abstract_value_type operator()(difference_type at) const { ((at >= 0) ? static_cast (0) : __assert_fail ("at >= 0", "/usr/include/boost/range/iterator_range_core.hpp", 400, __PRETTY_FUNCTION__)); ((static_cast(at) < size()) ? static_cast (0) : __assert_fail ("static_cast(at) < size()", "/usr/include/boost/range/iterator_range_core.hpp", 401, __PRETTY_FUNCTION__)); return this->m_Begin[at]; } typename base_type::size_type size() const { return this->m_End - this->m_Begin; } }; } # 432 "/usr/include/boost/range/iterator_range_core.hpp" 3 4 template class iterator_range : public iterator_range_detail::iterator_range_base< IteratorT, typename iterator_range_detail::pure_iterator_traversal::type > { typedef iterator_range_detail::iterator_range_base< IteratorT, typename iterator_range_detail::pure_iterator_traversal::type > base_type; template struct is_compatible_range : is_convertible< typename mpl::eval_if< has_range_iterator, range_iterator, mpl::identity >::type, typename base_type::iterator > { }; protected: typedef iterator_range_detail::iterator_range_impl impl; public: typedef iterator_range type; iterator_range() { } template iterator_range(Iterator first, Iterator last) : base_type(first, last) { } template iterator_range( const SinglePassRange& r, typename ::boost::enable_if< is_compatible_range >::type* = 0 ) : base_type(impl::adl_begin(r), impl::adl_end(r)) { } template iterator_range( SinglePassRange& r, typename ::boost::enable_if< is_compatible_range >::type* = 0 ) : base_type(impl::adl_begin(r), impl::adl_end(r)) { } template iterator_range(const SinglePassRange& r, iterator_range_detail::const_range_tag) : base_type(impl::adl_begin(r), impl::adl_end(r)) { } template iterator_range(SinglePassRange& r, iterator_range_detail::range_tag) : base_type(impl::adl_begin(r), impl::adl_end(r)) { } template iterator_range& operator=(const iterator_range& other) { this->assign(other.begin(), other.end()); return *this; } template iterator_range& operator=(iterator_range& other) { this->assign(other.begin(), other.end()); return *this; } template iterator_range& operator=(SinglePassRange& r) { this->assign(r); return *this; } template iterator_range& operator=(const SinglePassRange& r) { this->assign(r); return *this; } iterator_range& advance_begin( typename base_type::difference_type n) { std::advance(this->m_Begin, n); return *this; } iterator_range& advance_end( typename base_type::difference_type n) { std::advance(this->m_End, n); return *this; } protected: typedef iterator_range iterator_range_; }; template< class IteratorT, class ForwardRange > inline typename boost::enable_if< mpl::not_ >, bool >::type operator==( const ForwardRange& l, const iterator_range& r ) { return boost::equal( l, r ); } template< class IteratorT, class ForwardRange > inline typename boost::enable_if< mpl::not_ >, bool >::type operator!=( const ForwardRange& l, const iterator_range& r ) { return !boost::equal( l, r ); } template< class IteratorT, class ForwardRange > inline typename boost::enable_if< mpl::not_ >, bool >::type operator<( const ForwardRange& l, const iterator_range& r ) { return iterator_range_detail::less_than( l, r ); } template< class IteratorT, class ForwardRange > inline typename boost::enable_if< mpl::not_ >, bool >::type operator<=( const ForwardRange& l, const iterator_range& r ) { return iterator_range_detail::less_or_equal_than( l, r ); } template< class IteratorT, class ForwardRange > inline typename boost::enable_if< mpl::not_ >, bool >::type operator>( const ForwardRange& l, const iterator_range& r ) { return iterator_range_detail::greater_than( l, r ); } template< class IteratorT, class ForwardRange > inline typename boost::enable_if< mpl::not_ >, bool >::type operator>=( const ForwardRange& l, const iterator_range& r ) { return iterator_range_detail::greater_or_equal_than( l, r ); } template< class Iterator1T, class Iterator2T > inline bool operator==( const iterator_range& l, const iterator_range& r ) { return boost::equal( l, r ); } template< class IteratorT, class ForwardRange > inline typename boost::enable_if< mpl::not_ >, bool >::type operator==( const iterator_range& l, const ForwardRange& r ) { return boost::equal( l, r ); } template< class Iterator1T, class Iterator2T > inline bool operator!=( const iterator_range& l, const iterator_range& r ) { return !boost::equal( l, r ); } template< class IteratorT, class ForwardRange > inline typename boost::enable_if< mpl::not_ >, bool >::type operator!=( const iterator_range& l, const ForwardRange& r ) { return !boost::equal( l, r ); } template< class Iterator1T, class Iterator2T > inline bool operator<( const iterator_range& l, const iterator_range& r ) { return iterator_range_detail::less_than( l, r ); } template< class IteratorT, class ForwardRange > inline typename boost::enable_if< mpl::not_ >, bool >::type operator<( const iterator_range& l, const ForwardRange& r ) { return iterator_range_detail::less_than( l, r ); } template< class Iterator1T, class Iterator2T > inline bool operator<=( const iterator_range& l, const iterator_range& r ) { return iterator_range_detail::less_or_equal_than( l, r ); } template< class IteratorT, class ForwardRange > inline typename boost::enable_if< mpl::not_ >, bool >::type operator<=( const iterator_range& l, const ForwardRange& r ) { return iterator_range_detail::less_or_equal_than( l, r ); } template< class Iterator1T, class Iterator2T > inline bool operator>( const iterator_range& l, const iterator_range& r ) { return iterator_range_detail::greater_than( l, r ); } template< class IteratorT, class ForwardRange > inline typename boost::enable_if< mpl::not_ >, bool >::type operator>( const iterator_range& l, const ForwardRange& r ) { return iterator_range_detail::greater_than( l, r ); } template< class Iterator1T, class Iterator2T > inline bool operator>=( const iterator_range& l, const iterator_range& r ) { return iterator_range_detail::greater_or_equal_than( l, r ); } template< class IteratorT, class ForwardRange > inline typename boost::enable_if< mpl::not_ >, bool >::type operator>=( const iterator_range& l, const ForwardRange& r ) { return iterator_range_detail::greater_or_equal_than( l, r ); } # 743 "/usr/include/boost/range/iterator_range_core.hpp" 3 4 template< typename IteratorT > inline iterator_range< IteratorT > make_iterator_range( IteratorT Begin, IteratorT End ) { return iterator_range( Begin, End ); } template inline iterator_range make_iterator_range_n(IteratorT first, IntegerT n) { return iterator_range(first, boost::next(first, n)); } # 773 "/usr/include/boost/range/iterator_range_core.hpp" 3 4 template< class ForwardRange > inline iterator_range< typename range_iterator::type > make_iterator_range( ForwardRange& r ) { return iterator_range< typename range_iterator::type > ( r, iterator_range_detail::range_tag() ); } template< class ForwardRange > inline iterator_range< typename range_iterator::type > make_iterator_range( const ForwardRange& r ) { return iterator_range< typename range_iterator::type > ( r, iterator_range_detail::const_range_tag() ); } namespace iterator_range_detail { template< class Range > inline iterator_range< typename range_iterator::type > make_range_impl( Range& r, typename range_difference::type advance_begin, typename range_difference::type advance_end ) { typename range_iterator::type new_begin = boost::begin( r ), new_end = boost::end( r ); std::advance( new_begin, advance_begin ); std::advance( new_end, advance_end ); return make_iterator_range( new_begin, new_end ); } } # 828 "/usr/include/boost/range/iterator_range_core.hpp" 3 4 template< class Range > inline iterator_range< typename range_iterator::type > make_iterator_range( Range& r, typename range_difference::type advance_begin, typename range_difference::type advance_end ) { return iterator_range_detail::make_range_impl( r, advance_begin, advance_end ); } template< class Range > inline iterator_range< typename range_iterator::type > make_iterator_range( const Range& r, typename range_difference::type advance_begin, typename range_difference::type advance_end ) { return iterator_range_detail::make_range_impl( r, advance_begin, advance_end ); } # 856 "/usr/include/boost/range/iterator_range_core.hpp" 3 4 template< typename SeqT, typename Range > inline SeqT copy_range( const Range& r ) { return SeqT( boost::begin( r ), boost::end( r ) ); } } # 31 "/usr/include/boost/lexical_cast.hpp" 2 3 4 # 1 "/usr/include/boost/lexical_cast/bad_lexical_cast.hpp" 1 3 4 # 23 "/usr/include/boost/lexical_cast/bad_lexical_cast.hpp" 3 4 # 1 "/usr/include/c++/5.0.0/typeinfo" 1 3 4 # 32 "/usr/include/c++/5.0.0/typeinfo" 3 4 # 33 "/usr/include/c++/5.0.0/typeinfo" 3 #pragma GCC visibility push(default) extern "C++" { namespace __cxxabiv1 { class __class_type_info; } # 80 "/usr/include/c++/5.0.0/typeinfo" 3 namespace std { class type_info { public: virtual ~type_info(); const char* name() const { return __name[0] == '*' ? __name + 1 : __name; } # 115 "/usr/include/c++/5.0.0/typeinfo" 3 bool before(const type_info& __arg) const { return (__name[0] == '*' && __arg.__name[0] == '*') ? __name < __arg.__name : __builtin_strcmp (__name, __arg.__name) < 0; } bool operator==(const type_info& __arg) const { return ((__name == __arg.__name) || (__name[0] != '*' && __builtin_strcmp (__name, __arg.__name) == 0)); } # 136 "/usr/include/c++/5.0.0/typeinfo" 3 bool operator!=(const type_info& __arg) const { return !operator==(__arg); } # 152 "/usr/include/c++/5.0.0/typeinfo" 3 virtual bool __is_pointer_p() const; virtual bool __is_function_p() const; virtual bool __do_catch(const type_info *__thr_type, void **__thr_obj, unsigned __outer) const; virtual bool __do_upcast(const __cxxabiv1::__class_type_info *__target, void **__obj_ptr) const; protected: const char *__name; explicit type_info(const char *__n): __name(__n) { } private: type_info& operator=(const type_info&); type_info(const type_info&); }; class bad_cast : public exception { public: bad_cast() throw() { } virtual ~bad_cast() throw(); virtual const char* what() const throw(); }; class bad_typeid : public exception { public: bad_typeid () throw() { } virtual ~bad_typeid() throw(); virtual const char* what() const throw(); }; } } #pragma GCC visibility pop # 27 "/usr/include/boost/lexical_cast/bad_lexical_cast.hpp" 2 3 4 # 1 "/usr/include/boost/throw_exception.hpp" 1 3 4 # 5 "/usr/include/boost/throw_exception.hpp" 3 # 42 "/usr/include/boost/throw_exception.hpp" 3 # 1 "/usr/include/boost/exception/exception.hpp" 1 3 4 # 9 "/usr/include/boost/exception/exception.hpp" 3 4 # 10 "/usr/include/boost/exception/exception.hpp" 3 namespace boost { namespace exception_detail { template class refcount_ptr { public: refcount_ptr(): px_(0) { } ~refcount_ptr() { release(); } refcount_ptr( refcount_ptr const & x ): px_(x.px_) { add_ref(); } refcount_ptr & operator=( refcount_ptr const & x ) { adopt(x.px_); return *this; } void adopt( T * px ) { release(); px_=px; add_ref(); } T * get() const { return px_; } private: T * px_; void add_ref() { if( px_ ) px_->add_ref(); } void release() { if( px_ && px_->release() ) px_=0; } }; } template class error_info; typedef error_info throw_function; typedef error_info throw_file; typedef error_info throw_line; template <> class error_info { public: typedef char const * value_type; value_type v_; explicit error_info( value_type v ): v_(v) { } }; template <> class error_info { public: typedef char const * value_type; value_type v_; explicit error_info( value_type v ): v_(v) { } }; template <> class error_info { public: typedef int value_type; value_type v_; explicit error_info( value_type v ): v_(v) { } }; #pragma GCC visibility push (default) class exception; #pragma GCC visibility pop template class shared_ptr; namespace exception_detail { class error_info_base; struct type_info_; struct error_info_container { virtual char const * diagnostic_information( char const * ) const = 0; virtual shared_ptr get( type_info_ const & ) const = 0; virtual void set( shared_ptr const &, type_info_ const & ) = 0; virtual void add_ref() const = 0; virtual bool release() const = 0; virtual refcount_ptr clone() const = 0; protected: ~error_info_container() throw() { } }; template struct get_info; template <> struct get_info; template <> struct get_info; template <> struct get_info; char const * get_diagnostic_information( exception const &, char const * ); void copy_boost_exception( exception *, exception const * ); template E const & set_info( E const &, error_info const & ); template E const & set_info( E const &, throw_function const & ); template E const & set_info( E const &, throw_file const & ); template E const & set_info( E const &, throw_line const & ); } #pragma GCC visibility push (default) class exception { public: template void set( typename Tag::type const & ); template typename Tag::type const * get() const; protected: exception(): throw_function_(0), throw_file_(0), throw_line_(-1) { } # 237 "/usr/include/boost/exception/exception.hpp" 3 virtual ~exception() throw() = 0 ; private: template friend E const & exception_detail::set_info( E const &, throw_function const & ); template friend E const & exception_detail::set_info( E const &, throw_file const & ); template friend E const & exception_detail::set_info( E const &, throw_line const & ); template friend E const & exception_detail::set_info( E const &, error_info const & ); friend char const * exception_detail::get_diagnostic_information( exception const &, char const * ); template friend struct exception_detail::get_info; friend struct exception_detail::get_info; friend struct exception_detail::get_info; friend struct exception_detail::get_info; friend void exception_detail::copy_boost_exception( exception *, exception const * ); mutable exception_detail::refcount_ptr data_; mutable char const * throw_function_; mutable char const * throw_file_; mutable int throw_line_; }; #pragma GCC visibility pop inline exception:: ~exception() throw() { } namespace exception_detail { template E const & set_info( E const & x, throw_function const & y ) { x.throw_function_=y.v_; return x; } template E const & set_info( E const & x, throw_file const & y ) { x.throw_file_=y.v_; return x; } template E const & set_info( E const & x, throw_line const & y ) { x.throw_line_=y.v_; return x; } } namespace exception_detail { #pragma GCC visibility push (default) template struct error_info_injector: public T, public exception { explicit error_info_injector( T const & x ): T(x) { } ~error_info_injector() throw() { } }; #pragma GCC visibility pop struct large_size { char c[256]; }; large_size dispatch_boost_exception( exception const * ); struct small_size { }; small_size dispatch_boost_exception( void const * ); template struct enable_error_info_helper; template struct enable_error_info_helper { typedef T type; }; template struct enable_error_info_helper { typedef error_info_injector type; }; template struct enable_error_info_return_type { typedef typename enable_error_info_helper(0)))>::type type; }; } template inline typename exception_detail::enable_error_info_return_type::type enable_error_info( T const & x ) { typedef typename exception_detail::enable_error_info_return_type::type rt; return rt(x); } namespace exception_detail { #pragma GCC visibility push (default) class clone_base { public: virtual clone_base const * clone() const = 0; virtual void rethrow() const = 0; virtual ~clone_base() throw() { } }; #pragma GCC visibility pop inline void copy_boost_exception( exception * a, exception const * b ) { refcount_ptr data; if( error_info_container * d=b->data_.get() ) data = d->clone(); a->throw_file_ = b->throw_file_; a->throw_line_ = b->throw_line_; a->throw_function_ = b->throw_function_; a->data_ = data; } inline void copy_boost_exception( void *, void const * ) { } template class clone_impl: public T, public virtual clone_base { struct clone_tag { }; clone_impl( clone_impl const & x, clone_tag ): T(x) { copy_boost_exception(this,&x); } public: explicit clone_impl( T const & x ): T(x) { copy_boost_exception(this,&x); } ~clone_impl() throw() { } private: clone_base const * clone() const { return new clone_impl(*this,clone_tag()); } void rethrow() const { throw*this; } }; } template inline exception_detail::clone_impl enable_current_exception( T const & x ) { return exception_detail::clone_impl(x); } } # 43 "/usr/include/boost/throw_exception.hpp" 2 3 # 1 "/usr/include/boost/current_function.hpp" 1 3 4 # 22 "/usr/include/boost/current_function.hpp" 3 4 namespace boost { namespace detail { inline void current_function_helper() { # 65 "/usr/include/boost/current_function.hpp" 3 4 } } } # 45 "/usr/include/boost/throw_exception.hpp" 2 3 namespace boost { inline void throw_exception_assert_compatibility( std::exception const & ) { } template __attribute__ ((__noreturn__)) inline void throw_exception( E const & e ) { throw_exception_assert_compatibility(e); throw enable_current_exception(enable_error_info(e)); } namespace exception_detail { template __attribute__ ((__noreturn__)) void throw_exception_( E const & x, char const * current_function, char const * file, int line ) { boost::throw_exception( set_info( set_info( set_info( enable_error_info(x), throw_function(current_function)), throw_file(file)), throw_line(line))); } } } # 29 "/usr/include/boost/lexical_cast/bad_lexical_cast.hpp" 2 3 4 namespace boost { class __attribute__((__visibility__("default"))) bad_lexical_cast : public std::bad_cast { public: bad_lexical_cast() : source(&typeid(void)), target(&typeid(void)) {} virtual const char *what() const throw() { return "bad lexical cast: " "source type value could not be interpreted as target"; } virtual ~bad_lexical_cast() throw() {} bad_lexical_cast( const std::type_info &source_type_arg, const std::type_info &target_type_arg) : source(&source_type_arg), target(&target_type_arg) {} const std::type_info &source_type() const { return *source; } const std::type_info &target_type() const { return *target; } private: const std::type_info *source; const std::type_info *target; }; namespace conversion { namespace detail { template inline void throw_bad_cast() { boost::throw_exception(bad_lexical_cast(typeid(S), typeid(T))); } }} } # 32 "/usr/include/boost/lexical_cast.hpp" 2 3 4 # 1 "/usr/include/boost/lexical_cast/try_lexical_convert.hpp" 1 3 4 # 23 "/usr/include/boost/lexical_cast/try_lexical_convert.hpp" 3 4 # 32 "/usr/include/boost/lexical_cast/try_lexical_convert.hpp" 3 4 # 1 "/usr/include/boost/lexical_cast/detail/is_character.hpp" 1 3 4 # 23 "/usr/include/boost/lexical_cast/detail/is_character.hpp" 3 4 namespace boost { namespace detail { template < typename T > struct is_character { typedef boost::type_traits::ice_or< boost::is_same< T, char >::value, boost::is_same< T, wchar_t >::value, boost::is_same< T, unsigned char >::value, boost::is_same< T, signed char >::value > result_type; static const bool value = (result_type::value); }; } } # 33 "/usr/include/boost/lexical_cast/try_lexical_convert.hpp" 2 3 4 # 1 "/usr/include/boost/lexical_cast/detail/converter_numeric.hpp" 1 3 4 # 23 "/usr/include/boost/lexical_cast/detail/converter_numeric.hpp" 3 4 # 35 "/usr/include/boost/lexical_cast/detail/converter_numeric.hpp" 3 4 # 1 "/usr/include/boost/numeric/conversion/cast.hpp" 1 3 4 # 32 "/usr/include/boost/numeric/conversion/cast.hpp" 3 4 # 1 "/usr/include/boost/type.hpp" 1 3 4 # 9 "/usr/include/boost/type.hpp" 3 4 namespace boost { template struct type {}; } # 33 "/usr/include/boost/numeric/conversion/cast.hpp" 2 3 4 # 1 "/usr/include/boost/numeric/conversion/converter.hpp" 1 3 4 # 13 "/usr/include/boost/numeric/conversion/converter.hpp" 3 4 # 1 "/usr/include/boost/numeric/conversion/conversion_traits.hpp" 1 3 4 # 13 "/usr/include/boost/numeric/conversion/conversion_traits.hpp" 3 4 # 1 "/usr/include/boost/numeric/conversion/detail/conversion_traits.hpp" 1 3 4 # 17 "/usr/include/boost/numeric/conversion/detail/conversion_traits.hpp" 3 4 # 1 "/usr/include/boost/numeric/conversion/detail/meta.hpp" 1 3 4 # 17 "/usr/include/boost/numeric/conversion/detail/meta.hpp" 3 4 # 1 "/usr/include/boost/mpl/equal_to.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/equal_to.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/comparison_op.hpp" 1 3 4 # 27 "/usr/include/boost/mpl/aux_/comparison_op.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 1 3 4 # 21 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 3 4 # 1 "/usr/include/boost/mpl/numeric_cast.hpp" 1 3 4 # 30 "/usr/include/boost/mpl/numeric_cast.hpp" 3 4 namespace boost { namespace mpl { template< typename SourceTag, typename TargetTag > struct numeric_cast { template< typename N > struct apply; }; }} # 22 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/apply_wrap.hpp" 1 3 4 # 23 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/tag.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/tag.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/has_tag.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/aux_/has_tag.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< typename T, typename fallback_ = boost::mpl::bool_ > struct has_tag { struct gcc_3_2_wknd { template< typename U > static boost::mpl::aux::yes_tag test( boost::mpl::aux::type_wrapper const volatile* , boost::mpl::aux::type_wrapper* = 0 ); static boost::mpl::aux::no_tag test(...); }; typedef boost::mpl::aux::type_wrapper t_; static const bool value = sizeof(gcc_3_2_wknd::test(static_cast(0))) == sizeof(boost::mpl::aux::yes_tag); typedef boost::mpl::bool_ type; }; }}} # 20 "/usr/include/boost/mpl/tag.hpp" 2 3 4 namespace boost { namespace mpl { namespace aux { template< typename T > struct tag_impl { typedef typename T::tag type; }; } template< typename T, typename Default = void_ > struct tag : if_< aux::has_tag , aux::tag_impl , Default >::type { # 48 "/usr/include/boost/mpl/tag.hpp" 3 4 }; }} # 25 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/numeric_cast_utils.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/aux_/numeric_cast_utils.hpp" 3 4 # 1 "/usr/include/boost/mpl/apply_wrap.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/aux_/numeric_cast_utils.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/config/forwarding.hpp" 1 3 4 # 20 "/usr/include/boost/mpl/aux_/numeric_cast_utils.hpp" 2 3 4 namespace boost { namespace mpl { namespace aux { template< typename F , typename Tag1 , typename Tag2 > struct cast1st_impl { template< typename N1, typename N2 > struct apply : apply_wrap2< F , typename apply_wrap1< numeric_cast,N1 >::type , N2 > { # 46 "/usr/include/boost/mpl/aux_/numeric_cast_utils.hpp" 3 4 }; }; template< typename F , typename Tag1 , typename Tag2 > struct cast2nd_impl { template< typename N1, typename N2 > struct apply : apply_wrap2< F , N1 , typename apply_wrap1< numeric_cast,N2 >::type > { # 72 "/usr/include/boost/mpl/aux_/numeric_cast_utils.hpp" 3 4 }; }; }}} # 26 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/msvc_eti_base.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/aux_/msvc_eti_base.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/is_msvc_eti_arg.hpp" 1 3 4 # 21 "/usr/include/boost/mpl/aux_/is_msvc_eti_arg.hpp" 3 4 namespace boost { namespace mpl { namespace aux { # 62 "/usr/include/boost/mpl/aux_/is_msvc_eti_arg.hpp" 3 4 }}} # 18 "/usr/include/boost/mpl/aux_/msvc_eti_base.hpp" 2 3 4 namespace boost { namespace mpl { namespace aux { # 55 "/usr/include/boost/mpl/aux_/msvc_eti_base.hpp" 3 4 template< typename T > struct msvc_eti_base : T { msvc_eti_base(); typedef T type; }; template<> struct msvc_eti_base { typedef msvc_eti_base type; typedef msvc_eti_base first; typedef msvc_eti_base second; typedef msvc_eti_base tag; enum { value = 0 }; }; }}} # 30 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 2 3 4 # 28 "/usr/include/boost/mpl/aux_/comparison_op.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/equal_to.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/aux_/preprocessed/gcc/equal_to.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag1 , typename Tag2 > struct equal_to_impl : if_c< ( Tag1::value > Tag2::value ) , aux::cast2nd_impl< equal_to_impl< Tag1,Tag1 >,Tag1, Tag2 > , aux::cast1st_impl< equal_to_impl< Tag2,Tag2 >,Tag1, Tag2 > >::type { }; template<> struct equal_to_impl< na,na > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename Tag > struct equal_to_impl< na,Tag > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename Tag > struct equal_to_impl< Tag,na > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename T > struct equal_to_tag { typedef typename T::tag type; }; template< typename N1 = na , typename N2 = na > struct equal_to : equal_to_impl< typename equal_to_tag::type , typename equal_to_tag::type >::template apply< N1,N2 >::type { }; template<> struct equal_to< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : equal_to< T1 , T2 > { }; }; template< typename Tag > struct lambda< equal_to< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef equal_to< na , na > result_; typedef equal_to< na , na > type; }; namespace aux { template< typename T1 , typename T2 > struct template_arity< equal_to< T1 , T2 > > : int_<2> { }; template<> struct template_arity< equal_to< na , na > > : int_<-1> { }; } }} namespace boost { namespace mpl { template<> struct equal_to_impl< integral_c_tag,integral_c_tag > { template< typename N1, typename N2 > struct apply : bool_< ( N1::value == N2::value ) > { }; }; }} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 36 "/usr/include/boost/mpl/aux_/comparison_op.hpp" 2 3 4 # 20 "/usr/include/boost/mpl/equal_to.hpp" 2 3 4 # 18 "/usr/include/boost/numeric/conversion/detail/meta.hpp" 2 3 4 namespace boost { namespace numeric { namespace convdetail { template< class T1, class T2> struct equal_to { enum { x = ( T1::value == T2::value ) }; static const bool value = x; typedef mpl::bool_ type; # 48 "/usr/include/boost/numeric/conversion/detail/meta.hpp" 3 4 }; # 59 "/usr/include/boost/numeric/conversion/detail/meta.hpp" 3 4 template struct ct_switch4 { typedef mpl::identity Case0TypeQ ; typedef mpl::identity Case1TypeQ ; typedef equal_to is_case0 ; typedef equal_to is_case1 ; typedef equal_to is_case2 ; typedef mpl::if_ choose_2_3Q ; typedef mpl::eval_if choose_1_2_3Q ; typedef typename mpl::eval_if::type type ; } ; # 97 "/usr/include/boost/numeric/conversion/detail/meta.hpp" 3 4 template struct for_both { typedef mpl::identity TF_Q ; typedef mpl::identity TT_Q ; typedef typename mpl::not_::type not_expr0 ; typedef typename mpl::not_::type not_expr1 ; typedef typename mpl::and_::type caseTT ; typedef typename mpl::and_::type caseTF ; typedef typename mpl::and_::type caseFT ; typedef mpl::if_ choose_FT_FF_Q ; typedef mpl::eval_if choose_TF_FT_FF_Q ; typedef typename mpl::eval_if::type type ; } ; } } } # 18 "/usr/include/boost/numeric/conversion/detail/conversion_traits.hpp" 2 3 4 # 1 "/usr/include/boost/numeric/conversion/detail/int_float_mixture.hpp" 1 3 4 # 16 "/usr/include/boost/numeric/conversion/detail/int_float_mixture.hpp" 3 4 # 1 "/usr/include/boost/numeric/conversion/int_float_mixture_enum.hpp" 1 3 4 # 13 "/usr/include/boost/numeric/conversion/int_float_mixture_enum.hpp" 3 4 namespace boost { namespace numeric { enum int_float_mixture_enum { integral_to_integral ,integral_to_float ,float_to_integral ,float_to_float } ; } } # 17 "/usr/include/boost/numeric/conversion/detail/int_float_mixture.hpp" 2 3 4 namespace boost { namespace numeric { namespace convdetail { typedef mpl::integral_c int2int_c ; typedef mpl::integral_c int2float_c ; typedef mpl::integral_c float2int_c ; typedef mpl::integral_c float2float_c ; template struct get_int_float_mixture { typedef mpl::bool_< ::std::numeric_limits::is_integer > S_int ; typedef mpl::bool_< ::std::numeric_limits::is_integer > T_int ; typedef typename for_both::type type ; } ; # 55 "/usr/include/boost/numeric/conversion/detail/int_float_mixture.hpp" 3 4 template struct for_int_float_mixture { typedef typename ct_switch4::type type ; } ; } } } # 19 "/usr/include/boost/numeric/conversion/detail/conversion_traits.hpp" 2 3 4 # 1 "/usr/include/boost/numeric/conversion/detail/sign_mixture.hpp" 1 3 4 # 16 "/usr/include/boost/numeric/conversion/detail/sign_mixture.hpp" 3 4 # 1 "/usr/include/boost/numeric/conversion/sign_mixture_enum.hpp" 1 3 4 # 13 "/usr/include/boost/numeric/conversion/sign_mixture_enum.hpp" 3 4 namespace boost { namespace numeric { enum sign_mixture_enum { unsigned_to_unsigned ,signed_to_signed ,signed_to_unsigned ,unsigned_to_signed } ; } } # 17 "/usr/include/boost/numeric/conversion/detail/sign_mixture.hpp" 2 3 4 namespace boost { namespace numeric { namespace convdetail { typedef mpl::integral_c unsig2unsig_c ; typedef mpl::integral_c sig2sig_c ; typedef mpl::integral_c sig2unsig_c ; typedef mpl::integral_c unsig2sig_c ; template struct get_sign_mixture { typedef mpl::bool_< ::std::numeric_limits::is_signed > S_signed ; typedef mpl::bool_< ::std::numeric_limits::is_signed > T_signed ; typedef typename for_both::type type ; } ; # 55 "/usr/include/boost/numeric/conversion/detail/sign_mixture.hpp" 3 4 template struct for_sign_mixture { typedef typename ct_switch4::type type ; } ; } } } # 20 "/usr/include/boost/numeric/conversion/detail/conversion_traits.hpp" 2 3 4 # 1 "/usr/include/boost/numeric/conversion/detail/udt_builtin_mixture.hpp" 1 3 4 # 15 "/usr/include/boost/numeric/conversion/detail/udt_builtin_mixture.hpp" 3 4 # 1 "/usr/include/boost/numeric/conversion/udt_builtin_mixture_enum.hpp" 1 3 4 # 13 "/usr/include/boost/numeric/conversion/udt_builtin_mixture_enum.hpp" 3 4 namespace boost { namespace numeric { enum udt_builtin_mixture_enum { builtin_to_builtin ,builtin_to_udt ,udt_to_builtin ,udt_to_udt } ; } } # 16 "/usr/include/boost/numeric/conversion/detail/udt_builtin_mixture.hpp" 2 3 4 namespace boost { namespace numeric { namespace convdetail { typedef mpl::integral_c builtin2builtin_c ; typedef mpl::integral_c builtin2udt_c ; typedef mpl::integral_c udt2builtin_c ; typedef mpl::integral_c udt2udt_c ; # 37 "/usr/include/boost/numeric/conversion/detail/udt_builtin_mixture.hpp" 3 4 template struct for_udt_builtin_mixture { typedef typename ct_switch4::type type ; } ; template struct get_udt_builtin_mixture { typedef is_arithmetic S_builtin ; typedef is_arithmetic T_builtin ; typedef typename for_both::type type ; } ; } } } # 21 "/usr/include/boost/numeric/conversion/detail/conversion_traits.hpp" 2 3 4 # 1 "/usr/include/boost/numeric/conversion/detail/is_subranged.hpp" 1 3 4 # 17 "/usr/include/boost/numeric/conversion/detail/is_subranged.hpp" 3 4 # 1 "/usr/include/boost/mpl/multiplies.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/multiplies.hpp" 3 4 # 1 "/usr/include/boost/mpl/times.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/times.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/arithmetic_op.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/aux_/arithmetic_op.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/largest_int.hpp" 1 3 4 # 22 "/usr/include/boost/mpl/aux_/largest_int.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< typename T > struct integral_rank; template<> struct integral_rank : int_<1> {}; template<> struct integral_rank : int_<2> {}; template<> struct integral_rank : int_<3> {}; template<> struct integral_rank : int_<4> {}; template<> struct integral_rank : int_<5> {}; template<> struct integral_rank : int_<6> {}; template<> struct integral_rank : int_<7> {}; template<> struct integral_rank : int_<8> {}; template<> struct integral_rank : int_<9> {}; template<> struct integral_rank : int_<10> {}; template<> struct integral_rank : int_<11> {}; template<> struct integral_rank : int_<12> {}; template<> struct integral_rank: int_<13> {}; template< typename T1, typename T2 > struct largest_int : if_c< ( integral_rank::value >= integral_rank::value ) , T1 , T2 > { }; }}} # 19 "/usr/include/boost/mpl/aux_/arithmetic_op.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 1 3 4 # 22 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 3 4 # 1 "/usr/include/boost/mpl/apply_wrap.hpp" 1 3 4 # 23 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 2 3 4 # 27 "/usr/include/boost/mpl/aux_/arithmetic_op.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/times.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/aux_/preprocessed/gcc/times.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag1 , typename Tag2 > struct times_impl : if_c< ( Tag1::value > Tag2::value ) , aux::cast2nd_impl< times_impl< Tag1,Tag1 >,Tag1, Tag2 > , aux::cast1st_impl< times_impl< Tag2,Tag2 >,Tag1, Tag2 > >::type { }; template<> struct times_impl< na,na > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename Tag > struct times_impl< na,Tag > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename Tag > struct times_impl< Tag,na > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename T > struct times_tag { typedef typename T::tag type; }; template< typename N1 = na , typename N2 = na , typename N3 = na, typename N4 = na, typename N5 = na > struct times : times< times< times< times< N1,N2 >, N3>, N4>, N5> { }; template< typename N1, typename N2, typename N3, typename N4 > struct times< N1,N2,N3,N4,na > : times< times< times< N1,N2 >, N3>, N4> { }; template< typename N1, typename N2, typename N3 > struct times< N1,N2,N3,na,na > : times< times< N1,N2 >, N3> { }; template< typename N1, typename N2 > struct times< N1,N2,na,na,na > : times_impl< typename times_tag::type , typename times_tag::type >::template apply< N1,N2 >::type { }; template<> struct times< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : times< T1 , T2 > { }; }; template< typename Tag > struct lambda< times< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef times< na , na > result_; typedef times< na , na > type; }; namespace aux { template< typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > struct template_arity< times< T1 , T2 , T3 , T4 , T5 > > : int_<5> { }; template<> struct template_arity< times< na , na > > : int_<-1> { }; } }} namespace boost { namespace mpl { template<> struct times_impl< integral_c_tag,integral_c_tag > { template< typename N1, typename N2 > struct apply : integral_c< typename aux::largest_int< typename N1::value_type , typename N2::value_type >::type , ( N1::value * N2::value ) > { }; }; }} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 35 "/usr/include/boost/mpl/aux_/arithmetic_op.hpp" 2 3 4 # 20 "/usr/include/boost/mpl/times.hpp" 2 3 4 # 18 "/usr/include/boost/mpl/multiplies.hpp" 2 3 4 # 26 "/usr/include/boost/mpl/multiplies.hpp" 3 4 namespace boost { namespace mpl { template< typename N1 = na , typename N2 = na , typename N3 = na , typename N4 = na , typename N5 = na > struct multiplies : times< N1 , N2 , N3 , N4 , N5 > { }; template<> struct multiplies< na , na , na , na , na > { template< typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > struct apply : multiplies< T1 , T2 , T3 , T4 , T5 > { }; }; template< typename Tag > struct lambda< multiplies< na , na , na , na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef multiplies< na , na , na , na , na > result_; typedef multiplies< na , na , na , na , na > type; }; namespace aux { template< typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > struct template_arity< multiplies< T1 , T2 , T3 , T4 , T5 > > : int_<5> { }; template<> struct template_arity< multiplies< na , na , na , na , na > > : int_<-1> { }; } }} # 18 "/usr/include/boost/numeric/conversion/detail/is_subranged.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/less.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/less.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/comparison_op.hpp" 1 3 4 # 27 "/usr/include/boost/mpl/aux_/comparison_op.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 1 3 4 # 22 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 3 4 # 1 "/usr/include/boost/mpl/apply_wrap.hpp" 1 3 4 # 23 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 2 3 4 # 28 "/usr/include/boost/mpl/aux_/comparison_op.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/less.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/aux_/preprocessed/gcc/less.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag1 , typename Tag2 > struct less_impl : if_c< ( Tag1::value > Tag2::value ) , aux::cast2nd_impl< less_impl< Tag1,Tag1 >,Tag1, Tag2 > , aux::cast1st_impl< less_impl< Tag2,Tag2 >,Tag1, Tag2 > >::type { }; template<> struct less_impl< na,na > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename Tag > struct less_impl< na,Tag > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename Tag > struct less_impl< Tag,na > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename T > struct less_tag { typedef typename T::tag type; }; template< typename N1 = na , typename N2 = na > struct less : less_impl< typename less_tag::type , typename less_tag::type >::template apply< N1,N2 >::type { }; template<> struct less< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : less< T1 , T2 > { }; }; template< typename Tag > struct lambda< less< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef less< na , na > result_; typedef less< na , na > type; }; namespace aux { template< typename T1 , typename T2 > struct template_arity< less< T1 , T2 > > : int_<2> { }; template<> struct template_arity< less< na , na > > : int_<-1> { }; } }} namespace boost { namespace mpl { template<> struct less_impl< integral_c_tag,integral_c_tag > { template< typename N1, typename N2 > struct apply : bool_< ( N2::value > N1::value ) > { }; }; }} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 36 "/usr/include/boost/mpl/aux_/comparison_op.hpp" 2 3 4 # 20 "/usr/include/boost/mpl/less.hpp" 2 3 4 # 19 "/usr/include/boost/numeric/conversion/detail/is_subranged.hpp" 2 3 4 # 28 "/usr/include/boost/numeric/conversion/detail/is_subranged.hpp" 3 4 namespace boost { namespace numeric { namespace convdetail { template struct subranged_Sig2Unsig { typedef mpl::true_ type ; } ; template struct subranged_Unsig2Sig { # 62 "/usr/include/boost/numeric/conversion/detail/is_subranged.hpp" 3 4 typedef mpl::int_< ::std::numeric_limits::digits > S_digits ; typedef mpl::int_< ::std::numeric_limits::digits > T_digits ; typedef typename T_digits::next u_T_digits ; typedef mpl::int_<2> Two ; typedef typename mpl::multiplies::type S_digits_times_2 ; typedef typename mpl::less::type type ; } ; template struct subranged_SameSign { typedef mpl::int_< ::std::numeric_limits::digits > S_digits ; typedef mpl::int_< ::std::numeric_limits::digits > T_digits ; typedef typename mpl::less::type type ; } ; template struct subranged_Int2Float { typedef mpl::false_ type ; } ; template struct subranged_Float2Int { typedef mpl::true_ type ; } ; template struct subranged_Float2Float { typedef mpl::int_< ::std::numeric_limits::digits > S_mantisa ; typedef mpl::int_< ::std::numeric_limits::digits > T_mantisa ; typedef mpl::int_< ::std::numeric_limits::max_exponent > S_exponent ; typedef mpl::int_< ::std::numeric_limits::max_exponent > T_exponent ; typedef typename mpl::less::type T_smaller_exponent ; typedef typename mpl::equal_to::type equal_exponents ; typedef mpl::less T_smaller_mantisa ; typedef mpl::eval_if not_bigger_exponent_case ; typedef typename mpl::eval_if::type type ; } ; template struct subranged_Udt2BuiltIn { typedef mpl::true_ type ; } ; template struct subranged_BuiltIn2Udt { typedef mpl::false_ type ; } ; template struct subranged_Udt2Udt { typedef mpl::false_ type ; } ; template struct get_subranged_Int2Int { typedef subranged_SameSign Sig2Sig ; typedef subranged_Sig2Unsig Sig2Unsig ; typedef subranged_Unsig2Sig Unsig2Sig ; typedef Sig2Sig Unsig2Unsig ; typedef typename get_sign_mixture::type sign_mixture ; typedef typename for_sign_mixture::type type ; } ; template struct get_subranged_BuiltIn2BuiltIn { typedef get_subranged_Int2Int Int2IntQ ; typedef subranged_Int2Float Int2Float ; typedef subranged_Float2Int Float2Int ; typedef subranged_Float2Float Float2Float ; typedef mpl::identity Int2FloatQ ; typedef mpl::identity Float2IntQ ; typedef mpl::identity Float2FloatQ ; typedef typename get_int_float_mixture::type int_float_mixture ; typedef for_int_float_mixture for_ ; typedef typename for_::type selected ; typedef typename selected::type type ; } ; template struct get_subranged { typedef get_subranged_BuiltIn2BuiltIn BuiltIn2BuiltInQ ; typedef subranged_BuiltIn2Udt BuiltIn2Udt ; typedef subranged_Udt2BuiltIn Udt2BuiltIn ; typedef subranged_Udt2Udt Udt2Udt ; typedef mpl::identity BuiltIn2UdtQ ; typedef mpl::identity Udt2BuiltInQ ; typedef mpl::identity Udt2UdtQ ; typedef typename get_udt_builtin_mixture::type udt_builtin_mixture ; typedef typename for_udt_builtin_mixture::type selected ; typedef typename selected::type selected2 ; typedef typename selected2::type type ; } ; template struct get_is_subranged { typedef get_subranged non_trivial_case ; typedef mpl::identity trivial_case ; typedef is_same is_trivial ; typedef typename mpl::if_::type selected ; typedef typename selected::type type ; } ; } } } # 22 "/usr/include/boost/numeric/conversion/detail/conversion_traits.hpp" 2 3 4 namespace boost { namespace numeric { namespace convdetail { template struct non_trivial_traits_impl { typedef typename get_int_float_mixture ::type int_float_mixture ; typedef typename get_sign_mixture ::type sign_mixture ; typedef typename get_udt_builtin_mixture ::type udt_builtin_mixture ; typedef typename get_is_subranged::type subranged ; typedef mpl::false_ trivial ; typedef T target_type ; typedef S source_type ; typedef T result_type ; typedef typename mpl::if_< is_arithmetic, S, S const&>::type argument_type ; typedef typename mpl::if_::type supertype ; typedef typename mpl::if_::type subtype ; } ; template struct trivial_traits_impl { typedef typename get_int_float_mixture ::type int_float_mixture ; typedef typename get_sign_mixture ::type sign_mixture ; typedef typename get_udt_builtin_mixture::type udt_builtin_mixture ; typedef mpl::false_ subranged ; typedef mpl::true_ trivial ; typedef N target_type ; typedef N source_type ; typedef N const& result_type ; typedef N const& argument_type ; typedef N supertype ; typedef N subtype ; } ; template struct get_conversion_traits { typedef typename remove_cv::type target_type ; typedef typename remove_cv::type source_type ; typedef typename is_same::type is_trivial ; typedef trivial_traits_impl trivial_imp ; typedef non_trivial_traits_impl non_trivial_imp ; typedef typename mpl::if_::type type ; } ; } } } # 14 "/usr/include/boost/numeric/conversion/conversion_traits.hpp" 2 3 4 namespace boost { namespace numeric { template struct conversion_traits : convdetail::get_conversion_traits::type { } ; } } # 14 "/usr/include/boost/numeric/conversion/converter.hpp" 2 3 4 # 1 "/usr/include/boost/numeric/conversion/converter_policies.hpp" 1 3 4 # 15 "/usr/include/boost/numeric/conversion/converter_policies.hpp" 3 4 # 1 "/usr/include/boost/config/no_tr1/cmath.hpp" 1 3 4 # 21 "/usr/include/boost/config/no_tr1/cmath.hpp" 3 4 # 1 "/usr/include/c++/5.0.0/cmath" 1 3 4 # 39 "/usr/include/c++/5.0.0/cmath" 3 4 # 40 "/usr/include/c++/5.0.0/cmath" 3 # 1 "/usr/include/math.h" 1 3 4 # 28 "/usr/include/math.h" 3 4 extern "C" { # 1 "/usr/include/bits/huge_val.h" 1 3 4 # 33 "/usr/include/math.h" 2 3 4 # 1 "/usr/include/bits/huge_valf.h" 1 3 4 # 35 "/usr/include/math.h" 2 3 4 # 1 "/usr/include/bits/huge_vall.h" 1 3 4 # 36 "/usr/include/math.h" 2 3 4 # 1 "/usr/include/bits/inf.h" 1 3 4 # 39 "/usr/include/math.h" 2 3 4 # 1 "/usr/include/bits/nan.h" 1 3 4 # 42 "/usr/include/math.h" 2 3 4 # 1 "/usr/include/bits/mathdef.h" 1 3 4 # 28 "/usr/include/bits/mathdef.h" 3 4 typedef float float_t; typedef double double_t; # 46 "/usr/include/math.h" 2 3 4 # 69 "/usr/include/math.h" 3 4 # 1 "/usr/include/bits/mathcalls.h" 1 3 4 # 52 "/usr/include/bits/mathcalls.h" 3 4 extern double acos (double __x) throw (); extern double __acos (double __x) throw (); extern double asin (double __x) throw (); extern double __asin (double __x) throw (); extern double atan (double __x) throw (); extern double __atan (double __x) throw (); extern double atan2 (double __y, double __x) throw (); extern double __atan2 (double __y, double __x) throw (); extern double cos (double __x) throw (); extern double __cos (double __x) throw (); extern double sin (double __x) throw (); extern double __sin (double __x) throw (); extern double tan (double __x) throw (); extern double __tan (double __x) throw (); extern double cosh (double __x) throw (); extern double __cosh (double __x) throw (); extern double sinh (double __x) throw (); extern double __sinh (double __x) throw (); extern double tanh (double __x) throw (); extern double __tanh (double __x) throw (); extern void sincos (double __x, double *__sinx, double *__cosx) throw (); extern void __sincos (double __x, double *__sinx, double *__cosx) throw () ; extern double acosh (double __x) throw (); extern double __acosh (double __x) throw (); extern double asinh (double __x) throw (); extern double __asinh (double __x) throw (); extern double atanh (double __x) throw (); extern double __atanh (double __x) throw (); extern double exp (double __x) throw (); extern double __exp (double __x) throw (); extern double frexp (double __x, int *__exponent) throw (); extern double __frexp (double __x, int *__exponent) throw (); extern double ldexp (double __x, int __exponent) throw (); extern double __ldexp (double __x, int __exponent) throw (); extern double log (double __x) throw (); extern double __log (double __x) throw (); extern double log10 (double __x) throw (); extern double __log10 (double __x) throw (); extern double modf (double __x, double *__iptr) throw (); extern double __modf (double __x, double *__iptr) throw () __attribute__ ((__nonnull__ (2))); extern double exp10 (double __x) throw (); extern double __exp10 (double __x) throw (); extern double pow10 (double __x) throw (); extern double __pow10 (double __x) throw (); extern double expm1 (double __x) throw (); extern double __expm1 (double __x) throw (); extern double log1p (double __x) throw (); extern double __log1p (double __x) throw (); extern double logb (double __x) throw (); extern double __logb (double __x) throw (); extern double exp2 (double __x) throw (); extern double __exp2 (double __x) throw (); extern double log2 (double __x) throw (); extern double __log2 (double __x) throw (); extern double pow (double __x, double __y) throw (); extern double __pow (double __x, double __y) throw (); extern double sqrt (double __x) throw (); extern double __sqrt (double __x) throw (); extern double hypot (double __x, double __y) throw (); extern double __hypot (double __x, double __y) throw (); extern double cbrt (double __x) throw (); extern double __cbrt (double __x) throw (); extern double ceil (double __x) throw () __attribute__ ((__const__)); extern double __ceil (double __x) throw () __attribute__ ((__const__)); extern double fabs (double __x) throw () __attribute__ ((__const__)); extern double __fabs (double __x) throw () __attribute__ ((__const__)); extern double floor (double __x) throw () __attribute__ ((__const__)); extern double __floor (double __x) throw () __attribute__ ((__const__)); extern double fmod (double __x, double __y) throw (); extern double __fmod (double __x, double __y) throw (); extern int __isinf (double __value) throw () __attribute__ ((__const__)); extern int __finite (double __value) throw () __attribute__ ((__const__)); extern int isinf (double __value) throw () __attribute__ ((__const__)); extern int finite (double __value) throw () __attribute__ ((__const__)); extern double drem (double __x, double __y) throw (); extern double __drem (double __x, double __y) throw (); extern double significand (double __x) throw (); extern double __significand (double __x) throw (); extern double copysign (double __x, double __y) throw () __attribute__ ((__const__)); extern double __copysign (double __x, double __y) throw () __attribute__ ((__const__)); extern double nan (const char *__tagb) throw () __attribute__ ((__const__)); extern double __nan (const char *__tagb) throw () __attribute__ ((__const__)); extern int __isnan (double __value) throw () __attribute__ ((__const__)); extern int isnan (double __value) throw () __attribute__ ((__const__)); extern double j0 (double) throw (); extern double __j0 (double) throw (); extern double j1 (double) throw (); extern double __j1 (double) throw (); extern double jn (int, double) throw (); extern double __jn (int, double) throw (); extern double y0 (double) throw (); extern double __y0 (double) throw (); extern double y1 (double) throw (); extern double __y1 (double) throw (); extern double yn (int, double) throw (); extern double __yn (int, double) throw (); extern double erf (double) throw (); extern double __erf (double) throw (); extern double erfc (double) throw (); extern double __erfc (double) throw (); extern double lgamma (double) throw (); extern double __lgamma (double) throw (); extern double tgamma (double) throw (); extern double __tgamma (double) throw (); extern double gamma (double) throw (); extern double __gamma (double) throw (); extern double lgamma_r (double, int *__signgamp) throw (); extern double __lgamma_r (double, int *__signgamp) throw (); extern double rint (double __x) throw (); extern double __rint (double __x) throw (); extern double nextafter (double __x, double __y) throw () __attribute__ ((__const__)); extern double __nextafter (double __x, double __y) throw () __attribute__ ((__const__)); extern double nexttoward (double __x, long double __y) throw () __attribute__ ((__const__)); extern double __nexttoward (double __x, long double __y) throw () __attribute__ ((__const__)); extern double remainder (double __x, double __y) throw (); extern double __remainder (double __x, double __y) throw (); extern double scalbn (double __x, int __n) throw (); extern double __scalbn (double __x, int __n) throw (); extern int ilogb (double __x) throw (); extern int __ilogb (double __x) throw (); extern double scalbln (double __x, long int __n) throw (); extern double __scalbln (double __x, long int __n) throw (); extern double nearbyint (double __x) throw (); extern double __nearbyint (double __x) throw (); extern double round (double __x) throw () __attribute__ ((__const__)); extern double __round (double __x) throw () __attribute__ ((__const__)); extern double trunc (double __x) throw () __attribute__ ((__const__)); extern double __trunc (double __x) throw () __attribute__ ((__const__)); extern double remquo (double __x, double __y, int *__quo) throw (); extern double __remquo (double __x, double __y, int *__quo) throw (); extern long int lrint (double __x) throw (); extern long int __lrint (double __x) throw (); __extension__ extern long long int llrint (double __x) throw (); extern long long int __llrint (double __x) throw (); extern long int lround (double __x) throw (); extern long int __lround (double __x) throw (); __extension__ extern long long int llround (double __x) throw (); extern long long int __llround (double __x) throw (); extern double fdim (double __x, double __y) throw (); extern double __fdim (double __x, double __y) throw (); extern double fmax (double __x, double __y) throw () __attribute__ ((__const__)); extern double __fmax (double __x, double __y) throw () __attribute__ ((__const__)); extern double fmin (double __x, double __y) throw () __attribute__ ((__const__)); extern double __fmin (double __x, double __y) throw () __attribute__ ((__const__)); extern int __fpclassify (double __value) throw () __attribute__ ((__const__)); extern int __signbit (double __value) throw () __attribute__ ((__const__)); extern double fma (double __x, double __y, double __z) throw (); extern double __fma (double __x, double __y, double __z) throw (); extern int __issignaling (double __value) throw () __attribute__ ((__const__)); extern double scalb (double __x, double __n) throw (); extern double __scalb (double __x, double __n) throw (); # 70 "/usr/include/math.h" 2 3 4 # 88 "/usr/include/math.h" 3 4 # 1 "/usr/include/bits/mathcalls.h" 1 3 4 # 52 "/usr/include/bits/mathcalls.h" 3 4 extern float acosf (float __x) throw (); extern float __acosf (float __x) throw (); extern float asinf (float __x) throw (); extern float __asinf (float __x) throw (); extern float atanf (float __x) throw (); extern float __atanf (float __x) throw (); extern float atan2f (float __y, float __x) throw (); extern float __atan2f (float __y, float __x) throw (); extern float cosf (float __x) throw (); extern float __cosf (float __x) throw (); extern float sinf (float __x) throw (); extern float __sinf (float __x) throw (); extern float tanf (float __x) throw (); extern float __tanf (float __x) throw (); extern float coshf (float __x) throw (); extern float __coshf (float __x) throw (); extern float sinhf (float __x) throw (); extern float __sinhf (float __x) throw (); extern float tanhf (float __x) throw (); extern float __tanhf (float __x) throw (); extern void sincosf (float __x, float *__sinx, float *__cosx) throw (); extern void __sincosf (float __x, float *__sinx, float *__cosx) throw () ; extern float acoshf (float __x) throw (); extern float __acoshf (float __x) throw (); extern float asinhf (float __x) throw (); extern float __asinhf (float __x) throw (); extern float atanhf (float __x) throw (); extern float __atanhf (float __x) throw (); extern float expf (float __x) throw (); extern float __expf (float __x) throw (); extern float frexpf (float __x, int *__exponent) throw (); extern float __frexpf (float __x, int *__exponent) throw (); extern float ldexpf (float __x, int __exponent) throw (); extern float __ldexpf (float __x, int __exponent) throw (); extern float logf (float __x) throw (); extern float __logf (float __x) throw (); extern float log10f (float __x) throw (); extern float __log10f (float __x) throw (); extern float modff (float __x, float *__iptr) throw (); extern float __modff (float __x, float *__iptr) throw () __attribute__ ((__nonnull__ (2))); extern float exp10f (float __x) throw (); extern float __exp10f (float __x) throw (); extern float pow10f (float __x) throw (); extern float __pow10f (float __x) throw (); extern float expm1f (float __x) throw (); extern float __expm1f (float __x) throw (); extern float log1pf (float __x) throw (); extern float __log1pf (float __x) throw (); extern float logbf (float __x) throw (); extern float __logbf (float __x) throw (); extern float exp2f (float __x) throw (); extern float __exp2f (float __x) throw (); extern float log2f (float __x) throw (); extern float __log2f (float __x) throw (); extern float powf (float __x, float __y) throw (); extern float __powf (float __x, float __y) throw (); extern float sqrtf (float __x) throw (); extern float __sqrtf (float __x) throw (); extern float hypotf (float __x, float __y) throw (); extern float __hypotf (float __x, float __y) throw (); extern float cbrtf (float __x) throw (); extern float __cbrtf (float __x) throw (); extern float ceilf (float __x) throw () __attribute__ ((__const__)); extern float __ceilf (float __x) throw () __attribute__ ((__const__)); extern float fabsf (float __x) throw () __attribute__ ((__const__)); extern float __fabsf (float __x) throw () __attribute__ ((__const__)); extern float floorf (float __x) throw () __attribute__ ((__const__)); extern float __floorf (float __x) throw () __attribute__ ((__const__)); extern float fmodf (float __x, float __y) throw (); extern float __fmodf (float __x, float __y) throw (); extern int __isinff (float __value) throw () __attribute__ ((__const__)); extern int __finitef (float __value) throw () __attribute__ ((__const__)); extern int isinff (float __value) throw () __attribute__ ((__const__)); extern int finitef (float __value) throw () __attribute__ ((__const__)); extern float dremf (float __x, float __y) throw (); extern float __dremf (float __x, float __y) throw (); extern float significandf (float __x) throw (); extern float __significandf (float __x) throw (); extern float copysignf (float __x, float __y) throw () __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) throw () __attribute__ ((__const__)); extern float nanf (const char *__tagb) throw () __attribute__ ((__const__)); extern float __nanf (const char *__tagb) throw () __attribute__ ((__const__)); extern int __isnanf (float __value) throw () __attribute__ ((__const__)); extern int isnanf (float __value) throw () __attribute__ ((__const__)); extern float j0f (float) throw (); extern float __j0f (float) throw (); extern float j1f (float) throw (); extern float __j1f (float) throw (); extern float jnf (int, float) throw (); extern float __jnf (int, float) throw (); extern float y0f (float) throw (); extern float __y0f (float) throw (); extern float y1f (float) throw (); extern float __y1f (float) throw (); extern float ynf (int, float) throw (); extern float __ynf (int, float) throw (); extern float erff (float) throw (); extern float __erff (float) throw (); extern float erfcf (float) throw (); extern float __erfcf (float) throw (); extern float lgammaf (float) throw (); extern float __lgammaf (float) throw (); extern float tgammaf (float) throw (); extern float __tgammaf (float) throw (); extern float gammaf (float) throw (); extern float __gammaf (float) throw (); extern float lgammaf_r (float, int *__signgamp) throw (); extern float __lgammaf_r (float, int *__signgamp) throw (); extern float rintf (float __x) throw (); extern float __rintf (float __x) throw (); extern float nextafterf (float __x, float __y) throw () __attribute__ ((__const__)); extern float __nextafterf (float __x, float __y) throw () __attribute__ ((__const__)); extern float nexttowardf (float __x, long double __y) throw () __attribute__ ((__const__)); extern float __nexttowardf (float __x, long double __y) throw () __attribute__ ((__const__)); extern float remainderf (float __x, float __y) throw (); extern float __remainderf (float __x, float __y) throw (); extern float scalbnf (float __x, int __n) throw (); extern float __scalbnf (float __x, int __n) throw (); extern int ilogbf (float __x) throw (); extern int __ilogbf (float __x) throw (); extern float scalblnf (float __x, long int __n) throw (); extern float __scalblnf (float __x, long int __n) throw (); extern float nearbyintf (float __x) throw (); extern float __nearbyintf (float __x) throw (); extern float roundf (float __x) throw () __attribute__ ((__const__)); extern float __roundf (float __x) throw () __attribute__ ((__const__)); extern float truncf (float __x) throw () __attribute__ ((__const__)); extern float __truncf (float __x) throw () __attribute__ ((__const__)); extern float remquof (float __x, float __y, int *__quo) throw (); extern float __remquof (float __x, float __y, int *__quo) throw (); extern long int lrintf (float __x) throw (); extern long int __lrintf (float __x) throw (); __extension__ extern long long int llrintf (float __x) throw (); extern long long int __llrintf (float __x) throw (); extern long int lroundf (float __x) throw (); extern long int __lroundf (float __x) throw (); __extension__ extern long long int llroundf (float __x) throw (); extern long long int __llroundf (float __x) throw (); extern float fdimf (float __x, float __y) throw (); extern float __fdimf (float __x, float __y) throw (); extern float fmaxf (float __x, float __y) throw () __attribute__ ((__const__)); extern float __fmaxf (float __x, float __y) throw () __attribute__ ((__const__)); extern float fminf (float __x, float __y) throw () __attribute__ ((__const__)); extern float __fminf (float __x, float __y) throw () __attribute__ ((__const__)); extern int __fpclassifyf (float __value) throw () __attribute__ ((__const__)); extern int __signbitf (float __value) throw () __attribute__ ((__const__)); extern float fmaf (float __x, float __y, float __z) throw (); extern float __fmaf (float __x, float __y, float __z) throw (); extern int __issignalingf (float __value) throw () __attribute__ ((__const__)); extern float scalbf (float __x, float __n) throw (); extern float __scalbf (float __x, float __n) throw (); # 89 "/usr/include/math.h" 2 3 4 # 133 "/usr/include/math.h" 3 4 # 1 "/usr/include/bits/mathcalls.h" 1 3 4 # 52 "/usr/include/bits/mathcalls.h" 3 4 extern long double acosl (long double __x) throw (); extern long double __acosl (long double __x) throw (); extern long double asinl (long double __x) throw (); extern long double __asinl (long double __x) throw (); extern long double atanl (long double __x) throw (); extern long double __atanl (long double __x) throw (); extern long double atan2l (long double __y, long double __x) throw (); extern long double __atan2l (long double __y, long double __x) throw (); extern long double cosl (long double __x) throw (); extern long double __cosl (long double __x) throw (); extern long double sinl (long double __x) throw (); extern long double __sinl (long double __x) throw (); extern long double tanl (long double __x) throw (); extern long double __tanl (long double __x) throw (); extern long double coshl (long double __x) throw (); extern long double __coshl (long double __x) throw (); extern long double sinhl (long double __x) throw (); extern long double __sinhl (long double __x) throw (); extern long double tanhl (long double __x) throw (); extern long double __tanhl (long double __x) throw (); extern void sincosl (long double __x, long double *__sinx, long double *__cosx) throw (); extern void __sincosl (long double __x, long double *__sinx, long double *__cosx) throw () ; extern long double acoshl (long double __x) throw (); extern long double __acoshl (long double __x) throw (); extern long double asinhl (long double __x) throw (); extern long double __asinhl (long double __x) throw (); extern long double atanhl (long double __x) throw (); extern long double __atanhl (long double __x) throw (); extern long double expl (long double __x) throw (); extern long double __expl (long double __x) throw (); extern long double frexpl (long double __x, int *__exponent) throw (); extern long double __frexpl (long double __x, int *__exponent) throw (); extern long double ldexpl (long double __x, int __exponent) throw (); extern long double __ldexpl (long double __x, int __exponent) throw (); extern long double logl (long double __x) throw (); extern long double __logl (long double __x) throw (); extern long double log10l (long double __x) throw (); extern long double __log10l (long double __x) throw (); extern long double modfl (long double __x, long double *__iptr) throw (); extern long double __modfl (long double __x, long double *__iptr) throw () __attribute__ ((__nonnull__ (2))); extern long double exp10l (long double __x) throw (); extern long double __exp10l (long double __x) throw (); extern long double pow10l (long double __x) throw (); extern long double __pow10l (long double __x) throw (); extern long double expm1l (long double __x) throw (); extern long double __expm1l (long double __x) throw (); extern long double log1pl (long double __x) throw (); extern long double __log1pl (long double __x) throw (); extern long double logbl (long double __x) throw (); extern long double __logbl (long double __x) throw (); extern long double exp2l (long double __x) throw (); extern long double __exp2l (long double __x) throw (); extern long double log2l (long double __x) throw (); extern long double __log2l (long double __x) throw (); extern long double powl (long double __x, long double __y) throw (); extern long double __powl (long double __x, long double __y) throw (); extern long double sqrtl (long double __x) throw (); extern long double __sqrtl (long double __x) throw (); extern long double hypotl (long double __x, long double __y) throw (); extern long double __hypotl (long double __x, long double __y) throw (); extern long double cbrtl (long double __x) throw (); extern long double __cbrtl (long double __x) throw (); extern long double ceill (long double __x) throw () __attribute__ ((__const__)); extern long double __ceill (long double __x) throw () __attribute__ ((__const__)); extern long double fabsl (long double __x) throw () __attribute__ ((__const__)); extern long double __fabsl (long double __x) throw () __attribute__ ((__const__)); extern long double floorl (long double __x) throw () __attribute__ ((__const__)); extern long double __floorl (long double __x) throw () __attribute__ ((__const__)); extern long double fmodl (long double __x, long double __y) throw (); extern long double __fmodl (long double __x, long double __y) throw (); extern int __isinfl (long double __value) throw () __attribute__ ((__const__)); extern int __finitel (long double __value) throw () __attribute__ ((__const__)); extern int isinfl (long double __value) throw () __attribute__ ((__const__)); extern int finitel (long double __value) throw () __attribute__ ((__const__)); extern long double dreml (long double __x, long double __y) throw (); extern long double __dreml (long double __x, long double __y) throw (); extern long double significandl (long double __x) throw (); extern long double __significandl (long double __x) throw (); extern long double copysignl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double __copysignl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double nanl (const char *__tagb) throw () __attribute__ ((__const__)); extern long double __nanl (const char *__tagb) throw () __attribute__ ((__const__)); extern int __isnanl (long double __value) throw () __attribute__ ((__const__)); extern int isnanl (long double __value) throw () __attribute__ ((__const__)); extern long double j0l (long double) throw (); extern long double __j0l (long double) throw (); extern long double j1l (long double) throw (); extern long double __j1l (long double) throw (); extern long double jnl (int, long double) throw (); extern long double __jnl (int, long double) throw (); extern long double y0l (long double) throw (); extern long double __y0l (long double) throw (); extern long double y1l (long double) throw (); extern long double __y1l (long double) throw (); extern long double ynl (int, long double) throw (); extern long double __ynl (int, long double) throw (); extern long double erfl (long double) throw (); extern long double __erfl (long double) throw (); extern long double erfcl (long double) throw (); extern long double __erfcl (long double) throw (); extern long double lgammal (long double) throw (); extern long double __lgammal (long double) throw (); extern long double tgammal (long double) throw (); extern long double __tgammal (long double) throw (); extern long double gammal (long double) throw (); extern long double __gammal (long double) throw (); extern long double lgammal_r (long double, int *__signgamp) throw (); extern long double __lgammal_r (long double, int *__signgamp) throw (); extern long double rintl (long double __x) throw (); extern long double __rintl (long double __x) throw (); extern long double nextafterl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double __nextafterl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double nexttowardl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double __nexttowardl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double remainderl (long double __x, long double __y) throw (); extern long double __remainderl (long double __x, long double __y) throw (); extern long double scalbnl (long double __x, int __n) throw (); extern long double __scalbnl (long double __x, int __n) throw (); extern int ilogbl (long double __x) throw (); extern int __ilogbl (long double __x) throw (); extern long double scalblnl (long double __x, long int __n) throw (); extern long double __scalblnl (long double __x, long int __n) throw (); extern long double nearbyintl (long double __x) throw (); extern long double __nearbyintl (long double __x) throw (); extern long double roundl (long double __x) throw () __attribute__ ((__const__)); extern long double __roundl (long double __x) throw () __attribute__ ((__const__)); extern long double truncl (long double __x) throw () __attribute__ ((__const__)); extern long double __truncl (long double __x) throw () __attribute__ ((__const__)); extern long double remquol (long double __x, long double __y, int *__quo) throw (); extern long double __remquol (long double __x, long double __y, int *__quo) throw (); extern long int lrintl (long double __x) throw (); extern long int __lrintl (long double __x) throw (); __extension__ extern long long int llrintl (long double __x) throw (); extern long long int __llrintl (long double __x) throw (); extern long int lroundl (long double __x) throw (); extern long int __lroundl (long double __x) throw (); __extension__ extern long long int llroundl (long double __x) throw (); extern long long int __llroundl (long double __x) throw (); extern long double fdiml (long double __x, long double __y) throw (); extern long double __fdiml (long double __x, long double __y) throw (); extern long double fmaxl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double __fmaxl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double fminl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double __fminl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern int __fpclassifyl (long double __value) throw () __attribute__ ((__const__)); extern int __signbitl (long double __value) throw () __attribute__ ((__const__)); extern long double fmal (long double __x, long double __y, long double __z) throw (); extern long double __fmal (long double __x, long double __y, long double __z) throw (); extern int __issignalingl (long double __value) throw () __attribute__ ((__const__)); extern long double scalbl (long double __x, long double __n) throw (); extern long double __scalbl (long double __x, long double __n) throw (); # 134 "/usr/include/math.h" 2 3 4 # 149 "/usr/include/math.h" 3 4 extern int signgam; # 190 "/usr/include/math.h" 3 4 enum { FP_NAN = 0, FP_INFINITE = 1, FP_ZERO = 2, FP_SUBNORMAL = 3, FP_NORMAL = 4 }; # 302 "/usr/include/math.h" 3 4 typedef enum { _IEEE_ = -1, _SVID_, _XOPEN_, _POSIX_, _ISOC_ } _LIB_VERSION_TYPE; extern _LIB_VERSION_TYPE _LIB_VERSION; # 325 "/usr/include/math.h" 3 4 struct __exception { int type; char *name; double arg1; double arg2; double retval; }; extern int matherr (struct __exception *__exc) throw (); # 427 "/usr/include/math.h" 3 4 # 1 "/usr/include/bits/mathinline.h" 1 3 4 # 123 "/usr/include/bits/mathinline.h" 3 4 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) int __attribute__ ((__leaf__)) __signbitf (float __x) throw () { int __m; __asm ("pmovmskb %1, %0" : "=r" (__m) : "x" (__x)); return (__m & 0x8) != 0; } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) int __attribute__ ((__leaf__)) __signbit (double __x) throw () { int __m; __asm ("pmovmskb %1, %0" : "=r" (__m) : "x" (__x)); return (__m & 0x80) != 0; } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) int __attribute__ ((__leaf__)) __signbitl (long double __x) throw () { __extension__ union { long double __l; int __i[3]; } __u = { __l: __x }; return (__u.__i[2] & 0x8000) != 0; } # 428 "/usr/include/math.h" 2 3 4 # 489 "/usr/include/math.h" 3 4 } # 45 "/usr/include/c++/5.0.0/cmath" 2 3 # 75 "/usr/include/c++/5.0.0/cmath" 3 namespace std __attribute__ ((__visibility__ ("default"))) { inline double abs(double __x) { return __builtin_fabs(__x); } inline float abs(float __x) { return __builtin_fabsf(__x); } inline long double abs(long double __x) { return __builtin_fabsl(__x); } template inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type abs(_Tp __x) { return __builtin_fabs(__x); } using ::acos; inline float acos(float __x) { return __builtin_acosf(__x); } inline long double acos(long double __x) { return __builtin_acosl(__x); } template inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type acos(_Tp __x) { return __builtin_acos(__x); } using ::asin; inline float asin(float __x) { return __builtin_asinf(__x); } inline long double asin(long double __x) { return __builtin_asinl(__x); } template inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type asin(_Tp __x) { return __builtin_asin(__x); } using ::atan; inline float atan(float __x) { return __builtin_atanf(__x); } inline long double atan(long double __x) { return __builtin_atanl(__x); } template inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type atan(_Tp __x) { return __builtin_atan(__x); } using ::atan2; inline float atan2(float __y, float __x) { return __builtin_atan2f(__y, __x); } inline long double atan2(long double __y, long double __x) { return __builtin_atan2l(__y, __x); } template inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type atan2(_Tp __y, _Up __x) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return atan2(__type(__y), __type(__x)); } using ::ceil; inline float ceil(float __x) { return __builtin_ceilf(__x); } inline long double ceil(long double __x) { return __builtin_ceill(__x); } template inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type ceil(_Tp __x) { return __builtin_ceil(__x); } using ::cos; inline float cos(float __x) { return __builtin_cosf(__x); } inline long double cos(long double __x) { return __builtin_cosl(__x); } template inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type cos(_Tp __x) { return __builtin_cos(__x); } using ::cosh; inline float cosh(float __x) { return __builtin_coshf(__x); } inline long double cosh(long double __x) { return __builtin_coshl(__x); } template inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type cosh(_Tp __x) { return __builtin_cosh(__x); } using ::exp; inline float exp(float __x) { return __builtin_expf(__x); } inline long double exp(long double __x) { return __builtin_expl(__x); } template inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type exp(_Tp __x) { return __builtin_exp(__x); } using ::fabs; inline float fabs(float __x) { return __builtin_fabsf(__x); } inline long double fabs(long double __x) { return __builtin_fabsl(__x); } template inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type fabs(_Tp __x) { return __builtin_fabs(__x); } using ::floor; inline float floor(float __x) { return __builtin_floorf(__x); } inline long double floor(long double __x) { return __builtin_floorl(__x); } template inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type floor(_Tp __x) { return __builtin_floor(__x); } using ::fmod; inline float fmod(float __x, float __y) { return __builtin_fmodf(__x, __y); } inline long double fmod(long double __x, long double __y) { return __builtin_fmodl(__x, __y); } template inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type fmod(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return fmod(__type(__x), __type(__y)); } using ::frexp; inline float frexp(float __x, int* __exp) { return __builtin_frexpf(__x, __exp); } inline long double frexp(long double __x, int* __exp) { return __builtin_frexpl(__x, __exp); } template inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type frexp(_Tp __x, int* __exp) { return __builtin_frexp(__x, __exp); } using ::ldexp; inline float ldexp(float __x, int __exp) { return __builtin_ldexpf(__x, __exp); } inline long double ldexp(long double __x, int __exp) { return __builtin_ldexpl(__x, __exp); } template inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type ldexp(_Tp __x, int __exp) { return __builtin_ldexp(__x, __exp); } using ::log; inline float log(float __x) { return __builtin_logf(__x); } inline long double log(long double __x) { return __builtin_logl(__x); } template inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type log(_Tp __x) { return __builtin_log(__x); } using ::log10; inline float log10(float __x) { return __builtin_log10f(__x); } inline long double log10(long double __x) { return __builtin_log10l(__x); } template inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type log10(_Tp __x) { return __builtin_log10(__x); } using ::modf; inline float modf(float __x, float* __iptr) { return __builtin_modff(__x, __iptr); } inline long double modf(long double __x, long double* __iptr) { return __builtin_modfl(__x, __iptr); } using ::pow; inline float pow(float __x, float __y) { return __builtin_powf(__x, __y); } inline long double pow(long double __x, long double __y) { return __builtin_powl(__x, __y); } inline double pow(double __x, int __i) { return __builtin_powi(__x, __i); } inline float pow(float __x, int __n) { return __builtin_powif(__x, __n); } inline long double pow(long double __x, int __n) { return __builtin_powil(__x, __n); } template inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type pow(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return pow(__type(__x), __type(__y)); } using ::sin; inline float sin(float __x) { return __builtin_sinf(__x); } inline long double sin(long double __x) { return __builtin_sinl(__x); } template inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type sin(_Tp __x) { return __builtin_sin(__x); } using ::sinh; inline float sinh(float __x) { return __builtin_sinhf(__x); } inline long double sinh(long double __x) { return __builtin_sinhl(__x); } template inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type sinh(_Tp __x) { return __builtin_sinh(__x); } using ::sqrt; inline float sqrt(float __x) { return __builtin_sqrtf(__x); } inline long double sqrt(long double __x) { return __builtin_sqrtl(__x); } template inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type sqrt(_Tp __x) { return __builtin_sqrt(__x); } using ::tan; inline float tan(float __x) { return __builtin_tanf(__x); } inline long double tan(long double __x) { return __builtin_tanl(__x); } template inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type tan(_Tp __x) { return __builtin_tan(__x); } using ::tanh; inline float tanh(float __x) { return __builtin_tanhf(__x); } inline long double tanh(long double __x) { return __builtin_tanhl(__x); } template inline typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type tanh(_Tp __x) { return __builtin_tanh(__x); } } # 555 "/usr/include/c++/5.0.0/cmath" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 806 "/usr/include/c++/5.0.0/cmath" 3 template inline typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value, int>::__type fpclassify(_Tp __f) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __builtin_fpclassify(0, 1, 4, 3, 2, __type(__f)); } template inline typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value, int>::__type isfinite(_Tp __f) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __builtin_isfinite(__type(__f)); } template inline typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value, int>::__type isinf(_Tp __f) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __builtin_isinf(__type(__f)); } template inline typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value, int>::__type isnan(_Tp __f) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __builtin_isnan(__type(__f)); } template inline typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value, int>::__type isnormal(_Tp __f) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __builtin_isnormal(__type(__f)); } template inline typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value, int>::__type signbit(_Tp __f) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __builtin_signbit(__type(__f)); } template inline typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value, int>::__type isgreater(_Tp __f1, _Tp __f2) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __builtin_isgreater(__type(__f1), __type(__f2)); } template inline typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value, int>::__type isgreaterequal(_Tp __f1, _Tp __f2) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __builtin_isgreaterequal(__type(__f1), __type(__f2)); } template inline typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value, int>::__type isless(_Tp __f1, _Tp __f2) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __builtin_isless(__type(__f1), __type(__f2)); } template inline typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value, int>::__type islessequal(_Tp __f1, _Tp __f2) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __builtin_islessequal(__type(__f1), __type(__f2)); } template inline typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value, int>::__type islessgreater(_Tp __f1, _Tp __f2) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __builtin_islessgreater(__type(__f1), __type(__f2)); } template inline typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value, int>::__type isunordered(_Tp __f1, _Tp __f2) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __builtin_isunordered(__type(__f1), __type(__f2)); } } # 22 "/usr/include/boost/config/no_tr1/cmath.hpp" 2 3 4 # 16 "/usr/include/boost/numeric/conversion/converter_policies.hpp" 2 3 4 # 1 "/usr/include/c++/5.0.0/functional" 1 3 4 # 46 "/usr/include/c++/5.0.0/functional" 3 4 # 47 "/usr/include/c++/5.0.0/functional" 3 # 19 "/usr/include/boost/numeric/conversion/converter_policies.hpp" 2 3 4 namespace boost { namespace numeric { template struct Trunc { typedef S source_type ; typedef typename mpl::if_< is_arithmetic,S,S const&>::type argument_type ; static source_type nearbyint ( argument_type s ) { using std::floor ; using std::ceil ; return s < static_cast(0) ? ceil(s) : floor(s) ; } typedef mpl::integral_c< std::float_round_style, std::round_toward_zero> round_style ; } ; template struct Floor { typedef S source_type ; typedef typename mpl::if_< is_arithmetic,S,S const&>::type argument_type ; static source_type nearbyint ( argument_type s ) { using std::floor ; return floor(s) ; } typedef mpl::integral_c< std::float_round_style, std::round_toward_neg_infinity> round_style ; } ; template struct Ceil { typedef S source_type ; typedef typename mpl::if_< is_arithmetic,S,S const&>::type argument_type ; static source_type nearbyint ( argument_type s ) { using std::ceil ; return ceil(s) ; } typedef mpl::integral_c< std::float_round_style, std::round_toward_infinity> round_style ; } ; template struct RoundEven { typedef S source_type ; typedef typename mpl::if_< is_arithmetic,S,S const&>::type argument_type ; static source_type nearbyint ( argument_type s ) { using std::floor ; using std::ceil ; S prev = floor(s); S next = ceil(s); S rt = (s - prev) - (next - s); S const zero(0.0); S const two(2.0); if ( rt < zero ) return prev; else if ( rt > zero ) return next; else { bool is_prev_even = two * floor(prev / two) == prev ; return ( is_prev_even ? prev : next ) ; } } typedef mpl::integral_c< std::float_round_style, std::round_to_nearest> round_style ; } ; enum range_check_result { cInRange = 0 , cNegOverflow = 1 , cPosOverflow = 2 } ; class bad_numeric_cast : public std::bad_cast { public: virtual const char * what() const throw() { return "bad numeric conversion: overflow"; } }; class negative_overflow : public bad_numeric_cast { public: virtual const char * what() const throw() { return "bad numeric conversion: negative overflow"; } }; class positive_overflow : public bad_numeric_cast { public: virtual const char * what() const throw() { return "bad numeric conversion: positive overflow"; } }; struct def_overflow_handler { void operator() ( range_check_result r ) { if ( r == cNegOverflow ) throw negative_overflow() ; else if ( r == cPosOverflow ) throw positive_overflow() ; } } ; struct silent_overflow_handler { void operator() ( range_check_result ) {} } ; template struct raw_converter { typedef typename Traits::result_type result_type ; typedef typename Traits::argument_type argument_type ; static result_type low_level_convert ( argument_type s ) { return static_cast(s) ; } } ; struct UseInternalRangeChecker {} ; } } # 15 "/usr/include/boost/numeric/conversion/converter.hpp" 2 3 4 # 1 "/usr/include/boost/numeric/conversion/detail/converter.hpp" 1 3 4 # 17 "/usr/include/boost/numeric/conversion/detail/converter.hpp" 3 4 # 1 "/usr/include/boost/numeric/conversion/bounds.hpp" 1 3 4 # 13 "/usr/include/boost/numeric/conversion/bounds.hpp" 3 4 # 1 "/usr/include/boost/numeric/conversion/detail/bounds.hpp" 1 3 4 # 17 "/usr/include/boost/numeric/conversion/detail/bounds.hpp" 3 4 namespace boost { namespace numeric { namespace boundsdetail { template class Integral { typedef std::numeric_limits limits ; public : static N lowest () { return limits::min (); } static N highest () { return limits::max (); } static N smallest() { return static_cast(1); } } ; template class Float { typedef std::numeric_limits limits ; public : static N lowest () { return static_cast(-limits::max ()) ; } static N highest () { return limits::max (); } static N smallest() { return limits::min (); } } ; template struct get_impl { typedef mpl::bool_< ::std::numeric_limits::is_integer > is_int ; typedef Integral impl_int ; typedef Float impl_float ; typedef typename mpl::if_::type type ; } ; } } } # 14 "/usr/include/boost/numeric/conversion/bounds.hpp" 2 3 4 namespace boost { namespace numeric { template struct bounds : boundsdetail::get_impl::type {} ; } } # 18 "/usr/include/boost/numeric/conversion/detail/converter.hpp" 2 3 4 namespace boost { namespace numeric { namespace convdetail { typedef mpl::integral_c round2zero_c ; typedef mpl::integral_c round2nearest_c ; typedef mpl::integral_c round2inf_c ; typedef mpl::integral_c round2neg_inf_c ; # 40 "/usr/include/boost/numeric/conversion/detail/converter.hpp" 3 4 template struct for_round_style { typedef ct_switch4 selector ; typedef typename selector::type type ; } ; # 81 "/usr/include/boost/numeric/conversion/detail/converter.hpp" 3 4 struct non_applicable { typedef mpl::false_ do_apply ; } ; struct applicable { typedef mpl::true_ do_apply ; } ; # 96 "/usr/include/boost/numeric/conversion/detail/converter.hpp" 3 4 template struct LT_LoT : applicable { typedef typename Traits::target_type T ; typedef typename Traits::source_type S ; typedef typename Traits::argument_type argument_type ; static range_check_result apply ( argument_type s ) { return s < static_cast(bounds::lowest()) ? cNegOverflow : cInRange ; } } ; template struct LT_Zero : applicable { typedef typename Traits::source_type S ; typedef typename Traits::argument_type argument_type ; static range_check_result apply ( argument_type s ) { return s < static_cast(0) ? cNegOverflow : cInRange ; } } ; template struct LE_PrevLoT : applicable { typedef typename Traits::target_type T ; typedef typename Traits::source_type S ; typedef typename Traits::argument_type argument_type ; static range_check_result apply ( argument_type s ) { return s <= static_cast(bounds::lowest()) - static_cast(1.0) ? cNegOverflow : cInRange ; } } ; template struct LT_HalfPrevLoT : applicable { typedef typename Traits::target_type T ; typedef typename Traits::source_type S ; typedef typename Traits::argument_type argument_type ; static range_check_result apply ( argument_type s ) { return s < static_cast(bounds::lowest()) - static_cast(0.5) ? cNegOverflow : cInRange ; } } ; template struct GT_HiT : applicable { typedef typename Traits::target_type T ; typedef typename Traits::source_type S ; typedef typename Traits::argument_type argument_type ; static range_check_result apply ( argument_type s ) { return s > static_cast(bounds::highest()) ? cPosOverflow : cInRange ; } } ; template struct GE_SuccHiT : applicable { typedef typename Traits::target_type T ; typedef typename Traits::source_type S ; typedef typename Traits::argument_type argument_type ; static range_check_result apply ( argument_type s ) { return s >= static_cast(bounds::highest()) + static_cast(1.0) ? cPosOverflow : cInRange ; } } ; template struct GT_HalfSuccHiT : applicable { typedef typename Traits::target_type T ; typedef typename Traits::source_type S ; typedef typename Traits::argument_type argument_type ; static range_check_result apply ( argument_type s ) { return s >= static_cast(bounds::highest()) + static_cast(0.5) ? cPosOverflow : cInRange ; } } ; # 215 "/usr/include/boost/numeric/conversion/detail/converter.hpp" 3 4 template struct applyBoth { typedef typename PredA::argument_type argument_type ; static range_check_result apply ( argument_type s ) { range_check_result r = PredA::apply(s) ; if ( r == cInRange ) r = PredB::apply(s); return r ; } } ; template struct combine { typedef applyBoth Both ; typedef void NNone ; typedef typename PredA::do_apply do_applyA ; typedef typename PredB::do_apply do_applyB ; typedef typename for_both::type type ; } ; # 262 "/usr/include/boost/numeric/conversion/detail/converter.hpp" 3 4 template struct dummy_range_checker { typedef typename Traits::argument_type argument_type ; static range_check_result out_of_range ( argument_type ) { return cInRange ; } static void validate_range ( argument_type ) {} } ; # 279 "/usr/include/boost/numeric/conversion/detail/converter.hpp" 3 4 template struct generic_range_checker { typedef OverflowHandler overflow_handler ; typedef typename Traits::argument_type argument_type ; static range_check_result out_of_range ( argument_type s ) { typedef typename combine::type Predicate ; return Predicate::apply(s); } static void validate_range ( argument_type s ) { OverflowHandler()( out_of_range(s) ) ; } } ; # 305 "/usr/include/boost/numeric/conversion/detail/converter.hpp" 3 4 template struct GetRC_Sig2Sig_or_Unsig2Unsig { typedef dummy_range_checker Dummy ; typedef LT_LoT Pred1 ; typedef GT_HiT Pred2 ; typedef generic_range_checker Normal ; typedef typename Traits::subranged subranged ; typedef typename mpl::if_::type type ; } ; template struct GetRC_Sig2Unsig { typedef LT_Zero Pred1 ; typedef GT_HiT Pred2 ; typedef generic_range_checker ChoiceA ; typedef generic_range_checker ChoiceB ; typedef typename Traits::target_type T ; typedef typename Traits::source_type S ; typedef typename subranged_Unsig2Sig::type oposite_subranged ; typedef typename mpl::not_::type positively_subranged ; typedef typename mpl::if_::type type ; } ; template struct GetRC_Unsig2Sig { typedef GT_HiT Pred1 ; typedef generic_range_checker type ; } ; template struct GetRC_Int2Int { typedef GetRC_Sig2Sig_or_Unsig2Unsig Sig2SigQ ; typedef GetRC_Sig2Unsig Sig2UnsigQ ; typedef GetRC_Unsig2Sig Unsig2SigQ ; typedef Sig2SigQ Unsig2UnsigQ ; typedef typename Traits::sign_mixture sign_mixture ; typedef typename for_sign_mixture::type selector ; typedef typename selector::type type ; } ; template struct GetRC_Int2Float { typedef dummy_range_checker type ; } ; template struct GetRC_Float2Int { typedef LE_PrevLoT Pred1 ; typedef GE_SuccHiT Pred2 ; typedef LT_HalfPrevLoT Pred3 ; typedef GT_HalfSuccHiT Pred4 ; typedef GT_HiT Pred5 ; typedef LT_LoT Pred6 ; typedef generic_range_checker ToZero ; typedef generic_range_checker ToNearest ; typedef generic_range_checker ToInf ; typedef generic_range_checker ToNegInf ; typedef typename Float2IntRounder::round_style round_style ; typedef typename for_round_style::type type ; } ; template struct GetRC_Float2Float { typedef dummy_range_checker Dummy ; typedef LT_LoT Pred1 ; typedef GT_HiT Pred2 ; typedef generic_range_checker Normal ; typedef typename Traits::subranged subranged ; typedef typename mpl::if_::type type ; } ; template struct GetRC_BuiltIn2BuiltIn { typedef GetRC_Int2Int Int2IntQ ; typedef GetRC_Int2Float Int2FloatQ ; typedef GetRC_Float2Int Float2IntQ ; typedef GetRC_Float2Float Float2FloatQ ; typedef typename Traits::int_float_mixture int_float_mixture ; typedef typename for_int_float_mixture::type selector ; typedef typename selector::type type ; } ; template struct GetRC { typedef GetRC_BuiltIn2BuiltIn BuiltIn2BuiltInQ ; typedef dummy_range_checker Dummy ; typedef mpl::identity DummyQ ; typedef typename Traits::udt_builtin_mixture udt_builtin_mixture ; typedef typename for_udt_builtin_mixture::type selector ; typedef typename selector::type type ; } ; # 452 "/usr/include/boost/numeric/conversion/detail/converter.hpp" 3 4 template struct trivial_converter_impl : public std::unary_function< typename Traits::argument_type ,typename Traits::result_type > ,public dummy_range_checker { typedef Traits traits ; typedef typename Traits::source_type source_type ; typedef typename Traits::argument_type argument_type ; typedef typename Traits::result_type result_type ; static result_type low_level_convert ( argument_type s ) { return s ; } static source_type nearbyint ( argument_type s ) { return s ; } static result_type convert ( argument_type s ) { return s ; } } ; template struct rounding_converter : public std::unary_function< typename Traits::argument_type ,typename Traits::result_type > ,public RangeChecker ,public Float2IntRounder ,public RawConverter { typedef RangeChecker RangeCheckerBase ; typedef Float2IntRounder Float2IntRounderBase ; typedef RawConverter RawConverterBase ; typedef Traits traits ; typedef typename Traits::source_type source_type ; typedef typename Traits::argument_type argument_type ; typedef typename Traits::result_type result_type ; static result_type convert ( argument_type s ) { RangeCheckerBase::validate_range(s); source_type s1 = Float2IntRounderBase::nearbyint(s); return RawConverterBase::low_level_convert(s1); } } ; template struct non_rounding_converter : public std::unary_function< typename Traits::argument_type ,typename Traits::result_type > ,public RangeChecker ,public RawConverter { typedef RangeChecker RangeCheckerBase ; typedef RawConverter RawConverterBase ; typedef Traits traits ; typedef typename Traits::source_type source_type ; typedef typename Traits::argument_type argument_type ; typedef typename Traits::result_type result_type ; static source_type nearbyint ( argument_type s ) { return s ; } static result_type convert ( argument_type s ) { RangeCheckerBase::validate_range(s); return RawConverterBase::low_level_convert(s); } } ; # 537 "/usr/include/boost/numeric/conversion/detail/converter.hpp" 3 4 template struct get_non_trivial_converter { typedef GetRC InternalRangeCheckerQ ; typedef is_same use_internal_RC ; typedef mpl::identity UserRangeCheckerQ ; typedef typename mpl::eval_if::type RangeChecker ; typedef non_rounding_converter NonRounding ; typedef rounding_converter Rounding ; typedef mpl::identity NonRoundingQ ; typedef mpl::identity RoundingQ ; typedef typename Traits::int_float_mixture int_float_mixture ; typedef typename for_int_float_mixture::type selector ; typedef typename selector::type type ; } ; template< class Traits ,class OverflowHandler ,class Float2IntRounder ,class RawConverter ,class UserRangeChecker > struct get_converter_impl { # 583 "/usr/include/boost/numeric/conversion/detail/converter.hpp" 3 4 typedef trivial_converter_impl Trivial ; typedef mpl::identity TrivialQ ; typedef get_non_trivial_converter< Traits ,OverflowHandler ,Float2IntRounder ,RawConverter ,UserRangeChecker > NonTrivialQ ; typedef typename Traits::trivial trivial ; typedef typename mpl::eval_if::type type ; } ; } } } # 17 "/usr/include/boost/numeric/conversion/converter.hpp" 2 3 4 namespace boost { namespace numeric { template, class OverflowHandler = def_overflow_handler, class Float2IntRounder = Trunc< typename Traits::source_type> , class RawConverter = raw_converter, class UserRangeChecker = UseInternalRangeChecker > struct converter : convdetail::get_converter_impl::type { typedef Traits traits ; typedef typename Traits::argument_type argument_type ; typedef typename Traits::result_type result_type ; result_type operator() ( argument_type s ) const { return this->convert(s) ; } } ; template , class UserRangeChecker = UseInternalRangeChecker > struct make_converter_from { template, class RawConverter = raw_converter > struct to { typedef converter type ; } ; } ; } } # 34 "/usr/include/boost/numeric/conversion/cast.hpp" 2 3 4 # 1 "/usr/include/boost/numeric/conversion/numeric_cast_traits.hpp" 1 3 4 # 14 "/usr/include/boost/numeric/conversion/numeric_cast_traits.hpp" 3 4 namespace boost { namespace numeric { template struct numeric_cast_traits { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; }} # 1 "/usr/include/boost/cstdint.hpp" 1 3 4 # 28 "/usr/include/boost/numeric/conversion/numeric_cast_traits.hpp" 2 3 4 # 1 "/usr/include/boost/numeric/conversion/detail/numeric_cast_traits.hpp" 1 3 4 # 12 "/usr/include/boost/numeric/conversion/detail/numeric_cast_traits.hpp" 3 4 # 1 "/usr/include/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_common.hpp" 1 3 4 # 12 "/usr/include/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_common.hpp" 3 4 namespace boost { namespace numeric { template <> struct numeric_cast_traits < char , char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < char , signed char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < char , unsigned char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < char , short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < char , unsigned short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < char , int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < char , unsigned int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < char , long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < char , unsigned long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < char , float > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < char , double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < char , long double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < signed char , char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < signed char , signed char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < signed char , unsigned char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < signed char , short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < signed char , unsigned short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < signed char , int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < signed char , unsigned int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < signed char , long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < signed char , unsigned long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < signed char , float > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < signed char , double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < signed char , long double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , signed char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , unsigned char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , unsigned short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , unsigned int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , unsigned long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , float > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , long double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < short , char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < short , signed char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < short , unsigned char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < short , short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < short , unsigned short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < short , int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < short , unsigned int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < short , long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < short , unsigned long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < short , float > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < short , double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < short , long double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , signed char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , unsigned char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , unsigned short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , unsigned int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , unsigned long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , float > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , long double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < int , char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < int , signed char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < int , unsigned char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < int , short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < int , unsigned short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < int , int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < int , unsigned int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < int , long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < int , unsigned long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < int , float > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < int , double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < int , long double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , signed char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , unsigned char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , unsigned short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , unsigned int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , unsigned long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , float > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , long double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long , char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long , signed char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long , unsigned char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long , short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long , unsigned short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long , int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long , unsigned int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long , long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long , unsigned long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long , float > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long , double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long , long double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , signed char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , unsigned char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , unsigned short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , unsigned int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , unsigned long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , float > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , long double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < float , char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < float , signed char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < float , unsigned char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < float , short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < float , unsigned short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < float , int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < float , unsigned int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < float , long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < float , unsigned long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < float , float > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < float , double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < float , long double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < double , char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < double , signed char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < double , unsigned char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < double , short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < double , unsigned short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < double , int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < double , unsigned int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < double , long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < double , unsigned long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < double , float > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < double , double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < double , long double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long double , char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long double , signed char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long double , unsigned char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long double , short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long double , unsigned short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long double , int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long double , unsigned int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long double , long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long double , unsigned long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long double , float > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long double , double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long double , long double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; }} # 13 "/usr/include/boost/numeric/conversion/detail/numeric_cast_traits.hpp" 2 3 4 # 1 "/usr/include/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_long_long.hpp" 1 3 4 # 9 "/usr/include/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_long_long.hpp" 3 4 namespace boost { namespace numeric { template <> struct numeric_cast_traits < char , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < char , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < signed char , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < signed char , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < short , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < short , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < int , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < int , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < float , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < float , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < double , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < double , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long double , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < long double , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < boost::long_long_type , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < boost::long_long_type , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < boost::ulong_long_type , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; template <> struct numeric_cast_traits < boost::ulong_long_type , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc rounding_policy; }; }} # 16 "/usr/include/boost/numeric/conversion/detail/numeric_cast_traits.hpp" 2 3 4 # 29 "/usr/include/boost/numeric/conversion/numeric_cast_traits.hpp" 2 3 4 # 35 "/usr/include/boost/numeric/conversion/cast.hpp" 2 3 4 namespace boost { template inline Target numeric_cast( Source arg ) { typedef numeric::conversion_traits conv_traits; typedef numeric::numeric_cast_traits cast_traits; typedef boost::numeric::converter < Target, Source, conv_traits, typename cast_traits::overflow_policy, typename cast_traits::rounding_policy, boost::numeric::raw_converter< conv_traits >, typename cast_traits::range_checking_policy > converter; return converter::convert(arg); } using numeric::bad_numeric_cast; } # 36 "/usr/include/boost/lexical_cast/detail/converter_numeric.hpp" 2 3 4 namespace boost { namespace detail { template struct detect_precision_loss { typedef Source source_type; typedef boost::numeric::Trunc Rounder; typedef typename mpl::if_< boost::is_arithmetic, Source, Source const& >::type argument_type ; static inline source_type nearbyint(argument_type s, bool& is_ok) { const source_type near_int = Rounder::nearbyint(s); if (near_int && is_ok) { const source_type orig_div_round = s / near_int; const source_type eps = std::numeric_limits::epsilon(); is_ok = !((orig_div_round > 1 ? orig_div_round - 1 : 1 - orig_div_round) > eps); } return s; } typedef typename Rounder::round_style round_style; }; template struct fake_precision_loss: public Base { typedef Source source_type ; typedef typename mpl::if_< boost::is_arithmetic, Source, Source const& >::type argument_type ; static inline source_type nearbyint(argument_type s, bool& ) { return s; } }; struct nothrow_overflow_handler { inline bool operator() ( boost::numeric::range_check_result r ) const { return (r == boost::numeric::cInRange); } }; template inline bool noexcept_numeric_convert(const Source& arg, Target& result) { typedef boost::numeric::converter< Target, Source, boost::numeric::conversion_traits, nothrow_overflow_handler, detect_precision_loss > converter_orig_t; typedef typename boost::mpl::if_c< boost::is_base_of< detect_precision_loss, converter_orig_t >::value, converter_orig_t, fake_precision_loss >::type converter_t; bool res = nothrow_overflow_handler()(converter_t::out_of_range(arg)); result = converter_t::low_level_convert(converter_t::nearbyint(arg, res)); return res; } template struct lexical_cast_dynamic_num_not_ignoring_minus { static inline bool try_convert(const Source &arg, Target& result) { return noexcept_numeric_convert(arg, result); } }; template struct lexical_cast_dynamic_num_ignoring_minus { static inline bool try_convert(const Source &arg, Target& result) { typedef typename boost::mpl::eval_if_c< boost::is_float::value, boost::mpl::identity, boost::make_unsigned >::type usource_t; if (arg < 0) { const bool res = noexcept_numeric_convert(0u - arg, result); result = static_cast(0u - result); return res; } else { return noexcept_numeric_convert(arg, result); } } }; # 150 "/usr/include/boost/lexical_cast/detail/converter_numeric.hpp" 3 4 template struct dynamic_num_converter_impl { static inline bool try_convert(const Source &arg, Target& result) { typedef typename boost::mpl::if_c< boost::type_traits::ice_and< boost::is_unsigned::value, boost::type_traits::ice_or< boost::is_signed::value, boost::is_float::value >::value, boost::type_traits::ice_not< boost::is_same::value >::value, boost::type_traits::ice_not< boost::is_same::value >::value >::value, lexical_cast_dynamic_num_ignoring_minus, lexical_cast_dynamic_num_not_ignoring_minus >::type caster_type; return caster_type::try_convert(arg, result); } }; }} # 34 "/usr/include/boost/lexical_cast/try_lexical_convert.hpp" 2 3 4 # 1 "/usr/include/boost/lexical_cast/detail/converter_lexical.hpp" 1 3 4 # 23 "/usr/include/boost/lexical_cast/detail/converter_lexical.hpp" 3 4 # 37 "/usr/include/boost/lexical_cast/detail/converter_lexical.hpp" 3 4 # 1 "/usr/include/boost/type_traits/has_left_shift.hpp" 1 3 4 # 43 "/usr/include/boost/type_traits/has_left_shift.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 1 3 4 # 25 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 26 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 2 3 4 # 40 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 4 # 41 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 namespace boost { namespace detail { namespace has_left_shift_impl { template T &make(); struct no_operator { }; struct any { template any(T const&); }; no_operator operator << (const any&, const any&); # 82 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 struct returns_void_t { }; template int operator,(const T&, returns_void_t); template int operator,(const volatile T&, returns_void_t); template < typename Lhs, typename Rhs > struct operator_returns_void { static ::boost::type_traits::yes_type returns_void(returns_void_t); static ::boost::type_traits::no_type returns_void(int); static const bool value = (sizeof(::boost::type_traits::yes_type)==sizeof(returns_void((make() << make(),returns_void_t())))); }; struct dont_care { }; template < typename Lhs, typename Rhs, typename Ret, bool Returns_void > struct operator_returns_Ret; template < typename Lhs, typename Rhs > struct operator_returns_Ret < Lhs, Rhs, dont_care, true > { static const bool value = true; }; template < typename Lhs, typename Rhs > struct operator_returns_Ret < Lhs, Rhs, dont_care, false > { static const bool value = true; }; template < typename Lhs, typename Rhs > struct operator_returns_Ret < Lhs, Rhs, void, true > { static const bool value = true; }; template < typename Lhs, typename Rhs > struct operator_returns_Ret < Lhs, Rhs, void, false > { static const bool value = false; }; template < typename Lhs, typename Rhs, typename Ret > struct operator_returns_Ret < Lhs, Rhs, Ret, true > { static const bool value = false; }; template < typename Lhs, typename Rhs, typename Ret > struct operator_returns_Ret < Lhs, Rhs, Ret, false > { static ::boost::type_traits::yes_type is_convertible_to_Ret(Ret); static ::boost::type_traits::no_type is_convertible_to_Ret(...); static const bool value = (sizeof(is_convertible_to_Ret(make() << make()))==sizeof(::boost::type_traits::yes_type)); }; # 150 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 struct has_operator { }; no_operator operator,(no_operator, has_operator); template < typename Lhs, typename Rhs > struct operator_exists { static ::boost::type_traits::yes_type s_check(has_operator); static ::boost::type_traits::no_type s_check(no_operator); static const bool value = (sizeof(s_check(((make() << make()),make())))==sizeof(::boost::type_traits::yes_type)); }; # 169 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 template < typename Lhs, typename Rhs, typename Ret, bool Forbidden_if > struct trait_impl1; template < typename Lhs, typename Rhs, typename Ret > struct trait_impl1 < Lhs, Rhs, Ret, true > { static const bool value = false; }; template < typename Lhs, typename Rhs, typename Ret > struct trait_impl1 < Lhs, Rhs, Ret, false > { static const bool value = ( ::boost::type_traits::ice_and< operator_exists < Lhs, Rhs >::value, operator_returns_Ret < Lhs, Rhs, Ret, operator_returns_void < Lhs, Rhs >::value >::value >::value ) ; }; template < typename Rhs, typename Ret > struct trait_impl1 < void, Rhs, Ret, false > { static const bool value = false; }; template < typename Lhs, typename Ret > struct trait_impl1 < Lhs, void, Ret, false > { static const bool value = false; }; template < typename Ret > struct trait_impl1 < void, void, Ret, false > { static const bool value = false; }; template < typename Lhs, typename Rhs, typename Ret > struct trait_impl { typedef typename ::boost::remove_reference::type Lhs_noref; typedef typename ::boost::remove_reference::type Rhs_noref; typedef typename ::boost::remove_cv::type Lhs_nocv; typedef typename ::boost::remove_cv::type Rhs_nocv; typedef typename ::boost::remove_cv< typename ::boost::remove_reference< typename ::boost::remove_pointer::type >::type >::type Lhs_noptr; typedef typename ::boost::remove_cv< typename ::boost::remove_reference< typename ::boost::remove_pointer::type >::type >::type Rhs_noptr; static const bool value = (trait_impl1 < Lhs_noref, Rhs_noref, Ret, ::boost::type_traits::ice_or< ::boost::type_traits::ice_and< ::boost::is_fundamental< Lhs_nocv >::value, ::boost::is_fundamental< Rhs_nocv >::value, ::boost::type_traits::ice_or< ::boost::type_traits::ice_not< ::boost::is_integral< Lhs_noref >::value >::value, ::boost::type_traits::ice_not< ::boost::is_integral< Rhs_noref >::value >::value >::value >::value, ::boost::type_traits::ice_and< ::boost::is_fundamental< Lhs_nocv >::value, ::boost::is_pointer< Rhs_noref >::value >::value, ::boost::type_traits::ice_and< ::boost::is_fundamental< Rhs_nocv >::value, ::boost::is_pointer< Lhs_noref >::value >::value, ::boost::type_traits::ice_and< ::boost::is_pointer< Lhs_noref >::value, ::boost::is_pointer< Rhs_noref >::value >::value >::value >::value); }; } } template< typename Lhs, typename Rhs=Lhs, typename Ret=::boost::detail::has_left_shift_impl::dont_care > struct has_left_shift : public ::boost::integral_constant::value)> { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 229 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 2 3 # 44 "/usr/include/boost/type_traits/has_left_shift.hpp" 2 3 4 # 38 "/usr/include/boost/lexical_cast/detail/converter_lexical.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/has_right_shift.hpp" 1 3 4 # 43 "/usr/include/boost/type_traits/has_right_shift.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 1 3 4 # 25 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 26 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 2 3 4 # 40 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 4 # 41 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 namespace boost { namespace detail { namespace has_right_shift_impl { template T &make(); struct no_operator { }; struct any { template any(T const&); }; no_operator operator >> (const any&, const any&); # 82 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 struct returns_void_t { }; template int operator,(const T&, returns_void_t); template int operator,(const volatile T&, returns_void_t); template < typename Lhs, typename Rhs > struct operator_returns_void { static ::boost::type_traits::yes_type returns_void(returns_void_t); static ::boost::type_traits::no_type returns_void(int); static const bool value = (sizeof(::boost::type_traits::yes_type)==sizeof(returns_void((make() >> make(),returns_void_t())))); }; struct dont_care { }; template < typename Lhs, typename Rhs, typename Ret, bool Returns_void > struct operator_returns_Ret; template < typename Lhs, typename Rhs > struct operator_returns_Ret < Lhs, Rhs, dont_care, true > { static const bool value = true; }; template < typename Lhs, typename Rhs > struct operator_returns_Ret < Lhs, Rhs, dont_care, false > { static const bool value = true; }; template < typename Lhs, typename Rhs > struct operator_returns_Ret < Lhs, Rhs, void, true > { static const bool value = true; }; template < typename Lhs, typename Rhs > struct operator_returns_Ret < Lhs, Rhs, void, false > { static const bool value = false; }; template < typename Lhs, typename Rhs, typename Ret > struct operator_returns_Ret < Lhs, Rhs, Ret, true > { static const bool value = false; }; template < typename Lhs, typename Rhs, typename Ret > struct operator_returns_Ret < Lhs, Rhs, Ret, false > { static ::boost::type_traits::yes_type is_convertible_to_Ret(Ret); static ::boost::type_traits::no_type is_convertible_to_Ret(...); static const bool value = (sizeof(is_convertible_to_Ret(make() >> make()))==sizeof(::boost::type_traits::yes_type)); }; # 150 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 struct has_operator { }; no_operator operator,(no_operator, has_operator); template < typename Lhs, typename Rhs > struct operator_exists { static ::boost::type_traits::yes_type s_check(has_operator); static ::boost::type_traits::no_type s_check(no_operator); static const bool value = (sizeof(s_check(((make() >> make()),make())))==sizeof(::boost::type_traits::yes_type)); }; # 169 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 3 template < typename Lhs, typename Rhs, typename Ret, bool Forbidden_if > struct trait_impl1; template < typename Lhs, typename Rhs, typename Ret > struct trait_impl1 < Lhs, Rhs, Ret, true > { static const bool value = false; }; template < typename Lhs, typename Rhs, typename Ret > struct trait_impl1 < Lhs, Rhs, Ret, false > { static const bool value = ( ::boost::type_traits::ice_and< operator_exists < Lhs, Rhs >::value, operator_returns_Ret < Lhs, Rhs, Ret, operator_returns_void < Lhs, Rhs >::value >::value >::value ) ; }; template < typename Rhs, typename Ret > struct trait_impl1 < void, Rhs, Ret, false > { static const bool value = false; }; template < typename Lhs, typename Ret > struct trait_impl1 < Lhs, void, Ret, false > { static const bool value = false; }; template < typename Ret > struct trait_impl1 < void, void, Ret, false > { static const bool value = false; }; template < typename Lhs, typename Rhs, typename Ret > struct trait_impl { typedef typename ::boost::remove_reference::type Lhs_noref; typedef typename ::boost::remove_reference::type Rhs_noref; typedef typename ::boost::remove_cv::type Lhs_nocv; typedef typename ::boost::remove_cv::type Rhs_nocv; typedef typename ::boost::remove_cv< typename ::boost::remove_reference< typename ::boost::remove_pointer::type >::type >::type Lhs_noptr; typedef typename ::boost::remove_cv< typename ::boost::remove_reference< typename ::boost::remove_pointer::type >::type >::type Rhs_noptr; static const bool value = (trait_impl1 < Lhs_noref, Rhs_noref, Ret, ::boost::type_traits::ice_or< ::boost::type_traits::ice_and< ::boost::is_fundamental< Lhs_nocv >::value, ::boost::is_fundamental< Rhs_nocv >::value, ::boost::type_traits::ice_or< ::boost::type_traits::ice_not< ::boost::is_integral< Lhs_noref >::value >::value, ::boost::type_traits::ice_not< ::boost::is_integral< Rhs_noref >::value >::value >::value >::value, ::boost::type_traits::ice_and< ::boost::is_fundamental< Lhs_nocv >::value, ::boost::is_pointer< Rhs_noref >::value >::value, ::boost::type_traits::ice_and< ::boost::is_fundamental< Rhs_nocv >::value, ::boost::is_pointer< Lhs_noref >::value >::value, ::boost::type_traits::ice_and< ::boost::is_pointer< Lhs_noref >::value, ::boost::is_pointer< Rhs_noref >::value >::value >::value >::value); }; } } template< typename Lhs, typename Rhs=Lhs, typename Ret=::boost::detail::has_right_shift_impl::dont_care > struct has_right_shift : public ::boost::integral_constant::value)> { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 229 "/usr/include/boost/type_traits/detail/has_binary_operator.hpp" 2 3 # 44 "/usr/include/boost/type_traits/has_right_shift.hpp" 2 3 4 # 39 "/usr/include/boost/lexical_cast/detail/converter_lexical.hpp" 2 3 4 # 1 "/usr/include/boost/detail/lcast_precision.hpp" 1 3 4 # 11 "/usr/include/boost/detail/lcast_precision.hpp" 3 4 # 1 "/usr/include/c++/5.0.0/climits" 1 3 4 # 39 "/usr/include/c++/5.0.0/climits" 3 4 # 40 "/usr/include/c++/5.0.0/climits" 3 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/limits.h" 1 3 4 # 34 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/limits.h" 3 4 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/syslimits.h" 1 3 4 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/limits.h" 1 3 4 # 168 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/limits.h" 3 4 # 1 "/usr/include/limits.h" 1 3 4 # 143 "/usr/include/limits.h" 3 4 # 1 "/usr/include/bits/posix1_lim.h" 1 3 4 # 160 "/usr/include/bits/posix1_lim.h" 3 4 # 1 "/usr/include/bits/local_lim.h" 1 3 4 # 38 "/usr/include/bits/local_lim.h" 3 4 # 1 "/usr/include/linux/limits.h" 1 3 4 # 39 "/usr/include/bits/local_lim.h" 2 3 4 # 161 "/usr/include/bits/posix1_lim.h" 2 3 4 # 144 "/usr/include/limits.h" 2 3 4 # 1 "/usr/include/bits/posix2_lim.h" 1 3 4 # 148 "/usr/include/limits.h" 2 3 4 # 1 "/usr/include/bits/xopen_lim.h" 1 3 4 # 33 "/usr/include/bits/xopen_lim.h" 3 4 # 1 "/usr/include/bits/stdio_lim.h" 1 3 4 # 34 "/usr/include/bits/xopen_lim.h" 2 3 4 # 152 "/usr/include/limits.h" 2 3 4 # 169 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/limits.h" 2 3 4 # 8 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/syslimits.h" 2 3 4 # 35 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/limits.h" 2 3 4 # 42 "/usr/include/c++/5.0.0/climits" 2 3 # 12 "/usr/include/boost/detail/lcast_precision.hpp" 2 3 4 # 1 "/usr/include/boost/integer_traits.hpp" 1 3 4 # 23 "/usr/include/boost/integer_traits.hpp" 3 4 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/limits.h" 1 3 4 # 24 "/usr/include/boost/integer_traits.hpp" 2 3 4 # 1 "/usr/include/wchar.h" 1 3 4 # 28 "/usr/include/boost/integer_traits.hpp" 2 3 4 # 39 "/usr/include/boost/integer_traits.hpp" 3 4 # 40 "/usr/include/boost/integer_traits.hpp" 3 namespace boost { template class integer_traits : public std::numeric_limits { public: static const bool is_integral = false; }; namespace detail { template class integer_traits_base { public: static const bool is_integral = true; static const T const_min = min_val; static const T const_max = max_val; }; template const bool integer_traits_base::is_integral; template const T integer_traits_base::const_min; template const T integer_traits_base::const_max; } template<> class integer_traits : public std::numeric_limits, public detail::integer_traits_base { }; template<> class integer_traits : public std::numeric_limits, public detail::integer_traits_base { }; template<> class integer_traits : public std::numeric_limits, public detail::integer_traits_base { }; template<> class integer_traits : public std::numeric_limits, public detail::integer_traits_base { }; template<> class integer_traits : public std::numeric_limits, public detail::integer_traits_base # 125 "/usr/include/boost/integer_traits.hpp" 3 { }; template<> class integer_traits : public std::numeric_limits, public detail::integer_traits_base { }; template<> class integer_traits : public std::numeric_limits, public detail::integer_traits_base { }; template<> class integer_traits : public std::numeric_limits, public detail::integer_traits_base { }; template<> class integer_traits : public std::numeric_limits, public detail::integer_traits_base { }; template<> class integer_traits : public std::numeric_limits, public detail::integer_traits_base { }; template<> class integer_traits : public std::numeric_limits, public detail::integer_traits_base { }; template<> class integer_traits< ::boost::long_long_type> : public std::numeric_limits< ::boost::long_long_type>, public detail::integer_traits_base< ::boost::long_long_type, (-0x7fffffffffffffffLL -1), 0x7fffffffffffffffLL> { }; template<> class integer_traits< ::boost::ulong_long_type> : public std::numeric_limits< ::boost::ulong_long_type>, public detail::integer_traits_base< ::boost::ulong_long_type, 0, (0x7fffffffffffffffLL * 2ULL + 1)> { }; # 251 "/usr/include/boost/integer_traits.hpp" 3 } # 17 "/usr/include/boost/detail/lcast_precision.hpp" 2 3 4 # 36 "/usr/include/boost/detail/lcast_precision.hpp" 3 4 namespace boost { namespace detail { class lcast_abstract_stub {}; template struct lcast_precision { typedef typename boost::mpl::if_< boost::is_abstract , std::numeric_limits , std::numeric_limits >::type limits; static const bool use_default_precision = !limits::is_specialized || limits::is_exact ; static const bool is_specialized_bin = !use_default_precision && limits::radix == 2 && limits::digits > 0 ; static const bool is_specialized_dec = !use_default_precision && limits::radix == 10 && limits::digits10 > 0 ; static const std::streamsize streamsize_max = boost::integer_traits::const_max ; static const unsigned int precision_dec = limits::digits10 + 1U; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((!is_specialized_dec || precision_dec <= streamsize_max + 0UL) == 0 ? false : true) >)> boost_static_assert_typedef_79 __attribute__((unused)) ; static const unsigned long precision_bin = 2UL + limits::digits * 30103UL / 100000UL ; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((!is_specialized_bin || (limits::digits + 0UL < (0x7fffffffffffffffL * 2UL + 1UL) / 30103UL && precision_bin > limits::digits10 + 0UL && precision_bin <= streamsize_max + 0UL)) == 0 ? false : true) >)> boost_static_assert_typedef_89 __attribute__((unused)) ; static const std::streamsize value = is_specialized_bin ? precision_bin : is_specialized_dec ? precision_dec : 6 ; }; template inline std::streamsize lcast_get_precision(T* = 0) { return lcast_precision::value; # 165 "/usr/include/boost/detail/lcast_precision.hpp" 3 4 } template inline void lcast_set_precision(std::ios_base& stream, T*) { stream.precision(lcast_get_precision()); } template inline void lcast_set_precision(std::ios_base& stream, Source*, Target*) { std::streamsize const s = lcast_get_precision(static_cast(0)); std::streamsize const t = lcast_get_precision(static_cast(0)); stream.precision(s > t ? s : t); } }} # 41 "/usr/include/boost/lexical_cast/detail/converter_lexical.hpp" 2 3 4 # 1 "/usr/include/boost/lexical_cast/detail/widest_char.hpp" 1 3 4 # 23 "/usr/include/boost/lexical_cast/detail/widest_char.hpp" 3 4 namespace boost { namespace detail { template struct widest_char { typedef typename boost::mpl::if_c< (sizeof(TargetChar) > sizeof(SourceChar)) , TargetChar , SourceChar >::type type; }; }} # 43 "/usr/include/boost/lexical_cast/detail/converter_lexical.hpp" 2 3 4 # 1 "/usr/include/boost/array.hpp" 1 3 4 # 44 "/usr/include/boost/array.hpp" 3 4 # 1 "/usr/include/boost/assert.hpp" 1 3 4 # 54 "/usr/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 64 "/usr/include/assert.h" 3 4 extern "C" { extern void __assert_fail (const char *__assertion, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert_perror_fail (int __errnum, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert (const char *__assertion, const char *__file, int __line) throw () __attribute__ ((__noreturn__)); } # 55 "/usr/include/boost/assert.hpp" 2 3 4 # 45 "/usr/include/boost/array.hpp" 2 3 4 # 1 "/usr/include/boost/swap.hpp" 1 3 4 # 15 "/usr/include/boost/swap.hpp" 3 4 # 1 "/usr/include/boost/core/swap.hpp" 1 3 4 # 29 "/usr/include/boost/core/swap.hpp" 3 4 namespace boost_swap_impl { template void swap_impl(T& left, T& right) { using namespace std; swap(left,right); } template void swap_impl(T (& left)[N], T (& right)[N]) { for (std::size_t i = 0; i < N; ++i) { ::boost_swap_impl::swap_impl(left[i], right[i]); } } } namespace boost { template void swap(T1& left, T2& right) { ::boost_swap_impl::swap_impl(left, right); } } # 16 "/usr/include/boost/swap.hpp" 2 3 4 # 46 "/usr/include/boost/array.hpp" 2 3 4 # 1 "/usr/include/boost/functional/hash_fwd.hpp" 1 3 4 # 1 "/usr/include/boost/functional/hash/hash_fwd.hpp" 1 3 4 # 15 "/usr/include/boost/functional/hash/hash_fwd.hpp" 3 4 namespace boost { template struct hash; template void hash_combine(std::size_t& seed, T const& v); template std::size_t hash_range(It, It); template void hash_range(std::size_t&, It, It); } # 11 "/usr/include/boost/functional/hash_fwd.hpp" 2 3 4 # 51 "/usr/include/boost/array.hpp" 2 3 4 namespace boost { template class array { public: T elems[N]; public: typedef T value_type; typedef T* iterator; typedef const T* const_iterator; typedef T& reference; typedef const T& const_reference; typedef std::size_t size_type; typedef std::ptrdiff_t difference_type; iterator begin() { return elems; } const_iterator begin() const { return elems; } const_iterator cbegin() const { return elems; } iterator end() { return elems+N; } const_iterator end() const { return elems+N; } const_iterator cend() const { return elems+N; } typedef std::reverse_iterator reverse_iterator; typedef std::reverse_iterator const_reverse_iterator; # 104 "/usr/include/boost/array.hpp" 3 4 reverse_iterator rbegin() { return reverse_iterator(end()); } const_reverse_iterator rbegin() const { return const_reverse_iterator(end()); } const_reverse_iterator crbegin() const { return const_reverse_iterator(end()); } reverse_iterator rend() { return reverse_iterator(begin()); } const_reverse_iterator rend() const { return const_reverse_iterator(begin()); } const_reverse_iterator crend() const { return const_reverse_iterator(begin()); } reference operator[](size_type i) { (((i < N)&&("out of range")) ? static_cast (0) : __assert_fail ("(i < N)&&(\"out of range\")", "/usr/include/boost/array.hpp", 123, __PRETTY_FUNCTION__)); return elems[i]; } const_reference operator[](size_type i) const { (((i < N)&&("out of range")) ? static_cast (0) : __assert_fail ("(i < N)&&(\"out of range\")", "/usr/include/boost/array.hpp", 129, __PRETTY_FUNCTION__)); return elems[i]; } reference at(size_type i) { rangecheck(i); return elems[i]; } const_reference at(size_type i) const { rangecheck(i); return elems[i]; } reference front() { return elems[0]; } const_reference front() const { return elems[0]; } reference back() { return elems[N-1]; } const_reference back() const { return elems[N-1]; } static size_type size() { return N; } static bool empty() { return false; } static size_type max_size() { return N; } enum { static_size = N }; void swap (array& y) { for (size_type i = 0; i < N; ++i) boost::swap(elems[i],y.elems[i]); } const T* data() const { return elems; } T* data() { return elems; } T* c_array() { return elems; } template array& operator= (const array& rhs) { std::copy(rhs.begin(),rhs.end(), begin()); return *this; } void assign (const T& value) { fill ( value ); } void fill (const T& value) { std::fill_n(begin(),size(),value); } static void rangecheck (size_type i) { if (i >= size()) { std::out_of_range e("array<>: index out of range"); boost::throw_exception(e); } } }; template< class T > class array< T, 0 > { public: typedef T value_type; typedef T* iterator; typedef const T* const_iterator; typedef T& reference; typedef const T& const_reference; typedef std::size_t size_type; typedef std::ptrdiff_t difference_type; iterator begin() { return iterator( reinterpret_cast< T * >( this ) ); } const_iterator begin() const { return const_iterator( reinterpret_cast< const T * >( this ) ); } const_iterator cbegin() const { return const_iterator( reinterpret_cast< const T * >( this ) ); } iterator end() { return begin(); } const_iterator end() const { return begin(); } const_iterator cend() const { return cbegin(); } typedef std::reverse_iterator reverse_iterator; typedef std::reverse_iterator const_reverse_iterator; # 245 "/usr/include/boost/array.hpp" 3 4 reverse_iterator rbegin() { return reverse_iterator(end()); } const_reverse_iterator rbegin() const { return const_reverse_iterator(end()); } const_reverse_iterator crbegin() const { return const_reverse_iterator(end()); } reverse_iterator rend() { return reverse_iterator(begin()); } const_reverse_iterator rend() const { return const_reverse_iterator(begin()); } const_reverse_iterator crend() const { return const_reverse_iterator(begin()); } reference operator[](size_type ) { return failed_rangecheck(); } const_reference operator[](size_type ) const { return failed_rangecheck(); } reference at(size_type ) { return failed_rangecheck(); } const_reference at(size_type ) const { return failed_rangecheck(); } reference front() { return failed_rangecheck(); } const_reference front() const { return failed_rangecheck(); } reference back() { return failed_rangecheck(); } const_reference back() const { return failed_rangecheck(); } static size_type size() { return 0; } static bool empty() { return true; } static size_type max_size() { return 0; } enum { static_size = 0 }; void swap (array& ) { } const T* data() const { return 0; } T* data() { return 0; } T* c_array() { return 0; } template array& operator= (const array& ) { return *this; } void assign (const T& value) { fill ( value ); } void fill (const T& ) {} static reference failed_rangecheck () { std::out_of_range e("attempt to access element of an empty array"); boost::throw_exception(e); static T placeholder; return placeholder; } }; template bool operator== (const array& x, const array& y) { return std::equal(x.begin(), x.end(), y.begin()); } template bool operator< (const array& x, const array& y) { return std::lexicographical_compare(x.begin(),x.end(),y.begin(),y.end()); } template bool operator!= (const array& x, const array& y) { return !(x==y); } template bool operator> (const array& x, const array& y) { return y bool operator<= (const array& x, const array& y) { return !(y bool operator>= (const array& x, const array& y) { return !(x inline void swap (array& x, array& y) { x.swap(y); } # 400 "/usr/include/boost/array.hpp" 3 4 template T(&get_c_array(boost::array& arg))[N] { return arg.elems; } template const T(&get_c_array(const boost::array& arg))[N] { return arg.elems; } # 433 "/usr/include/boost/array.hpp" 3 4 template std::size_t hash_value(const array& arr) { return boost::hash_range(arr.begin(), arr.end()); } } # 50 "/usr/include/boost/lexical_cast/detail/converter_lexical.hpp" 2 3 4 # 1 "/usr/include/boost/container/container_fwd.hpp" 1 3 4 # 48 "/usr/include/boost/container/container_fwd.hpp" 3 4 # 1 "/usr/include/boost/container/detail/std_fwd.hpp" 1 3 4 # 33 "/usr/include/boost/container/detail/std_fwd.hpp" 3 4 namespace std{ template class allocator; template struct less; template struct pair; template struct char_traits; struct input_iterator_tag; struct forward_iterator_tag; struct bidirectional_iterator_tag; struct random_access_iterator_tag; } # 49 "/usr/include/boost/container/container_fwd.hpp" 2 3 4 namespace boost{ namespace intrusive{ }} namespace boost{ namespace container{ namespace container_detail{ namespace bi = boost::intrusive; }}} # 68 "/usr/include/boost/container/container_fwd.hpp" 3 4 namespace boost { namespace container { enum tree_type_enum { red_black_tree, avl_tree, scapegoat_tree, splay_tree }; template > class vector; template > class stable_vector; template class static_vector; template > class deque; template > class list; template > class slist; template struct tree_opt; typedef tree_opt tree_assoc_defaults; template ,class Allocator = std::allocator ,class Options = tree_assoc_defaults > class set; template ,class Allocator = std::allocator ,class Options = tree_assoc_defaults > class multiset; template ,class Allocator = std::allocator > ,class Options = tree_assoc_defaults > class map; template ,class Allocator = std::allocator > ,class Options = tree_assoc_defaults > class multimap; template ,class Allocator = std::allocator > class flat_set; template ,class Allocator = std::allocator > class flat_multiset; template ,class Allocator = std::allocator > > class flat_map; template ,class Allocator = std::allocator > > class flat_multimap; template ,class Allocator = std::allocator > class basic_string; typedef basic_string ,std::allocator > string; typedef basic_string ,std::allocator > wstring; static const std::size_t ADP_nodes_per_block = 256u; static const std::size_t ADP_max_free_blocks = 2u; static const std::size_t ADP_overhead_percent = 1u; static const std::size_t ADP_only_alignment = 0u; template < class T , std::size_t NodesPerBlock = ADP_nodes_per_block , std::size_t MaxFreeBlocks = ADP_max_free_blocks , std::size_t OverheadPercent = ADP_overhead_percent , unsigned Version = 2 > class adaptive_pool; template < class T , unsigned Version = 2 , unsigned int AllocationDisableMask = 0> class allocator; static const std::size_t NodeAlloc_nodes_per_block = 256u; template < class T , std::size_t NodesPerBlock = NodeAlloc_nodes_per_block , std::size_t Version = 2> class node_allocator; # 213 "/usr/include/boost/container/container_fwd.hpp" 3 4 struct ordered_range_t {}; static const ordered_range_t ordered_range = ordered_range_t(); struct ordered_unique_range_t : public ordered_range_t {}; static const ordered_unique_range_t ordered_unique_range = ordered_unique_range_t(); struct default_init_t {}; static const default_init_t default_init = default_init_t(); struct value_init_t {}; static const value_init_t value_init = value_init_t(); namespace container_detail_really_deep_namespace { struct dummy { dummy() { (void)ordered_range; (void)ordered_unique_range; (void)default_init; } }; } }} # 52 "/usr/include/boost/lexical_cast/detail/converter_lexical.hpp" 2 3 4 # 1 "/usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp" 1 3 4 # 23 "/usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp" 3 4 # 33 "/usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp" 3 4 # 1 "/usr/include/c++/5.0.0/cstring" 1 3 4 # 39 "/usr/include/c++/5.0.0/cstring" 3 4 # 40 "/usr/include/c++/5.0.0/cstring" 3 # 71 "/usr/include/c++/5.0.0/cstring" 3 namespace std __attribute__ ((__visibility__ ("default"))) { using ::memchr; using ::memcmp; using ::memcpy; using ::memmove; using ::memset; using ::strcat; using ::strcmp; using ::strcoll; using ::strcpy; using ::strcspn; using ::strerror; using ::strlen; using ::strncat; using ::strncmp; using ::strncpy; using ::strspn; using ::strtok; using ::strxfrm; using ::strchr; using ::strpbrk; using ::strrchr; using ::strstr; # 120 "/usr/include/c++/5.0.0/cstring" 3 } # 34 "/usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp" 2 3 4 # 1 "/usr/include/c++/5.0.0/cstdio" 1 3 4 # 39 "/usr/include/c++/5.0.0/cstdio" 3 4 # 40 "/usr/include/c++/5.0.0/cstdio" 3 # 1 "/usr/include/stdio.h" 1 3 4 # 29 "/usr/include/stdio.h" 3 4 extern "C" { # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stddef.h" 1 3 4 # 34 "/usr/include/stdio.h" 2 3 4 # 74 "/usr/include/stdio.h" 3 4 # 1 "/usr/include/libio.h" 1 3 4 # 31 "/usr/include/libio.h" 3 4 # 1 "/usr/include/_G_config.h" 1 3 4 # 15 "/usr/include/_G_config.h" 3 4 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stddef.h" 1 3 4 # 16 "/usr/include/_G_config.h" 2 3 4 # 1 "/usr/include/wchar.h" 1 3 4 # 21 "/usr/include/_G_config.h" 2 3 4 typedef struct { __off_t __pos; __mbstate_t __state; } _G_fpos_t; typedef struct { __off64_t __pos; __mbstate_t __state; } _G_fpos64_t; # 32 "/usr/include/libio.h" 2 3 4 # 49 "/usr/include/libio.h" 3 4 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stdarg.h" 1 3 4 # 50 "/usr/include/libio.h" 2 3 4 # 144 "/usr/include/libio.h" 3 4 struct _IO_jump_t; struct _IO_FILE; # 154 "/usr/include/libio.h" 3 4 typedef void _IO_lock_t; struct _IO_marker { struct _IO_marker *_next; struct _IO_FILE *_sbuf; int _pos; # 177 "/usr/include/libio.h" 3 4 }; enum __codecvt_result { __codecvt_ok, __codecvt_partial, __codecvt_error, __codecvt_noconv }; # 245 "/usr/include/libio.h" 3 4 struct _IO_FILE { int _flags; char* _IO_read_ptr; char* _IO_read_end; char* _IO_read_base; char* _IO_write_base; char* _IO_write_ptr; char* _IO_write_end; char* _IO_buf_base; char* _IO_buf_end; char *_IO_save_base; char *_IO_backup_base; char *_IO_save_end; struct _IO_marker *_markers; struct _IO_FILE *_chain; int _fileno; int _flags2; __off_t _old_offset; unsigned short _cur_column; signed char _vtable_offset; char _shortbuf[1]; _IO_lock_t *_lock; # 293 "/usr/include/libio.h" 3 4 __off64_t _offset; # 302 "/usr/include/libio.h" 3 4 void *__pad1; void *__pad2; void *__pad3; void *__pad4; size_t __pad5; int _mode; char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)]; }; struct _IO_FILE_plus; extern struct _IO_FILE_plus _IO_2_1_stdin_; extern struct _IO_FILE_plus _IO_2_1_stdout_; extern struct _IO_FILE_plus _IO_2_1_stderr_; # 338 "/usr/include/libio.h" 3 4 typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes); typedef __ssize_t __io_write_fn (void *__cookie, const char *__buf, size_t __n); typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w); typedef int __io_close_fn (void *__cookie); typedef __io_read_fn cookie_read_function_t; typedef __io_write_fn cookie_write_function_t; typedef __io_seek_fn cookie_seek_function_t; typedef __io_close_fn cookie_close_function_t; typedef struct { __io_read_fn *read; __io_write_fn *write; __io_seek_fn *seek; __io_close_fn *close; } _IO_cookie_io_functions_t; typedef _IO_cookie_io_functions_t cookie_io_functions_t; struct _IO_cookie_file; extern void _IO_cookie_init (struct _IO_cookie_file *__cfile, int __read_write, void *__cookie, _IO_cookie_io_functions_t __fns); extern "C" { extern int __underflow (_IO_FILE *); extern int __uflow (_IO_FILE *); extern int __overflow (_IO_FILE *, int); # 434 "/usr/include/libio.h" 3 4 extern int _IO_getc (_IO_FILE *__fp); extern int _IO_putc (int __c, _IO_FILE *__fp); extern int _IO_feof (_IO_FILE *__fp) throw (); extern int _IO_ferror (_IO_FILE *__fp) throw (); extern int _IO_peekc_locked (_IO_FILE *__fp); extern void _IO_flockfile (_IO_FILE *) throw (); extern void _IO_funlockfile (_IO_FILE *) throw (); extern int _IO_ftrylockfile (_IO_FILE *) throw (); # 464 "/usr/include/libio.h" 3 4 extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict, __gnuc_va_list, int *__restrict); extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict, __gnuc_va_list); extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t); extern size_t _IO_sgetn (_IO_FILE *, void *, size_t); extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int); extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int); extern void _IO_free_backup_area (_IO_FILE *) throw (); # 526 "/usr/include/libio.h" 3 4 } # 75 "/usr/include/stdio.h" 2 3 4 typedef __gnuc_va_list va_list; # 108 "/usr/include/stdio.h" 3 4 typedef _G_fpos_t fpos_t; typedef _G_fpos64_t fpos64_t; # 164 "/usr/include/stdio.h" 3 4 # 1 "/usr/include/bits/stdio_lim.h" 1 3 4 # 165 "/usr/include/stdio.h" 2 3 4 extern struct _IO_FILE *stdin; extern struct _IO_FILE *stdout; extern struct _IO_FILE *stderr; extern int remove (const char *__filename) throw (); extern int rename (const char *__old, const char *__new) throw (); extern int renameat (int __oldfd, const char *__old, int __newfd, const char *__new) throw (); extern FILE *tmpfile (void) __attribute__ ((__warn_unused_result__)); # 205 "/usr/include/stdio.h" 3 4 extern FILE *tmpfile64 (void) __attribute__ ((__warn_unused_result__)); extern char *tmpnam (char *__s) throw () __attribute__ ((__warn_unused_result__)); extern char *tmpnam_r (char *__s) throw () __attribute__ ((__warn_unused_result__)); # 227 "/usr/include/stdio.h" 3 4 extern char *tempnam (const char *__dir, const char *__pfx) throw () __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)); extern int fclose (FILE *__stream); extern int fflush (FILE *__stream); # 252 "/usr/include/stdio.h" 3 4 extern int fflush_unlocked (FILE *__stream); # 262 "/usr/include/stdio.h" 3 4 extern int fcloseall (void); extern FILE *fopen (const char *__restrict __filename, const char *__restrict __modes) __attribute__ ((__warn_unused_result__)); extern FILE *freopen (const char *__restrict __filename, const char *__restrict __modes, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); # 295 "/usr/include/stdio.h" 3 4 extern FILE *fopen64 (const char *__restrict __filename, const char *__restrict __modes) __attribute__ ((__warn_unused_result__)); extern FILE *freopen64 (const char *__restrict __filename, const char *__restrict __modes, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); extern FILE *fdopen (int __fd, const char *__modes) throw () __attribute__ ((__warn_unused_result__)); extern FILE *fopencookie (void *__restrict __magic_cookie, const char *__restrict __modes, _IO_cookie_io_functions_t __io_funcs) throw () __attribute__ ((__warn_unused_result__)); extern FILE *fmemopen (void *__s, size_t __len, const char *__modes) throw () __attribute__ ((__warn_unused_result__)); extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) throw () __attribute__ ((__warn_unused_result__)); extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) throw (); extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, int __modes, size_t __n) throw (); extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, size_t __size) throw (); extern void setlinebuf (FILE *__stream) throw (); extern int fprintf (FILE *__restrict __stream, const char *__restrict __format, ...); extern int printf (const char *__restrict __format, ...); extern int sprintf (char *__restrict __s, const char *__restrict __format, ...) throw (); extern int vfprintf (FILE *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg); extern int vprintf (const char *__restrict __format, __gnuc_va_list __arg); extern int vsprintf (char *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) throw (); extern int snprintf (char *__restrict __s, size_t __maxlen, const char *__restrict __format, ...) throw () __attribute__ ((__format__ (__printf__, 3, 4))); extern int vsnprintf (char *__restrict __s, size_t __maxlen, const char *__restrict __format, __gnuc_va_list __arg) throw () __attribute__ ((__format__ (__printf__, 3, 0))); extern int vasprintf (char **__restrict __ptr, const char *__restrict __f, __gnuc_va_list __arg) throw () __attribute__ ((__format__ (__printf__, 2, 0))) __attribute__ ((__warn_unused_result__)); extern int __asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) throw () __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__)); extern int asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) throw () __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__)); extern int vdprintf (int __fd, const char *__restrict __fmt, __gnuc_va_list __arg) __attribute__ ((__format__ (__printf__, 2, 0))); extern int dprintf (int __fd, const char *__restrict __fmt, ...) __attribute__ ((__format__ (__printf__, 2, 3))); extern int fscanf (FILE *__restrict __stream, const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)); extern int scanf (const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)); extern int sscanf (const char *__restrict __s, const char *__restrict __format, ...) throw (); # 463 "/usr/include/stdio.h" 3 4 extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__)); extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__)); extern int vsscanf (const char *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) throw () __attribute__ ((__format__ (__scanf__, 2, 0))); # 522 "/usr/include/stdio.h" 3 4 extern int fgetc (FILE *__stream); extern int getc (FILE *__stream); extern int getchar (void); # 550 "/usr/include/stdio.h" 3 4 extern int getc_unlocked (FILE *__stream); extern int getchar_unlocked (void); # 561 "/usr/include/stdio.h" 3 4 extern int fgetc_unlocked (FILE *__stream); extern int fputc (int __c, FILE *__stream); extern int putc (int __c, FILE *__stream); extern int putchar (int __c); # 594 "/usr/include/stdio.h" 3 4 extern int fputc_unlocked (int __c, FILE *__stream); extern int putc_unlocked (int __c, FILE *__stream); extern int putchar_unlocked (int __c); extern int getw (FILE *__stream); extern int putw (int __w, FILE *__stream); extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); # 638 "/usr/include/stdio.h" 3 4 extern char *gets (char *__s) __attribute__ ((__warn_unused_result__)) __attribute__ ((__deprecated__)); # 649 "/usr/include/stdio.h" 3 4 extern char *fgets_unlocked (char *__restrict __s, int __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); # 665 "/usr/include/stdio.h" 3 4 extern __ssize_t __getdelim (char **__restrict __lineptr, size_t *__restrict __n, int __delimiter, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); extern __ssize_t getdelim (char **__restrict __lineptr, size_t *__restrict __n, int __delimiter, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); extern __ssize_t getline (char **__restrict __lineptr, size_t *__restrict __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); extern int fputs (const char *__restrict __s, FILE *__restrict __stream); extern int puts (const char *__s); extern int ungetc (int __c, FILE *__stream); extern size_t fread (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); extern size_t fwrite (const void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __s); # 726 "/usr/include/stdio.h" 3 4 extern int fputs_unlocked (const char *__restrict __s, FILE *__restrict __stream); # 737 "/usr/include/stdio.h" 3 4 extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream); extern int fseek (FILE *__stream, long int __off, int __whence); extern long int ftell (FILE *__stream) __attribute__ ((__warn_unused_result__)); extern void rewind (FILE *__stream); # 773 "/usr/include/stdio.h" 3 4 extern int fseeko (FILE *__stream, __off_t __off, int __whence); extern __off_t ftello (FILE *__stream) __attribute__ ((__warn_unused_result__)); # 792 "/usr/include/stdio.h" 3 4 extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos); extern int fsetpos (FILE *__stream, const fpos_t *__pos); # 815 "/usr/include/stdio.h" 3 4 extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence); extern __off64_t ftello64 (FILE *__stream) __attribute__ ((__warn_unused_result__)); extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos); extern int fsetpos64 (FILE *__stream, const fpos64_t *__pos); extern void clearerr (FILE *__stream) throw (); extern int feof (FILE *__stream) throw () __attribute__ ((__warn_unused_result__)); extern int ferror (FILE *__stream) throw () __attribute__ ((__warn_unused_result__)); extern void clearerr_unlocked (FILE *__stream) throw (); extern int feof_unlocked (FILE *__stream) throw () __attribute__ ((__warn_unused_result__)); extern int ferror_unlocked (FILE *__stream) throw () __attribute__ ((__warn_unused_result__)); extern void perror (const char *__s); # 1 "/usr/include/bits/sys_errlist.h" 1 3 4 # 26 "/usr/include/bits/sys_errlist.h" 3 4 extern int sys_nerr; extern const char *const sys_errlist[]; extern int _sys_nerr; extern const char *const _sys_errlist[]; # 854 "/usr/include/stdio.h" 2 3 4 extern int fileno (FILE *__stream) throw () __attribute__ ((__warn_unused_result__)); extern int fileno_unlocked (FILE *__stream) throw () __attribute__ ((__warn_unused_result__)); # 872 "/usr/include/stdio.h" 3 4 extern FILE *popen (const char *__command, const char *__modes) __attribute__ ((__warn_unused_result__)); extern int pclose (FILE *__stream); extern char *ctermid (char *__s) throw (); extern char *cuserid (char *__s); struct obstack; extern int obstack_printf (struct obstack *__restrict __obstack, const char *__restrict __format, ...) throw () __attribute__ ((__format__ (__printf__, 2, 3))); extern int obstack_vprintf (struct obstack *__restrict __obstack, const char *__restrict __format, __gnuc_va_list __args) throw () __attribute__ ((__format__ (__printf__, 2, 0))); extern void flockfile (FILE *__stream) throw (); extern int ftrylockfile (FILE *__stream) throw () __attribute__ ((__warn_unused_result__)); extern void funlockfile (FILE *__stream) throw (); # 933 "/usr/include/stdio.h" 3 4 # 1 "/usr/include/bits/stdio.h" 1 3 4 # 43 "/usr/include/bits/stdio.h" 3 4 extern __inline __attribute__ ((__gnu_inline__)) int getchar (void) { return _IO_getc (stdin); } extern __inline __attribute__ ((__gnu_inline__)) int fgetc_unlocked (FILE *__fp) { return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); } extern __inline __attribute__ ((__gnu_inline__)) int getc_unlocked (FILE *__fp) { return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); } extern __inline __attribute__ ((__gnu_inline__)) int getchar_unlocked (void) { return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++); } extern __inline __attribute__ ((__gnu_inline__)) int putchar (int __c) { return _IO_putc (__c, stdout); } extern __inline __attribute__ ((__gnu_inline__)) int fputc_unlocked (int __c, FILE *__stream) { return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); } extern __inline __attribute__ ((__gnu_inline__)) int putc_unlocked (int __c, FILE *__stream) { return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); } extern __inline __attribute__ ((__gnu_inline__)) int putchar_unlocked (int __c) { return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c))); } extern __inline __attribute__ ((__gnu_inline__)) __ssize_t getline (char **__lineptr, size_t *__n, FILE *__stream) { return __getdelim (__lineptr, __n, '\n', __stream); } extern __inline __attribute__ ((__gnu_inline__)) int __attribute__ ((__leaf__)) feof_unlocked (FILE *__stream) throw () { return (((__stream)->_flags & 0x10) != 0); } extern __inline __attribute__ ((__gnu_inline__)) int __attribute__ ((__leaf__)) ferror_unlocked (FILE *__stream) throw () { return (((__stream)->_flags & 0x20) != 0); } # 934 "/usr/include/stdio.h" 2 3 4 # 1 "/usr/include/bits/stdio2.h" 1 3 4 # 23 "/usr/include/bits/stdio2.h" 3 4 extern int __sprintf_chk (char *__restrict __s, int __flag, size_t __slen, const char *__restrict __format, ...) throw (); extern int __vsprintf_chk (char *__restrict __s, int __flag, size_t __slen, const char *__restrict __format, __gnuc_va_list __ap) throw (); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) sprintf (char *__restrict __s, const char *__restrict __fmt, ...) throw () { return __builtin___sprintf_chk (__s, 2 - 1, __builtin_object_size (__s, 2 > 1), __fmt, __builtin_va_arg_pack ()); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) vsprintf (char *__restrict __s, const char *__restrict __fmt, __gnuc_va_list __ap) throw () { return __builtin___vsprintf_chk (__s, 2 - 1, __builtin_object_size (__s, 2 > 1), __fmt, __ap); } extern int __snprintf_chk (char *__restrict __s, size_t __n, int __flag, size_t __slen, const char *__restrict __format, ...) throw (); extern int __vsnprintf_chk (char *__restrict __s, size_t __n, int __flag, size_t __slen, const char *__restrict __format, __gnuc_va_list __ap) throw (); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) snprintf (char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) throw () { return __builtin___snprintf_chk (__s, __n, 2 - 1, __builtin_object_size (__s, 2 > 1), __fmt, __builtin_va_arg_pack ()); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) vsnprintf (char *__restrict __s, size_t __n, const char *__restrict __fmt, __gnuc_va_list __ap) throw () { return __builtin___vsnprintf_chk (__s, __n, 2 - 1, __builtin_object_size (__s, 2 > 1), __fmt, __ap); } extern int __fprintf_chk (FILE *__restrict __stream, int __flag, const char *__restrict __format, ...); extern int __printf_chk (int __flag, const char *__restrict __format, ...); extern int __vfprintf_chk (FILE *__restrict __stream, int __flag, const char *__restrict __format, __gnuc_va_list __ap); extern int __vprintf_chk (int __flag, const char *__restrict __format, __gnuc_va_list __ap); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) { return __fprintf_chk (__stream, 2 - 1, __fmt, __builtin_va_arg_pack ()); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int printf (const char *__restrict __fmt, ...) { return __printf_chk (2 - 1, __fmt, __builtin_va_arg_pack ()); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int vprintf (const char *__restrict __fmt, __gnuc_va_list __ap) { return __vfprintf_chk (stdout, 2 - 1, __fmt, __ap); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int vfprintf (FILE *__restrict __stream, const char *__restrict __fmt, __gnuc_va_list __ap) { return __vfprintf_chk (__stream, 2 - 1, __fmt, __ap); } extern int __dprintf_chk (int __fd, int __flag, const char *__restrict __fmt, ...) __attribute__ ((__format__ (__printf__, 3, 4))); extern int __vdprintf_chk (int __fd, int __flag, const char *__restrict __fmt, __gnuc_va_list __arg) __attribute__ ((__format__ (__printf__, 3, 0))); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int dprintf (int __fd, const char *__restrict __fmt, ...) { return __dprintf_chk (__fd, 2 - 1, __fmt, __builtin_va_arg_pack ()); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int vdprintf (int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) { return __vdprintf_chk (__fd, 2 - 1, __fmt, __ap); } extern int __asprintf_chk (char **__restrict __ptr, int __flag, const char *__restrict __fmt, ...) throw () __attribute__ ((__format__ (__printf__, 3, 4))) __attribute__ ((__warn_unused_result__)); extern int __vasprintf_chk (char **__restrict __ptr, int __flag, const char *__restrict __fmt, __gnuc_va_list __arg) throw () __attribute__ ((__format__ (__printf__, 3, 0))) __attribute__ ((__warn_unused_result__)); extern int __obstack_printf_chk (struct obstack *__restrict __obstack, int __flag, const char *__restrict __format, ...) throw () __attribute__ ((__format__ (__printf__, 3, 4))); extern int __obstack_vprintf_chk (struct obstack *__restrict __obstack, int __flag, const char *__restrict __format, __gnuc_va_list __args) throw () __attribute__ ((__format__ (__printf__, 3, 0))); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) throw () { return __asprintf_chk (__ptr, 2 - 1, __fmt, __builtin_va_arg_pack ()); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) __asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) throw () { return __asprintf_chk (__ptr, 2 - 1, __fmt, __builtin_va_arg_pack ()); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) obstack_printf (struct obstack *__restrict __obstack, const char *__restrict __fmt, ...) throw () { return __obstack_printf_chk (__obstack, 2 - 1, __fmt, __builtin_va_arg_pack ()); } # 206 "/usr/include/bits/stdio2.h" 3 4 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) vasprintf (char **__restrict __ptr, const char *__restrict __fmt, __gnuc_va_list __ap) throw () { return __vasprintf_chk (__ptr, 2 - 1, __fmt, __ap); } extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__leaf__)) obstack_vprintf (struct obstack *__restrict __obstack, const char *__restrict __fmt, __gnuc_va_list __ap) throw () { return __obstack_vprintf_chk (__obstack, 2 - 1, __fmt, __ap); } # 241 "/usr/include/bits/stdio2.h" 3 4 extern char *__fgets_chk (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); extern char *__fgets_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets") __attribute__ ((__warn_unused_result__)); extern char *__fgets_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_chk") __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets called with bigger size than length " "of destination buffer"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * fgets (char *__restrict __s, int __n, FILE *__restrict __stream) { if (__builtin_object_size (__s, 2 > 1) != (size_t) -1) { if (!__builtin_constant_p (__n) || __n <= 0) return __fgets_chk (__s, __builtin_object_size (__s, 2 > 1), __n, __stream); if ((size_t) __n > __builtin_object_size (__s, 2 > 1)) return __fgets_chk_warn (__s, __builtin_object_size (__s, 2 > 1), __n, __stream); } return __fgets_alias (__s, __n, __stream); } extern size_t __fread_chk (void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); extern size_t __fread_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread") __attribute__ ((__warn_unused_result__)); extern size_t __fread_chk_warn (void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "__fread_chk") __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread called with bigger size * nmemb than length " "of destination buffer"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t fread (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) { if (__builtin_object_size (__ptr, 0) != (size_t) -1) { if (!__builtin_constant_p (__size) || !__builtin_constant_p (__n) || (__size | __n) >= (((size_t) 1) << (8 * sizeof (size_t) / 2))) return __fread_chk (__ptr, __builtin_object_size (__ptr, 0), __size, __n, __stream); if (__size * __n > __builtin_object_size (__ptr, 0)) return __fread_chk_warn (__ptr, __builtin_object_size (__ptr, 0), __size, __n, __stream); } return __fread_alias (__ptr, __size, __n, __stream); } extern char *__fgets_unlocked_chk (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); extern char *__fgets_unlocked_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets_unlocked") __attribute__ ((__warn_unused_result__)); extern char *__fgets_unlocked_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_unlocked_chk") __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets_unlocked called with bigger size than length " "of destination buffer"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * fgets_unlocked (char *__restrict __s, int __n, FILE *__restrict __stream) { if (__builtin_object_size (__s, 2 > 1) != (size_t) -1) { if (!__builtin_constant_p (__n) || __n <= 0) return __fgets_unlocked_chk (__s, __builtin_object_size (__s, 2 > 1), __n, __stream); if ((size_t) __n > __builtin_object_size (__s, 2 > 1)) return __fgets_unlocked_chk_warn (__s, __builtin_object_size (__s, 2 > 1), __n, __stream); } return __fgets_unlocked_alias (__s, __n, __stream); } extern size_t __fread_unlocked_chk (void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); extern size_t __fread_unlocked_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread_unlocked") __attribute__ ((__warn_unused_result__)); extern size_t __fread_unlocked_chk_warn (void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "__fread_unlocked_chk") __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread_unlocked called with bigger size * nmemb than " "length of destination buffer"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t fread_unlocked (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) { if (__builtin_object_size (__ptr, 0) != (size_t) -1) { if (!__builtin_constant_p (__size) || !__builtin_constant_p (__n) || (__size | __n) >= (((size_t) 1) << (8 * sizeof (size_t) / 2))) return __fread_unlocked_chk (__ptr, __builtin_object_size (__ptr, 0), __size, __n, __stream); if (__size * __n > __builtin_object_size (__ptr, 0)) return __fread_unlocked_chk_warn (__ptr, __builtin_object_size (__ptr, 0), __size, __n, __stream); } if (__builtin_constant_p (__size) && __builtin_constant_p (__n) && (__size | __n) < (((size_t) 1) << (8 * sizeof (size_t) / 2)) && __size * __n <= 8) { size_t __cnt = __size * __n; char *__cptr = (char *) __ptr; if (__cnt == 0) return 0; for (; __cnt > 0; --__cnt) { int __c = (__builtin_expect (((__stream)->_IO_read_ptr >= (__stream)->_IO_read_end), 0) ? __uflow (__stream) : *(unsigned char *) (__stream)->_IO_read_ptr++); if (__c == (-1)) break; *__cptr++ = __c; } return (__cptr - (char *) __ptr) / __size; } return __fread_unlocked_alias (__ptr, __size, __n, __stream); } # 937 "/usr/include/stdio.h" 2 3 4 } # 43 "/usr/include/c++/5.0.0/cstdio" 2 3 # 96 "/usr/include/c++/5.0.0/cstdio" 3 namespace std { using ::FILE; using ::fpos_t; using ::clearerr; using ::fclose; using ::feof; using ::ferror; using ::fflush; using ::fgetc; using ::fgetpos; using ::fgets; using ::fopen; using ::fprintf; using ::fputc; using ::fputs; using ::fread; using ::freopen; using ::fscanf; using ::fseek; using ::fsetpos; using ::ftell; using ::fwrite; using ::getc; using ::getchar; using ::gets; using ::perror; using ::printf; using ::putc; using ::putchar; using ::puts; using ::remove; using ::rename; using ::rewind; using ::scanf; using ::setbuf; using ::setvbuf; using ::sprintf; using ::sscanf; using ::tmpfile; using ::tmpnam; using ::ungetc; using ::vfprintf; using ::vprintf; using ::vsprintf; } # 157 "/usr/include/c++/5.0.0/cstdio" 3 namespace __gnu_cxx { # 175 "/usr/include/c++/5.0.0/cstdio" 3 using ::snprintf; using ::vfscanf; using ::vscanf; using ::vsnprintf; using ::vsscanf; } namespace std { using ::__gnu_cxx::snprintf; using ::__gnu_cxx::vfscanf; using ::__gnu_cxx::vscanf; using ::__gnu_cxx::vsnprintf; using ::__gnu_cxx::vsscanf; } # 35 "/usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp" 2 3 4 # 44 "/usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp" 3 4 # 1 "/usr/include/c++/5.0.0/locale" 1 3 4 # 36 "/usr/include/c++/5.0.0/locale" 3 4 # 37 "/usr/include/c++/5.0.0/locale" 3 # 1 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 1 3 # 37 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 # 38 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 # 1 "/usr/include/c++/5.0.0/ctime" 1 3 # 39 "/usr/include/c++/5.0.0/ctime" 3 # 40 "/usr/include/c++/5.0.0/ctime" 3 # 58 "/usr/include/c++/5.0.0/ctime" 3 namespace std { using ::clock_t; using ::time_t; using ::tm; using ::clock; using ::difftime; using ::mktime; using ::time; using ::asctime; using ::ctime; using ::gmtime; using ::localtime; using ::strftime; } # 40 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 52 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 class time_base { public: enum dateorder { no_order, dmy, mdy, ymd, ydm }; }; template struct __timepunct_cache : public locale::facet { static const _CharT* _S_timezones[14]; const _CharT* _M_date_format; const _CharT* _M_date_era_format; const _CharT* _M_time_format; const _CharT* _M_time_era_format; const _CharT* _M_date_time_format; const _CharT* _M_date_time_era_format; const _CharT* _M_am; const _CharT* _M_pm; const _CharT* _M_am_pm_format; const _CharT* _M_day1; const _CharT* _M_day2; const _CharT* _M_day3; const _CharT* _M_day4; const _CharT* _M_day5; const _CharT* _M_day6; const _CharT* _M_day7; const _CharT* _M_aday1; const _CharT* _M_aday2; const _CharT* _M_aday3; const _CharT* _M_aday4; const _CharT* _M_aday5; const _CharT* _M_aday6; const _CharT* _M_aday7; const _CharT* _M_month01; const _CharT* _M_month02; const _CharT* _M_month03; const _CharT* _M_month04; const _CharT* _M_month05; const _CharT* _M_month06; const _CharT* _M_month07; const _CharT* _M_month08; const _CharT* _M_month09; const _CharT* _M_month10; const _CharT* _M_month11; const _CharT* _M_month12; const _CharT* _M_amonth01; const _CharT* _M_amonth02; const _CharT* _M_amonth03; const _CharT* _M_amonth04; const _CharT* _M_amonth05; const _CharT* _M_amonth06; const _CharT* _M_amonth07; const _CharT* _M_amonth08; const _CharT* _M_amonth09; const _CharT* _M_amonth10; const _CharT* _M_amonth11; const _CharT* _M_amonth12; bool _M_allocated; __timepunct_cache(size_t __refs = 0) : facet(__refs), _M_date_format(0), _M_date_era_format(0), _M_time_format(0), _M_time_era_format(0), _M_date_time_format(0), _M_date_time_era_format(0), _M_am(0), _M_pm(0), _M_am_pm_format(0), _M_day1(0), _M_day2(0), _M_day3(0), _M_day4(0), _M_day5(0), _M_day6(0), _M_day7(0), _M_aday1(0), _M_aday2(0), _M_aday3(0), _M_aday4(0), _M_aday5(0), _M_aday6(0), _M_aday7(0), _M_month01(0), _M_month02(0), _M_month03(0), _M_month04(0), _M_month05(0), _M_month06(0), _M_month07(0), _M_month08(0), _M_month09(0), _M_month10(0), _M_month11(0), _M_month12(0), _M_amonth01(0), _M_amonth02(0), _M_amonth03(0), _M_amonth04(0), _M_amonth05(0), _M_amonth06(0), _M_amonth07(0), _M_amonth08(0), _M_amonth09(0), _M_amonth10(0), _M_amonth11(0), _M_amonth12(0), _M_allocated(false) { } ~__timepunct_cache(); private: __timepunct_cache& operator=(const __timepunct_cache&); explicit __timepunct_cache(const __timepunct_cache&); }; template __timepunct_cache<_CharT>::~__timepunct_cache() { if (_M_allocated) { } } template<> const char* __timepunct_cache::_S_timezones[14]; template<> const wchar_t* __timepunct_cache::_S_timezones[14]; template const _CharT* __timepunct_cache<_CharT>::_S_timezones[14]; template class __timepunct : public locale::facet { public: typedef _CharT __char_type; typedef __timepunct_cache<_CharT> __cache_type; protected: __cache_type* _M_data; __c_locale _M_c_locale_timepunct; const char* _M_name_timepunct; public: static locale::id id; explicit __timepunct(size_t __refs = 0); explicit __timepunct(__cache_type* __cache, size_t __refs = 0); # 206 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 explicit __timepunct(__c_locale __cloc, const char* __s, size_t __refs = 0); void _M_put(_CharT* __s, size_t __maxlen, const _CharT* __format, const tm* __tm) const throw (); void _M_date_formats(const _CharT** __date) const { __date[0] = _M_data->_M_date_format; __date[1] = _M_data->_M_date_era_format; } void _M_time_formats(const _CharT** __time) const { __time[0] = _M_data->_M_time_format; __time[1] = _M_data->_M_time_era_format; } void _M_date_time_formats(const _CharT** __dt) const { __dt[0] = _M_data->_M_date_time_format; __dt[1] = _M_data->_M_date_time_era_format; } void _M_am_pm_format(const _CharT* __ampm) const { __ampm = _M_data->_M_am_pm_format; } void _M_am_pm(const _CharT** __ampm) const { __ampm[0] = _M_data->_M_am; __ampm[1] = _M_data->_M_pm; } void _M_days(const _CharT** __days) const { __days[0] = _M_data->_M_day1; __days[1] = _M_data->_M_day2; __days[2] = _M_data->_M_day3; __days[3] = _M_data->_M_day4; __days[4] = _M_data->_M_day5; __days[5] = _M_data->_M_day6; __days[6] = _M_data->_M_day7; } void _M_days_abbreviated(const _CharT** __days) const { __days[0] = _M_data->_M_aday1; __days[1] = _M_data->_M_aday2; __days[2] = _M_data->_M_aday3; __days[3] = _M_data->_M_aday4; __days[4] = _M_data->_M_aday5; __days[5] = _M_data->_M_aday6; __days[6] = _M_data->_M_aday7; } void _M_months(const _CharT** __months) const { __months[0] = _M_data->_M_month01; __months[1] = _M_data->_M_month02; __months[2] = _M_data->_M_month03; __months[3] = _M_data->_M_month04; __months[4] = _M_data->_M_month05; __months[5] = _M_data->_M_month06; __months[6] = _M_data->_M_month07; __months[7] = _M_data->_M_month08; __months[8] = _M_data->_M_month09; __months[9] = _M_data->_M_month10; __months[10] = _M_data->_M_month11; __months[11] = _M_data->_M_month12; } void _M_months_abbreviated(const _CharT** __months) const { __months[0] = _M_data->_M_amonth01; __months[1] = _M_data->_M_amonth02; __months[2] = _M_data->_M_amonth03; __months[3] = _M_data->_M_amonth04; __months[4] = _M_data->_M_amonth05; __months[5] = _M_data->_M_amonth06; __months[6] = _M_data->_M_amonth07; __months[7] = _M_data->_M_amonth08; __months[8] = _M_data->_M_amonth09; __months[9] = _M_data->_M_amonth10; __months[10] = _M_data->_M_amonth11; __months[11] = _M_data->_M_amonth12; } protected: virtual ~__timepunct(); void _M_initialize_timepunct(__c_locale __cloc = 0); }; template locale::id __timepunct<_CharT>::id; template<> void __timepunct::_M_initialize_timepunct(__c_locale __cloc); template<> void __timepunct::_M_put(char*, size_t, const char*, const tm*) const throw (); template<> void __timepunct::_M_initialize_timepunct(__c_locale __cloc); template<> void __timepunct::_M_put(wchar_t*, size_t, const wchar_t*, const tm*) const throw (); } # 1 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/time_members.h" 1 3 # 37 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/time_members.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template __timepunct<_CharT>::__timepunct(size_t __refs) : facet(__refs), _M_data(0), _M_c_locale_timepunct(0), _M_name_timepunct(_S_get_c_name()) { _M_initialize_timepunct(); } template __timepunct<_CharT>::__timepunct(__cache_type* __cache, size_t __refs) : facet(__refs), _M_data(__cache), _M_c_locale_timepunct(0), _M_name_timepunct(_S_get_c_name()) { _M_initialize_timepunct(); } template __timepunct<_CharT>::__timepunct(__c_locale __cloc, const char* __s, size_t __refs) : facet(__refs), _M_data(0), _M_c_locale_timepunct(0), _M_name_timepunct(0) { if (__builtin_strcmp(__s, _S_get_c_name()) != 0) { const size_t __len = __builtin_strlen(__s) + 1; char* __tmp = new char[__len]; __builtin_memcpy(__tmp, __s, __len); _M_name_timepunct = __tmp; } else _M_name_timepunct = _S_get_c_name(); try { _M_initialize_timepunct(__cloc); } catch(...) { if (_M_name_timepunct != _S_get_c_name()) delete [] _M_name_timepunct; throw; } } template __timepunct<_CharT>::~__timepunct() { if (_M_name_timepunct != _S_get_c_name()) delete [] _M_name_timepunct; delete _M_data; _S_destroy_c_locale(_M_c_locale_timepunct); } } # 345 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 365 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 template class time_get : public locale::facet, public time_base { public: typedef _CharT char_type; typedef _InIter iter_type; static locale::id id; # 386 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 explicit time_get(size_t __refs = 0) : facet (__refs) { } # 403 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 dateorder date_order() const { return this->do_date_order(); } # 427 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 iter_type get_time(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm) const { return this->do_get_time(__beg, __end, __io, __err, __tm); } # 452 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 iter_type get_date(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm) const { return this->do_get_date(__beg, __end, __io, __err, __tm); } # 480 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 iter_type get_weekday(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm) const { return this->do_get_weekday(__beg, __end, __io, __err, __tm); } # 509 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 iter_type get_monthname(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm) const { return this->do_get_monthname(__beg, __end, __io, __err, __tm); } # 535 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 iter_type get_year(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm) const { return this->do_get_year(__beg, __end, __io, __err, __tm); } # 588 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 protected: virtual ~time_get() { } # 603 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 virtual dateorder do_date_order() const; # 621 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 virtual iter_type do_get_time(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm) const; # 640 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 virtual iter_type do_get_date(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm) const; # 659 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 virtual iter_type do_get_weekday(iter_type __beg, iter_type __end, ios_base&, ios_base::iostate& __err, tm* __tm) const; # 678 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 virtual iter_type do_get_monthname(iter_type __beg, iter_type __end, ios_base&, ios_base::iostate& __err, tm* __tm) const; # 697 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 virtual iter_type do_get_year(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm) const; # 729 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 iter_type _M_extract_num(iter_type __beg, iter_type __end, int& __member, int __min, int __max, size_t __len, ios_base& __io, ios_base::iostate& __err) const; iter_type _M_extract_name(iter_type __beg, iter_type __end, int& __member, const _CharT** __names, size_t __indexlen, ios_base& __io, ios_base::iostate& __err) const; iter_type _M_extract_wday_or_month(iter_type __beg, iter_type __end, int& __member, const _CharT** __names, size_t __indexlen, ios_base& __io, ios_base::iostate& __err) const; iter_type _M_extract_via_format(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm, const _CharT* __format) const; }; template locale::id time_get<_CharT, _InIter>::id; template class time_get_byname : public time_get<_CharT, _InIter> { public: typedef _CharT char_type; typedef _InIter iter_type; explicit time_get_byname(const char*, size_t __refs = 0) : time_get<_CharT, _InIter>(__refs) { } protected: virtual ~time_get_byname() { } }; # 794 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 template class time_put : public locale::facet { public: typedef _CharT char_type; typedef _OutIter iter_type; static locale::id id; # 815 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 explicit time_put(size_t __refs = 0) : facet(__refs) { } # 834 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 iter_type put(iter_type __s, ios_base& __io, char_type __fill, const tm* __tm, const _CharT* __beg, const _CharT* __end) const; # 854 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 iter_type put(iter_type __s, ios_base& __io, char_type __fill, const tm* __tm, char __format, char __mod = 0) const { return this->do_put(__s, __io, __fill, __tm, __format, __mod); } protected: virtual ~time_put() { } # 881 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 virtual iter_type do_put(iter_type __s, ios_base& __io, char_type __fill, const tm* __tm, char __format, char __mod) const; }; template locale::id time_put<_CharT, _OutIter>::id; template class time_put_byname : public time_put<_CharT, _OutIter> { public: typedef _CharT char_type; typedef _OutIter iter_type; explicit time_put_byname(const char*, size_t __refs = 0) : time_put<_CharT, _OutIter>(__refs) { }; protected: virtual ~time_put_byname() { } }; # 926 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 class money_base { public: enum part { none, space, symbol, sign, value }; struct pattern { char field[4]; }; static const pattern _S_default_pattern; enum { _S_minus, _S_zero, _S_end = 11 }; static const char* _S_atoms; __attribute__ ((__const__)) static pattern _S_construct_pattern(char __precedes, char __space, char __posn) throw (); }; template struct __moneypunct_cache : public locale::facet { const char* _M_grouping; size_t _M_grouping_size; bool _M_use_grouping; _CharT _M_decimal_point; _CharT _M_thousands_sep; const _CharT* _M_curr_symbol; size_t _M_curr_symbol_size; const _CharT* _M_positive_sign; size_t _M_positive_sign_size; const _CharT* _M_negative_sign; size_t _M_negative_sign_size; int _M_frac_digits; money_base::pattern _M_pos_format; money_base::pattern _M_neg_format; _CharT _M_atoms[money_base::_S_end]; bool _M_allocated; __moneypunct_cache(size_t __refs = 0) : facet(__refs), _M_grouping(0), _M_grouping_size(0), _M_use_grouping(false), _M_decimal_point(_CharT()), _M_thousands_sep(_CharT()), _M_curr_symbol(0), _M_curr_symbol_size(0), _M_positive_sign(0), _M_positive_sign_size(0), _M_negative_sign(0), _M_negative_sign_size(0), _M_frac_digits(0), _M_pos_format(money_base::pattern()), _M_neg_format(money_base::pattern()), _M_allocated(false) { } ~__moneypunct_cache(); void _M_cache(const locale& __loc); private: __moneypunct_cache& operator=(const __moneypunct_cache&); explicit __moneypunct_cache(const __moneypunct_cache&); }; template __moneypunct_cache<_CharT, _Intl>::~__moneypunct_cache() { if (_M_allocated) { delete [] _M_grouping; delete [] _M_curr_symbol; delete [] _M_positive_sign; delete [] _M_negative_sign; } } # 1021 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 template class moneypunct : public locale::facet, public money_base { public: typedef _CharT char_type; typedef basic_string<_CharT> string_type; typedef __moneypunct_cache<_CharT, _Intl> __cache_type; private: __cache_type* _M_data; public: static const bool intl = _Intl; static locale::id id; # 1050 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 explicit moneypunct(size_t __refs = 0) : facet(__refs), _M_data(0) { _M_initialize_moneypunct(); } # 1063 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 explicit moneypunct(__cache_type* __cache, size_t __refs = 0) : facet(__refs), _M_data(__cache) { _M_initialize_moneypunct(); } # 1078 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 explicit moneypunct(__c_locale __cloc, const char* __s, size_t __refs = 0) : facet(__refs), _M_data(0) { _M_initialize_moneypunct(__cloc, __s); } # 1092 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 char_type decimal_point() const { return this->do_decimal_point(); } # 1105 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 char_type thousands_sep() const { return this->do_thousands_sep(); } # 1135 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 string grouping() const { return this->do_grouping(); } # 1148 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 string_type curr_symbol() const { return this->do_curr_symbol(); } # 1165 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 string_type positive_sign() const { return this->do_positive_sign(); } # 1182 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 string_type negative_sign() const { return this->do_negative_sign(); } # 1198 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 int frac_digits() const { return this->do_frac_digits(); } # 1234 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 pattern pos_format() const { return this->do_pos_format(); } pattern neg_format() const { return this->do_neg_format(); } protected: virtual ~moneypunct(); # 1256 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 virtual char_type do_decimal_point() const { return _M_data->_M_decimal_point; } # 1268 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 virtual char_type do_thousands_sep() const { return _M_data->_M_thousands_sep; } # 1281 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 virtual string do_grouping() const { return _M_data->_M_grouping; } # 1294 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 virtual string_type do_curr_symbol() const { return _M_data->_M_curr_symbol; } # 1307 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 virtual string_type do_positive_sign() const { return _M_data->_M_positive_sign; } # 1320 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 virtual string_type do_negative_sign() const { return _M_data->_M_negative_sign; } # 1334 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 virtual int do_frac_digits() const { return _M_data->_M_frac_digits; } # 1348 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 virtual pattern do_pos_format() const { return _M_data->_M_pos_format; } # 1362 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 virtual pattern do_neg_format() const { return _M_data->_M_neg_format; } void _M_initialize_moneypunct(__c_locale __cloc = 0, const char* __name = 0); }; template locale::id moneypunct<_CharT, _Intl>::id; template const bool moneypunct<_CharT, _Intl>::intl; template<> moneypunct::~moneypunct(); template<> moneypunct::~moneypunct(); template<> void moneypunct::_M_initialize_moneypunct(__c_locale, const char*); template<> void moneypunct::_M_initialize_moneypunct(__c_locale, const char*); template<> moneypunct::~moneypunct(); template<> moneypunct::~moneypunct(); template<> void moneypunct::_M_initialize_moneypunct(__c_locale, const char*); template<> void moneypunct::_M_initialize_moneypunct(__c_locale, const char*); template class moneypunct_byname : public moneypunct<_CharT, _Intl> { public: typedef _CharT char_type; typedef basic_string<_CharT> string_type; static const bool intl = _Intl; explicit moneypunct_byname(const char* __s, size_t __refs = 0) : moneypunct<_CharT, _Intl>(__refs) { if (__builtin_strcmp(__s, "C") != 0 && __builtin_strcmp(__s, "POSIX") != 0) { __c_locale __tmp; this->_S_create_c_locale(__tmp, __s); this->_M_initialize_moneypunct(__tmp); this->_S_destroy_c_locale(__tmp); } } protected: virtual ~moneypunct_byname() { } }; template const bool moneypunct_byname<_CharT, _Intl>::intl; # 1465 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 template class money_get : public locale::facet { public: typedef _CharT char_type; typedef _InIter iter_type; typedef basic_string<_CharT> string_type; static locale::id id; # 1487 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 explicit money_get(size_t __refs = 0) : facet(__refs) { } # 1517 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 iter_type get(iter_type __s, iter_type __end, bool __intl, ios_base& __io, ios_base::iostate& __err, long double& __units) const { return this->do_get(__s, __end, __intl, __io, __err, __units); } # 1548 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 iter_type get(iter_type __s, iter_type __end, bool __intl, ios_base& __io, ios_base::iostate& __err, string_type& __digits) const { return this->do_get(__s, __end, __intl, __io, __err, __digits); } protected: virtual ~money_get() { } # 1572 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 virtual iter_type do_get(iter_type __s, iter_type __end, bool __intl, ios_base& __io, ios_base::iostate& __err, long double& __units) const; # 1584 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 virtual iter_type do_get(iter_type __s, iter_type __end, bool __intl, ios_base& __io, ios_base::iostate& __err, string_type& __digits) const; # 1596 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 template iter_type _M_extract(iter_type __s, iter_type __end, ios_base& __io, ios_base::iostate& __err, string& __digits) const; }; template locale::id money_get<_CharT, _InIter>::id; # 1618 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 template class money_put : public locale::facet { public: typedef _CharT char_type; typedef _OutIter iter_type; typedef basic_string<_CharT> string_type; static locale::id id; # 1639 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 explicit money_put(size_t __refs = 0) : facet(__refs) { } # 1659 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 iter_type put(iter_type __s, bool __intl, ios_base& __io, char_type __fill, long double __units) const { return this->do_put(__s, __intl, __io, __fill, __units); } # 1682 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 iter_type put(iter_type __s, bool __intl, ios_base& __io, char_type __fill, const string_type& __digits) const { return this->do_put(__s, __intl, __io, __fill, __digits); } protected: virtual ~money_put() { } # 1717 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 virtual iter_type do_put(iter_type __s, bool __intl, ios_base& __io, char_type __fill, long double __units) const; # 1741 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 virtual iter_type do_put(iter_type __s, bool __intl, ios_base& __io, char_type __fill, const string_type& __digits) const; # 1753 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 template iter_type _M_insert(iter_type __s, ios_base& __io, char_type __fill, const string_type& __digits) const; }; template locale::id money_put<_CharT, _OutIter>::id; struct messages_base { typedef int catalog; }; # 1796 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 template class messages : public locale::facet, public messages_base { public: typedef _CharT char_type; typedef basic_string<_CharT> string_type; protected: __c_locale _M_c_locale_messages; const char* _M_name_messages; public: static locale::id id; # 1824 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 explicit messages(size_t __refs = 0); # 1838 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 explicit messages(__c_locale __cloc, const char* __s, size_t __refs = 0); # 1851 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 catalog open(const basic_string& __s, const locale& __loc) const { return this->do_open(__s, __loc); } # 1869 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 catalog open(const basic_string&, const locale&, const char*) const; # 1887 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 string_type get(catalog __c, int __set, int __msgid, const string_type& __s) const { return this->do_get(__c, __set, __msgid, __s); } # 1898 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 void close(catalog __c) const { return this->do_close(__c); } protected: virtual ~messages(); # 1918 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 virtual catalog do_open(const basic_string&, const locale&) const; # 1937 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 3 virtual string_type do_get(catalog, int, int, const string_type& __dfault) const; virtual void do_close(catalog) const; char* _M_convert_to_char(const string_type& __msg) const { return reinterpret_cast(const_cast<_CharT*>(__msg.c_str())); } string_type _M_convert_from_char(char*) const { return string_type(); } }; template locale::id messages<_CharT>::id; template<> string messages::do_get(catalog, int, int, const string&) const; template<> wstring messages::do_get(catalog, int, int, const wstring&) const; template class messages_byname : public messages<_CharT> { public: typedef _CharT char_type; typedef basic_string<_CharT> string_type; explicit messages_byname(const char* __s, size_t __refs = 0); protected: virtual ~messages_byname() { } }; } # 1 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/messages_members.h" 1 3 # 36 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/messages_members.h" 3 # 1 "/usr/include/libintl.h" 1 3 4 # 34 "/usr/include/libintl.h" 3 4 extern "C" { extern char *gettext (const char *__msgid) throw () __attribute__ ((__format_arg__ (1))); extern char *dgettext (const char *__domainname, const char *__msgid) throw () __attribute__ ((__format_arg__ (2))); extern char *__dgettext (const char *__domainname, const char *__msgid) throw () __attribute__ ((__format_arg__ (2))); extern char *dcgettext (const char *__domainname, const char *__msgid, int __category) throw () __attribute__ ((__format_arg__ (2))); extern char *__dcgettext (const char *__domainname, const char *__msgid, int __category) throw () __attribute__ ((__format_arg__ (2))); extern char *ngettext (const char *__msgid1, const char *__msgid2, unsigned long int __n) throw () __attribute__ ((__format_arg__ (1))) __attribute__ ((__format_arg__ (2))); extern char *dngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n) throw () __attribute__ ((__format_arg__ (2))) __attribute__ ((__format_arg__ (3))); extern char *dcngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n, int __category) throw () __attribute__ ((__format_arg__ (2))) __attribute__ ((__format_arg__ (3))); extern char *textdomain (const char *__domainname) throw (); extern char *bindtextdomain (const char *__domainname, const char *__dirname) throw (); extern char *bind_textdomain_codeset (const char *__domainname, const char *__codeset) throw (); # 121 "/usr/include/libintl.h" 3 4 } # 37 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/messages_members.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template messages<_CharT>::messages(size_t __refs) : facet(__refs), _M_c_locale_messages(_S_get_c_locale()), _M_name_messages(_S_get_c_name()) { } template messages<_CharT>::messages(__c_locale __cloc, const char* __s, size_t __refs) : facet(__refs), _M_c_locale_messages(0), _M_name_messages(0) { if (__builtin_strcmp(__s, _S_get_c_name()) != 0) { const size_t __len = __builtin_strlen(__s) + 1; char* __tmp = new char[__len]; __builtin_memcpy(__tmp, __s, __len); _M_name_messages = __tmp; } else _M_name_messages = _S_get_c_name(); _M_c_locale_messages = _S_clone_c_locale(__cloc); } template typename messages<_CharT>::catalog messages<_CharT>::open(const basic_string& __s, const locale& __loc, const char* __dir) const { bindtextdomain(__s.c_str(), __dir); return this->do_open(__s, __loc); } template messages<_CharT>::~messages() { if (_M_name_messages != _S_get_c_name()) delete [] _M_name_messages; _S_destroy_c_locale(_M_c_locale_messages); } template typename messages<_CharT>::catalog messages<_CharT>::do_open(const basic_string& __s, const locale&) const { textdomain(__s.c_str()); return 0; } template void messages<_CharT>::do_close(catalog) const { } template messages_byname<_CharT>::messages_byname(const char* __s, size_t __refs) : messages<_CharT>(__refs) { if (this->_M_name_messages != locale::facet::_S_get_c_name()) { delete [] this->_M_name_messages; if (__builtin_strcmp(__s, locale::facet::_S_get_c_name()) != 0) { const size_t __len = __builtin_strlen(__s) + 1; char* __tmp = new char[__len]; __builtin_memcpy(__tmp, __s, __len); this->_M_name_messages = __tmp; } else this->_M_name_messages = locale::facet::_S_get_c_name(); } if (__builtin_strcmp(__s, "C") != 0 && __builtin_strcmp(__s, "POSIX") != 0) { this->_S_destroy_c_locale(this->_M_c_locale_messages); this->_S_create_c_locale(this->_M_c_locale_messages, __s); } } template<> typename messages::catalog messages::do_open(const basic_string&, const locale&) const; template<> void messages::do_close(catalog) const; template<> typename messages::catalog messages::do_open(const basic_string&, const locale&) const; template<> void messages::do_close(catalog) const; } # 2009 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 2 3 # 1 "/usr/include/c++/5.0.0/bits/codecvt.h" 1 3 # 39 "/usr/include/c++/5.0.0/bits/codecvt.h" 3 # 40 "/usr/include/c++/5.0.0/bits/codecvt.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { class codecvt_base { public: enum result { ok, partial, error, noconv }; }; # 67 "/usr/include/c++/5.0.0/bits/codecvt.h" 3 template class __codecvt_abstract_base : public locale::facet, public codecvt_base { public: typedef codecvt_base::result result; typedef _InternT intern_type; typedef _ExternT extern_type; typedef _StateT state_type; # 115 "/usr/include/c++/5.0.0/bits/codecvt.h" 3 result out(state_type& __state, const intern_type* __from, const intern_type* __from_end, const intern_type*& __from_next, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const { return this->do_out(__state, __from, __from_end, __from_next, __to, __to_end, __to_next); } # 154 "/usr/include/c++/5.0.0/bits/codecvt.h" 3 result unshift(state_type& __state, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const { return this->do_unshift(__state, __to,__to_end,__to_next); } # 195 "/usr/include/c++/5.0.0/bits/codecvt.h" 3 result in(state_type& __state, const extern_type* __from, const extern_type* __from_end, const extern_type*& __from_next, intern_type* __to, intern_type* __to_end, intern_type*& __to_next) const { return this->do_in(__state, __from, __from_end, __from_next, __to, __to_end, __to_next); } int encoding() const throw() { return this->do_encoding(); } bool always_noconv() const throw() { return this->do_always_noconv(); } int length(state_type& __state, const extern_type* __from, const extern_type* __end, size_t __max) const { return this->do_length(__state, __from, __end, __max); } int max_length() const throw() { return this->do_max_length(); } protected: explicit __codecvt_abstract_base(size_t __refs = 0) : locale::facet(__refs) { } virtual ~__codecvt_abstract_base() { } # 236 "/usr/include/c++/5.0.0/bits/codecvt.h" 3 virtual result do_out(state_type& __state, const intern_type* __from, const intern_type* __from_end, const intern_type*& __from_next, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const = 0; virtual result do_unshift(state_type& __state, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const = 0; virtual result do_in(state_type& __state, const extern_type* __from, const extern_type* __from_end, const extern_type*& __from_next, intern_type* __to, intern_type* __to_end, intern_type*& __to_next) const = 0; virtual int do_encoding() const throw() = 0; virtual bool do_always_noconv() const throw() = 0; virtual int do_length(state_type&, const extern_type* __from, const extern_type* __end, size_t __max) const = 0; virtual int do_max_length() const throw() = 0; }; # 273 "/usr/include/c++/5.0.0/bits/codecvt.h" 3 template class codecvt : public __codecvt_abstract_base<_InternT, _ExternT, _StateT> { public: typedef codecvt_base::result result; typedef _InternT intern_type; typedef _ExternT extern_type; typedef _StateT state_type; protected: __c_locale _M_c_locale_codecvt; public: static locale::id id; explicit codecvt(size_t __refs = 0) : __codecvt_abstract_base<_InternT, _ExternT, _StateT> (__refs), _M_c_locale_codecvt(0) { } explicit codecvt(__c_locale __cloc, size_t __refs = 0); protected: virtual ~codecvt() { } virtual result do_out(state_type& __state, const intern_type* __from, const intern_type* __from_end, const intern_type*& __from_next, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const; virtual result do_unshift(state_type& __state, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const; virtual result do_in(state_type& __state, const extern_type* __from, const extern_type* __from_end, const extern_type*& __from_next, intern_type* __to, intern_type* __to_end, intern_type*& __to_next) const; virtual int do_encoding() const throw(); virtual bool do_always_noconv() const throw(); virtual int do_length(state_type&, const extern_type* __from, const extern_type* __end, size_t __max) const; virtual int do_max_length() const throw(); }; template locale::id codecvt<_InternT, _ExternT, _StateT>::id; template<> class codecvt : public __codecvt_abstract_base { friend class messages; public: typedef char intern_type; typedef char extern_type; typedef mbstate_t state_type; protected: __c_locale _M_c_locale_codecvt; public: static locale::id id; explicit codecvt(size_t __refs = 0); explicit codecvt(__c_locale __cloc, size_t __refs = 0); protected: virtual ~codecvt(); virtual result do_out(state_type& __state, const intern_type* __from, const intern_type* __from_end, const intern_type*& __from_next, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const; virtual result do_unshift(state_type& __state, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const; virtual result do_in(state_type& __state, const extern_type* __from, const extern_type* __from_end, const extern_type*& __from_next, intern_type* __to, intern_type* __to_end, intern_type*& __to_next) const; virtual int do_encoding() const throw(); virtual bool do_always_noconv() const throw(); virtual int do_length(state_type&, const extern_type* __from, const extern_type* __end, size_t __max) const; virtual int do_max_length() const throw(); }; template<> class codecvt : public __codecvt_abstract_base { friend class messages; public: typedef wchar_t intern_type; typedef char extern_type; typedef mbstate_t state_type; protected: __c_locale _M_c_locale_codecvt; public: static locale::id id; explicit codecvt(size_t __refs = 0); explicit codecvt(__c_locale __cloc, size_t __refs = 0); protected: virtual ~codecvt(); virtual result do_out(state_type& __state, const intern_type* __from, const intern_type* __from_end, const intern_type*& __from_next, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const; virtual result do_unshift(state_type& __state, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const; virtual result do_in(state_type& __state, const extern_type* __from, const extern_type* __from_end, const extern_type*& __from_next, intern_type* __to, intern_type* __to_end, intern_type*& __to_next) const; virtual int do_encoding() const throw(); virtual bool do_always_noconv() const throw(); virtual int do_length(state_type&, const extern_type* __from, const extern_type* __end, size_t __max) const; virtual int do_max_length() const throw(); }; # 581 "/usr/include/c++/5.0.0/bits/codecvt.h" 3 template class codecvt_byname : public codecvt<_InternT, _ExternT, _StateT> { public: explicit codecvt_byname(const char* __s, size_t __refs = 0) : codecvt<_InternT, _ExternT, _StateT>(__refs) { if (__builtin_strcmp(__s, "C") != 0 && __builtin_strcmp(__s, "POSIX") != 0) { this->_S_destroy_c_locale(this->_M_c_locale_codecvt); this->_S_create_c_locale(this->_M_c_locale_codecvt, __s); } } protected: virtual ~codecvt_byname() { } }; # 649 "/usr/include/c++/5.0.0/bits/codecvt.h" 3 extern template class codecvt_byname; extern template const codecvt& use_facet >(const locale&); extern template bool has_facet >(const locale&); extern template class codecvt_byname; extern template const codecvt& use_facet >(const locale&); extern template bool has_facet >(const locale&); # 678 "/usr/include/c++/5.0.0/bits/codecvt.h" 3 } # 2012 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 2 3 # 1 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.tcc" 1 3 # 33 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.tcc" 3 # 34 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template struct __use_cache<__moneypunct_cache<_CharT, _Intl> > { const __moneypunct_cache<_CharT, _Intl>* operator() (const locale& __loc) const { const size_t __i = moneypunct<_CharT, _Intl>::id._M_id(); const locale::facet** __caches = __loc._M_impl->_M_caches; if (!__caches[__i]) { __moneypunct_cache<_CharT, _Intl>* __tmp = 0; try { __tmp = new __moneypunct_cache<_CharT, _Intl>; __tmp->_M_cache(__loc); } catch(...) { delete __tmp; throw; } __loc._M_impl->_M_install_cache(__tmp, __i); } return static_cast< const __moneypunct_cache<_CharT, _Intl>*>(__caches[__i]); } }; template void __moneypunct_cache<_CharT, _Intl>::_M_cache(const locale& __loc) { const moneypunct<_CharT, _Intl>& __mp = use_facet >(__loc); _M_decimal_point = __mp.decimal_point(); _M_thousands_sep = __mp.thousands_sep(); _M_frac_digits = __mp.frac_digits(); char* __grouping = 0; _CharT* __curr_symbol = 0; _CharT* __positive_sign = 0; _CharT* __negative_sign = 0; try { const string& __g = __mp.grouping(); _M_grouping_size = __g.size(); __grouping = new char[_M_grouping_size]; __g.copy(__grouping, _M_grouping_size); _M_use_grouping = (_M_grouping_size && static_cast(__grouping[0]) > 0 && (__grouping[0] != __gnu_cxx::__numeric_traits::__max)); const basic_string<_CharT>& __cs = __mp.curr_symbol(); _M_curr_symbol_size = __cs.size(); __curr_symbol = new _CharT[_M_curr_symbol_size]; __cs.copy(__curr_symbol, _M_curr_symbol_size); const basic_string<_CharT>& __ps = __mp.positive_sign(); _M_positive_sign_size = __ps.size(); __positive_sign = new _CharT[_M_positive_sign_size]; __ps.copy(__positive_sign, _M_positive_sign_size); const basic_string<_CharT>& __ns = __mp.negative_sign(); _M_negative_sign_size = __ns.size(); __negative_sign = new _CharT[_M_negative_sign_size]; __ns.copy(__negative_sign, _M_negative_sign_size); _M_pos_format = __mp.pos_format(); _M_neg_format = __mp.neg_format(); const ctype<_CharT>& __ct = use_facet >(__loc); __ct.widen(money_base::_S_atoms, money_base::_S_atoms + money_base::_S_end, _M_atoms); _M_grouping = __grouping; _M_curr_symbol = __curr_symbol; _M_positive_sign = __positive_sign; _M_negative_sign = __negative_sign; _M_allocated = true; } catch(...) { delete [] __grouping; delete [] __curr_symbol; delete [] __positive_sign; delete [] __negative_sign; throw; } } template template _InIter money_get<_CharT, _InIter>:: _M_extract(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, string& __units) const { typedef char_traits<_CharT> __traits_type; typedef typename string_type::size_type size_type; typedef money_base::part part; typedef __moneypunct_cache<_CharT, _Intl> __cache_type; const locale& __loc = __io._M_getloc(); const ctype<_CharT>& __ctype = use_facet >(__loc); __use_cache<__cache_type> __uc; const __cache_type* __lc = __uc(__loc); const char_type* __lit = __lc->_M_atoms; bool __negative = false; size_type __sign_size = 0; const bool __mandatory_sign = (__lc->_M_positive_sign_size && __lc->_M_negative_sign_size); string __grouping_tmp; if (__lc->_M_use_grouping) __grouping_tmp.reserve(32); int __last_pos = 0; int __n = 0; bool __testvalid = true; bool __testdecfound = false; string __res; __res.reserve(32); const char_type* __lit_zero = __lit + money_base::_S_zero; const money_base::pattern __p = __lc->_M_neg_format; for (int __i = 0; __i < 4 && __testvalid; ++__i) { const part __which = static_cast(__p.field[__i]); switch (__which) { case money_base::symbol: if (__io.flags() & ios_base::showbase || __sign_size > 1 || __i == 0 || (__i == 1 && (__mandatory_sign || (static_cast(__p.field[0]) == money_base::sign) || (static_cast(__p.field[2]) == money_base::space))) || (__i == 2 && ((static_cast(__p.field[3]) == money_base::value) || (__mandatory_sign && (static_cast(__p.field[3]) == money_base::sign))))) { const size_type __len = __lc->_M_curr_symbol_size; size_type __j = 0; for (; __beg != __end && __j < __len && *__beg == __lc->_M_curr_symbol[__j]; ++__beg, ++__j); if (__j != __len && (__j || __io.flags() & ios_base::showbase)) __testvalid = false; } break; case money_base::sign: if (__lc->_M_positive_sign_size && __beg != __end && *__beg == __lc->_M_positive_sign[0]) { __sign_size = __lc->_M_positive_sign_size; ++__beg; } else if (__lc->_M_negative_sign_size && __beg != __end && *__beg == __lc->_M_negative_sign[0]) { __negative = true; __sign_size = __lc->_M_negative_sign_size; ++__beg; } else if (__lc->_M_positive_sign_size && !__lc->_M_negative_sign_size) __negative = true; else if (__mandatory_sign) __testvalid = false; break; case money_base::value: for (; __beg != __end; ++__beg) { const char_type __c = *__beg; const char_type* __q = __traits_type::find(__lit_zero, 10, __c); if (__q != 0) { __res += money_base::_S_atoms[__q - __lit]; ++__n; } else if (__c == __lc->_M_decimal_point && !__testdecfound) { if (__lc->_M_frac_digits <= 0) break; __last_pos = __n; __n = 0; __testdecfound = true; } else if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep && !__testdecfound) { if (__n) { __grouping_tmp += static_cast(__n); __n = 0; } else { __testvalid = false; break; } } else break; } if (__res.empty()) __testvalid = false; break; case money_base::space: if (__beg != __end && __ctype.is(ctype_base::space, *__beg)) ++__beg; else __testvalid = false; case money_base::none: if (__i != 3) for (; __beg != __end && __ctype.is(ctype_base::space, *__beg); ++__beg); break; } } if (__sign_size > 1 && __testvalid) { const char_type* __sign = __negative ? __lc->_M_negative_sign : __lc->_M_positive_sign; size_type __i = 1; for (; __beg != __end && __i < __sign_size && *__beg == __sign[__i]; ++__beg, ++__i); if (__i != __sign_size) __testvalid = false; } if (__testvalid) { if (__res.size() > 1) { const size_type __first = __res.find_first_not_of('0'); const bool __only_zeros = __first == string::npos; if (__first) __res.erase(0, __only_zeros ? __res.size() - 1 : __first); } if (__negative && __res[0] != '0') __res.insert(__res.begin(), '-'); if (__grouping_tmp.size()) { __grouping_tmp += static_cast(__testdecfound ? __last_pos : __n); if (!std::__verify_grouping(__lc->_M_grouping, __lc->_M_grouping_size, __grouping_tmp)) __err |= ios_base::failbit; } if (__testdecfound && __n != __lc->_M_frac_digits) __testvalid = false; } if (!__testvalid) __err |= ios_base::failbit; else __units.swap(__res); if (__beg == __end) __err |= ios_base::eofbit; return __beg; } # 367 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.tcc" 3 template _InIter money_get<_CharT, _InIter>:: do_get(iter_type __beg, iter_type __end, bool __intl, ios_base& __io, ios_base::iostate& __err, long double& __units) const { string __str; __beg = __intl ? _M_extract(__beg, __end, __io, __err, __str) : _M_extract(__beg, __end, __io, __err, __str); std::__convert_to_v(__str.c_str(), __units, __err, _S_get_c_locale()); return __beg; } template _InIter money_get<_CharT, _InIter>:: do_get(iter_type __beg, iter_type __end, bool __intl, ios_base& __io, ios_base::iostate& __err, string_type& __digits) const { typedef typename string::size_type size_type; const locale& __loc = __io._M_getloc(); const ctype<_CharT>& __ctype = use_facet >(__loc); string __str; __beg = __intl ? _M_extract(__beg, __end, __io, __err, __str) : _M_extract(__beg, __end, __io, __err, __str); const size_type __len = __str.size(); if (__len) { __digits.resize(__len); __ctype.widen(__str.data(), __str.data() + __len, &__digits[0]); } return __beg; } template template _OutIter money_put<_CharT, _OutIter>:: _M_insert(iter_type __s, ios_base& __io, char_type __fill, const string_type& __digits) const { typedef typename string_type::size_type size_type; typedef money_base::part part; typedef __moneypunct_cache<_CharT, _Intl> __cache_type; const locale& __loc = __io._M_getloc(); const ctype<_CharT>& __ctype = use_facet >(__loc); __use_cache<__cache_type> __uc; const __cache_type* __lc = __uc(__loc); const char_type* __lit = __lc->_M_atoms; const char_type* __beg = __digits.data(); money_base::pattern __p; const char_type* __sign; size_type __sign_size; if (!(*__beg == __lit[money_base::_S_minus])) { __p = __lc->_M_pos_format; __sign = __lc->_M_positive_sign; __sign_size = __lc->_M_positive_sign_size; } else { __p = __lc->_M_neg_format; __sign = __lc->_M_negative_sign; __sign_size = __lc->_M_negative_sign_size; if (__digits.size()) ++__beg; } size_type __len = __ctype.scan_not(ctype_base::digit, __beg, __beg + __digits.size()) - __beg; if (__len) { string_type __value; __value.reserve(2 * __len); long __paddec = __len - __lc->_M_frac_digits; if (__paddec > 0) { if (__lc->_M_frac_digits < 0) __paddec = __len; if (__lc->_M_grouping_size) { __value.assign(2 * __paddec, char_type()); _CharT* __vend = std::__add_grouping(&__value[0], __lc->_M_thousands_sep, __lc->_M_grouping, __lc->_M_grouping_size, __beg, __beg + __paddec); __value.erase(__vend - &__value[0]); } else __value.assign(__beg, __paddec); } if (__lc->_M_frac_digits > 0) { __value += __lc->_M_decimal_point; if (__paddec >= 0) __value.append(__beg + __paddec, __lc->_M_frac_digits); else { __value.append(-__paddec, __lit[money_base::_S_zero]); __value.append(__beg, __len); } } const ios_base::fmtflags __f = __io.flags() & ios_base::adjustfield; __len = __value.size() + __sign_size; __len += ((__io.flags() & ios_base::showbase) ? __lc->_M_curr_symbol_size : 0); string_type __res; __res.reserve(2 * __len); const size_type __width = static_cast(__io.width()); const bool __testipad = (__f == ios_base::internal && __len < __width); for (int __i = 0; __i < 4; ++__i) { const part __which = static_cast(__p.field[__i]); switch (__which) { case money_base::symbol: if (__io.flags() & ios_base::showbase) __res.append(__lc->_M_curr_symbol, __lc->_M_curr_symbol_size); break; case money_base::sign: if (__sign_size) __res += __sign[0]; break; case money_base::value: __res += __value; break; case money_base::space: if (__testipad) __res.append(__width - __len, __fill); else __res += __fill; break; case money_base::none: if (__testipad) __res.append(__width - __len, __fill); break; } } if (__sign_size > 1) __res.append(__sign + 1, __sign_size - 1); __len = __res.size(); if (__width > __len) { if (__f == ios_base::left) __res.append(__width - __len, __fill); else __res.insert(0, __width - __len, __fill); __len = __width; } __s = std::__write(__s, __res.data(), __len); } __io.width(0); return __s; } # 573 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.tcc" 3 template _OutIter money_put<_CharT, _OutIter>:: do_put(iter_type __s, bool __intl, ios_base& __io, char_type __fill, long double __units) const { const locale __loc = __io.getloc(); const ctype<_CharT>& __ctype = use_facet >(__loc); int __cs_size = 64; char* __cs = static_cast(__builtin_alloca(__cs_size)); int __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, "%.*Lf", 0, __units); if (__len >= __cs_size) { __cs_size = __len + 1; __cs = static_cast(__builtin_alloca(__cs_size)); __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, "%.*Lf", 0, __units); } # 605 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.tcc" 3 string_type __digits(__len, char_type()); __ctype.widen(__cs, __cs + __len, &__digits[0]); return __intl ? _M_insert(__s, __io, __fill, __digits) : _M_insert(__s, __io, __fill, __digits); } template _OutIter money_put<_CharT, _OutIter>:: do_put(iter_type __s, bool __intl, ios_base& __io, char_type __fill, const string_type& __digits) const { return __intl ? _M_insert(__s, __io, __fill, __digits) : _M_insert(__s, __io, __fill, __digits); } template time_base::dateorder time_get<_CharT, _InIter>::do_date_order() const { return time_base::no_order; } template _InIter time_get<_CharT, _InIter>:: _M_extract_via_format(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm, const _CharT* __format) const { const locale& __loc = __io._M_getloc(); const __timepunct<_CharT>& __tp = use_facet<__timepunct<_CharT> >(__loc); const ctype<_CharT>& __ctype = use_facet >(__loc); const size_t __len = char_traits<_CharT>::length(__format); ios_base::iostate __tmperr = ios_base::goodbit; size_t __i = 0; for (; __beg != __end && __i < __len && !__tmperr; ++__i) { if (__ctype.narrow(__format[__i], 0) == '%') { char __c = __ctype.narrow(__format[++__i], 0); int __mem = 0; if (__c == 'E' || __c == 'O') __c = __ctype.narrow(__format[++__i], 0); switch (__c) { const char* __cs; _CharT __wcs[10]; case 'a': const char_type* __days1[7]; __tp._M_days_abbreviated(__days1); __beg = _M_extract_name(__beg, __end, __tm->tm_wday, __days1, 7, __io, __tmperr); break; case 'A': const char_type* __days2[7]; __tp._M_days(__days2); __beg = _M_extract_name(__beg, __end, __tm->tm_wday, __days2, 7, __io, __tmperr); break; case 'h': case 'b': const char_type* __months1[12]; __tp._M_months_abbreviated(__months1); __beg = _M_extract_name(__beg, __end, __tm->tm_mon, __months1, 12, __io, __tmperr); break; case 'B': const char_type* __months2[12]; __tp._M_months(__months2); __beg = _M_extract_name(__beg, __end, __tm->tm_mon, __months2, 12, __io, __tmperr); break; case 'c': const char_type* __dt[2]; __tp._M_date_time_formats(__dt); __beg = _M_extract_via_format(__beg, __end, __io, __tmperr, __tm, __dt[0]); break; case 'd': __beg = _M_extract_num(__beg, __end, __tm->tm_mday, 1, 31, 2, __io, __tmperr); break; case 'e': if (__ctype.is(ctype_base::space, *__beg)) __beg = _M_extract_num(++__beg, __end, __tm->tm_mday, 1, 9, 1, __io, __tmperr); else __beg = _M_extract_num(__beg, __end, __tm->tm_mday, 10, 31, 2, __io, __tmperr); break; case 'D': __cs = "%m/%d/%y"; __ctype.widen(__cs, __cs + 9, __wcs); __beg = _M_extract_via_format(__beg, __end, __io, __tmperr, __tm, __wcs); break; case 'H': __beg = _M_extract_num(__beg, __end, __tm->tm_hour, 0, 23, 2, __io, __tmperr); break; case 'I': __beg = _M_extract_num(__beg, __end, __tm->tm_hour, 1, 12, 2, __io, __tmperr); break; case 'm': __beg = _M_extract_num(__beg, __end, __mem, 1, 12, 2, __io, __tmperr); if (!__tmperr) __tm->tm_mon = __mem - 1; break; case 'M': __beg = _M_extract_num(__beg, __end, __tm->tm_min, 0, 59, 2, __io, __tmperr); break; case 'n': if (__ctype.narrow(*__beg, 0) == '\n') ++__beg; else __tmperr |= ios_base::failbit; break; case 'R': __cs = "%H:%M"; __ctype.widen(__cs, __cs + 6, __wcs); __beg = _M_extract_via_format(__beg, __end, __io, __tmperr, __tm, __wcs); break; case 'S': __beg = _M_extract_num(__beg, __end, __tm->tm_sec, 0, 60, 2, __io, __tmperr); break; case 't': if (__ctype.narrow(*__beg, 0) == '\t') ++__beg; else __tmperr |= ios_base::failbit; break; case 'T': __cs = "%H:%M:%S"; __ctype.widen(__cs, __cs + 9, __wcs); __beg = _M_extract_via_format(__beg, __end, __io, __tmperr, __tm, __wcs); break; case 'x': const char_type* __dates[2]; __tp._M_date_formats(__dates); __beg = _M_extract_via_format(__beg, __end, __io, __tmperr, __tm, __dates[0]); break; case 'X': const char_type* __times[2]; __tp._M_time_formats(__times); __beg = _M_extract_via_format(__beg, __end, __io, __tmperr, __tm, __times[0]); break; case 'y': case 'C': case 'Y': __beg = _M_extract_num(__beg, __end, __mem, 0, 9999, 4, __io, __tmperr); if (!__tmperr) __tm->tm_year = __mem < 0 ? __mem + 100 : __mem - 1900; break; case 'Z': if (__ctype.is(ctype_base::upper, *__beg)) { int __tmp; __beg = _M_extract_name(__beg, __end, __tmp, __timepunct_cache<_CharT>::_S_timezones, 14, __io, __tmperr); if (__beg != __end && !__tmperr && __tmp == 0 && (*__beg == __ctype.widen('-') || *__beg == __ctype.widen('+'))) { __beg = _M_extract_num(__beg, __end, __tmp, 0, 23, 2, __io, __tmperr); __beg = _M_extract_num(__beg, __end, __tmp, 0, 59, 2, __io, __tmperr); } } else __tmperr |= ios_base::failbit; break; default: __tmperr |= ios_base::failbit; } } else { if (__format[__i] == *__beg) ++__beg; else __tmperr |= ios_base::failbit; } } if (__tmperr || __i != __len) __err |= ios_base::failbit; return __beg; } template _InIter time_get<_CharT, _InIter>:: _M_extract_num(iter_type __beg, iter_type __end, int& __member, int __min, int __max, size_t __len, ios_base& __io, ios_base::iostate& __err) const { const locale& __loc = __io._M_getloc(); const ctype<_CharT>& __ctype = use_facet >(__loc); int __mult = __len == 2 ? 10 : (__len == 4 ? 1000 : 1); ++__min; size_t __i = 0; int __value = 0; for (; __beg != __end && __i < __len; ++__beg, ++__i) { const char __c = __ctype.narrow(*__beg, '*'); if (__c >= '0' && __c <= '9') { __value = __value * 10 + (__c - '0'); const int __valuec = __value * __mult; if (__valuec > __max || __valuec + __mult < __min) break; __mult /= 10; } else break; } if (__i == __len) __member = __value; else if (__len == 4 && __i == 2) __member = __value - 100; else __err |= ios_base::failbit; return __beg; } template _InIter time_get<_CharT, _InIter>:: _M_extract_name(iter_type __beg, iter_type __end, int& __member, const _CharT** __names, size_t __indexlen, ios_base& __io, ios_base::iostate& __err) const { typedef char_traits<_CharT> __traits_type; const locale& __loc = __io._M_getloc(); const ctype<_CharT>& __ctype = use_facet >(__loc); int* __matches = static_cast(__builtin_alloca(sizeof(int) * __indexlen)); size_t __nmatches = 0; size_t __pos = 0; bool __testvalid = true; const char_type* __name; if (__beg != __end) { const char_type __c = *__beg; for (size_t __i1 = 0; __i1 < __indexlen; ++__i1) if (__c == __names[__i1][0] || __c == __ctype.toupper(__names[__i1][0])) __matches[__nmatches++] = __i1; } while (__nmatches > 1) { size_t __minlen = __traits_type::length(__names[__matches[0]]); for (size_t __i2 = 1; __i2 < __nmatches; ++__i2) __minlen = std::min(__minlen, __traits_type::length(__names[__matches[__i2]])); ++__beg, ++__pos; if (__pos < __minlen && __beg != __end) for (size_t __i3 = 0; __i3 < __nmatches;) { __name = __names[__matches[__i3]]; if (!(__name[__pos] == *__beg)) __matches[__i3] = __matches[--__nmatches]; else ++__i3; } else break; } if (__nmatches == 1) { ++__beg, ++__pos; __name = __names[__matches[0]]; const size_t __len = __traits_type::length(__name); while (__pos < __len && __beg != __end && __name[__pos] == *__beg) ++__beg, ++__pos; if (__len == __pos) __member = __matches[0]; else __testvalid = false; } else __testvalid = false; if (!__testvalid) __err |= ios_base::failbit; return __beg; } template _InIter time_get<_CharT, _InIter>:: _M_extract_wday_or_month(iter_type __beg, iter_type __end, int& __member, const _CharT** __names, size_t __indexlen, ios_base& __io, ios_base::iostate& __err) const { typedef char_traits<_CharT> __traits_type; const locale& __loc = __io._M_getloc(); const ctype<_CharT>& __ctype = use_facet >(__loc); int* __matches = static_cast(__builtin_alloca(2 * sizeof(int) * __indexlen)); size_t __nmatches = 0; size_t* __matches_lengths = 0; size_t __pos = 0; if (__beg != __end) { const char_type __c = *__beg; for (size_t __i = 0; __i < 2 * __indexlen; ++__i) if (__c == __names[__i][0] || __c == __ctype.toupper(__names[__i][0])) __matches[__nmatches++] = __i; } if (__nmatches) { ++__beg, ++__pos; __matches_lengths = static_cast(__builtin_alloca(sizeof(size_t) * __nmatches)); for (size_t __i = 0; __i < __nmatches; ++__i) __matches_lengths[__i] = __traits_type::length(__names[__matches[__i]]); } for (; __beg != __end; ++__beg, ++__pos) { size_t __nskipped = 0; const char_type __c = *__beg; for (size_t __i = 0; __i < __nmatches;) { const char_type* __name = __names[__matches[__i]]; if (__pos >= __matches_lengths[__i]) ++__nskipped, ++__i; else if (!(__name[__pos] == __c)) { --__nmatches; __matches[__i] = __matches[__nmatches]; __matches_lengths[__i] = __matches_lengths[__nmatches]; } else ++__i; } if (__nskipped == __nmatches) break; } if ((__nmatches == 1 && __matches_lengths[0] == __pos) || (__nmatches == 2 && (__matches_lengths[0] == __pos || __matches_lengths[1] == __pos))) __member = (__matches[0] >= __indexlen ? __matches[0] - __indexlen : __matches[0]); else __err |= ios_base::failbit; return __beg; } template _InIter time_get<_CharT, _InIter>:: do_get_time(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm) const { const locale& __loc = __io._M_getloc(); const __timepunct<_CharT>& __tp = use_facet<__timepunct<_CharT> >(__loc); const char_type* __times[2]; __tp._M_time_formats(__times); __beg = _M_extract_via_format(__beg, __end, __io, __err, __tm, __times[0]); if (__beg == __end) __err |= ios_base::eofbit; return __beg; } template _InIter time_get<_CharT, _InIter>:: do_get_date(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm) const { const locale& __loc = __io._M_getloc(); const __timepunct<_CharT>& __tp = use_facet<__timepunct<_CharT> >(__loc); const char_type* __dates[2]; __tp._M_date_formats(__dates); __beg = _M_extract_via_format(__beg, __end, __io, __err, __tm, __dates[0]); if (__beg == __end) __err |= ios_base::eofbit; return __beg; } template _InIter time_get<_CharT, _InIter>:: do_get_weekday(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm) const { const locale& __loc = __io._M_getloc(); const __timepunct<_CharT>& __tp = use_facet<__timepunct<_CharT> >(__loc); const ctype<_CharT>& __ctype = use_facet >(__loc); const char_type* __days[14]; __tp._M_days_abbreviated(__days); __tp._M_days(__days + 7); int __tmpwday; ios_base::iostate __tmperr = ios_base::goodbit; __beg = _M_extract_wday_or_month(__beg, __end, __tmpwday, __days, 7, __io, __tmperr); if (!__tmperr) __tm->tm_wday = __tmpwday; else __err |= ios_base::failbit; if (__beg == __end) __err |= ios_base::eofbit; return __beg; } template _InIter time_get<_CharT, _InIter>:: do_get_monthname(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm) const { const locale& __loc = __io._M_getloc(); const __timepunct<_CharT>& __tp = use_facet<__timepunct<_CharT> >(__loc); const ctype<_CharT>& __ctype = use_facet >(__loc); const char_type* __months[24]; __tp._M_months_abbreviated(__months); __tp._M_months(__months + 12); int __tmpmon; ios_base::iostate __tmperr = ios_base::goodbit; __beg = _M_extract_wday_or_month(__beg, __end, __tmpmon, __months, 12, __io, __tmperr); if (!__tmperr) __tm->tm_mon = __tmpmon; else __err |= ios_base::failbit; if (__beg == __end) __err |= ios_base::eofbit; return __beg; } template _InIter time_get<_CharT, _InIter>:: do_get_year(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm) const { const locale& __loc = __io._M_getloc(); const ctype<_CharT>& __ctype = use_facet >(__loc); int __tmpyear; ios_base::iostate __tmperr = ios_base::goodbit; __beg = _M_extract_num(__beg, __end, __tmpyear, 0, 9999, 4, __io, __tmperr); if (!__tmperr) __tm->tm_year = __tmpyear < 0 ? __tmpyear + 100 : __tmpyear - 1900; else __err |= ios_base::failbit; if (__beg == __end) __err |= ios_base::eofbit; return __beg; } # 1251 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.tcc" 3 template _OutIter time_put<_CharT, _OutIter>:: put(iter_type __s, ios_base& __io, char_type __fill, const tm* __tm, const _CharT* __beg, const _CharT* __end) const { const locale& __loc = __io._M_getloc(); ctype<_CharT> const& __ctype = use_facet >(__loc); for (; __beg != __end; ++__beg) if (__ctype.narrow(*__beg, 0) != '%') { *__s = *__beg; ++__s; } else if (++__beg != __end) { char __format; char __mod = 0; const char __c = __ctype.narrow(*__beg, 0); if (__c != 'E' && __c != 'O') __format = __c; else if (++__beg != __end) { __mod = __c; __format = __ctype.narrow(*__beg, 0); } else break; __s = this->do_put(__s, __io, __fill, __tm, __format, __mod); } else break; return __s; } template _OutIter time_put<_CharT, _OutIter>:: do_put(iter_type __s, ios_base& __io, char_type, const tm* __tm, char __format, char __mod) const { const locale& __loc = __io._M_getloc(); ctype<_CharT> const& __ctype = use_facet >(__loc); __timepunct<_CharT> const& __tp = use_facet<__timepunct<_CharT> >(__loc); const size_t __maxlen = 128; char_type __res[__maxlen]; char_type __fmt[4]; __fmt[0] = __ctype.widen('%'); if (!__mod) { __fmt[1] = __format; __fmt[2] = char_type(); } else { __fmt[1] = __mod; __fmt[2] = __format; __fmt[3] = char_type(); } __tp._M_put(__res, __maxlen, __fmt, __tm); return std::__write(__s, __res, char_traits::length(__res)); } extern template class moneypunct; extern template class moneypunct; extern template class moneypunct_byname; extern template class moneypunct_byname; extern template class money_get; extern template class money_put; extern template class __timepunct; extern template class time_put; extern template class time_put_byname; extern template class time_get; extern template class time_get_byname; extern template class messages; extern template class messages_byname; extern template const moneypunct& use_facet >(const locale&); extern template const moneypunct& use_facet >(const locale&); extern template const money_put& use_facet >(const locale&); extern template const money_get& use_facet >(const locale&); extern template const __timepunct& use_facet<__timepunct >(const locale&); extern template const time_put& use_facet >(const locale&); extern template const time_get& use_facet >(const locale&); extern template const messages& use_facet >(const locale&); extern template bool has_facet >(const locale&); extern template bool has_facet >(const locale&); extern template bool has_facet >(const locale&); extern template bool has_facet<__timepunct >(const locale&); extern template bool has_facet >(const locale&); extern template bool has_facet >(const locale&); extern template bool has_facet >(const locale&); extern template class moneypunct; extern template class moneypunct; extern template class moneypunct_byname; extern template class moneypunct_byname; extern template class money_get; extern template class money_put; extern template class __timepunct; extern template class time_put; extern template class time_put_byname; extern template class time_get; extern template class time_get_byname; extern template class messages; extern template class messages_byname; extern template const moneypunct& use_facet >(const locale&); extern template const moneypunct& use_facet >(const locale&); extern template const money_put& use_facet >(const locale&); extern template const money_get& use_facet >(const locale&); extern template const __timepunct& use_facet<__timepunct >(const locale&); extern template const time_put& use_facet >(const locale&); extern template const time_get& use_facet >(const locale&); extern template const messages& use_facet >(const locale&); extern template bool has_facet >(const locale&); extern template bool has_facet >(const locale&); extern template bool has_facet >(const locale&); extern template bool has_facet<__timepunct >(const locale&); extern template bool has_facet >(const locale&); extern template bool has_facet >(const locale&); extern template bool has_facet >(const locale&); } # 2014 "/usr/include/c++/5.0.0/bits/locale_facets_nonio.h" 2 3 # 42 "/usr/include/c++/5.0.0/locale" 2 3 # 45 "/usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp" 2 3 4 # 59 "/usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp" 3 4 # 1 "/usr/include/c++/5.0.0/sstream" 1 3 4 # 36 "/usr/include/c++/5.0.0/sstream" 3 4 # 37 "/usr/include/c++/5.0.0/sstream" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 64 "/usr/include/c++/5.0.0/sstream" 3 template class basic_stringbuf : public basic_streambuf<_CharT, _Traits> { struct __xfer_bufptrs; public: typedef _CharT char_type; typedef _Traits traits_type; typedef _Alloc allocator_type; typedef typename traits_type::int_type int_type; typedef typename traits_type::pos_type pos_type; typedef typename traits_type::off_type off_type; typedef basic_streambuf __streambuf_type; typedef basic_string __string_type; typedef typename __string_type::size_type __size_type; protected: ios_base::openmode _M_mode; __string_type _M_string; public: # 99 "/usr/include/c++/5.0.0/sstream" 3 explicit basic_stringbuf(ios_base::openmode __mode = ios_base::in | ios_base::out) : __streambuf_type(), _M_mode(__mode), _M_string() { } # 112 "/usr/include/c++/5.0.0/sstream" 3 explicit basic_stringbuf(const __string_type& __str, ios_base::openmode __mode = ios_base::in | ios_base::out) : __streambuf_type(), _M_mode(), _M_string(__str.data(), __str.size()) { _M_stringbuf_init(__mode); } # 165 "/usr/include/c++/5.0.0/sstream" 3 __string_type str() const { __string_type __ret; if (this->pptr()) { if (this->pptr() > this->egptr()) __ret = __string_type(this->pbase(), this->pptr()); else __ret = __string_type(this->pbase(), this->egptr()); } else __ret = _M_string; return __ret; } # 189 "/usr/include/c++/5.0.0/sstream" 3 void str(const __string_type& __s) { _M_string.assign(__s.data(), __s.size()); _M_stringbuf_init(_M_mode); } protected: void _M_stringbuf_init(ios_base::openmode __mode) { _M_mode = __mode; __size_type __len = 0; if (_M_mode & (ios_base::ate | ios_base::app)) __len = _M_string.size(); _M_sync(const_cast(_M_string.data()), 0, __len); } virtual streamsize showmanyc() { streamsize __ret = -1; if (_M_mode & ios_base::in) { _M_update_egptr(); __ret = this->egptr() - this->gptr(); } return __ret; } virtual int_type underflow(); virtual int_type pbackfail(int_type __c = traits_type::eof()); virtual int_type overflow(int_type __c = traits_type::eof()); # 242 "/usr/include/c++/5.0.0/sstream" 3 virtual __streambuf_type* setbuf(char_type* __s, streamsize __n) { if (__s && __n >= 0) { _M_string.clear(); _M_sync(__s, __n, 0); } return this; } virtual pos_type seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode __mode = ios_base::in | ios_base::out); virtual pos_type seekpos(pos_type __sp, ios_base::openmode __mode = ios_base::in | ios_base::out); void _M_sync(char_type* __base, __size_type __i, __size_type __o); void _M_update_egptr() { const bool __testin = _M_mode & ios_base::in; if (this->pptr() && this->pptr() > this->egptr()) { if (__testin) this->setg(this->eback(), this->gptr(), this->pptr()); else this->setg(this->pptr(), this->pptr(), this->pptr()); } } void _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off); private: # 348 "/usr/include/c++/5.0.0/sstream" 3 }; # 366 "/usr/include/c++/5.0.0/sstream" 3 template class basic_istringstream : public basic_istream<_CharT, _Traits> { public: typedef _CharT char_type; typedef _Traits traits_type; typedef _Alloc allocator_type; typedef typename traits_type::int_type int_type; typedef typename traits_type::pos_type pos_type; typedef typename traits_type::off_type off_type; typedef basic_string<_CharT, _Traits, _Alloc> __string_type; typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; typedef basic_istream __istream_type; private: __stringbuf_type _M_stringbuf; public: # 402 "/usr/include/c++/5.0.0/sstream" 3 explicit basic_istringstream(ios_base::openmode __mode = ios_base::in) : __istream_type(), _M_stringbuf(__mode | ios_base::in) { this->init(&_M_stringbuf); } # 420 "/usr/include/c++/5.0.0/sstream" 3 explicit basic_istringstream(const __string_type& __str, ios_base::openmode __mode = ios_base::in) : __istream_type(), _M_stringbuf(__str, __mode | ios_base::in) { this->init(&_M_stringbuf); } ~basic_istringstream() { } # 471 "/usr/include/c++/5.0.0/sstream" 3 __stringbuf_type* rdbuf() const { return const_cast<__stringbuf_type*>(&_M_stringbuf); } __string_type str() const { return _M_stringbuf.str(); } void str(const __string_type& __s) { _M_stringbuf.str(__s); } }; # 510 "/usr/include/c++/5.0.0/sstream" 3 template class basic_ostringstream : public basic_ostream<_CharT, _Traits> { public: typedef _CharT char_type; typedef _Traits traits_type; typedef _Alloc allocator_type; typedef typename traits_type::int_type int_type; typedef typename traits_type::pos_type pos_type; typedef typename traits_type::off_type off_type; typedef basic_string<_CharT, _Traits, _Alloc> __string_type; typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; typedef basic_ostream __ostream_type; private: __stringbuf_type _M_stringbuf; public: # 546 "/usr/include/c++/5.0.0/sstream" 3 explicit basic_ostringstream(ios_base::openmode __mode = ios_base::out) : __ostream_type(), _M_stringbuf(__mode | ios_base::out) { this->init(&_M_stringbuf); } # 564 "/usr/include/c++/5.0.0/sstream" 3 explicit basic_ostringstream(const __string_type& __str, ios_base::openmode __mode = ios_base::out) : __ostream_type(), _M_stringbuf(__str, __mode | ios_base::out) { this->init(&_M_stringbuf); } ~basic_ostringstream() { } # 615 "/usr/include/c++/5.0.0/sstream" 3 __stringbuf_type* rdbuf() const { return const_cast<__stringbuf_type*>(&_M_stringbuf); } __string_type str() const { return _M_stringbuf.str(); } void str(const __string_type& __s) { _M_stringbuf.str(__s); } }; # 654 "/usr/include/c++/5.0.0/sstream" 3 template class basic_stringstream : public basic_iostream<_CharT, _Traits> { public: typedef _CharT char_type; typedef _Traits traits_type; typedef _Alloc allocator_type; typedef typename traits_type::int_type int_type; typedef typename traits_type::pos_type pos_type; typedef typename traits_type::off_type off_type; typedef basic_string<_CharT, _Traits, _Alloc> __string_type; typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; typedef basic_iostream __iostream_type; private: __stringbuf_type _M_stringbuf; public: # 689 "/usr/include/c++/5.0.0/sstream" 3 explicit basic_stringstream(ios_base::openmode __m = ios_base::out | ios_base::in) : __iostream_type(), _M_stringbuf(__m) { this->init(&_M_stringbuf); } # 705 "/usr/include/c++/5.0.0/sstream" 3 explicit basic_stringstream(const __string_type& __str, ios_base::openmode __m = ios_base::out | ios_base::in) : __iostream_type(), _M_stringbuf(__str, __m) { this->init(&_M_stringbuf); } ~basic_stringstream() { } # 756 "/usr/include/c++/5.0.0/sstream" 3 __stringbuf_type* rdbuf() const { return const_cast<__stringbuf_type*>(&_M_stringbuf); } __string_type str() const { return _M_stringbuf.str(); } void str(const __string_type& __s) { _M_stringbuf.str(__s); } }; # 809 "/usr/include/c++/5.0.0/sstream" 3 } # 1 "/usr/include/c++/5.0.0/bits/sstream.tcc" 1 3 # 37 "/usr/include/c++/5.0.0/bits/sstream.tcc" 3 # 38 "/usr/include/c++/5.0.0/bits/sstream.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type basic_stringbuf<_CharT, _Traits, _Alloc>:: pbackfail(int_type __c) { int_type __ret = traits_type::eof(); if (this->eback() < this->gptr()) { const bool __testeof = traits_type::eq_int_type(__c, __ret); if (!__testeof) { const bool __testeq = traits_type::eq(traits_type:: to_char_type(__c), this->gptr()[-1]); const bool __testout = this->_M_mode & ios_base::out; if (__testeq || __testout) { this->gbump(-1); if (!__testeq) *this->gptr() = traits_type::to_char_type(__c); __ret = __c; } } else { this->gbump(-1); __ret = traits_type::not_eof(__c); } } return __ret; } template typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type basic_stringbuf<_CharT, _Traits, _Alloc>:: overflow(int_type __c) { const bool __testout = this->_M_mode & ios_base::out; if (__builtin_expect(!__testout, false)) return traits_type::eof(); const bool __testeof = traits_type::eq_int_type(__c, traits_type::eof()); if (__builtin_expect(__testeof, false)) return traits_type::not_eof(__c); const __size_type __capacity = _M_string.capacity(); const __size_type __max_size = _M_string.max_size(); const bool __testput = this->pptr() < this->epptr(); if (__builtin_expect(!__testput && __capacity == __max_size, false)) return traits_type::eof(); const char_type __conv = traits_type::to_char_type(__c); if (!__testput) { # 110 "/usr/include/c++/5.0.0/bits/sstream.tcc" 3 const __size_type __opt_len = std::max(__size_type(2 * __capacity), __size_type(512)); const __size_type __len = std::min(__opt_len, __max_size); __string_type __tmp; __tmp.reserve(__len); if (this->pbase()) __tmp.assign(this->pbase(), this->epptr() - this->pbase()); __tmp.push_back(__conv); _M_string.swap(__tmp); _M_sync(const_cast(_M_string.data()), this->gptr() - this->eback(), this->pptr() - this->pbase()); } else *this->pptr() = __conv; this->pbump(1); return __c; } template typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type basic_stringbuf<_CharT, _Traits, _Alloc>:: underflow() { int_type __ret = traits_type::eof(); const bool __testin = this->_M_mode & ios_base::in; if (__testin) { _M_update_egptr(); if (this->gptr() < this->egptr()) __ret = traits_type::to_int_type(*this->gptr()); } return __ret; } template typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type basic_stringbuf<_CharT, _Traits, _Alloc>:: seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode __mode) { pos_type __ret = pos_type(off_type(-1)); bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; const bool __testboth = __testin && __testout && __way != ios_base::cur; __testin &= !(__mode & ios_base::out); __testout &= !(__mode & ios_base::in); const char_type* __beg = __testin ? this->eback() : this->pbase(); if ((__beg || !__off) && (__testin || __testout || __testboth)) { _M_update_egptr(); off_type __newoffi = __off; off_type __newoffo = __newoffi; if (__way == ios_base::cur) { __newoffi += this->gptr() - __beg; __newoffo += this->pptr() - __beg; } else if (__way == ios_base::end) __newoffo = __newoffi += this->egptr() - __beg; if ((__testin || __testboth) && __newoffi >= 0 && this->egptr() - __beg >= __newoffi) { this->setg(this->eback(), this->eback() + __newoffi, this->egptr()); __ret = pos_type(__newoffi); } if ((__testout || __testboth) && __newoffo >= 0 && this->egptr() - __beg >= __newoffo) { _M_pbump(this->pbase(), this->epptr(), __newoffo); __ret = pos_type(__newoffo); } } return __ret; } template typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type basic_stringbuf<_CharT, _Traits, _Alloc>:: seekpos(pos_type __sp, ios_base::openmode __mode) { pos_type __ret = pos_type(off_type(-1)); const bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; const bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; const char_type* __beg = __testin ? this->eback() : this->pbase(); if ((__beg || !off_type(__sp)) && (__testin || __testout)) { _M_update_egptr(); const off_type __pos(__sp); const bool __testpos = (0 <= __pos && __pos <= this->egptr() - __beg); if (__testpos) { if (__testin) this->setg(this->eback(), this->eback() + __pos, this->egptr()); if (__testout) _M_pbump(this->pbase(), this->epptr(), __pos); __ret = __sp; } } return __ret; } template void basic_stringbuf<_CharT, _Traits, _Alloc>:: _M_sync(char_type* __base, __size_type __i, __size_type __o) { const bool __testin = _M_mode & ios_base::in; const bool __testout = _M_mode & ios_base::out; char_type* __endg = __base + _M_string.size(); char_type* __endp = __base + _M_string.capacity(); if (__base != _M_string.data()) { __endg += __i; __i = 0; __endp = __endg; } if (__testin) this->setg(__base, __base + __i, __endg); if (__testout) { _M_pbump(__base, __endp, __o); if (!__testin) this->setg(__endg, __endg, __endg); } } template void basic_stringbuf<_CharT, _Traits, _Alloc>:: _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off) { this->setp(__pbeg, __pend); while (__off > __gnu_cxx::__numeric_traits::__max) { this->pbump(__gnu_cxx::__numeric_traits::__max); __off -= __gnu_cxx::__numeric_traits::__max; } this->pbump(__off); } extern template class basic_stringbuf; extern template class basic_istringstream; extern template class basic_ostringstream; extern template class basic_stringstream; extern template class basic_stringbuf; extern template class basic_istringstream; extern template class basic_ostringstream; extern template class basic_stringstream; } # 814 "/usr/include/c++/5.0.0/sstream" 2 3 # 60 "/usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp" 2 3 4 # 1 "/usr/include/boost/lexical_cast/detail/lcast_char_constants.hpp" 1 3 4 # 23 "/usr/include/boost/lexical_cast/detail/lcast_char_constants.hpp" 3 4 namespace boost { namespace detail { template < typename Char > struct lcast_char_constants { static const Char zero = static_cast('0'); static const Char minus = static_cast('-'); static const Char plus = static_cast('+'); static const Char lowercase_e = static_cast('e'); static const Char capital_e = static_cast('E'); static const Char c_decimal_separator = static_cast('.'); }; } } # 63 "/usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp" 2 3 4 # 1 "/usr/include/boost/lexical_cast/detail/lcast_unsigned_converters.hpp" 1 3 4 # 23 "/usr/include/boost/lexical_cast/detail/lcast_unsigned_converters.hpp" 3 4 # 1 "/usr/include/c++/5.0.0/climits" 1 3 4 # 39 "/usr/include/c++/5.0.0/climits" 3 4 # 40 "/usr/include/c++/5.0.0/climits" 3 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/limits.h" 1 3 4 # 42 "/usr/include/c++/5.0.0/climits" 2 3 # 27 "/usr/include/boost/lexical_cast/detail/lcast_unsigned_converters.hpp" 2 3 4 # 1 "/usr/include/c++/5.0.0/cstring" 1 3 4 # 39 "/usr/include/c++/5.0.0/cstring" 3 4 # 40 "/usr/include/c++/5.0.0/cstring" 3 # 30 "/usr/include/boost/lexical_cast/detail/lcast_unsigned_converters.hpp" 2 3 4 # 1 "/usr/include/c++/5.0.0/cstdio" 1 3 4 # 39 "/usr/include/c++/5.0.0/cstdio" 3 4 # 40 "/usr/include/c++/5.0.0/cstdio" 3 # 31 "/usr/include/boost/lexical_cast/detail/lcast_unsigned_converters.hpp" 2 3 4 # 56 "/usr/include/boost/lexical_cast/detail/lcast_unsigned_converters.hpp" 3 4 namespace boost { namespace detail { template inline typename boost::make_unsigned::type lcast_to_unsigned(const T value) { typedef typename boost::make_unsigned::type result_type; return value < 0 ? static_cast(0u - static_cast(value)) : static_cast(value); } } namespace detail { template class lcast_put_unsigned: boost::noncopyable { typedef typename Traits::int_type int_type; typename boost::mpl::if_c< (sizeof(int_type) > sizeof(T)) , int_type , T >::type m_value; CharT* m_finish; CharT const m_czero; int_type const m_zero; public: lcast_put_unsigned(const T n_param, CharT* finish) : m_value(n_param), m_finish(finish) , m_czero(lcast_char_constants::zero), m_zero(Traits::to_int_type(m_czero)) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((!std::numeric_limits::is_signed) == 0 ? false : true) >)> boost_static_assert_typedef_90 __attribute__((unused)); } CharT* convert() { std::locale loc; if (loc == std::locale::classic()) { return main_convert_loop(); } typedef std::numpunct numpunct; numpunct const& np = std::use_facet< numpunct >(loc); std::string const grouping = np.grouping(); std::string::size_type const grouping_size = grouping.size(); if (!grouping_size || grouping[0] <= 0) { return main_convert_loop(); } typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((std::numeric_limits::digits10 < 0x7f) == 0 ? false : true) >)> boost_static_assert_typedef_112 __attribute__((unused)); CharT const thousands_sep = np.thousands_sep(); std::string::size_type group = 0; char last_grp_size = grouping[0]; char left = last_grp_size; do { if (left == 0) { ++group; if (group < grouping_size) { char const grp_size = grouping[group]; last_grp_size = (grp_size <= 0 ? static_cast(0x7f) : grp_size); } left = last_grp_size; --m_finish; Traits::assign(*m_finish, thousands_sep); } --left; } while (main_convert_iteration()); return m_finish; } private: inline bool main_convert_iteration() { --m_finish; int_type const digit = static_cast(m_value % 10U); Traits::assign(*m_finish, Traits::to_char_type(m_zero + digit)); m_value /= 10; return !!m_value; } inline CharT* main_convert_loop() { while (main_convert_iteration()); return m_finish; } }; } namespace detail { template class lcast_ret_unsigned: boost::noncopyable { bool m_multiplier_overflowed; T m_multiplier; T& m_value; const CharT* const m_begin; const CharT* m_end; public: lcast_ret_unsigned(T& value, const CharT* const begin, const CharT* end) : m_multiplier_overflowed(false), m_multiplier(1), m_value(value), m_begin(begin), m_end(end) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((!std::numeric_limits::is_signed) == 0 ? false : true) >)> boost_static_assert_typedef_172 __attribute__((unused)); typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((std::numeric_limits::is_specialized) == 0 ? false : true) >)> boost_static_assert_typedef_181 __attribute__((unused)) ; } inline bool convert() { CharT const czero = lcast_char_constants::zero; --m_end; m_value = static_cast(0); if (m_begin > m_end || *m_end < czero || *m_end >= czero + 10) return false; m_value = static_cast(*m_end - czero); --m_end; std::locale loc; if (loc == std::locale::classic()) { return main_convert_loop(); } typedef std::numpunct numpunct; numpunct const& np = std::use_facet< numpunct >(loc); std::string const& grouping = np.grouping(); std::string::size_type const grouping_size = grouping.size(); if (!grouping_size || grouping[0] <= 0) { return main_convert_loop(); } unsigned char current_grouping = 0; CharT const thousands_sep = np.thousands_sep(); char remained = static_cast(grouping[current_grouping] - 1); for (;m_end >= m_begin; --m_end) { if (remained) { if (!main_convert_iteration()) { return false; } --remained; } else { if ( !Traits::eq(*m_end, thousands_sep) ) { # 240 "/usr/include/boost/lexical_cast/detail/lcast_unsigned_converters.hpp" 3 4 return main_convert_loop(); } else { if (m_begin == m_end) return false; if (current_grouping < grouping_size - 1) ++current_grouping; remained = grouping[current_grouping]; } } } return true; } private: inline bool main_convert_iteration() { CharT const czero = lcast_char_constants::zero; T const maxv = (std::numeric_limits::max)(); m_multiplier_overflowed = m_multiplier_overflowed || (maxv/10 < m_multiplier); m_multiplier = static_cast(m_multiplier * 10); T const dig_value = static_cast(*m_end - czero); T const new_sub_value = static_cast(m_multiplier * dig_value); if (*m_end < czero || *m_end >= czero + 10 || (dig_value && ( m_multiplier_overflowed || static_cast(maxv / dig_value) < m_multiplier || static_cast(maxv - new_sub_value) < m_value )) ) return false; m_value = static_cast(m_value + new_sub_value); return true; } bool main_convert_loop() { for ( ; m_end >= m_begin; --m_end) { if (!main_convert_iteration()) { return false; } } return true; } }; } } # 64 "/usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp" 2 3 4 # 1 "/usr/include/boost/lexical_cast/detail/inf_nan.hpp" 1 3 4 # 23 "/usr/include/boost/lexical_cast/detail/inf_nan.hpp" 3 4 # 1 "/usr/include/c++/5.0.0/cstring" 1 3 4 # 39 "/usr/include/c++/5.0.0/cstring" 3 4 # 40 "/usr/include/c++/5.0.0/cstring" 3 # 32 "/usr/include/boost/lexical_cast/detail/inf_nan.hpp" 2 3 4 # 1 "/usr/include/boost/math/special_functions/sign.hpp" 1 3 4 # 16 "/usr/include/boost/math/special_functions/sign.hpp" 3 4 # 1 "/usr/include/boost/math/tools/config.hpp" 1 3 4 # 14 "/usr/include/boost/math/tools/config.hpp" 3 4 # 1 "/usr/include/boost/cstdint.hpp" 1 3 4 # 15 "/usr/include/boost/math/tools/config.hpp" 2 3 4 # 1 "/usr/include/c++/5.0.0/climits" 1 3 4 # 39 "/usr/include/c++/5.0.0/climits" 3 4 # 40 "/usr/include/c++/5.0.0/climits" 3 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/limits.h" 1 3 4 # 42 "/usr/include/c++/5.0.0/climits" 2 3 # 20 "/usr/include/boost/math/tools/config.hpp" 2 3 4 # 1 "/usr/include/c++/5.0.0/cfloat" 1 3 4 # 39 "/usr/include/c++/5.0.0/cfloat" 3 4 # 40 "/usr/include/c++/5.0.0/cfloat" 3 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/float.h" 1 3 4 # 42 "/usr/include/c++/5.0.0/cfloat" 2 3 # 21 "/usr/include/boost/math/tools/config.hpp" 2 3 4 # 1 "/usr/include/boost/math/tools/user.hpp" 1 3 4 # 29 "/usr/include/boost/math/tools/config.hpp" 2 3 4 # 282 "/usr/include/boost/math/tools/config.hpp" 3 4 namespace boost{ namespace math{ namespace tools { template inline T max (T a, T b, T c) { return (std::max)((std::max)(a, b), c); } template inline T max (T a, T b, T c, T d) { return (std::max)((std::max)(a, b), (std::max)(c, d)); } } template void suppress_unused_variable_warning(const T&) { } namespace detail{ template struct is_integer_for_rounding { static const bool value = boost::is_integral::value || (std::numeric_limits::is_specialized && std::numeric_limits::is_integer) ; }; } }} # 17 "/usr/include/boost/math/special_functions/sign.hpp" 2 3 4 # 1 "/usr/include/boost/math/special_functions/math_fwd.hpp" 1 3 4 # 26 "/usr/include/boost/math/special_functions/math_fwd.hpp" 3 4 # 1 "/usr/include/boost/math/special_functions/detail/round_fwd.hpp" 1 3 4 # 12 "/usr/include/boost/math/special_functions/detail/round_fwd.hpp" 3 4 # 1 "/usr/include/boost/math/tools/promotion.hpp" 1 3 4 # 27 "/usr/include/boost/math/tools/promotion.hpp" 3 4 # 1 "/usr/include/boost/type_traits/is_floating_point.hpp" 1 3 4 # 13 "/usr/include/boost/type_traits/is_floating_point.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 14 "/usr/include/boost/type_traits/is_floating_point.hpp" 2 3 4 namespace boost { template< typename T > struct is_floating_point : public ::boost::integral_constant { public: }; template<> struct is_floating_point< float > : public ::boost::integral_constant { public: }; template<> struct is_floating_point< float const > : public ::boost::integral_constant { public: }; template<> struct is_floating_point< float volatile > : public ::boost::integral_constant { public: }; template<> struct is_floating_point< float const volatile > : public ::boost::integral_constant { public: }; template<> struct is_floating_point< double > : public ::boost::integral_constant { public: }; template<> struct is_floating_point< double const > : public ::boost::integral_constant { public: }; template<> struct is_floating_point< double volatile > : public ::boost::integral_constant { public: }; template<> struct is_floating_point< double const volatile > : public ::boost::integral_constant { public: }; template<> struct is_floating_point< long double > : public ::boost::integral_constant { public: }; template<> struct is_floating_point< long double const > : public ::boost::integral_constant { public: }; template<> struct is_floating_point< long double volatile > : public ::boost::integral_constant { public: }; template<> struct is_floating_point< long double const volatile > : public ::boost::integral_constant { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 26 "/usr/include/boost/type_traits/is_floating_point.hpp" 2 3 4 # 28 "/usr/include/boost/math/tools/promotion.hpp" 2 3 4 # 42 "/usr/include/boost/math/tools/promotion.hpp" 3 4 namespace boost { namespace math { namespace tools { # 68 "/usr/include/boost/math/tools/promotion.hpp" 3 4 template struct promote_arg { typedef typename mpl::if_, double, T>::type type; }; template <> struct promote_arg { typedef float type; }; template <> struct promote_arg{ typedef double type; }; template <> struct promote_arg { typedef long double type; }; template <> struct promote_arg { typedef double type; }; template struct promote_args_2 { typedef typename promote_arg::type T1P; typedef typename promote_arg::type T2P; typedef typename mpl::if_< typename mpl::and_, is_floating_point >::type, typename mpl::if_< typename mpl::or_, is_same >::type, long double, typename mpl::if_< typename mpl::or_, is_same >::type, double, float >::type >::type, typename mpl::if_< typename mpl::and_ >, ::boost::is_convertible >, T2P, T1P>::type>::type type; }; template <> struct promote_args_2 { typedef float type; }; template <> struct promote_args_2{ typedef double type; }; template <> struct promote_args_2 { typedef long double type; }; template <> struct promote_args_2 { typedef double type; }; template <> struct promote_args_2 { typedef double type; }; template <> struct promote_args_2 { typedef double type; }; template <> struct promote_args_2 { typedef double type; }; template <> struct promote_args_2 { typedef double type; }; template <> struct promote_args_2 { typedef long double type; }; template <> struct promote_args_2 { typedef long double type; }; template <> struct promote_args_2 { typedef double type; }; template <> struct promote_args_2 { typedef double type; }; template <> struct promote_args_2 { typedef long double type; }; template <> struct promote_args_2 { typedef long double type; }; template <> struct promote_args_2 { typedef long double type; }; template <> struct promote_args_2 { typedef long double type; }; template struct promote_args { typedef typename promote_args_2< typename remove_cv::type, typename promote_args_2< typename remove_cv::type, typename promote_args_2< typename remove_cv::type, typename promote_args_2< typename remove_cv::type, typename promote_args_2< typename remove_cv::type, typename remove_cv::type >::type >::type >::type >::type >::type type; }; template struct promote_args_permissive { typedef typename promote_args_2< typename remove_cv::type, typename promote_args_2< typename remove_cv::type, typename promote_args_2< typename remove_cv::type, typename promote_args_2< typename remove_cv::type, typename promote_args_2< typename remove_cv::type, typename remove_cv::type >::type >::type >::type >::type >::type type; }; } } } # 13 "/usr/include/boost/math/special_functions/detail/round_fwd.hpp" 2 3 4 namespace boost { namespace math { template typename tools::promote_args::type trunc(const T& v, const Policy& pol); template typename tools::promote_args::type trunc(const T& v); template int itrunc(const T& v, const Policy& pol); template int itrunc(const T& v); template long ltrunc(const T& v, const Policy& pol); template long ltrunc(const T& v); template boost::long_long_type lltrunc(const T& v, const Policy& pol); template boost::long_long_type lltrunc(const T& v); template typename tools::promote_args::type round(const T& v, const Policy& pol); template typename tools::promote_args::type round(const T& v); template int iround(const T& v, const Policy& pol); template int iround(const T& v); template long lround(const T& v, const Policy& pol); template long lround(const T& v); template boost::long_long_type llround(const T& v, const Policy& pol); template boost::long_long_type llround(const T& v); template T modf(const T& v, T* ipart, const Policy& pol); template T modf(const T& v, T* ipart); template T modf(const T& v, int* ipart, const Policy& pol); template T modf(const T& v, int* ipart); template T modf(const T& v, long* ipart, const Policy& pol); template T modf(const T& v, long* ipart); template T modf(const T& v, boost::long_long_type* ipart, const Policy& pol); template T modf(const T& v, boost::long_long_type* ipart); } } # 27 "/usr/include/boost/math/special_functions/math_fwd.hpp" 2 3 4 # 1 "/usr/include/boost/math/policies/policy.hpp" 1 3 4 # 9 "/usr/include/boost/math/policies/policy.hpp" 3 4 # 1 "/usr/include/boost/mpl/list.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/list.hpp" 3 4 # 1 "/usr/include/boost/mpl/limits/list.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/list.hpp" 2 3 4 # 36 "/usr/include/boost/mpl/list.hpp" 3 4 # 1 "/usr/include/boost/mpl/list/list20.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/list/list20.hpp" 3 4 # 1 "/usr/include/boost/mpl/list/list10.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/list/list10.hpp" 3 4 # 1 "/usr/include/boost/mpl/list/list0.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/list/list0.hpp" 3 4 # 1 "/usr/include/boost/mpl/long.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/long.hpp" 3 4 # 1 "/usr/include/boost/mpl/long_fwd.hpp" 1 3 4 # 20 "/usr/include/boost/mpl/long_fwd.hpp" 3 4 namespace mpl_ { template< long N > struct long_; } namespace boost { namespace mpl { using ::mpl_::long_; } } # 18 "/usr/include/boost/mpl/long.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/integral_wrapper.hpp" 1 3 4 # 40 "/usr/include/boost/mpl/aux_/integral_wrapper.hpp" 3 4 namespace mpl_ { template< long N > struct long_ { static const long value = N; typedef long_ type; typedef long value_type; typedef integral_c_tag tag; # 72 "/usr/include/boost/mpl/aux_/integral_wrapper.hpp" 3 4 typedef mpl_::long_< static_cast((value + 1)) > next; typedef mpl_::long_< static_cast((value - 1)) > prior; operator long() const { return static_cast(this->value); } }; template< long N > long const mpl_::long_< N >::value; } # 21 "/usr/include/boost/mpl/long.hpp" 2 3 4 # 18 "/usr/include/boost/mpl/list/list0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/list/aux_/push_front.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/list/aux_/push_front.hpp" 3 4 # 1 "/usr/include/boost/mpl/push_front_fwd.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/push_front_fwd.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag > struct push_front_impl; template< typename Sequence, typename T > struct push_front; }} # 18 "/usr/include/boost/mpl/list/aux_/push_front.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/list/aux_/item.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/list/aux_/item.hpp" 3 4 # 1 "/usr/include/boost/mpl/list/aux_/tag.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/list/aux_/tag.hpp" 3 4 namespace boost { namespace mpl { namespace aux { struct list_tag; struct l_iter_tag; }}} # 19 "/usr/include/boost/mpl/list/aux_/item.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Size , typename T , typename Next > struct l_item { typedef aux::list_tag tag; typedef l_item type; typedef Size size; typedef T item; typedef Next next; }; struct l_end { typedef aux::list_tag tag; typedef l_end type; typedef long_<0> size; }; }} # 20 "/usr/include/boost/mpl/list/aux_/push_front.hpp" 2 3 4 namespace boost { namespace mpl { template<> struct push_front_impl< aux::list_tag > { template< typename List, typename T > struct apply { typedef l_item< typename next::type , T , typename List::type > type; }; }; }} # 20 "/usr/include/boost/mpl/list/list0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/list/aux_/pop_front.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/list/aux_/pop_front.hpp" 3 4 # 1 "/usr/include/boost/mpl/pop_front_fwd.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/pop_front_fwd.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag > struct pop_front_impl; template< typename Sequence > struct pop_front; }} # 18 "/usr/include/boost/mpl/list/aux_/pop_front.hpp" 2 3 4 namespace boost { namespace mpl { template<> struct pop_front_impl< aux::list_tag > { template< typename List > struct apply { typedef typename mpl::next::type type; }; }; }} # 21 "/usr/include/boost/mpl/list/list0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/list/aux_/push_back.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/list/aux_/push_back.hpp" 3 4 # 1 "/usr/include/boost/mpl/push_back_fwd.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/push_back_fwd.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag > struct push_back_impl; template< typename Sequence, typename T > struct push_back; }} # 18 "/usr/include/boost/mpl/list/aux_/push_back.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Tag > struct has_push_back_impl; template<> struct has_push_back_impl< aux::list_tag > { template< typename Seq > struct apply : false_ { }; }; }} # 22 "/usr/include/boost/mpl/list/list0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/list/aux_/front.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/list/aux_/front.hpp" 3 4 # 1 "/usr/include/boost/mpl/front_fwd.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/front_fwd.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag > struct front_impl; template< typename Sequence > struct front; }} # 18 "/usr/include/boost/mpl/list/aux_/front.hpp" 2 3 4 namespace boost { namespace mpl { template<> struct front_impl< aux::list_tag > { template< typename List > struct apply { typedef typename List::item type; }; }; }} # 23 "/usr/include/boost/mpl/list/list0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/list/aux_/clear.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/list/aux_/clear.hpp" 3 4 # 1 "/usr/include/boost/mpl/clear_fwd.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/clear_fwd.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag > struct clear_impl; template< typename Sequence > struct clear; }} # 18 "/usr/include/boost/mpl/list/aux_/clear.hpp" 2 3 4 namespace boost { namespace mpl { template<> struct clear_impl< aux::list_tag > { template< typename List > struct apply { typedef l_end type; }; }; }} # 24 "/usr/include/boost/mpl/list/list0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/list/aux_/O1_size.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/list/aux_/O1_size.hpp" 3 4 # 1 "/usr/include/boost/mpl/O1_size_fwd.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/O1_size_fwd.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag > struct O1_size_impl; template< typename Sequence > struct O1_size; }} # 18 "/usr/include/boost/mpl/list/aux_/O1_size.hpp" 2 3 4 namespace boost { namespace mpl { template<> struct O1_size_impl< aux::list_tag > { template< typename List > struct apply : List::size { }; }; }} # 25 "/usr/include/boost/mpl/list/list0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/list/aux_/size.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/list/aux_/size.hpp" 3 4 # 1 "/usr/include/boost/mpl/size_fwd.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/size_fwd.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag > struct size_impl; template< typename Sequence > struct size; }} # 18 "/usr/include/boost/mpl/list/aux_/size.hpp" 2 3 4 namespace boost { namespace mpl { template<> struct size_impl< aux::list_tag > { template< typename List > struct apply : List::size { }; }; }} # 26 "/usr/include/boost/mpl/list/list0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/list/aux_/empty.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/list/aux_/empty.hpp" 3 4 # 1 "/usr/include/boost/mpl/empty_fwd.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/empty_fwd.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag > struct empty_impl; template< typename Sequence > struct empty; }} # 18 "/usr/include/boost/mpl/list/aux_/empty.hpp" 2 3 4 namespace boost { namespace mpl { template<> struct empty_impl< aux::list_tag > { template< typename List > struct apply : not_ { }; }; }} # 27 "/usr/include/boost/mpl/list/list0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/list/aux_/begin_end.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/list/aux_/begin_end.hpp" 3 4 # 1 "/usr/include/boost/mpl/begin_end_fwd.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/begin_end_fwd.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag > struct begin_impl; template< typename Tag > struct end_impl; template< typename Sequence > struct begin; template< typename Sequence > struct end; }} # 18 "/usr/include/boost/mpl/list/aux_/begin_end.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/list/aux_/iterator.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/list/aux_/iterator.hpp" 3 4 # 1 "/usr/include/boost/mpl/iterator_tags.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/iterator_tags.hpp" 3 4 namespace boost { namespace mpl { struct forward_iterator_tag : int_<0> { typedef forward_iterator_tag type; }; struct bidirectional_iterator_tag : int_<1> { typedef bidirectional_iterator_tag type; }; struct random_access_iterator_tag : int_<2> { typedef random_access_iterator_tag type; }; }} # 18 "/usr/include/boost/mpl/list/aux_/iterator.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/deref.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/deref.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/msvc_type.hpp" 1 3 4 # 20 "/usr/include/boost/mpl/aux_/msvc_type.hpp" 3 4 namespace boost { namespace mpl { namespace aux { # 48 "/usr/include/boost/mpl/aux_/msvc_type.hpp" 3 4 template< typename T > struct msvc_type { typedef typename T::type type; }; template<> struct msvc_type { typedef int type; }; }}} # 18 "/usr/include/boost/mpl/deref.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Iterator = na > struct deref { typedef typename Iterator::type type; }; template<> struct deref< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : deref< T1 > { }; }; template< typename Tag > struct lambda< deref< na > , Tag , int_<-1> > { typedef false_ is_le; typedef deref< na > result_; typedef deref< na > type; }; namespace aux { template< typename T1 > struct template_arity< deref< T1 > > : int_<1> { }; template<> struct template_arity< deref< na > > : int_<-1> { }; } }} # 20 "/usr/include/boost/mpl/list/aux_/iterator.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/lambda_spec.hpp" 1 3 4 # 23 "/usr/include/boost/mpl/list/aux_/iterator.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Node > struct l_iter { typedef aux::l_iter_tag tag; typedef forward_iterator_tag category; }; template< typename Node > struct deref< l_iter > { typedef typename Node::item type; }; template< typename Node > struct next< l_iter > { typedef l_iter< typename Node::next > type; }; # 62 "/usr/include/boost/mpl/list/aux_/iterator.hpp" 3 4 template<> struct l_iter { typedef aux::l_iter_tag tag; typedef forward_iterator_tag category; }; template< typename T1 , typename Tag > struct lambda< l_iter< T1 > , Tag , int_<1> > { typedef false_ is_le; typedef l_iter< T1 > result_; typedef result_ type; }; }} # 19 "/usr/include/boost/mpl/list/aux_/begin_end.hpp" 2 3 4 namespace boost { namespace mpl { template<> struct begin_impl< aux::list_tag > { template< typename List > struct apply { typedef l_iter type; }; }; template<> struct end_impl< aux::list_tag > { template< typename > struct apply { typedef l_iter type; }; }; }} # 28 "/usr/include/boost/mpl/list/list0.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Dummy = na > struct list0; template<> struct list0 : l_end { typedef l_end type; }; }} # 19 "/usr/include/boost/mpl/list/list10.hpp" 2 3 4 # 27 "/usr/include/boost/mpl/list/list10.hpp" 3 4 # 1 "/usr/include/boost/mpl/list/aux_/include_preprocessed.hpp" 1 3 4 # 30 "/usr/include/boost/mpl/list/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/list/aux_/preprocessed/plain/list10.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/list/aux_/preprocessed/plain/list10.hpp" 3 4 namespace boost { namespace mpl { template< typename T0 > struct list1 : l_item< long_<1> , T0 , l_end > { typedef list1 type; }; template< typename T0, typename T1 > struct list2 : l_item< long_<2> , T0 , list1 > { typedef list2 type; }; template< typename T0, typename T1, typename T2 > struct list3 : l_item< long_<3> , T0 , list2< T1,T2 > > { typedef list3 type; }; template< typename T0, typename T1, typename T2, typename T3 > struct list4 : l_item< long_<4> , T0 , list3< T1,T2,T3 > > { typedef list4 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 > struct list5 : l_item< long_<5> , T0 , list4< T1,T2,T3,T4 > > { typedef list5 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5 > struct list6 : l_item< long_<6> , T0 , list5< T1,T2,T3,T4,T5 > > { typedef list6 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6 > struct list7 : l_item< long_<7> , T0 , list6< T1,T2,T3,T4,T5,T6 > > { typedef list7 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7 > struct list8 : l_item< long_<8> , T0 , list7< T1,T2,T3,T4,T5,T6,T7 > > { typedef list8 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8 > struct list9 : l_item< long_<9> , T0 , list8< T1,T2,T3,T4,T5,T6,T7,T8 > > { typedef list9 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 > struct list10 : l_item< long_<10> , T0 , list9< T1,T2,T3,T4,T5,T6,T7,T8,T9 > > { typedef list10 type; }; }} # 31 "/usr/include/boost/mpl/list/aux_/include_preprocessed.hpp" 2 3 4 # 28 "/usr/include/boost/mpl/list/list10.hpp" 2 3 4 # 19 "/usr/include/boost/mpl/list/list20.hpp" 2 3 4 # 27 "/usr/include/boost/mpl/list/list20.hpp" 3 4 # 1 "/usr/include/boost/mpl/list/aux_/include_preprocessed.hpp" 1 3 4 # 30 "/usr/include/boost/mpl/list/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/list/aux_/preprocessed/plain/list20.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/list/aux_/preprocessed/plain/list20.hpp" 3 4 namespace boost { namespace mpl { template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10 > struct list11 : l_item< long_<11> , T0 , list10< T1,T2,T3,T4,T5,T6,T7,T8,T9,T10 > > { typedef list11 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11 > struct list12 : l_item< long_<12> , T0 , list11< T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11 > > { typedef list12 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12 > struct list13 : l_item< long_<13> , T0 , list12< T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12 > > { typedef list13 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13 > struct list14 : l_item< long_<14> , T0 , list13< T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13 > > { typedef list14 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13, typename T14 > struct list15 : l_item< long_<15> , T0 , list14< T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14 > > { typedef list15 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13, typename T14 , typename T15 > struct list16 : l_item< long_<16> , T0 , list15< T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15 > > { typedef list16 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13, typename T14 , typename T15, typename T16 > struct list17 : l_item< long_<17> , T0 , list16< T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16 > > { typedef list17 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13, typename T14 , typename T15, typename T16, typename T17 > struct list18 : l_item< long_<18> , T0 , list17< T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17 > > { typedef list18 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13, typename T14 , typename T15, typename T16, typename T17, typename T18 > struct list19 : l_item< long_<19> , T0 , list18< T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18 > > { typedef list19 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13, typename T14 , typename T15, typename T16, typename T17, typename T18, typename T19 > struct list20 : l_item< long_<20> , T0 , list19< T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19 > > { typedef list20 type; }; }} # 31 "/usr/include/boost/mpl/list/aux_/include_preprocessed.hpp" 2 3 4 # 28 "/usr/include/boost/mpl/list/list20.hpp" 2 3 4 # 37 "/usr/include/boost/mpl/list.hpp" 2 3 4 # 46 "/usr/include/boost/mpl/list.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/list.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/aux_/preprocessed/gcc/list.hpp" 3 4 namespace boost { namespace mpl { template< typename T0 = na, typename T1 = na, typename T2 = na, typename T3 = na , typename T4 = na, typename T5 = na, typename T6 = na, typename T7 = na , typename T8 = na, typename T9 = na, typename T10 = na, typename T11 = na , typename T12 = na, typename T13 = na, typename T14 = na , typename T15 = na, typename T16 = na, typename T17 = na , typename T18 = na, typename T19 = na > struct list; template< > struct list< na, na, na, na, na, na, na, na, na, na, na, na, na, na, na, na, na , na, na, na > : list0< > { typedef list0< >::type type; }; template< typename T0 > struct list< T0, na, na, na, na, na, na, na, na, na, na, na, na, na, na, na, na , na, na, na > : list1 { typedef typename list1::type type; }; template< typename T0, typename T1 > struct list< T0, T1, na, na, na, na, na, na, na, na, na, na, na, na, na, na, na , na, na, na > : list2< T0,T1 > { typedef typename list2< T0,T1 >::type type; }; template< typename T0, typename T1, typename T2 > struct list< T0, T1, T2, na, na, na, na, na, na, na, na, na, na, na, na, na, na , na, na, na > : list3< T0,T1,T2 > { typedef typename list3< T0,T1,T2 >::type type; }; template< typename T0, typename T1, typename T2, typename T3 > struct list< T0, T1, T2, T3, na, na, na, na, na, na, na, na, na, na, na, na, na , na, na, na > : list4< T0,T1,T2,T3 > { typedef typename list4< T0,T1,T2,T3 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 > struct list< T0, T1, T2, T3, T4, na, na, na, na, na, na, na, na, na, na, na, na , na, na, na > : list5< T0,T1,T2,T3,T4 > { typedef typename list5< T0,T1,T2,T3,T4 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5 > struct list< T0, T1, T2, T3, T4, T5, na, na, na, na, na, na, na, na, na, na, na , na, na, na > : list6< T0,T1,T2,T3,T4,T5 > { typedef typename list6< T0,T1,T2,T3,T4,T5 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6 > struct list< T0, T1, T2, T3, T4, T5, T6, na, na, na, na, na, na, na, na, na, na , na, na, na > : list7< T0,T1,T2,T3,T4,T5,T6 > { typedef typename list7< T0,T1,T2,T3,T4,T5,T6 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7 > struct list< T0, T1, T2, T3, T4, T5, T6, T7, na, na, na, na, na, na, na, na, na , na, na, na > : list8< T0,T1,T2,T3,T4,T5,T6,T7 > { typedef typename list8< T0,T1,T2,T3,T4,T5,T6,T7 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8 > struct list< T0, T1, T2, T3, T4, T5, T6, T7, T8, na, na, na, na, na, na, na, na , na, na, na > : list9< T0,T1,T2,T3,T4,T5,T6,T7,T8 > { typedef typename list9< T0,T1,T2,T3,T4,T5,T6,T7,T8 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 > struct list< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, na, na, na, na, na, na, na , na, na, na > : list10< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9 > { typedef typename list10< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10 > struct list< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, na, na, na, na, na, na , na, na, na > : list11< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10 > { typedef typename list11< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11 > struct list< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, na, na, na, na , na, na, na, na > : list12< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11 > { typedef typename list12< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12 > struct list< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, na, na, na , na, na, na, na > : list13< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12 > { typedef typename list13< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13 > struct list< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, na, na , na, na, na, na > : list14< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13 > { typedef typename list14< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13, typename T14 > struct list< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, na , na, na, na, na > : list15< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 > { typedef typename list15< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13, typename T14 , typename T15 > struct list< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 , T15, na, na, na, na > : list16< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 , T15 > { typedef typename list16< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13, typename T14 , typename T15, typename T16 > struct list< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 , T15, T16, na, na, na > : list17< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 , T15, T16 > { typedef typename list17< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13, typename T14 , typename T15, typename T16, typename T17 > struct list< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 , T15, T16, T17, na, na > : list18< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 , T15, T16, T17 > { typedef typename list18< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13, typename T14 , typename T15, typename T16, typename T17, typename T18 > struct list< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 , T15, T16, T17, T18, na > : list19< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 , T15, T16, T17, T18 > { typedef typename list19< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13, typename T14 , typename T15, typename T16, typename T17, typename T18, typename T19 > struct list : list20< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 , T15, T16, T17, T18, T19 > { typedef typename list20< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19 >::type type; }; }} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 47 "/usr/include/boost/mpl/list.hpp" 2 3 4 # 10 "/usr/include/boost/math/policies/policy.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/contains.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/contains.hpp" 3 4 # 1 "/usr/include/boost/mpl/contains_fwd.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/contains_fwd.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag > struct contains_impl; template< typename Sequence, typename T > struct contains; }} # 19 "/usr/include/boost/mpl/contains.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/sequence_tag.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/sequence_tag.hpp" 3 4 # 1 "/usr/include/boost/mpl/sequence_tag_fwd.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/sequence_tag_fwd.hpp" 3 4 namespace boost { namespace mpl { struct nested_begin_end_tag; struct non_sequence_tag; template< typename Sequence > struct sequence_tag; }} # 18 "/usr/include/boost/mpl/sequence_tag.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/has_begin.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/aux_/has_begin.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< typename T, typename fallback_ = boost::mpl::bool_ > struct has_begin { struct gcc_3_2_wknd { template< typename U > static boost::mpl::aux::yes_tag test( boost::mpl::aux::type_wrapper const volatile* , boost::mpl::aux::type_wrapper* = 0 ); static boost::mpl::aux::no_tag test(...); }; typedef boost::mpl::aux::type_wrapper t_; static const bool value = sizeof(gcc_3_2_wknd::test(static_cast(0))) == sizeof(boost::mpl::aux::yes_tag); typedef boost::mpl::bool_ type; }; }}} # 20 "/usr/include/boost/mpl/sequence_tag.hpp" 2 3 4 namespace boost { namespace mpl { # 78 "/usr/include/boost/mpl/sequence_tag.hpp" 3 4 namespace aux { template< bool has_tag_, bool has_begin_ > struct sequence_tag_impl { template< typename Sequence > struct result2_; }; # 98 "/usr/include/boost/mpl/sequence_tag.hpp" 3 4 template<> struct sequence_tag_impl { template< typename Sequence > struct result2_ { typedef typename Sequence::tag type; }; }; template<> struct sequence_tag_impl { template< typename Sequence > struct result2_ { typedef typename Sequence::tag type; }; }; template<> struct sequence_tag_impl { template< typename Sequence > struct result2_ { typedef nested_begin_end_tag type; }; }; template<> struct sequence_tag_impl { template< typename Sequence > struct result2_ { typedef non_sequence_tag type; }; }; } template< typename Sequence = na > struct sequence_tag : aux::sequence_tag_impl< ::boost::mpl::aux::has_tag::value , ::boost::mpl::aux::has_begin::value >::template result2_ { }; template<> struct sequence_tag< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : sequence_tag< T1 > { }; }; template< typename Tag > struct lambda< sequence_tag< na > , Tag , int_<-1> > { typedef false_ is_le; typedef sequence_tag< na > result_; typedef sequence_tag< na > type; }; namespace aux { template< typename T1 > struct template_arity< sequence_tag< T1 > > : int_<1> { }; template<> struct template_arity< sequence_tag< na > > : int_<-1> { }; } }} # 20 "/usr/include/boost/mpl/contains.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/contains_impl.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/aux_/contains_impl.hpp" 3 4 # 1 "/usr/include/boost/mpl/begin_end.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/begin_end.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/begin_end_impl.hpp" 1 3 4 # 23 "/usr/include/boost/mpl/aux_/begin_end_impl.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/traits_lambda_spec.hpp" 1 3 4 # 24 "/usr/include/boost/mpl/aux_/begin_end_impl.hpp" 2 3 4 namespace boost { namespace mpl { namespace aux { template< typename Sequence > struct begin_type { typedef typename Sequence::begin type; }; template< typename Sequence > struct end_type { typedef typename Sequence::end type; }; } template< typename Tag > struct begin_impl { template< typename Sequence > struct apply { typedef typename eval_if, aux::begin_type, void_>::type type; }; }; template< typename Tag > struct end_impl { template< typename Sequence > struct apply { typedef typename eval_if, aux::end_type, void_>::type type; }; }; # 82 "/usr/include/boost/mpl/aux_/begin_end_impl.hpp" 3 4 template<> struct begin_impl { template< typename Sequence > struct apply { typedef typename Sequence::begin type; }; }; template<> struct end_impl { template< typename Sequence > struct apply { typedef typename Sequence::end type; }; }; template<> struct begin_impl { template< typename Sequence > struct apply { typedef void_ type; }; }; template<> struct end_impl { template< typename Sequence > struct apply { typedef void_ type; }; }; template<> struct begin_impl { template< typename Sequence > struct apply { typedef void_ type; }; }; template<> struct end_impl { template< typename Sequence > struct apply { typedef void_ type; }; }; }} # 19 "/usr/include/boost/mpl/begin_end.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Sequence = na > struct begin { typedef typename sequence_tag::type tag_; typedef typename begin_impl< tag_ > ::template apply< Sequence >::type type; }; template< typename Sequence = na > struct end { typedef typename sequence_tag::type tag_; typedef typename end_impl< tag_ > ::template apply< Sequence >::type type; }; template<> struct begin< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : begin< T1 > { }; }; template< typename Tag > struct lambda< begin< na > , Tag , int_<-1> > { typedef false_ is_le; typedef begin< na > result_; typedef begin< na > type; }; namespace aux { template< typename T1 > struct template_arity< begin< T1 > > : int_<1> { }; template<> struct template_arity< begin< na > > : int_<-1> { }; } template<> struct end< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : end< T1 > { }; }; template< typename Tag > struct lambda< end< na > , Tag , int_<-1> > { typedef false_ is_le; typedef end< na > result_; typedef end< na > type; }; namespace aux { template< typename T1 > struct template_arity< end< T1 > > : int_<1> { }; template<> struct template_arity< end< na > > : int_<-1> { }; } }} # 20 "/usr/include/boost/mpl/aux_/contains_impl.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/find.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/find.hpp" 3 4 # 1 "/usr/include/boost/mpl/find_if.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/find_if.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/find_if_pred.hpp" 1 3 4 # 14 "/usr/include/boost/mpl/aux_/find_if_pred.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/iter_apply.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/aux_/iter_apply.hpp" 3 4 # 1 "/usr/include/boost/mpl/apply.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/aux_/iter_apply.hpp" 2 3 4 namespace boost { namespace mpl { namespace aux { template< typename F , typename Iterator > struct iter_apply1 : apply1< F,typename deref::type > { }; template< typename F , typename Iterator1 , typename Iterator2 > struct iter_apply2 : apply2< F , typename deref::type , typename deref::type > { }; }}} # 15 "/usr/include/boost/mpl/aux_/find_if_pred.hpp" 2 3 4 namespace boost { namespace mpl { namespace aux { template< typename Predicate > struct find_if_pred { template< typename Iterator > struct apply { typedef not_< aux::iter_apply1 > type; }; }; }}} # 18 "/usr/include/boost/mpl/find_if.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/arg.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/find_if.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/iter_fold_if.hpp" 1 3 4 # 23 "/usr/include/boost/mpl/iter_fold_if.hpp" 3 4 # 1 "/usr/include/boost/mpl/pair.hpp" 1 3 4 # 22 "/usr/include/boost/mpl/pair.hpp" 3 4 namespace boost { namespace mpl { template< typename T1 = na , typename T2 = na > struct pair { typedef pair type; typedef T1 first; typedef T2 second; }; template< typename P = na > struct first { typedef typename P::first type; }; template< typename P = na > struct second { typedef typename P::second type; }; template<> struct pair< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : pair< T1 , T2 > { }; }; template< typename Tag > struct lambda< pair< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef pair< na , na > result_; typedef pair< na , na > type; }; namespace aux { template< typename T1 , typename T2 > struct template_arity< pair< T1 , T2 > > : int_<2> { }; template<> struct template_arity< pair< na , na > > : int_<-1> { }; } template<> struct first< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : first< T1 > { }; }; template< typename Tag > struct lambda< first< na > , Tag , int_<-1> > { typedef false_ is_le; typedef first< na > result_; typedef first< na > type; }; namespace aux { template< typename T1 > struct template_arity< first< T1 > > : int_<1> { }; template<> struct template_arity< first< na > > : int_<-1> { }; } template<> struct second< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : second< T1 > { }; }; template< typename Tag > struct lambda< second< na > , Tag , int_<-1> > { typedef false_ is_le; typedef second< na > result_; typedef second< na > type; }; namespace aux { template< typename T1 > struct template_arity< second< T1 > > : int_<1> { }; template<> struct template_arity< second< na > > : int_<-1> { }; } }} # 24 "/usr/include/boost/mpl/iter_fold_if.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/apply.hpp" 1 3 4 # 25 "/usr/include/boost/mpl/iter_fold_if.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/iter_fold_if_impl.hpp" 1 3 4 # 22 "/usr/include/boost/mpl/aux_/iter_fold_if_impl.hpp" 3 4 # 1 "/usr/include/boost/mpl/apply.hpp" 1 3 4 # 23 "/usr/include/boost/mpl/aux_/iter_fold_if_impl.hpp" 2 3 4 # 32 "/usr/include/boost/mpl/aux_/iter_fold_if_impl.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/iter_fold_if_impl.hpp" 1 3 4 # 13 "/usr/include/boost/mpl/aux_/preprocessed/gcc/iter_fold_if_impl.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< typename Iterator, typename State > struct iter_fold_if_null_step { typedef State state; typedef Iterator iterator; }; template< bool > struct iter_fold_if_step_impl { template< typename Iterator , typename State , typename StateOp , typename IteratorOp > struct result_ { typedef typename apply2< StateOp,State,Iterator >::type state; typedef typename IteratorOp::type iterator; }; }; template<> struct iter_fold_if_step_impl { template< typename Iterator , typename State , typename StateOp , typename IteratorOp > struct result_ { typedef State state; typedef Iterator iterator; }; }; template< typename Iterator , typename State , typename ForwardOp , typename Predicate > struct iter_fold_if_forward_step { typedef typename apply2< Predicate,State,Iterator >::type not_last; typedef typename iter_fold_if_step_impl< not_last::value >::template result_< Iterator,State,ForwardOp, mpl::next > impl_; typedef typename impl_::state state; typedef typename impl_::iterator iterator; }; template< typename Iterator , typename State , typename BackwardOp , typename Predicate > struct iter_fold_if_backward_step { typedef typename apply2< Predicate,State,Iterator >::type not_last; typedef typename iter_fold_if_step_impl< not_last::value >::template result_< Iterator,State,BackwardOp, identity > impl_; typedef typename impl_::state state; typedef typename impl_::iterator iterator; }; template< typename Iterator , typename State , typename ForwardOp , typename ForwardPredicate , typename BackwardOp , typename BackwardPredicate > struct iter_fold_if_impl { private: typedef iter_fold_if_null_step< Iterator,State > forward_step0; typedef iter_fold_if_forward_step< typename forward_step0::iterator, typename forward_step0::state, ForwardOp, ForwardPredicate > forward_step1; typedef iter_fold_if_forward_step< typename forward_step1::iterator, typename forward_step1::state, ForwardOp, ForwardPredicate > forward_step2; typedef iter_fold_if_forward_step< typename forward_step2::iterator, typename forward_step2::state, ForwardOp, ForwardPredicate > forward_step3; typedef iter_fold_if_forward_step< typename forward_step3::iterator, typename forward_step3::state, ForwardOp, ForwardPredicate > forward_step4; typedef typename if_< typename forward_step4::not_last , iter_fold_if_impl< typename forward_step4::iterator , typename forward_step4::state , ForwardOp , ForwardPredicate , BackwardOp , BackwardPredicate > , iter_fold_if_null_step< typename forward_step4::iterator , typename forward_step4::state > >::type backward_step4; typedef iter_fold_if_backward_step< typename forward_step3::iterator, typename backward_step4::state, BackwardOp, BackwardPredicate > backward_step3; typedef iter_fold_if_backward_step< typename forward_step2::iterator, typename backward_step3::state, BackwardOp, BackwardPredicate > backward_step2; typedef iter_fold_if_backward_step< typename forward_step1::iterator, typename backward_step2::state, BackwardOp, BackwardPredicate > backward_step1; typedef iter_fold_if_backward_step< typename forward_step0::iterator, typename backward_step1::state, BackwardOp, BackwardPredicate > backward_step0; public: typedef typename backward_step0::state state; typedef typename backward_step4::iterator iterator; }; }}} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 33 "/usr/include/boost/mpl/aux_/iter_fold_if_impl.hpp" 2 3 4 # 26 "/usr/include/boost/mpl/iter_fold_if.hpp" 2 3 4 namespace boost { namespace mpl { namespace aux { template< typename Predicate, typename LastIterator > struct iter_fold_if_pred { template< typename State, typename Iterator > struct apply : and_< not_< is_same > , apply1 > { }; }; } template< typename Sequence = na , typename State = na , typename ForwardOp = na , typename ForwardPredicate = na , typename BackwardOp = na , typename BackwardPredicate = na > struct iter_fold_if { typedef typename begin::type first_; typedef typename end::type last_; typedef typename eval_if< is_na , if_< is_na, always, always > , identity >::type backward_pred_; struct result_ : aux::iter_fold_if_impl< first_ , State , ForwardOp , protect< aux::iter_fold_if_pred< ForwardPredicate,last_ > > , BackwardOp , backward_pred_ > { }; public: typedef pair< typename result_::state , typename result_::iterator > type; }; template<> struct iter_fold_if< na , na , na , na , na , na > { template< typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > struct apply : iter_fold_if< T1 , T2 , T3 , T4 , T5 , T6 > { }; }; template< typename Tag > struct lambda< iter_fold_if< na , na , na , na , na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef iter_fold_if< na , na , na , na , na , na > result_; typedef iter_fold_if< na , na , na , na , na , na > type; }; namespace aux { template< typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > struct template_arity< iter_fold_if< T1 , T2 , T3 , T4 , T5 , T6 > > : int_<6> { }; template<> struct template_arity< iter_fold_if< na , na , na , na , na , na > > : int_<-1> { }; } }} # 20 "/usr/include/boost/mpl/find_if.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Sequence = na , typename Predicate = na > struct find_if { typedef typename iter_fold_if< Sequence , void , mpl::arg<1> , protect< aux::find_if_pred > >::type result_; typedef typename second::type type; }; template<> struct find_if< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : find_if< T1 , T2 > { }; }; template< typename Tag > struct lambda< find_if< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef find_if< na , na > result_; typedef find_if< na , na > type; }; namespace aux { template< typename T1 , typename T2 > struct template_arity< find_if< T1 , T2 > > : int_<2> { }; template<> struct template_arity< find_if< na , na > > : int_<-1> { }; } }} # 18 "/usr/include/boost/mpl/find.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/same_as.hpp" 1 3 4 # 23 "/usr/include/boost/mpl/same_as.hpp" 3 4 namespace boost { namespace mpl { template< typename T1 > struct same_as { template< typename T2 > struct apply : is_same { }; }; template< typename T1 > struct not_same_as { template< typename T2 > struct apply : not_< is_same > { }; }; }} # 19 "/usr/include/boost/mpl/find.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Sequence = na , typename T = na > struct find : find_if< Sequence,same_as > { }; template<> struct find< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : find< T1 , T2 > { }; }; template< typename Tag > struct lambda< find< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef find< na , na > result_; typedef find< na , na > type; }; namespace aux { template< typename T1 , typename T2 > struct template_arity< find< T1 , T2 > > : int_<2> { }; template<> struct template_arity< find< na , na > > : int_<-1> { }; } }} # 21 "/usr/include/boost/mpl/aux_/contains_impl.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Tag > struct contains_impl { template< typename Sequence, typename T > struct apply : not_< is_same< typename find::type , typename end::type > > { # 54 "/usr/include/boost/mpl/aux_/contains_impl.hpp" 3 4 }; }; template<> struct contains_impl {}; }} # 21 "/usr/include/boost/mpl/contains.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Sequence = na , typename T = na > struct contains : contains_impl< typename sequence_tag::type > ::template apply< Sequence,T > { }; template<> struct contains< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : contains< T1 , T2 > { }; }; template< typename Tag > struct lambda< contains< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef contains< na , na > result_; typedef contains< na , na > type; }; namespace aux { template< typename T1 , typename T2 > struct template_arity< contains< T1 , T2 > > : int_<2> { }; template<> struct template_arity< contains< na , na > > : int_<-1> { }; } }} # 11 "/usr/include/boost/math/policies/policy.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/remove_if.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/remove_if.hpp" 3 4 # 1 "/usr/include/boost/mpl/fold.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/fold.hpp" 3 4 # 1 "/usr/include/boost/mpl/O1_size.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/O1_size.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/O1_size_impl.hpp" 1 3 4 # 20 "/usr/include/boost/mpl/aux_/O1_size_impl.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/has_size.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/aux_/has_size.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< typename T, typename fallback_ = boost::mpl::bool_ > struct has_size { struct gcc_3_2_wknd { template< typename U > static boost::mpl::aux::yes_tag test( boost::mpl::aux::type_wrapper const volatile* , boost::mpl::aux::type_wrapper* = 0 ); static boost::mpl::aux::no_tag test(...); }; typedef boost::mpl::aux::type_wrapper t_; static const bool value = sizeof(gcc_3_2_wknd::test(static_cast(0))) == sizeof(boost::mpl::aux::yes_tag); typedef boost::mpl::bool_ type; }; }}} # 21 "/usr/include/boost/mpl/aux_/O1_size_impl.hpp" 2 3 4 namespace boost { namespace mpl { # 35 "/usr/include/boost/mpl/aux_/O1_size_impl.hpp" 3 4 namespace aux { template< typename Sequence > struct O1_size_impl : Sequence::size { }; } template< typename Tag > struct O1_size_impl { template< typename Sequence > struct apply : if_< aux::has_size , aux::O1_size_impl , long_<-1> >::type { # 69 "/usr/include/boost/mpl/aux_/O1_size_impl.hpp" 3 4 }; }; # 85 "/usr/include/boost/mpl/aux_/O1_size_impl.hpp" 3 4 }} # 20 "/usr/include/boost/mpl/O1_size.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Sequence = na > struct O1_size : O1_size_impl< typename sequence_tag::type > ::template apply< Sequence > { }; template<> struct O1_size< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : O1_size< T1 > { }; }; template< typename Tag > struct lambda< O1_size< na > , Tag , int_<-1> > { typedef false_ is_le; typedef O1_size< na > result_; typedef O1_size< na > type; }; namespace aux { template< typename T1 > struct template_arity< O1_size< T1 > > : int_<1> { }; template<> struct template_arity< O1_size< na > > : int_<-1> { }; } }} # 20 "/usr/include/boost/mpl/fold.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/fold_impl.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/aux_/fold_impl.hpp" 3 4 # 1 "/usr/include/boost/mpl/apply.hpp" 1 3 4 # 20 "/usr/include/boost/mpl/aux_/fold_impl.hpp" 2 3 4 # 34 "/usr/include/boost/mpl/aux_/fold_impl.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/fold_impl.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/aux_/preprocessed/gcc/fold_impl.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< int N , typename First , typename Last , typename State , typename ForwardOp > struct fold_impl; template< typename First , typename Last , typename State , typename ForwardOp > struct fold_impl< 0,First,Last,State,ForwardOp > { typedef First iter0; typedef State state0; typedef state0 state; typedef iter0 iterator; }; template< typename First , typename Last , typename State , typename ForwardOp > struct fold_impl< 1,First,Last,State,ForwardOp > { typedef First iter0; typedef State state0; typedef typename apply2< ForwardOp, state0, typename deref::type >::type state1; typedef typename mpl::next::type iter1; typedef state1 state; typedef iter1 iterator; }; template< typename First , typename Last , typename State , typename ForwardOp > struct fold_impl< 2,First,Last,State,ForwardOp > { typedef First iter0; typedef State state0; typedef typename apply2< ForwardOp, state0, typename deref::type >::type state1; typedef typename mpl::next::type iter1; typedef typename apply2< ForwardOp, state1, typename deref::type >::type state2; typedef typename mpl::next::type iter2; typedef state2 state; typedef iter2 iterator; }; template< typename First , typename Last , typename State , typename ForwardOp > struct fold_impl< 3,First,Last,State,ForwardOp > { typedef First iter0; typedef State state0; typedef typename apply2< ForwardOp, state0, typename deref::type >::type state1; typedef typename mpl::next::type iter1; typedef typename apply2< ForwardOp, state1, typename deref::type >::type state2; typedef typename mpl::next::type iter2; typedef typename apply2< ForwardOp, state2, typename deref::type >::type state3; typedef typename mpl::next::type iter3; typedef state3 state; typedef iter3 iterator; }; template< typename First , typename Last , typename State , typename ForwardOp > struct fold_impl< 4,First,Last,State,ForwardOp > { typedef First iter0; typedef State state0; typedef typename apply2< ForwardOp, state0, typename deref::type >::type state1; typedef typename mpl::next::type iter1; typedef typename apply2< ForwardOp, state1, typename deref::type >::type state2; typedef typename mpl::next::type iter2; typedef typename apply2< ForwardOp, state2, typename deref::type >::type state3; typedef typename mpl::next::type iter3; typedef typename apply2< ForwardOp, state3, typename deref::type >::type state4; typedef typename mpl::next::type iter4; typedef state4 state; typedef iter4 iterator; }; template< int N , typename First , typename Last , typename State , typename ForwardOp > struct fold_impl { typedef fold_impl< 4 , First , Last , State , ForwardOp > chunk_; typedef fold_impl< ( (N - 4) < 0 ? 0 : N - 4 ) , typename chunk_::iterator , Last , typename chunk_::state , ForwardOp > res_; typedef typename res_::state state; typedef typename res_::iterator iterator; }; template< typename First , typename Last , typename State , typename ForwardOp > struct fold_impl< -1,First,Last,State,ForwardOp > : fold_impl< -1 , typename mpl::next::type , Last , typename apply2::type>::type , ForwardOp > { }; template< typename Last , typename State , typename ForwardOp > struct fold_impl< -1,Last,Last,State,ForwardOp > { typedef State state; typedef Last iterator; }; }}} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 35 "/usr/include/boost/mpl/aux_/fold_impl.hpp" 2 3 4 # 21 "/usr/include/boost/mpl/fold.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Sequence = na , typename State = na , typename ForwardOp = na > struct fold { typedef typename aux::fold_impl< ::boost::mpl::O1_size::value , typename begin::type , typename end::type , State , ForwardOp >::state type; }; template<> struct fold< na , na , na > { template< typename T1 , typename T2 , typename T3 , typename T4 =na , typename T5 =na > struct apply : fold< T1 , T2 , T3 > { }; }; template< typename Tag > struct lambda< fold< na , na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef fold< na , na , na > result_; typedef fold< na , na , na > type; }; namespace aux { template< typename T1 , typename T2 , typename T3 > struct template_arity< fold< T1 , T2 , T3 > > : int_<3> { }; template<> struct template_arity< fold< na , na , na > > : int_<-1> { }; } }} # 19 "/usr/include/boost/mpl/remove_if.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/reverse_fold.hpp" 1 3 4 # 20 "/usr/include/boost/mpl/reverse_fold.hpp" 3 4 # 1 "/usr/include/boost/mpl/arg.hpp" 1 3 4 # 21 "/usr/include/boost/mpl/reverse_fold.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/reverse_fold_impl.hpp" 1 3 4 # 20 "/usr/include/boost/mpl/aux_/reverse_fold_impl.hpp" 3 4 # 1 "/usr/include/boost/mpl/apply.hpp" 1 3 4 # 21 "/usr/include/boost/mpl/aux_/reverse_fold_impl.hpp" 2 3 4 # 35 "/usr/include/boost/mpl/aux_/reverse_fold_impl.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/reverse_fold_impl.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/aux_/preprocessed/gcc/reverse_fold_impl.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< long N , typename First , typename Last , typename State , typename BackwardOp , typename ForwardOp > struct reverse_fold_impl; template< typename First , typename Last , typename State , typename BackwardOp , typename ForwardOp > struct reverse_fold_impl< 0,First,Last,State,BackwardOp,ForwardOp > { typedef First iter0; typedef State fwd_state0; typedef fwd_state0 bkwd_state0; typedef bkwd_state0 state; typedef iter0 iterator; }; template< typename First , typename Last , typename State , typename BackwardOp , typename ForwardOp > struct reverse_fold_impl< 1,First,Last,State,BackwardOp,ForwardOp > { typedef First iter0; typedef State fwd_state0; typedef typename apply2< ForwardOp, fwd_state0, typename deref::type >::type fwd_state1; typedef typename mpl::next::type iter1; typedef fwd_state1 bkwd_state1; typedef typename apply2< BackwardOp, bkwd_state1, typename deref::type >::type bkwd_state0; typedef bkwd_state0 state; typedef iter1 iterator; }; template< typename First , typename Last , typename State , typename BackwardOp , typename ForwardOp > struct reverse_fold_impl< 2,First,Last,State,BackwardOp,ForwardOp > { typedef First iter0; typedef State fwd_state0; typedef typename apply2< ForwardOp, fwd_state0, typename deref::type >::type fwd_state1; typedef typename mpl::next::type iter1; typedef typename apply2< ForwardOp, fwd_state1, typename deref::type >::type fwd_state2; typedef typename mpl::next::type iter2; typedef fwd_state2 bkwd_state2; typedef typename apply2< BackwardOp, bkwd_state2, typename deref::type >::type bkwd_state1; typedef typename apply2< BackwardOp, bkwd_state1, typename deref::type >::type bkwd_state0; typedef bkwd_state0 state; typedef iter2 iterator; }; template< typename First , typename Last , typename State , typename BackwardOp , typename ForwardOp > struct reverse_fold_impl< 3,First,Last,State,BackwardOp,ForwardOp > { typedef First iter0; typedef State fwd_state0; typedef typename apply2< ForwardOp, fwd_state0, typename deref::type >::type fwd_state1; typedef typename mpl::next::type iter1; typedef typename apply2< ForwardOp, fwd_state1, typename deref::type >::type fwd_state2; typedef typename mpl::next::type iter2; typedef typename apply2< ForwardOp, fwd_state2, typename deref::type >::type fwd_state3; typedef typename mpl::next::type iter3; typedef fwd_state3 bkwd_state3; typedef typename apply2< BackwardOp, bkwd_state3, typename deref::type >::type bkwd_state2; typedef typename apply2< BackwardOp, bkwd_state2, typename deref::type >::type bkwd_state1; typedef typename apply2< BackwardOp, bkwd_state1, typename deref::type >::type bkwd_state0; typedef bkwd_state0 state; typedef iter3 iterator; }; template< typename First , typename Last , typename State , typename BackwardOp , typename ForwardOp > struct reverse_fold_impl< 4,First,Last,State,BackwardOp,ForwardOp > { typedef First iter0; typedef State fwd_state0; typedef typename apply2< ForwardOp, fwd_state0, typename deref::type >::type fwd_state1; typedef typename mpl::next::type iter1; typedef typename apply2< ForwardOp, fwd_state1, typename deref::type >::type fwd_state2; typedef typename mpl::next::type iter2; typedef typename apply2< ForwardOp, fwd_state2, typename deref::type >::type fwd_state3; typedef typename mpl::next::type iter3; typedef typename apply2< ForwardOp, fwd_state3, typename deref::type >::type fwd_state4; typedef typename mpl::next::type iter4; typedef fwd_state4 bkwd_state4; typedef typename apply2< BackwardOp, bkwd_state4, typename deref::type >::type bkwd_state3; typedef typename apply2< BackwardOp, bkwd_state3, typename deref::type >::type bkwd_state2; typedef typename apply2< BackwardOp, bkwd_state2, typename deref::type >::type bkwd_state1; typedef typename apply2< BackwardOp, bkwd_state1, typename deref::type >::type bkwd_state0; typedef bkwd_state0 state; typedef iter4 iterator; }; template< long N , typename First , typename Last , typename State , typename BackwardOp , typename ForwardOp > struct reverse_fold_impl { typedef First iter0; typedef State fwd_state0; typedef typename apply2< ForwardOp, fwd_state0, typename deref::type >::type fwd_state1; typedef typename mpl::next::type iter1; typedef typename apply2< ForwardOp, fwd_state1, typename deref::type >::type fwd_state2; typedef typename mpl::next::type iter2; typedef typename apply2< ForwardOp, fwd_state2, typename deref::type >::type fwd_state3; typedef typename mpl::next::type iter3; typedef typename apply2< ForwardOp, fwd_state3, typename deref::type >::type fwd_state4; typedef typename mpl::next::type iter4; typedef reverse_fold_impl< ( (N - 4) < 0 ? 0 : N - 4 ) , iter4 , Last , fwd_state4 , BackwardOp , ForwardOp > nested_chunk; typedef typename nested_chunk::state bkwd_state4; typedef typename apply2< BackwardOp, bkwd_state4, typename deref::type >::type bkwd_state3; typedef typename apply2< BackwardOp, bkwd_state3, typename deref::type >::type bkwd_state2; typedef typename apply2< BackwardOp, bkwd_state2, typename deref::type >::type bkwd_state1; typedef typename apply2< BackwardOp, bkwd_state1, typename deref::type >::type bkwd_state0; typedef bkwd_state0 state; typedef typename nested_chunk::iterator iterator; }; template< typename First , typename Last , typename State , typename BackwardOp , typename ForwardOp > struct reverse_fold_impl< -1,First,Last,State,BackwardOp,ForwardOp > { typedef reverse_fold_impl< -1 , typename mpl::next::type , Last , typename apply2::type>::type , BackwardOp , ForwardOp > nested_step; typedef typename apply2< BackwardOp , typename nested_step::state , typename deref::type >::type state; typedef typename nested_step::iterator iterator; }; template< typename Last , typename State , typename BackwardOp , typename ForwardOp > struct reverse_fold_impl< -1,Last,Last,State,BackwardOp,ForwardOp > { typedef State state; typedef Last iterator; }; }}} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 36 "/usr/include/boost/mpl/aux_/reverse_fold_impl.hpp" 2 3 4 # 22 "/usr/include/boost/mpl/reverse_fold.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Sequence = na , typename State = na , typename BackwardOp = na , typename ForwardOp = arg<1> > struct reverse_fold { typedef typename aux::reverse_fold_impl< ::boost::mpl::O1_size::value , typename begin::type , typename end::type , State , BackwardOp , ForwardOp >::state type; }; template<> struct reverse_fold< na , na , na > { template< typename T1 , typename T2 , typename T3 , typename T4 =na , typename T5 =na > struct apply : reverse_fold< T1 , T2 , T3 > { }; }; template< typename Tag > struct lambda< reverse_fold< na , na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef reverse_fold< na , na , na > result_; typedef reverse_fold< na , na , na > type; }; namespace aux { template< typename T1 , typename T2 , typename T3 > struct template_arity< reverse_fold< T1 , T2 , T3 > > : int_<3> { }; template<> struct template_arity< reverse_fold< na , na , na > > : int_<-1> { }; } }} # 20 "/usr/include/boost/mpl/remove_if.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/apply.hpp" 1 3 4 # 25 "/usr/include/boost/mpl/remove_if.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/inserter_algorithm.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/aux_/inserter_algorithm.hpp" 3 4 # 1 "/usr/include/boost/mpl/back_inserter.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/back_inserter.hpp" 3 4 # 1 "/usr/include/boost/mpl/push_back.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/push_back.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/push_back_impl.hpp" 1 3 4 # 26 "/usr/include/boost/mpl/aux_/push_back_impl.hpp" 3 4 namespace boost { namespace mpl { struct has_push_back_arg {}; template< typename Tag > struct push_back_impl { template< typename Sequence, typename T > struct apply { struct REQUESTED_PUSH_BACK_SPECIALIZATION_FOR_SEQUENCE_DOES_NOT_EXIST; typedef struct REQUESTED_PUSH_BACK_SPECIALIZATION_FOR_SEQUENCE_DOES_NOT_EXIST44 : boost::mpl::assert_ { static boost::mpl::failed ************ (REQUESTED_PUSH_BACK_SPECIALIZATION_FOR_SEQUENCE_DOES_NOT_EXIST::************ assert_arg()) ( Sequence ) { return 0; } } mpl_assert_arg44; enum { mpl_assertion_in_line_44 = sizeof( boost::mpl::assertion_failed<(( boost::is_same< T, has_push_back_arg >::value ))>( mpl_assert_arg44::assert_arg() ) ) } ; }; }; template< typename Tag > struct has_push_back_impl { template< typename Seq > struct apply : aux::has_type< push_back< Seq, has_push_back_arg > > { }; }; template<> struct push_back_impl {}; template<> struct has_push_back_impl {}; }} # 19 "/usr/include/boost/mpl/push_back.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Sequence = na , typename T = na > struct push_back : push_back_impl< typename sequence_tag::type > ::template apply< Sequence,T > { }; template< typename Sequence = na > struct has_push_back : has_push_back_impl< typename sequence_tag::type > ::template apply< Sequence > { }; template<> struct push_back< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : push_back< T1 , T2 > { }; }; template< typename Tag > struct lambda< push_back< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef push_back< na , na > result_; typedef push_back< na , na > type; }; namespace aux { template< typename T1 , typename T2 > struct template_arity< push_back< T1 , T2 > > : int_<2> { }; template<> struct template_arity< push_back< na , na > > : int_<-1> { }; } template<> struct has_push_back< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : has_push_back< T1 > { }; }; template< typename Tag > struct lambda< has_push_back< na > , Tag , int_<-1> > { typedef false_ is_le; typedef has_push_back< na > result_; typedef has_push_back< na > type; }; namespace aux { template< typename T1 > struct template_arity< has_push_back< T1 > > : int_<1> { }; template<> struct template_arity< has_push_back< na > > : int_<-1> { }; } }} # 19 "/usr/include/boost/mpl/back_inserter.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/inserter.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/inserter.hpp" 3 4 namespace boost { namespace mpl { template< typename Sequence , typename Operation > struct inserter { typedef Sequence state; typedef Operation operation; }; }} # 20 "/usr/include/boost/mpl/back_inserter.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Sequence > struct back_inserter : inserter< Sequence,push_back<> > { }; }} # 19 "/usr/include/boost/mpl/aux_/inserter_algorithm.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/front_inserter.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/front_inserter.hpp" 3 4 # 1 "/usr/include/boost/mpl/push_front.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/push_front.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/push_front_impl.hpp" 1 3 4 # 26 "/usr/include/boost/mpl/aux_/push_front_impl.hpp" 3 4 namespace boost { namespace mpl { struct has_push_front_arg {}; template< typename Tag > struct push_front_impl { template< typename Sequence, typename T > struct apply { struct REQUESTED_PUSH_FRONT_SPECIALIZATION_FOR_SEQUENCE_DOES_NOT_EXIST; typedef struct REQUESTED_PUSH_FRONT_SPECIALIZATION_FOR_SEQUENCE_DOES_NOT_EXIST45 : boost::mpl::assert_ { static boost::mpl::failed ************ (REQUESTED_PUSH_FRONT_SPECIALIZATION_FOR_SEQUENCE_DOES_NOT_EXIST::************ assert_arg()) ( Sequence ) { return 0; } } mpl_assert_arg45; enum { mpl_assertion_in_line_45 = sizeof( boost::mpl::assertion_failed<(( boost::is_same< T, has_push_front_arg >::value ))>( mpl_assert_arg45::assert_arg() ) ) } ; }; }; template< typename Tag > struct has_push_front_impl { template< typename Seq > struct apply : aux::has_type< push_front< Seq, has_push_front_arg > > { }; }; template<> struct push_front_impl {}; template<> struct has_push_front_impl {}; }} # 19 "/usr/include/boost/mpl/push_front.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Sequence = na , typename T = na > struct push_front : push_front_impl< typename sequence_tag::type > ::template apply< Sequence,T > { }; template< typename Sequence = na > struct has_push_front : has_push_front_impl< typename sequence_tag::type > ::template apply< Sequence > { }; template<> struct push_front< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : push_front< T1 , T2 > { }; }; template< typename Tag > struct lambda< push_front< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef push_front< na , na > result_; typedef push_front< na , na > type; }; namespace aux { template< typename T1 , typename T2 > struct template_arity< push_front< T1 , T2 > > : int_<2> { }; template<> struct template_arity< push_front< na , na > > : int_<-1> { }; } template<> struct has_push_front< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : has_push_front< T1 > { }; }; template< typename Tag > struct lambda< has_push_front< na > , Tag , int_<-1> > { typedef false_ is_le; typedef has_push_front< na > result_; typedef has_push_front< na > type; }; namespace aux { template< typename T1 > struct template_arity< has_push_front< T1 > > : int_<1> { }; template<> struct template_arity< has_push_front< na > > : int_<-1> { }; } }} # 19 "/usr/include/boost/mpl/front_inserter.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Sequence > struct front_inserter : inserter< Sequence,push_front<> > { }; }} # 20 "/usr/include/boost/mpl/aux_/inserter_algorithm.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/clear.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/clear.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/clear_impl.hpp" 1 3 4 # 21 "/usr/include/boost/mpl/aux_/clear_impl.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag > struct clear_impl { template< typename Sequence > struct apply; }; template<> struct clear_impl {}; }} # 19 "/usr/include/boost/mpl/clear.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Sequence = na > struct clear : clear_impl< typename sequence_tag::type > ::template apply< Sequence > { }; template<> struct clear< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : clear< T1 > { }; }; template< typename Tag > struct lambda< clear< na > , Tag , int_<-1> > { typedef false_ is_le; typedef clear< na > result_; typedef clear< na > type; }; namespace aux { template< typename T1 > struct template_arity< clear< T1 > > : int_<1> { }; template<> struct template_arity< clear< na > > : int_<-1> { }; } }} # 25 "/usr/include/boost/mpl/aux_/inserter_algorithm.hpp" 2 3 4 # 26 "/usr/include/boost/mpl/remove_if.hpp" 2 3 4 namespace boost { namespace mpl { namespace aux { template< typename Pred, typename InsertOp > struct remove_if_helper { template< typename Sequence, typename U > struct apply { typedef typename eval_if< typename apply1::type , identity , apply2 >::type type; }; }; template< typename Sequence , typename Predicate , typename Inserter > struct remove_if_impl : fold< Sequence , typename Inserter::state , protect< aux::remove_if_helper< typename lambda::type , typename Inserter::operation > > > { }; template< typename Sequence , typename Predicate , typename Inserter > struct reverse_remove_if_impl : reverse_fold< Sequence , typename Inserter::state , protect< aux::remove_if_helper< typename lambda::type , typename Inserter::operation > > > { }; } template< typename P1 = na , typename P2 = na , typename P3 = na > struct remove_if : aux::remove_if_impl< P1 , P2 , P3> { }; template< typename P1 , typename P2 > struct remove_if< P1 , P2,na > : if_< has_push_back< typename clear::type> , aux::remove_if_impl< P1 , P2 , back_inserter< typename clear::type > > , aux::reverse_remove_if_impl< P1 , P2 , front_inserter< typename clear::type > > >::type { }; template< typename P1 = na , typename P2 = na , typename P3 = na > struct reverse_remove_if : aux::reverse_remove_if_impl< P1 , P2 , P3> { }; template< typename P1 , typename P2 > struct reverse_remove_if< P1 , P2,na > : if_< has_push_back , aux::reverse_remove_if_impl< P1 , P2 , back_inserter< typename clear::type > > , aux::remove_if_impl< P1 , P2 , front_inserter< typename clear::type > > >::type { }; template<> struct remove_if< na , na , na > { template< typename T1 , typename T2 , typename T3 , typename T4 =na , typename T5 =na > struct apply : remove_if< T1 , T2 , T3 > { }; }; template< typename Tag > struct lambda< remove_if< na , na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef remove_if< na , na , na > result_; typedef remove_if< na , na , na > type; }; namespace aux { template< typename T1 , typename T2 , typename T3 > struct template_arity< remove_if< T1 , T2 , T3 > > : int_<3> { }; template<> struct template_arity< remove_if< na , na , na > > : int_<-1> { }; } template<> struct reverse_remove_if< na , na , na > { template< typename T1 , typename T2 , typename T3 , typename T4 =na , typename T5 =na > struct apply : reverse_remove_if< T1 , T2 , T3 > { }; }; template< typename Tag > struct lambda< reverse_remove_if< na , na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef reverse_remove_if< na , na , na > result_; typedef reverse_remove_if< na , na , na > type; }; namespace aux { template< typename T1 , typename T2 , typename T3 > struct template_arity< reverse_remove_if< T1 , T2 , T3 > > : int_<3> { }; template<> struct template_arity< reverse_remove_if< na , na , na > > : int_<-1> { }; } }} # 14 "/usr/include/boost/math/policies/policy.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/vector.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/vector.hpp" 3 4 # 1 "/usr/include/boost/mpl/limits/vector.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/vector.hpp" 2 3 4 # 36 "/usr/include/boost/mpl/vector.hpp" 3 4 # 1 "/usr/include/boost/mpl/vector/vector20.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/vector/vector20.hpp" 3 4 # 1 "/usr/include/boost/mpl/vector/vector10.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/vector/vector10.hpp" 3 4 # 1 "/usr/include/boost/mpl/vector/vector0.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/vector/vector0.hpp" 3 4 # 1 "/usr/include/boost/mpl/vector/aux_/at.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/vector/aux_/at.hpp" 3 4 # 1 "/usr/include/boost/mpl/at_fwd.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/at_fwd.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag > struct at_impl; template< typename Sequence, typename N > struct at; }} # 18 "/usr/include/boost/mpl/vector/aux_/at.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/vector/aux_/tag.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/vector/aux_/tag.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/config/typeof.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/vector/aux_/tag.hpp" 2 3 4 namespace boost { namespace mpl { namespace aux { struct v_iter_tag; struct vector_tag; }}} # 19 "/usr/include/boost/mpl/vector/aux_/at.hpp" 2 3 4 # 27 "/usr/include/boost/mpl/vector/aux_/at.hpp" 3 4 namespace boost { namespace mpl { template< typename Vector, long n_ > struct v_at_impl { typedef long_< (Vector::lower_bound_::value + n_) > index_; typedef __typeof__( Vector::item_(index_()) ) type; }; template< typename Vector, long n_ > struct v_at : aux::wrapped_type< typename v_at_impl::type > { }; template<> struct at_impl< aux::vector_tag > { template< typename Vector, typename N > struct apply : v_at< Vector , N::value > { }; }; # 114 "/usr/include/boost/mpl/vector/aux_/at.hpp" 3 4 }} # 18 "/usr/include/boost/mpl/vector/vector0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/vector/aux_/front.hpp" 1 3 4 # 24 "/usr/include/boost/mpl/vector/aux_/front.hpp" 3 4 namespace boost { namespace mpl { template<> struct front_impl< aux::vector_tag > { template< typename Vector > struct apply : v_at { }; }; # 54 "/usr/include/boost/mpl/vector/aux_/front.hpp" 3 4 }} # 19 "/usr/include/boost/mpl/vector/vector0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/vector/aux_/push_front.hpp" 1 3 4 # 22 "/usr/include/boost/mpl/vector/aux_/push_front.hpp" 3 4 # 1 "/usr/include/boost/mpl/vector/aux_/item.hpp" 1 3 4 # 24 "/usr/include/boost/mpl/vector/aux_/item.hpp" 3 4 namespace boost { namespace mpl { template< typename T , typename Base , int at_front = 0 > struct v_item : Base { typedef typename Base::upper_bound_ index_; typedef typename next::type upper_bound_; typedef typename next::type size; typedef Base base; typedef v_item type; static aux::type_wrapper item_(index_); using Base::item_; }; template< typename T , typename Base > struct v_item : Base { typedef typename prior::type index_; typedef index_ lower_bound_; typedef typename next::type size; typedef Base base; typedef v_item type; static aux::type_wrapper item_(index_); using Base::item_; }; template< typename Base , int at_front > struct v_mask : Base { typedef typename prior::type index_; typedef index_ upper_bound_; typedef typename prior::type size; typedef Base base; typedef v_mask type; static aux::type_wrapper item_(index_); using Base::item_; }; template< typename Base > struct v_mask : Base { typedef typename Base::lower_bound_ index_; typedef typename next::type lower_bound_; typedef typename prior::type size; typedef Base base; typedef v_mask type; static aux::type_wrapper item_(index_); using Base::item_; }; }} # 23 "/usr/include/boost/mpl/vector/aux_/push_front.hpp" 2 3 4 namespace boost { namespace mpl { template<> struct push_front_impl< aux::vector_tag > { template< typename Vector, typename T > struct apply { typedef v_item type; }; }; }} # 20 "/usr/include/boost/mpl/vector/vector0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/vector/aux_/pop_front.hpp" 1 3 4 # 25 "/usr/include/boost/mpl/vector/aux_/pop_front.hpp" 3 4 namespace boost { namespace mpl { template<> struct pop_front_impl< aux::vector_tag > { template< typename Vector > struct apply { typedef v_mask type; }; }; }} # 21 "/usr/include/boost/mpl/vector/vector0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/vector/aux_/push_back.hpp" 1 3 4 # 25 "/usr/include/boost/mpl/vector/aux_/push_back.hpp" 3 4 namespace boost { namespace mpl { template<> struct push_back_impl< aux::vector_tag > { template< typename Vector, typename T > struct apply { typedef v_item type; }; }; }} # 22 "/usr/include/boost/mpl/vector/vector0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/vector/aux_/pop_back.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/vector/aux_/pop_back.hpp" 3 4 # 1 "/usr/include/boost/mpl/pop_back_fwd.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/pop_back_fwd.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag > struct pop_back_impl; template< typename Sequence > struct pop_back; }} # 18 "/usr/include/boost/mpl/vector/aux_/pop_back.hpp" 2 3 4 namespace boost { namespace mpl { template<> struct pop_back_impl< aux::vector_tag > { template< typename Vector > struct apply { typedef v_mask type; }; }; }} # 23 "/usr/include/boost/mpl/vector/vector0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/vector/aux_/back.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/vector/aux_/back.hpp" 3 4 # 1 "/usr/include/boost/mpl/back_fwd.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/back_fwd.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag > struct back_impl; template< typename Sequence > struct back; }} # 18 "/usr/include/boost/mpl/vector/aux_/back.hpp" 2 3 4 namespace boost { namespace mpl { template<> struct back_impl< aux::vector_tag > { template< typename Vector > struct apply : v_at< Vector , prior::type::value > { }; }; # 57 "/usr/include/boost/mpl/vector/aux_/back.hpp" 3 4 }} # 24 "/usr/include/boost/mpl/vector/vector0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/vector/aux_/clear.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/vector/aux_/clear.hpp" 3 4 # 1 "/usr/include/boost/mpl/vector/aux_/vector0.hpp" 1 3 4 # 22 "/usr/include/boost/mpl/vector/aux_/vector0.hpp" 3 4 # 1 "/usr/include/boost/mpl/vector/aux_/iterator.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/vector/aux_/iterator.hpp" 3 4 # 1 "/usr/include/boost/mpl/plus.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/plus.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/arithmetic_op.hpp" 1 3 4 # 26 "/usr/include/boost/mpl/aux_/arithmetic_op.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 1 3 4 # 22 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 3 4 # 1 "/usr/include/boost/mpl/apply_wrap.hpp" 1 3 4 # 23 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 2 3 4 # 27 "/usr/include/boost/mpl/aux_/arithmetic_op.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/plus.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/aux_/preprocessed/gcc/plus.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag1 , typename Tag2 > struct plus_impl : if_c< ( Tag1::value > Tag2::value ) , aux::cast2nd_impl< plus_impl< Tag1,Tag1 >,Tag1, Tag2 > , aux::cast1st_impl< plus_impl< Tag2,Tag2 >,Tag1, Tag2 > >::type { }; template<> struct plus_impl< na,na > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename Tag > struct plus_impl< na,Tag > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename Tag > struct plus_impl< Tag,na > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename T > struct plus_tag { typedef typename T::tag type; }; template< typename N1 = na , typename N2 = na , typename N3 = na, typename N4 = na, typename N5 = na > struct plus : plus< plus< plus< plus< N1,N2 >, N3>, N4>, N5> { }; template< typename N1, typename N2, typename N3, typename N4 > struct plus< N1,N2,N3,N4,na > : plus< plus< plus< N1,N2 >, N3>, N4> { }; template< typename N1, typename N2, typename N3 > struct plus< N1,N2,N3,na,na > : plus< plus< N1,N2 >, N3> { }; template< typename N1, typename N2 > struct plus< N1,N2,na,na,na > : plus_impl< typename plus_tag::type , typename plus_tag::type >::template apply< N1,N2 >::type { }; template<> struct plus< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : plus< T1 , T2 > { }; }; template< typename Tag > struct lambda< plus< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef plus< na , na > result_; typedef plus< na , na > type; }; namespace aux { template< typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > struct template_arity< plus< T1 , T2 , T3 , T4 , T5 > > : int_<5> { }; template<> struct template_arity< plus< na , na > > : int_<-1> { }; } }} namespace boost { namespace mpl { template<> struct plus_impl< integral_c_tag,integral_c_tag > { template< typename N1, typename N2 > struct apply : integral_c< typename aux::largest_int< typename N1::value_type , typename N2::value_type >::type , ( N1::value + N2::value ) > { }; }; }} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 35 "/usr/include/boost/mpl/aux_/arithmetic_op.hpp" 2 3 4 # 20 "/usr/include/boost/mpl/plus.hpp" 2 3 4 # 20 "/usr/include/boost/mpl/vector/aux_/iterator.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/minus.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/minus.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/arithmetic_op.hpp" 1 3 4 # 26 "/usr/include/boost/mpl/aux_/arithmetic_op.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 1 3 4 # 22 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 3 4 # 1 "/usr/include/boost/mpl/apply_wrap.hpp" 1 3 4 # 23 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 2 3 4 # 27 "/usr/include/boost/mpl/aux_/arithmetic_op.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/minus.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/aux_/preprocessed/gcc/minus.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag1 , typename Tag2 > struct minus_impl : if_c< ( Tag1::value > Tag2::value ) , aux::cast2nd_impl< minus_impl< Tag1,Tag1 >,Tag1, Tag2 > , aux::cast1st_impl< minus_impl< Tag2,Tag2 >,Tag1, Tag2 > >::type { }; template<> struct minus_impl< na,na > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename Tag > struct minus_impl< na,Tag > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename Tag > struct minus_impl< Tag,na > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename T > struct minus_tag { typedef typename T::tag type; }; template< typename N1 = na , typename N2 = na , typename N3 = na, typename N4 = na, typename N5 = na > struct minus : minus< minus< minus< minus< N1,N2 >, N3>, N4>, N5> { }; template< typename N1, typename N2, typename N3, typename N4 > struct minus< N1,N2,N3,N4,na > : minus< minus< minus< N1,N2 >, N3>, N4> { }; template< typename N1, typename N2, typename N3 > struct minus< N1,N2,N3,na,na > : minus< minus< N1,N2 >, N3> { }; template< typename N1, typename N2 > struct minus< N1,N2,na,na,na > : minus_impl< typename minus_tag::type , typename minus_tag::type >::template apply< N1,N2 >::type { }; template<> struct minus< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : minus< T1 , T2 > { }; }; template< typename Tag > struct lambda< minus< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef minus< na , na > result_; typedef minus< na , na > type; }; namespace aux { template< typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > struct template_arity< minus< T1 , T2 , T3 , T4 , T5 > > : int_<5> { }; template<> struct template_arity< minus< na , na > > : int_<-1> { }; } }} namespace boost { namespace mpl { template<> struct minus_impl< integral_c_tag,integral_c_tag > { template< typename N1, typename N2 > struct apply : integral_c< typename aux::largest_int< typename N1::value_type , typename N2::value_type >::type , ( N1::value - N2::value ) > { }; }; }} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 35 "/usr/include/boost/mpl/aux_/arithmetic_op.hpp" 2 3 4 # 20 "/usr/include/boost/mpl/minus.hpp" 2 3 4 # 21 "/usr/include/boost/mpl/vector/aux_/iterator.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/advance_fwd.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/advance_fwd.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag > struct advance_impl; template< typename Iterator, typename N > struct advance; }} # 22 "/usr/include/boost/mpl/vector/aux_/iterator.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/distance_fwd.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/distance_fwd.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag > struct distance_impl; template< typename First, typename Last > struct distance; }} # 23 "/usr/include/boost/mpl/vector/aux_/iterator.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/prior.hpp" 1 3 4 # 25 "/usr/include/boost/mpl/vector/aux_/iterator.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Vector , long n_ > struct v_iter { typedef aux::v_iter_tag tag; typedef random_access_iterator_tag category; typedef typename v_at::type type; typedef Vector vector_; typedef mpl::long_ pos; # 56 "/usr/include/boost/mpl/vector/aux_/iterator.hpp" 3 4 }; template< typename Vector , long n_ > struct next< v_iter > { typedef v_iter type; }; template< typename Vector , long n_ > struct prior< v_iter > { typedef v_iter type; }; template< typename Vector , long n_ , typename Distance > struct advance< v_iter,Distance> { typedef v_iter< Vector , (n_ + Distance::value) > type; }; template< typename Vector , long n_ , long m_ > struct distance< v_iter, v_iter > : mpl::long_<(m_ - n_)> { }; # 128 "/usr/include/boost/mpl/vector/aux_/iterator.hpp" 3 4 }} # 23 "/usr/include/boost/mpl/vector/aux_/vector0.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Dummy = na > struct vector0; template<> struct vector0 { typedef aux::vector_tag tag; typedef vector0 type; typedef long_<32768> lower_bound_; typedef lower_bound_ upper_bound_; typedef long_<0> size; static aux::type_wrapper item_(...); # 48 "/usr/include/boost/mpl/vector/aux_/vector0.hpp" 3 4 }; }} # 19 "/usr/include/boost/mpl/vector/aux_/clear.hpp" 2 3 4 namespace boost { namespace mpl { template<> struct clear_impl< aux::vector_tag > { template< typename Vector > struct apply { typedef vector0<> type; }; }; # 53 "/usr/include/boost/mpl/vector/aux_/clear.hpp" 3 4 }} # 25 "/usr/include/boost/mpl/vector/vector0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/vector/aux_/O1_size.hpp" 1 3 4 # 24 "/usr/include/boost/mpl/vector/aux_/O1_size.hpp" 3 4 namespace boost { namespace mpl { template<> struct O1_size_impl< aux::vector_tag > { template< typename Vector > struct apply : Vector::size { }; }; # 54 "/usr/include/boost/mpl/vector/aux_/O1_size.hpp" 3 4 }} # 26 "/usr/include/boost/mpl/vector/vector0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/vector/aux_/size.hpp" 1 3 4 # 23 "/usr/include/boost/mpl/vector/aux_/size.hpp" 3 4 namespace boost { namespace mpl { template<> struct size_impl< aux::vector_tag > : O1_size_impl< aux::vector_tag > { }; # 47 "/usr/include/boost/mpl/vector/aux_/size.hpp" 3 4 }} # 27 "/usr/include/boost/mpl/vector/vector0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/vector/aux_/empty.hpp" 1 3 4 # 24 "/usr/include/boost/mpl/vector/aux_/empty.hpp" 3 4 namespace boost { namespace mpl { template<> struct empty_impl< aux::vector_tag > { template< typename Vector > struct apply : is_same< typename Vector::lower_bound_ , typename Vector::upper_bound_ > { }; }; # 66 "/usr/include/boost/mpl/vector/aux_/empty.hpp" 3 4 }} # 28 "/usr/include/boost/mpl/vector/vector0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/vector/aux_/begin_end.hpp" 1 3 4 # 25 "/usr/include/boost/mpl/vector/aux_/begin_end.hpp" 3 4 namespace boost { namespace mpl { template<> struct begin_impl< aux::vector_tag > { template< typename Vector > struct apply { typedef v_iter type; }; }; template<> struct end_impl< aux::vector_tag > { template< typename Vector > struct apply { typedef v_iter type; }; }; }} # 32 "/usr/include/boost/mpl/vector/vector0.hpp" 2 3 4 # 19 "/usr/include/boost/mpl/vector/vector10.hpp" 2 3 4 # 27 "/usr/include/boost/mpl/vector/vector10.hpp" 3 4 # 1 "/usr/include/boost/mpl/vector/aux_/include_preprocessed.hpp" 1 3 4 # 49 "/usr/include/boost/mpl/vector/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/vector/aux_/preprocessed/typeof_based/vector10.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/vector/aux_/preprocessed/typeof_based/vector10.hpp" 3 4 namespace boost { namespace mpl { template< typename T0 > struct vector1 : v_item< T0 , vector0< > > { typedef vector1 type; }; template< typename T0, typename T1 > struct vector2 : v_item< T1 , vector1 > { typedef vector2 type; }; template< typename T0, typename T1, typename T2 > struct vector3 : v_item< T2 , vector2< T0,T1 > > { typedef vector3 type; }; template< typename T0, typename T1, typename T2, typename T3 > struct vector4 : v_item< T3 , vector3< T0,T1,T2 > > { typedef vector4 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 > struct vector5 : v_item< T4 , vector4< T0,T1,T2,T3 > > { typedef vector5 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5 > struct vector6 : v_item< T5 , vector5< T0,T1,T2,T3,T4 > > { typedef vector6 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6 > struct vector7 : v_item< T6 , vector6< T0,T1,T2,T3,T4,T5 > > { typedef vector7 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7 > struct vector8 : v_item< T7 , vector7< T0,T1,T2,T3,T4,T5,T6 > > { typedef vector8 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8 > struct vector9 : v_item< T8 , vector8< T0,T1,T2,T3,T4,T5,T6,T7 > > { typedef vector9 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 > struct vector10 : v_item< T9 , vector9< T0,T1,T2,T3,T4,T5,T6,T7,T8 > > { typedef vector10 type; }; }} # 50 "/usr/include/boost/mpl/vector/aux_/include_preprocessed.hpp" 2 3 4 # 28 "/usr/include/boost/mpl/vector/vector10.hpp" 2 3 4 # 19 "/usr/include/boost/mpl/vector/vector20.hpp" 2 3 4 # 27 "/usr/include/boost/mpl/vector/vector20.hpp" 3 4 # 1 "/usr/include/boost/mpl/vector/aux_/include_preprocessed.hpp" 1 3 4 # 49 "/usr/include/boost/mpl/vector/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/vector/aux_/preprocessed/typeof_based/vector20.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/vector/aux_/preprocessed/typeof_based/vector20.hpp" 3 4 namespace boost { namespace mpl { template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10 > struct vector11 : v_item< T10 , vector10< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9 > > { typedef vector11 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11 > struct vector12 : v_item< T11 , vector11< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10 > > { typedef vector12 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12 > struct vector13 : v_item< T12 , vector12< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11 > > { typedef vector13 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13 > struct vector14 : v_item< T13 , vector13< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12 > > { typedef vector14 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13, typename T14 > struct vector15 : v_item< T14 , vector14< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13 > > { typedef vector15 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13, typename T14 , typename T15 > struct vector16 : v_item< T15 , vector15< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14 > > { typedef vector16 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13, typename T14 , typename T15, typename T16 > struct vector17 : v_item< T16 , vector16< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15 > > { typedef vector17 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13, typename T14 , typename T15, typename T16, typename T17 > struct vector18 : v_item< T17 , vector17< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16 > > { typedef vector18 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13, typename T14 , typename T15, typename T16, typename T17, typename T18 > struct vector19 : v_item< T18 , vector18< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17 > > { typedef vector19 type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13, typename T14 , typename T15, typename T16, typename T17, typename T18, typename T19 > struct vector20 : v_item< T19 , vector19< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18 > > { typedef vector20 type; }; }} # 50 "/usr/include/boost/mpl/vector/aux_/include_preprocessed.hpp" 2 3 4 # 28 "/usr/include/boost/mpl/vector/vector20.hpp" 2 3 4 # 37 "/usr/include/boost/mpl/vector.hpp" 2 3 4 # 46 "/usr/include/boost/mpl/vector.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/vector.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/aux_/preprocessed/gcc/vector.hpp" 3 4 namespace boost { namespace mpl { template< typename T0 = na, typename T1 = na, typename T2 = na, typename T3 = na , typename T4 = na, typename T5 = na, typename T6 = na, typename T7 = na , typename T8 = na, typename T9 = na, typename T10 = na, typename T11 = na , typename T12 = na, typename T13 = na, typename T14 = na , typename T15 = na, typename T16 = na, typename T17 = na , typename T18 = na, typename T19 = na > struct vector; template< > struct vector< na, na, na, na, na, na, na, na, na, na, na, na, na, na, na, na, na , na, na, na > : vector0< > { typedef vector0< >::type type; }; template< typename T0 > struct vector< T0, na, na, na, na, na, na, na, na, na, na, na, na, na, na, na, na , na, na, na > : vector1 { typedef typename vector1::type type; }; template< typename T0, typename T1 > struct vector< T0, T1, na, na, na, na, na, na, na, na, na, na, na, na, na, na, na , na, na, na > : vector2< T0,T1 > { typedef typename vector2< T0,T1 >::type type; }; template< typename T0, typename T1, typename T2 > struct vector< T0, T1, T2, na, na, na, na, na, na, na, na, na, na, na, na, na, na , na, na, na > : vector3< T0,T1,T2 > { typedef typename vector3< T0,T1,T2 >::type type; }; template< typename T0, typename T1, typename T2, typename T3 > struct vector< T0, T1, T2, T3, na, na, na, na, na, na, na, na, na, na, na, na, na , na, na, na > : vector4< T0,T1,T2,T3 > { typedef typename vector4< T0,T1,T2,T3 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 > struct vector< T0, T1, T2, T3, T4, na, na, na, na, na, na, na, na, na, na, na, na , na, na, na > : vector5< T0,T1,T2,T3,T4 > { typedef typename vector5< T0,T1,T2,T3,T4 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5 > struct vector< T0, T1, T2, T3, T4, T5, na, na, na, na, na, na, na, na, na, na, na , na, na, na > : vector6< T0,T1,T2,T3,T4,T5 > { typedef typename vector6< T0,T1,T2,T3,T4,T5 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6 > struct vector< T0, T1, T2, T3, T4, T5, T6, na, na, na, na, na, na, na, na, na, na , na, na, na > : vector7< T0,T1,T2,T3,T4,T5,T6 > { typedef typename vector7< T0,T1,T2,T3,T4,T5,T6 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7 > struct vector< T0, T1, T2, T3, T4, T5, T6, T7, na, na, na, na, na, na, na, na, na , na, na, na > : vector8< T0,T1,T2,T3,T4,T5,T6,T7 > { typedef typename vector8< T0,T1,T2,T3,T4,T5,T6,T7 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8 > struct vector< T0, T1, T2, T3, T4, T5, T6, T7, T8, na, na, na, na, na, na, na, na , na, na, na > : vector9< T0,T1,T2,T3,T4,T5,T6,T7,T8 > { typedef typename vector9< T0,T1,T2,T3,T4,T5,T6,T7,T8 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 > struct vector< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, na, na, na, na, na, na, na , na, na, na > : vector10< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9 > { typedef typename vector10< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10 > struct vector< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, na, na, na, na, na, na , na, na, na > : vector11< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10 > { typedef typename vector11< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11 > struct vector< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, na, na, na, na , na, na, na, na > : vector12< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11 > { typedef typename vector12< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12 > struct vector< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, na, na, na , na, na, na, na > : vector13< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12 > { typedef typename vector13< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13 > struct vector< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, na, na , na, na, na, na > : vector14< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13 > { typedef typename vector14< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13, typename T14 > struct vector< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, na , na, na, na, na > : vector15< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 > { typedef typename vector15< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13, typename T14 , typename T15 > struct vector< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 , T15, na, na, na, na > : vector16< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 , T15 > { typedef typename vector16< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13, typename T14 , typename T15, typename T16 > struct vector< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 , T15, T16, na, na, na > : vector17< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 , T15, T16 > { typedef typename vector17< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13, typename T14 , typename T15, typename T16, typename T17 > struct vector< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 , T15, T16, T17, na, na > : vector18< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 , T15, T16, T17 > { typedef typename vector18< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13, typename T14 , typename T15, typename T16, typename T17, typename T18 > struct vector< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 , T15, T16, T17, T18, na > : vector19< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 , T15, T16, T17, T18 > { typedef typename vector19< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18 >::type type; }; template< typename T0, typename T1, typename T2, typename T3, typename T4 , typename T5, typename T6, typename T7, typename T8, typename T9 , typename T10, typename T11, typename T12, typename T13, typename T14 , typename T15, typename T16, typename T17, typename T18, typename T19 > struct vector : vector20< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 , T15, T16, T17, T18, T19 > { typedef typename vector20< T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19 >::type type; }; }} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 47 "/usr/include/boost/mpl/vector.hpp" 2 3 4 # 15 "/usr/include/boost/math/policies/policy.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/at.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/at.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/at_impl.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/aux_/at_impl.hpp" 3 4 # 1 "/usr/include/boost/mpl/advance.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/advance.hpp" 3 4 # 1 "/usr/include/boost/mpl/negate.hpp" 1 3 4 # 25 "/usr/include/boost/mpl/negate.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag > struct negate_impl; template< typename T > struct negate_tag { typedef typename T::tag type; }; template< typename N = na > struct negate : negate_impl< typename negate_tag::type >::template apply::type { }; template<> struct negate< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : negate< T1 > { }; }; template< typename Tag > struct lambda< negate< na > , Tag , int_<-1> > { typedef false_ is_le; typedef negate< na > result_; typedef negate< na > type; }; namespace aux { template< typename T1 > struct template_arity< negate< T1 > > : int_<1> { }; template<> struct template_arity< negate< na > > : int_<-1> { }; } # 65 "/usr/include/boost/mpl/negate.hpp" 3 4 template<> struct negate_impl { template< typename N > struct apply : integral_c< typename N::value_type, (-N::value) > { }; }; }} # 20 "/usr/include/boost/mpl/advance.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/apply_wrap.hpp" 1 3 4 # 24 "/usr/include/boost/mpl/advance.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/advance_forward.hpp" 1 3 4 # 23 "/usr/include/boost/mpl/aux_/advance_forward.hpp" 3 4 # 1 "/usr/include/boost/mpl/apply_wrap.hpp" 1 3 4 # 24 "/usr/include/boost/mpl/aux_/advance_forward.hpp" 2 3 4 # 32 "/usr/include/boost/mpl/aux_/advance_forward.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/advance_forward.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/aux_/preprocessed/gcc/advance_forward.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< long N > struct advance_forward; template<> struct advance_forward<0> { template< typename Iterator > struct apply { typedef Iterator iter0; typedef iter0 type; }; }; template<> struct advance_forward<1> { template< typename Iterator > struct apply { typedef Iterator iter0; typedef typename next::type iter1; typedef iter1 type; }; }; template<> struct advance_forward<2> { template< typename Iterator > struct apply { typedef Iterator iter0; typedef typename next::type iter1; typedef typename next::type iter2; typedef iter2 type; }; }; template<> struct advance_forward<3> { template< typename Iterator > struct apply { typedef Iterator iter0; typedef typename next::type iter1; typedef typename next::type iter2; typedef typename next::type iter3; typedef iter3 type; }; }; template<> struct advance_forward<4> { template< typename Iterator > struct apply { typedef Iterator iter0; typedef typename next::type iter1; typedef typename next::type iter2; typedef typename next::type iter3; typedef typename next::type iter4; typedef iter4 type; }; }; template< long N > struct advance_forward { template< typename Iterator > struct apply { typedef typename apply_wrap1< advance_forward<4> , Iterator >::type chunk_result_; typedef typename apply_wrap1< advance_forward<( (N - 4) < 0 ? 0 : N - 4 )> , chunk_result_ >::type type; }; }; }}} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 33 "/usr/include/boost/mpl/aux_/advance_forward.hpp" 2 3 4 # 25 "/usr/include/boost/mpl/advance.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/advance_backward.hpp" 1 3 4 # 23 "/usr/include/boost/mpl/aux_/advance_backward.hpp" 3 4 # 1 "/usr/include/boost/mpl/apply_wrap.hpp" 1 3 4 # 24 "/usr/include/boost/mpl/aux_/advance_backward.hpp" 2 3 4 # 32 "/usr/include/boost/mpl/aux_/advance_backward.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/advance_backward.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/aux_/preprocessed/gcc/advance_backward.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< long N > struct advance_backward; template<> struct advance_backward<0> { template< typename Iterator > struct apply { typedef Iterator iter0; typedef iter0 type; }; }; template<> struct advance_backward<1> { template< typename Iterator > struct apply { typedef Iterator iter0; typedef typename prior::type iter1; typedef iter1 type; }; }; template<> struct advance_backward<2> { template< typename Iterator > struct apply { typedef Iterator iter0; typedef typename prior::type iter1; typedef typename prior::type iter2; typedef iter2 type; }; }; template<> struct advance_backward<3> { template< typename Iterator > struct apply { typedef Iterator iter0; typedef typename prior::type iter1; typedef typename prior::type iter2; typedef typename prior::type iter3; typedef iter3 type; }; }; template<> struct advance_backward<4> { template< typename Iterator > struct apply { typedef Iterator iter0; typedef typename prior::type iter1; typedef typename prior::type iter2; typedef typename prior::type iter3; typedef typename prior::type iter4; typedef iter4 type; }; }; template< long N > struct advance_backward { template< typename Iterator > struct apply { typedef typename apply_wrap1< advance_backward<4> , Iterator >::type chunk_result_; typedef typename apply_wrap1< advance_backward<( (N - 4) < 0 ? 0 : N - 4 )> , chunk_result_ >::type type; }; }; }}} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 33 "/usr/include/boost/mpl/aux_/advance_backward.hpp" 2 3 4 # 26 "/usr/include/boost/mpl/advance.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Tag > struct advance_impl { template< typename Iterator, typename N > struct apply { typedef typename less< N,long_<0> >::type backward_; typedef typename if_< backward_, negate, N >::type offset_; typedef typename if_< backward_ , aux::advance_backward< offset_::value > , aux::advance_forward< offset_::value > >::type f_; typedef typename apply_wrap1::type type; }; }; template< typename Iterator = na , typename N = na > struct advance : advance_impl< typename tag::type > ::template apply { }; template< typename Iterator , long N > struct advance_c : advance_impl< typename tag::type > ::template apply > { }; template<> struct advance< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : advance< T1 , T2 > { }; }; template< typename Tag > struct lambda< advance< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef advance< na , na > result_; typedef advance< na , na > type; }; namespace aux { template< typename T1 , typename T2 > struct template_arity< advance< T1 , T2 > > : int_<2> { }; template<> struct template_arity< advance< na , na > > : int_<-1> { }; } }} # 19 "/usr/include/boost/mpl/aux_/at_impl.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Tag > struct at_impl { template< typename Sequence, typename N > struct apply { typedef typename advance< typename begin::type , N >::type iter_; typedef typename deref::type type; }; }; template<> struct at_impl {}; }} # 19 "/usr/include/boost/mpl/at.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Sequence = na , typename N = na > struct at : at_impl< typename sequence_tag::type > ::template apply< Sequence,N > { }; template< typename Sequence , long N > struct at_c : at_impl< typename sequence_tag::type > ::template apply< Sequence,mpl::long_ > { }; template<> struct at< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : at< T1 , T2 > { }; }; template< typename Tag > struct lambda< at< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef at< na , na > result_; typedef at< na , na > type; }; namespace aux { template< typename T1 , typename T2 > struct template_arity< at< T1 , T2 > > : int_<2> { }; template<> struct template_arity< at< na , na > > : int_<-1> { }; } }} # 17 "/usr/include/boost/math/policies/policy.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/size.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/size.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/size_impl.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/aux_/size_impl.hpp" 3 4 # 1 "/usr/include/boost/mpl/distance.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/distance.hpp" 3 4 # 1 "/usr/include/boost/mpl/iter_fold.hpp" 1 3 4 # 21 "/usr/include/boost/mpl/iter_fold.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/iter_fold_impl.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/aux_/iter_fold_impl.hpp" 3 4 # 1 "/usr/include/boost/mpl/apply.hpp" 1 3 4 # 20 "/usr/include/boost/mpl/aux_/iter_fold_impl.hpp" 2 3 4 # 33 "/usr/include/boost/mpl/aux_/iter_fold_impl.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/iter_fold_impl.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/aux_/preprocessed/gcc/iter_fold_impl.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< int N , typename First , typename Last , typename State , typename ForwardOp > struct iter_fold_impl; template< typename First , typename Last , typename State , typename ForwardOp > struct iter_fold_impl< 0,First,Last,State,ForwardOp > { typedef First iter0; typedef State state0; typedef state0 state; typedef iter0 iterator; }; template< typename First , typename Last , typename State , typename ForwardOp > struct iter_fold_impl< 1,First,Last,State,ForwardOp > { typedef First iter0; typedef State state0; typedef typename apply2< ForwardOp,state0,iter0 >::type state1; typedef typename mpl::next::type iter1; typedef state1 state; typedef iter1 iterator; }; template< typename First , typename Last , typename State , typename ForwardOp > struct iter_fold_impl< 2,First,Last,State,ForwardOp > { typedef First iter0; typedef State state0; typedef typename apply2< ForwardOp,state0,iter0 >::type state1; typedef typename mpl::next::type iter1; typedef typename apply2< ForwardOp,state1,iter1 >::type state2; typedef typename mpl::next::type iter2; typedef state2 state; typedef iter2 iterator; }; template< typename First , typename Last , typename State , typename ForwardOp > struct iter_fold_impl< 3,First,Last,State,ForwardOp > { typedef First iter0; typedef State state0; typedef typename apply2< ForwardOp,state0,iter0 >::type state1; typedef typename mpl::next::type iter1; typedef typename apply2< ForwardOp,state1,iter1 >::type state2; typedef typename mpl::next::type iter2; typedef typename apply2< ForwardOp,state2,iter2 >::type state3; typedef typename mpl::next::type iter3; typedef state3 state; typedef iter3 iterator; }; template< typename First , typename Last , typename State , typename ForwardOp > struct iter_fold_impl< 4,First,Last,State,ForwardOp > { typedef First iter0; typedef State state0; typedef typename apply2< ForwardOp,state0,iter0 >::type state1; typedef typename mpl::next::type iter1; typedef typename apply2< ForwardOp,state1,iter1 >::type state2; typedef typename mpl::next::type iter2; typedef typename apply2< ForwardOp,state2,iter2 >::type state3; typedef typename mpl::next::type iter3; typedef typename apply2< ForwardOp,state3,iter3 >::type state4; typedef typename mpl::next::type iter4; typedef state4 state; typedef iter4 iterator; }; template< int N , typename First , typename Last , typename State , typename ForwardOp > struct iter_fold_impl { typedef iter_fold_impl< 4 , First , Last , State , ForwardOp > chunk_; typedef iter_fold_impl< ( (N - 4) < 0 ? 0 : N - 4 ) , typename chunk_::iterator , Last , typename chunk_::state , ForwardOp > res_; typedef typename res_::state state; typedef typename res_::iterator iterator; }; template< typename First , typename Last , typename State , typename ForwardOp > struct iter_fold_impl< -1,First,Last,State,ForwardOp > : iter_fold_impl< -1 , typename mpl::next::type , Last , typename apply2< ForwardOp,State,First >::type , ForwardOp > { }; template< typename Last , typename State , typename ForwardOp > struct iter_fold_impl< -1,Last,Last,State,ForwardOp > { typedef State state; typedef Last iterator; }; }}} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 34 "/usr/include/boost/mpl/aux_/iter_fold_impl.hpp" 2 3 4 # 22 "/usr/include/boost/mpl/iter_fold.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Sequence = na , typename State = na , typename ForwardOp = na > struct iter_fold { typedef typename aux::iter_fold_impl< ::boost::mpl::O1_size::value , typename begin::type , typename end::type , State , typename lambda::type >::state type; }; template<> struct iter_fold< na , na , na > { template< typename T1 , typename T2 , typename T3 , typename T4 =na , typename T5 =na > struct apply : iter_fold< T1 , T2 , T3 > { }; }; template< typename Tag > struct lambda< iter_fold< na , na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef iter_fold< na , na , na > result_; typedef iter_fold< na , na , na > type; }; namespace aux { template< typename T1 , typename T2 , typename T3 > struct template_arity< iter_fold< T1 , T2 , T3 > > : int_<3> { }; template<> struct template_arity< iter_fold< na , na , na > > : int_<-1> { }; } }} # 19 "/usr/include/boost/mpl/distance.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/iterator_range.hpp" 1 3 4 # 20 "/usr/include/boost/mpl/iterator_range.hpp" 3 4 namespace boost { namespace mpl { struct iterator_range_tag; template< typename First = na , typename Last = na > struct iterator_range { typedef iterator_range_tag tag; typedef iterator_range type; typedef First begin; typedef Last end; }; template<> struct iterator_range< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : iterator_range< T1 , T2 > { }; }; template< typename Tag > struct lambda< iterator_range< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef iterator_range< na , na > result_; typedef iterator_range< na , na > type; }; namespace aux { template< typename T1 , typename T2 > struct template_arity< iterator_range< T1 , T2 > > : int_<2> { }; template<> struct template_arity< iterator_range< na , na > > : int_<-1> { }; } }} # 20 "/usr/include/boost/mpl/distance.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/apply_wrap.hpp" 1 3 4 # 24 "/usr/include/boost/mpl/distance.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Tag > struct distance_impl { template< typename First, typename Last > struct apply : aux::msvc_eti_base< typename iter_fold< iterator_range , mpl::long_<0> , next<> >::type > { # 60 "/usr/include/boost/mpl/distance.hpp" 3 4 }; }; template< typename First = na , typename Last = na > struct distance : distance_impl< typename tag::type > ::template apply { }; template<> struct distance< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : distance< T1 , T2 > { }; }; template< typename Tag > struct lambda< distance< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef distance< na , na > result_; typedef distance< na , na > type; }; namespace aux { template< typename T1 , typename T2 > struct template_arity< distance< T1 , T2 > > : int_<2> { }; template<> struct template_arity< distance< na , na > > : int_<-1> { }; } }} # 20 "/usr/include/boost/mpl/aux_/size_impl.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Tag > struct size_impl { template< typename Sequence > struct apply : distance< typename begin::type , typename end::type > { }; }; template<> struct size_impl {}; }} # 20 "/usr/include/boost/mpl/size.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Sequence = na > struct size : aux::msvc_eti_base< typename size_impl< typename sequence_tag::type > ::template apply< Sequence >::type >::type { }; template<> struct size< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : size< T1 > { }; }; template< typename Tag > struct lambda< size< na > , Tag , int_<-1> > { typedef false_ is_le; typedef size< na > result_; typedef size< na > type; }; namespace aux { template< typename T1 > struct template_arity< size< T1 > > : int_<1> { }; template<> struct template_arity< size< na > > : int_<-1> { }; } }} # 18 "/usr/include/boost/math/policies/policy.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/comparison.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/comparison.hpp" 3 4 # 1 "/usr/include/boost/mpl/not_equal_to.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/not_equal_to.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/comparison_op.hpp" 1 3 4 # 27 "/usr/include/boost/mpl/aux_/comparison_op.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 1 3 4 # 22 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 3 4 # 1 "/usr/include/boost/mpl/apply_wrap.hpp" 1 3 4 # 23 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 2 3 4 # 28 "/usr/include/boost/mpl/aux_/comparison_op.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/not_equal_to.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/aux_/preprocessed/gcc/not_equal_to.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag1 , typename Tag2 > struct not_equal_to_impl : if_c< ( Tag1::value > Tag2::value ) , aux::cast2nd_impl< not_equal_to_impl< Tag1,Tag1 >,Tag1, Tag2 > , aux::cast1st_impl< not_equal_to_impl< Tag2,Tag2 >,Tag1, Tag2 > >::type { }; template<> struct not_equal_to_impl< na,na > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename Tag > struct not_equal_to_impl< na,Tag > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename Tag > struct not_equal_to_impl< Tag,na > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename T > struct not_equal_to_tag { typedef typename T::tag type; }; template< typename N1 = na , typename N2 = na > struct not_equal_to : not_equal_to_impl< typename not_equal_to_tag::type , typename not_equal_to_tag::type >::template apply< N1,N2 >::type { }; template<> struct not_equal_to< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : not_equal_to< T1 , T2 > { }; }; template< typename Tag > struct lambda< not_equal_to< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef not_equal_to< na , na > result_; typedef not_equal_to< na , na > type; }; namespace aux { template< typename T1 , typename T2 > struct template_arity< not_equal_to< T1 , T2 > > : int_<2> { }; template<> struct template_arity< not_equal_to< na , na > > : int_<-1> { }; } }} namespace boost { namespace mpl { template<> struct not_equal_to_impl< integral_c_tag,integral_c_tag > { template< typename N1, typename N2 > struct apply : bool_< ( N1::value != N2::value ) > { }; }; }} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 36 "/usr/include/boost/mpl/aux_/comparison_op.hpp" 2 3 4 # 20 "/usr/include/boost/mpl/not_equal_to.hpp" 2 3 4 # 19 "/usr/include/boost/mpl/comparison.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/greater.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/greater.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/comparison_op.hpp" 1 3 4 # 27 "/usr/include/boost/mpl/aux_/comparison_op.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 1 3 4 # 22 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 3 4 # 1 "/usr/include/boost/mpl/apply_wrap.hpp" 1 3 4 # 23 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 2 3 4 # 28 "/usr/include/boost/mpl/aux_/comparison_op.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/greater.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/aux_/preprocessed/gcc/greater.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag1 , typename Tag2 > struct greater_impl : if_c< ( Tag1::value > Tag2::value ) , aux::cast2nd_impl< greater_impl< Tag1,Tag1 >,Tag1, Tag2 > , aux::cast1st_impl< greater_impl< Tag2,Tag2 >,Tag1, Tag2 > >::type { }; template<> struct greater_impl< na,na > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename Tag > struct greater_impl< na,Tag > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename Tag > struct greater_impl< Tag,na > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename T > struct greater_tag { typedef typename T::tag type; }; template< typename N1 = na , typename N2 = na > struct greater : greater_impl< typename greater_tag::type , typename greater_tag::type >::template apply< N1,N2 >::type { }; template<> struct greater< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : greater< T1 , T2 > { }; }; template< typename Tag > struct lambda< greater< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef greater< na , na > result_; typedef greater< na , na > type; }; namespace aux { template< typename T1 , typename T2 > struct template_arity< greater< T1 , T2 > > : int_<2> { }; template<> struct template_arity< greater< na , na > > : int_<-1> { }; } }} namespace boost { namespace mpl { template<> struct greater_impl< integral_c_tag,integral_c_tag > { template< typename N1, typename N2 > struct apply : bool_< ( N1::value > N2::value ) > { }; }; }} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 36 "/usr/include/boost/mpl/aux_/comparison_op.hpp" 2 3 4 # 20 "/usr/include/boost/mpl/greater.hpp" 2 3 4 # 21 "/usr/include/boost/mpl/comparison.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/less_equal.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/less_equal.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/comparison_op.hpp" 1 3 4 # 27 "/usr/include/boost/mpl/aux_/comparison_op.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 1 3 4 # 22 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 3 4 # 1 "/usr/include/boost/mpl/apply_wrap.hpp" 1 3 4 # 23 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 2 3 4 # 28 "/usr/include/boost/mpl/aux_/comparison_op.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/less_equal.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/aux_/preprocessed/gcc/less_equal.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag1 , typename Tag2 > struct less_equal_impl : if_c< ( Tag1::value > Tag2::value ) , aux::cast2nd_impl< less_equal_impl< Tag1,Tag1 >,Tag1, Tag2 > , aux::cast1st_impl< less_equal_impl< Tag2,Tag2 >,Tag1, Tag2 > >::type { }; template<> struct less_equal_impl< na,na > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename Tag > struct less_equal_impl< na,Tag > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename Tag > struct less_equal_impl< Tag,na > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename T > struct less_equal_tag { typedef typename T::tag type; }; template< typename N1 = na , typename N2 = na > struct less_equal : less_equal_impl< typename less_equal_tag::type , typename less_equal_tag::type >::template apply< N1,N2 >::type { }; template<> struct less_equal< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : less_equal< T1 , T2 > { }; }; template< typename Tag > struct lambda< less_equal< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef less_equal< na , na > result_; typedef less_equal< na , na > type; }; namespace aux { template< typename T1 , typename T2 > struct template_arity< less_equal< T1 , T2 > > : int_<2> { }; template<> struct template_arity< less_equal< na , na > > : int_<-1> { }; } }} namespace boost { namespace mpl { template<> struct less_equal_impl< integral_c_tag,integral_c_tag > { template< typename N1, typename N2 > struct apply : bool_< ( N1::value <= N2::value ) > { }; }; }} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 36 "/usr/include/boost/mpl/aux_/comparison_op.hpp" 2 3 4 # 20 "/usr/include/boost/mpl/less_equal.hpp" 2 3 4 # 22 "/usr/include/boost/mpl/comparison.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/greater_equal.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/greater_equal.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/comparison_op.hpp" 1 3 4 # 27 "/usr/include/boost/mpl/aux_/comparison_op.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 1 3 4 # 22 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 3 4 # 1 "/usr/include/boost/mpl/apply_wrap.hpp" 1 3 4 # 23 "/usr/include/boost/mpl/aux_/numeric_op.hpp" 2 3 4 # 28 "/usr/include/boost/mpl/aux_/comparison_op.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/greater_equal.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/aux_/preprocessed/gcc/greater_equal.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag1 , typename Tag2 > struct greater_equal_impl : if_c< ( Tag1::value > Tag2::value ) , aux::cast2nd_impl< greater_equal_impl< Tag1,Tag1 >,Tag1, Tag2 > , aux::cast1st_impl< greater_equal_impl< Tag2,Tag2 >,Tag1, Tag2 > >::type { }; template<> struct greater_equal_impl< na,na > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename Tag > struct greater_equal_impl< na,Tag > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename Tag > struct greater_equal_impl< Tag,na > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename T > struct greater_equal_tag { typedef typename T::tag type; }; template< typename N1 = na , typename N2 = na > struct greater_equal : greater_equal_impl< typename greater_equal_tag::type , typename greater_equal_tag::type >::template apply< N1,N2 >::type { }; template<> struct greater_equal< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : greater_equal< T1 , T2 > { }; }; template< typename Tag > struct lambda< greater_equal< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef greater_equal< na , na > result_; typedef greater_equal< na , na > type; }; namespace aux { template< typename T1 , typename T2 > struct template_arity< greater_equal< T1 , T2 > > : int_<2> { }; template<> struct template_arity< greater_equal< na , na > > : int_<-1> { }; } }} namespace boost { namespace mpl { template<> struct greater_equal_impl< integral_c_tag,integral_c_tag > { template< typename N1, typename N2 > struct apply : bool_< ( N1::value >= N2::value ) > { }; }; }} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 36 "/usr/include/boost/mpl/aux_/comparison_op.hpp" 2 3 4 # 20 "/usr/include/boost/mpl/greater_equal.hpp" 2 3 4 # 23 "/usr/include/boost/mpl/comparison.hpp" 2 3 4 # 19 "/usr/include/boost/math/policies/policy.hpp" 2 3 4 # 1 "/usr/include/boost/assert.hpp" 1 3 4 # 54 "/usr/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 64 "/usr/include/assert.h" 3 4 extern "C" { extern void __assert_fail (const char *__assertion, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert_perror_fail (int __errnum, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert (const char *__assertion, const char *__file, int __line) throw () __attribute__ ((__noreturn__)); } # 55 "/usr/include/boost/assert.hpp" 2 3 4 # 22 "/usr/include/boost/math/policies/policy.hpp" 2 3 4 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/limits.h" 1 3 4 # 27 "/usr/include/boost/math/policies/policy.hpp" 2 3 4 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stddef.h" 1 3 4 # 29 "/usr/include/boost/math/policies/policy.hpp" 2 3 4 namespace boost{ namespace math{ namespace tools{ template int digits(); template T epsilon(); } namespace policies{ # 175 "/usr/include/boost/math/policies/policy.hpp" 3 4 enum error_policy_type { throw_on_error = 0, errno_on_error = 1, ignore_error = 2, user_error = 3 }; template struct domain_error : public boost::mpl::int_{}; namespace detail{ template char test_is_valid_arg(const domain_error*); char test_is_default_arg(const domain_error*); template struct is_domain_error_imp { template static char test(const domain_error*); static double test(...); static const bool value = sizeof(test(static_cast(0))) == 1; }; } template struct is_domain_error : public boost::mpl::bool_< ::boost::math::policies::detail::is_domain_error_imp::value>{}; template struct pole_error : public boost::mpl::int_{}; namespace detail{ template char test_is_valid_arg(const pole_error*); char test_is_default_arg(const pole_error*); template struct is_pole_error_imp { template static char test(const pole_error*); static double test(...); static const bool value = sizeof(test(static_cast(0))) == 1; }; } template struct is_pole_error : public boost::mpl::bool_< ::boost::math::policies::detail::is_pole_error_imp::value>{}; template struct overflow_error : public boost::mpl::int_{}; namespace detail{ template char test_is_valid_arg(const overflow_error*); char test_is_default_arg(const overflow_error*); template struct is_overflow_error_imp { template static char test(const overflow_error*); static double test(...); static const bool value = sizeof(test(static_cast(0))) == 1; }; } template struct is_overflow_error : public boost::mpl::bool_< ::boost::math::policies::detail::is_overflow_error_imp::value>{}; template struct underflow_error : public boost::mpl::int_{}; namespace detail{ template char test_is_valid_arg(const underflow_error*); char test_is_default_arg(const underflow_error*); template struct is_underflow_error_imp { template static char test(const underflow_error*); static double test(...); static const bool value = sizeof(test(static_cast(0))) == 1; }; } template struct is_underflow_error : public boost::mpl::bool_< ::boost::math::policies::detail::is_underflow_error_imp::value>{}; template struct denorm_error : public boost::mpl::int_{}; namespace detail{ template char test_is_valid_arg(const denorm_error*); char test_is_default_arg(const denorm_error*); template struct is_denorm_error_imp { template static char test(const denorm_error*); static double test(...); static const bool value = sizeof(test(static_cast(0))) == 1; }; } template struct is_denorm_error : public boost::mpl::bool_< ::boost::math::policies::detail::is_denorm_error_imp::value>{}; template struct evaluation_error : public boost::mpl::int_{}; namespace detail{ template char test_is_valid_arg(const evaluation_error*); char test_is_default_arg(const evaluation_error*); template struct is_evaluation_error_imp { template static char test(const evaluation_error*); static double test(...); static const bool value = sizeof(test(static_cast(0))) == 1; }; } template struct is_evaluation_error : public boost::mpl::bool_< ::boost::math::policies::detail::is_evaluation_error_imp::value>{}; template struct rounding_error : public boost::mpl::int_{}; namespace detail{ template char test_is_valid_arg(const rounding_error*); char test_is_default_arg(const rounding_error*); template struct is_rounding_error_imp { template static char test(const rounding_error*); static double test(...); static const bool value = sizeof(test(static_cast(0))) == 1; }; } template struct is_rounding_error : public boost::mpl::bool_< ::boost::math::policies::detail::is_rounding_error_imp::value>{}; template struct indeterminate_result_error : public boost::mpl::int_{}; namespace detail{ template char test_is_valid_arg(const indeterminate_result_error*); char test_is_default_arg(const indeterminate_result_error*); template struct is_indeterminate_result_error_imp { template static char test(const indeterminate_result_error*); static double test(...); static const bool value = sizeof(test(static_cast(0))) == 1; }; } template struct is_indeterminate_result_error : public boost::mpl::bool_< ::boost::math::policies::detail::is_indeterminate_result_error_imp::value>{}; template struct promote_float : public boost::mpl::bool_{}; namespace detail{ template char test_is_valid_arg(const promote_float*); char test_is_default_arg(const promote_float*); template struct is_promote_float_imp { template static char test(const promote_float*); static double test(...); static const bool value = sizeof(test(static_cast(0))) == 1; }; } template struct is_promote_float : public boost::mpl::bool_< ::boost::math::policies::detail::is_promote_float_imp::value>{}; template struct promote_double : public boost::mpl::bool_{}; namespace detail{ template char test_is_valid_arg(const promote_double*); char test_is_default_arg(const promote_double*); template struct is_promote_double_imp { template static char test(const promote_double*); static double test(...); static const bool value = sizeof(test(static_cast(0))) == 1; }; } template struct is_promote_double : public boost::mpl::bool_< ::boost::math::policies::detail::is_promote_double_imp::value>{}; template struct assert_undefined : public boost::mpl::bool_{}; namespace detail{ template char test_is_valid_arg(const assert_undefined*); char test_is_default_arg(const assert_undefined*); template struct is_assert_undefined_imp { template static char test(const assert_undefined*); static double test(...); static const bool value = sizeof(test(static_cast(0))) == 1; }; } template struct is_assert_undefined : public boost::mpl::bool_< ::boost::math::policies::detail::is_assert_undefined_imp::value>{}; enum discrete_quantile_policy_type { real, integer_round_outwards, integer_round_inwards, integer_round_down, integer_round_up, integer_round_nearest }; template struct discrete_quantile : public boost::mpl::int_{}; namespace detail{ template char test_is_valid_arg(const discrete_quantile*); char test_is_default_arg(const discrete_quantile*); template struct is_discrete_quantile_imp { template static char test(const discrete_quantile*); static double test(...); static const bool value = sizeof(test(static_cast(0))) == 1; }; } template struct is_discrete_quantile : public boost::mpl::bool_< ::boost::math::policies::detail::is_discrete_quantile_imp::value>{}; template struct digits10 : public boost::mpl::int_{}; namespace detail{ template char test_is_valid_arg(const digits10*); char test_is_default_arg(const digits10<0>*); template struct is_digits10_imp { template static char test(const digits10*); static double test(...); static const bool value = sizeof(test(static_cast(0))) == 1; }; } template struct is_digits10 : public boost::mpl::bool_< ::boost::math::policies::detail::is_digits10_imp::value>{}; template struct digits2 : public boost::mpl::int_{}; namespace detail{ template char test_is_valid_arg(const digits2*); char test_is_default_arg(const digits2<0>*); template struct is_digits2_imp { template static char test(const digits2*); static double test(...); static const bool value = sizeof(test(static_cast(0))) == 1; }; } template struct is_digits2 : public boost::mpl::bool_< ::boost::math::policies::detail::is_digits2_imp::value>{}; template struct max_series_iterations : public boost::mpl::int_{}; namespace detail{ template char test_is_valid_arg(const max_series_iterations*); char test_is_default_arg(const max_series_iterations<1000000>*); template struct is_max_series_iterations_imp { template static char test(const max_series_iterations*); static double test(...); static const bool value = sizeof(test(static_cast(0))) == 1; }; } template struct is_max_series_iterations : public boost::mpl::bool_< ::boost::math::policies::detail::is_max_series_iterations_imp::value>{}; template struct max_root_iterations : public boost::mpl::int_{}; namespace detail{ template char test_is_valid_arg(const max_root_iterations*); char test_is_default_arg(const max_root_iterations<200>*); template struct is_max_root_iterations_imp { template static char test(const max_root_iterations*); static double test(...); static const bool value = sizeof(test(static_cast(0))) == 1; }; } template struct is_max_root_iterations : public boost::mpl::bool_< ::boost::math::policies::detail::is_max_root_iterations_imp::value>{}; struct default_policy{}; namespace detail{ template struct precision { typedef typename mpl::if_c< (Digits10::value == 0), digits2<0>, digits2<((Digits10::value + 1) * 1000L) / 301L> >::type digits2_type; public: typedef typename mpl::if_c< (Digits2::value > digits2_type::value), Digits2, digits2_type>::type type; }; template struct select_result { typedef A type; }; template struct select_result { typedef typename mpl::deref::type type; }; template struct find_arg { private: typedef typename mpl::find_if::type iter; typedef typename mpl::end::type end_type; public: typedef typename select_result< DefaultType, iter, ::boost::is_same::value>::type type; }; double test_is_valid_arg(...); double test_is_default_arg(...); char test_is_valid_arg(const default_policy*); char test_is_default_arg(const default_policy*); template struct is_valid_policy_imp { static const bool value = sizeof(::boost::math::policies::detail::test_is_valid_arg(static_cast(0))) == 1; }; template struct is_default_policy_imp { static const bool value = sizeof(::boost::math::policies::detail::test_is_default_arg(static_cast(0))) == 1; }; template struct is_valid_policy : public mpl::bool_< ::boost::math::policies::detail::is_valid_policy_imp::value> {}; template struct is_default_policy : public mpl::bool_< ::boost::math::policies::detail::is_default_policy_imp::value> { template struct apply { typedef is_default_policy type; }; }; template struct append_N { typedef typename mpl::push_back::type new_seq; typedef typename append_N::type type; }; template struct append_N { typedef Seq type; }; template struct default_args { typedef promote_float arg1; typedef promote_double arg2; }; template <> struct default_args { typedef default_policy arg1; typedef default_policy arg2; }; template <> struct default_args { typedef promote_float arg1; typedef default_policy arg2; }; template <> struct default_args { typedef promote_double arg1; typedef default_policy arg2; }; typedef default_args::arg1 forwarding_arg1; typedef default_args::arg2 forwarding_arg2; } template struct policy { private: typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((::boost::math::policies::detail::is_valid_policy::value) == 0 ? false : true) >)> boost_static_assert_typedef_386 __attribute__((unused)); typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((::boost::math::policies::detail::is_valid_policy::value) == 0 ? false : true) >)> boost_static_assert_typedef_387 __attribute__((unused)); typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((::boost::math::policies::detail::is_valid_policy::value) == 0 ? false : true) >)> boost_static_assert_typedef_388 __attribute__((unused)); typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((::boost::math::policies::detail::is_valid_policy::value) == 0 ? false : true) >)> boost_static_assert_typedef_389 __attribute__((unused)); typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((::boost::math::policies::detail::is_valid_policy::value) == 0 ? false : true) >)> boost_static_assert_typedef_390 __attribute__((unused)); typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((::boost::math::policies::detail::is_valid_policy::value) == 0 ? false : true) >)> boost_static_assert_typedef_391 __attribute__((unused)); typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((::boost::math::policies::detail::is_valid_policy::value) == 0 ? false : true) >)> boost_static_assert_typedef_392 __attribute__((unused)); typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((::boost::math::policies::detail::is_valid_policy::value) == 0 ? false : true) >)> boost_static_assert_typedef_393 __attribute__((unused)); typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((::boost::math::policies::detail::is_valid_policy::value) == 0 ? false : true) >)> boost_static_assert_typedef_394 __attribute__((unused)); typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((::boost::math::policies::detail::is_valid_policy::value) == 0 ? false : true) >)> boost_static_assert_typedef_395 __attribute__((unused)); typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((::boost::math::policies::detail::is_valid_policy::value) == 0 ? false : true) >)> boost_static_assert_typedef_396 __attribute__((unused)); typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((::boost::math::policies::detail::is_valid_policy::value) == 0 ? false : true) >)> boost_static_assert_typedef_397 __attribute__((unused)); typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((::boost::math::policies::detail::is_valid_policy::value) == 0 ? false : true) >)> boost_static_assert_typedef_398 __attribute__((unused)); typedef mpl::list arg_list; public: typedef typename detail::find_arg, domain_error<> >::type domain_error_type; typedef typename detail::find_arg, pole_error<> >::type pole_error_type; typedef typename detail::find_arg, overflow_error<> >::type overflow_error_type; typedef typename detail::find_arg, underflow_error<> >::type underflow_error_type; typedef typename detail::find_arg, denorm_error<> >::type denorm_error_type; typedef typename detail::find_arg, evaluation_error<> >::type evaluation_error_type; typedef typename detail::find_arg, rounding_error<> >::type rounding_error_type; typedef typename detail::find_arg, indeterminate_result_error<> >::type indeterminate_result_error_type; private: typedef typename detail::find_arg, digits10<> >::type digits10_type; typedef typename detail::find_arg, digits2<> >::type bits_precision_type; public: typedef typename detail::precision::type precision_type; typedef typename detail::find_arg, promote_float<> >::type promote_float_type; typedef typename detail::find_arg, promote_double<> >::type promote_double_type; typedef typename detail::find_arg, discrete_quantile<> >::type discrete_quantile_type; typedef typename detail::find_arg, assert_undefined<> >::type assert_undefined_type; typedef typename detail::find_arg, max_series_iterations<> >::type max_series_iterations_type; typedef typename detail::find_arg, max_root_iterations<> >::type max_root_iterations_type; }; template <> struct policy { public: typedef domain_error<> domain_error_type; typedef pole_error<> pole_error_type; typedef overflow_error<> overflow_error_type; typedef underflow_error<> underflow_error_type; typedef denorm_error<> denorm_error_type; typedef evaluation_error<> evaluation_error_type; typedef rounding_error<> rounding_error_type; typedef indeterminate_result_error<> indeterminate_result_error_type; typedef digits2<> precision_type; typedef promote_float<> promote_float_type; typedef promote_double<> promote_double_type; typedef discrete_quantile<> discrete_quantile_type; typedef assert_undefined<> assert_undefined_type; typedef max_series_iterations<> max_series_iterations_type; typedef max_root_iterations<> max_root_iterations_type; }; template <> struct policy { public: typedef domain_error<> domain_error_type; typedef pole_error<> pole_error_type; typedef overflow_error<> overflow_error_type; typedef underflow_error<> underflow_error_type; typedef denorm_error<> denorm_error_type; typedef evaluation_error<> evaluation_error_type; typedef rounding_error<> rounding_error_type; typedef indeterminate_result_error<> indeterminate_result_error_type; typedef digits2<> precision_type; typedef promote_float promote_float_type; typedef promote_double promote_double_type; typedef discrete_quantile<> discrete_quantile_type; typedef assert_undefined<> assert_undefined_type; typedef max_series_iterations<> max_series_iterations_type; typedef max_root_iterations<> max_root_iterations_type; }; template struct normalise { private: typedef mpl::list arg_list; typedef typename detail::find_arg, typename Policy::domain_error_type >::type domain_error_type; typedef typename detail::find_arg, typename Policy::pole_error_type >::type pole_error_type; typedef typename detail::find_arg, typename Policy::overflow_error_type >::type overflow_error_type; typedef typename detail::find_arg, typename Policy::underflow_error_type >::type underflow_error_type; typedef typename detail::find_arg, typename Policy::denorm_error_type >::type denorm_error_type; typedef typename detail::find_arg, typename Policy::evaluation_error_type >::type evaluation_error_type; typedef typename detail::find_arg, typename Policy::rounding_error_type >::type rounding_error_type; typedef typename detail::find_arg, typename Policy::indeterminate_result_error_type >::type indeterminate_result_error_type; typedef typename detail::find_arg, digits10<> >::type digits10_type; typedef typename detail::find_arg, typename Policy::precision_type >::type bits_precision_type; typedef typename detail::precision::type precision_type; typedef typename detail::find_arg, typename Policy::promote_float_type >::type promote_float_type; typedef typename detail::find_arg, typename Policy::promote_double_type >::type promote_double_type; typedef typename detail::find_arg, typename Policy::discrete_quantile_type >::type discrete_quantile_type; typedef typename detail::find_arg, typename Policy::assert_undefined_type >::type assert_undefined_type; typedef typename detail::find_arg, typename Policy::max_series_iterations_type>::type max_series_iterations_type; typedef typename detail::find_arg, typename Policy::max_root_iterations_type>::type max_root_iterations_type; typedef mpl::vector< domain_error_type, pole_error_type, overflow_error_type, underflow_error_type, denorm_error_type, evaluation_error_type, rounding_error_type, indeterminate_result_error_type, precision_type, promote_float_type, promote_double_type, discrete_quantile_type, assert_undefined_type, max_series_iterations_type, max_root_iterations_type> result_list; typedef typename mpl::remove_if >::type reduced_list; typedef typename detail::append_N::value)>::type result_type; public: typedef policy< typename mpl::at >::type, typename mpl::at >::type, typename mpl::at >::type, typename mpl::at >::type, typename mpl::at >::type, typename mpl::at >::type, typename mpl::at >::type, typename mpl::at >::type, typename mpl::at >::type, typename mpl::at >::type, typename mpl::at >::type, typename mpl::at >::type, typename mpl::at >::type > type; }; template <> struct normalise, promote_float, promote_double, discrete_quantile<>, assert_undefined<>, default_policy, default_policy, default_policy, default_policy, default_policy, default_policy, default_policy> { typedef policy type; }; template <> struct normalise, promote_float, promote_double, discrete_quantile<>, assert_undefined<>, default_policy, default_policy, default_policy, default_policy, default_policy, default_policy, default_policy> { typedef policy type; }; inline policy<> make_policy() { return policy<>(); } template inline typename normalise, A1>::type make_policy(const A1&) { typedef typename normalise, A1>::type result_type; return result_type(); } template inline typename normalise, A1, A2>::type make_policy(const A1&, const A2&) { typedef typename normalise, A1, A2>::type result_type; return result_type(); } template inline typename normalise, A1, A2, A3>::type make_policy(const A1&, const A2&, const A3&) { typedef typename normalise, A1, A2, A3>::type result_type; return result_type(); } template inline typename normalise, A1, A2, A3, A4>::type make_policy(const A1&, const A2&, const A3&, const A4&) { typedef typename normalise, A1, A2, A3, A4>::type result_type; return result_type(); } template inline typename normalise, A1, A2, A3, A4, A5>::type make_policy(const A1&, const A2&, const A3&, const A4&, const A5&) { typedef typename normalise, A1, A2, A3, A4, A5>::type result_type; return result_type(); } template inline typename normalise, A1, A2, A3, A4, A5, A6>::type make_policy(const A1&, const A2&, const A3&, const A4&, const A5&, const A6&) { typedef typename normalise, A1, A2, A3, A4, A5, A6>::type result_type; return result_type(); } template inline typename normalise, A1, A2, A3, A4, A5, A6, A7>::type make_policy(const A1&, const A2&, const A3&, const A4&, const A5&, const A6&, const A7&) { typedef typename normalise, A1, A2, A3, A4, A5, A6, A7>::type result_type; return result_type(); } template inline typename normalise, A1, A2, A3, A4, A5, A6, A7, A8>::type make_policy(const A1&, const A2&, const A3&, const A4&, const A5&, const A6&, const A7&, const A8&) { typedef typename normalise, A1, A2, A3, A4, A5, A6, A7, A8>::type result_type; return result_type(); } template inline typename normalise, A1, A2, A3, A4, A5, A6, A7, A8, A9>::type make_policy(const A1&, const A2&, const A3&, const A4&, const A5&, const A6&, const A7&, const A8&, const A9&) { typedef typename normalise, A1, A2, A3, A4, A5, A6, A7, A8, A9>::type result_type; return result_type(); } template inline typename normalise, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10>::type make_policy(const A1&, const A2&, const A3&, const A4&, const A5&, const A6&, const A7&, const A8&, const A9&, const A10&) { typedef typename normalise, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10>::type result_type; return result_type(); } template inline typename normalise, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11>::type make_policy(const A1&, const A2&, const A3&, const A4&, const A5&, const A6&, const A7&, const A8&, const A9&, const A10&, const A11&) { typedef typename normalise, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11>::type result_type; return result_type(); } template struct evaluation { typedef Real type; }; template struct evaluation { typedef typename mpl::if_::type type; }; template struct evaluation { typedef typename mpl::if_::type type; }; # 775 "/usr/include/boost/math/policies/policy.hpp" 3 4 template struct precision { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< (((::std::numeric_limits::radix == 2) || ((::std::numeric_limits::is_specialized == 0) || (::std::numeric_limits::digits == 0))) == 0 ? false : true) >)> boost_static_assert_typedef_778 __attribute__((unused)); typedef typename Policy::precision_type precision_type; typedef typename mpl::if_c< ((::std::numeric_limits::is_specialized == 0) || (::std::numeric_limits::digits == 0)), precision_type, typename mpl::if_c< ((::std::numeric_limits::digits <= precision_type::value) || (Policy::precision_type::value <= 0)), digits2< ::std::numeric_limits::digits>, precision_type >::type >::type type; # 811 "/usr/include/boost/math/policies/policy.hpp" 3 4 }; template struct precision<__float128, Policy> { typedef mpl::int_<113> type; }; namespace detail{ template inline int digits_imp(mpl::true_ const&) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((::std::numeric_limits::is_specialized) == 0 ? false : true) >)> boost_static_assert_typedef_831 __attribute__((unused)); typedef typename boost::math::policies::precision::type p_t; return p_t::value; } template inline int digits_imp(mpl::false_ const&) { return tools::digits(); } } template inline int digits() { typedef mpl::bool_< std::numeric_limits::is_specialized > tag_type; return detail::digits_imp(tag_type()); } template inline unsigned long get_max_series_iterations() { typedef typename Policy::max_series_iterations_type iter_type; return iter_type::value; } template inline unsigned long get_max_root_iterations() { typedef typename Policy::max_root_iterations_type iter_type; return iter_type::value; } namespace detail{ template struct series_factor_calc { static T get() { return ldexp(T(1.0), 1 - Digits::value); } }; template struct series_factor_calc { static T get() { return boost::math::tools::epsilon(); } }; template struct series_factor_calc { static T get() { static const boost::uintmax_t v = static_cast(1u) << (Digits::value - 1); return 1 / static_cast(v); } }; template struct series_factor_calc { static T get() { return boost::math::tools::epsilon(); } }; template inline T get_epsilon_imp(mpl::true_ const&) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((::std::numeric_limits::is_specialized) == 0 ? false : true) >)> boost_static_assert_typedef_909 __attribute__((unused)); typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((::std::numeric_limits::radix == 2) == 0 ? false : true) >)> boost_static_assert_typedef_910 __attribute__((unused)); typedef typename boost::math::policies::precision::type p_t; typedef mpl::bool_::digits> is_small_int; typedef mpl::bool_= std::numeric_limits::digits> is_default_value; return series_factor_calc::get(); } template inline T get_epsilon_imp(mpl::false_ const&) { return tools::epsilon(); } } template inline T get_epsilon() { typedef mpl::bool_< (std::numeric_limits::is_specialized && (std::numeric_limits::radix == 2)) > tag_type; return detail::get_epsilon_imp(tag_type()); } namespace detail{ template char test_is_policy(const policy*); double test_is_policy(...); template struct is_policy_imp { static const bool value = (sizeof(::boost::math::policies::detail::test_is_policy(static_cast(0))) == 1); }; } template struct is_policy : public mpl::bool_< ::boost::math::policies::detail::is_policy_imp

::value> {}; template struct constructor_error_check { typedef typename Policy::domain_error_type domain_error_type; typedef typename mpl::if_c< (domain_error_type::value == throw_on_error) || (domain_error_type::value == user_error), mpl::true_, mpl::false_>::type type; }; template struct method_error_check { typedef typename Policy::domain_error_type domain_error_type; typedef typename mpl::if_c< (domain_error_type::value == throw_on_error) && (domain_error_type::value != user_error), mpl::false_, mpl::true_>::type type; }; }}} # 29 "/usr/include/boost/math/special_functions/math_fwd.hpp" 2 3 4 # 1 "/usr/include/boost/config/no_tr1/complex.hpp" 1 3 4 # 21 "/usr/include/boost/config/no_tr1/complex.hpp" 3 4 # 1 "/usr/include/c++/5.0.0/complex" 1 3 4 # 39 "/usr/include/c++/5.0.0/complex" 3 4 # 40 "/usr/include/c++/5.0.0/complex" 3 # 1 "/usr/include/c++/5.0.0/cmath" 1 3 # 39 "/usr/include/c++/5.0.0/cmath" 3 # 40 "/usr/include/c++/5.0.0/cmath" 3 # 45 "/usr/include/c++/5.0.0/complex" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 63 "/usr/include/c++/5.0.0/complex" 3 template class complex; template<> class complex; template<> class complex; template<> class complex; template _Tp abs(const complex<_Tp>&); template _Tp arg(const complex<_Tp>&); template _Tp norm(const complex<_Tp>&); template complex<_Tp> conj(const complex<_Tp>&); template complex<_Tp> polar(const _Tp&, const _Tp& = 0); template complex<_Tp> cos(const complex<_Tp>&); template complex<_Tp> cosh(const complex<_Tp>&); template complex<_Tp> exp(const complex<_Tp>&); template complex<_Tp> log(const complex<_Tp>&); template complex<_Tp> log10(const complex<_Tp>&); template complex<_Tp> pow(const complex<_Tp>&, int); template complex<_Tp> pow(const complex<_Tp>&, const _Tp&); template complex<_Tp> pow(const complex<_Tp>&, const complex<_Tp>&); template complex<_Tp> pow(const _Tp&, const complex<_Tp>&); template complex<_Tp> sin(const complex<_Tp>&); template complex<_Tp> sinh(const complex<_Tp>&); template complex<_Tp> sqrt(const complex<_Tp>&); template complex<_Tp> tan(const complex<_Tp>&); template complex<_Tp> tanh(const complex<_Tp>&); # 121 "/usr/include/c++/5.0.0/complex" 3 template struct complex { typedef _Tp value_type; complex(const _Tp& __r = _Tp(), const _Tp& __i = _Tp()) : _M_real(__r), _M_imag(__i) { } template complex(const complex<_Up>& __z) : _M_real(__z.real()), _M_imag(__z.imag()) { } # 154 "/usr/include/c++/5.0.0/complex" 3 _Tp& real() { return _M_real; } const _Tp& real() const { return _M_real; } _Tp& imag() { return _M_imag; } const _Tp& imag() const { return _M_imag; } void real(_Tp __val) { _M_real = __val; } void imag(_Tp __val) { _M_imag = __val; } complex<_Tp>& operator=(const _Tp&); complex<_Tp>& operator+=(const _Tp& __t) { _M_real += __t; return *this; } complex<_Tp>& operator-=(const _Tp& __t) { _M_real -= __t; return *this; } complex<_Tp>& operator*=(const _Tp&); complex<_Tp>& operator/=(const _Tp&); template complex<_Tp>& operator=(const complex<_Up>&); template complex<_Tp>& operator+=(const complex<_Up>&); template complex<_Tp>& operator-=(const complex<_Up>&); template complex<_Tp>& operator*=(const complex<_Up>&); template complex<_Tp>& operator/=(const complex<_Up>&); complex __rep() const { return *this; } private: _Tp _M_real; _Tp _M_imag; }; template complex<_Tp>& complex<_Tp>::operator=(const _Tp& __t) { _M_real = __t; _M_imag = _Tp(); return *this; } template complex<_Tp>& complex<_Tp>::operator*=(const _Tp& __t) { _M_real *= __t; _M_imag *= __t; return *this; } template complex<_Tp>& complex<_Tp>::operator/=(const _Tp& __t) { _M_real /= __t; _M_imag /= __t; return *this; } template template complex<_Tp>& complex<_Tp>::operator=(const complex<_Up>& __z) { _M_real = __z.real(); _M_imag = __z.imag(); return *this; } template template complex<_Tp>& complex<_Tp>::operator+=(const complex<_Up>& __z) { _M_real += __z.real(); _M_imag += __z.imag(); return *this; } template template complex<_Tp>& complex<_Tp>::operator-=(const complex<_Up>& __z) { _M_real -= __z.real(); _M_imag -= __z.imag(); return *this; } template template complex<_Tp>& complex<_Tp>::operator*=(const complex<_Up>& __z) { const _Tp __r = _M_real * __z.real() - _M_imag * __z.imag(); _M_imag = _M_real * __z.imag() + _M_imag * __z.real(); _M_real = __r; return *this; } template template complex<_Tp>& complex<_Tp>::operator/=(const complex<_Up>& __z) { const _Tp __r = _M_real * __z.real() + _M_imag * __z.imag(); const _Tp __n = std::norm(__z); _M_imag = (_M_imag * __z.real() - _M_real * __z.imag()) / __n; _M_real = __r / __n; return *this; } template inline complex<_Tp> operator+(const complex<_Tp>& __x, const complex<_Tp>& __y) { complex<_Tp> __r = __x; __r += __y; return __r; } template inline complex<_Tp> operator+(const complex<_Tp>& __x, const _Tp& __y) { complex<_Tp> __r = __x; __r += __y; return __r; } template inline complex<_Tp> operator+(const _Tp& __x, const complex<_Tp>& __y) { complex<_Tp> __r = __y; __r += __x; return __r; } template inline complex<_Tp> operator-(const complex<_Tp>& __x, const complex<_Tp>& __y) { complex<_Tp> __r = __x; __r -= __y; return __r; } template inline complex<_Tp> operator-(const complex<_Tp>& __x, const _Tp& __y) { complex<_Tp> __r = __x; __r -= __y; return __r; } template inline complex<_Tp> operator-(const _Tp& __x, const complex<_Tp>& __y) { complex<_Tp> __r(__x, -__y.imag()); __r -= __y.real(); return __r; } template inline complex<_Tp> operator*(const complex<_Tp>& __x, const complex<_Tp>& __y) { complex<_Tp> __r = __x; __r *= __y; return __r; } template inline complex<_Tp> operator*(const complex<_Tp>& __x, const _Tp& __y) { complex<_Tp> __r = __x; __r *= __y; return __r; } template inline complex<_Tp> operator*(const _Tp& __x, const complex<_Tp>& __y) { complex<_Tp> __r = __y; __r *= __x; return __r; } template inline complex<_Tp> operator/(const complex<_Tp>& __x, const complex<_Tp>& __y) { complex<_Tp> __r = __x; __r /= __y; return __r; } template inline complex<_Tp> operator/(const complex<_Tp>& __x, const _Tp& __y) { complex<_Tp> __r = __x; __r /= __y; return __r; } template inline complex<_Tp> operator/(const _Tp& __x, const complex<_Tp>& __y) { complex<_Tp> __r = __x; __r /= __y; return __r; } template inline complex<_Tp> operator+(const complex<_Tp>& __x) { return __x; } template inline complex<_Tp> operator-(const complex<_Tp>& __x) { return complex<_Tp>(-__x.real(), -__x.imag()); } template inline bool operator==(const complex<_Tp>& __x, const complex<_Tp>& __y) { return __x.real() == __y.real() && __x.imag() == __y.imag(); } template inline bool operator==(const complex<_Tp>& __x, const _Tp& __y) { return __x.real() == __y && __x.imag() == _Tp(); } template inline bool operator==(const _Tp& __x, const complex<_Tp>& __y) { return __x == __y.real() && _Tp() == __y.imag(); } template inline bool operator!=(const complex<_Tp>& __x, const complex<_Tp>& __y) { return __x.real() != __y.real() || __x.imag() != __y.imag(); } template inline bool operator!=(const complex<_Tp>& __x, const _Tp& __y) { return __x.real() != __y || __x.imag() != _Tp(); } template inline bool operator!=(const _Tp& __x, const complex<_Tp>& __y) { return __x != __y.real() || _Tp() != __y.imag(); } template basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x) { _Tp __re_x, __im_x; _CharT __ch; __is >> __ch; if (__ch == '(') { __is >> __re_x >> __ch; if (__ch == ',') { __is >> __im_x >> __ch; if (__ch == ')') __x = complex<_Tp>(__re_x, __im_x); else __is.setstate(ios_base::failbit); } else if (__ch == ')') __x = __re_x; else __is.setstate(ios_base::failbit); } else { __is.putback(__ch); __is >> __re_x; __x = __re_x; } return __is; } template basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const complex<_Tp>& __x) { basic_ostringstream<_CharT, _Traits> __s; __s.flags(__os.flags()); __s.imbue(__os.getloc()); __s.precision(__os.precision()); __s << '(' << __x.real() << ',' << __x.imag() << ')'; return __os << __s.str(); } # 548 "/usr/include/c++/5.0.0/complex" 3 template inline _Tp& real(complex<_Tp>& __z) { return __z.real(); } template inline const _Tp& real(const complex<_Tp>& __z) { return __z.real(); } template inline _Tp& imag(complex<_Tp>& __z) { return __z.imag(); } template inline const _Tp& imag(const complex<_Tp>& __z) { return __z.imag(); } template inline _Tp __complex_abs(const complex<_Tp>& __z) { _Tp __x = __z.real(); _Tp __y = __z.imag(); const _Tp __s = std::max(abs(__x), abs(__y)); if (__s == _Tp()) return __s; __x /= __s; __y /= __s; return __s * sqrt(__x * __x + __y * __y); } inline float __complex_abs(__complex__ float __z) { return __builtin_cabsf(__z); } inline double __complex_abs(__complex__ double __z) { return __builtin_cabs(__z); } inline long double __complex_abs(const __complex__ long double& __z) { return __builtin_cabsl(__z); } template inline _Tp abs(const complex<_Tp>& __z) { return __complex_abs(__z.__rep()); } # 606 "/usr/include/c++/5.0.0/complex" 3 template inline _Tp __complex_arg(const complex<_Tp>& __z) { return atan2(__z.imag(), __z.real()); } inline float __complex_arg(__complex__ float __z) { return __builtin_cargf(__z); } inline double __complex_arg(__complex__ double __z) { return __builtin_carg(__z); } inline long double __complex_arg(const __complex__ long double& __z) { return __builtin_cargl(__z); } template inline _Tp arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); } # 636 "/usr/include/c++/5.0.0/complex" 3 template struct _Norm_helper { template static inline _Tp _S_do_it(const complex<_Tp>& __z) { const _Tp __x = __z.real(); const _Tp __y = __z.imag(); return __x * __x + __y * __y; } }; template<> struct _Norm_helper { template static inline _Tp _S_do_it(const complex<_Tp>& __z) { _Tp __res = std::abs(__z); return __res * __res; } }; template inline _Tp norm(const complex<_Tp>& __z) { return _Norm_helper<__is_floating<_Tp>::__value && !0>::_S_do_it(__z); } template inline complex<_Tp> polar(const _Tp& __rho, const _Tp& __theta) { return complex<_Tp>(__rho * cos(__theta), __rho * sin(__theta)); } template inline complex<_Tp> conj(const complex<_Tp>& __z) { return complex<_Tp>(__z.real(), -__z.imag()); } template inline complex<_Tp> __complex_cos(const complex<_Tp>& __z) { const _Tp __x = __z.real(); const _Tp __y = __z.imag(); return complex<_Tp>(cos(__x) * cosh(__y), -sin(__x) * sinh(__y)); } inline __complex__ float __complex_cos(__complex__ float __z) { return __builtin_ccosf(__z); } inline __complex__ double __complex_cos(__complex__ double __z) { return __builtin_ccos(__z); } inline __complex__ long double __complex_cos(const __complex__ long double& __z) { return __builtin_ccosl(__z); } template inline complex<_Tp> cos(const complex<_Tp>& __z) { return __complex_cos(__z.__rep()); } template inline complex<_Tp> __complex_cosh(const complex<_Tp>& __z) { const _Tp __x = __z.real(); const _Tp __y = __z.imag(); return complex<_Tp>(cosh(__x) * cos(__y), sinh(__x) * sin(__y)); } inline __complex__ float __complex_cosh(__complex__ float __z) { return __builtin_ccoshf(__z); } inline __complex__ double __complex_cosh(__complex__ double __z) { return __builtin_ccosh(__z); } inline __complex__ long double __complex_cosh(const __complex__ long double& __z) { return __builtin_ccoshl(__z); } template inline complex<_Tp> cosh(const complex<_Tp>& __z) { return __complex_cosh(__z.__rep()); } template inline complex<_Tp> __complex_exp(const complex<_Tp>& __z) { return std::polar<_Tp>(exp(__z.real()), __z.imag()); } inline __complex__ float __complex_exp(__complex__ float __z) { return __builtin_cexpf(__z); } inline __complex__ double __complex_exp(__complex__ double __z) { return __builtin_cexp(__z); } inline __complex__ long double __complex_exp(const __complex__ long double& __z) { return __builtin_cexpl(__z); } template inline complex<_Tp> exp(const complex<_Tp>& __z) { return __complex_exp(__z.__rep()); } # 767 "/usr/include/c++/5.0.0/complex" 3 template inline complex<_Tp> __complex_log(const complex<_Tp>& __z) { return complex<_Tp>(log(std::abs(__z)), std::arg(__z)); } inline __complex__ float __complex_log(__complex__ float __z) { return __builtin_clogf(__z); } inline __complex__ double __complex_log(__complex__ double __z) { return __builtin_clog(__z); } inline __complex__ long double __complex_log(const __complex__ long double& __z) { return __builtin_clogl(__z); } template inline complex<_Tp> log(const complex<_Tp>& __z) { return __complex_log(__z.__rep()); } template inline complex<_Tp> log10(const complex<_Tp>& __z) { return std::log(__z) / log(_Tp(10.0)); } template inline complex<_Tp> __complex_sin(const complex<_Tp>& __z) { const _Tp __x = __z.real(); const _Tp __y = __z.imag(); return complex<_Tp>(sin(__x) * cosh(__y), cos(__x) * sinh(__y)); } inline __complex__ float __complex_sin(__complex__ float __z) { return __builtin_csinf(__z); } inline __complex__ double __complex_sin(__complex__ double __z) { return __builtin_csin(__z); } inline __complex__ long double __complex_sin(const __complex__ long double& __z) { return __builtin_csinl(__z); } template inline complex<_Tp> sin(const complex<_Tp>& __z) { return __complex_sin(__z.__rep()); } template inline complex<_Tp> __complex_sinh(const complex<_Tp>& __z) { const _Tp __x = __z.real(); const _Tp __y = __z.imag(); return complex<_Tp>(sinh(__x) * cos(__y), cosh(__x) * sin(__y)); } inline __complex__ float __complex_sinh(__complex__ float __z) { return __builtin_csinhf(__z); } inline __complex__ double __complex_sinh(__complex__ double __z) { return __builtin_csinh(__z); } inline __complex__ long double __complex_sinh(const __complex__ long double& __z) { return __builtin_csinhl(__z); } template inline complex<_Tp> sinh(const complex<_Tp>& __z) { return __complex_sinh(__z.__rep()); } # 859 "/usr/include/c++/5.0.0/complex" 3 template complex<_Tp> __complex_sqrt(const complex<_Tp>& __z) { _Tp __x = __z.real(); _Tp __y = __z.imag(); if (__x == _Tp()) { _Tp __t = sqrt(abs(__y) / 2); return complex<_Tp>(__t, __y < _Tp() ? -__t : __t); } else { _Tp __t = sqrt(2 * (std::abs(__z) + abs(__x))); _Tp __u = __t / 2; return __x > _Tp() ? complex<_Tp>(__u, __y / __t) : complex<_Tp>(abs(__y) / __t, __y < _Tp() ? -__u : __u); } } inline __complex__ float __complex_sqrt(__complex__ float __z) { return __builtin_csqrtf(__z); } inline __complex__ double __complex_sqrt(__complex__ double __z) { return __builtin_csqrt(__z); } inline __complex__ long double __complex_sqrt(const __complex__ long double& __z) { return __builtin_csqrtl(__z); } template inline complex<_Tp> sqrt(const complex<_Tp>& __z) { return __complex_sqrt(__z.__rep()); } # 903 "/usr/include/c++/5.0.0/complex" 3 template inline complex<_Tp> __complex_tan(const complex<_Tp>& __z) { return std::sin(__z) / std::cos(__z); } inline __complex__ float __complex_tan(__complex__ float __z) { return __builtin_ctanf(__z); } inline __complex__ double __complex_tan(__complex__ double __z) { return __builtin_ctan(__z); } inline __complex__ long double __complex_tan(const __complex__ long double& __z) { return __builtin_ctanl(__z); } template inline complex<_Tp> tan(const complex<_Tp>& __z) { return __complex_tan(__z.__rep()); } # 931 "/usr/include/c++/5.0.0/complex" 3 template inline complex<_Tp> __complex_tanh(const complex<_Tp>& __z) { return std::sinh(__z) / std::cosh(__z); } inline __complex__ float __complex_tanh(__complex__ float __z) { return __builtin_ctanhf(__z); } inline __complex__ double __complex_tanh(__complex__ double __z) { return __builtin_ctanh(__z); } inline __complex__ long double __complex_tanh(const __complex__ long double& __z) { return __builtin_ctanhl(__z); } template inline complex<_Tp> tanh(const complex<_Tp>& __z) { return __complex_tanh(__z.__rep()); } # 960 "/usr/include/c++/5.0.0/complex" 3 template complex<_Tp> __complex_pow_unsigned(complex<_Tp> __x, unsigned __n) { complex<_Tp> __y = __n % 2 ? __x : complex<_Tp>(1); while (__n >>= 1) { __x *= __x; if (__n % 2) __y *= __x; } return __y; } template inline complex<_Tp> pow(const complex<_Tp>& __z, int __n) { return __n < 0 ? complex<_Tp>(1) / std::__complex_pow_unsigned(__z, -(unsigned)__n) : std::__complex_pow_unsigned(__z, __n); } template complex<_Tp> pow(const complex<_Tp>& __x, const _Tp& __y) { if (__x.imag() == _Tp() && __x.real() > _Tp()) return pow(__x.real(), __y); complex<_Tp> __t = std::log(__x); return std::polar<_Tp>(exp(__y * __t.real()), __y * __t.imag()); } template inline complex<_Tp> __complex_pow(const complex<_Tp>& __x, const complex<_Tp>& __y) { return __x == _Tp() ? _Tp() : std::exp(__y * std::log(__x)); } inline __complex__ float __complex_pow(__complex__ float __x, __complex__ float __y) { return __builtin_cpowf(__x, __y); } inline __complex__ double __complex_pow(__complex__ double __x, __complex__ double __y) { return __builtin_cpow(__x, __y); } inline __complex__ long double __complex_pow(const __complex__ long double& __x, const __complex__ long double& __y) { return __builtin_cpowl(__x, __y); } template inline complex<_Tp> pow(const complex<_Tp>& __x, const complex<_Tp>& __y) { return __complex_pow(__x.__rep(), __y.__rep()); } template inline complex<_Tp> pow(const _Tp& __x, const complex<_Tp>& __y) { return __x > _Tp() ? std::polar<_Tp>(pow(__x, __y.real()), __y.imag() * log(__x)) : std::pow(complex<_Tp>(__x), __y); } template<> struct complex { typedef float value_type; typedef __complex__ float _ComplexT; complex(_ComplexT __z) : _M_value(__z) { } complex(float __r = 0.0f, float __i = 0.0f) { __real__ _M_value = __r; __imag__ _M_value = __i; } explicit complex(const complex&); explicit complex(const complex&); # 1079 "/usr/include/c++/5.0.0/complex" 3 float& real() { return __real__ _M_value; } const float& real() const { return __real__ _M_value; } float& imag() { return __imag__ _M_value; } const float& imag() const { return __imag__ _M_value; } void real(float __val) { __real__ _M_value = __val; } void imag(float __val) { __imag__ _M_value = __val; } complex& operator=(float __f) { _M_value = __f; return *this; } complex& operator+=(float __f) { _M_value += __f; return *this; } complex& operator-=(float __f) { _M_value -= __f; return *this; } complex& operator*=(float __f) { _M_value *= __f; return *this; } complex& operator/=(float __f) { _M_value /= __f; return *this; } template complex& operator=(const complex<_Tp>& __z) { __real__ _M_value = __z.real(); __imag__ _M_value = __z.imag(); return *this; } template complex& operator+=(const complex<_Tp>& __z) { __real__ _M_value += __z.real(); __imag__ _M_value += __z.imag(); return *this; } template complex& operator-=(const complex<_Tp>& __z) { __real__ _M_value -= __z.real(); __imag__ _M_value -= __z.imag(); return *this; } template complex& operator*=(const complex<_Tp>& __z) { _ComplexT __t; __real__ __t = __z.real(); __imag__ __t = __z.imag(); _M_value *= __t; return *this; } template complex& operator/=(const complex<_Tp>& __z) { _ComplexT __t; __real__ __t = __z.real(); __imag__ __t = __z.imag(); _M_value /= __t; return *this; } _ComplexT __rep() const { return _M_value; } private: _ComplexT _M_value; }; template<> struct complex { typedef double value_type; typedef __complex__ double _ComplexT; complex(_ComplexT __z) : _M_value(__z) { } complex(double __r = 0.0, double __i = 0.0) { __real__ _M_value = __r; __imag__ _M_value = __i; } complex(const complex& __z) : _M_value(__z.__rep()) { } explicit complex(const complex&); # 1230 "/usr/include/c++/5.0.0/complex" 3 double& real() { return __real__ _M_value; } const double& real() const { return __real__ _M_value; } double& imag() { return __imag__ _M_value; } const double& imag() const { return __imag__ _M_value; } void real(double __val) { __real__ _M_value = __val; } void imag(double __val) { __imag__ _M_value = __val; } complex& operator=(double __d) { _M_value = __d; return *this; } complex& operator+=(double __d) { _M_value += __d; return *this; } complex& operator-=(double __d) { _M_value -= __d; return *this; } complex& operator*=(double __d) { _M_value *= __d; return *this; } complex& operator/=(double __d) { _M_value /= __d; return *this; } template complex& operator=(const complex<_Tp>& __z) { __real__ _M_value = __z.real(); __imag__ _M_value = __z.imag(); return *this; } template complex& operator+=(const complex<_Tp>& __z) { __real__ _M_value += __z.real(); __imag__ _M_value += __z.imag(); return *this; } template complex& operator-=(const complex<_Tp>& __z) { __real__ _M_value -= __z.real(); __imag__ _M_value -= __z.imag(); return *this; } template complex& operator*=(const complex<_Tp>& __z) { _ComplexT __t; __real__ __t = __z.real(); __imag__ __t = __z.imag(); _M_value *= __t; return *this; } template complex& operator/=(const complex<_Tp>& __z) { _ComplexT __t; __real__ __t = __z.real(); __imag__ __t = __z.imag(); _M_value /= __t; return *this; } _ComplexT __rep() const { return _M_value; } private: _ComplexT _M_value; }; template<> struct complex { typedef long double value_type; typedef __complex__ long double _ComplexT; complex(_ComplexT __z) : _M_value(__z) { } complex(long double __r = 0.0L, long double __i = 0.0L) { __real__ _M_value = __r; __imag__ _M_value = __i; } complex(const complex& __z) : _M_value(__z.__rep()) { } complex(const complex& __z) : _M_value(__z.__rep()) { } # 1382 "/usr/include/c++/5.0.0/complex" 3 long double& real() { return __real__ _M_value; } const long double& real() const { return __real__ _M_value; } long double& imag() { return __imag__ _M_value; } const long double& imag() const { return __imag__ _M_value; } void real(long double __val) { __real__ _M_value = __val; } void imag(long double __val) { __imag__ _M_value = __val; } complex& operator=(long double __r) { _M_value = __r; return *this; } complex& operator+=(long double __r) { _M_value += __r; return *this; } complex& operator-=(long double __r) { _M_value -= __r; return *this; } complex& operator*=(long double __r) { _M_value *= __r; return *this; } complex& operator/=(long double __r) { _M_value /= __r; return *this; } template complex& operator=(const complex<_Tp>& __z) { __real__ _M_value = __z.real(); __imag__ _M_value = __z.imag(); return *this; } template complex& operator+=(const complex<_Tp>& __z) { __real__ _M_value += __z.real(); __imag__ _M_value += __z.imag(); return *this; } template complex& operator-=(const complex<_Tp>& __z) { __real__ _M_value -= __z.real(); __imag__ _M_value -= __z.imag(); return *this; } template complex& operator*=(const complex<_Tp>& __z) { _ComplexT __t; __real__ __t = __z.real(); __imag__ __t = __z.imag(); _M_value *= __t; return *this; } template complex& operator/=(const complex<_Tp>& __z) { _ComplexT __t; __real__ __t = __z.real(); __imag__ __t = __z.imag(); _M_value /= __t; return *this; } _ComplexT __rep() const { return _M_value; } private: _ComplexT _M_value; }; inline complex::complex(const complex& __z) : _M_value(__z.__rep()) { } inline complex::complex(const complex& __z) : _M_value(__z.__rep()) { } inline complex::complex(const complex& __z) : _M_value(__z.__rep()) { } extern template istream& operator>>(istream&, complex&); extern template ostream& operator<<(ostream&, const complex&); extern template istream& operator>>(istream&, complex&); extern template ostream& operator<<(ostream&, const complex&); extern template istream& operator>>(istream&, complex&); extern template ostream& operator<<(ostream&, const complex&); extern template wistream& operator>>(wistream&, complex&); extern template wostream& operator<<(wostream&, const complex&); extern template wistream& operator>>(wistream&, complex&); extern template wostream& operator<<(wostream&, const complex&); extern template wistream& operator>>(wistream&, complex&); extern template wostream& operator<<(wostream&, const complex&); } namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { template struct __promote_2, _Up> { public: typedef std::complex::__type> __type; }; template struct __promote_2<_Tp, std::complex<_Up> > { public: typedef std::complex::__type> __type; }; template struct __promote_2, std::complex<_Up> > { public: typedef std::complex::__type> __type; }; } # 22 "/usr/include/boost/config/no_tr1/complex.hpp" 2 3 4 # 31 "/usr/include/boost/math/special_functions/math_fwd.hpp" 2 3 4 namespace boost { namespace math { template typename tools::promote_args::type beta(RT1 a, RT2 b); template typename tools::promote_args::type beta(RT1 a, RT2 b, A x); template typename tools::promote_args::type beta(RT1 a, RT2 b, RT3 x, const Policy& pol); template typename tools::promote_args::type betac(RT1 a, RT2 b, RT3 x); template typename tools::promote_args::type betac(RT1 a, RT2 b, RT3 x, const Policy& pol); template typename tools::promote_args::type ibeta(RT1 a, RT2 b, RT3 x); template typename tools::promote_args::type ibeta(RT1 a, RT2 b, RT3 x, const Policy& pol); template typename tools::promote_args::type ibetac(RT1 a, RT2 b, RT3 x); template typename tools::promote_args::type ibetac(RT1 a, RT2 b, RT3 x, const Policy& pol); template typename tools::promote_args::type ibeta_inv(T1 a, T2 b, T3 p, T4* py); template typename tools::promote_args::type ibeta_inv(T1 a, T2 b, T3 p, T4* py, const Policy& pol); template typename tools::promote_args::type ibeta_inv(RT1 a, RT2 b, RT3 p); template typename tools::promote_args::type ibeta_inv(RT1 a, RT2 b, RT3 p, const Policy&); template typename tools::promote_args::type ibeta_inva(RT1 a, RT2 b, RT3 p); template typename tools::promote_args::type ibeta_inva(RT1 a, RT2 b, RT3 p, const Policy&); template typename tools::promote_args::type ibeta_invb(RT1 a, RT2 b, RT3 p); template typename tools::promote_args::type ibeta_invb(RT1 a, RT2 b, RT3 p, const Policy&); template typename tools::promote_args::type ibetac_inv(T1 a, T2 b, T3 q, T4* py); template typename tools::promote_args::type ibetac_inv(T1 a, T2 b, T3 q, T4* py, const Policy& pol); template typename tools::promote_args::type ibetac_inv(RT1 a, RT2 b, RT3 q); template typename tools::promote_args::type ibetac_inv(RT1 a, RT2 b, RT3 q, const Policy&); template typename tools::promote_args::type ibetac_inva(RT1 a, RT2 b, RT3 q); template typename tools::promote_args::type ibetac_inva(RT1 a, RT2 b, RT3 q, const Policy&); template typename tools::promote_args::type ibetac_invb(RT1 a, RT2 b, RT3 q); template typename tools::promote_args::type ibetac_invb(RT1 a, RT2 b, RT3 q, const Policy&); template typename tools::promote_args::type ibeta_derivative(RT1 a, RT2 b, RT3 x); template typename tools::promote_args::type ibeta_derivative(RT1 a, RT2 b, RT3 x, const Policy& pol); template typename tools::promote_args::type erf(RT z); template typename tools::promote_args::type erf(RT z, const Policy&); template typename tools::promote_args::type erfc(RT z); template typename tools::promote_args::type erfc(RT z, const Policy&); template typename tools::promote_args::type erf_inv(RT z); template typename tools::promote_args::type erf_inv(RT z, const Policy& pol); template typename tools::promote_args::type erfc_inv(RT z); template typename tools::promote_args::type erfc_inv(RT z, const Policy& pol); template typename tools::promote_args::type legendre_next(unsigned l, T1 x, T2 Pl, T3 Plm1); template typename tools::promote_args::type legendre_p(int l, T x); template typename tools::promote_args::type legendre_p(int l, T x, const Policy& pol); template typename tools::promote_args::type legendre_q(unsigned l, T x); template typename tools::promote_args::type legendre_q(unsigned l, T x, const Policy& pol); template typename tools::promote_args::type legendre_next(unsigned l, unsigned m, T1 x, T2 Pl, T3 Plm1); template typename tools::promote_args::type legendre_p(int l, int m, T x); template typename tools::promote_args::type legendre_p(int l, int m, T x, const Policy& pol); template typename tools::promote_args::type laguerre_next(unsigned n, T1 x, T2 Ln, T3 Lnm1); template typename tools::promote_args::type laguerre_next(unsigned n, unsigned l, T1 x, T2 Pl, T3 Plm1); template typename tools::promote_args::type laguerre(unsigned n, T x); template typename tools::promote_args::type laguerre(unsigned n, unsigned m, T x, const Policy& pol); template struct laguerre_result { typedef typename mpl::if_< policies::is_policy, typename tools::promote_args::type, typename tools::promote_args::type >::type type; }; template typename laguerre_result::type laguerre(unsigned n, T1 m, T2 x); template typename tools::promote_args::type hermite(unsigned n, T x); template typename tools::promote_args::type hermite(unsigned n, T x, const Policy& pol); template typename tools::promote_args::type hermite_next(unsigned n, T1 x, T2 Hn, T3 Hnm1); template std::complex::type> spherical_harmonic(unsigned n, int m, T1 theta, T2 phi); template std::complex::type> spherical_harmonic(unsigned n, int m, T1 theta, T2 phi, const Policy& pol); template typename tools::promote_args::type spherical_harmonic_r(unsigned n, int m, T1 theta, T2 phi); template typename tools::promote_args::type spherical_harmonic_r(unsigned n, int m, T1 theta, T2 phi, const Policy& pol); template typename tools::promote_args::type spherical_harmonic_i(unsigned n, int m, T1 theta, T2 phi); template typename tools::promote_args::type spherical_harmonic_i(unsigned n, int m, T1 theta, T2 phi, const Policy& pol); template typename tools::promote_args::type ellint_rf(T1 x, T2 y, T3 z); template typename tools::promote_args::type ellint_rf(T1 x, T2 y, T3 z, const Policy& pol); template typename tools::promote_args::type ellint_rd(T1 x, T2 y, T3 z); template typename tools::promote_args::type ellint_rd(T1 x, T2 y, T3 z, const Policy& pol); template typename tools::promote_args::type ellint_rc(T1 x, T2 y); template typename tools::promote_args::type ellint_rc(T1 x, T2 y, const Policy& pol); template typename tools::promote_args::type ellint_rj(T1 x, T2 y, T3 z, T4 p); template typename tools::promote_args::type ellint_rj(T1 x, T2 y, T3 z, T4 p, const Policy& pol); template typename tools::promote_args::type ellint_2(T k); template typename tools::promote_args::type ellint_2(T1 k, T2 phi); template typename tools::promote_args::type ellint_2(T1 k, T2 phi, const Policy& pol); template typename tools::promote_args::type ellint_1(T k); template typename tools::promote_args::type ellint_1(T1 k, T2 phi); template typename tools::promote_args::type ellint_1(T1 k, T2 phi, const Policy& pol); namespace detail{ template struct ellint_3_result { typedef typename mpl::if_< policies::is_policy, typename tools::promote_args::type, typename tools::promote_args::type >::type type; }; } template typename detail::ellint_3_result::type ellint_3(T1 k, T2 v, T3 phi); template typename tools::promote_args::type ellint_3(T1 k, T2 v, T3 phi, const Policy& pol); template typename tools::promote_args::type ellint_3(T1 k, T2 v); template struct max_factorial; template RT factorial(unsigned int); template RT factorial(unsigned int, const Policy& pol); template RT unchecked_factorial(unsigned int ); template RT double_factorial(unsigned i); template RT double_factorial(unsigned i, const Policy& pol); template typename tools::promote_args::type falling_factorial(RT x, unsigned n); template typename tools::promote_args::type falling_factorial(RT x, unsigned n, const Policy& pol); template typename tools::promote_args::type rising_factorial(RT x, int n); template typename tools::promote_args::type rising_factorial(RT x, int n, const Policy& pol); template typename tools::promote_args::type tgamma(RT z); template typename tools::promote_args::type tgamma1pm1(RT z); template typename tools::promote_args::type tgamma1pm1(RT z, const Policy& pol); template typename tools::promote_args::type tgamma(RT1 a, RT2 z); template typename tools::promote_args::type tgamma(RT1 a, RT2 z, const Policy& pol); template typename tools::promote_args::type lgamma(RT z, int* sign); template typename tools::promote_args::type lgamma(RT z, int* sign, const Policy& pol); template typename tools::promote_args::type lgamma(RT x); template typename tools::promote_args::type lgamma(RT x, const Policy& pol); template typename tools::promote_args::type tgamma_lower(RT1 a, RT2 z); template typename tools::promote_args::type tgamma_lower(RT1 a, RT2 z, const Policy&); template typename tools::promote_args::type gamma_q(RT1 a, RT2 z); template typename tools::promote_args::type gamma_q(RT1 a, RT2 z, const Policy&); template typename tools::promote_args::type gamma_p(RT1 a, RT2 z); template typename tools::promote_args::type gamma_p(RT1 a, RT2 z, const Policy&); template typename tools::promote_args::type tgamma_delta_ratio(T1 z, T2 delta); template typename tools::promote_args::type tgamma_delta_ratio(T1 z, T2 delta, const Policy&); template typename tools::promote_args::type tgamma_ratio(T1 a, T2 b); template typename tools::promote_args::type tgamma_ratio(T1 a, T2 b, const Policy&); template typename tools::promote_args::type gamma_p_derivative(T1 a, T2 x); template typename tools::promote_args::type gamma_p_derivative(T1 a, T2 x, const Policy&); template typename tools::promote_args::type gamma_p_inv(T1 a, T2 p); template typename tools::promote_args::type gamma_p_inva(T1 a, T2 p, const Policy&); template typename tools::promote_args::type gamma_p_inva(T1 a, T2 p); template typename tools::promote_args::type gamma_p_inv(T1 a, T2 p, const Policy&); template typename tools::promote_args::type gamma_q_inv(T1 a, T2 q); template typename tools::promote_args::type gamma_q_inv(T1 a, T2 q, const Policy&); template typename tools::promote_args::type gamma_q_inva(T1 a, T2 q); template typename tools::promote_args::type gamma_q_inva(T1 a, T2 q, const Policy&); template typename tools::promote_args::type digamma(T x); template typename tools::promote_args::type digamma(T x, const Policy&); template typename tools::promote_args::type hypot(T1 x, T2 y); template typename tools::promote_args::type hypot(T1 x, T2 y, const Policy&); template typename tools::promote_args::type cbrt(RT z); template typename tools::promote_args::type cbrt(RT z, const Policy&); template typename tools::promote_args::type log1p(T); template typename tools::promote_args::type log1p(T, const Policy&); template typename tools::promote_args::type log1pmx(T); template typename tools::promote_args::type log1pmx(T, const Policy&); template typename tools::promote_args::type expm1(T); template typename tools::promote_args::type expm1(T, const Policy&); template typename tools::promote_args::type powm1(const T1 a, const T2 z); template typename tools::promote_args::type powm1(const T1 a, const T2 z, const Policy&); template typename tools::promote_args::type sqrt1pm1(const T& val); template typename tools::promote_args::type sqrt1pm1(const T& val, const Policy&); template typename tools::promote_args::type sinc_pi(T x); template typename tools::promote_args::type sinc_pi(T x, const Policy&); template typename tools::promote_args::type sinhc_pi(T x); template typename tools::promote_args::type sinhc_pi(T x, const Policy&); template typename tools::promote_args::type asinh(T x); template typename tools::promote_args::type asinh(T x, const Policy&); template typename tools::promote_args::type acosh(T x); template typename tools::promote_args::type acosh(T x, const Policy&); template typename tools::promote_args::type atanh(T x); template typename tools::promote_args::type atanh(T x, const Policy&); namespace detail{ typedef mpl::int_<0> bessel_no_int_tag; typedef mpl::int_<1> bessel_maybe_int_tag; typedef mpl::int_<2> bessel_int_tag; template struct bessel_traits { typedef typename tools::promote_args< T1, T2 >::type result_type; typedef typename policies::precision::type precision_type; typedef typename mpl::if_< mpl::or_< mpl::less_equal >, mpl::greater > >, bessel_no_int_tag, typename mpl::if_< is_integral, bessel_int_tag, bessel_maybe_int_tag >::type >::type optimisation_tag; }; } template typename detail::bessel_traits::result_type cyl_bessel_j(T1 v, T2 x, const Policy& pol); template typename detail::bessel_traits::result_type cyl_bessel_j_prime(T1 v, T2 x, const Policy& pol); template typename detail::bessel_traits >::result_type cyl_bessel_j(T1 v, T2 x); template typename detail::bessel_traits >::result_type cyl_bessel_j_prime(T1 v, T2 x); template typename detail::bessel_traits::result_type sph_bessel(unsigned v, T x, const Policy& pol); template typename detail::bessel_traits::result_type sph_bessel_prime(unsigned v, T x, const Policy& pol); template typename detail::bessel_traits >::result_type sph_bessel(unsigned v, T x); template typename detail::bessel_traits >::result_type sph_bessel_prime(unsigned v, T x); template typename detail::bessel_traits::result_type cyl_bessel_i(T1 v, T2 x, const Policy& pol); template typename detail::bessel_traits::result_type cyl_bessel_i_prime(T1 v, T2 x, const Policy& pol); template typename detail::bessel_traits >::result_type cyl_bessel_i(T1 v, T2 x); template typename detail::bessel_traits >::result_type cyl_bessel_i_prime(T1 v, T2 x); template typename detail::bessel_traits::result_type cyl_bessel_k(T1 v, T2 x, const Policy& pol); template typename detail::bessel_traits::result_type cyl_bessel_k_prime(T1 v, T2 x, const Policy& pol); template typename detail::bessel_traits >::result_type cyl_bessel_k(T1 v, T2 x); template typename detail::bessel_traits >::result_type cyl_bessel_k_prime(T1 v, T2 x); template typename detail::bessel_traits::result_type cyl_neumann(T1 v, T2 x, const Policy& pol); template typename detail::bessel_traits::result_type cyl_neumann_prime(T1 v, T2 x, const Policy& pol); template typename detail::bessel_traits >::result_type cyl_neumann(T1 v, T2 x); template typename detail::bessel_traits >::result_type cyl_neumann_prime(T1 v, T2 x); template typename detail::bessel_traits::result_type sph_neumann(unsigned v, T x, const Policy& pol); template typename detail::bessel_traits::result_type sph_neumann_prime(unsigned v, T x, const Policy& pol); template typename detail::bessel_traits >::result_type sph_neumann(unsigned v, T x); template typename detail::bessel_traits >::result_type sph_neumann_prime(unsigned v, T x); template typename detail::bessel_traits::result_type cyl_bessel_j_zero(T v, int m, const Policy& pol); template typename detail::bessel_traits >::result_type cyl_bessel_j_zero(T v, int m); template OutputIterator cyl_bessel_j_zero(T v, int start_index, unsigned number_of_zeros, OutputIterator out_it); template OutputIterator cyl_bessel_j_zero(T v, int start_index, unsigned number_of_zeros, OutputIterator out_it, const Policy&); template typename detail::bessel_traits::result_type cyl_neumann_zero(T v, int m, const Policy& pol); template typename detail::bessel_traits >::result_type cyl_neumann_zero(T v, int m); template OutputIterator cyl_neumann_zero(T v, int start_index, unsigned number_of_zeros, OutputIterator out_it); template OutputIterator cyl_neumann_zero(T v, int start_index, unsigned number_of_zeros, OutputIterator out_it, const Policy&); template std::complex >::result_type> cyl_hankel_1(T1 v, T2 x); template std::complex::result_type> cyl_hankel_1(T1 v, T2 x, const Policy& pol); template std::complex::result_type> cyl_hankel_2(T1 v, T2 x, const Policy& pol); template std::complex >::result_type> cyl_hankel_2(T1 v, T2 x); template std::complex::result_type> sph_hankel_1(T1 v, T2 x, const Policy& pol); template std::complex >::result_type> sph_hankel_1(T1 v, T2 x); template std::complex::result_type> sph_hankel_2(T1 v, T2 x, const Policy& pol); template std::complex >::result_type> sph_hankel_2(T1 v, T2 x); template typename tools::promote_args::type airy_ai(T x, const Policy&); template typename tools::promote_args::type airy_ai(T x); template typename tools::promote_args::type airy_bi(T x, const Policy&); template typename tools::promote_args::type airy_bi(T x); template typename tools::promote_args::type airy_ai_prime(T x, const Policy&); template typename tools::promote_args::type airy_ai_prime(T x); template typename tools::promote_args::type airy_bi_prime(T x, const Policy&); template typename tools::promote_args::type airy_bi_prime(T x); template T airy_ai_zero(int m); template T airy_ai_zero(int m, const Policy&); template OutputIterator airy_ai_zero( int start_index, unsigned number_of_zeros, OutputIterator out_it); template OutputIterator airy_ai_zero( int start_index, unsigned number_of_zeros, OutputIterator out_it, const Policy&); template T airy_bi_zero(int m); template T airy_bi_zero(int m, const Policy&); template OutputIterator airy_bi_zero( int start_index, unsigned number_of_zeros, OutputIterator out_it); template OutputIterator airy_bi_zero( int start_index, unsigned number_of_zeros, OutputIterator out_it, const Policy&); template typename tools::promote_args::type sin_pi(T x, const Policy&); template typename tools::promote_args::type sin_pi(T x); template typename tools::promote_args::type cos_pi(T x, const Policy&); template typename tools::promote_args::type cos_pi(T x); template int fpclassify (T t); template bool isfinite (T z); template bool isinf (T t); template bool isnan (T t); template bool isnormal (T t); template int signbit (T x); template int sign (const T& z); template typename tools::promote_args_permissive::type copysign (const T& x, const U& y); template typename tools::promote_args_permissive::type changesign (const T& z); namespace detail{ template struct expint_result { typedef typename mpl::if_< policies::is_policy, typename tools::promote_args::type, typename tools::promote_args::type >::type type; }; } template typename tools::promote_args::type expint(unsigned n, T z, const Policy&); template typename detail::expint_result::type expint(T const z, U const u); template typename tools::promote_args::type expint(T z); template typename tools::promote_args::type zeta(T s, const Policy&); template typename tools::promote_args::type owens_t(T1 h, T2 a, const Policy& pol); template typename tools::promote_args::type owens_t(T1 h, T2 a); template typename tools::promote_args::type jacobi_elliptic(T k, U theta, V* pcn, V* pdn, const Policy&); template typename tools::promote_args::type jacobi_elliptic(T k, U theta, V* pcn = 0, V* pdn = 0); template typename tools::promote_args::type jacobi_sn(U k, T theta, const Policy& pol); template typename tools::promote_args::type jacobi_sn(U k, T theta); template typename tools::promote_args::type jacobi_cn(T k, U theta, const Policy& pol); template typename tools::promote_args::type jacobi_cn(T k, U theta); template typename tools::promote_args::type jacobi_dn(T k, U theta, const Policy& pol); template typename tools::promote_args::type jacobi_dn(T k, U theta); template typename tools::promote_args::type jacobi_cd(T k, U theta, const Policy& pol); template typename tools::promote_args::type jacobi_cd(T k, U theta); template typename tools::promote_args::type jacobi_dc(T k, U theta, const Policy& pol); template typename tools::promote_args::type jacobi_dc(T k, U theta); template typename tools::promote_args::type jacobi_ns(T k, U theta, const Policy& pol); template typename tools::promote_args::type jacobi_ns(T k, U theta); template typename tools::promote_args::type jacobi_sd(T k, U theta, const Policy& pol); template typename tools::promote_args::type jacobi_sd(T k, U theta); template typename tools::promote_args::type jacobi_ds(T k, U theta, const Policy& pol); template typename tools::promote_args::type jacobi_ds(T k, U theta); template typename tools::promote_args::type jacobi_nc(T k, U theta, const Policy& pol); template typename tools::promote_args::type jacobi_nc(T k, U theta); template typename tools::promote_args::type jacobi_nd(T k, U theta, const Policy& pol); template typename tools::promote_args::type jacobi_nd(T k, U theta); template typename tools::promote_args::type jacobi_sc(T k, U theta, const Policy& pol); template typename tools::promote_args::type jacobi_sc(T k, U theta); template typename tools::promote_args::type jacobi_cs(T k, U theta, const Policy& pol); template typename tools::promote_args::type jacobi_cs(T k, U theta); template typename tools::promote_args::type zeta(T s); template typename tools::promote_args::type pow(T base, const Policy& policy); template typename tools::promote_args::type pow(T base); template typename tools::promote_args::type nextafter(const T&, const U&, const Policy&); template typename tools::promote_args::type nextafter(const T&, const U&); template typename tools::promote_args::type float_next(const T&, const Policy&); template typename tools::promote_args::type float_next(const T&); template typename tools::promote_args::type float_prior(const T&, const Policy&); template typename tools::promote_args::type float_prior(const T&); template typename tools::promote_args::type float_distance(const T&, const U&, const Policy&); template typename tools::promote_args::type float_distance(const T&, const U&); template typename tools::promote_args::type float_advance(T val, int distance, const Policy& pol); template typename tools::promote_args::type float_advance(const T& val, int distance); template T unchecked_bernoulli_b2n(const std::size_t n); template T bernoulli_b2n(const int i, const Policy &pol); template T bernoulli_b2n(const int i); template OutputIterator bernoulli_b2n(const int start_index, const unsigned number_of_bernoullis_b2n, OutputIterator out_it, const Policy& pol); template OutputIterator bernoulli_b2n(const int start_index, const unsigned number_of_bernoullis_b2n, OutputIterator out_it); template T tangent_t2n(const int i, const Policy &pol); template T tangent_t2n(const int i); template OutputIterator tangent_t2n(const int start_index, const unsigned number_of_bernoullis_b2n, OutputIterator out_it, const Policy& pol); template OutputIterator tangent_t2n(const int start_index, const unsigned number_of_bernoullis_b2n, OutputIterator out_it); } } # 18 "/usr/include/boost/math/special_functions/sign.hpp" 2 3 4 # 1 "/usr/include/boost/math/special_functions/detail/fp_traits.hpp" 1 3 4 # 23 "/usr/include/boost/math/special_functions/detail/fp_traits.hpp" 3 4 # 1 "/usr/include/c++/5.0.0/cstring" 1 3 4 # 39 "/usr/include/c++/5.0.0/cstring" 3 4 # 40 "/usr/include/c++/5.0.0/cstring" 3 # 24 "/usr/include/boost/math/special_functions/detail/fp_traits.hpp" 2 3 4 # 1 "/usr/include/boost/assert.hpp" 1 3 4 # 54 "/usr/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 64 "/usr/include/assert.h" 3 4 extern "C" { extern void __assert_fail (const char *__assertion, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert_perror_fail (int __errnum, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert (const char *__assertion, const char *__file, int __line) throw () __attribute__ ((__noreturn__)); } # 55 "/usr/include/boost/assert.hpp" 2 3 4 # 26 "/usr/include/boost/math/special_functions/detail/fp_traits.hpp" 2 3 4 # 1 "/usr/include/boost/cstdint.hpp" 1 3 4 # 27 "/usr/include/boost/math/special_functions/detail/fp_traits.hpp" 2 3 4 # 1 "/usr/include/boost/detail/endian.hpp" 1 3 4 # 9 "/usr/include/boost/detail/endian.hpp" 3 4 # 1 "/usr/include/boost/predef/detail/endian_compat.h" 1 3 4 # 11 "/usr/include/boost/predef/detail/endian_compat.h" 3 4 # 1 "/usr/include/boost/predef/other/endian.h" 1 3 4 # 11 "/usr/include/boost/predef/other/endian.h" 3 4 # 1 "/usr/include/boost/predef/version_number.h" 1 3 4 # 12 "/usr/include/boost/predef/other/endian.h" 2 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 1 "/usr/include/boost/predef/detail/test.h" 1 3 4 # 8 "/usr/include/boost/predef/make.h" 2 3 4 # 13 "/usr/include/boost/predef/other/endian.h" 2 3 4 # 1 "/usr/include/boost/predef/library/c/gnu.h" 1 3 4 # 12 "/usr/include/boost/predef/library/c/gnu.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/library/c/gnu.h" 2 3 4 # 1 "/usr/include/boost/predef/library/c/_prefix.h" 1 3 4 # 11 "/usr/include/boost/predef/library/c/_prefix.h" 3 4 # 1 "/usr/include/boost/predef/detail/_cassert.h" 1 3 4 # 14 "/usr/include/boost/predef/detail/_cassert.h" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 64 "/usr/include/assert.h" 3 4 extern "C" { extern void __assert_fail (const char *__assertion, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert_perror_fail (int __errnum, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert (const char *__assertion, const char *__file, int __line) throw () __attribute__ ((__noreturn__)); } # 15 "/usr/include/boost/predef/detail/_cassert.h" 2 3 4 # 12 "/usr/include/boost/predef/library/c/_prefix.h" 2 3 4 # 15 "/usr/include/boost/predef/library/c/gnu.h" 2 3 4 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stddef.h" 1 3 4 # 18 "/usr/include/boost/predef/library/c/gnu.h" 2 3 4 # 59 "/usr/include/boost/predef/library/c/gnu.h" 3 4 # 14 "/usr/include/boost/predef/other/endian.h" 2 3 4 # 1 "/usr/include/boost/predef/os/macos.h" 1 3 4 # 17 "/usr/include/boost/predef/os/macos.h" 3 4 # 1 "/usr/include/boost/predef/os/ios.h" 1 3 4 # 12 "/usr/include/boost/predef/os/ios.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/os/ios.h" 2 3 4 # 48 "/usr/include/boost/predef/os/ios.h" 3 4 # 18 "/usr/include/boost/predef/os/macos.h" 2 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 21 "/usr/include/boost/predef/os/macos.h" 2 3 4 # 63 "/usr/include/boost/predef/os/macos.h" 3 4 # 15 "/usr/include/boost/predef/other/endian.h" 2 3 4 # 1 "/usr/include/boost/predef/os/bsd.h" 1 3 4 # 19 "/usr/include/boost/predef/os/bsd.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 20 "/usr/include/boost/predef/os/bsd.h" 2 3 4 # 52 "/usr/include/boost/predef/os/bsd.h" 3 4 # 1 "/usr/include/boost/predef/os/bsd/bsdi.h" 1 3 4 # 11 "/usr/include/boost/predef/os/bsd/bsdi.h" 3 4 # 1 "/usr/include/boost/predef/os/bsd.h" 1 3 4 # 12 "/usr/include/boost/predef/os/bsd/bsdi.h" 2 3 4 # 46 "/usr/include/boost/predef/os/bsd/bsdi.h" 3 4 # 53 "/usr/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/usr/include/boost/predef/os/bsd/dragonfly.h" 1 3 4 # 48 "/usr/include/boost/predef/os/bsd/dragonfly.h" 3 4 # 54 "/usr/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/usr/include/boost/predef/os/bsd/free.h" 1 3 4 # 58 "/usr/include/boost/predef/os/bsd/free.h" 3 4 # 55 "/usr/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/usr/include/boost/predef/os/bsd/open.h" 1 3 4 # 169 "/usr/include/boost/predef/os/bsd/open.h" 3 4 # 56 "/usr/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/usr/include/boost/predef/os/bsd/net.h" 1 3 4 # 82 "/usr/include/boost/predef/os/bsd/net.h" 3 4 # 57 "/usr/include/boost/predef/os/bsd.h" 2 3 4 # 93 "/usr/include/boost/predef/os/bsd.h" 3 4 # 16 "/usr/include/boost/predef/other/endian.h" 2 3 4 # 192 "/usr/include/boost/predef/other/endian.h" 3 4 # 12 "/usr/include/boost/predef/detail/endian_compat.h" 2 3 4 # 10 "/usr/include/boost/detail/endian.hpp" 2 3 4 # 28 "/usr/include/boost/math/special_functions/detail/fp_traits.hpp" 2 3 4 # 81 "/usr/include/boost/math/special_functions/detail/fp_traits.hpp" 3 4 namespace boost { namespace math { namespace detail { # 92 "/usr/include/boost/math/special_functions/detail/fp_traits.hpp" 3 4 struct native_tag {}; template struct generic_tag {}; struct ieee_tag {}; struct ieee_copy_all_bits_tag : public ieee_tag {}; struct ieee_copy_leading_bits_tag : public ieee_tag {}; # 125 "/usr/include/boost/math/special_functions/detail/fp_traits.hpp" 3 4 struct unknown_precision{}; struct single_precision {}; struct double_precision {}; struct extended_double_precision {}; template struct fp_traits_native { typedef native_tag method; }; template struct fp_traits_non_native { typedef generic_tag::is_specialized> method; }; # 177 "/usr/include/boost/math/special_functions/detail/fp_traits.hpp" 3 4 template<> struct fp_traits_non_native { typedef ieee_copy_all_bits_tag method; static const uint32_t sign = 0x80000000u; static const uint32_t exponent = 0x7f800000; static const uint32_t flag = 0x00000000; static const uint32_t significand = 0x007fffff; typedef uint32_t bits; static void get_bits(float x, uint32_t& a) { std::memcpy(&a, &x, 4); } static void set_bits(float& x, uint32_t a) { std::memcpy(&x, &a, 4); } }; # 232 "/usr/include/boost/math/special_functions/detail/fp_traits.hpp" 3 4 template<> struct fp_traits_non_native { typedef ieee_copy_all_bits_tag method; static const uint64_t sign = ((uint64_t)0x80000000u) << 32; static const uint64_t exponent = ((uint64_t)0x7ff00000) << 32; static const uint64_t flag = 0; static const uint64_t significand = (((uint64_t)0x000fffff) << 32) + ((uint64_t)0xffffffffu); typedef uint64_t bits; static void get_bits(double x, uint64_t& a) { std::memcpy(&a, &x, 8); } static void set_bits(double& x, uint64_t a) { std::memcpy(&x, &a, 8); } }; # 292 "/usr/include/boost/math/special_functions/detail/fp_traits.hpp" 3 4 template<> struct fp_traits_non_native { typedef ieee_copy_all_bits_tag method; static const uint64_t sign = (uint64_t)0x80000000u << 32; static const uint64_t exponent = (uint64_t)0x7ff00000 << 32; static const uint64_t flag = 0; static const uint64_t significand = ((uint64_t)0x000fffff << 32) + (uint64_t)0xffffffffu; typedef uint64_t bits; static void get_bits(long double x, uint64_t& a) { std::memcpy(&a, &x, 8); } static void set_bits(long double& x, uint64_t a) { std::memcpy(&x, &a, 8); } }; # 318 "/usr/include/boost/math/special_functions/detail/fp_traits.hpp" 3 4 template<> struct fp_traits_non_native { typedef ieee_copy_leading_bits_tag method; static const uint32_t sign = 0x80000000u; static const uint32_t exponent = 0x7fff0000; static const uint32_t flag = 0x00008000; static const uint32_t significand = 0x00007fff; typedef uint32_t bits; static void get_bits(long double x, uint32_t& a) { std::memcpy(&a, reinterpret_cast(&x) + 6, 4); } static void set_bits(long double& x, uint32_t a) { std::memcpy(reinterpret_cast(&x) + 6, &a, 4); } }; # 490 "/usr/include/boost/math/special_functions/detail/fp_traits.hpp" 3 4 template struct size_to_precision { typedef unknown_precision type; }; template<> struct size_to_precision<4, true> { typedef single_precision type; }; template<> struct size_to_precision<8, true> { typedef double_precision type; }; template<> struct size_to_precision<10, true> { typedef extended_double_precision type; }; template<> struct size_to_precision<12, true> { typedef extended_double_precision type; }; template<> struct size_to_precision<16, true> { typedef extended_double_precision type; }; template struct select_native { typedef typename size_to_precision::value>::type precision; typedef fp_traits_non_native type; }; template<> struct select_native { typedef fp_traits_native type; }; template<> struct select_native { typedef fp_traits_native type; }; template<> struct select_native { typedef fp_traits_native type; }; # 562 "/usr/include/boost/math/special_functions/detail/fp_traits.hpp" 3 4 template struct fp_traits { typedef typename size_to_precision::value>::type precision; typedef typename select_native::type type; typedef fp_traits_non_native sign_change_type; }; } } } # 19 "/usr/include/boost/math/special_functions/sign.hpp" 2 3 4 namespace boost{ namespace math{ namespace detail { template inline int signbit_impl(T x, native_tag const&) { return (std::signbit)(x); } template inline int signbit_impl(T x, generic_tag const&) { return x < 0; } template inline int signbit_impl(T x, generic_tag const&) { return x < 0; } # 67 "/usr/include/boost/math/special_functions/sign.hpp" 3 4 template inline int signbit_impl(T x, ieee_copy_all_bits_tag const&) { typedef typename fp_traits::type traits; typename traits::bits a; traits::get_bits(x,a); return a & traits::sign ? 1 : 0; } template inline int signbit_impl(T x, ieee_copy_leading_bits_tag const&) { typedef typename fp_traits::type traits; typename traits::bits a; traits::get_bits(x,a); return a & traits::sign ? 1 : 0; } template inline T (changesign_impl)(T x, generic_tag const&) { return -x; } template inline T (changesign_impl)(T x, generic_tag const&) { return -x; } # 126 "/usr/include/boost/math/special_functions/sign.hpp" 3 4 template inline T changesign_impl(T x, ieee_copy_all_bits_tag const&) { typedef typename fp_traits::sign_change_type traits; typename traits::bits a; traits::get_bits(x,a); a ^= traits::sign; traits::set_bits(x,a); return x; } template inline T (changesign_impl)(T x, ieee_copy_leading_bits_tag const&) { typedef typename fp_traits::sign_change_type traits; typename traits::bits a; traits::get_bits(x,a); a ^= traits::sign; traits::set_bits(x,a); return x; } } template int (signbit)(T x) { typedef typename detail::fp_traits::type traits; typedef typename traits::method method; typedef typename tools::promote_args_permissive::type result_type; return detail::signbit_impl(static_cast(x), method()); } template inline int sign (const T& z) { return (z == 0) ? 0 : (boost::math::signbit)(z) ? -1 : 1; } template typename tools::promote_args_permissive::type (changesign)(const T& x) { typedef typename detail::fp_traits::sign_change_type traits; typedef typename traits::method method; typedef typename tools::promote_args_permissive::type result_type; return detail::changesign_impl(static_cast(x), method()); } template inline typename tools::promote_args_permissive::type copysign (const T& x, const U& y) { using std::abs; using std::acos; using std::cos; using std::fmod; using std::modf; using std::tan; using std::asin; using std::cosh; using std::frexp; using std::pow; using std::tanh; using std::atan; using std::exp; using std::ldexp; using std::sin; using std::atan2; using std::fabs; using std::log; using std::sinh; using std::ceil; using std::floor; using std::log10; using std::sqrt; using boost::math::round; using boost::math::iround; using boost::math::lround; using boost::math::trunc; using boost::math::itrunc; using boost::math::ltrunc; using boost::math::modf; typedef typename tools::promote_args_permissive::type result_type; return (boost::math::signbit)(static_cast(x)) != (boost::math::signbit)(static_cast(y)) ? (boost::math::changesign)(static_cast(x)) : static_cast(x); } } } # 35 "/usr/include/boost/lexical_cast/detail/inf_nan.hpp" 2 3 4 # 1 "/usr/include/boost/math/special_functions/fpclassify.hpp" 1 3 4 # 17 "/usr/include/boost/math/special_functions/fpclassify.hpp" 3 4 # 1 "/usr/include/boost/math/tools/real_cast.hpp" 1 3 4 # 13 "/usr/include/boost/math/tools/real_cast.hpp" 3 4 namespace boost{ namespace math { namespace tools { template inline To real_cast(T t) { return static_cast(t); } } } } # 18 "/usr/include/boost/math/special_functions/fpclassify.hpp" 2 3 4 # 88 "/usr/include/boost/math/special_functions/fpclassify.hpp" 3 4 namespace boost{ namespace math_detail{ template inline bool is_nan_helper(T t, const boost::true_type&) { return (::std:: fpclassify(t) == (int)0); } template inline bool is_nan_helper(T, const boost::false_type&) { return false; } } namespace math{ namespace detail{ template inline int fpclassify_imp (T t, const native_tag&) { return (std::fpclassify)(t); } template inline int fpclassify_imp (T t, const generic_tag&) { ; if(::boost::math_detail::is_nan_helper(t, ::boost::is_floating_point())) return 0; # 156 "/usr/include/boost/math/special_functions/fpclassify.hpp" 3 4 T at = (t < T(0)) ? -t : t; if(at <= (std::numeric_limits::max)()) { if(at >= (std::numeric_limits::min)()) return 4; return (at != 0) ? 3 : 2; } else if(at > (std::numeric_limits::max)()) return 1; return 0; } template inline int fpclassify_imp (T t, const generic_tag&) { # 186 "/usr/include/boost/math/special_functions/fpclassify.hpp" 3 4 ; return t == 0 ? 2 : 4; } template int fpclassify_imp (T x, ieee_copy_all_bits_tag) { typedef typename fp_traits::type traits; ; typename traits::bits a; traits::get_bits(x,a); ; a &= traits::exponent | traits::flag | traits::significand; ; ; if(a <= traits::significand) { if(a == 0) return 2; else return 3; } if(a < traits::exponent) return 4; a &= traits::significand; if(a == 0) return 1; return 0; } template int fpclassify_imp (T x, ieee_copy_leading_bits_tag) { typedef typename fp_traits::type traits; ; typename traits::bits a; traits::get_bits(x,a); a &= traits::exponent | traits::flag | traits::significand; if(a <= traits::significand) { if(x == 0) return 2; else return 3; } if(a < traits::exponent) return 4; a &= traits::significand; traits::set_bits(x,a); if(x == 0) return 1; return 0; } # 254 "/usr/include/boost/math/special_functions/fpclassify.hpp" 3 4 } template inline int fpclassify (T t) { typedef typename detail::fp_traits::type traits; typedef typename traits::method method; typedef typename tools::promote_args_permissive::type value_type; return detail::fpclassify_imp(static_cast(t), method()); } # 288 "/usr/include/boost/math/special_functions/fpclassify.hpp" 3 4 namespace detail { template inline bool isfinite_impl(T x, native_tag const&) { return (std::isfinite)(x); } template inline bool isfinite_impl(T x, generic_tag const&) { return x >= -(std::numeric_limits::max)() && x <= (std::numeric_limits::max)(); } template inline bool isfinite_impl(T x, generic_tag const&) { (void)x; return true; } template inline bool isfinite_impl(T x, ieee_tag const&) { typedef typename detail::fp_traits::type traits; typename traits::bits a; traits::get_bits(x,a); a &= traits::exponent; return a != traits::exponent; } # 333 "/usr/include/boost/math/special_functions/fpclassify.hpp" 3 4 } template inline bool (isfinite)(T x) { typedef typename detail::fp_traits::type traits; typedef typename traits::method method; typedef typename tools::promote_args_permissive::type value_type; return detail::isfinite_impl(static_cast(x), method()); } # 359 "/usr/include/boost/math/special_functions/fpclassify.hpp" 3 4 namespace detail { template inline bool isnormal_impl(T x, native_tag const&) { return (std::isnormal)(x); } template inline bool isnormal_impl(T x, generic_tag const&) { if(x < 0) x = -x; return x >= (std::numeric_limits::min)() && x <= (std::numeric_limits::max)(); } template inline bool isnormal_impl(T x, generic_tag const&) { return !(x == 0); } template inline bool isnormal_impl(T x, ieee_tag const&) { typedef typename detail::fp_traits::type traits; typename traits::bits a; traits::get_bits(x,a); a &= traits::exponent | traits::flag; return (a != 0) && (a < traits::exponent); } # 404 "/usr/include/boost/math/special_functions/fpclassify.hpp" 3 4 } template inline bool (isnormal)(T x) { typedef typename detail::fp_traits::type traits; typedef typename traits::method method; typedef typename tools::promote_args_permissive::type value_type; return detail::isnormal_impl(static_cast(x), method()); } # 430 "/usr/include/boost/math/special_functions/fpclassify.hpp" 3 4 namespace detail { template inline bool isinf_impl(T x, native_tag const&) { return (std::isinf)(x); } template inline bool isinf_impl(T x, generic_tag const&) { (void)x; return std::numeric_limits::has_infinity && ( x == std::numeric_limits::infinity() || x == -std::numeric_limits::infinity()); } template inline bool isinf_impl(T x, generic_tag const&) { (void)x; return false; } template inline bool isinf_impl(T x, ieee_copy_all_bits_tag const&) { typedef typename fp_traits::type traits; typename traits::bits a; traits::get_bits(x,a); a &= traits::exponent | traits::significand; return a == traits::exponent; } template inline bool isinf_impl(T x, ieee_copy_leading_bits_tag const&) { typedef typename fp_traits::type traits; typename traits::bits a; traits::get_bits(x,a); a &= traits::exponent | traits::significand; if(a != traits::exponent) return false; traits::set_bits(x,0); return x == 0; } # 493 "/usr/include/boost/math/special_functions/fpclassify.hpp" 3 4 } template inline bool (isinf)(T x) { typedef typename detail::fp_traits::type traits; typedef typename traits::method method; typedef typename tools::promote_args_permissive::type value_type; return detail::isinf_impl(static_cast(x), method()); } # 519 "/usr/include/boost/math/special_functions/fpclassify.hpp" 3 4 namespace detail { template inline bool isnan_impl(T x, native_tag const&) { return (std::isnan)(x); } template inline bool isnan_impl(T x, generic_tag const&) { return std::numeric_limits::has_infinity ? !(x <= std::numeric_limits::infinity()) : x != x; } template inline bool isnan_impl(T x, generic_tag const&) { (void)x; return false; } template inline bool isnan_impl(T x, ieee_copy_all_bits_tag const&) { typedef typename fp_traits::type traits; typename traits::bits a; traits::get_bits(x,a); a &= traits::exponent | traits::significand; return a > traits::exponent; } template inline bool isnan_impl(T x, ieee_copy_leading_bits_tag const&) { typedef typename fp_traits::type traits; typename traits::bits a; traits::get_bits(x,a); a &= traits::exponent | traits::significand; if(a < traits::exponent) return false; a &= traits::significand; traits::set_bits(x,a); return x != 0; } } template inline bool (isnan)(T x) { typedef typename detail::fp_traits::type traits; typedef typename traits::method method; return detail::isnan_impl(x, method()); } # 602 "/usr/include/boost/math/special_functions/fpclassify.hpp" 3 4 } } # 36 "/usr/include/boost/lexical_cast/detail/inf_nan.hpp" 2 3 4 namespace boost { namespace detail { template bool lc_iequal(const CharT* val, const CharT* lcase, const CharT* ucase, unsigned int len) { for( unsigned int i=0; i < len; ++i ) { if ( val[i] != lcase[i] && val[i] != ucase[i] ) return false; } return true; } template inline bool parse_inf_nan_impl(const CharT* begin, const CharT* end, T& value , const CharT* lc_NAN, const CharT* lc_nan , const CharT* lc_INFINITY, const CharT* lc_infinity , const CharT opening_brace, const CharT closing_brace) { using namespace std; if (begin == end) return false; const CharT minus = lcast_char_constants::minus; const CharT plus = lcast_char_constants::plus; const int inifinity_size = 8; bool const has_minus = (*begin == minus); if (has_minus || *begin == plus) { ++ begin; } if (end - begin < 3) return false; if (lc_iequal(begin, lc_nan, lc_NAN, 3)) { begin += 3; if (end != begin) { if (end - begin < 2) return false; -- end; if (*begin != opening_brace || *end != closing_brace) return false; } if( !has_minus ) value = std::numeric_limits::quiet_NaN(); else value = (boost::math::changesign) (std::numeric_limits::quiet_NaN()); return true; } else if ( ( end - begin == 3 && lc_iequal(begin, lc_infinity, lc_INFINITY, 3) ) || ( end - begin == inifinity_size && lc_iequal(begin, lc_infinity, lc_INFINITY, inifinity_size) ) ) { if( !has_minus ) value = std::numeric_limits::infinity(); else value = (boost::math::changesign) (std::numeric_limits::infinity()); return true; } return false; } template bool put_inf_nan_impl(CharT* begin, CharT*& end, const T& value , const CharT* lc_nan , const CharT* lc_infinity) { using namespace std; const CharT minus = lcast_char_constants::minus; if ((boost::math::isnan)(value)) { if ((boost::math::signbit)(value)) { *begin = minus; ++ begin; } memcpy(begin, lc_nan, 3 * sizeof(CharT)); end = begin + 3; return true; } else if ((boost::math::isinf)(value)) { if ((boost::math::signbit)(value)) { *begin = minus; ++ begin; } memcpy(begin, lc_infinity, 3 * sizeof(CharT)); end = begin + 3; return true; } return false; } template bool parse_inf_nan(const wchar_t* begin, const wchar_t* end, T& value) { return parse_inf_nan_impl(begin, end, value , L"NAN", L"nan" , L"INFINITY", L"infinity" , L'(', L')'); } template bool put_inf_nan(wchar_t* begin, wchar_t*& end, const T& value) { return put_inf_nan_impl(begin, end, value, L"nan", L"infinity"); } # 179 "/usr/include/boost/lexical_cast/detail/inf_nan.hpp" 3 4 template bool parse_inf_nan(const CharT* begin, const CharT* end, T& value) { return parse_inf_nan_impl(begin, end, value , "NAN", "nan" , "INFINITY", "infinity" , '(', ')'); } template bool put_inf_nan(CharT* begin, CharT*& end, const T& value) { return put_inf_nan_impl(begin, end, value, "nan", "infinity"); } } } # 65 "/usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp" 2 3 4 # 1 "/usr/include/boost/lexical_cast/detail/lcast_float_converters.hpp" 1 3 4 # 23 "/usr/include/boost/lexical_cast/detail/lcast_float_converters.hpp" 3 4 # 1 "/usr/include/c++/5.0.0/cmath" 1 3 4 # 39 "/usr/include/c++/5.0.0/cmath" 3 4 # 40 "/usr/include/c++/5.0.0/cmath" 3 # 28 "/usr/include/boost/lexical_cast/detail/lcast_float_converters.hpp" 2 3 4 # 49 "/usr/include/boost/lexical_cast/detail/lcast_float_converters.hpp" 3 4 namespace boost { namespace detail { template struct mantissa_holder_type { }; template <> struct mantissa_holder_type { typedef unsigned int type; typedef double wide_result_t; }; template <> struct mantissa_holder_type { typedef long double wide_result_t; typedef boost::ulong_long_type type; }; template inline bool lcast_ret_float(T& value, const CharT* begin, const CharT* const end) { value = static_cast(0); if (begin == end) return false; if (parse_inf_nan(begin, end, value)) return true; CharT const czero = lcast_char_constants::zero; CharT const minus = lcast_char_constants::minus; CharT const plus = lcast_char_constants::plus; CharT const capital_e = lcast_char_constants::capital_e; CharT const lowercase_e = lcast_char_constants::lowercase_e; bool const has_minus = Traits::eq(*begin, minus); if (has_minus || Traits::eq(*begin, plus)) { ++ begin; if (begin == end) return false; } std::locale loc; typedef std::numpunct numpunct; numpunct const& np = std::use_facet< numpunct >(loc); std::string const grouping( (loc == std::locale::classic()) ? std::string() : np.grouping() ); std::string::size_type const grouping_size = grouping.size(); CharT const thousands_sep = static_cast(grouping_size ? np.thousands_sep() : 0); CharT const decimal_point = np.decimal_point(); bool found_grouping = false; std::string::size_type last_grouping_pos = grouping_size - 1; bool found_decimal = false; bool found_number_before_exp = false; typedef int pow_of_10_t; pow_of_10_t pow_of_10 = 0; typedef typename mantissa_holder_type::type mantissa_type; mantissa_type mantissa=0; bool is_mantissa_full = false; char length_since_last_delim = 0; while (begin != end) { if (found_decimal) { const mantissa_type tmp_sub_value = static_cast(*begin - czero); if (Traits::eq(*begin, lowercase_e) || Traits::eq(*begin, capital_e)) break; if ( *begin < czero || *begin >= czero + 10 ) return false; if ( is_mantissa_full || ((std::numeric_limits::max)() - tmp_sub_value) / 10u < mantissa ) { is_mantissa_full = true; ++ begin; continue; } -- pow_of_10; mantissa = static_cast(mantissa * 10 + tmp_sub_value); found_number_before_exp = true; } else { if (*begin >= czero && *begin < czero + 10) { const mantissa_type tmp_sub_value = static_cast(*begin - czero); if( is_mantissa_full || ((std::numeric_limits::max)() - tmp_sub_value) / 10u < mantissa ) { is_mantissa_full = true; ++ pow_of_10; } else { mantissa = static_cast(mantissa * 10 + tmp_sub_value); } found_number_before_exp = true; ++ length_since_last_delim; } else if (Traits::eq(*begin, decimal_point) || Traits::eq(*begin, lowercase_e) || Traits::eq(*begin, capital_e)) { # 181 "/usr/include/boost/lexical_cast/detail/lcast_float_converters.hpp" 3 4 if( grouping_size && found_grouping && ( length_since_last_delim != grouping[0] || last_grouping_pos>1 || (last_grouping_pos==0 && grouping_size>1) ) ) return false; if (Traits::eq(*begin, decimal_point)) { ++ begin; found_decimal = true; if (!found_number_before_exp && begin==end) return false; continue; } else { if (!found_number_before_exp) return false; break; } } else if (grouping_size && Traits::eq(*begin, thousands_sep)){ if(found_grouping) { if (length_since_last_delim != grouping[last_grouping_pos] ) { if (!last_grouping_pos) return false; else { -- last_grouping_pos; if (length_since_last_delim != grouping[last_grouping_pos]) return false; } } else if (grouping_size>1u && last_grouping_pos+1 grouping[last_grouping_pos] ) return false; } length_since_last_delim = 0; ++ begin; if (begin == end) return false; continue; } else return false; } ++begin; } if (begin != end && (Traits::eq(*begin, lowercase_e) || Traits::eq(*begin, capital_e))) { ++ begin; if (begin == end) return false; bool const exp_has_minus = Traits::eq(*begin, minus); if (exp_has_minus || Traits::eq(*begin, plus)) { ++ begin; if (begin == end) return false; } pow_of_10_t exp_pow_of_10 = 0; while (begin != end) { pow_of_10_t const sub_value = *begin - czero; if ( *begin < czero || *begin >= czero + 10 || ((std::numeric_limits::max)() - sub_value) / 10 < exp_pow_of_10) return false; exp_pow_of_10 *= 10; exp_pow_of_10 += sub_value; ++ begin; }; if (exp_has_minus) { if ((std::numeric_limits::min)() + exp_pow_of_10 > pow_of_10) return false; pow_of_10 -= exp_pow_of_10; } else { if ((std::numeric_limits::max)() - exp_pow_of_10 < pow_of_10) return false; pow_of_10 += exp_pow_of_10; } } typedef typename mantissa_holder_type::wide_result_t wide_result_t; const wide_result_t result = std::pow(static_cast(10.0), pow_of_10) * mantissa; value = static_cast( has_minus ? (boost::math::changesign)(result) : result); return !((boost::math::isinf)(value) || (boost::math::isnan)(value)); } } } # 66 "/usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp" 2 3 4 # 79 "/usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp" 3 4 # 1 "/usr/include/boost/integer.hpp" 1 3 4 # 18 "/usr/include/boost/integer.hpp" 3 4 # 1 "/usr/include/boost/integer_fwd.hpp" 1 3 4 # 12 "/usr/include/boost/integer_fwd.hpp" 3 4 # 1 "/usr/include/c++/5.0.0/climits" 1 3 4 # 39 "/usr/include/c++/5.0.0/climits" 3 4 # 40 "/usr/include/c++/5.0.0/climits" 3 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/limits.h" 1 3 4 # 42 "/usr/include/c++/5.0.0/climits" 2 3 # 13 "/usr/include/boost/integer_fwd.hpp" 2 3 4 # 1 "/usr/include/boost/cstdint.hpp" 1 3 4 # 18 "/usr/include/boost/integer_fwd.hpp" 2 3 4 namespace boost { typedef boost::uintmax_t static_min_max_unsigned_type; typedef boost::intmax_t static_min_max_signed_type; typedef boost::uintmax_t static_log2_argument_type; typedef int static_log2_result_type; # 42 "/usr/include/boost/integer_fwd.hpp" 3 4 template < class T > class integer_traits; template < > class integer_traits< bool >; template < > class integer_traits< char >; template < > class integer_traits< signed char >; template < > class integer_traits< unsigned char >; template < > class integer_traits< wchar_t >; template < > class integer_traits< short >; template < > class integer_traits< unsigned short >; template < > class integer_traits< int >; template < > class integer_traits< unsigned int >; template < > class integer_traits< long >; template < > class integer_traits< unsigned long >; template < > class integer_traits< ::boost::long_long_type>; template < > class integer_traits< ::boost::ulong_long_type >; # 97 "/usr/include/boost/integer_fwd.hpp" 3 4 template < typename LeastInt > struct int_fast_t; template< int Bits > struct int_t; template< int Bits > struct uint_t; template< boost::long_long_type MaxValue > struct int_max_value_t; template< boost::long_long_type MinValue > struct int_min_value_t; template< boost::ulong_long_type MaxValue > struct uint_value_t; template < std::size_t Bit > struct high_bit_mask_t; template < std::size_t Bits > struct low_bits_mask_t; template < > struct low_bits_mask_t< ::std::numeric_limits::digits >; template struct static_log2; template <> struct static_log2<0u>; template struct static_signed_min; template struct static_signed_max; template struct static_unsigned_min; template struct static_unsigned_max; } # 19 "/usr/include/boost/integer.hpp" 2 3 4 # 1 "/usr/include/boost/cstdint.hpp" 1 3 4 # 23 "/usr/include/boost/integer.hpp" 2 3 4 # 34 "/usr/include/boost/integer.hpp" 3 4 # 35 "/usr/include/boost/integer.hpp" 3 namespace boost { template< typename LeastInt > struct int_fast_t { typedef LeastInt fast; typedef fast type; }; namespace detail{ template< int Category > struct int_least_helper {}; template< int Category > struct uint_least_helper {}; template<> struct int_least_helper<1> { typedef boost::long_long_type least; }; template<> struct int_least_helper<2> { typedef long least; }; template<> struct int_least_helper<3> { typedef int least; }; template<> struct int_least_helper<4> { typedef short least; }; template<> struct int_least_helper<5> { typedef signed char least; }; template<> struct uint_least_helper<1> { typedef boost::ulong_long_type least; }; template<> struct uint_least_helper<2> { typedef unsigned long least; }; template<> struct uint_least_helper<3> { typedef unsigned int least; }; template<> struct uint_least_helper<4> { typedef unsigned short least; }; template<> struct uint_least_helper<5> { typedef unsigned char least; }; template struct exact_signed_base_helper{}; template struct exact_unsigned_base_helper{}; template <> struct exact_signed_base_helper { typedef signed char exact; }; template <> struct exact_unsigned_base_helper { typedef unsigned char exact; }; template <> struct exact_signed_base_helper { typedef short exact; }; template <> struct exact_unsigned_base_helper { typedef unsigned short exact; }; template <> struct exact_signed_base_helper { typedef int exact; }; template <> struct exact_unsigned_base_helper { typedef unsigned int exact; }; template <> struct exact_signed_base_helper { typedef long exact; }; template <> struct exact_unsigned_base_helper { typedef unsigned long exact; }; # 108 "/usr/include/boost/integer.hpp" 3 } template< int Bits > struct int_t : public detail::exact_signed_base_helper { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((Bits <= (int)(sizeof(boost::intmax_t) * 8)) == 0 ? false : true) >)> boost_static_assert_typedef_117 __attribute__((unused)) ; typedef typename detail::int_least_helper < (Bits <= (int)(sizeof(boost::long_long_type) * 8)) + (Bits-1 <= ::std::numeric_limits::digits) + (Bits-1 <= ::std::numeric_limits::digits) + (Bits-1 <= ::std::numeric_limits::digits) + (Bits-1 <= ::std::numeric_limits::digits) >::least least; typedef typename int_fast_t::type fast; }; template< int Bits > struct uint_t : public detail::exact_unsigned_base_helper { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((Bits <= (int)(sizeof(boost::uintmax_t) * 8)) == 0 ? false : true) >)> boost_static_assert_typedef_138 __attribute__((unused)) ; # 149 "/usr/include/boost/integer.hpp" 3 typedef typename detail::uint_least_helper < (Bits <= (int)(sizeof(boost::long_long_type) * 8)) + (Bits <= ::std::numeric_limits::digits) + (Bits <= ::std::numeric_limits::digits) + (Bits <= ::std::numeric_limits::digits) + (Bits <= ::std::numeric_limits::digits) >::least least; typedef typename int_fast_t::type fast; }; template< boost::long_long_type MaxValue > struct int_max_value_t { typedef typename detail::int_least_helper < (MaxValue <= ::boost::integer_traits::const_max) + (MaxValue <= ::boost::integer_traits::const_max) + (MaxValue <= ::boost::integer_traits::const_max) + (MaxValue <= ::boost::integer_traits::const_max) + (MaxValue <= ::boost::integer_traits::const_max) >::least least; typedef typename int_fast_t::type fast; }; template< boost::long_long_type MinValue > struct int_min_value_t { typedef typename detail::int_least_helper < (MinValue >= ::boost::integer_traits::const_min) + (MinValue >= ::boost::integer_traits::const_min) + (MinValue >= ::boost::integer_traits::const_min) + (MinValue >= ::boost::integer_traits::const_min) + (MinValue >= ::boost::integer_traits::const_min) >::least least; typedef typename int_fast_t::type fast; }; template< boost::ulong_long_type MaxValue > struct uint_value_t { # 242 "/usr/include/boost/integer.hpp" 3 typedef typename detail::uint_least_helper < (MaxValue <= ::boost::integer_traits::const_max) + (MaxValue <= ::boost::integer_traits::const_max) + (MaxValue <= ::boost::integer_traits::const_max) + (MaxValue <= ::boost::integer_traits::const_max) + (MaxValue <= ::boost::integer_traits::const_max) >::least least; typedef typename int_fast_t::type fast; }; } # 80 "/usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp" 2 3 4 # 1 "/usr/include/boost/detail/basic_pointerbuf.hpp" 1 3 4 # 24 "/usr/include/boost/detail/basic_pointerbuf.hpp" 3 4 namespace boost { namespace detail { template class basic_pointerbuf : public BufferT { protected: typedef BufferT base_type; typedef basic_pointerbuf this_type; typedef typename base_type::int_type int_type; typedef typename base_type::char_type char_type; typedef typename base_type::pos_type pos_type; typedef ::std::streamsize streamsize; typedef typename base_type::off_type off_type; public: basic_pointerbuf() : base_type() { setbuf(0, 0); } const charT* getnext() { return this->gptr(); } using base_type::pptr; using base_type::pbase; protected: inline base_type* setbuf(char_type* s, streamsize n); inline typename this_type::pos_type seekpos(pos_type sp, ::std::ios_base::openmode which); inline typename this_type::pos_type seekoff(off_type off, ::std::ios_base::seekdir way, ::std::ios_base::openmode which); private: basic_pointerbuf& operator=(const basic_pointerbuf&); basic_pointerbuf(const basic_pointerbuf&); }; template BufferT* basic_pointerbuf::setbuf(char_type* s, streamsize n) { this->setg(s, s, s + n); return this; } template typename basic_pointerbuf::pos_type basic_pointerbuf::seekoff(off_type off, ::std::ios_base::seekdir way, ::std::ios_base::openmode which) { typedef typename boost::int_t::least cast_type; if(which & ::std::ios_base::out) return pos_type(off_type(-1)); std::ptrdiff_t size = this->egptr() - this->eback(); std::ptrdiff_t pos = this->gptr() - this->eback(); charT* g = this->eback(); switch(static_cast(way)) { case ::std::ios_base::beg: if((off < 0) || (off > size)) return pos_type(off_type(-1)); else this->setg(g, g + off, g + size); break; case ::std::ios_base::end: if((off < 0) || (off > size)) return pos_type(off_type(-1)); else this->setg(g, g + size - off, g + size); break; case ::std::ios_base::cur: { std::ptrdiff_t newpos = static_cast(pos + off); if((newpos < 0) || (newpos > size)) return pos_type(off_type(-1)); else this->setg(g, g + newpos, g + size); break; } default: ; } return static_cast(this->gptr() - this->eback()); } template typename basic_pointerbuf::pos_type basic_pointerbuf::seekpos(pos_type sp, ::std::ios_base::openmode which) { if(which & ::std::ios_base::out) return pos_type(off_type(-1)); off_type size = static_cast(this->egptr() - this->eback()); charT* g = this->eback(); if(off_type(sp) <= size) { this->setg(g, g + off_type(sp), g + size); } return pos_type(off_type(-1)); } }} # 81 "/usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp" 2 3 4 # 1 "/usr/include/c++/5.0.0/cwchar" 1 3 4 # 39 "/usr/include/c++/5.0.0/cwchar" 3 4 # 40 "/usr/include/c++/5.0.0/cwchar" 3 # 1 "/usr/include/wchar.h" 1 3 4 # 45 "/usr/include/c++/5.0.0/cwchar" 2 3 # 84 "/usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp" 2 3 4 namespace boost { namespace detail { template class basic_unlockedbuf : public basic_pointerbuf { public: typedef basic_pointerbuf base_type; typedef typename base_type::streamsize streamsize; using base_type::pptr; using base_type::pbase; using base_type::setbuf; }; } namespace detail { struct do_not_construct_out_stream_t{}; template struct out_stream_helper_trait { typedef std::basic_ostringstream out_stream_t; typedef basic_unlockedbuf, CharT> buffer_t; }; } namespace detail { template< class CharT , class Traits , bool RequiresStringbuffer , std::size_t CharacterBufferSize > class lexical_istream_limited_src: boost::noncopyable { typedef typename out_stream_helper_trait::buffer_t buffer_t; typedef typename out_stream_helper_trait::out_stream_t out_stream_t; typedef typename boost::mpl::if_c< RequiresStringbuffer, out_stream_t, do_not_construct_out_stream_t >::type deduced_out_stream_t; deduced_out_stream_t out_stream; CharT buffer[CharacterBufferSize]; const CharT* start; const CharT* finish; public: lexical_istream_limited_src() : start(buffer) , finish(buffer + CharacterBufferSize) {} const CharT* cbegin() const { return start; } const CharT* cend() const { return finish; } private: lexical_istream_limited_src(lexical_istream_limited_src const&); void operator=(lexical_istream_limited_src const&); bool shl_char(CharT ch) { Traits::assign(buffer[0], ch); finish = start + 1; return true; } template bool shl_char(T ch) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((( sizeof(T) <= sizeof(CharT))) == 0 ? false : true) >)> boost_static_assert_typedef_191 __attribute__((unused)) ; std::locale loc; CharT const w = std::use_facet< std::ctype >(loc).widen(ch); Traits::assign(buffer[0], w); finish = start + 1; return true; } bool shl_char_array(CharT const* str) { start = str; finish = start + Traits::length(str); return true; } template bool shl_char_array(T const* str) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((( sizeof(T) <= sizeof(CharT))) == 0 ? false : true) >)> boost_static_assert_typedef_214 __attribute__((unused)) ; return shl_input_streamable(str); } bool shl_char_array_limited(CharT const* str, std::size_t max_size) { start = str; finish = std::find(start, start + max_size, Traits::to_char_type(0)); return true; } template bool shl_input_streamable(InputStreamable& input) { out_stream.exceptions(std::ios::badbit); try { bool const result = !(out_stream << input).fail(); const buffer_t* const p = static_cast( static_cast*>(out_stream.rdbuf()) ); start = p->pbase(); finish = p->pptr(); return result; } catch (const ::std::ios_base::failure& ) { return false; } } template inline bool shl_unsigned(const T n) { CharT* tmp_finish = buffer + CharacterBufferSize; start = lcast_put_unsigned(n, tmp_finish).convert(); finish = tmp_finish; return true; } template inline bool shl_signed(const T n) { CharT* tmp_finish = buffer + CharacterBufferSize; typedef typename boost::make_unsigned::type utype; CharT* tmp_start = lcast_put_unsigned(lcast_to_unsigned(n), tmp_finish).convert(); if (n < 0) { --tmp_start; CharT const minus = lcast_char_constants::minus; Traits::assign(*tmp_start, minus); } start = tmp_start; finish = tmp_finish; return true; } template bool shl_real_type(const T& val, SomeCharT* ) { lcast_set_precision(out_stream, &val); return shl_input_streamable(val); } bool shl_real_type(float val, char* begin) { using namespace std; const double val_as_double = val; finish = start + sprintf(begin, "%.*g", static_cast(boost::detail::lcast_get_precision()), val_as_double); return finish > start; } bool shl_real_type(double val, char* begin) { using namespace std; finish = start + sprintf(begin, "%.*g", static_cast(boost::detail::lcast_get_precision()), val); return finish > start; } bool shl_real_type(long double val, char* begin) { using namespace std; finish = start + sprintf(begin, "%.*Lg", static_cast(boost::detail::lcast_get_precision()), val ); return finish > start; } bool shl_real_type(float val, wchar_t* begin) { using namespace std; const double val_as_double = val; finish = start + swprintf(begin, CharacterBufferSize, L"%.*g", static_cast(boost::detail::lcast_get_precision()), val_as_double ); return finish > start; } bool shl_real_type(double val, wchar_t* begin) { using namespace std; finish = start + swprintf(begin, CharacterBufferSize, L"%.*g", static_cast(boost::detail::lcast_get_precision()), val ); return finish > start; } bool shl_real_type(long double val, wchar_t* begin) { using namespace std; finish = start + swprintf(begin, CharacterBufferSize, L"%.*Lg", static_cast(boost::detail::lcast_get_precision()), val ); return finish > start; } template bool shl_real(T val) { CharT* tmp_finish = buffer + CharacterBufferSize; if (put_inf_nan(buffer, tmp_finish, val)) { finish = tmp_finish; return true; } return shl_real_type(val, static_cast(buffer)); } public: template bool operator<<(std::basic_string const& str) { start = str.data(); finish = start + str.length(); return true; } template bool operator<<(boost::container::basic_string const& str) { start = str.data(); finish = start + str.length(); return true; } bool operator<<(bool value) { CharT const czero = lcast_char_constants::zero; Traits::assign(buffer[0], Traits::to_char_type(czero + value)); finish = start + 1; return true; } template typename boost::disable_if, bool>::type operator<<(const iterator_range& rng) { return (*this) << iterator_range(rng.begin(), rng.end()); } bool operator<<(const iterator_range& rng) { start = rng.begin(); finish = rng.end(); return true; } bool operator<<(const iterator_range& rng) { return (*this) << iterator_range( reinterpret_cast(rng.begin()), reinterpret_cast(rng.end()) ); } bool operator<<(const iterator_range& rng) { return (*this) << iterator_range( reinterpret_cast(rng.begin()), reinterpret_cast(rng.end()) ); } bool operator<<(char ch) { return shl_char(ch); } bool operator<<(unsigned char ch) { return ((*this) << static_cast(ch)); } bool operator<<(signed char ch) { return ((*this) << static_cast(ch)); } bool operator<<(wchar_t const* str) { return shl_char_array(str); } bool operator<<(wchar_t * str) { return shl_char_array(str); } bool operator<<(wchar_t ch) { return shl_char(ch); } # 424 "/usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp" 3 4 bool operator<<(unsigned char const* ch) { return ((*this) << reinterpret_cast(ch)); } bool operator<<(unsigned char * ch) { return ((*this) << reinterpret_cast(ch)); } bool operator<<(signed char const* ch) { return ((*this) << reinterpret_cast(ch)); } bool operator<<(signed char * ch) { return ((*this) << reinterpret_cast(ch)); } bool operator<<(char const* str) { return shl_char_array(str); } bool operator<<(char* str) { return shl_char_array(str); } bool operator<<(short n) { return shl_signed(n); } bool operator<<(int n) { return shl_signed(n); } bool operator<<(long n) { return shl_signed(n); } bool operator<<(unsigned short n) { return shl_unsigned(n); } bool operator<<(unsigned int n) { return shl_unsigned(n); } bool operator<<(unsigned long n) { return shl_unsigned(n); } bool operator<<(boost::ulong_long_type n) { return shl_unsigned(n); } bool operator<<(boost::long_long_type n) { return shl_signed(n); } bool operator<<(const boost::uint128_type& n) { return shl_unsigned(n); } bool operator<<(const boost::int128_type& n) { return shl_signed(n); } bool operator<<(float val) { return shl_real(val); } bool operator<<(double val) { return shl_real(val); } bool operator<<(long double val) { return shl_real(val); } template typename boost::disable_if, bool>::type operator<<(boost::array const& input) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< (((sizeof(boost::array) == sizeof(boost::array))) == 0 ? false : true) >)> boost_static_assert_typedef_466 __attribute__((unused)) ; return ((*this) << reinterpret_cast const& >(input)); } template bool operator<<(boost::array const& input) { return shl_char_array_limited(input.begin(), N); } template bool operator<<(boost::array const& input) { return ((*this) << reinterpret_cast const& >(input)); } template bool operator<<(boost::array const& input) { return ((*this) << reinterpret_cast const& >(input)); } # 497 "/usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp" 3 4 template bool operator<<(const InStreamable& input) { return shl_input_streamable(input); } }; template class lexical_ostream_limited_src: boost::noncopyable { const CharT* start; const CharT* const finish; public: lexical_ostream_limited_src(const CharT* begin, const CharT* end) : start(begin) , finish(end) {} private: template bool shr_unsigned(Type& output) { if (start == finish) return false; CharT const minus = lcast_char_constants::minus; CharT const plus = lcast_char_constants::plus; bool const has_minus = Traits::eq(minus, *start); if (has_minus || Traits::eq(plus, *start)) { ++start; } bool const succeed = lcast_ret_unsigned(output, start, finish).convert(); if (has_minus) { output = static_cast(0u - output); } return succeed; } template bool shr_signed(Type& output) { if (start == finish) return false; CharT const minus = lcast_char_constants::minus; CharT const plus = lcast_char_constants::plus; typedef typename make_unsigned::type utype; utype out_tmp = 0; bool const has_minus = Traits::eq(minus, *start); if (has_minus || Traits::eq(plus, *start)) { ++start; } bool succeed = lcast_ret_unsigned(out_tmp, start, finish).convert(); if (has_minus) { utype const comp_val = (static_cast(1) << std::numeric_limits::digits); succeed = succeed && out_tmp<=comp_val; output = static_cast(0u - out_tmp); } else { utype const comp_val = static_cast((std::numeric_limits::max)()); succeed = succeed && out_tmp<=comp_val; output = static_cast(out_tmp); } return succeed; } template bool shr_using_base_class(InputStreamable& output) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< (((!boost::is_pointer::value)) == 0 ? false : true) >)> boost_static_assert_typedef_570 __attribute__((unused)) ; typedef typename out_stream_helper_trait::buffer_t buffer_t; buffer_t buf; buf.setbuf(const_cast(start), finish - start); std::basic_istream stream(&buf); stream.exceptions(std::ios::badbit); try { stream.unsetf(std::ios::skipws); lcast_set_precision(stream, static_cast(0)); return (stream >> output) && (stream.get() == Traits::eof()); } catch (const ::std::ios_base::failure& ) { return false; } } template inline bool shr_xchar(T& output) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((( sizeof(CharT) == sizeof(T) )) == 0 ? false : true) >)> boost_static_assert_typedef_617 __attribute__((unused)) ; bool const ok = (finish - start == 1); if (ok) { CharT out; Traits::assign(out, *start); output = static_cast(out); } return ok; } template bool shr_std_array(ArrayT& output) { using namespace std; const std::size_t size = static_cast(finish - start); if (size > N - 1) { return false; } memcpy(&output[0], start, size * sizeof(CharT)); output[size] = Traits::to_char_type(0); return true; } public: bool operator>>(unsigned short& output) { return shr_unsigned(output); } bool operator>>(unsigned int& output) { return shr_unsigned(output); } bool operator>>(unsigned long int& output) { return shr_unsigned(output); } bool operator>>(short& output) { return shr_signed(output); } bool operator>>(int& output) { return shr_signed(output); } bool operator>>(long int& output) { return shr_signed(output); } bool operator>>(boost::ulong_long_type& output) { return shr_unsigned(output); } bool operator>>(boost::long_long_type& output) { return shr_signed(output); } bool operator>>(boost::uint128_type& output) { return shr_unsigned(output); } bool operator>>(boost::int128_type& output) { return shr_signed(output); } bool operator>>(char& output) { return shr_xchar(output); } bool operator>>(unsigned char& output) { return shr_xchar(output); } bool operator>>(signed char& output) { return shr_xchar(output); } bool operator>>(wchar_t& output) { return shr_xchar(output); } template bool operator>>(std::basic_string& str) { str.assign(start, finish); return true; } template bool operator>>(boost::container::basic_string& str) { str.assign(start, finish); return true; } template bool operator>>(boost::array& output) { return shr_std_array(output); } template bool operator>>(boost::array& output) { return ((*this) >> reinterpret_cast& >(output)); } template bool operator>>(boost::array& output) { return ((*this) >> reinterpret_cast& >(output)); } # 709 "/usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp" 3 4 bool operator>>(bool& output) { output = false; if (start == finish) return false; CharT const zero = lcast_char_constants::zero; CharT const plus = lcast_char_constants::plus; CharT const minus = lcast_char_constants::minus; const CharT* const dec_finish = finish - 1; output = Traits::eq(*dec_finish, zero + 1); if (!output && !Traits::eq(*dec_finish, zero)) { return false; } if (start == dec_finish) return true; if (Traits::eq(plus, *start) || (Traits::eq(minus, *start) && !output)) { ++ start; } while (start != dec_finish) { if (!Traits::eq(zero, *start)) { return false; } ++ start; } return true; } bool operator>>(float& output) { return lcast_ret_float(output,start,finish); } private: template bool float_types_converter_internal(T& output, int ) { if (parse_inf_nan(start, finish, output)) return true; bool const return_value = shr_using_base_class(output); CharT const minus = lcast_char_constants::minus; CharT const plus = lcast_char_constants::plus; CharT const capital_e = lcast_char_constants::capital_e; CharT const lowercase_e = lcast_char_constants::lowercase_e; if ( return_value && ( Traits::eq(*(finish-1), lowercase_e) || Traits::eq(*(finish-1), capital_e) || Traits::eq(*(finish-1), minus) || Traits::eq(*(finish-1), plus) ) ) return false; return return_value; } bool float_types_converter_internal(double& output, char ) { return lcast_ret_float(output, start, finish); } public: bool operator>>(double& output) { boost::mpl::if_c< boost::type_traits::ice_eq< sizeof(double), sizeof(long double) >::value, int, char >::type tag = 0; return float_types_converter_internal(output, tag); } bool operator>>(long double& output) { int tag = 0; return float_types_converter_internal(output, tag); } template bool operator>>(InputStreamable& output) { return shr_using_base_class(output); } }; } } # 54 "/usr/include/boost/lexical_cast/detail/converter_lexical.hpp" 2 3 4 namespace boost { namespace detail { template < class Char > struct normalize_single_byte_char { typedef Char type; }; template <> struct normalize_single_byte_char< signed char > { typedef char type; }; template <> struct normalize_single_byte_char< unsigned char > { typedef char type; }; } namespace detail { template < class T > struct deduce_character_type_later {}; } namespace detail { template < typename Type > struct stream_char_common: public boost::mpl::if_c< boost::detail::is_character< Type >::value, Type, boost::detail::deduce_character_type_later< Type > > {}; template < typename Char > struct stream_char_common< Char* >: public boost::mpl::if_c< boost::detail::is_character< Char >::value, Char, boost::detail::deduce_character_type_later< Char* > > {}; template < typename Char > struct stream_char_common< const Char* >: public boost::mpl::if_c< boost::detail::is_character< Char >::value, Char, boost::detail::deduce_character_type_later< const Char* > > {}; template < typename Char > struct stream_char_common< boost::iterator_range< Char* > >: public boost::mpl::if_c< boost::detail::is_character< Char >::value, Char, boost::detail::deduce_character_type_later< boost::iterator_range< Char* > > > {}; template < typename Char > struct stream_char_common< boost::iterator_range< const Char* > >: public boost::mpl::if_c< boost::detail::is_character< Char >::value, Char, boost::detail::deduce_character_type_later< boost::iterator_range< const Char* > > > {}; template < class Char, class Traits, class Alloc > struct stream_char_common< std::basic_string< Char, Traits, Alloc > > { typedef Char type; }; template < class Char, class Traits, class Alloc > struct stream_char_common< boost::container::basic_string< Char, Traits, Alloc > > { typedef Char type; }; template < typename Char, std::size_t N > struct stream_char_common< boost::array< Char, N > >: public boost::mpl::if_c< boost::detail::is_character< Char >::value, Char, boost::detail::deduce_character_type_later< boost::array< Char, N > > > {}; template < typename Char, std::size_t N > struct stream_char_common< boost::array< const Char, N > >: public boost::mpl::if_c< boost::detail::is_character< Char >::value, Char, boost::detail::deduce_character_type_later< boost::array< const Char, N > > > {}; # 169 "/usr/include/boost/lexical_cast/detail/converter_lexical.hpp" 3 4 template <> struct stream_char_common< boost::int128_type >: public boost::mpl::identity< char > {}; template <> struct stream_char_common< boost::uint128_type >: public boost::mpl::identity< char > {}; # 180 "/usr/include/boost/lexical_cast/detail/converter_lexical.hpp" 3 4 } namespace detail { template < class Char > struct deduce_source_char_impl { typedef typename boost::detail::normalize_single_byte_char< Char >::type type; }; template < class T > struct deduce_source_char_impl< deduce_character_type_later< T > > { typedef boost::has_left_shift< std::basic_ostream< char >, T > result_t; typedef typename boost::mpl::if_c< result_t::value, char, wchar_t >::type type; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< (((result_t::value || boost::has_left_shift< std::basic_ostream< type >, T >::value)) == 0 ? false : true) >)> boost_static_assert_typedef_210 __attribute__((unused)) ; }; } namespace detail { template < class Char > struct deduce_target_char_impl { typedef typename normalize_single_byte_char< Char >::type type; }; template < class T > struct deduce_target_char_impl< deduce_character_type_later > { typedef boost::has_right_shift, T > result_t; typedef typename boost::mpl::if_c< result_t::value, char, wchar_t >::type type; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< (((result_t::value || boost::has_right_shift, T >::value)) == 0 ? false : true) >)> boost_static_assert_typedef_243 __attribute__((unused)) ; }; } namespace detail { # 265 "/usr/include/boost/lexical_cast/detail/converter_lexical.hpp" 3 4 template < class T > struct deduce_target_char { typedef typename stream_char_common< T >::type stage1_type; typedef typename deduce_target_char_impl< stage1_type >::type stage2_type; typedef stage2_type type; }; template < class T > struct deduce_source_char { typedef typename stream_char_common< T >::type stage1_type; typedef typename deduce_source_char_impl< stage1_type >::type stage2_type; typedef stage2_type type; }; } namespace detail { template < class Char, class T > struct extract_char_traits : boost::false_type { typedef std::char_traits< Char > trait_t; }; template < class Char, class Traits, class Alloc > struct extract_char_traits< Char, std::basic_string< Char, Traits, Alloc > > : boost::true_type { typedef Traits trait_t; }; template < class Char, class Traits, class Alloc> struct extract_char_traits< Char, boost::container::basic_string< Char, Traits, Alloc > > : boost::true_type { typedef Traits trait_t; }; } namespace detail { template struct array_to_pointer_decay { typedef T type; }; template struct array_to_pointer_decay { typedef const T * type; }; } namespace detail { template struct is_this_float_conversion_optimized { typedef boost::type_traits::ice_and< boost::is_float::value, boost::type_traits::ice_or< boost::type_traits::ice_eq::value, boost::is_same::value >::value > result_type; static const bool value = (result_type::value); }; } namespace detail { template< class Source, class Enable = void > struct lcast_src_length { static const std::size_t value = 1; }; # 373 "/usr/include/boost/lexical_cast/detail/converter_lexical.hpp" 3 4 template struct lcast_src_length< Source, typename boost::enable_if >::type > { static const std::size_t value = std::numeric_limits::is_signed + std::numeric_limits::is_specialized + std::numeric_limits::digits10 * 2 ; }; # 401 "/usr/include/boost/lexical_cast/detail/converter_lexical.hpp" 3 4 template struct lcast_src_length< Source, typename boost::enable_if >::type > { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((std::numeric_limits::max_exponent10 <= 999999L && std::numeric_limits::min_exponent10 >= -999999L) == 0 ? false : true) >)> boost_static_assert_typedef_409 __attribute__((unused)) ; static const std::size_t value = 5 + lcast_precision::value + 6 ; }; } namespace detail { template struct lexical_cast_stream_traits { typedef typename boost::detail::array_to_pointer_decay::type src; typedef typename boost::remove_cv::type no_cv_src; typedef boost::detail::deduce_source_char deduce_src_char_metafunc; typedef typename deduce_src_char_metafunc::type src_char_t; typedef typename boost::detail::deduce_target_char::type target_char_t; typedef typename boost::detail::widest_char< target_char_t, src_char_t >::type char_type; # 444 "/usr/include/boost/lexical_cast/detail/converter_lexical.hpp" 3 4 typedef typename boost::mpl::if_c< boost::detail::extract_char_traits::value, typename boost::detail::extract_char_traits, typename boost::detail::extract_char_traits >::type::trait_t traits; typedef boost::type_traits::ice_and< boost::is_same::value, boost::type_traits::ice_ne::value, boost::type_traits::ice_not< boost::detail::is_character::value >::value > is_string_widening_required_t; typedef boost::type_traits::ice_not< boost::type_traits::ice_or< boost::is_integral::value, boost::detail::is_this_float_conversion_optimized::value, boost::detail::is_character< typename deduce_src_char_metafunc::stage1_type >::value >::value > is_source_input_not_optimized_t; static const bool requires_stringbuf = (boost::type_traits::ice_or< is_string_widening_required_t::value, is_source_input_not_optimized_t::value >::value) ; typedef boost::detail::lcast_src_length len_t; }; } namespace detail { template struct lexical_converter_impl { typedef lexical_cast_stream_traits stream_trait; typedef detail::lexical_istream_limited_src< typename stream_trait::char_type, typename stream_trait::traits, stream_trait::requires_stringbuf, stream_trait::len_t::value + 1 > i_interpreter_type; typedef detail::lexical_ostream_limited_src< typename stream_trait::char_type, typename stream_trait::traits > o_interpreter_type; static inline bool try_convert(const Source& arg, Target& result) { i_interpreter_type i_interpreter; if (!(i_interpreter.operator <<(arg))) return false; o_interpreter_type out(i_interpreter.cbegin(), i_interpreter.cend()); if(!(out.operator >>(result))) return false; return true; } }; } } # 35 "/usr/include/boost/lexical_cast/try_lexical_convert.hpp" 2 3 4 namespace boost { namespace detail { template struct is_stdstring : boost::false_type {}; template struct is_stdstring< std::basic_string > : boost::true_type {}; template struct is_stdstring< boost::container::basic_string > : boost::true_type {}; template struct is_arithmetic_and_not_xchars { static const bool value = ( boost::type_traits::ice_and< boost::type_traits::ice_not< boost::detail::is_character::value >::value, boost::type_traits::ice_not< boost::detail::is_character::value >::value, boost::is_arithmetic::value, boost::is_arithmetic::value >::value ) # 71 "/usr/include/boost/lexical_cast/try_lexical_convert.hpp" 3 4 ; }; template struct is_xchar_to_xchar { static const bool value = ( boost::type_traits::ice_and< boost::type_traits::ice_eq::value, boost::type_traits::ice_eq::value, boost::detail::is_character::value, boost::detail::is_character::value >::value ) ; }; template struct is_char_array_to_stdstring : boost::false_type {}; template struct is_char_array_to_stdstring< std::basic_string, CharT* > : boost::true_type {}; template struct is_char_array_to_stdstring< std::basic_string, const CharT* > : boost::true_type {}; template struct is_char_array_to_stdstring< boost::container::basic_string, CharT* > : boost::true_type {}; template struct is_char_array_to_stdstring< boost::container::basic_string, const CharT* > : boost::true_type {}; template struct copy_converter_impl { # 128 "/usr/include/boost/lexical_cast/try_lexical_convert.hpp" 3 4 static inline bool try_convert(const Source& arg, Target& result) { result = arg; return true; } }; } namespace conversion { namespace detail { template inline bool try_lexical_convert(const Source& arg, Target& result) { typedef typename boost::detail::array_to_pointer_decay::type src; typedef typename boost::type_traits::ice_or< boost::detail::is_xchar_to_xchar::value, boost::detail::is_char_array_to_stdstring::value, boost::type_traits::ice_and< boost::is_same::value, boost::detail::is_stdstring::value >::value, boost::type_traits::ice_and< boost::is_same::value, boost::detail::is_character::value >::value > shall_we_copy_t; typedef boost::detail::is_arithmetic_and_not_xchars shall_we_copy_with_dynamic_check_t; typedef typename boost::mpl::if_c< shall_we_copy_t::value, boost::mpl::identity >, boost::mpl::if_< shall_we_copy_with_dynamic_check_t, boost::detail::dynamic_num_converter_impl, boost::detail::lexical_converter_impl > >::type caster_type_lazy; typedef typename caster_type_lazy::type caster_type; return caster_type::try_convert(arg, result); } template inline bool try_lexical_convert(const CharacterT* chars, std::size_t count, Target& result) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((boost::detail::is_character::value) == 0 ? false : true) >)> boost_static_assert_typedef_182 __attribute__((unused)) ; return ::boost::conversion::detail::try_lexical_convert( ::boost::iterator_range(chars, chars + count), result ); } }} namespace conversion { using ::boost::conversion::detail::try_lexical_convert; } } # 33 "/usr/include/boost/lexical_cast.hpp" 2 3 4 namespace boost { template inline Target lexical_cast(const Source &arg) { Target result; if (!boost::conversion::detail::try_lexical_convert(arg, result)) { boost::conversion::detail::throw_bad_cast(); } return result; } template inline Target lexical_cast(const char* chars, std::size_t count) { return ::boost::lexical_cast( ::boost::iterator_range(chars, chars + count) ); } template inline Target lexical_cast(const unsigned char* chars, std::size_t count) { return ::boost::lexical_cast( ::boost::iterator_range(chars, chars + count) ); } template inline Target lexical_cast(const signed char* chars, std::size_t count) { return ::boost::lexical_cast( ::boost::iterator_range(chars, chars + count) ); } template inline Target lexical_cast(const wchar_t* chars, std::size_t count) { return ::boost::lexical_cast( ::boost::iterator_range(chars, chars + count) ); } # 100 "/usr/include/boost/lexical_cast.hpp" 3 4 } # 4 "namespaces.hh" 2 # 1 "/usr/include/boost/tuple/tuple.hpp" 1 3 4 # 27 "/usr/include/boost/tuple/tuple.hpp" 3 4 # 1 "/usr/include/boost/ref.hpp" 1 3 4 # 15 "/usr/include/boost/ref.hpp" 3 4 # 1 "/usr/include/boost/core/ref.hpp" 1 3 4 # 39 "/usr/include/boost/core/ref.hpp" 3 4 namespace boost { # 59 "/usr/include/boost/core/ref.hpp" 3 4 template class reference_wrapper { public: typedef T type; inline __attribute__ ((__always_inline__)) explicit reference_wrapper(T& t): t_(boost::addressof(t)) {} # 93 "/usr/include/boost/core/ref.hpp" 3 4 inline __attribute__ ((__always_inline__)) operator T& () const { return *t_; } inline __attribute__ ((__always_inline__)) T& get() const { return *t_; } inline __attribute__ ((__always_inline__)) T* get_pointer() const { return t_; } private: T* t_; }; # 131 "/usr/include/boost/core/ref.hpp" 3 4 template inline __attribute__ ((__always_inline__)) reference_wrapper const ref( T & t ) { return reference_wrapper( t ); } template inline __attribute__ ((__always_inline__)) reference_wrapper const cref( T const & t ) { return reference_wrapper(t); } # 194 "/usr/include/boost/core/ref.hpp" 3 4 template struct is_reference_wrapper { static const bool value = false; }; template struct is_reference_wrapper< reference_wrapper > { static const bool value = true; }; template struct is_reference_wrapper< reference_wrapper const > { static const bool value = true; }; template struct is_reference_wrapper< reference_wrapper volatile > { static const bool value = true; }; template struct is_reference_wrapper< reference_wrapper const volatile > { static const bool value = true; }; # 239 "/usr/include/boost/core/ref.hpp" 3 4 template struct unwrap_reference { typedef T type; }; template struct unwrap_reference< reference_wrapper > { typedef T type; }; template struct unwrap_reference< reference_wrapper const > { typedef T type; }; template struct unwrap_reference< reference_wrapper volatile > { typedef T type; }; template struct unwrap_reference< reference_wrapper const volatile > { typedef T type; }; # 281 "/usr/include/boost/core/ref.hpp" 3 4 template inline __attribute__ ((__always_inline__)) typename unwrap_reference::type& unwrap_ref( T & t ) { return t; } template inline __attribute__ ((__always_inline__)) T* get_pointer( reference_wrapper const & r ) { return r.get_pointer(); } } # 16 "/usr/include/boost/ref.hpp" 2 3 4 # 28 "/usr/include/boost/tuple/tuple.hpp" 2 3 4 # 1 "/usr/include/boost/tuple/detail/tuple_basic.hpp" 1 3 4 # 38 "/usr/include/boost/tuple/detail/tuple_basic.hpp" 3 4 # 1 "/usr/include/boost/type_traits/cv_traits.hpp" 1 3 4 # 17 "/usr/include/boost/type_traits/cv_traits.hpp" 3 4 # 1 "/usr/include/boost/type_traits/add_cv.hpp" 1 3 4 # 17 "/usr/include/boost/type_traits/add_cv.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 2 3 4 # 18 "/usr/include/boost/type_traits/add_cv.hpp" 2 3 4 namespace boost { # 34 "/usr/include/boost/type_traits/add_cv.hpp" 3 4 template< typename T > struct add_cv { public: typedef T const volatile type; }; template< typename T > struct add_cv { public: typedef T& type; }; } # 1 "/usr/include/boost/type_traits/detail/type_trait_undef.hpp" 1 3 4 # 45 "/usr/include/boost/type_traits/add_cv.hpp" 2 3 4 # 18 "/usr/include/boost/type_traits/cv_traits.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/remove_volatile.hpp" 1 3 4 # 22 "/usr/include/boost/type_traits/remove_volatile.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 2 3 4 # 23 "/usr/include/boost/type_traits/remove_volatile.hpp" 2 3 4 namespace boost { namespace detail { template struct remove_volatile_helper { typedef T type; }; template struct remove_volatile_helper { typedef T const type; }; template struct remove_volatile_impl { typedef typename remove_volatile_helper< typename cv_traits_imp::unqualified_type , ::boost::is_const::value >::type type; }; # 61 "/usr/include/boost/type_traits/remove_volatile.hpp" 3 4 } template< typename T > struct remove_volatile { public: typedef typename boost::detail::remove_volatile_impl::type type; }; template< typename T > struct remove_volatile { public: typedef T& type; }; template< typename T, std::size_t N > struct remove_volatile { public: typedef T type[N]; }; template< typename T, std::size_t N > struct remove_volatile { public: typedef T const type[N]; }; } # 1 "/usr/include/boost/type_traits/detail/type_trait_undef.hpp" 1 3 4 # 76 "/usr/include/boost/type_traits/remove_volatile.hpp" 2 3 4 # 22 "/usr/include/boost/type_traits/cv_traits.hpp" 2 3 4 # 39 "/usr/include/boost/tuple/detail/tuple_basic.hpp" 2 3 4 # 1 "/usr/include/boost/utility/swap.hpp" 1 3 4 # 41 "/usr/include/boost/tuple/detail/tuple_basic.hpp" 2 3 4 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-local-typedefs" namespace boost { namespace tuples { struct null_type {}; namespace detail { inline const null_type cnull() { return null_type(); } template struct IF { typedef Then RET; }; template struct IF { typedef Else RET; }; } template struct cons; template < class T0 = null_type, class T1 = null_type, class T2 = null_type, class T3 = null_type, class T4 = null_type, class T5 = null_type, class T6 = null_type, class T7 = null_type, class T8 = null_type, class T9 = null_type> class tuple; template struct length; namespace detail { template class generate_error; template struct drop_front { template struct apply { typedef typename drop_front::template apply next; typedef typename next::type::tail_type type; static const type& call(const Tuple& tup) { return next::call(tup).tail; } }; }; template<> struct drop_front<0> { template struct apply { typedef Tuple type; static const type& call(const Tuple& tup) { return tup; } }; }; } # 129 "/usr/include/boost/tuple/detail/tuple_basic.hpp" 3 4 template struct element { typedef typename detail::drop_front::template apply::type::head_type type; }; template struct element { private: typedef typename detail::drop_front::template apply::type::head_type unqualified_type; public: typedef typename boost::add_const::type type; }; # 189 "/usr/include/boost/tuple/detail/tuple_basic.hpp" 3 4 template struct access_traits { typedef const T& const_type; typedef T& non_const_type; typedef const typename boost::remove_cv::type& parameter_type; }; template struct access_traits { typedef T& const_type; typedef T& non_const_type; typedef T& parameter_type; }; template inline typename access_traits< typename element >::type >::non_const_type get(cons& c) { typedef typename detail::drop_front::template apply > impl; typedef typename impl::type cons_element; return const_cast(impl::call(c)).head; } template inline typename access_traits< typename element >::type >::const_type get(const cons& c) { typedef typename detail::drop_front::template apply > impl; return impl::call(c).head; } namespace detail { template class non_storeable_type { non_storeable_type(); }; template struct wrap_non_storeable_type { typedef typename IF< ::boost::is_function::value, non_storeable_type, T >::RET type; }; template <> struct wrap_non_storeable_type { typedef non_storeable_type type; }; } template struct cons { typedef HT head_type; typedef TT tail_type; typedef typename detail::wrap_non_storeable_type::type stored_head_type; stored_head_type head; tail_type tail; typename access_traits::non_const_type get_head() { return head; } typename access_traits::non_const_type get_tail() { return tail; } typename access_traits::const_type get_head() const { return head; } typename access_traits::const_type get_tail() const { return tail; } cons() : head(), tail() {} cons(typename access_traits::parameter_type h, const tail_type& t) : head (h), tail(t) {} template cons( T1& t1, T2& t2, T3& t3, T4& t4, T5& t5, T6& t6, T7& t7, T8& t8, T9& t9, T10& t10 ) : head (t1), tail (t2, t3, t4, t5, t6, t7, t8, t9, t10, detail::cnull()) {} template cons( const null_type& , T2& t2, T3& t3, T4& t4, T5& t5, T6& t6, T7& t7, T8& t8, T9& t9, T10& t10 ) : head (), tail (t2, t3, t4, t5, t6, t7, t8, t9, t10, detail::cnull()) {} template cons( const cons& u ) : head(u.head), tail(u.tail) {} template cons& operator=( const cons& u ) { head=u.head; tail=u.tail; return *this; } cons& operator=(const cons& u) { head = u.head; tail = u.tail; return *this; } template cons& operator=( const std::pair& u ) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((length::value == 2) == 0 ? false : true) >)> boost_static_assert_typedef_329 __attribute__((unused)); head = u.first; tail.head = u.second; return *this; } template typename access_traits< typename element >::type >::non_const_type get() { return boost::tuples::get(*this); } template typename access_traits< typename element >::type >::const_type get() const { return boost::tuples::get(*this); } }; template struct cons { typedef HT head_type; typedef null_type tail_type; typedef cons self_type; typedef typename detail::wrap_non_storeable_type::type stored_head_type; stored_head_type head; typename access_traits::non_const_type get_head() { return head; } null_type get_tail() { return null_type(); } typename access_traits::const_type get_head() const { return head; } const null_type get_tail() const { return null_type(); } cons() : head() {} cons(typename access_traits::parameter_type h, const null_type& = null_type()) : head (h) {} template cons(T1& t1, const null_type&, const null_type&, const null_type&, const null_type&, const null_type&, const null_type&, const null_type&, const null_type&, const null_type&) : head (t1) {} cons(const null_type&, const null_type&, const null_type&, const null_type&, const null_type&, const null_type&, const null_type&, const null_type&, const null_type&, const null_type&) : head () {} template cons( const cons& u ) : head(u.head) {} template cons& operator=(const cons& u ) { head = u.head; return *this; } cons& operator=(const cons& u) { head = u.head; return *this; } template typename access_traits< typename element::type >::non_const_type get() { return boost::tuples::get(*this); } template typename access_traits< typename element::type >::const_type get() const { return boost::tuples::get(*this); } }; template struct length { static const int value = 1 + length::value; }; template<> struct length > { static const int value = 0; }; template<> struct length const> { static const int value = 0; }; template<> struct length { static const int value = 0; }; template<> struct length { static const int value = 0; }; namespace detail { template struct map_tuple_to_cons { typedef cons::type > type; }; template <> struct map_tuple_to_cons { typedef null_type type; }; } template class tuple : public detail::map_tuple_to_cons::type { public: typedef typename detail::map_tuple_to_cons::type inherited; typedef typename inherited::head_type head_type; typedef typename inherited::tail_type tail_type; tuple() {} tuple(typename access_traits::parameter_type t0) : inherited(t0, detail::cnull(), detail::cnull(), detail::cnull(), detail::cnull(), detail::cnull(), detail::cnull(), detail::cnull(), detail::cnull(), detail::cnull()) {} tuple(typename access_traits::parameter_type t0, typename access_traits::parameter_type t1) : inherited(t0, t1, detail::cnull(), detail::cnull(), detail::cnull(), detail::cnull(), detail::cnull(), detail::cnull(), detail::cnull(), detail::cnull()) {} tuple(typename access_traits::parameter_type t0, typename access_traits::parameter_type t1, typename access_traits::parameter_type t2) : inherited(t0, t1, t2, detail::cnull(), detail::cnull(), detail::cnull(), detail::cnull(), detail::cnull(), detail::cnull(), detail::cnull()) {} tuple(typename access_traits::parameter_type t0, typename access_traits::parameter_type t1, typename access_traits::parameter_type t2, typename access_traits::parameter_type t3) : inherited(t0, t1, t2, t3, detail::cnull(), detail::cnull(), detail::cnull(), detail::cnull(), detail::cnull(), detail::cnull()) {} tuple(typename access_traits::parameter_type t0, typename access_traits::parameter_type t1, typename access_traits::parameter_type t2, typename access_traits::parameter_type t3, typename access_traits::parameter_type t4) : inherited(t0, t1, t2, t3, t4, detail::cnull(), detail::cnull(), detail::cnull(), detail::cnull(), detail::cnull()) {} tuple(typename access_traits::parameter_type t0, typename access_traits::parameter_type t1, typename access_traits::parameter_type t2, typename access_traits::parameter_type t3, typename access_traits::parameter_type t4, typename access_traits::parameter_type t5) : inherited(t0, t1, t2, t3, t4, t5, detail::cnull(), detail::cnull(), detail::cnull(), detail::cnull()) {} tuple(typename access_traits::parameter_type t0, typename access_traits::parameter_type t1, typename access_traits::parameter_type t2, typename access_traits::parameter_type t3, typename access_traits::parameter_type t4, typename access_traits::parameter_type t5, typename access_traits::parameter_type t6) : inherited(t0, t1, t2, t3, t4, t5, t6, detail::cnull(), detail::cnull(), detail::cnull()) {} tuple(typename access_traits::parameter_type t0, typename access_traits::parameter_type t1, typename access_traits::parameter_type t2, typename access_traits::parameter_type t3, typename access_traits::parameter_type t4, typename access_traits::parameter_type t5, typename access_traits::parameter_type t6, typename access_traits::parameter_type t7) : inherited(t0, t1, t2, t3, t4, t5, t6, t7, detail::cnull(), detail::cnull()) {} tuple(typename access_traits::parameter_type t0, typename access_traits::parameter_type t1, typename access_traits::parameter_type t2, typename access_traits::parameter_type t3, typename access_traits::parameter_type t4, typename access_traits::parameter_type t5, typename access_traits::parameter_type t6, typename access_traits::parameter_type t7, typename access_traits::parameter_type t8) : inherited(t0, t1, t2, t3, t4, t5, t6, t7, t8, detail::cnull()) {} tuple(typename access_traits::parameter_type t0, typename access_traits::parameter_type t1, typename access_traits::parameter_type t2, typename access_traits::parameter_type t3, typename access_traits::parameter_type t4, typename access_traits::parameter_type t5, typename access_traits::parameter_type t6, typename access_traits::parameter_type t7, typename access_traits::parameter_type t8, typename access_traits::parameter_type t9) : inherited(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9) {} template tuple(const cons& p) : inherited(p) {} template tuple& operator=(const cons& k) { inherited::operator=(k); return *this; } template tuple& operator=(const std::pair& k) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((length::value == 2) == 0 ? false : true) >)> boost_static_assert_typedef_586 __attribute__((unused)); this->head = k.first; this->tail.head = k.second; return *this; } }; template <> class tuple : public null_type { public: typedef null_type inherited; }; namespace detail { struct swallow_assign; typedef void (detail::swallow_assign::*ignore_t)(); struct swallow_assign { swallow_assign(ignore_t(*)(ignore_t)) {} template swallow_assign const& operator=(const T&) const { return *this; } }; } inline detail::ignore_t ignore(detail::ignore_t) { return 0; } # 640 "/usr/include/boost/tuple/detail/tuple_basic.hpp" 3 4 template struct make_tuple_traits { typedef T type; }; # 664 "/usr/include/boost/tuple/detail/tuple_basic.hpp" 3 4 template struct make_tuple_traits { typedef typename detail::generate_error:: do_not_use_with_reference_type error; }; template struct make_tuple_traits { typedef const T (&type)[n]; }; template struct make_tuple_traits { typedef const T (&type)[n]; }; template struct make_tuple_traits { typedef const volatile T (&type)[n]; }; template struct make_tuple_traits { typedef const volatile T (&type)[n]; }; template struct make_tuple_traits >{ typedef T& type; }; template struct make_tuple_traits >{ typedef T& type; }; template<> struct make_tuple_traits { typedef detail::swallow_assign type; }; namespace detail { template < class T0 = null_type, class T1 = null_type, class T2 = null_type, class T3 = null_type, class T4 = null_type, class T5 = null_type, class T6 = null_type, class T7 = null_type, class T8 = null_type, class T9 = null_type > struct make_tuple_mapper { typedef tuple::type, typename make_tuple_traits::type, typename make_tuple_traits::type, typename make_tuple_traits::type, typename make_tuple_traits::type, typename make_tuple_traits::type, typename make_tuple_traits::type, typename make_tuple_traits::type, typename make_tuple_traits::type, typename make_tuple_traits::type> type; }; } inline tuple<> make_tuple() { return tuple<>(); } template inline typename detail::make_tuple_mapper::type make_tuple(const T0& t0) { typedef typename detail::make_tuple_mapper::type t; return t(t0); } template inline typename detail::make_tuple_mapper::type make_tuple(const T0& t0, const T1& t1) { typedef typename detail::make_tuple_mapper::type t; return t(t0, t1); } template inline typename detail::make_tuple_mapper::type make_tuple(const T0& t0, const T1& t1, const T2& t2) { typedef typename detail::make_tuple_mapper::type t; return t(t0, t1, t2); } template inline typename detail::make_tuple_mapper::type make_tuple(const T0& t0, const T1& t1, const T2& t2, const T3& t3) { typedef typename detail::make_tuple_mapper::type t; return t(t0, t1, t2, t3); } template inline typename detail::make_tuple_mapper::type make_tuple(const T0& t0, const T1& t1, const T2& t2, const T3& t3, const T4& t4) { typedef typename detail::make_tuple_mapper::type t; return t(t0, t1, t2, t3, t4); } template inline typename detail::make_tuple_mapper::type make_tuple(const T0& t0, const T1& t1, const T2& t2, const T3& t3, const T4& t4, const T5& t5) { typedef typename detail::make_tuple_mapper::type t; return t(t0, t1, t2, t3, t4, t5); } template inline typename detail::make_tuple_mapper::type make_tuple(const T0& t0, const T1& t1, const T2& t2, const T3& t3, const T4& t4, const T5& t5, const T6& t6) { typedef typename detail::make_tuple_mapper ::type t; return t(t0, t1, t2, t3, t4, t5, t6); } template inline typename detail::make_tuple_mapper::type make_tuple(const T0& t0, const T1& t1, const T2& t2, const T3& t3, const T4& t4, const T5& t5, const T6& t6, const T7& t7) { typedef typename detail::make_tuple_mapper ::type t; return t(t0, t1, t2, t3, t4, t5, t6, t7); } template inline typename detail::make_tuple_mapper ::type make_tuple(const T0& t0, const T1& t1, const T2& t2, const T3& t3, const T4& t4, const T5& t5, const T6& t6, const T7& t7, const T8& t8) { typedef typename detail::make_tuple_mapper ::type t; return t(t0, t1, t2, t3, t4, t5, t6, t7, t8); } template inline typename detail::make_tuple_mapper ::type make_tuple(const T0& t0, const T1& t1, const T2& t2, const T3& t3, const T4& t4, const T5& t5, const T6& t6, const T7& t7, const T8& t8, const T9& t9) { typedef typename detail::make_tuple_mapper ::type t; return t(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9); } namespace detail { template struct tie_traits { typedef T& type; }; template<> struct tie_traits { typedef swallow_assign type; }; template<> struct tie_traits { typedef null_type type; }; template < class T0 = void, class T1 = void, class T2 = void, class T3 = void, class T4 = void, class T5 = void, class T6 = void, class T7 = void, class T8 = void, class T9 = void > struct tie_mapper { typedef tuple::type, typename tie_traits::type, typename tie_traits::type, typename tie_traits::type, typename tie_traits::type, typename tie_traits::type, typename tie_traits::type, typename tie_traits::type, typename tie_traits::type, typename tie_traits::type> type; }; } template inline typename detail::tie_mapper::type tie(T0& t0) { typedef typename detail::tie_mapper::type t; return t(t0); } template inline typename detail::tie_mapper::type tie(T0& t0, T1& t1) { typedef typename detail::tie_mapper::type t; return t(t0, t1); } template inline typename detail::tie_mapper::type tie(T0& t0, T1& t1, T2& t2) { typedef typename detail::tie_mapper::type t; return t(t0, t1, t2); } template inline typename detail::tie_mapper::type tie(T0& t0, T1& t1, T2& t2, T3& t3) { typedef typename detail::tie_mapper::type t; return t(t0, t1, t2, t3); } template inline typename detail::tie_mapper::type tie(T0& t0, T1& t1, T2& t2, T3& t3, T4& t4) { typedef typename detail::tie_mapper::type t; return t(t0, t1, t2, t3, t4); } template inline typename detail::tie_mapper::type tie(T0& t0, T1& t1, T2& t2, T3& t3, T4& t4, T5& t5) { typedef typename detail::tie_mapper::type t; return t(t0, t1, t2, t3, t4, t5); } template inline typename detail::tie_mapper::type tie(T0& t0, T1& t1, T2& t2, T3& t3, T4& t4, T5& t5, T6& t6) { typedef typename detail::tie_mapper ::type t; return t(t0, t1, t2, t3, t4, t5, t6); } template inline typename detail::tie_mapper::type tie(T0& t0, T1& t1, T2& t2, T3& t3, T4& t4, T5& t5, T6& t6, T7& t7) { typedef typename detail::tie_mapper ::type t; return t(t0, t1, t2, t3, t4, t5, t6, t7); } template inline typename detail::tie_mapper ::type tie(T0& t0, T1& t1, T2& t2, T3& t3, T4& t4, T5& t5, T6& t6, T7& t7, T8& t8) { typedef typename detail::tie_mapper ::type t; return t(t0, t1, t2, t3, t4, t5, t6, t7, t8); } template inline typename detail::tie_mapper ::type tie(T0& t0, T1& t1, T2& t2, T3& t3, T4& t4, T5& t5, T6& t6, T7& t7, T8& t8, T9& t9) { typedef typename detail::tie_mapper ::type t; return t(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9); } template void swap(tuple& lhs, tuple& rhs); inline void swap(null_type&, null_type&) {} template inline void swap(cons& lhs, cons& rhs) { ::boost::swap(lhs.head, rhs.head); } template inline void swap(cons& lhs, cons& rhs) { ::boost::swap(lhs.head, rhs.head); ::boost::tuples::swap(lhs.tail, rhs.tail); } template inline void swap(tuple& lhs, tuple& rhs) { typedef tuple tuple_type; typedef typename tuple_type::inherited base; ::boost::tuples::swap(static_cast(lhs), static_cast(rhs)); } } } #pragma GCC diagnostic pop # 29 "/usr/include/boost/tuple/tuple.hpp" 2 3 4 namespace boost { using tuples::tuple; using tuples::make_tuple; using tuples::tie; using tuples::get; # 64 "/usr/include/boost/tuple/tuple.hpp" 3 4 } # 5 "namespaces.hh" 2 # 1 "/usr/include/boost/shared_ptr.hpp" 1 3 4 # 17 "/usr/include/boost/shared_ptr.hpp" 3 4 # 1 "/usr/include/boost/smart_ptr/shared_ptr.hpp" 1 3 4 # 23 "/usr/include/boost/smart_ptr/shared_ptr.hpp" 3 4 # 1 "/usr/include/boost/config/no_tr1/memory.hpp" 1 3 4 # 21 "/usr/include/boost/config/no_tr1/memory.hpp" 3 4 # 1 "/usr/include/c++/5.0.0/memory" 1 3 4 # 46 "/usr/include/c++/5.0.0/memory" 3 4 # 47 "/usr/include/c++/5.0.0/memory" 3 # 65 "/usr/include/c++/5.0.0/memory" 3 # 1 "/usr/include/c++/5.0.0/bits/stl_uninitialized.h" 1 3 # 59 "/usr/include/c++/5.0.0/bits/stl_uninitialized.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template struct __uninitialized_copy { template static _ForwardIterator __uninit_copy(_InputIterator __first, _InputIterator __last, _ForwardIterator __result) { _ForwardIterator __cur = __result; try { for (; __first != __last; ++__first, ++__cur) std::_Construct(std::__addressof(*__cur), *__first); return __cur; } catch(...) { std::_Destroy(__result, __cur); throw; } } }; template<> struct __uninitialized_copy { template static _ForwardIterator __uninit_copy(_InputIterator __first, _InputIterator __last, _ForwardIterator __result) { return std::copy(__first, __last, __result); } }; # 105 "/usr/include/c++/5.0.0/bits/stl_uninitialized.h" 3 template inline _ForwardIterator uninitialized_copy(_InputIterator __first, _InputIterator __last, _ForwardIterator __result) { typedef typename iterator_traits<_InputIterator>::value_type _ValueType1; typedef typename iterator_traits<_ForwardIterator>::value_type _ValueType2; const bool __assignable = true; return std::__uninitialized_copy<__is_trivial(_ValueType1) && __is_trivial(_ValueType2) && __assignable>:: __uninit_copy(__first, __last, __result); } template struct __uninitialized_fill { template static void __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __x) { _ForwardIterator __cur = __first; try { for (; __cur != __last; ++__cur) std::_Construct(std::__addressof(*__cur), __x); } catch(...) { std::_Destroy(__first, __cur); throw; } } }; template<> struct __uninitialized_fill { template static void __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __x) { std::fill(__first, __last, __x); } }; # 171 "/usr/include/c++/5.0.0/bits/stl_uninitialized.h" 3 template inline void uninitialized_fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __x) { typedef typename iterator_traits<_ForwardIterator>::value_type _ValueType; const bool __assignable = true; std::__uninitialized_fill<__is_trivial(_ValueType) && __assignable>:: __uninit_fill(__first, __last, __x); } template struct __uninitialized_fill_n { template static _ForwardIterator __uninit_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) { _ForwardIterator __cur = __first; try { for (; __n > 0; --__n, ++__cur) std::_Construct(std::__addressof(*__cur), __x); return __cur; } catch(...) { std::_Destroy(__first, __cur); throw; } } }; template<> struct __uninitialized_fill_n { template static _ForwardIterator __uninit_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) { return std::fill_n(__first, __n, __x); } }; # 234 "/usr/include/c++/5.0.0/bits/stl_uninitialized.h" 3 template inline _ForwardIterator uninitialized_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) { typedef typename iterator_traits<_ForwardIterator>::value_type _ValueType; const bool __assignable = true; return __uninitialized_fill_n<__is_trivial(_ValueType) && __assignable>:: __uninit_fill_n(__first, __n, __x); } template _ForwardIterator __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, _ForwardIterator __result, _Allocator& __alloc) { _ForwardIterator __cur = __result; try { typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; for (; __first != __last; ++__first, ++__cur) __traits::construct(__alloc, std::__addressof(*__cur), *__first); return __cur; } catch(...) { std::_Destroy(__result, __cur, __alloc); throw; } } template inline _ForwardIterator __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, _ForwardIterator __result, allocator<_Tp>&) { return std::uninitialized_copy(__first, __last, __result); } template inline _ForwardIterator __uninitialized_move_a(_InputIterator __first, _InputIterator __last, _ForwardIterator __result, _Allocator& __alloc) { return std::__uninitialized_copy_a((__first), (__last), __result, __alloc); } template inline _ForwardIterator __uninitialized_move_if_noexcept_a(_InputIterator __first, _InputIterator __last, _ForwardIterator __result, _Allocator& __alloc) { return std::__uninitialized_copy_a ((__first), (__last), __result, __alloc); } template void __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __x, _Allocator& __alloc) { _ForwardIterator __cur = __first; try { typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; for (; __cur != __last; ++__cur) __traits::construct(__alloc, std::__addressof(*__cur), __x); } catch(...) { std::_Destroy(__first, __cur, __alloc); throw; } } template inline void __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __x, allocator<_Tp2>&) { std::uninitialized_fill(__first, __last, __x); } template _ForwardIterator __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, const _Tp& __x, _Allocator& __alloc) { _ForwardIterator __cur = __first; try { typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; for (; __n > 0; --__n, ++__cur) __traits::construct(__alloc, std::__addressof(*__cur), __x); return __cur; } catch(...) { std::_Destroy(__first, __cur, __alloc); throw; } } template inline _ForwardIterator __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, const _Tp& __x, allocator<_Tp2>&) { return std::uninitialized_fill_n(__first, __n, __x); } # 370 "/usr/include/c++/5.0.0/bits/stl_uninitialized.h" 3 template inline _ForwardIterator __uninitialized_copy_move(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _ForwardIterator __result, _Allocator& __alloc) { _ForwardIterator __mid = std::__uninitialized_copy_a(__first1, __last1, __result, __alloc); try { return std::__uninitialized_move_a(__first2, __last2, __mid, __alloc); } catch(...) { std::_Destroy(__result, __mid, __alloc); throw; } } template inline _ForwardIterator __uninitialized_move_copy(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _ForwardIterator __result, _Allocator& __alloc) { _ForwardIterator __mid = std::__uninitialized_move_a(__first1, __last1, __result, __alloc); try { return std::__uninitialized_copy_a(__first2, __last2, __mid, __alloc); } catch(...) { std::_Destroy(__result, __mid, __alloc); throw; } } template inline _ForwardIterator __uninitialized_fill_move(_ForwardIterator __result, _ForwardIterator __mid, const _Tp& __x, _InputIterator __first, _InputIterator __last, _Allocator& __alloc) { std::__uninitialized_fill_a(__result, __mid, __x, __alloc); try { return std::__uninitialized_move_a(__first, __last, __mid, __alloc); } catch(...) { std::_Destroy(__result, __mid, __alloc); throw; } } template inline void __uninitialized_move_fill(_InputIterator __first1, _InputIterator __last1, _ForwardIterator __first2, _ForwardIterator __last2, const _Tp& __x, _Allocator& __alloc) { _ForwardIterator __mid2 = std::__uninitialized_move_a(__first1, __last1, __first2, __alloc); try { std::__uninitialized_fill_a(__mid2, __last2, __x, __alloc); } catch(...) { std::_Destroy(__first2, __mid2, __alloc); throw; } } # 685 "/usr/include/c++/5.0.0/bits/stl_uninitialized.h" 3 } # 66 "/usr/include/c++/5.0.0/memory" 2 3 # 1 "/usr/include/c++/5.0.0/bits/stl_raw_storage_iter.h" 1 3 # 59 "/usr/include/c++/5.0.0/bits/stl_raw_storage_iter.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template class raw_storage_iterator : public iterator { protected: _OutputIterator _M_iter; public: explicit raw_storage_iterator(_OutputIterator __x) : _M_iter(__x) {} raw_storage_iterator& operator*() { return *this; } raw_storage_iterator& operator=(const _Tp& __element) { std::_Construct(std::__addressof(*_M_iter), __element); return *this; } raw_storage_iterator<_OutputIterator, _Tp>& operator++() { ++_M_iter; return *this; } raw_storage_iterator<_OutputIterator, _Tp> operator++(int) { raw_storage_iterator<_OutputIterator, _Tp> __tmp = *this; ++_M_iter; return __tmp; } }; } # 68 "/usr/include/c++/5.0.0/memory" 2 3 # 88 "/usr/include/c++/5.0.0/memory" 3 # 1 "/usr/include/c++/5.0.0/backward/auto_ptr.h" 1 3 # 36 "/usr/include/c++/5.0.0/backward/auto_ptr.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 47 "/usr/include/c++/5.0.0/backward/auto_ptr.h" 3 template struct auto_ptr_ref { _Tp1* _M_ptr; explicit auto_ptr_ref(_Tp1* __p): _M_ptr(__p) { } } ; # 86 "/usr/include/c++/5.0.0/backward/auto_ptr.h" 3 template class auto_ptr { private: _Tp* _M_ptr; public: typedef _Tp element_type; explicit auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { } # 112 "/usr/include/c++/5.0.0/backward/auto_ptr.h" 3 auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { } # 124 "/usr/include/c++/5.0.0/backward/auto_ptr.h" 3 template auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { } # 135 "/usr/include/c++/5.0.0/backward/auto_ptr.h" 3 auto_ptr& operator=(auto_ptr& __a) throw() { reset(__a.release()); return *this; } # 152 "/usr/include/c++/5.0.0/backward/auto_ptr.h" 3 template auto_ptr& operator=(auto_ptr<_Tp1>& __a) throw() { reset(__a.release()); return *this; } # 170 "/usr/include/c++/5.0.0/backward/auto_ptr.h" 3 ~auto_ptr() { delete _M_ptr; } # 180 "/usr/include/c++/5.0.0/backward/auto_ptr.h" 3 element_type& operator*() const throw() { ; return *_M_ptr; } element_type* operator->() const throw() { ; return _M_ptr; } # 210 "/usr/include/c++/5.0.0/backward/auto_ptr.h" 3 element_type* get() const throw() { return _M_ptr; } # 224 "/usr/include/c++/5.0.0/backward/auto_ptr.h" 3 element_type* release() throw() { element_type* __tmp = _M_ptr; _M_ptr = 0; return __tmp; } # 239 "/usr/include/c++/5.0.0/backward/auto_ptr.h" 3 void reset(element_type* __p = 0) throw() { if (__p != _M_ptr) { delete _M_ptr; _M_ptr = __p; } } # 260 "/usr/include/c++/5.0.0/backward/auto_ptr.h" 3 auto_ptr(auto_ptr_ref __ref) throw() : _M_ptr(__ref._M_ptr) { } auto_ptr& operator=(auto_ptr_ref __ref) throw() { if (__ref._M_ptr != this->get()) { delete _M_ptr; _M_ptr = __ref._M_ptr; } return *this; } template operator auto_ptr_ref<_Tp1>() throw() { return auto_ptr_ref<_Tp1>(this->release()); } template operator auto_ptr<_Tp1>() throw() { return auto_ptr<_Tp1>(this->release()); } } ; template<> class auto_ptr { public: typedef void element_type; } ; # 326 "/usr/include/c++/5.0.0/backward/auto_ptr.h" 3 } # 89 "/usr/include/c++/5.0.0/memory" 2 3 # 22 "/usr/include/boost/config/no_tr1/memory.hpp" 2 3 4 # 24 "/usr/include/boost/smart_ptr/shared_ptr.hpp" 2 3 4 # 1 "/usr/include/boost/assert.hpp" 1 3 4 # 54 "/usr/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 64 "/usr/include/assert.h" 3 4 extern "C" { extern void __assert_fail (const char *__assertion, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert_perror_fail (int __errnum, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert (const char *__assertion, const char *__file, int __line) throw () __attribute__ ((__noreturn__)); } # 55 "/usr/include/boost/assert.hpp" 2 3 4 # 26 "/usr/include/boost/smart_ptr/shared_ptr.hpp" 2 3 4 # 1 "/usr/include/boost/smart_ptr/detail/shared_count.hpp" 1 3 4 # 28 "/usr/include/boost/smart_ptr/detail/shared_count.hpp" 3 4 # 1 "/usr/include/boost/smart_ptr/bad_weak_ptr.hpp" 1 3 4 # 26 "/usr/include/boost/smart_ptr/bad_weak_ptr.hpp" 3 4 namespace boost { # 39 "/usr/include/boost/smart_ptr/bad_weak_ptr.hpp" 3 4 class bad_weak_ptr: public std::exception { public: virtual char const * what() const throw() { return "tr1::bad_weak_ptr"; } }; } # 29 "/usr/include/boost/smart_ptr/detail/shared_count.hpp" 2 3 4 # 1 "/usr/include/boost/smart_ptr/detail/sp_counted_base.hpp" 1 3 4 # 21 "/usr/include/boost/smart_ptr/detail/sp_counted_base.hpp" 3 4 # 1 "/usr/include/boost/smart_ptr/detail/sp_has_sync.hpp" 1 3 4 # 22 "/usr/include/boost/smart_ptr/detail/sp_counted_base.hpp" 2 3 4 # 42 "/usr/include/boost/smart_ptr/detail/sp_counted_base.hpp" 3 4 # 1 "/usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp" 1 3 4 # 27 "/usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp" 3 4 # 1 "/usr/include/boost/detail/sp_typeinfo.hpp" 1 3 4 # 20 "/usr/include/boost/detail/sp_typeinfo.hpp" 3 4 # 1 "/usr/include/boost/core/typeinfo.hpp" 1 3 4 # 119 "/usr/include/boost/core/typeinfo.hpp" 3 4 # 1 "/usr/include/boost/core/demangle.hpp" 1 3 4 # 17 "/usr/include/boost/core/demangle.hpp" 3 4 # 29 "/usr/include/boost/core/demangle.hpp" 3 4 # 1 "/usr/include/c++/5.0.0/cxxabi.h" 1 3 4 # 44 "/usr/include/c++/5.0.0/cxxabi.h" 3 4 # 45 "/usr/include/c++/5.0.0/cxxabi.h" 3 #pragma GCC visibility push(default) # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stddef.h" 1 3 4 # 49 "/usr/include/c++/5.0.0/cxxabi.h" 2 3 # 1 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/cxxabi_tweaks.h" 1 3 # 34 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/cxxabi_tweaks.h" 3 namespace __cxxabiv1 { extern "C" { # 46 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/cxxabi_tweaks.h" 3 __extension__ typedef int __guard __attribute__((mode (__DI__))); typedef void __cxa_vec_ctor_return_type; typedef void __cxa_cdtor_return_type; } } # 51 "/usr/include/c++/5.0.0/cxxabi.h" 2 3 namespace __cxxabiv1 { extern "C" { typedef __cxa_cdtor_return_type (*__cxa_cdtor_type)(void *); void* __cxa_vec_new(size_t __element_count, size_t __element_size, size_t __padding_size, __cxa_cdtor_type __constructor, __cxa_cdtor_type __destructor); void* __cxa_vec_new2(size_t __element_count, size_t __element_size, size_t __padding_size, __cxa_cdtor_type __constructor, __cxa_cdtor_type __destructor, void *(*__alloc) (size_t), void (*__dealloc) (void*)); void* __cxa_vec_new3(size_t __element_count, size_t __element_size, size_t __padding_size, __cxa_cdtor_type __constructor, __cxa_cdtor_type __destructor, void *(*__alloc) (size_t), void (*__dealloc) (void*, size_t)); __cxa_vec_ctor_return_type __cxa_vec_ctor(void* __array_address, size_t __element_count, size_t __element_size, __cxa_cdtor_type __constructor, __cxa_cdtor_type __destructor); __cxa_vec_ctor_return_type __cxa_vec_cctor(void* __dest_array, void* __src_array, size_t __element_count, size_t __element_size, __cxa_cdtor_return_type (*__constructor) (void*, void*), __cxa_cdtor_type __destructor); void __cxa_vec_dtor(void* __array_address, size_t __element_count, size_t __element_size, __cxa_cdtor_type __destructor); void __cxa_vec_cleanup(void* __array_address, size_t __element_count, size_t __s, __cxa_cdtor_type __destructor) throw(); void __cxa_vec_delete(void* __array_address, size_t __element_size, size_t __padding_size, __cxa_cdtor_type __destructor); void __cxa_vec_delete2(void* __array_address, size_t __element_size, size_t __padding_size, __cxa_cdtor_type __destructor, void (*__dealloc) (void*)); void __cxa_vec_delete3(void* __array_address, size_t __element_size, size_t __padding_size, __cxa_cdtor_type __destructor, void (*__dealloc) (void*, size_t)); int __cxa_guard_acquire(__guard*); void __cxa_guard_release(__guard*) throw(); void __cxa_guard_abort(__guard*) throw(); int __cxa_atexit(void (*)(void*), void*, void*) throw(); int __cxa_finalize(void*); int __cxa_thread_atexit(void (*)(void*), void*, void *) throw(); void __cxa_pure_virtual(void) __attribute__ ((__noreturn__)); void __cxa_deleted_virtual(void) __attribute__ ((__noreturn__)); void __cxa_bad_cast() __attribute__((__noreturn__)); void __cxa_bad_typeid() __attribute__((__noreturn__)); void __cxa_throw_bad_array_new_length() __attribute__((__noreturn__)); # 197 "/usr/include/c++/5.0.0/cxxabi.h" 3 char* __cxa_demangle(const char* __mangled_name, char* __output_buffer, size_t* __length, int* __status); } } namespace __cxxabiv1 { class __fundamental_type_info : public std::type_info { public: explicit __fundamental_type_info(const char* __n) : std::type_info(__n) { } virtual ~__fundamental_type_info(); }; class __array_type_info : public std::type_info { public: explicit __array_type_info(const char* __n) : std::type_info(__n) { } virtual ~__array_type_info(); }; class __function_type_info : public std::type_info { public: explicit __function_type_info(const char* __n) : std::type_info(__n) { } virtual ~__function_type_info(); protected: virtual bool __is_function_p() const; }; class __enum_type_info : public std::type_info { public: explicit __enum_type_info(const char* __n) : std::type_info(__n) { } virtual ~__enum_type_info(); }; class __pbase_type_info : public std::type_info { public: unsigned int __flags; const std::type_info* __pointee; explicit __pbase_type_info(const char* __n, int __quals, const std::type_info* __type) : std::type_info(__n), __flags(__quals), __pointee(__type) { } virtual ~__pbase_type_info(); enum __masks { __const_mask = 0x1, __volatile_mask = 0x2, __restrict_mask = 0x4, __incomplete_mask = 0x8, __incomplete_class_mask = 0x10 }; protected: __pbase_type_info(const __pbase_type_info&); __pbase_type_info& operator=(const __pbase_type_info&); virtual bool __do_catch(const std::type_info* __thr_type, void** __thr_obj, unsigned int __outer) const; inline virtual bool __pointer_catch(const __pbase_type_info* __thr_type, void** __thr_obj, unsigned __outer) const; }; inline bool __pbase_type_info:: __pointer_catch (const __pbase_type_info *thrown_type, void **thr_obj, unsigned outer) const { return __pointee->__do_catch (thrown_type->__pointee, thr_obj, outer + 2); } class __pointer_type_info : public __pbase_type_info { public: explicit __pointer_type_info(const char* __n, int __quals, const std::type_info* __type) : __pbase_type_info (__n, __quals, __type) { } virtual ~__pointer_type_info(); protected: virtual bool __is_pointer_p() const; virtual bool __pointer_catch(const __pbase_type_info* __thr_type, void** __thr_obj, unsigned __outer) const; }; class __class_type_info; class __pointer_to_member_type_info : public __pbase_type_info { public: __class_type_info* __context; explicit __pointer_to_member_type_info(const char* __n, int __quals, const std::type_info* __type, __class_type_info* __klass) : __pbase_type_info(__n, __quals, __type), __context(__klass) { } virtual ~__pointer_to_member_type_info(); protected: __pointer_to_member_type_info(const __pointer_to_member_type_info&); __pointer_to_member_type_info& operator=(const __pointer_to_member_type_info&); virtual bool __pointer_catch(const __pbase_type_info* __thr_type, void** __thr_obj, unsigned __outer) const; }; class __base_class_type_info { public: const __class_type_info* __base_type; long __offset_flags; enum __offset_flags_masks { __virtual_mask = 0x1, __public_mask = 0x2, __hwm_bit = 2, __offset_shift = 8 }; bool __is_virtual_p() const { return __offset_flags & __virtual_mask; } bool __is_public_p() const { return __offset_flags & __public_mask; } ptrdiff_t __offset() const { return static_cast(__offset_flags) >> __offset_shift; } }; class __class_type_info : public std::type_info { public: explicit __class_type_info (const char *__n) : type_info(__n) { } virtual ~__class_type_info (); enum __sub_kind { __unknown = 0, __not_contained, __contained_ambig, __contained_virtual_mask = __base_class_type_info::__virtual_mask, __contained_public_mask = __base_class_type_info::__public_mask, __contained_mask = 1 << __base_class_type_info::__hwm_bit, __contained_private = __contained_mask, __contained_public = __contained_mask | __contained_public_mask }; struct __upcast_result; struct __dyncast_result; protected: virtual bool __do_upcast(const __class_type_info* __dst_type, void**__obj_ptr) const; virtual bool __do_catch(const type_info* __thr_type, void** __thr_obj, unsigned __outer) const; public: virtual bool __do_upcast(const __class_type_info* __dst, const void* __obj, __upcast_result& __restrict __result) const; inline __sub_kind __find_public_src(ptrdiff_t __src2dst, const void* __obj_ptr, const __class_type_info* __src_type, const void* __src_ptr) const; # 478 "/usr/include/c++/5.0.0/cxxabi.h" 3 virtual bool __do_dyncast(ptrdiff_t __src2dst, __sub_kind __access_path, const __class_type_info* __dst_type, const void* __obj_ptr, const __class_type_info* __src_type, const void* __src_ptr, __dyncast_result& __result) const; virtual __sub_kind __do_find_public_src(ptrdiff_t __src2dst, const void* __obj_ptr, const __class_type_info* __src_type, const void* __src_ptr) const; }; class __si_class_type_info : public __class_type_info { public: const __class_type_info* __base_type; explicit __si_class_type_info(const char *__n, const __class_type_info *__base) : __class_type_info(__n), __base_type(__base) { } virtual ~__si_class_type_info(); protected: __si_class_type_info(const __si_class_type_info&); __si_class_type_info& operator=(const __si_class_type_info&); virtual bool __do_dyncast(ptrdiff_t __src2dst, __sub_kind __access_path, const __class_type_info* __dst_type, const void* __obj_ptr, const __class_type_info* __src_type, const void* __src_ptr, __dyncast_result& __result) const; virtual __sub_kind __do_find_public_src(ptrdiff_t __src2dst, const void* __obj_ptr, const __class_type_info* __src_type, const void* __sub_ptr) const; virtual bool __do_upcast(const __class_type_info*__dst, const void*__obj, __upcast_result& __restrict __result) const; }; class __vmi_class_type_info : public __class_type_info { public: unsigned int __flags; unsigned int __base_count; __base_class_type_info __base_info[1]; explicit __vmi_class_type_info(const char* __n, int ___flags) : __class_type_info(__n), __flags(___flags), __base_count(0) { } virtual ~__vmi_class_type_info(); enum __flags_masks { __non_diamond_repeat_mask = 0x1, __diamond_shaped_mask = 0x2, __flags_unknown_mask = 0x10 }; protected: virtual bool __do_dyncast(ptrdiff_t __src2dst, __sub_kind __access_path, const __class_type_info* __dst_type, const void* __obj_ptr, const __class_type_info* __src_type, const void* __src_ptr, __dyncast_result& __result) const; virtual __sub_kind __do_find_public_src(ptrdiff_t __src2dst, const void* __obj_ptr, const __class_type_info* __src_type, const void* __src_ptr) const; virtual bool __do_upcast(const __class_type_info* __dst, const void* __obj, __upcast_result& __restrict __result) const; }; struct __cxa_exception; struct __cxa_refcounted_exception; struct __cxa_dependent_exception; struct __cxa_eh_globals; extern "C" { # 591 "/usr/include/c++/5.0.0/cxxabi.h" 3 void* __dynamic_cast(const void* __src_ptr, const __class_type_info* __src_type, const __class_type_info* __dst_type, ptrdiff_t __src2dst); # 604 "/usr/include/c++/5.0.0/cxxabi.h" 3 __cxa_eh_globals* __cxa_get_globals() throw() __attribute__ ((__const__)); __cxa_eh_globals* __cxa_get_globals_fast() throw() __attribute__ ((__const__)); void* __cxa_allocate_exception(size_t) throw(); void __cxa_free_exception(void*) throw(); void __cxa_throw(void*, std::type_info*, void ( *) (void *)) __attribute__((__noreturn__)); void* __cxa_get_exception_ptr(void*) throw() __attribute__ ((__pure__)); void* __cxa_begin_catch(void*) throw(); void __cxa_end_catch(); void __cxa_rethrow() __attribute__((__noreturn__)); std::type_info* __cxa_current_exception_type() throw() __attribute__ ((__pure__)); __cxa_dependent_exception* __cxa_allocate_dependent_exception() throw(); void __cxa_free_dependent_exception(__cxa_dependent_exception*) throw(); } class __foreign_exception { virtual ~__foreign_exception() throw(); virtual void __pure_dummy() = 0; }; } # 683 "/usr/include/c++/5.0.0/cxxabi.h" 3 namespace abi = __cxxabiv1; namespace __gnu_cxx { # 699 "/usr/include/c++/5.0.0/cxxabi.h" 3 class recursive_init_error: public std::exception { public: recursive_init_error() throw() { } virtual ~recursive_init_error() throw (); }; } #pragma GCC visibility pop # 30 "/usr/include/boost/core/demangle.hpp" 2 3 4 # 1 "/usr/include/c++/5.0.0/cstdlib" 1 3 4 # 39 "/usr/include/c++/5.0.0/cstdlib" 3 4 # 40 "/usr/include/c++/5.0.0/cstdlib" 3 # 31 "/usr/include/boost/core/demangle.hpp" 2 3 4 namespace boost { namespace core { inline char const * demangle_alloc( char const * name ) ; inline void demangle_free( char const * name ) ; class scoped_demangled_name { private: char const * m_p; public: explicit scoped_demangled_name( char const * name ) : m_p( demangle_alloc( name ) ) { } ~scoped_demangled_name() { demangle_free( m_p ); } char const * get() const { return m_p; } private: scoped_demangled_name( scoped_demangled_name const& ); private: scoped_demangled_name& operator= ( scoped_demangled_name const& ); }; inline char const * demangle_alloc( char const * name ) { int status = 0; std::size_t size = 0; return abi::__cxa_demangle( name, __null, &size, &status ); } inline void demangle_free( char const * name ) { std::free( const_cast< char* >( name ) ); } inline std::string demangle( char const * name ) { scoped_demangled_name demangled_name( name ); char const * const p = demangled_name.get(); if( p ) { return p; } else { return name; } } # 115 "/usr/include/boost/core/demangle.hpp" 3 4 } } # 120 "/usr/include/boost/core/typeinfo.hpp" 2 3 4 namespace boost { namespace core { typedef std::type_info typeinfo; inline std::string demangled_name( core::typeinfo const & ti ) { return core::demangle( ti.name() ); } } } # 21 "/usr/include/boost/detail/sp_typeinfo.hpp" 2 3 4 namespace boost { namespace detail { typedef boost::core::typeinfo sp_typeinfo; } } # 28 "/usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp" 2 3 4 namespace boost { namespace detail { inline int atomic_exchange_and_add( int * pw, int dv ) { int r; __asm__ __volatile__ ( "lock\n\t" "xadd %1, %0": "=m"( *pw ), "=r"( r ): "m"( *pw ), "1"( dv ): "memory", "cc" ); return r; } inline void atomic_increment( int * pw ) { __asm__ ( "lock\n\t" "incl %0": "=m"( *pw ): "m"( *pw ): "cc" ); } inline int atomic_conditional_increment( int * pw ) { int rv, tmp; __asm__ ( "movl %0, %%eax\n\t" "0:\n\t" "test %%eax, %%eax\n\t" "je 1f\n\t" "movl %%eax, %2\n\t" "incl %2\n\t" "lock\n\t" "cmpxchgl %2, %0\n\t" "jne 0b\n\t" "1:": "=m"( *pw ), "=&a"( rv ), "=&r"( tmp ): "m"( *pw ): "cc" ); return rv; } class sp_counted_base { private: sp_counted_base( sp_counted_base const & ); sp_counted_base & operator= ( sp_counted_base const & ); int use_count_; int weak_count_; public: sp_counted_base(): use_count_( 1 ), weak_count_( 1 ) { } virtual ~sp_counted_base() { } virtual void dispose() = 0; virtual void destroy() { delete this; } virtual void * get_deleter( sp_typeinfo const & ti ) = 0; virtual void * get_untyped_deleter() = 0; void add_ref_copy() { atomic_increment( &use_count_ ); } bool add_ref_lock() { return atomic_conditional_increment( &use_count_ ) != 0; } void release() { if( atomic_exchange_and_add( &use_count_, -1 ) == 1 ) { dispose(); weak_release(); } } void weak_add_ref() { atomic_increment( &weak_count_ ); } void weak_release() { if( atomic_exchange_and_add( &weak_count_, -1 ) == 1 ) { destroy(); } } long use_count() const { return static_cast( use_count_ ); } }; } } # 43 "/usr/include/boost/smart_ptr/detail/sp_counted_base.hpp" 2 3 4 # 30 "/usr/include/boost/smart_ptr/detail/shared_count.hpp" 2 3 4 # 1 "/usr/include/boost/smart_ptr/detail/sp_counted_impl.hpp" 1 3 4 # 40 "/usr/include/boost/smart_ptr/detail/sp_counted_impl.hpp" 3 4 namespace boost { # 50 "/usr/include/boost/smart_ptr/detail/sp_counted_impl.hpp" 3 4 namespace detail { template class sp_counted_impl_p: public sp_counted_base { private: X * px_; sp_counted_impl_p( sp_counted_impl_p const & ); sp_counted_impl_p & operator= ( sp_counted_impl_p const & ); typedef sp_counted_impl_p this_type; public: explicit sp_counted_impl_p( X * px ): px_( px ) { } virtual void dispose() { boost::checked_delete( px_ ); } virtual void * get_deleter( detail::sp_typeinfo const & ) { return 0; } virtual void * get_untyped_deleter() { return 0; } # 118 "/usr/include/boost/smart_ptr/detail/sp_counted_impl.hpp" 3 4 }; # 127 "/usr/include/boost/smart_ptr/detail/sp_counted_impl.hpp" 3 4 template class sp_counted_impl_pd: public sp_counted_base { private: P ptr; D del; sp_counted_impl_pd( sp_counted_impl_pd const & ); sp_counted_impl_pd & operator= ( sp_counted_impl_pd const & ); typedef sp_counted_impl_pd this_type; public: sp_counted_impl_pd( P p, D & d ): ptr( p ), del( d ) { } sp_counted_impl_pd( P p ): ptr( p ), del() { } virtual void dispose() { del( ptr ); } virtual void * get_deleter( detail::sp_typeinfo const & ti ) { return ti == typeid(D)? &reinterpret_cast( del ): 0; } virtual void * get_untyped_deleter() { return &reinterpret_cast( del ); } # 193 "/usr/include/boost/smart_ptr/detail/sp_counted_impl.hpp" 3 4 }; template class sp_counted_impl_pda: public sp_counted_base { private: P p_; D d_; A a_; sp_counted_impl_pda( sp_counted_impl_pda const & ); sp_counted_impl_pda & operator= ( sp_counted_impl_pda const & ); typedef sp_counted_impl_pda this_type; public: sp_counted_impl_pda( P p, D & d, A a ): p_( p ), d_( d ), a_( a ) { } sp_counted_impl_pda( P p, A a ): p_( p ), d_( a ), a_( a ) { } virtual void dispose() { d_( p_ ); } virtual void destroy() { typedef typename A::template rebind< this_type >::other A2; A2 a2( a_ ); this->~this_type(); a2.deallocate( this, 1 ); } virtual void * get_deleter( detail::sp_typeinfo const & ti ) { return ti == typeid(D)? &reinterpret_cast( d_ ): 0; } virtual void * get_untyped_deleter() { return &reinterpret_cast( d_ ); } }; } } # 31 "/usr/include/boost/smart_ptr/detail/shared_count.hpp" 2 3 4 # 47 "/usr/include/boost/smart_ptr/detail/shared_count.hpp" 3 4 namespace boost { namespace detail { # 60 "/usr/include/boost/smart_ptr/detail/shared_count.hpp" 3 4 struct sp_nothrow_tag {}; template< class D > struct sp_inplace_tag { }; # 98 "/usr/include/boost/smart_ptr/detail/shared_count.hpp" 3 4 class weak_count; class shared_count { private: sp_counted_base * pi_; friend class weak_count; public: shared_count(): pi_(0) { } template explicit shared_count( Y * p ): pi_( 0 ) { try { pi_ = new sp_counted_impl_p( p ); } catch(...) { boost::checked_delete( p ); throw; } # 149 "/usr/include/boost/smart_ptr/detail/shared_count.hpp" 3 4 } template shared_count( P p, D d ): pi_(0) { try { pi_ = new sp_counted_impl_pd(p, d); } catch(...) { d(p); throw; } # 186 "/usr/include/boost/smart_ptr/detail/shared_count.hpp" 3 4 } template< class P, class D > shared_count( P p, sp_inplace_tag ): pi_( 0 ) { try { pi_ = new sp_counted_impl_pd< P, D >( p ); } catch( ... ) { D::operator_fn( p ); throw; } # 218 "/usr/include/boost/smart_ptr/detail/shared_count.hpp" 3 4 } template shared_count( P p, D d, A a ): pi_( 0 ) { typedef sp_counted_impl_pda impl_type; typedef typename A::template rebind< impl_type >::other A2; A2 a2( a ); try { # 253 "/usr/include/boost/smart_ptr/detail/shared_count.hpp" 3 4 pi_ = a2.allocate( 1, static_cast< impl_type* >( 0 ) ); ::new( static_cast< void* >( pi_ ) ) impl_type( p, d, a ); } catch(...) { d( p ); if( pi_ != 0 ) { a2.deallocate( static_cast< impl_type* >( pi_ ), 1 ); } throw; } # 302 "/usr/include/boost/smart_ptr/detail/shared_count.hpp" 3 4 } template< class P, class D, class A > shared_count( P p, sp_inplace_tag< D >, A a ): pi_( 0 ) { typedef sp_counted_impl_pda< P, D, A > impl_type; typedef typename A::template rebind< impl_type >::other A2; A2 a2( a ); try { # 337 "/usr/include/boost/smart_ptr/detail/shared_count.hpp" 3 4 pi_ = a2.allocate( 1, static_cast< impl_type* >( 0 ) ); ::new( static_cast< void* >( pi_ ) ) impl_type( p, a ); } catch(...) { D::operator_fn( p ); if( pi_ != 0 ) { a2.deallocate( static_cast< impl_type* >( pi_ ), 1 ); } throw; } # 386 "/usr/include/boost/smart_ptr/detail/shared_count.hpp" 3 4 } template explicit shared_count( std::auto_ptr & r ): pi_( new sp_counted_impl_p( r.get() ) ) { # 409 "/usr/include/boost/smart_ptr/detail/shared_count.hpp" 3 4 r.release(); } # 441 "/usr/include/boost/smart_ptr/detail/shared_count.hpp" 3 4 ~shared_count() { if( pi_ != 0 ) pi_->release(); } shared_count(shared_count const & r): pi_(r.pi_) { if( pi_ != 0 ) pi_->add_ref_copy(); } # 469 "/usr/include/boost/smart_ptr/detail/shared_count.hpp" 3 4 explicit shared_count(weak_count const & r); shared_count( weak_count const & r, sp_nothrow_tag ); shared_count & operator= (shared_count const & r) { sp_counted_base * tmp = r.pi_; if( tmp != pi_ ) { if( tmp != 0 ) tmp->add_ref_copy(); if( pi_ != 0 ) pi_->release(); pi_ = tmp; } return *this; } void swap(shared_count & r) { sp_counted_base * tmp = r.pi_; r.pi_ = pi_; pi_ = tmp; } long use_count() const { return pi_ != 0? pi_->use_count(): 0; } bool unique() const { return use_count() == 1; } bool empty() const { return pi_ == 0; } friend inline bool operator==(shared_count const & a, shared_count const & b) { return a.pi_ == b.pi_; } friend inline bool operator<(shared_count const & a, shared_count const & b) { return std::less()( a.pi_, b.pi_ ); } void * get_deleter( sp_typeinfo const & ti ) const { return pi_? pi_->get_deleter( ti ): 0; } void * get_untyped_deleter() const { return pi_? pi_->get_untyped_deleter(): 0; } }; class weak_count { private: sp_counted_base * pi_; friend class shared_count; public: weak_count(): pi_(0) { } weak_count(shared_count const & r): pi_(r.pi_) { if(pi_ != 0) pi_->weak_add_ref(); } weak_count(weak_count const & r): pi_(r.pi_) { if(pi_ != 0) pi_->weak_add_ref(); } # 581 "/usr/include/boost/smart_ptr/detail/shared_count.hpp" 3 4 ~weak_count() { if(pi_ != 0) pi_->weak_release(); } weak_count & operator= (shared_count const & r) { sp_counted_base * tmp = r.pi_; if( tmp != pi_ ) { if(tmp != 0) tmp->weak_add_ref(); if(pi_ != 0) pi_->weak_release(); pi_ = tmp; } return *this; } weak_count & operator= (weak_count const & r) { sp_counted_base * tmp = r.pi_; if( tmp != pi_ ) { if(tmp != 0) tmp->weak_add_ref(); if(pi_ != 0) pi_->weak_release(); pi_ = tmp; } return *this; } void swap(weak_count & r) { sp_counted_base * tmp = r.pi_; r.pi_ = pi_; pi_ = tmp; } long use_count() const { return pi_ != 0? pi_->use_count(): 0; } bool empty() const { return pi_ == 0; } friend inline bool operator==(weak_count const & a, weak_count const & b) { return a.pi_ == b.pi_; } friend inline bool operator<(weak_count const & a, weak_count const & b) { return std::less()(a.pi_, b.pi_); } }; inline shared_count::shared_count( weak_count const & r ): pi_( r.pi_ ) { if( pi_ == 0 || !pi_->add_ref_lock() ) { boost::throw_exception( boost::bad_weak_ptr() ); } } inline shared_count::shared_count( weak_count const & r, sp_nothrow_tag ): pi_( r.pi_ ) { if( pi_ != 0 && !pi_->add_ref_lock() ) { pi_ = 0; } } } } # 29 "/usr/include/boost/smart_ptr/shared_ptr.hpp" 2 3 4 # 1 "/usr/include/boost/smart_ptr/detail/sp_convertible.hpp" 1 3 4 # 34 "/usr/include/boost/smart_ptr/detail/sp_convertible.hpp" 3 4 namespace boost { namespace detail { template< class Y, class T > struct sp_convertible { typedef char (&yes) [1]; typedef char (&no) [2]; static yes f( T* ); static no f( ... ); enum _vt { value = sizeof( (f)( static_cast(0) ) ) == sizeof(yes) }; }; template< class Y, class T > struct sp_convertible< Y, T[] > { enum _vt { value = false }; }; template< class Y, class T > struct sp_convertible< Y[], T[] > { enum _vt { value = sp_convertible< Y[1], T[1] >::value }; }; template< class Y, std::size_t N, class T > struct sp_convertible< Y[N], T[] > { enum _vt { value = sp_convertible< Y[1], T[1] >::value }; }; struct sp_empty { }; template< bool > struct sp_enable_if_convertible_impl; template<> struct sp_enable_if_convertible_impl { typedef sp_empty type; }; template<> struct sp_enable_if_convertible_impl { }; template< class Y, class T > struct sp_enable_if_convertible: public sp_enable_if_convertible_impl< sp_convertible< Y, T >::value > { }; } } # 31 "/usr/include/boost/smart_ptr/shared_ptr.hpp" 2 3 4 # 1 "/usr/include/boost/smart_ptr/detail/sp_nullptr_t.hpp" 1 3 4 # 32 "/usr/include/boost/smart_ptr/shared_ptr.hpp" 2 3 4 # 1 "/usr/include/boost/smart_ptr/detail/spinlock_pool.hpp" 1 3 4 # 25 "/usr/include/boost/smart_ptr/detail/spinlock_pool.hpp" 3 4 # 1 "/usr/include/boost/smart_ptr/detail/spinlock.hpp" 1 3 4 # 50 "/usr/include/boost/smart_ptr/detail/spinlock.hpp" 3 4 # 1 "/usr/include/boost/smart_ptr/detail/spinlock_sync.hpp" 1 3 4 # 18 "/usr/include/boost/smart_ptr/detail/spinlock_sync.hpp" 3 4 # 1 "/usr/include/boost/smart_ptr/detail/yield_k.hpp" 1 3 4 # 28 "/usr/include/boost/smart_ptr/detail/yield_k.hpp" 3 4 # 1 "/usr/include/boost/predef.h" 1 3 4 # 11 "/usr/include/boost/predef.h" 3 4 # 1 "/usr/include/boost/predef/language.h" 1 3 4 # 11 "/usr/include/boost/predef/language.h" 3 4 # 1 "/usr/include/boost/predef/language/stdc.h" 1 3 4 # 12 "/usr/include/boost/predef/language/stdc.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/language/stdc.h" 2 3 4 # 51 "/usr/include/boost/predef/language/stdc.h" 3 4 # 12 "/usr/include/boost/predef/language.h" 2 3 4 # 1 "/usr/include/boost/predef/language/stdcpp.h" 1 3 4 # 12 "/usr/include/boost/predef/language/stdcpp.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/language/stdcpp.h" 2 3 4 # 56 "/usr/include/boost/predef/language/stdcpp.h" 3 4 # 92 "/usr/include/boost/predef/language/stdcpp.h" 3 4 # 121 "/usr/include/boost/predef/language/stdcpp.h" 3 4 # 13 "/usr/include/boost/predef/language.h" 2 3 4 # 1 "/usr/include/boost/predef/language/objc.h" 1 3 4 # 12 "/usr/include/boost/predef/language/objc.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/language/objc.h" 2 3 4 # 40 "/usr/include/boost/predef/language/objc.h" 3 4 # 14 "/usr/include/boost/predef/language.h" 2 3 4 # 12 "/usr/include/boost/predef.h" 2 3 4 # 1 "/usr/include/boost/predef/architecture.h" 1 3 4 # 11 "/usr/include/boost/predef/architecture.h" 3 4 # 1 "/usr/include/boost/predef/architecture/alpha.h" 1 3 4 # 12 "/usr/include/boost/predef/architecture/alpha.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/architecture/alpha.h" 2 3 4 # 57 "/usr/include/boost/predef/architecture/alpha.h" 3 4 # 12 "/usr/include/boost/predef/architecture.h" 2 3 4 # 1 "/usr/include/boost/predef/architecture/arm.h" 1 3 4 # 14 "/usr/include/boost/predef/architecture/arm.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 15 "/usr/include/boost/predef/architecture/arm.h" 2 3 4 # 68 "/usr/include/boost/predef/architecture/arm.h" 3 4 # 13 "/usr/include/boost/predef/architecture.h" 2 3 4 # 1 "/usr/include/boost/predef/architecture/blackfin.h" 1 3 4 # 12 "/usr/include/boost/predef/architecture/blackfin.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/architecture/blackfin.h" 2 3 4 # 44 "/usr/include/boost/predef/architecture/blackfin.h" 3 4 # 14 "/usr/include/boost/predef/architecture.h" 2 3 4 # 1 "/usr/include/boost/predef/architecture/convex.h" 1 3 4 # 12 "/usr/include/boost/predef/architecture/convex.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/architecture/convex.h" 2 3 4 # 63 "/usr/include/boost/predef/architecture/convex.h" 3 4 # 15 "/usr/include/boost/predef/architecture.h" 2 3 4 # 1 "/usr/include/boost/predef/architecture/ia64.h" 1 3 4 # 12 "/usr/include/boost/predef/architecture/ia64.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/architecture/ia64.h" 2 3 4 # 47 "/usr/include/boost/predef/architecture/ia64.h" 3 4 # 16 "/usr/include/boost/predef/architecture.h" 2 3 4 # 1 "/usr/include/boost/predef/architecture/m68k.h" 1 3 4 # 12 "/usr/include/boost/predef/architecture/m68k.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/architecture/m68k.h" 2 3 4 # 80 "/usr/include/boost/predef/architecture/m68k.h" 3 4 # 17 "/usr/include/boost/predef/architecture.h" 2 3 4 # 1 "/usr/include/boost/predef/architecture/mips.h" 1 3 4 # 12 "/usr/include/boost/predef/architecture/mips.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/architecture/mips.h" 2 3 4 # 71 "/usr/include/boost/predef/architecture/mips.h" 3 4 # 18 "/usr/include/boost/predef/architecture.h" 2 3 4 # 1 "/usr/include/boost/predef/architecture/parisc.h" 1 3 4 # 12 "/usr/include/boost/predef/architecture/parisc.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/architecture/parisc.h" 2 3 4 # 62 "/usr/include/boost/predef/architecture/parisc.h" 3 4 # 19 "/usr/include/boost/predef/architecture.h" 2 3 4 # 1 "/usr/include/boost/predef/architecture/ppc.h" 1 3 4 # 12 "/usr/include/boost/predef/architecture/ppc.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/architecture/ppc.h" 2 3 4 # 70 "/usr/include/boost/predef/architecture/ppc.h" 3 4 # 20 "/usr/include/boost/predef/architecture.h" 2 3 4 # 1 "/usr/include/boost/predef/architecture/pyramid.h" 1 3 4 # 12 "/usr/include/boost/predef/architecture/pyramid.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/architecture/pyramid.h" 2 3 4 # 40 "/usr/include/boost/predef/architecture/pyramid.h" 3 4 # 21 "/usr/include/boost/predef/architecture.h" 2 3 4 # 1 "/usr/include/boost/predef/architecture/rs6k.h" 1 3 4 # 12 "/usr/include/boost/predef/architecture/rs6k.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/architecture/rs6k.h" 2 3 4 # 46 "/usr/include/boost/predef/architecture/rs6k.h" 3 4 # 22 "/usr/include/boost/predef/architecture.h" 2 3 4 # 1 "/usr/include/boost/predef/architecture/sparc.h" 1 3 4 # 12 "/usr/include/boost/predef/architecture/sparc.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/architecture/sparc.h" 2 3 4 # 52 "/usr/include/boost/predef/architecture/sparc.h" 3 4 # 23 "/usr/include/boost/predef/architecture.h" 2 3 4 # 1 "/usr/include/boost/predef/architecture/superh.h" 1 3 4 # 12 "/usr/include/boost/predef/architecture/superh.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/architecture/superh.h" 2 3 4 # 65 "/usr/include/boost/predef/architecture/superh.h" 3 4 # 24 "/usr/include/boost/predef/architecture.h" 2 3 4 # 1 "/usr/include/boost/predef/architecture/sys370.h" 1 3 4 # 12 "/usr/include/boost/predef/architecture/sys370.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/architecture/sys370.h" 2 3 4 # 41 "/usr/include/boost/predef/architecture/sys370.h" 3 4 # 25 "/usr/include/boost/predef/architecture.h" 2 3 4 # 1 "/usr/include/boost/predef/architecture/sys390.h" 1 3 4 # 12 "/usr/include/boost/predef/architecture/sys390.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/architecture/sys390.h" 2 3 4 # 41 "/usr/include/boost/predef/architecture/sys390.h" 3 4 # 26 "/usr/include/boost/predef/architecture.h" 2 3 4 # 1 "/usr/include/boost/predef/architecture/x86.h" 1 3 4 # 11 "/usr/include/boost/predef/architecture/x86.h" 3 4 # 1 "/usr/include/boost/predef/architecture/x86/32.h" 1 3 4 # 12 "/usr/include/boost/predef/architecture/x86/32.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/architecture/x86/32.h" 2 3 4 # 83 "/usr/include/boost/predef/architecture/x86/32.h" 3 4 # 1 "/usr/include/boost/predef/architecture/x86.h" 1 3 4 # 86 "/usr/include/boost/predef/architecture/x86/32.h" 2 3 4 # 12 "/usr/include/boost/predef/architecture/x86.h" 2 3 4 # 1 "/usr/include/boost/predef/architecture/x86/64.h" 1 3 4 # 12 "/usr/include/boost/predef/architecture/x86/64.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/architecture/x86/64.h" 2 3 4 # 46 "/usr/include/boost/predef/architecture/x86/64.h" 3 4 # 13 "/usr/include/boost/predef/architecture/x86.h" 2 3 4 # 36 "/usr/include/boost/predef/architecture/x86.h" 3 4 # 27 "/usr/include/boost/predef/architecture.h" 2 3 4 # 1 "/usr/include/boost/predef/architecture/z.h" 1 3 4 # 12 "/usr/include/boost/predef/architecture/z.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/architecture/z.h" 2 3 4 # 40 "/usr/include/boost/predef/architecture/z.h" 3 4 # 28 "/usr/include/boost/predef/architecture.h" 2 3 4 # 13 "/usr/include/boost/predef.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler.h" 1 3 4 # 11 "/usr/include/boost/predef/compiler.h" 3 4 # 1 "/usr/include/boost/predef/compiler/borland.h" 1 3 4 # 12 "/usr/include/boost/predef/compiler/borland.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/compiler/borland.h" 2 3 4 # 56 "/usr/include/boost/predef/compiler/borland.h" 3 4 # 12 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/clang.h" 1 3 4 # 12 "/usr/include/boost/predef/compiler/clang.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/compiler/clang.h" 2 3 4 # 49 "/usr/include/boost/predef/compiler/clang.h" 3 4 # 13 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/comeau.h" 1 3 4 # 12 "/usr/include/boost/predef/compiler/comeau.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/compiler/comeau.h" 2 3 4 # 54 "/usr/include/boost/predef/compiler/comeau.h" 3 4 # 14 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/compaq.h" 1 3 4 # 12 "/usr/include/boost/predef/compiler/compaq.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/compiler/compaq.h" 2 3 4 # 59 "/usr/include/boost/predef/compiler/compaq.h" 3 4 # 15 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/diab.h" 1 3 4 # 12 "/usr/include/boost/predef/compiler/diab.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/compiler/diab.h" 2 3 4 # 49 "/usr/include/boost/predef/compiler/diab.h" 3 4 # 16 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/digitalmars.h" 1 3 4 # 12 "/usr/include/boost/predef/compiler/digitalmars.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/compiler/digitalmars.h" 2 3 4 # 49 "/usr/include/boost/predef/compiler/digitalmars.h" 3 4 # 17 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/dignus.h" 1 3 4 # 12 "/usr/include/boost/predef/compiler/dignus.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/compiler/dignus.h" 2 3 4 # 49 "/usr/include/boost/predef/compiler/dignus.h" 3 4 # 18 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/edg.h" 1 3 4 # 12 "/usr/include/boost/predef/compiler/edg.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/compiler/edg.h" 2 3 4 # 49 "/usr/include/boost/predef/compiler/edg.h" 3 4 # 19 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/ekopath.h" 1 3 4 # 12 "/usr/include/boost/predef/compiler/ekopath.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/compiler/ekopath.h" 2 3 4 # 50 "/usr/include/boost/predef/compiler/ekopath.h" 3 4 # 20 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/gcc_xml.h" 1 3 4 # 12 "/usr/include/boost/predef/compiler/gcc_xml.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/compiler/gcc_xml.h" 2 3 4 # 46 "/usr/include/boost/predef/compiler/gcc_xml.h" 3 4 # 21 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/gcc.h" 1 3 4 # 16 "/usr/include/boost/predef/compiler/gcc.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 17 "/usr/include/boost/predef/compiler/gcc.h" 2 3 4 # 55 "/usr/include/boost/predef/compiler/gcc.h" 3 4 # 1 "/usr/include/boost/predef/detail/comp_detected.h" 1 3 4 # 56 "/usr/include/boost/predef/compiler/gcc.h" 2 3 4 # 22 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/greenhills.h" 1 3 4 # 12 "/usr/include/boost/predef/compiler/greenhills.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/compiler/greenhills.h" 2 3 4 # 59 "/usr/include/boost/predef/compiler/greenhills.h" 3 4 # 23 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/hp_acc.h" 1 3 4 # 12 "/usr/include/boost/predef/compiler/hp_acc.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/compiler/hp_acc.h" 2 3 4 # 54 "/usr/include/boost/predef/compiler/hp_acc.h" 3 4 # 24 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/iar.h" 1 3 4 # 12 "/usr/include/boost/predef/compiler/iar.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/compiler/iar.h" 2 3 4 # 49 "/usr/include/boost/predef/compiler/iar.h" 3 4 # 25 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/ibm.h" 1 3 4 # 12 "/usr/include/boost/predef/compiler/ibm.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/compiler/ibm.h" 2 3 4 # 65 "/usr/include/boost/predef/compiler/ibm.h" 3 4 # 26 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/intel.h" 1 3 4 # 12 "/usr/include/boost/predef/compiler/intel.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/compiler/intel.h" 2 3 4 # 58 "/usr/include/boost/predef/compiler/intel.h" 3 4 # 27 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/kai.h" 1 3 4 # 12 "/usr/include/boost/predef/compiler/kai.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/compiler/kai.h" 2 3 4 # 49 "/usr/include/boost/predef/compiler/kai.h" 3 4 # 28 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/llvm.h" 1 3 4 # 16 "/usr/include/boost/predef/compiler/llvm.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 17 "/usr/include/boost/predef/compiler/llvm.h" 2 3 4 # 50 "/usr/include/boost/predef/compiler/llvm.h" 3 4 # 29 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/metaware.h" 1 3 4 # 12 "/usr/include/boost/predef/compiler/metaware.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/compiler/metaware.h" 2 3 4 # 46 "/usr/include/boost/predef/compiler/metaware.h" 3 4 # 30 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/metrowerks.h" 1 3 4 # 12 "/usr/include/boost/predef/compiler/metrowerks.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/compiler/metrowerks.h" 2 3 4 # 70 "/usr/include/boost/predef/compiler/metrowerks.h" 3 4 # 31 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/microtec.h" 1 3 4 # 12 "/usr/include/boost/predef/compiler/microtec.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/compiler/microtec.h" 2 3 4 # 46 "/usr/include/boost/predef/compiler/microtec.h" 3 4 # 32 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/mpw.h" 1 3 4 # 12 "/usr/include/boost/predef/compiler/mpw.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/compiler/mpw.h" 2 3 4 # 56 "/usr/include/boost/predef/compiler/mpw.h" 3 4 # 33 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/palm.h" 1 3 4 # 12 "/usr/include/boost/predef/compiler/palm.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/compiler/palm.h" 2 3 4 # 49 "/usr/include/boost/predef/compiler/palm.h" 3 4 # 34 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/pgi.h" 1 3 4 # 12 "/usr/include/boost/predef/compiler/pgi.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/compiler/pgi.h" 2 3 4 # 53 "/usr/include/boost/predef/compiler/pgi.h" 3 4 # 35 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/sgi_mipspro.h" 1 3 4 # 12 "/usr/include/boost/predef/compiler/sgi_mipspro.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/compiler/sgi_mipspro.h" 2 3 4 # 59 "/usr/include/boost/predef/compiler/sgi_mipspro.h" 3 4 # 36 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/sunpro.h" 1 3 4 # 12 "/usr/include/boost/predef/compiler/sunpro.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/compiler/sunpro.h" 2 3 4 # 59 "/usr/include/boost/predef/compiler/sunpro.h" 3 4 # 37 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/tendra.h" 1 3 4 # 12 "/usr/include/boost/predef/compiler/tendra.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/compiler/tendra.h" 2 3 4 # 46 "/usr/include/boost/predef/compiler/tendra.h" 3 4 # 38 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/visualc.h" 1 3 4 # 16 "/usr/include/boost/predef/compiler/visualc.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 17 "/usr/include/boost/predef/compiler/visualc.h" 2 3 4 # 71 "/usr/include/boost/predef/compiler/visualc.h" 3 4 # 39 "/usr/include/boost/predef/compiler.h" 2 3 4 # 1 "/usr/include/boost/predef/compiler/watcom.h" 1 3 4 # 12 "/usr/include/boost/predef/compiler/watcom.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/compiler/watcom.h" 2 3 4 # 49 "/usr/include/boost/predef/compiler/watcom.h" 3 4 # 40 "/usr/include/boost/predef/compiler.h" 2 3 4 # 14 "/usr/include/boost/predef.h" 2 3 4 # 1 "/usr/include/boost/predef/library.h" 1 3 4 # 11 "/usr/include/boost/predef/library.h" 3 4 # 1 "/usr/include/boost/predef/library/c.h" 1 3 4 # 14 "/usr/include/boost/predef/library/c.h" 3 4 # 1 "/usr/include/boost/predef/library/c/uc.h" 1 3 4 # 14 "/usr/include/boost/predef/library/c/uc.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 15 "/usr/include/boost/predef/library/c/uc.h" 2 3 4 # 45 "/usr/include/boost/predef/library/c/uc.h" 3 4 # 15 "/usr/include/boost/predef/library/c.h" 2 3 4 # 1 "/usr/include/boost/predef/library/c/vms.h" 1 3 4 # 14 "/usr/include/boost/predef/library/c/vms.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 15 "/usr/include/boost/predef/library/c/vms.h" 2 3 4 # 45 "/usr/include/boost/predef/library/c/vms.h" 3 4 # 16 "/usr/include/boost/predef/library/c.h" 2 3 4 # 1 "/usr/include/boost/predef/library/c/zos.h" 1 3 4 # 14 "/usr/include/boost/predef/library/c/zos.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 15 "/usr/include/boost/predef/library/c/zos.h" 2 3 4 # 54 "/usr/include/boost/predef/library/c/zos.h" 3 4 # 17 "/usr/include/boost/predef/library/c.h" 2 3 4 # 12 "/usr/include/boost/predef/library.h" 2 3 4 # 1 "/usr/include/boost/predef/library/std.h" 1 3 4 # 10 "/usr/include/boost/predef/library/std.h" 3 4 # 1 "/usr/include/boost/predef/library/std/_prefix.h" 1 3 4 # 21 "/usr/include/boost/predef/library/std/_prefix.h" 3 4 # 1 "/usr/include/boost/predef/detail/_exception.h" 1 3 4 # 22 "/usr/include/boost/predef/library/std/_prefix.h" 2 3 4 # 11 "/usr/include/boost/predef/library/std.h" 2 3 4 # 1 "/usr/include/boost/predef/library/std/cxx.h" 1 3 4 # 14 "/usr/include/boost/predef/library/std/cxx.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 15 "/usr/include/boost/predef/library/std/cxx.h" 2 3 4 # 44 "/usr/include/boost/predef/library/std/cxx.h" 3 4 # 13 "/usr/include/boost/predef/library/std.h" 2 3 4 # 1 "/usr/include/boost/predef/library/std/dinkumware.h" 1 3 4 # 14 "/usr/include/boost/predef/library/std/dinkumware.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 15 "/usr/include/boost/predef/library/std/dinkumware.h" 2 3 4 # 50 "/usr/include/boost/predef/library/std/dinkumware.h" 3 4 # 14 "/usr/include/boost/predef/library/std.h" 2 3 4 # 1 "/usr/include/boost/predef/library/std/libcomo.h" 1 3 4 # 14 "/usr/include/boost/predef/library/std/libcomo.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 15 "/usr/include/boost/predef/library/std/libcomo.h" 2 3 4 # 45 "/usr/include/boost/predef/library/std/libcomo.h" 3 4 # 15 "/usr/include/boost/predef/library/std.h" 2 3 4 # 1 "/usr/include/boost/predef/library/std/modena.h" 1 3 4 # 14 "/usr/include/boost/predef/library/std/modena.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 15 "/usr/include/boost/predef/library/std/modena.h" 2 3 4 # 43 "/usr/include/boost/predef/library/std/modena.h" 3 4 # 16 "/usr/include/boost/predef/library/std.h" 2 3 4 # 1 "/usr/include/boost/predef/library/std/msl.h" 1 3 4 # 14 "/usr/include/boost/predef/library/std/msl.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 15 "/usr/include/boost/predef/library/std/msl.h" 2 3 4 # 51 "/usr/include/boost/predef/library/std/msl.h" 3 4 # 17 "/usr/include/boost/predef/library/std.h" 2 3 4 # 1 "/usr/include/boost/predef/library/std/roguewave.h" 1 3 4 # 14 "/usr/include/boost/predef/library/std/roguewave.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 15 "/usr/include/boost/predef/library/std/roguewave.h" 2 3 4 # 54 "/usr/include/boost/predef/library/std/roguewave.h" 3 4 # 18 "/usr/include/boost/predef/library/std.h" 2 3 4 # 1 "/usr/include/boost/predef/library/std/sgi.h" 1 3 4 # 14 "/usr/include/boost/predef/library/std/sgi.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 15 "/usr/include/boost/predef/library/std/sgi.h" 2 3 4 # 49 "/usr/include/boost/predef/library/std/sgi.h" 3 4 # 19 "/usr/include/boost/predef/library/std.h" 2 3 4 # 1 "/usr/include/boost/predef/library/std/stdcpp3.h" 1 3 4 # 14 "/usr/include/boost/predef/library/std/stdcpp3.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 15 "/usr/include/boost/predef/library/std/stdcpp3.h" 2 3 4 # 51 "/usr/include/boost/predef/library/std/stdcpp3.h" 3 4 # 20 "/usr/include/boost/predef/library/std.h" 2 3 4 # 1 "/usr/include/boost/predef/library/std/stlport.h" 1 3 4 # 14 "/usr/include/boost/predef/library/std/stlport.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 15 "/usr/include/boost/predef/library/std/stlport.h" 2 3 4 # 57 "/usr/include/boost/predef/library/std/stlport.h" 3 4 # 21 "/usr/include/boost/predef/library/std.h" 2 3 4 # 1 "/usr/include/boost/predef/library/std/vacpp.h" 1 3 4 # 14 "/usr/include/boost/predef/library/std/vacpp.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 15 "/usr/include/boost/predef/library/std/vacpp.h" 2 3 4 # 42 "/usr/include/boost/predef/library/std/vacpp.h" 3 4 # 22 "/usr/include/boost/predef/library/std.h" 2 3 4 # 13 "/usr/include/boost/predef/library.h" 2 3 4 # 15 "/usr/include/boost/predef.h" 2 3 4 # 1 "/usr/include/boost/predef/os.h" 1 3 4 # 12 "/usr/include/boost/predef/os.h" 3 4 # 1 "/usr/include/boost/predef/os/aix.h" 1 3 4 # 12 "/usr/include/boost/predef/os/aix.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/os/aix.h" 2 3 4 # 64 "/usr/include/boost/predef/os/aix.h" 3 4 # 13 "/usr/include/boost/predef/os.h" 2 3 4 # 1 "/usr/include/boost/predef/os/amigaos.h" 1 3 4 # 12 "/usr/include/boost/predef/os/amigaos.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/os/amigaos.h" 2 3 4 # 44 "/usr/include/boost/predef/os/amigaos.h" 3 4 # 14 "/usr/include/boost/predef/os.h" 2 3 4 # 1 "/usr/include/boost/predef/os/android.h" 1 3 4 # 12 "/usr/include/boost/predef/os/android.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/os/android.h" 2 3 4 # 43 "/usr/include/boost/predef/os/android.h" 3 4 # 15 "/usr/include/boost/predef/os.h" 2 3 4 # 1 "/usr/include/boost/predef/os/beos.h" 1 3 4 # 12 "/usr/include/boost/predef/os/beos.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/os/beos.h" 2 3 4 # 43 "/usr/include/boost/predef/os/beos.h" 3 4 # 16 "/usr/include/boost/predef/os.h" 2 3 4 # 1 "/usr/include/boost/predef/os/cygwin.h" 1 3 4 # 12 "/usr/include/boost/predef/os/cygwin.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/os/cygwin.h" 2 3 4 # 43 "/usr/include/boost/predef/os/cygwin.h" 3 4 # 18 "/usr/include/boost/predef/os.h" 2 3 4 # 1 "/usr/include/boost/predef/os/hpux.h" 1 3 4 # 12 "/usr/include/boost/predef/os/hpux.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/os/hpux.h" 2 3 4 # 45 "/usr/include/boost/predef/os/hpux.h" 3 4 # 19 "/usr/include/boost/predef/os.h" 2 3 4 # 1 "/usr/include/boost/predef/os/irix.h" 1 3 4 # 12 "/usr/include/boost/predef/os/irix.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/os/irix.h" 2 3 4 # 44 "/usr/include/boost/predef/os/irix.h" 3 4 # 20 "/usr/include/boost/predef/os.h" 2 3 4 # 1 "/usr/include/boost/predef/os/linux.h" 1 3 4 # 12 "/usr/include/boost/predef/os/linux.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/os/linux.h" 2 3 4 # 38 "/usr/include/boost/predef/os/linux.h" 3 4 # 1 "/usr/include/boost/predef/detail/os_detected.h" 1 3 4 # 39 "/usr/include/boost/predef/os/linux.h" 2 3 4 # 22 "/usr/include/boost/predef/os.h" 2 3 4 # 1 "/usr/include/boost/predef/os/os400.h" 1 3 4 # 12 "/usr/include/boost/predef/os/os400.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/os/os400.h" 2 3 4 # 43 "/usr/include/boost/predef/os/os400.h" 3 4 # 24 "/usr/include/boost/predef/os.h" 2 3 4 # 1 "/usr/include/boost/predef/os/qnxnto.h" 1 3 4 # 12 "/usr/include/boost/predef/os/qnxnto.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/os/qnxnto.h" 2 3 4 # 57 "/usr/include/boost/predef/os/qnxnto.h" 3 4 # 25 "/usr/include/boost/predef/os.h" 2 3 4 # 1 "/usr/include/boost/predef/os/solaris.h" 1 3 4 # 12 "/usr/include/boost/predef/os/solaris.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/os/solaris.h" 2 3 4 # 44 "/usr/include/boost/predef/os/solaris.h" 3 4 # 26 "/usr/include/boost/predef/os.h" 2 3 4 # 1 "/usr/include/boost/predef/os/unix.h" 1 3 4 # 12 "/usr/include/boost/predef/os/unix.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/os/unix.h" 2 3 4 # 73 "/usr/include/boost/predef/os/unix.h" 3 4 # 27 "/usr/include/boost/predef/os.h" 2 3 4 # 1 "/usr/include/boost/predef/os/vms.h" 1 3 4 # 12 "/usr/include/boost/predef/os/vms.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/os/vms.h" 2 3 4 # 50 "/usr/include/boost/predef/os/vms.h" 3 4 # 28 "/usr/include/boost/predef/os.h" 2 3 4 # 1 "/usr/include/boost/predef/os/windows.h" 1 3 4 # 12 "/usr/include/boost/predef/os/windows.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/os/windows.h" 2 3 4 # 49 "/usr/include/boost/predef/os/windows.h" 3 4 # 29 "/usr/include/boost/predef/os.h" 2 3 4 # 16 "/usr/include/boost/predef.h" 2 3 4 # 1 "/usr/include/boost/predef/other.h" 1 3 4 # 17 "/usr/include/boost/predef.h" 2 3 4 # 1 "/usr/include/boost/predef/platform.h" 1 3 4 # 12 "/usr/include/boost/predef/platform.h" 3 4 # 1 "/usr/include/boost/predef/platform/mingw.h" 1 3 4 # 12 "/usr/include/boost/predef/platform/mingw.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/platform/mingw.h" 2 3 4 # 62 "/usr/include/boost/predef/platform/mingw.h" 3 4 # 13 "/usr/include/boost/predef/platform.h" 2 3 4 # 1 "/usr/include/boost/predef/platform/windows_desktop.h" 1 3 4 # 12 "/usr/include/boost/predef/platform/windows_desktop.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/platform/windows_desktop.h" 2 3 4 # 42 "/usr/include/boost/predef/platform/windows_desktop.h" 3 4 # 14 "/usr/include/boost/predef/platform.h" 2 3 4 # 1 "/usr/include/boost/predef/platform/windows_store.h" 1 3 4 # 12 "/usr/include/boost/predef/platform/windows_store.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/platform/windows_store.h" 2 3 4 # 40 "/usr/include/boost/predef/platform/windows_store.h" 3 4 # 15 "/usr/include/boost/predef/platform.h" 2 3 4 # 1 "/usr/include/boost/predef/platform/windows_phone.h" 1 3 4 # 12 "/usr/include/boost/predef/platform/windows_phone.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/platform/windows_phone.h" 2 3 4 # 40 "/usr/include/boost/predef/platform/windows_phone.h" 3 4 # 16 "/usr/include/boost/predef/platform.h" 2 3 4 # 1 "/usr/include/boost/predef/platform/windows_runtime.h" 1 3 4 # 12 "/usr/include/boost/predef/platform/windows_runtime.h" 3 4 # 1 "/usr/include/boost/predef/make.h" 1 3 4 # 13 "/usr/include/boost/predef/platform/windows_runtime.h" 2 3 4 # 42 "/usr/include/boost/predef/platform/windows_runtime.h" 3 4 # 17 "/usr/include/boost/predef/platform.h" 2 3 4 # 18 "/usr/include/boost/predef.h" 2 3 4 # 29 "/usr/include/boost/smart_ptr/detail/yield_k.hpp" 2 3 4 # 110 "/usr/include/boost/smart_ptr/detail/yield_k.hpp" 3 4 namespace boost { namespace detail { inline void yield( unsigned k ) { if( k < 4 ) { } else if( k < 16 ) { __asm__ __volatile__( "rep; nop" : : : "memory" ); } else if( k < 32 || k & 1 ) { sched_yield(); } else { struct timespec rqtp = { 0, 0 }; rqtp.tv_sec = 0; rqtp.tv_nsec = 1000; nanosleep( &rqtp, 0 ); } } } } # 19 "/usr/include/boost/smart_ptr/detail/spinlock_sync.hpp" 2 3 4 namespace boost { namespace detail { class spinlock { public: int v_; public: bool try_lock() { int r = __sync_lock_test_and_set( &v_, 1 ); return r == 0; } void lock() { for( unsigned k = 0; !try_lock(); ++k ) { boost::detail::yield( k ); } } void unlock() { __sync_lock_release( &v_ ); } public: class scoped_lock { private: spinlock & sp_; scoped_lock( scoped_lock const & ); scoped_lock & operator=( scoped_lock const & ); public: explicit scoped_lock( spinlock & sp ): sp_( sp ) { sp.lock(); } ~scoped_lock() { sp_.unlock(); } }; }; } } # 51 "/usr/include/boost/smart_ptr/detail/spinlock.hpp" 2 3 4 # 26 "/usr/include/boost/smart_ptr/detail/spinlock_pool.hpp" 2 3 4 namespace boost { namespace detail { template< int I > class spinlock_pool { private: static spinlock pool_[ 41 ]; public: static spinlock & spinlock_for( void const * pv ) { std::size_t i = reinterpret_cast< std::size_t >( pv ) % 41; return pool_[ i ]; } class scoped_lock { private: spinlock & sp_; scoped_lock( scoped_lock const & ); scoped_lock & operator=( scoped_lock const & ); public: explicit scoped_lock( void const * pv ): sp_( spinlock_for( pv ) ) { sp_.lock(); } ~scoped_lock() { sp_.unlock(); } }; }; template< int I > spinlock spinlock_pool< I >::pool_[ 41 ] = { {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0} }; } } # 35 "/usr/include/boost/smart_ptr/shared_ptr.hpp" 2 3 4 # 50 "/usr/include/boost/smart_ptr/shared_ptr.hpp" 3 4 namespace boost { template class shared_ptr; template class weak_ptr; template class enable_shared_from_this; class enable_shared_from_raw; namespace detail { template< class T > struct sp_element { typedef T type; }; template< class T > struct sp_element< T[] > { typedef T type; }; template< class T, std::size_t N > struct sp_element< T[N] > { typedef T type; }; template< class T > struct sp_dereference { typedef T & type; }; template<> struct sp_dereference< void > { typedef void type; }; template<> struct sp_dereference< void const > { typedef void type; }; template<> struct sp_dereference< void volatile > { typedef void type; }; template<> struct sp_dereference< void const volatile > { typedef void type; }; template< class T > struct sp_dereference< T[] > { typedef void type; }; template< class T, std::size_t N > struct sp_dereference< T[N] > { typedef void type; }; template< class T > struct sp_member_access { typedef T * type; }; template< class T > struct sp_member_access< T[] > { typedef void type; }; template< class T, std::size_t N > struct sp_member_access< T[N] > { typedef void type; }; template< class T > struct sp_array_access { typedef void type; }; template< class T > struct sp_array_access< T[] > { typedef T & type; }; template< class T, std::size_t N > struct sp_array_access< T[N] > { typedef T & type; }; template< class T > struct sp_extent { enum _vt { value = 0 }; }; template< class T, std::size_t N > struct sp_extent< T[N] > { enum _vt { value = N }; }; template< class X, class Y, class T > inline void sp_enable_shared_from_this( boost::shared_ptr const * ppx, Y const * py, boost::enable_shared_from_this< T > const * pe ) { if( pe != 0 ) { pe->_internal_accept_owner( ppx, const_cast< Y* >( py ) ); } } template< class X, class Y > inline void sp_enable_shared_from_this( boost::shared_ptr * ppx, Y const * py, boost::enable_shared_from_raw const * pe ); # 228 "/usr/include/boost/smart_ptr/shared_ptr.hpp" 3 4 inline void sp_enable_shared_from_this( ... ) { } template< class T, class R > struct sp_enable_if_auto_ptr { }; template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T >, R > { typedef R type; }; template< class Y, class T > inline void sp_assert_convertible() { typedef char tmp[ sp_convertible< Y, T >::value? 1: -1 ]; (void)sizeof( tmp ); } template< class T, class Y > inline void sp_pointer_construct( boost::shared_ptr< T > * ppx, Y * p, boost::detail::shared_count & pn ) { boost::detail::shared_count( p ).swap( pn ); boost::detail::sp_enable_shared_from_this( ppx, p, p ); } template< class T, class Y > inline void sp_pointer_construct( boost::shared_ptr< T[] > * , Y * p, boost::detail::shared_count & pn ) { sp_assert_convertible< Y[], T[] >(); boost::detail::shared_count( p, boost::checked_array_deleter< T >() ).swap( pn ); } template< class T, std::size_t N, class Y > inline void sp_pointer_construct( boost::shared_ptr< T[N] > * , Y * p, boost::detail::shared_count & pn ) { sp_assert_convertible< Y[N], T[N] >(); boost::detail::shared_count( p, boost::checked_array_deleter< T >() ).swap( pn ); } template< class T, class Y > inline void sp_deleter_construct( boost::shared_ptr< T > * ppx, Y * p ) { boost::detail::sp_enable_shared_from_this( ppx, p, p ); } template< class T, class Y > inline void sp_deleter_construct( boost::shared_ptr< T[] > * , Y * ) { sp_assert_convertible< Y[], T[] >(); } template< class T, std::size_t N, class Y > inline void sp_deleter_construct( boost::shared_ptr< T[N] > * , Y * ) { sp_assert_convertible< Y[N], T[N] >(); } } # 323 "/usr/include/boost/smart_ptr/shared_ptr.hpp" 3 4 template class shared_ptr { private: typedef shared_ptr this_type; public: typedef typename boost::detail::sp_element< T >::type element_type; shared_ptr() : px( 0 ), pn() { } # 346 "/usr/include/boost/smart_ptr/shared_ptr.hpp" 3 4 template explicit shared_ptr( Y * p ): px( p ), pn() { boost::detail::sp_pointer_construct( this, p, pn ); } template shared_ptr( Y * p, D d ): px( p ), pn( p, d ) { boost::detail::sp_deleter_construct( this, p ); } # 373 "/usr/include/boost/smart_ptr/shared_ptr.hpp" 3 4 template shared_ptr( Y * p, D d, A a ): px( p ), pn( p, d, a ) { boost::detail::sp_deleter_construct( this, p ); } # 398 "/usr/include/boost/smart_ptr/shared_ptr.hpp" 3 4 template explicit shared_ptr( weak_ptr const & r ): pn( r.pn ) { boost::detail::sp_assert_convertible< Y, T >(); px = r.px; } template shared_ptr( weak_ptr const & r, boost::detail::sp_nothrow_tag ) : px( 0 ), pn( r.pn, boost::detail::sp_nothrow_tag() ) { if( !pn.empty() ) { px = r.px; } } template shared_ptr( shared_ptr const & r, typename boost::detail::sp_enable_if_convertible::type = boost::detail::sp_empty() ) : px( r.px ), pn( r.pn ) { boost::detail::sp_assert_convertible< Y, T >(); } template< class Y > shared_ptr( shared_ptr const & r, element_type * p ) : px( p ), pn( r.pn ) { } template explicit shared_ptr( std::auto_ptr & r ): px(r.get()), pn() { boost::detail::sp_assert_convertible< Y, T >(); Y * tmp = r.get(); pn = boost::detail::shared_count( r ); boost::detail::sp_deleter_construct( this, tmp ); } # 466 "/usr/include/boost/smart_ptr/shared_ptr.hpp" 3 4 template explicit shared_ptr( Ap r, typename boost::detail::sp_enable_if_auto_ptr::type = 0 ): px( r.get() ), pn() { typedef typename Ap::element_type Y; boost::detail::sp_assert_convertible< Y, T >(); Y * tmp = r.get(); pn = boost::detail::shared_count( r ); boost::detail::sp_deleter_construct( this, tmp ); } # 500 "/usr/include/boost/smart_ptr/shared_ptr.hpp" 3 4 shared_ptr & operator=( shared_ptr const & r ) { this_type(r).swap(*this); return *this; } template shared_ptr & operator=(shared_ptr const & r) { this_type(r).swap(*this); return *this; } template shared_ptr & operator=( std::auto_ptr & r ) { this_type( r ).swap( *this ); return *this; } # 537 "/usr/include/boost/smart_ptr/shared_ptr.hpp" 3 4 template typename boost::detail::sp_enable_if_auto_ptr< Ap, shared_ptr & >::type operator=( Ap r ) { this_type( r ).swap( *this ); return *this; } # 612 "/usr/include/boost/smart_ptr/shared_ptr.hpp" 3 4 void reset() { this_type().swap(*this); } template void reset( Y * p ) { ((p == 0 || p != px) ? static_cast (0) : __assert_fail ("p == 0 || p != px", "/usr/include/boost/smart_ptr/shared_ptr.hpp", 619, __PRETTY_FUNCTION__)); this_type( p ).swap( *this ); } template void reset( Y * p, D d ) { this_type( p, d ).swap( *this ); } template void reset( Y * p, D d, A a ) { this_type( p, d, a ).swap( *this ); } template void reset( shared_ptr const & r, element_type * p ) { this_type( r, p ).swap( *this ); } typename boost::detail::sp_dereference< T >::type operator* () const { ((px != 0) ? static_cast (0) : __assert_fail ("px != 0", "/usr/include/boost/smart_ptr/shared_ptr.hpp", 641, __PRETTY_FUNCTION__)); return *px; } typename boost::detail::sp_member_access< T >::type operator-> () const { ((px != 0) ? static_cast (0) : __assert_fail ("px != 0", "/usr/include/boost/smart_ptr/shared_ptr.hpp", 648, __PRETTY_FUNCTION__)); return px; } typename boost::detail::sp_array_access< T >::type operator[] ( std::ptrdiff_t i ) const { ((px != 0) ? static_cast (0) : __assert_fail ("px != 0", "/usr/include/boost/smart_ptr/shared_ptr.hpp", 655, __PRETTY_FUNCTION__)); ((i >= 0 && ( i < boost::detail::sp_extent< T >::value || boost::detail::sp_extent< T >::value == 0 )) ? static_cast (0) : __assert_fail ("i >= 0 && ( i < boost::detail::sp_extent< T >::value || boost::detail::sp_extent< T >::value == 0 )", "/usr/include/boost/smart_ptr/shared_ptr.hpp", 656, __PRETTY_FUNCTION__)); return px[ i ]; } element_type * get() const { return px; } # 1 "/usr/include/boost/smart_ptr/detail/operator_bool.hpp" 1 3 4 # 50 "/usr/include/boost/smart_ptr/detail/operator_bool.hpp" 3 4 typedef element_type * this_type::*unspecified_bool_type; operator unspecified_bool_type() const { return px == 0? 0: &this_type::px; } bool operator! () const { return px == 0; } # 668 "/usr/include/boost/smart_ptr/shared_ptr.hpp" 2 3 4 bool unique() const { return pn.unique(); } long use_count() const { return pn.use_count(); } void swap( shared_ptr & other ) { std::swap(px, other.px); pn.swap(other.pn); } template bool owner_before( shared_ptr const & rhs ) const { return pn < rhs.pn; } template bool owner_before( weak_ptr const & rhs ) const { return pn < rhs.pn; } void * _internal_get_deleter( boost::detail::sp_typeinfo const & ti ) const { return pn.get_deleter( ti ); } void * _internal_get_untyped_deleter() const { return pn.get_untyped_deleter(); } bool _internal_equiv( shared_ptr const & r ) const { return px == r.px && pn == r.pn; } private: template friend class shared_ptr; template friend class weak_ptr; element_type * px; boost::detail::shared_count pn; }; template inline bool operator==(shared_ptr const & a, shared_ptr const & b) { return a.get() == b.get(); } template inline bool operator!=(shared_ptr const & a, shared_ptr const & b) { return a.get() != b.get(); } # 773 "/usr/include/boost/smart_ptr/shared_ptr.hpp" 3 4 template inline bool operator<(shared_ptr const & a, shared_ptr const & b) { return a.owner_before( b ); } template inline void swap(shared_ptr & a, shared_ptr & b) { a.swap(b); } template shared_ptr static_pointer_cast( shared_ptr const & r ) { (void) static_cast< T* >( static_cast< U* >( 0 ) ); typedef typename shared_ptr::element_type E; E * p = static_cast< E* >( r.get() ); return shared_ptr( r, p ); } template shared_ptr const_pointer_cast( shared_ptr const & r ) { (void) const_cast< T* >( static_cast< U* >( 0 ) ); typedef typename shared_ptr::element_type E; E * p = const_cast< E* >( r.get() ); return shared_ptr( r, p ); } template shared_ptr dynamic_pointer_cast( shared_ptr const & r ) { (void) dynamic_cast< T* >( static_cast< U* >( 0 ) ); typedef typename shared_ptr::element_type E; E * p = dynamic_cast< E* >( r.get() ); return p? shared_ptr( r, p ): shared_ptr(); } template shared_ptr reinterpret_pointer_cast( shared_ptr const & r ) { (void) reinterpret_cast< T* >( static_cast< U* >( 0 ) ); typedef typename shared_ptr::element_type E; E * p = reinterpret_cast< E* >( r.get() ); return shared_ptr( r, p ); } template inline typename shared_ptr::element_type * get_pointer(shared_ptr const & p) { return p.get(); } # 852 "/usr/include/boost/smart_ptr/shared_ptr.hpp" 3 4 template std::basic_ostream & operator<< (std::basic_ostream & os, shared_ptr const & p) { os << p.get(); return os; } # 867 "/usr/include/boost/smart_ptr/shared_ptr.hpp" 3 4 namespace detail { # 885 "/usr/include/boost/smart_ptr/shared_ptr.hpp" 3 4 template D * basic_get_deleter( shared_ptr const & p ) { return static_cast( p._internal_get_deleter(typeid(D)) ); } class esft2_deleter_wrapper { private: shared_ptr deleter_; public: esft2_deleter_wrapper() { } template< class T > void set_deleter( shared_ptr const & deleter ) { deleter_ = deleter; } template D* get_deleter() const { return boost::detail::basic_get_deleter( deleter_ ); } template< class T> void operator()( T* ) { ((deleter_.use_count() <= 1) ? static_cast (0) : __assert_fail ("deleter_.use_count() <= 1", "/usr/include/boost/smart_ptr/shared_ptr.hpp", 916, __PRETTY_FUNCTION__)); deleter_.reset(); } }; } template D * get_deleter( shared_ptr const & p ) { D *del = boost::detail::basic_get_deleter(p); if(del == 0) { boost::detail::esft2_deleter_wrapper *del_wrapper = boost::detail::basic_get_deleter(p); if(del_wrapper) del = del_wrapper->::boost::detail::esft2_deleter_wrapper::get_deleter(); } return del; } template inline bool atomic_is_lock_free( shared_ptr const * ) { return false; } template shared_ptr atomic_load( shared_ptr const * p ) { boost::detail::spinlock_pool<2>::scoped_lock lock( p ); return *p; } template inline shared_ptr atomic_load_explicit( shared_ptr const * p, int ) { return atomic_load( p ); } template void atomic_store( shared_ptr * p, shared_ptr r ) { boost::detail::spinlock_pool<2>::scoped_lock lock( p ); p->swap( r ); } template inline void atomic_store_explicit( shared_ptr * p, shared_ptr r, int ) { atomic_store( p, r ); } template shared_ptr atomic_exchange( shared_ptr * p, shared_ptr r ) { boost::detail::spinlock & sp = boost::detail::spinlock_pool<2>::spinlock_for( p ); sp.lock(); p->swap( r ); sp.unlock(); return r; } template shared_ptr atomic_exchange_explicit( shared_ptr * p, shared_ptr r, int ) { return atomic_exchange( p, r ); } template bool atomic_compare_exchange( shared_ptr * p, shared_ptr * v, shared_ptr w ) { boost::detail::spinlock & sp = boost::detail::spinlock_pool<2>::spinlock_for( p ); sp.lock(); if( p->_internal_equiv( *v ) ) { p->swap( w ); sp.unlock(); return true; } else { shared_ptr tmp( *p ); sp.unlock(); tmp.swap( *v ); return false; } } template inline bool atomic_compare_exchange_explicit( shared_ptr * p, shared_ptr * v, shared_ptr w, int, int ) { return atomic_compare_exchange( p, v, w ); } template< class T > struct hash; template< class T > std::size_t hash_value( boost::shared_ptr const & p ) { return boost::hash< T* >()( p.get() ); } } # 18 "/usr/include/boost/shared_ptr.hpp" 2 3 4 # 6 "namespaces.hh" 2 # 1 "/usr/include/boost/shared_array.hpp" 1 3 4 # 17 "/usr/include/boost/shared_array.hpp" 3 4 # 1 "/usr/include/boost/smart_ptr/shared_array.hpp" 1 3 4 # 21 "/usr/include/boost/smart_ptr/shared_array.hpp" 3 4 # 1 "/usr/include/boost/assert.hpp" 1 3 4 # 54 "/usr/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 64 "/usr/include/assert.h" 3 4 extern "C" { extern void __assert_fail (const char *__assertion, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert_perror_fail (int __errnum, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert (const char *__assertion, const char *__file, int __line) throw () __attribute__ ((__noreturn__)); } # 55 "/usr/include/boost/assert.hpp" 2 3 4 # 22 "/usr/include/boost/smart_ptr/shared_array.hpp" 2 3 4 # 33 "/usr/include/boost/smart_ptr/shared_array.hpp" 3 4 namespace boost { # 44 "/usr/include/boost/smart_ptr/shared_array.hpp" 3 4 template class shared_array { private: typedef checked_array_deleter deleter; typedef shared_array this_type; public: typedef T element_type; shared_array() : px( 0 ), pn() { } # 68 "/usr/include/boost/smart_ptr/shared_array.hpp" 3 4 template explicit shared_array( Y * p ): px( p ), pn( p, checked_array_deleter() ) { boost::detail::sp_assert_convertible< Y[], T[] >(); } template shared_array( Y * p, D d ): px( p ), pn( p, d ) { boost::detail::sp_assert_convertible< Y[], T[] >(); } template shared_array( Y * p, D d, A a ): px( p ), pn( p, d, a ) { boost::detail::sp_assert_convertible< Y[], T[] >(); } # 112 "/usr/include/boost/smart_ptr/shared_array.hpp" 3 4 template shared_array( shared_array const & r, typename boost::detail::sp_enable_if_convertible< Y[], T[] >::type = boost::detail::sp_empty() ) : px( r.px ), pn( r.pn ) { boost::detail::sp_assert_convertible< Y[], T[] >(); } template< class Y > shared_array( shared_array const & r, element_type * p ) : px( p ), pn( r.pn ) { } shared_array & operator=( shared_array const & r ) { this_type( r ).swap( *this ); return *this; } template shared_array & operator=( shared_array const & r ) { this_type( r ).swap( *this ); return *this; } # 170 "/usr/include/boost/smart_ptr/shared_array.hpp" 3 4 void reset() { this_type().swap( *this ); } template void reset( Y * p ) { ((p == 0 || p != px) ? static_cast (0) : __assert_fail ("p == 0 || p != px", "/usr/include/boost/smart_ptr/shared_array.hpp", 177, __PRETTY_FUNCTION__)); this_type( p ).swap( *this ); } template void reset( Y * p, D d ) { this_type( p, d ).swap( *this ); } template void reset( Y * p, D d, A a ) { this_type( p, d, a ).swap( *this ); } template void reset( shared_array const & r, element_type * p ) { this_type( r, p ).swap( *this ); } T & operator[] (std::ptrdiff_t i) const { ((px != 0) ? static_cast (0) : __assert_fail ("px != 0", "/usr/include/boost/smart_ptr/shared_array.hpp", 198, __PRETTY_FUNCTION__)); ((i >= 0) ? static_cast (0) : __assert_fail ("i >= 0", "/usr/include/boost/smart_ptr/shared_array.hpp", 199, __PRETTY_FUNCTION__)); return px[i]; } T * get() const { return px; } # 1 "/usr/include/boost/smart_ptr/detail/operator_bool.hpp" 1 3 4 # 50 "/usr/include/boost/smart_ptr/detail/operator_bool.hpp" 3 4 typedef element_type * this_type::*unspecified_bool_type; operator unspecified_bool_type() const { return px == 0? 0: &this_type::px; } bool operator! () const { return px == 0; } # 210 "/usr/include/boost/smart_ptr/shared_array.hpp" 2 3 4 bool unique() const { return pn.unique(); } long use_count() const { return pn.use_count(); } void swap(shared_array & other) { std::swap(px, other.px); pn.swap(other.pn); } void * _internal_get_deleter( boost::detail::sp_typeinfo const & ti ) const { return pn.get_deleter( ti ); } private: template friend class shared_array; T * px; detail::shared_count pn; }; template inline bool operator==(shared_array const & a, shared_array const & b) { return a.get() == b.get(); } template inline bool operator!=(shared_array const & a, shared_array const & b) { return a.get() != b.get(); } # 275 "/usr/include/boost/smart_ptr/shared_array.hpp" 3 4 template inline bool operator<(shared_array const & a, shared_array const & b) { return std::less()(a.get(), b.get()); } template void swap(shared_array & a, shared_array & b) { a.swap(b); } template< class D, class T > D * get_deleter( shared_array const & p ) { return static_cast< D * >( p._internal_get_deleter( typeid(D) ) ); } } # 18 "/usr/include/boost/shared_array.hpp" 2 3 4 # 7 "namespaces.hh" 2 # 1 "/usr/include/boost/scoped_array.hpp" 1 3 4 # 14 "/usr/include/boost/scoped_array.hpp" 3 4 # 1 "/usr/include/boost/smart_ptr/scoped_array.hpp" 1 3 4 # 15 "/usr/include/boost/smart_ptr/scoped_array.hpp" 3 4 # 1 "/usr/include/boost/assert.hpp" 1 3 4 # 54 "/usr/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 64 "/usr/include/assert.h" 3 4 extern "C" { extern void __assert_fail (const char *__assertion, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert_perror_fail (int __errnum, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert (const char *__assertion, const char *__file, int __line) throw () __attribute__ ((__noreturn__)); } # 55 "/usr/include/boost/assert.hpp" 2 3 4 # 16 "/usr/include/boost/smart_ptr/scoped_array.hpp" 2 3 4 namespace boost { # 39 "/usr/include/boost/smart_ptr/scoped_array.hpp" 3 4 template class scoped_array { private: T * px; scoped_array(scoped_array const &); scoped_array & operator=(scoped_array const &); typedef scoped_array this_type; void operator==( scoped_array const& ) const; void operator!=( scoped_array const& ) const; public: typedef T element_type; explicit scoped_array( T * p = 0 ) : px( p ) { } ~scoped_array() { boost::checked_array_delete( px ); } void reset(T * p = 0) { ((p == 0 || p != px) ? static_cast (0) : __assert_fail ("p == 0 || p != px", "/usr/include/boost/smart_ptr/scoped_array.hpp", 74, __PRETTY_FUNCTION__)); this_type(p).swap(*this); } T & operator[](std::ptrdiff_t i) const { ((px != 0) ? static_cast (0) : __assert_fail ("px != 0", "/usr/include/boost/smart_ptr/scoped_array.hpp", 80, __PRETTY_FUNCTION__)); ((i >= 0) ? static_cast (0) : __assert_fail ("i >= 0", "/usr/include/boost/smart_ptr/scoped_array.hpp", 81, __PRETTY_FUNCTION__)); return px[i]; } T * get() const { return px; } # 1 "/usr/include/boost/smart_ptr/detail/operator_bool.hpp" 1 3 4 # 50 "/usr/include/boost/smart_ptr/detail/operator_bool.hpp" 3 4 typedef element_type * this_type::*unspecified_bool_type; operator unspecified_bool_type() const { return px == 0? 0: &this_type::px; } bool operator! () const { return px == 0; } # 92 "/usr/include/boost/smart_ptr/scoped_array.hpp" 2 3 4 void swap(scoped_array & b) { T * tmp = b.px; b.px = px; px = tmp; } }; # 125 "/usr/include/boost/smart_ptr/scoped_array.hpp" 3 4 template inline void swap(scoped_array & a, scoped_array & b) { a.swap(b); } } # 15 "/usr/include/boost/scoped_array.hpp" 2 3 4 # 8 "namespaces.hh" 2 # 1 "/usr/include/boost/optional.hpp" 1 3 4 # 15 "/usr/include/boost/optional.hpp" 3 4 # 1 "/usr/include/boost/optional/optional.hpp" 1 3 4 # 25 "/usr/include/boost/optional/optional.hpp" 3 4 # 1 "/usr/include/boost/assert.hpp" 1 3 4 # 54 "/usr/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 64 "/usr/include/assert.h" 3 4 extern "C" { extern void __assert_fail (const char *__assertion, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert_perror_fail (int __errnum, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert (const char *__assertion, const char *__file, int __line) throw () __attribute__ ((__noreturn__)); } # 55 "/usr/include/boost/assert.hpp" 2 3 4 # 26 "/usr/include/boost/optional/optional.hpp" 2 3 4 # 1 "/usr/include/boost/core/explicit_operator_bool.hpp" 1 3 4 # 24 "/usr/include/boost/core/explicit_operator_bool.hpp" 3 4 # 77 "/usr/include/boost/core/explicit_operator_bool.hpp" 3 4 namespace boost { namespace detail { struct unspecified_bool { struct OPERATORS_NOT_ALLOWED; static void true_value(OPERATORS_NOT_ALLOWED*) {} }; typedef void (*unspecified_bool_type)(unspecified_bool::OPERATORS_NOT_ALLOWED*); # 108 "/usr/include/boost/core/explicit_operator_bool.hpp" 3 4 } } # 27 "/usr/include/boost/optional/optional.hpp" 2 3 4 # 1 "/usr/include/boost/optional/bad_optional_access.hpp" 1 3 4 # 20 "/usr/include/boost/optional/bad_optional_access.hpp" 3 4 namespace boost { class bad_optional_access : public std::logic_error { public: bad_optional_access() : std::logic_error("Attempted to access the value of an uninitialized optional object.") {} }; } # 28 "/usr/include/boost/optional/optional.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/has_nothrow_constructor.hpp" 1 3 4 # 12 "/usr/include/boost/type_traits/has_nothrow_constructor.hpp" 3 4 # 1 "/usr/include/boost/type_traits/has_trivial_constructor.hpp" 1 3 4 # 18 "/usr/include/boost/type_traits/has_trivial_constructor.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 19 "/usr/include/boost/type_traits/has_trivial_constructor.hpp" 2 3 4 namespace boost { namespace detail { template struct has_trivial_ctor_impl { static const bool value = (::boost::type_traits::ice_or< ::boost::is_pod::value, ((__has_trivial_constructor(T) ) && ! ::boost::is_volatile::value) >::value) ; }; } template< typename T > struct has_trivial_constructor : public ::boost::integral_constant::value> { public: }; template< typename T > struct has_trivial_default_constructor : public ::boost::integral_constant::value> { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 50 "/usr/include/boost/type_traits/has_trivial_constructor.hpp" 2 3 4 # 13 "/usr/include/boost/type_traits/has_nothrow_constructor.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 16 "/usr/include/boost/type_traits/has_nothrow_constructor.hpp" 2 3 4 namespace boost { namespace detail{ template struct has_nothrow_constructor_imp{ static const bool value = (__has_nothrow_constructor(T) ); }; } template< typename T > struct has_nothrow_constructor : public ::boost::integral_constant::value> { public: }; template< typename T > struct has_nothrow_default_constructor : public ::boost::integral_constant::value> { public: }; template<> struct has_nothrow_constructor< void > : public ::boost::integral_constant { public: }; template<> struct has_nothrow_constructor< void const > : public ::boost::integral_constant { public: }; template<> struct has_nothrow_constructor< void const volatile > : public ::boost::integral_constant { public: }; template<> struct has_nothrow_constructor< void volatile > : public ::boost::integral_constant { public: }; template<> struct has_nothrow_default_constructor< void > : public ::boost::integral_constant { public: }; template<> struct has_nothrow_default_constructor< void const > : public ::boost::integral_constant { public: }; template<> struct has_nothrow_default_constructor< void const volatile > : public ::boost::integral_constant { public: }; template<> struct has_nothrow_default_constructor< void volatile > : public ::boost::integral_constant { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 52 "/usr/include/boost/type_traits/has_nothrow_constructor.hpp" 2 3 4 # 33 "/usr/include/boost/optional/optional.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/decay.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/decay.hpp" 3 4 # 1 "/usr/include/boost/type_traits/remove_bounds.hpp" 1 3 4 # 17 "/usr/include/boost/type_traits/remove_bounds.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/type_trait_def.hpp" 2 3 4 # 18 "/usr/include/boost/type_traits/remove_bounds.hpp" 2 3 4 namespace boost { template< typename T > struct remove_bounds { public: typedef T type; }; template< typename T, std::size_t N > struct remove_bounds { public: typedef T type; }; template< typename T, std::size_t N > struct remove_bounds { public: typedef T const type; }; template< typename T, std::size_t N > struct remove_bounds { public: typedef T volatile type; }; template< typename T, std::size_t N > struct remove_bounds { public: typedef T const volatile type; }; template< typename T > struct remove_bounds { public: typedef T type; }; template< typename T > struct remove_bounds { public: typedef T const type; }; template< typename T > struct remove_bounds { public: typedef T volatile type; }; template< typename T > struct remove_bounds { public: typedef T const volatile type; }; } # 1 "/usr/include/boost/type_traits/detail/type_trait_undef.hpp" 1 3 4 # 39 "/usr/include/boost/type_traits/remove_bounds.hpp" 2 3 4 # 16 "/usr/include/boost/type_traits/decay.hpp" 2 3 4 namespace boost { template< class T > struct decay { private: typedef typename remove_reference::type Ty; public: typedef typename mpl::eval_if< is_array, mpl::identity::type*>, typename mpl::eval_if< is_function, add_pointer, mpl::identity > >::type type; }; } # 37 "/usr/include/boost/optional/optional.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/is_nothrow_move_assignable.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/is_nothrow_move_assignable.hpp" 3 4 # 1 "/usr/include/boost/type_traits/has_trivial_move_assign.hpp" 1 3 4 # 22 "/usr/include/boost/type_traits/has_trivial_move_assign.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 23 "/usr/include/boost/type_traits/has_trivial_move_assign.hpp" 2 3 4 namespace boost { namespace detail { template struct has_trivial_move_assign_impl { static const bool value = (::boost::type_traits::ice_and< ::boost::is_pod::value, ::boost::type_traits::ice_not< ::boost::is_const::value >::value, ::boost::type_traits::ice_not< ::boost::is_volatile::value >::value >::value) ; }; } template< typename T > struct has_trivial_move_assign : public ::boost::integral_constant::value> { public: }; template<> struct has_trivial_move_assign< void > : public ::boost::integral_constant { public: }; template<> struct has_trivial_move_assign< void const > : public ::boost::integral_constant { public: }; template<> struct has_trivial_move_assign< void const volatile > : public ::boost::integral_constant { public: }; template<> struct has_trivial_move_assign< void volatile > : public ::boost::integral_constant { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 56 "/usr/include/boost/type_traits/has_trivial_move_assign.hpp" 2 3 4 # 16 "/usr/include/boost/type_traits/is_nothrow_move_assignable.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/has_nothrow_assign.hpp" 1 3 4 # 12 "/usr/include/boost/type_traits/has_nothrow_assign.hpp" 3 4 # 1 "/usr/include/boost/type_traits/has_trivial_assign.hpp" 1 3 4 # 22 "/usr/include/boost/type_traits/has_trivial_assign.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 23 "/usr/include/boost/type_traits/has_trivial_assign.hpp" 2 3 4 namespace boost { namespace detail { template struct has_trivial_assign_impl { static const bool value = ((__has_trivial_assign(T) ) && ! ::boost::is_volatile::value && ! ::boost::is_const::value); # 41 "/usr/include/boost/type_traits/has_trivial_assign.hpp" 3 4 }; } template< typename T > struct has_trivial_assign : public ::boost::integral_constant::value> { public: }; template<> struct has_trivial_assign< void > : public ::boost::integral_constant { public: }; template<> struct has_trivial_assign< void const > : public ::boost::integral_constant { public: }; template<> struct has_trivial_assign< void const volatile > : public ::boost::integral_constant { public: }; template<> struct has_trivial_assign< void volatile > : public ::boost::integral_constant { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 56 "/usr/include/boost/type_traits/has_trivial_assign.hpp" 2 3 4 # 13 "/usr/include/boost/type_traits/has_nothrow_assign.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 16 "/usr/include/boost/type_traits/has_nothrow_assign.hpp" 2 3 4 namespace boost { namespace detail{ template struct has_nothrow_assign_imp{ static const bool value = ((__has_nothrow_assign(T) ) && !is_volatile::value && !is_const::value); }; } template< typename T > struct has_nothrow_assign : public ::boost::integral_constant::value> { public: }; template<> struct has_nothrow_assign< void > : public ::boost::integral_constant { public: }; template<> struct has_nothrow_assign< void const > : public ::boost::integral_constant { public: }; template<> struct has_nothrow_assign< void const volatile > : public ::boost::integral_constant { public: }; template<> struct has_nothrow_assign< void volatile > : public ::boost::integral_constant { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 43 "/usr/include/boost/type_traits/has_nothrow_assign.hpp" 2 3 4 # 17 "/usr/include/boost/type_traits/is_nothrow_move_assignable.hpp" 2 3 4 # 1 "/usr/include/boost/utility/declval.hpp" 1 3 4 # 37 "/usr/include/boost/utility/declval.hpp" 3 4 namespace boost { template typename add_rvalue_reference::type declval() ; } # 24 "/usr/include/boost/type_traits/is_nothrow_move_assignable.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 27 "/usr/include/boost/type_traits/is_nothrow_move_assignable.hpp" 2 3 4 namespace boost { namespace detail{ # 64 "/usr/include/boost/type_traits/is_nothrow_move_assignable.hpp" 3 4 template struct is_nothrow_move_assignable_imp{ static const bool value = ( ::boost::type_traits::ice_and< ::boost::type_traits::ice_or< ::boost::has_trivial_move_assign::value, ::boost::has_nothrow_assign::value >::value, ::boost::type_traits::ice_not< ::boost::is_array::value >::value >::value) ; }; } template< typename T > struct is_nothrow_move_assignable : public ::boost::integral_constant::value> { public: }; template<> struct is_nothrow_move_assignable< void > : public ::boost::integral_constant { public: }; template<> struct is_nothrow_move_assignable< void const > : public ::boost::integral_constant { public: }; template<> struct is_nothrow_move_assignable< void const volatile > : public ::boost::integral_constant { public: }; template<> struct is_nothrow_move_assignable< void volatile > : public ::boost::integral_constant { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 91 "/usr/include/boost/type_traits/is_nothrow_move_assignable.hpp" 2 3 4 # 40 "/usr/include/boost/optional/optional.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/is_nothrow_move_constructible.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/is_nothrow_move_constructible.hpp" 3 4 # 1 "/usr/include/boost/type_traits/has_trivial_move_constructor.hpp" 1 3 4 # 22 "/usr/include/boost/type_traits/has_trivial_move_constructor.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 23 "/usr/include/boost/type_traits/has_trivial_move_constructor.hpp" 2 3 4 namespace boost { namespace detail { template struct has_trivial_move_ctor_impl { static const bool value = (::boost::type_traits::ice_and< ::boost::is_pod::value, ::boost::type_traits::ice_not< ::boost::is_volatile::value >::value >::value) ; }; } template< typename T > struct has_trivial_move_constructor : public ::boost::integral_constant::value> { public: }; template<> struct has_trivial_move_constructor< void > : public ::boost::integral_constant { public: }; template<> struct has_trivial_move_constructor< void const > : public ::boost::integral_constant { public: }; template<> struct has_trivial_move_constructor< void const volatile > : public ::boost::integral_constant { public: }; template<> struct has_trivial_move_constructor< void volatile > : public ::boost::integral_constant { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 56 "/usr/include/boost/type_traits/has_trivial_move_constructor.hpp" 2 3 4 # 16 "/usr/include/boost/type_traits/is_nothrow_move_constructible.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/has_nothrow_copy.hpp" 1 3 4 # 12 "/usr/include/boost/type_traits/has_nothrow_copy.hpp" 3 4 # 1 "/usr/include/boost/type_traits/has_trivial_copy.hpp" 1 3 4 # 25 "/usr/include/boost/type_traits/has_trivial_copy.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 26 "/usr/include/boost/type_traits/has_trivial_copy.hpp" 2 3 4 namespace boost { namespace detail { template struct has_trivial_copy_impl { static const bool value = ((__has_trivial_copy(T) ) && !is_reference::value && ! ::boost::is_volatile::value); # 47 "/usr/include/boost/type_traits/has_trivial_copy.hpp" 3 4 }; # 59 "/usr/include/boost/type_traits/has_trivial_copy.hpp" 3 4 } template< typename T > struct has_trivial_copy : public ::boost::integral_constant::value> { public: }; template< typename T > struct has_trivial_copy_constructor : public ::boost::integral_constant::value> { public: }; template<> struct has_trivial_copy< void > : public ::boost::integral_constant { public: }; template<> struct has_trivial_copy< void const > : public ::boost::integral_constant { public: }; template<> struct has_trivial_copy< void const volatile > : public ::boost::integral_constant { public: }; template<> struct has_trivial_copy< void volatile > : public ::boost::integral_constant { public: }; template<> struct has_trivial_copy_constructor< void > : public ::boost::integral_constant { public: }; template<> struct has_trivial_copy_constructor< void const > : public ::boost::integral_constant { public: }; template<> struct has_trivial_copy_constructor< void const volatile > : public ::boost::integral_constant { public: }; template<> struct has_trivial_copy_constructor< void volatile > : public ::boost::integral_constant { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 81 "/usr/include/boost/type_traits/has_trivial_copy.hpp" 2 3 4 # 13 "/usr/include/boost/type_traits/has_nothrow_copy.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 16 "/usr/include/boost/type_traits/has_nothrow_copy.hpp" 2 3 4 namespace boost { namespace detail{ template struct has_nothrow_copy_imp{ static const bool value = ((__has_nothrow_copy(T) ) && !is_volatile::value && !is_reference::value); }; } template< typename T > struct has_nothrow_copy : public ::boost::integral_constant::value> { public: }; template< typename T > struct has_nothrow_copy_constructor : public ::boost::integral_constant::value> { public: }; template<> struct has_nothrow_copy< void > : public ::boost::integral_constant { public: }; template<> struct has_nothrow_copy< void const > : public ::boost::integral_constant { public: }; template<> struct has_nothrow_copy< void const volatile > : public ::boost::integral_constant { public: }; template<> struct has_nothrow_copy< void volatile > : public ::boost::integral_constant { public: }; template<> struct has_nothrow_copy_constructor< void > : public ::boost::integral_constant { public: }; template<> struct has_nothrow_copy_constructor< void const > : public ::boost::integral_constant { public: }; template<> struct has_nothrow_copy_constructor< void const volatile > : public ::boost::integral_constant { public: }; template<> struct has_nothrow_copy_constructor< void volatile > : public ::boost::integral_constant { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 52 "/usr/include/boost/type_traits/has_nothrow_copy.hpp" 2 3 4 # 17 "/usr/include/boost/type_traits/is_nothrow_move_constructible.hpp" 2 3 4 # 25 "/usr/include/boost/type_traits/is_nothrow_move_constructible.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 26 "/usr/include/boost/type_traits/is_nothrow_move_constructible.hpp" 2 3 4 namespace boost { namespace detail{ # 61 "/usr/include/boost/type_traits/is_nothrow_move_constructible.hpp" 3 4 template struct is_nothrow_move_constructible_imp{ static const bool value =( ::boost::type_traits::ice_and< ::boost::type_traits::ice_or< ::boost::has_trivial_move_constructor::value, ::boost::has_nothrow_copy::value >::value, ::boost::type_traits::ice_not< ::boost::is_array::value >::value >::value) ; }; } template< typename T > struct is_nothrow_move_constructible : public ::boost::integral_constant::value> { public: }; template<> struct is_nothrow_move_constructible< void > : public ::boost::integral_constant { public: }; template<> struct is_nothrow_move_constructible< void const > : public ::boost::integral_constant { public: }; template<> struct is_nothrow_move_constructible< void const volatile > : public ::boost::integral_constant { public: }; template<> struct is_nothrow_move_constructible< void volatile > : public ::boost::integral_constant { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 89 "/usr/include/boost/type_traits/is_nothrow_move_constructible.hpp" 2 3 4 # 41 "/usr/include/boost/optional/optional.hpp" 2 3 4 # 1 "/usr/include/boost/detail/reference_content.hpp" 1 3 4 # 23 "/usr/include/boost/detail/reference_content.hpp" 3 4 namespace boost { namespace detail { template class reference_content { private: RefT content_; public: ~reference_content() { } reference_content(RefT r) : content_( r ) { } reference_content(const reference_content& operand) : content_( operand.content_ ) { } private: reference_content& operator=(const reference_content&); public: RefT get() const { return content_; } }; template struct make_reference_content; template struct make_reference_content { typedef T type; }; template struct make_reference_content< T& > { typedef reference_content type; }; template <> struct make_reference_content< mpl::void_ > { template struct apply : make_reference_content { }; typedef mpl::void_ type; }; } template struct has_nothrow_copy< ::boost::detail::reference_content< T& > > : mpl::true_ { }; } # 48 "/usr/include/boost/optional/optional.hpp" 2 3 4 # 1 "/usr/include/boost/move/utility.hpp" 1 3 4 # 19 "/usr/include/boost/move/utility.hpp" 3 4 # 1 "/usr/include/boost/move/detail/config_begin.hpp" 1 3 4 # 20 "/usr/include/boost/move/utility.hpp" 2 3 4 # 1 "/usr/include/boost/move/utility_core.hpp" 1 3 4 # 20 "/usr/include/boost/move/utility_core.hpp" 3 4 # 1 "/usr/include/boost/move/detail/config_begin.hpp" 1 3 4 # 21 "/usr/include/boost/move/utility_core.hpp" 2 3 4 # 1 "/usr/include/boost/move/core.hpp" 1 3 4 # 19 "/usr/include/boost/move/core.hpp" 3 4 # 1 "/usr/include/boost/move/detail/config_begin.hpp" 1 3 4 # 20 "/usr/include/boost/move/core.hpp" 2 3 4 # 45 "/usr/include/boost/move/core.hpp" 3 4 # 1 "/usr/include/boost/move/detail/meta_utils.hpp" 1 3 4 # 17 "/usr/include/boost/move/detail/meta_utils.hpp" 3 4 # 1 "/usr/include/boost/move/detail/config_begin.hpp" 1 3 4 # 18 "/usr/include/boost/move/detail/meta_utils.hpp" 2 3 4 namespace boost { template class rv; namespace move_detail { struct nat{}; template struct natify{}; template struct if_c { typedef T1 type; }; template struct if_c { typedef T2 type; }; template struct if_ { typedef typename if_c<0 != T1::value, T2, T3>::type type; }; template struct enable_if_c { typedef T type; }; template struct enable_if_c {}; template struct enable_if : public enable_if_c {}; template struct disable_if : public enable_if_c {}; template struct integral_constant { static const T value = v; typedef T value_type; typedef integral_constant type; }; typedef integral_constant true_type; typedef integral_constant false_type; template struct identity { typedef T type; }; template struct remove_reference { typedef T type; }; template struct remove_reference { typedef T type; }; # 136 "/usr/include/boost/move/detail/meta_utils.hpp" 3 4 template struct remove_reference< rv > { typedef T type; }; template struct remove_reference< rv &> { typedef T type; }; template struct remove_reference< const rv &> { typedef T type; }; template struct add_const { typedef const T type; }; template struct add_const { typedef const T& type; }; # 185 "/usr/include/boost/move/detail/meta_utils.hpp" 3 4 template struct add_lvalue_reference { typedef T& type; }; template struct add_lvalue_reference { typedef T& type; }; template<> struct add_lvalue_reference { typedef void type; }; template<> struct add_lvalue_reference { typedef const void type; }; template<> struct add_lvalue_reference { typedef volatile void type; }; template<> struct add_lvalue_reference { typedef const volatile void type; }; template struct add_const_lvalue_reference { typedef typename remove_reference::type t_unreferenced; typedef typename add_const::type t_unreferenced_const; typedef typename add_lvalue_reference ::type type; }; template struct is_same { static const bool value = false; }; template struct is_same { static const bool value = true; }; template struct is_lvalue_reference { static const bool value = false; }; template struct is_lvalue_reference { static const bool value = true; }; template struct is_class_or_union { struct twochar { char _[2]; }; template static char is_class_or_union_tester(void(U::*)(void)); template static twochar is_class_or_union_tester(...); static const bool value = sizeof(is_class_or_union_tester(0)) == sizeof(char); }; template struct addr_impl_ref { T & v_; inline addr_impl_ref( T & v ): v_( v ) {} inline operator T& () const { return v_; } private: addr_impl_ref & operator=(const addr_impl_ref &); }; template struct addressof_impl { static inline T * f( T & v, long ) { return reinterpret_cast( &const_cast(reinterpret_cast(v))); } static inline T * f( T * v, int ) { return v; } }; template inline T * addressof( T & v ) { return ::boost::move_detail::addressof_impl::f ( ::boost::move_detail::addr_impl_ref( v ), 0 ); } template struct has_pointer_type { struct two { char c[2]; }; template static two test(...); template static char test(typename U::pointer* = 0); static const bool value = sizeof(test(0)) == 1; }; # 336 "/usr/include/boost/move/detail/meta_utils.hpp" 3 4 template class is_convertible { typedef typename add_lvalue_reference::type t_reference; typedef char true_t; class false_t { char dummy[2]; }; static false_t dispatch(...); static true_t dispatch(U); static t_reference trigger(); public: static const bool value = sizeof(dispatch(trigger())) == sizeof(true_t); }; # 356 "/usr/include/boost/move/detail/meta_utils.hpp" 3 4 template struct has_move_emulation_enabled_impl : is_convertible< T, ::boost::rv& > {}; template struct has_move_emulation_enabled_impl { static const bool value = false; }; template struct has_move_emulation_enabled_impl< ::boost::rv > { static const bool value = false; }; template struct is_rv_impl { static const bool value = false; }; template struct is_rv_impl< rv > { static const bool value = true; }; template struct is_rv_impl< const rv > { static const bool value = true; }; template< class T > struct is_rvalue_reference { static const bool value = false; }; # 401 "/usr/include/boost/move/detail/meta_utils.hpp" 3 4 template< class T > struct is_rvalue_reference< boost::rv& > { static const bool value = true; }; template< class T > struct is_rvalue_reference< const boost::rv& > { static const bool value = true; }; # 419 "/usr/include/boost/move/detail/meta_utils.hpp" 3 4 namespace detail_add_rvalue_reference { template< class T , bool emulation = has_move_emulation_enabled_impl::value , bool rv = is_rv_impl::value > struct add_rvalue_reference_impl { typedef T type; }; template< class T, bool emulation> struct add_rvalue_reference_impl< T, emulation, true > { typedef T & type; }; template< class T, bool rv > struct add_rvalue_reference_impl< T, true, rv > { typedef ::boost::rv& type; }; } template< class T > struct add_rvalue_reference : detail_add_rvalue_reference::add_rvalue_reference_impl { }; template< class T > struct add_rvalue_reference { typedef T & type; }; template< class T > struct remove_rvalue_reference { typedef T type; }; template< class T > struct remove_rvalue_reference< rv > { typedef T type; }; template< class T > struct remove_rvalue_reference< const rv > { typedef T type; }; template< class T > struct remove_rvalue_reference< volatile rv > { typedef T type; }; template< class T > struct remove_rvalue_reference< const volatile rv > { typedef T type; }; template< class T > struct remove_rvalue_reference< rv& > { typedef T type; }; template< class T > struct remove_rvalue_reference< const rv& > { typedef T type; }; template< class T > struct remove_rvalue_reference< volatile rv& > { typedef T type; }; template< class T > struct remove_rvalue_reference< const volatile rv& >{ typedef T type; }; # 471 "/usr/include/boost/move/detail/meta_utils.hpp" 3 4 } } # 1 "/usr/include/boost/move/detail/config_end.hpp" 1 3 4 # 475 "/usr/include/boost/move/detail/meta_utils.hpp" 2 3 4 # 46 "/usr/include/boost/move/core.hpp" 2 3 4 # 58 "/usr/include/boost/move/core.hpp" 3 4 namespace boost { template class rv : public ::boost::move_detail::if_c < ::boost::move_detail::is_class_or_union::value , T , ::boost::move_detail::nat >::type { rv(); ~rv() throw(); rv(rv const&); void operator=(rv const&); } __attribute__((__may_alias__)); # 86 "/usr/include/boost/move/core.hpp" 3 4 namespace move_detail { template struct is_rv : integral_constant::value > {}; } template struct has_move_emulation_enabled : ::boost::move_detail::has_move_emulation_enabled_impl {}; } # 157 "/usr/include/boost/move/core.hpp" 3 4 namespace boost { namespace move_detail { template inline typename ::boost::move_detail::enable_if_c < ::boost::move_detail::is_lvalue_reference::value || !::boost::has_move_emulation_enabled::value , T&>::type move_return(T& x) { return x; } template inline typename ::boost::move_detail::enable_if_c < !::boost::move_detail::is_lvalue_reference::value && ::boost::has_move_emulation_enabled::value , ::boost::rv&>::type move_return(T& x) { return *static_cast< ::boost::rv* >(::boost::move_detail::addressof(x)); } template inline typename ::boost::move_detail::enable_if_c < !::boost::move_detail::is_lvalue_reference::value && ::boost::has_move_emulation_enabled::value , ::boost::rv&>::type move_return(::boost::rv& x) { return x; } } } # 239 "/usr/include/boost/move/core.hpp" 3 4 namespace boost{ namespace move_detail{ template< class T> struct forward_type { typedef const T &type; }; template< class T> struct forward_type< boost::rv > { typedef T type; }; }} # 444 "/usr/include/boost/move/core.hpp" 3 4 # 1 "/usr/include/boost/move/detail/config_end.hpp" 1 3 4 # 445 "/usr/include/boost/move/core.hpp" 2 3 4 # 22 "/usr/include/boost/move/utility_core.hpp" 2 3 4 namespace boost { template struct enable_move_utility_emulation { static const bool value = true; }; template inline typename ::boost::move_detail::enable_if_c < enable_move_utility_emulation::value && !has_move_emulation_enabled::value, T&>::type move(T& x) { return x; } template inline typename ::boost::move_detail::enable_if_c < enable_move_utility_emulation::value && has_move_emulation_enabled::value, rv&>::type move(T& x) { return *static_cast* >(::boost::move_detail::addressof(x)); } template inline typename ::boost::move_detail::enable_if_c < enable_move_utility_emulation::value && has_move_emulation_enabled::value, rv&>::type move(rv& x) { return x; } template inline typename ::boost::move_detail::enable_if_c < enable_move_utility_emulation::value && ::boost::move_detail::is_rv::value, T &>::type forward(const typename ::boost::move_detail::identity::type &x) { return const_cast(x); } template inline typename ::boost::move_detail::enable_if_c < enable_move_utility_emulation::value && !::boost::move_detail::is_rv::value, const T &>::type forward(const typename ::boost::move_detail::identity::type &x) { return x; } template inline typename ::boost::move_detail::enable_if_c < enable_move_utility_emulation::value && ::boost::move_detail::is_rv::value , T &>::type move_if_not_lvalue_reference(const typename ::boost::move_detail::identity::type &x) { return const_cast(x); } template inline typename ::boost::move_detail::enable_if_c < enable_move_utility_emulation::value && !::boost::move_detail::is_rv::value && (::boost::move_detail::is_lvalue_reference::value || !has_move_emulation_enabled::value) , typename ::boost::move_detail::add_lvalue_reference::type >::type move_if_not_lvalue_reference(typename ::boost::move_detail::remove_reference::type &x) { return x; } template inline typename ::boost::move_detail::enable_if_c < enable_move_utility_emulation::value && !::boost::move_detail::is_rv::value && (!::boost::move_detail::is_lvalue_reference::value && has_move_emulation_enabled::value) , rv& >::type move_if_not_lvalue_reference(typename ::boost::move_detail::remove_reference::type &x) { return move(x); } } # 273 "/usr/include/boost/move/utility_core.hpp" 3 4 namespace boost{ namespace move_detail{ template void swap(T &a, T &b) { T c((::boost::move(a))); a = ::boost::move(b); b = ::boost::move(c); } template typename boost::move_detail::add_rvalue_reference::type declval(); } } # 1 "/usr/include/boost/move/detail/config_end.hpp" 1 3 4 # 294 "/usr/include/boost/move/utility_core.hpp" 2 3 4 # 21 "/usr/include/boost/move/utility.hpp" 2 3 4 # 1 "/usr/include/boost/move/traits.hpp" 1 3 4 # 17 "/usr/include/boost/move/traits.hpp" 3 4 # 1 "/usr/include/boost/move/detail/config_begin.hpp" 1 3 4 # 18 "/usr/include/boost/move/traits.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/has_trivial_destructor.hpp" 1 3 4 # 18 "/usr/include/boost/type_traits/has_trivial_destructor.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 19 "/usr/include/boost/type_traits/has_trivial_destructor.hpp" 2 3 4 namespace boost { namespace detail { template struct has_trivial_dtor_impl { static const bool value = (__has_trivial_destructor(T) ); }; } template< typename T > struct has_trivial_destructor : public ::boost::integral_constant::value> { public: }; template<> struct has_trivial_destructor< void > : public ::boost::integral_constant { public: }; template<> struct has_trivial_destructor< void const > : public ::boost::integral_constant { public: }; template<> struct has_trivial_destructor< void const volatile > : public ::boost::integral_constant { public: }; template<> struct has_trivial_destructor< void volatile > : public ::boost::integral_constant { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 48 "/usr/include/boost/type_traits/has_trivial_destructor.hpp" 2 3 4 # 19 "/usr/include/boost/move/traits.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/is_copy_constructible.hpp" 1 3 4 # 21 "/usr/include/boost/type_traits/is_copy_constructible.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 22 "/usr/include/boost/type_traits/is_copy_constructible.hpp" 2 3 4 namespace boost { namespace detail{ template struct is_copy_constructible_impl2 { # 50 "/usr/include/boost/type_traits/is_copy_constructible.hpp" 3 4 template static boost::type_traits::no_type test(T1&, typename T1::boost_move_no_copy_constructor_or_assign* = 0); static boost::type_traits::yes_type test(...); # 86 "/usr/include/boost/type_traits/is_copy_constructible.hpp" 3 4 static const bool value = ( sizeof(test( boost::declval::type>() )) == sizeof(boost::type_traits::yes_type) || boost::is_rvalue_reference::value ) ; }; template struct is_copy_constructible_impl2 { static const bool value = false; }; template struct is_copy_constructible_impl { static const bool value = ( boost::detail::is_copy_constructible_impl2< boost::is_base_and_derived::value, T >::value ) ; }; } template< typename T > struct is_copy_constructible : public ::boost::integral_constant::value> { public: }; template<> struct is_copy_constructible< void > : public ::boost::integral_constant { public: }; template<> struct is_copy_constructible< void const > : public ::boost::integral_constant { public: }; template<> struct is_copy_constructible< void const volatile > : public ::boost::integral_constant { public: }; template<> struct is_copy_constructible< void volatile > : public ::boost::integral_constant { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 124 "/usr/include/boost/type_traits/is_copy_constructible.hpp" 2 3 4 # 22 "/usr/include/boost/move/traits.hpp" 2 3 4 namespace boost { # 39 "/usr/include/boost/move/traits.hpp" 3 4 template struct has_trivial_destructor_after_move : ::boost::has_trivial_destructor {}; template struct has_nothrow_move { static const bool value = boost::is_nothrow_move_constructible::value && boost::is_nothrow_move_assignable::value; }; namespace move_detail { template struct is_nothrow_move_constructible_or_uncopyable { static const bool value = boost::is_nothrow_move_constructible::value || has_nothrow_move::value || !boost::is_copy_constructible::value; }; } } # 1 "/usr/include/boost/move/detail/config_end.hpp" 1 3 4 # 71 "/usr/include/boost/move/traits.hpp" 2 3 4 # 22 "/usr/include/boost/move/utility.hpp" 2 3 4 namespace boost { template inline typename ::boost::move_detail::enable_if_c < enable_move_utility_emulation::value && !has_move_emulation_enabled::value , typename ::boost::move_detail::add_const::type & >::type move_if_noexcept(T& x) { return x; } template inline typename ::boost::move_detail::enable_if_c < enable_move_utility_emulation::value && has_move_emulation_enabled::value && ::boost::move_detail::is_nothrow_move_constructible_or_uncopyable::value, rv&>::type move_if_noexcept(T& x) { return *static_cast* >(::boost::move_detail::addressof(x)); } template inline typename ::boost::move_detail::enable_if_c < enable_move_utility_emulation::value && has_move_emulation_enabled::value && ::boost::move_detail::is_nothrow_move_constructible_or_uncopyable::value , rv& >::type move_if_noexcept(rv& x) { return x; } template inline typename ::boost::move_detail::enable_if_c < enable_move_utility_emulation::value && has_move_emulation_enabled::value && !::boost::move_detail::is_nothrow_move_constructible_or_uncopyable::value , typename ::boost::move_detail::add_const::type & >::type move_if_noexcept(T& x) { return x; } template inline typename ::boost::move_detail::enable_if_c < enable_move_utility_emulation::value && has_move_emulation_enabled::value && !::boost::move_detail::is_nothrow_move_constructible_or_uncopyable::value , typename ::boost::move_detail::add_const::type & >::type move_if_noexcept(rv& x) { return x; } } # 139 "/usr/include/boost/move/utility.hpp" 3 4 # 1 "/usr/include/boost/move/detail/config_end.hpp" 1 3 4 # 140 "/usr/include/boost/move/utility.hpp" 2 3 4 # 49 "/usr/include/boost/optional/optional.hpp" 2 3 4 # 1 "/usr/include/boost/none.hpp" 1 3 4 # 15 "/usr/include/boost/none.hpp" 3 4 # 1 "/usr/include/boost/none_t.hpp" 1 3 4 # 15 "/usr/include/boost/none_t.hpp" 3 4 namespace boost { namespace detail { struct none_helper{}; } typedef int detail::none_helper::*none_t ; } # 16 "/usr/include/boost/none.hpp" 2 3 4 namespace boost { none_t const none = (static_cast(0)) ; } # 50 "/usr/include/boost/optional/optional.hpp" 2 3 4 # 1 "/usr/include/boost/utility/compare_pointees.hpp" 1 3 4 # 17 "/usr/include/boost/utility/compare_pointees.hpp" 3 4 namespace boost { # 28 "/usr/include/boost/utility/compare_pointees.hpp" 3 4 template inline bool equal_pointees ( OptionalPointee const& x, OptionalPointee const& y ) { return (!x) != (!y) ? false : ( !x ? true : (*x) == (*y) ) ; } template struct equal_pointees_t : std::binary_function { bool operator() ( OptionalPointee const& x, OptionalPointee const& y ) const { return equal_pointees(x,y) ; } } ; # 51 "/usr/include/boost/utility/compare_pointees.hpp" 3 4 template inline bool less_pointees ( OptionalPointee const& x, OptionalPointee const& y ) { return !y ? false : ( !x ? true : (*x) < (*y) ) ; } template struct less_pointees_t : std::binary_function { bool operator() ( OptionalPointee const& x, OptionalPointee const& y ) const { return less_pointees(x,y) ; } } ; } # 52 "/usr/include/boost/optional/optional.hpp" 2 3 4 # 1 "/usr/include/boost/utility/in_place_factory.hpp" 1 3 4 # 16 "/usr/include/boost/utility/in_place_factory.hpp" 3 4 # 1 "/usr/include/boost/utility/detail/in_place_factory_prefix.hpp" 1 3 4 # 20 "/usr/include/boost/utility/detail/in_place_factory_prefix.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/punctuation/paren.hpp" 1 3 4 # 21 "/usr/include/boost/utility/detail/in_place_factory_prefix.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/iteration/iterate.hpp" 1 3 4 # 20 "/usr/include/boost/preprocessor/iteration/iterate.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/slot/slot.hpp" 1 3 4 # 16 "/usr/include/boost/preprocessor/slot/slot.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/slot/detail/def.hpp" 1 3 4 # 17 "/usr/include/boost/preprocessor/slot/slot.hpp" 2 3 4 # 21 "/usr/include/boost/preprocessor/iteration/iterate.hpp" 2 3 4 # 22 "/usr/include/boost/utility/detail/in_place_factory_prefix.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/repetition/enum.hpp" 1 3 4 # 20 "/usr/include/boost/preprocessor/repetition/enum.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/detail/auto_rec.hpp" 1 3 4 # 21 "/usr/include/boost/preprocessor/repetition/enum.hpp" 2 3 4 # 24 "/usr/include/boost/utility/detail/in_place_factory_prefix.hpp" 2 3 4 # 17 "/usr/include/boost/utility/in_place_factory.hpp" 2 3 4 namespace boost { class in_place_factory_base {} ; # 1 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 1 3 4 # 17 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 1 3 4 # 12 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/slot/detail/shared.hpp" 1 3 4 # 13 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 2 3 4 # 18 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 1 3 4 # 12 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/slot/detail/shared.hpp" 1 3 4 # 13 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 2 3 4 # 20 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 47 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 3 4 # 1 "/usr/include/boost/utility/in_place_factory.hpp" 1 3 4 # 37 "/usr/include/boost/utility/in_place_factory.hpp" 3 4 class in_place_factory0 : public in_place_factory_base { public: explicit in_place_factory0 ( ) {} template void* apply(void* address) const { return new(address) T( ); } template void* apply(void* address, std::size_t n) const { for(char* next = address = this->template apply(address); !! --n;) this->template apply(next = next+sizeof(T)); return address; } }; # 77 "/usr/include/boost/utility/in_place_factory.hpp" 3 4 inline in_place_factory0 in_place() { return in_place_factory0(); } # 48 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/utility/in_place_factory.hpp" 1 3 4 # 35 "/usr/include/boost/utility/in_place_factory.hpp" 3 4 template< class A0 > class in_place_factory1 : public in_place_factory_base { public: explicit in_place_factory1 ( A0 const& a0 ) : m_a0 ( a0 ) {} template void* apply(void* address) const { return new(address) T( m_a0 ); } template void* apply(void* address, std::size_t n) const { for(char* next = address = this->template apply(address); !! --n;) this->template apply(next = next+sizeof(T)); return address; } A0 const& m_a0; }; template< class A0 > inline in_place_factory1< A0 > in_place( A0 const& a0 ) { return in_place_factory1< A0 > ( a0 ); } # 53 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/utility/in_place_factory.hpp" 1 3 4 # 35 "/usr/include/boost/utility/in_place_factory.hpp" 3 4 template< class A0 , class A1 > class in_place_factory2 : public in_place_factory_base { public: explicit in_place_factory2 ( A0 const& a0 , A1 const& a1 ) : m_a0 ( a0 ) , m_a1 ( a1 ) {} template void* apply(void* address) const { return new(address) T( m_a0 , m_a1 ); } template void* apply(void* address, std::size_t n) const { for(char* next = address = this->template apply(address); !! --n;) this->template apply(next = next+sizeof(T)); return address; } A0 const& m_a0; A1 const& m_a1; }; template< class A0 , class A1 > inline in_place_factory2< A0 , A1 > in_place( A0 const& a0 , A1 const& a1 ) { return in_place_factory2< A0 , A1 > ( a0 , a1 ); } # 58 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/utility/in_place_factory.hpp" 1 3 4 # 35 "/usr/include/boost/utility/in_place_factory.hpp" 3 4 template< class A0 , class A1 , class A2 > class in_place_factory3 : public in_place_factory_base { public: explicit in_place_factory3 ( A0 const& a0 , A1 const& a1 , A2 const& a2 ) : m_a0 ( a0 ) , m_a1 ( a1 ) , m_a2 ( a2 ) {} template void* apply(void* address) const { return new(address) T( m_a0 , m_a1 , m_a2 ); } template void* apply(void* address, std::size_t n) const { for(char* next = address = this->template apply(address); !! --n;) this->template apply(next = next+sizeof(T)); return address; } A0 const& m_a0; A1 const& m_a1; A2 const& m_a2; }; template< class A0 , class A1 , class A2 > inline in_place_factory3< A0 , A1 , A2 > in_place( A0 const& a0 , A1 const& a1 , A2 const& a2 ) { return in_place_factory3< A0 , A1 , A2 > ( a0 , a1 , a2 ); } # 63 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/utility/in_place_factory.hpp" 1 3 4 # 35 "/usr/include/boost/utility/in_place_factory.hpp" 3 4 template< class A0 , class A1 , class A2 , class A3 > class in_place_factory4 : public in_place_factory_base { public: explicit in_place_factory4 ( A0 const& a0 , A1 const& a1 , A2 const& a2 , A3 const& a3 ) : m_a0 ( a0 ) , m_a1 ( a1 ) , m_a2 ( a2 ) , m_a3 ( a3 ) {} template void* apply(void* address) const { return new(address) T( m_a0 , m_a1 , m_a2 , m_a3 ); } template void* apply(void* address, std::size_t n) const { for(char* next = address = this->template apply(address); !! --n;) this->template apply(next = next+sizeof(T)); return address; } A0 const& m_a0; A1 const& m_a1; A2 const& m_a2; A3 const& m_a3; }; template< class A0 , class A1 , class A2 , class A3 > inline in_place_factory4< A0 , A1 , A2 , A3 > in_place( A0 const& a0 , A1 const& a1 , A2 const& a2 , A3 const& a3 ) { return in_place_factory4< A0 , A1 , A2 , A3 > ( a0 , a1 , a2 , a3 ); } # 68 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/utility/in_place_factory.hpp" 1 3 4 # 35 "/usr/include/boost/utility/in_place_factory.hpp" 3 4 template< class A0 , class A1 , class A2 , class A3 , class A4 > class in_place_factory5 : public in_place_factory_base { public: explicit in_place_factory5 ( A0 const& a0 , A1 const& a1 , A2 const& a2 , A3 const& a3 , A4 const& a4 ) : m_a0 ( a0 ) , m_a1 ( a1 ) , m_a2 ( a2 ) , m_a3 ( a3 ) , m_a4 ( a4 ) {} template void* apply(void* address) const { return new(address) T( m_a0 , m_a1 , m_a2 , m_a3 , m_a4 ); } template void* apply(void* address, std::size_t n) const { for(char* next = address = this->template apply(address); !! --n;) this->template apply(next = next+sizeof(T)); return address; } A0 const& m_a0; A1 const& m_a1; A2 const& m_a2; A3 const& m_a3; A4 const& m_a4; }; template< class A0 , class A1 , class A2 , class A3 , class A4 > inline in_place_factory5< A0 , A1 , A2 , A3 , A4 > in_place( A0 const& a0 , A1 const& a1 , A2 const& a2 , A3 const& a3 , A4 const& a4 ) { return in_place_factory5< A0 , A1 , A2 , A3 , A4 > ( a0 , a1 , a2 , a3 , a4 ); } # 73 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/utility/in_place_factory.hpp" 1 3 4 # 35 "/usr/include/boost/utility/in_place_factory.hpp" 3 4 template< class A0 , class A1 , class A2 , class A3 , class A4 , class A5 > class in_place_factory6 : public in_place_factory_base { public: explicit in_place_factory6 ( A0 const& a0 , A1 const& a1 , A2 const& a2 , A3 const& a3 , A4 const& a4 , A5 const& a5 ) : m_a0 ( a0 ) , m_a1 ( a1 ) , m_a2 ( a2 ) , m_a3 ( a3 ) , m_a4 ( a4 ) , m_a5 ( a5 ) {} template void* apply(void* address) const { return new(address) T( m_a0 , m_a1 , m_a2 , m_a3 , m_a4 , m_a5 ); } template void* apply(void* address, std::size_t n) const { for(char* next = address = this->template apply(address); !! --n;) this->template apply(next = next+sizeof(T)); return address; } A0 const& m_a0; A1 const& m_a1; A2 const& m_a2; A3 const& m_a3; A4 const& m_a4; A5 const& m_a5; }; template< class A0 , class A1 , class A2 , class A3 , class A4 , class A5 > inline in_place_factory6< A0 , A1 , A2 , A3 , A4 , A5 > in_place( A0 const& a0 , A1 const& a1 , A2 const& a2 , A3 const& a3 , A4 const& a4 , A5 const& a5 ) { return in_place_factory6< A0 , A1 , A2 , A3 , A4 , A5 > ( a0 , a1 , a2 , a3 , a4 , a5 ); } # 78 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/utility/in_place_factory.hpp" 1 3 4 # 35 "/usr/include/boost/utility/in_place_factory.hpp" 3 4 template< class A0 , class A1 , class A2 , class A3 , class A4 , class A5 , class A6 > class in_place_factory7 : public in_place_factory_base { public: explicit in_place_factory7 ( A0 const& a0 , A1 const& a1 , A2 const& a2 , A3 const& a3 , A4 const& a4 , A5 const& a5 , A6 const& a6 ) : m_a0 ( a0 ) , m_a1 ( a1 ) , m_a2 ( a2 ) , m_a3 ( a3 ) , m_a4 ( a4 ) , m_a5 ( a5 ) , m_a6 ( a6 ) {} template void* apply(void* address) const { return new(address) T( m_a0 , m_a1 , m_a2 , m_a3 , m_a4 , m_a5 , m_a6 ); } template void* apply(void* address, std::size_t n) const { for(char* next = address = this->template apply(address); !! --n;) this->template apply(next = next+sizeof(T)); return address; } A0 const& m_a0; A1 const& m_a1; A2 const& m_a2; A3 const& m_a3; A4 const& m_a4; A5 const& m_a5; A6 const& m_a6; }; template< class A0 , class A1 , class A2 , class A3 , class A4 , class A5 , class A6 > inline in_place_factory7< A0 , A1 , A2 , A3 , A4 , A5 , A6 > in_place( A0 const& a0 , A1 const& a1 , A2 const& a2 , A3 const& a3 , A4 const& a4 , A5 const& a5 , A6 const& a6 ) { return in_place_factory7< A0 , A1 , A2 , A3 , A4 , A5 , A6 > ( a0 , a1 , a2 , a3 , a4 , a5 , a6 ); } # 83 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/utility/in_place_factory.hpp" 1 3 4 # 35 "/usr/include/boost/utility/in_place_factory.hpp" 3 4 template< class A0 , class A1 , class A2 , class A3 , class A4 , class A5 , class A6 , class A7 > class in_place_factory8 : public in_place_factory_base { public: explicit in_place_factory8 ( A0 const& a0 , A1 const& a1 , A2 const& a2 , A3 const& a3 , A4 const& a4 , A5 const& a5 , A6 const& a6 , A7 const& a7 ) : m_a0 ( a0 ) , m_a1 ( a1 ) , m_a2 ( a2 ) , m_a3 ( a3 ) , m_a4 ( a4 ) , m_a5 ( a5 ) , m_a6 ( a6 ) , m_a7 ( a7 ) {} template void* apply(void* address) const { return new(address) T( m_a0 , m_a1 , m_a2 , m_a3 , m_a4 , m_a5 , m_a6 , m_a7 ); } template void* apply(void* address, std::size_t n) const { for(char* next = address = this->template apply(address); !! --n;) this->template apply(next = next+sizeof(T)); return address; } A0 const& m_a0; A1 const& m_a1; A2 const& m_a2; A3 const& m_a3; A4 const& m_a4; A5 const& m_a5; A6 const& m_a6; A7 const& m_a7; }; template< class A0 , class A1 , class A2 , class A3 , class A4 , class A5 , class A6 , class A7 > inline in_place_factory8< A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 > in_place( A0 const& a0 , A1 const& a1 , A2 const& a2 , A3 const& a3 , A4 const& a4 , A5 const& a5 , A6 const& a6 , A7 const& a7 ) { return in_place_factory8< A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 > ( a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7 ); } # 88 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/utility/in_place_factory.hpp" 1 3 4 # 35 "/usr/include/boost/utility/in_place_factory.hpp" 3 4 template< class A0 , class A1 , class A2 , class A3 , class A4 , class A5 , class A6 , class A7 , class A8 > class in_place_factory9 : public in_place_factory_base { public: explicit in_place_factory9 ( A0 const& a0 , A1 const& a1 , A2 const& a2 , A3 const& a3 , A4 const& a4 , A5 const& a5 , A6 const& a6 , A7 const& a7 , A8 const& a8 ) : m_a0 ( a0 ) , m_a1 ( a1 ) , m_a2 ( a2 ) , m_a3 ( a3 ) , m_a4 ( a4 ) , m_a5 ( a5 ) , m_a6 ( a6 ) , m_a7 ( a7 ) , m_a8 ( a8 ) {} template void* apply(void* address) const { return new(address) T( m_a0 , m_a1 , m_a2 , m_a3 , m_a4 , m_a5 , m_a6 , m_a7 , m_a8 ); } template void* apply(void* address, std::size_t n) const { for(char* next = address = this->template apply(address); !! --n;) this->template apply(next = next+sizeof(T)); return address; } A0 const& m_a0; A1 const& m_a1; A2 const& m_a2; A3 const& m_a3; A4 const& m_a4; A5 const& m_a5; A6 const& m_a6; A7 const& m_a7; A8 const& m_a8; }; template< class A0 , class A1 , class A2 , class A3 , class A4 , class A5 , class A6 , class A7 , class A8 > inline in_place_factory9< A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8 > in_place( A0 const& a0 , A1 const& a1 , A2 const& a2 , A3 const& a3 , A4 const& a4 , A5 const& a5 , A6 const& a6 , A7 const& a7 , A8 const& a8 ) { return in_place_factory9< A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8 > ( a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7 , a8 ); } # 93 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/utility/in_place_factory.hpp" 1 3 4 # 35 "/usr/include/boost/utility/in_place_factory.hpp" 3 4 template< class A0 , class A1 , class A2 , class A3 , class A4 , class A5 , class A6 , class A7 , class A8 , class A9 > class in_place_factory10 : public in_place_factory_base { public: explicit in_place_factory10 ( A0 const& a0 , A1 const& a1 , A2 const& a2 , A3 const& a3 , A4 const& a4 , A5 const& a5 , A6 const& a6 , A7 const& a7 , A8 const& a8 , A9 const& a9 ) : m_a0 ( a0 ) , m_a1 ( a1 ) , m_a2 ( a2 ) , m_a3 ( a3 ) , m_a4 ( a4 ) , m_a5 ( a5 ) , m_a6 ( a6 ) , m_a7 ( a7 ) , m_a8 ( a8 ) , m_a9 ( a9 ) {} template void* apply(void* address) const { return new(address) T( m_a0 , m_a1 , m_a2 , m_a3 , m_a4 , m_a5 , m_a6 , m_a7 , m_a8 , m_a9 ); } template void* apply(void* address, std::size_t n) const { for(char* next = address = this->template apply(address); !! --n;) this->template apply(next = next+sizeof(T)); return address; } A0 const& m_a0; A1 const& m_a1; A2 const& m_a2; A3 const& m_a3; A4 const& m_a4; A5 const& m_a5; A6 const& m_a6; A7 const& m_a7; A8 const& m_a8; A9 const& m_a9; }; template< class A0 , class A1 , class A2 , class A3 , class A4 , class A5 , class A6 , class A7 , class A8 , class A9 > inline in_place_factory10< A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8 , A9 > in_place( A0 const& a0 , A1 const& a1 , A2 const& a2 , A3 const& a3 , A4 const& a4 , A5 const& a5 , A6 const& a6 , A7 const& a7 , A8 const& a8 , A9 const& a9 ) { return in_place_factory10< A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8 , A9 > ( a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7 , a8 , a9 ); } # 98 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 25 "/usr/include/boost/utility/in_place_factory.hpp" 2 3 4 } # 1 "/usr/include/boost/utility/detail/in_place_factory_suffix.hpp" 1 3 4 # 29 "/usr/include/boost/utility/in_place_factory.hpp" 2 3 4 # 54 "/usr/include/boost/optional/optional.hpp" 2 3 4 # 1 "/usr/include/boost/optional/optional_fwd.hpp" 1 3 4 # 19 "/usr/include/boost/optional/optional_fwd.hpp" 3 4 namespace boost { template class optional ; template void swap ( optional& , optional& ); template struct optional_swap_should_use_default_constructor ; } # 59 "/usr/include/boost/optional/optional.hpp" 2 3 4 # 96 "/usr/include/boost/optional/optional.hpp" 3 4 namespace boost_optional_detail { template inline void construct(Factory const& factory, void* address) { factory.template apply(address); } } namespace boost { class in_place_factory_base ; class typed_in_place_factory_base ; template void swap ( optional& x, optional& y ); namespace optional_detail { template class aligned_storage { union __attribute__((__may_alias__)) dummy_u { char data[ sizeof(T) ]; typename type_with_alignment< ::boost::alignment_of::value >::type aligner_; } dummy_ ; public: void const* address() const { return &dummy_; } void * address() { return &dummy_; } } ; template struct types_when_isnt_ref { typedef T const& reference_const_type ; typedef T & reference_type ; # 162 "/usr/include/boost/optional/optional.hpp" 3 4 typedef T const* pointer_const_type ; typedef T * pointer_type ; typedef T const& argument_type ; } ; template struct types_when_is_ref { typedef typename remove_reference::type raw_type ; typedef raw_type& reference_const_type ; typedef raw_type& reference_type ; typedef raw_type* pointer_const_type ; typedef raw_type* pointer_type ; typedef raw_type& argument_type ; } ; template void prevent_binding_rvalue_ref_to_optional_lvalue_ref() { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((!boost::is_lvalue_reference::value || !boost::is_rvalue_reference::value) == 0 ? false : true) >)> boost_static_assert_typedef_190 __attribute__((unused)) ; } struct optional_tag {} ; template class optional_base : public optional_tag { private : typedef typename ::boost::detail::make_reference_content::type internal_type ; typedef aligned_storage storage_type ; typedef types_when_isnt_ref types_when_not_ref ; typedef types_when_is_ref types_when_ref ; typedef optional_base this_type ; protected : typedef T value_type ; typedef mpl::true_ is_reference_tag ; typedef mpl::false_ is_not_reference_tag ; typedef typename is_reference::type is_reference_predicate ; public: typedef typename mpl::if_::type types ; protected: typedef typename types::reference_type reference_type ; typedef typename types::reference_const_type reference_const_type ; typedef typename types::pointer_type pointer_type ; typedef typename types::pointer_const_type pointer_const_type ; typedef typename types::argument_type argument_type ; optional_base() : m_initialized(false) {} optional_base ( none_t ) : m_initialized(false) {} optional_base ( argument_type val ) : m_initialized(false) { construct(val); } # 271 "/usr/include/boost/optional/optional.hpp" 3 4 optional_base ( bool cond, argument_type val ) : m_initialized(false) { if ( cond ) construct(val); } optional_base ( optional_base const& rhs ) : m_initialized(false) { if ( rhs.is_initialized() ) construct(rhs.get_impl()); } # 315 "/usr/include/boost/optional/optional.hpp" 3 4 template explicit optional_base ( Expr const& expr, Expr const* tag ) : m_initialized(false) { construct(expr,tag); } ~optional_base() { destroy() ; } void assign ( optional_base const& rhs ) { if (is_initialized()) { if ( rhs.is_initialized() ) assign_value(rhs.get_impl(), is_reference_predicate() ); else destroy(); } else { if ( rhs.is_initialized() ) construct(rhs.get_impl()); } } # 364 "/usr/include/boost/optional/optional.hpp" 3 4 template void assign ( optional const& rhs ) { if (is_initialized()) { if ( rhs.is_initialized() ) assign_value(static_cast(rhs.get()), is_reference_predicate() ); else destroy(); } else { if ( rhs.is_initialized() ) construct(static_cast(rhs.get())); } } # 401 "/usr/include/boost/optional/optional.hpp" 3 4 void assign ( argument_type val ) { if (is_initialized()) assign_value(val, is_reference_predicate() ); else construct(val); } # 420 "/usr/include/boost/optional/optional.hpp" 3 4 void assign ( none_t ) { destroy(); } # 433 "/usr/include/boost/optional/optional.hpp" 3 4 template void assign_expr ( Expr const& expr, Expr const* tag ) { if (is_initialized()) assign_expr_to_initialized(expr,tag); else construct(expr,tag); } public : void reset() { destroy(); } void reset ( argument_type val ) { assign(val); } pointer_const_type get_ptr() const { return m_initialized ? get_ptr_impl() : 0 ; } pointer_type get_ptr() { return m_initialized ? get_ptr_impl() : 0 ; } bool is_initialized() const { return m_initialized ; } protected : void construct ( argument_type val ) { ::new (m_storage.address()) internal_type(val) ; m_initialized = true ; } # 497 "/usr/include/boost/optional/optional.hpp" 3 4 template void emplace_assign ( const Arg& arg ) { destroy(); ::new (m_storage.address()) internal_type( arg ); m_initialized = true ; } template void emplace_assign ( Arg& arg ) { destroy(); ::new (m_storage.address()) internal_type( arg ); m_initialized = true ; } # 552 "/usr/include/boost/optional/optional.hpp" 3 4 template void construct ( Expr const& factory, in_place_factory_base const* ) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((::boost::mpl::not_::value) == 0 ? false : true) >)> boost_static_assert_typedef_555 __attribute__((unused)) ; boost_optional_detail::construct(factory, m_storage.address()); m_initialized = true ; } template void construct ( Expr const& factory, typed_in_place_factory_base const* ) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((::boost::mpl::not_::value) == 0 ? false : true) >)> boost_static_assert_typedef_564 __attribute__((unused)) ; factory.apply(m_storage.address()) ; m_initialized = true ; } template void assign_expr_to_initialized ( Expr const& factory, in_place_factory_base const* tag ) { destroy(); construct(factory,tag); } template void assign_expr_to_initialized ( Expr const& factory, typed_in_place_factory_base const* tag ) { destroy(); construct(factory,tag); } # 613 "/usr/include/boost/optional/optional.hpp" 3 4 template void construct ( Expr const& expr, void const* ) { new (m_storage.address()) internal_type(expr) ; m_initialized = true ; } template void assign_expr_to_initialized ( Expr const& expr, void const* ) { assign_value(expr, is_reference_predicate()); } # 674 "/usr/include/boost/optional/optional.hpp" 3 4 void assign_value ( argument_type val, is_not_reference_tag ) { get_impl() = val; } void assign_value ( argument_type val, is_reference_tag ) { construct(val); } void destroy() { if ( m_initialized ) destroy_impl(is_reference_predicate()) ; } reference_const_type get_impl() const { return dereference(get_object(), is_reference_predicate() ) ; } reference_type get_impl() { return dereference(get_object(), is_reference_predicate() ) ; } pointer_const_type get_ptr_impl() const { return cast_ptr(get_object(), is_reference_predicate() ) ; } pointer_type get_ptr_impl() { return cast_ptr(get_object(), is_reference_predicate() ) ; } private : internal_type const* get_object() const { union { void const* ap_pvoid; internal_type const* as_ptype; } caster = { m_storage.address() }; return caster.as_ptype; } internal_type * get_object() { union { void* ap_pvoid; internal_type* as_ptype; } caster = { m_storage.address() }; return caster.as_ptype; } reference_const_type dereference( internal_type const* p, is_not_reference_tag ) const { return *p ; } reference_type dereference( internal_type* p, is_not_reference_tag ) { return *p ; } reference_const_type dereference( internal_type const* p, is_reference_tag ) const { return p->get() ; } reference_type dereference( internal_type* p, is_reference_tag ) { return p->get() ; } void destroy_impl ( is_not_reference_tag ) { get_ptr_impl()->~T() ; m_initialized = false ; } void destroy_impl ( is_reference_tag ) { m_initialized = false ; } pointer_const_type cast_ptr( internal_type const* p, is_not_reference_tag ) const { return p ; } pointer_type cast_ptr( internal_type * p, is_not_reference_tag ) { return p ; } pointer_const_type cast_ptr( internal_type const* p, is_reference_tag ) const { return &p->get() ; } pointer_type cast_ptr( internal_type * p, is_reference_tag ) { return &p->get() ; } bool m_initialized ; storage_type m_storage ; } ; } template class optional : public optional_detail::optional_base { typedef optional_detail::optional_base base ; public : typedef optional this_type ; typedef typename base::value_type value_type ; typedef typename base::reference_type reference_type ; typedef typename base::reference_const_type reference_const_type ; typedef typename base::pointer_type pointer_type ; typedef typename base::pointer_const_type pointer_const_type ; typedef typename base::argument_type argument_type ; optional() : base() {} optional( none_t none_ ) : base(none_) {} optional ( argument_type val ) : base(val) {} # 782 "/usr/include/boost/optional/optional.hpp" 3 4 optional ( bool cond, argument_type val ) : base(cond,val) {} template explicit optional ( optional const& rhs ) : base() { if ( rhs.is_initialized() ) this->construct(rhs.get()); } # 835 "/usr/include/boost/optional/optional.hpp" 3 4 template explicit optional ( Expr const& expr ) : base(expr,boost::addressof(expr)) {} optional ( optional const& rhs ) : base( static_cast(rhs) ) {} # 854 "/usr/include/boost/optional/optional.hpp" 3 4 ~optional() {} # 875 "/usr/include/boost/optional/optional.hpp" 3 4 template optional& operator= ( Expr const& expr ) { this->assign_expr(expr,boost::addressof(expr)); return *this ; } template optional& operator= ( optional const& rhs ) { this->assign(rhs); return *this ; } # 909 "/usr/include/boost/optional/optional.hpp" 3 4 optional& operator= ( optional const& rhs ) { this->assign( static_cast(rhs) ) ; return *this ; } # 927 "/usr/include/boost/optional/optional.hpp" 3 4 optional& operator= ( argument_type val ) { this->assign( val ) ; return *this ; } # 946 "/usr/include/boost/optional/optional.hpp" 3 4 optional& operator= ( none_t none_ ) { this->assign( none_ ) ; return *this ; } # 967 "/usr/include/boost/optional/optional.hpp" 3 4 template void emplace ( const Arg& arg ) { this->emplace_assign( arg ); } template void emplace ( Arg& arg ) { this->emplace_assign( arg ); } void swap( optional & arg ) { boost::swap(*this, arg); } reference_const_type get() const { ((this->is_initialized()) ? static_cast (0) : __assert_fail ("this->is_initialized()", "/usr/include/boost/optional/optional.hpp", 991, __PRETTY_FUNCTION__)) ; return this->get_impl(); } reference_type get() { ((this->is_initialized()) ? static_cast (0) : __assert_fail ("this->is_initialized()", "/usr/include/boost/optional/optional.hpp", 992, __PRETTY_FUNCTION__)) ; return this->get_impl(); } reference_const_type get_value_or ( reference_const_type v ) const { return this->is_initialized() ? get() : v ; } reference_type get_value_or ( reference_type v ) { return this->is_initialized() ? get() : v ; } pointer_const_type operator->() const { ((this->is_initialized()) ? static_cast (0) : __assert_fail ("this->is_initialized()", "/usr/include/boost/optional/optional.hpp", 1001, __PRETTY_FUNCTION__)) ; return this->get_ptr_impl() ; } pointer_type operator->() { ((this->is_initialized()) ? static_cast (0) : __assert_fail ("this->is_initialized()", "/usr/include/boost/optional/optional.hpp", 1002, __PRETTY_FUNCTION__)) ; return this->get_ptr_impl() ; } # 1012 "/usr/include/boost/optional/optional.hpp" 3 4 reference_const_type operator *() const { return this->get() ; } reference_type operator *() { return this->get() ; } # 1042 "/usr/include/boost/optional/optional.hpp" 3 4 reference_const_type value() const { if (this->is_initialized()) return this->get() ; else throw_exception(bad_optional_access()); } reference_type value() { if (this->is_initialized()) return this->get() ; else throw_exception(bad_optional_access()); } # 1088 "/usr/include/boost/optional/optional.hpp" 3 4 template value_type value_or ( U const& v ) const { if (this->is_initialized()) return get(); else return v; } # 1118 "/usr/include/boost/optional/optional.hpp" 3 4 template value_type value_or_eval ( F f ) const { if (this->is_initialized()) return get(); else return f(); } bool operator!() const { return !this->is_initialized() ; } inline __attribute__ ((__always_inline__)) operator boost::detail::unspecified_bool_type () const { return (!this->operator! () ? &boost::detail::unspecified_bool::true_value : (boost::detail::unspecified_bool_type)0); } } ; # 1142 "/usr/include/boost/optional/optional.hpp" 3 4 template inline optional make_optional ( T const& v ) { return optional(v); } template inline optional make_optional ( bool cond, T const& v ) { return optional(cond,v); } template inline typename optional::reference_const_type get ( optional const& opt ) { return opt.get() ; } template inline typename optional::reference_type get ( optional& opt ) { return opt.get() ; } template inline typename optional::pointer_const_type get ( optional const* opt ) { return opt->get_ptr() ; } template inline typename optional::pointer_type get ( optional* opt ) { return opt->get_ptr() ; } template inline typename optional::reference_const_type get_optional_value_or ( optional const& opt, typename optional::reference_const_type v ) { return opt.get_value_or(v) ; } template inline typename optional::reference_type get_optional_value_or ( optional& opt, typename optional::reference_type v ) { return opt.get_value_or(v) ; } template inline typename optional::pointer_const_type get_pointer ( optional const& opt ) { return opt.get_ptr() ; } template inline typename optional::pointer_type get_pointer ( optional& opt ) { return opt.get_ptr() ; } template std::basic_ostream& operator<<(std::basic_ostream& out, optional const& v); # 1242 "/usr/include/boost/optional/optional.hpp" 3 4 template inline bool operator == ( optional const& x, optional const& y ) { return equal_pointees(x,y); } template inline bool operator < ( optional const& x, optional const& y ) { return less_pointees(x,y); } template inline bool operator != ( optional const& x, optional const& y ) { return !( x == y ) ; } template inline bool operator > ( optional const& x, optional const& y ) { return y < x ; } template inline bool operator <= ( optional const& x, optional const& y ) { return !( y < x ) ; } template inline bool operator >= ( optional const& x, optional const& y ) { return !( x < y ) ; } template inline bool operator == ( optional const& x, T const& y ) { return equal_pointees(x, optional(y)); } template inline bool operator < ( optional const& x, T const& y ) { return less_pointees(x, optional(y)); } template inline bool operator != ( optional const& x, T const& y ) { return !( x == y ) ; } template inline bool operator > ( optional const& x, T const& y ) { return y < x ; } template inline bool operator <= ( optional const& x, T const& y ) { return !( y < x ) ; } template inline bool operator >= ( optional const& x, T const& y ) { return !( x < y ) ; } template inline bool operator == ( T const& x, optional const& y ) { return equal_pointees( optional(x), y ); } template inline bool operator < ( T const& x, optional const& y ) { return less_pointees( optional(x), y ); } template inline bool operator != ( T const& x, optional const& y ) { return !( x == y ) ; } template inline bool operator > ( T const& x, optional const& y ) { return y < x ; } template inline bool operator <= ( T const& x, optional const& y ) { return !( y < x ) ; } template inline bool operator >= ( T const& x, optional const& y ) { return !( x < y ) ; } template inline bool operator == ( optional const& x, none_t ) { return !x; } template inline bool operator < ( optional const& x, none_t ) { return less_pointees(x,optional() ); } template inline bool operator != ( optional const& x, none_t ) { return bool(x); } template inline bool operator > ( optional const& x, none_t y ) { return y < x ; } template inline bool operator <= ( optional const& x, none_t y ) { return !( y < x ) ; } template inline bool operator >= ( optional const& x, none_t y ) { return !( x < y ) ; } template inline bool operator == ( none_t , optional const& y ) { return !y; } template inline bool operator < ( none_t , optional const& y ) { return less_pointees(optional() ,y); } template inline bool operator != ( none_t, optional const& y ) { return bool(y); } template inline bool operator > ( none_t x, optional const& y ) { return y < x ; } template inline bool operator <= ( none_t x, optional const& y ) { return !( y < x ) ; } template inline bool operator >= ( none_t x, optional const& y ) { return !( x < y ) ; } namespace optional_detail { template struct swap_selector; template<> struct swap_selector { template static void optional_swap ( optional& x, optional& y ) { const bool hasX = !!x; const bool hasY = !!y; if ( !hasX && !hasY ) return; if( !hasX ) x = boost::in_place(); else if ( !hasY ) y = boost::in_place(); boost::swap(x.get(),y.get()); if( !hasX ) y = boost::none ; else if( !hasY ) x = boost::none ; } }; # 1471 "/usr/include/boost/optional/optional.hpp" 3 4 template<> struct swap_selector { template static void optional_swap ( optional& x, optional& y ) { const bool hasX = !!x; const bool hasY = !!y; if ( !hasX && hasY ) { x = y.get(); y = boost::none ; } else if ( hasX && !hasY ) { y = x.get(); x = boost::none ; } else if ( hasX && hasY ) { boost::swap(x.get(),y.get()); } } }; } template struct optional_swap_should_use_default_constructor : has_nothrow_default_constructor {} ; template inline void swap ( optional& x, optional& y ) { optional_detail::swap_selector::value>::optional_swap(x, y); } } # 16 "/usr/include/boost/optional.hpp" 2 3 4 # 9 "namespaces.hh" 2 # 1 "/usr/include/boost/any.hpp" 1 3 4 # 20 "/usr/include/boost/any.hpp" 3 4 # 1 "/usr/include/boost/type_index.hpp" 1 3 4 # 20 "/usr/include/boost/type_index.hpp" 3 4 # 29 "/usr/include/boost/type_index.hpp" 3 4 # 1 "/usr/include/boost/type_index/stl_type_index.hpp" 1 3 4 # 22 "/usr/include/boost/type_index/stl_type_index.hpp" 3 4 # 1 "/usr/include/boost/type_index/type_index_facade.hpp" 1 3 4 # 15 "/usr/include/boost/type_index/type_index_facade.hpp" 3 4 # 1 "/usr/include/c++/5.0.0/cstring" 1 3 4 # 39 "/usr/include/c++/5.0.0/cstring" 3 4 # 40 "/usr/include/c++/5.0.0/cstring" 3 # 16 "/usr/include/boost/type_index/type_index_facade.hpp" 2 3 4 # 26 "/usr/include/boost/type_index/type_index_facade.hpp" 3 4 namespace boost { namespace typeindex { # 61 "/usr/include/boost/type_index/type_index_facade.hpp" 3 4 template class type_index_facade { private: const Derived & derived() const { return *static_cast(this); } public: typedef TypeInfo type_info_t; inline const char* name() const { return derived().raw_name(); } inline std::string pretty_name() const { return derived().name(); } inline bool equal(const Derived& rhs) const { const char* const left = derived().raw_name(); const char* const right = rhs.raw_name(); return left == right || !std::strcmp(left, right); } inline bool before(const Derived& rhs) const { const char* const left = derived().raw_name(); const char* const right = rhs.raw_name(); return left != right && std::strcmp(left, right) < 0; } inline std::size_t hash_code() const { const char* const name = derived().raw_name(); return boost::hash_range(name, name + std::strlen(name)); } # 149 "/usr/include/boost/type_index/type_index_facade.hpp" 3 4 }; template inline bool operator == (const type_index_facade& lhs, const type_index_facade& rhs) { return static_cast(lhs).equal(static_cast(rhs)); } template inline bool operator < (const type_index_facade& lhs, const type_index_facade& rhs) { return static_cast(lhs).before(static_cast(rhs));; } template inline bool operator > (const type_index_facade& lhs, const type_index_facade& rhs) { return rhs < lhs; } template inline bool operator <= (const type_index_facade& lhs, const type_index_facade& rhs) { return !(lhs > rhs); } template inline bool operator >= (const type_index_facade& lhs, const type_index_facade& rhs) { return !(lhs < rhs); } template inline bool operator != (const type_index_facade& lhs, const type_index_facade& rhs) { return !(lhs == rhs); } template inline bool operator == (const TypeInfo& lhs, const type_index_facade& rhs) { return Derived(lhs) == rhs; } template inline bool operator < (const TypeInfo& lhs, const type_index_facade& rhs) { return Derived(lhs) < rhs; } template inline bool operator > (const TypeInfo& lhs, const type_index_facade& rhs) { return rhs < Derived(lhs); } template inline bool operator <= (const TypeInfo& lhs, const type_index_facade& rhs) { return !(Derived(lhs) > rhs); } template inline bool operator >= (const TypeInfo& lhs, const type_index_facade& rhs) { return !(Derived(lhs) < rhs); } template inline bool operator != (const TypeInfo& lhs, const type_index_facade& rhs) { return !(Derived(lhs) == rhs); } template inline bool operator == (const type_index_facade& lhs, const TypeInfo& rhs) { return lhs == Derived(rhs); } template inline bool operator < (const type_index_facade& lhs, const TypeInfo& rhs) { return lhs < Derived(rhs); } template inline bool operator > (const type_index_facade& lhs, const TypeInfo& rhs) { return Derived(rhs) < lhs; } template inline bool operator <= (const type_index_facade& lhs, const TypeInfo& rhs) { return !(lhs > Derived(rhs)); } template inline bool operator >= (const type_index_facade& lhs, const TypeInfo& rhs) { return !(lhs < Derived(rhs)); } template inline bool operator != (const type_index_facade& lhs, const TypeInfo& rhs) { return !(lhs == Derived(rhs)); } # 275 "/usr/include/boost/type_index/type_index_facade.hpp" 3 4 template inline std::basic_ostream& operator<<( std::basic_ostream& ostr, const type_index_facade& ind) { ostr << static_cast(ind).pretty_name(); return ostr; } template inline std::size_t hash_value(const type_index_facade& lhs) { return static_cast(lhs).hash_code(); } }} # 23 "/usr/include/boost/type_index/stl_type_index.hpp" 2 3 4 # 1 "/usr/include/c++/5.0.0/cstring" 1 3 4 # 39 "/usr/include/c++/5.0.0/cstring" 3 4 # 40 "/usr/include/c++/5.0.0/cstring" 3 # 31 "/usr/include/boost/type_index/stl_type_index.hpp" 2 3 4 # 52 "/usr/include/boost/type_index/stl_type_index.hpp" 3 4 namespace boost { namespace typeindex { class stl_type_index : public type_index_facade< stl_type_index, std::type_info > { public: typedef std::type_info type_info_t; private: const type_info_t* data_; public: inline stl_type_index() : data_(&typeid(void)) {} inline stl_type_index(const type_info_t& data) : data_(&data) {} inline const type_info_t& type_info() const ; inline const char* raw_name() const ; inline const char* name() const ; inline std::string pretty_name() const; inline std::size_t hash_code() const ; inline bool equal(const stl_type_index& rhs) const ; inline bool before(const stl_type_index& rhs) const ; template inline static stl_type_index type_id() ; template inline static stl_type_index type_id_with_cvr() ; template inline static stl_type_index type_id_runtime(const T& value) ; }; inline const stl_type_index::type_info_t& stl_type_index::type_info() const { return *data_; } inline const char* stl_type_index::raw_name() const { return data_->name(); } inline const char* stl_type_index::name() const { return data_->name(); } inline std::string stl_type_index::pretty_name() const { static const char cvr_saver_name[] = "boost::typeindex::detail::cvr_saver<"; static const std::string::size_type cvr_saver_name_len = sizeof(cvr_saver_name) - 1; const boost::core::scoped_demangled_name demangled_name(data_->name()); const char* begin = demangled_name.get(); if (!begin) { boost::throw_exception(std::runtime_error("Type name demangling failed")); } const std::string::size_type len = std::strlen(begin); const char* end = begin + len; if (len > cvr_saver_name_len) { const char* b = std::strstr(begin, cvr_saver_name); if (b) { b += cvr_saver_name_len; while (*b == ' ') { ++ b; } const char* e = end - 1; while (e > b && *e != '>') { -- e; } while (e > b && *(e - 1) == ' ') { -- e; } if (b < e) { begin = b; end = e; } } } return std::string(begin, end); } inline std::size_t stl_type_index::hash_code() const { return boost::hash_range(raw_name(), raw_name() + std::strlen(raw_name())); } # 200 "/usr/include/boost/type_index/stl_type_index.hpp" 3 4 inline bool stl_type_index::equal(const stl_type_index& rhs) const { return *data_ == *rhs.data_; } inline bool stl_type_index::before(const stl_type_index& rhs) const { return !!data_->before(*rhs.data_); } template inline stl_type_index stl_type_index::type_id() { typedef typename boost::remove_reference::type no_ref_t; typedef typename boost::remove_cv::type no_cvr_prefinal_t; # 240 "/usr/include/boost/type_index/stl_type_index.hpp" 3 4 typedef no_cvr_prefinal_t no_cvr_t; return typeid(no_cvr_t); } namespace detail { template class cvr_saver{}; } template inline stl_type_index stl_type_index::type_id_with_cvr() { typedef typename boost::mpl::if_< boost::mpl::or_, boost::is_const, boost::is_volatile >, detail::cvr_saver, T >::type type; return typeid(type); } template inline stl_type_index stl_type_index::type_id_runtime(const T& value) { return typeid(value); } }} # 30 "/usr/include/boost/type_index.hpp" 2 3 4 # 52 "/usr/include/boost/type_index.hpp" 3 4 namespace boost { namespace typeindex { # 132 "/usr/include/boost/type_index.hpp" 3 4 typedef boost::typeindex::stl_type_index type_index; # 144 "/usr/include/boost/type_index.hpp" 3 4 typedef type_index::type_info_t type_info; # 210 "/usr/include/boost/type_index.hpp" 3 4 template inline type_index type_id() { return type_index::type_id(); } # 230 "/usr/include/boost/type_index.hpp" 3 4 template inline type_index type_id_with_cvr() { return type_index::type_id_with_cvr(); } # 255 "/usr/include/boost/type_index.hpp" 3 4 template inline type_index type_id_runtime(const T& runtime_val) { return type_index::type_id_runtime(runtime_val); } }} # 21 "/usr/include/boost/any.hpp" 2 3 4 # 33 "/usr/include/boost/any.hpp" 3 4 namespace boost { class any { public: any() : content(0) { } template any(const ValueType & value) : content(new holder< typename remove_cv::type>::type >(value)) { } any(const any & other) : content(other.content ? other.content->clone() : 0) { } # 75 "/usr/include/boost/any.hpp" 3 4 ~any() { delete content; } public: any & swap(any & rhs) { std::swap(content, rhs.content); return *this; } template any & operator=(const ValueType & rhs) { any(rhs).swap(*this); return *this; } any & operator=(any rhs) { any(rhs).swap(*this); return *this; } # 127 "/usr/include/boost/any.hpp" 3 4 public: bool empty() const { return !content; } void clear() { any().swap(*this); } const boost::typeindex::type_info& type() const { return content ? content->type() : boost::typeindex::type_id().type_info(); } private: class placeholder { public: virtual ~placeholder() { } public: virtual const boost::typeindex::type_info& type() const = 0; virtual placeholder * clone() const = 0; }; template class holder : public placeholder { public: holder(const ValueType & value) : held(value) { } public: virtual const boost::typeindex::type_info& type() const { return boost::typeindex::type_id().type_info(); } virtual placeholder * clone() const { return new holder(held); } public: ValueType held; private: holder & operator=(const holder &); }; private: template friend ValueType * any_cast(any *) ; template friend ValueType * unsafe_any_cast(any *) ; placeholder * content; }; inline void swap(any & lhs, any & rhs) { lhs.swap(rhs); } class __attribute__((__visibility__("default"))) bad_any_cast : public std::bad_cast { public: virtual const char * what() const throw() { return "boost::bad_any_cast: " "failed conversion using boost::any_cast"; } }; template ValueType * any_cast(any * operand) { return operand && operand->type() == boost::typeindex::type_id() ? &static_cast::type> *>(operand->content)->held : 0; } template inline const ValueType * any_cast(const any * operand) { return any_cast(const_cast(operand)); } template ValueType any_cast(any & operand) { typedef typename remove_reference::type nonref; nonref * result = any_cast(&operand); if(!result) boost::throw_exception(bad_any_cast()); typedef typename boost::mpl::if_< boost::is_reference, ValueType, typename boost::add_reference::type >::type ref_type; return static_cast(*result); } template inline ValueType any_cast(const any & operand) { typedef typename remove_reference::type nonref; return any_cast(const_cast(operand)); } # 305 "/usr/include/boost/any.hpp" 3 4 template inline ValueType * unsafe_any_cast(any * operand) { return &static_cast *>(operand->content)->held; } template inline const ValueType * unsafe_any_cast(const any * operand) { return unsafe_any_cast(const_cast(operand)); } } # 10 "namespaces.hh" 2 # 1 "/usr/include/boost/function.hpp" 1 3 4 # 15 "/usr/include/boost/function.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/iterate.hpp" 1 3 4 # 16 "/usr/include/boost/function.hpp" 2 3 4 # 24 "/usr/include/boost/function.hpp" 3 4 # 1 "/usr/include/boost/function/detail/prologue.hpp" 1 3 4 # 12 "/usr/include/boost/function/detail/prologue.hpp" 3 4 # 1 "/usr/include/c++/5.0.0/cassert" 1 3 4 # 41 "/usr/include/c++/5.0.0/cassert" 3 4 # 42 "/usr/include/c++/5.0.0/cassert" 3 # 1 "/usr/include/assert.h" 1 3 4 # 64 "/usr/include/assert.h" 3 4 extern "C" { extern void __assert_fail (const char *__assertion, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert_perror_fail (int __errnum, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert (const char *__assertion, const char *__file, int __line) throw () __attribute__ ((__noreturn__)); } # 43 "/usr/include/c++/5.0.0/cassert" 2 3 # 13 "/usr/include/boost/function/detail/prologue.hpp" 2 3 4 # 1 "/usr/include/boost/config/no_tr1/functional.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/prologue.hpp" 2 3 4 # 1 "/usr/include/boost/function/function_base.hpp" 1 3 4 # 20 "/usr/include/boost/function/function_base.hpp" 3 4 # 1 "/usr/include/boost/assert.hpp" 1 3 4 # 54 "/usr/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 64 "/usr/include/assert.h" 3 4 extern "C" { extern void __assert_fail (const char *__assertion, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert_perror_fail (int __errnum, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert (const char *__assertion, const char *__file, int __line) throw () __attribute__ ((__noreturn__)); } # 55 "/usr/include/boost/assert.hpp" 2 3 4 # 21 "/usr/include/boost/function/function_base.hpp" 2 3 4 # 1 "/usr/include/boost/type_traits/composite_traits.hpp" 1 3 4 # 22 "/usr/include/boost/type_traits/composite_traits.hpp" 3 4 # 1 "/usr/include/boost/type_traits/is_union.hpp" 1 3 4 # 19 "/usr/include/boost/type_traits/is_union.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 20 "/usr/include/boost/type_traits/is_union.hpp" 2 3 4 namespace boost { namespace detail { # 40 "/usr/include/boost/type_traits/is_union.hpp" 3 4 template struct is_union_impl { static const bool value = __is_union(T); }; } template< typename T > struct is_union : public ::boost::integral_constant::value> { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 56 "/usr/include/boost/type_traits/is_union.hpp" 2 3 4 # 23 "/usr/include/boost/type_traits/composite_traits.hpp" 2 3 4 # 28 "/usr/include/boost/function/function_base.hpp" 2 3 4 # 38 "/usr/include/boost/function/function_base.hpp" 3 4 # 1 "/usr/include/boost/function_equal.hpp" 1 3 4 # 13 "/usr/include/boost/function_equal.hpp" 3 4 namespace boost { template bool function_equal_impl(const F& f, const G& g, long) { return f == g; } template bool function_equal(const F& f, const G& g) { return function_equal_impl(f, g, 0); } } # 39 "/usr/include/boost/function/function_base.hpp" 2 3 4 # 1 "/usr/include/boost/function/function_fwd.hpp" 1 3 4 # 27 "/usr/include/boost/function/function_fwd.hpp" 3 4 namespace boost { class bad_function_call; template class function; template inline void swap(function& f1, function& f2) { f1.swap(f2); } template class function0; template class function1; template class function2; template class function3; template class function4; template class function5; template class function6; template class function7; template class function8; template class function9; template class function10; } # 40 "/usr/include/boost/function/function_base.hpp" 2 3 4 # 62 "/usr/include/boost/function/function_base.hpp" 3 4 # 1 "/usr/include/c++/5.0.0/cstring" 1 3 4 # 39 "/usr/include/c++/5.0.0/cstring" 3 4 # 40 "/usr/include/c++/5.0.0/cstring" 3 # 63 "/usr/include/boost/function/function_base.hpp" 2 3 4 # 89 "/usr/include/boost/function/function_base.hpp" 3 4 namespace boost { namespace detail { namespace function { class X; union function_buffer { mutable void* obj_ptr; struct type_t { const detail::sp_typeinfo* type; bool const_qualified; bool volatile_qualified; } type; mutable void (*func_ptr)(); struct bound_memfunc_ptr_t { void (X::*memfunc_ptr)(int); void* obj_ptr; } bound_memfunc_ptr; struct obj_ref_t { mutable void* obj_ptr; bool is_const_qualified; bool is_volatile_qualified; } obj_ref; mutable char data; }; struct unusable { unusable() {} template unusable(const T&) {} }; template struct function_return_type { typedef T type; }; template<> struct function_return_type { typedef unusable type; }; enum functor_manager_operation_type { clone_functor_tag, move_functor_tag, destroy_functor_tag, check_functor_type_tag, get_functor_type_tag }; struct function_ptr_tag {}; struct function_obj_tag {}; struct member_ptr_tag {}; struct function_obj_ref_tag {}; template class get_function_tag { typedef typename mpl::if_c<(is_pointer::value), function_ptr_tag, function_obj_tag>::type ptr_or_obj_tag; typedef typename mpl::if_c<(is_member_pointer::value), member_ptr_tag, ptr_or_obj_tag>::type ptr_or_obj_or_mem_tag; typedef typename mpl::if_c<(is_reference_wrapper::value), function_obj_ref_tag, ptr_or_obj_or_mem_tag>::type or_ref_tag; public: typedef or_ref_tag type; }; template struct reference_manager { static inline void manage(const function_buffer& in_buffer, function_buffer& out_buffer, functor_manager_operation_type op) { switch (op) { case clone_functor_tag: out_buffer.obj_ref = in_buffer.obj_ref; return; case move_functor_tag: out_buffer.obj_ref = in_buffer.obj_ref; in_buffer.obj_ref.obj_ptr = 0; return; case destroy_functor_tag: out_buffer.obj_ref.obj_ptr = 0; return; case check_functor_type_tag: { const detail::sp_typeinfo& check_type = *out_buffer.type.type; if ((std::strcmp((check_type).name(),(typeid(F)).name()) == 0) && (!in_buffer.obj_ref.is_const_qualified || out_buffer.type.const_qualified) && (!in_buffer.obj_ref.is_volatile_qualified || out_buffer.type.volatile_qualified)) out_buffer.obj_ptr = in_buffer.obj_ref.obj_ptr; else out_buffer.obj_ptr = 0; } return; case get_functor_type_tag: out_buffer.type.type = &typeid(F); out_buffer.type.const_qualified = in_buffer.obj_ref.is_const_qualified; out_buffer.type.volatile_qualified = in_buffer.obj_ref.is_volatile_qualified; return; } } }; template struct function_allows_small_object_optimization { static const bool value = ((sizeof(F) <= sizeof(function_buffer) && (alignment_of::value % alignment_of::value == 0))) ; }; template struct functor_wrapper: public F, public A { functor_wrapper( F f, A a ): F(f), A(a) { } functor_wrapper(const functor_wrapper& f) : F(static_cast(f)), A(static_cast(f)) { } }; template struct functor_manager_common { typedef Functor functor_type; static inline void manage_ptr(const function_buffer& in_buffer, function_buffer& out_buffer, functor_manager_operation_type op) { if (op == clone_functor_tag) out_buffer.func_ptr = in_buffer.func_ptr; else if (op == move_functor_tag) { out_buffer.func_ptr = in_buffer.func_ptr; in_buffer.func_ptr = 0; } else if (op == destroy_functor_tag) out_buffer.func_ptr = 0; else if (op == check_functor_type_tag) { const detail::sp_typeinfo& check_type = *out_buffer.type.type; if ((std::strcmp((check_type).name(),(typeid(Functor)).name()) == 0)) out_buffer.obj_ptr = &in_buffer.func_ptr; else out_buffer.obj_ptr = 0; } else { out_buffer.type.type = &typeid(Functor); out_buffer.type.const_qualified = false; out_buffer.type.volatile_qualified = false; } } static inline void manage_small(const function_buffer& in_buffer, function_buffer& out_buffer, functor_manager_operation_type op) { if (op == clone_functor_tag || op == move_functor_tag) { const functor_type* in_functor = reinterpret_cast(&in_buffer.data); new (reinterpret_cast(&out_buffer.data)) functor_type(*in_functor); if (op == move_functor_tag) { functor_type* f = reinterpret_cast(&in_buffer.data); (void)f; f->~Functor(); } } else if (op == destroy_functor_tag) { functor_type* f = reinterpret_cast(&out_buffer.data); (void)f; f->~Functor(); } else if (op == check_functor_type_tag) { const detail::sp_typeinfo& check_type = *out_buffer.type.type; if ((std::strcmp((check_type).name(),(typeid(Functor)).name()) == 0)) out_buffer.obj_ptr = &in_buffer.data; else out_buffer.obj_ptr = 0; } else { out_buffer.type.type = &typeid(Functor); out_buffer.type.const_qualified = false; out_buffer.type.volatile_qualified = false; } } }; template struct functor_manager { private: typedef Functor functor_type; static inline void manager(const function_buffer& in_buffer, function_buffer& out_buffer, functor_manager_operation_type op, function_ptr_tag) { functor_manager_common::manage_ptr(in_buffer,out_buffer,op); } static inline void manager(const function_buffer& in_buffer, function_buffer& out_buffer, functor_manager_operation_type op, mpl::true_) { functor_manager_common::manage_small(in_buffer,out_buffer,op); } static inline void manager(const function_buffer& in_buffer, function_buffer& out_buffer, functor_manager_operation_type op, mpl::false_) { if (op == clone_functor_tag) { const functor_type* f = static_cast(in_buffer.obj_ptr); functor_type* new_f = new functor_type(*f); out_buffer.obj_ptr = new_f; } else if (op == move_functor_tag) { out_buffer.obj_ptr = in_buffer.obj_ptr; in_buffer.obj_ptr = 0; } else if (op == destroy_functor_tag) { functor_type* f = static_cast(out_buffer.obj_ptr); delete f; out_buffer.obj_ptr = 0; } else if (op == check_functor_type_tag) { const detail::sp_typeinfo& check_type = *out_buffer.type.type; if ((std::strcmp((check_type).name(),(typeid(Functor)).name()) == 0)) out_buffer.obj_ptr = in_buffer.obj_ptr; else out_buffer.obj_ptr = 0; } else { out_buffer.type.type = &typeid(Functor); out_buffer.type.const_qualified = false; out_buffer.type.volatile_qualified = false; } } static inline void manager(const function_buffer& in_buffer, function_buffer& out_buffer, functor_manager_operation_type op, function_obj_tag) { manager(in_buffer, out_buffer, op, mpl::bool_<(function_allows_small_object_optimization::value)>()); } static inline void manager(const function_buffer& in_buffer, function_buffer& out_buffer, functor_manager_operation_type op, member_ptr_tag) { manager(in_buffer, out_buffer, op, mpl::true_()); } public: static inline void manage(const function_buffer& in_buffer, function_buffer& out_buffer, functor_manager_operation_type op) { typedef typename get_function_tag::type tag_type; switch (op) { case get_functor_type_tag: out_buffer.type.type = &typeid(functor_type); out_buffer.type.const_qualified = false; out_buffer.type.volatile_qualified = false; return; default: manager(in_buffer, out_buffer, op, tag_type()); return; } } }; template struct functor_manager_a { private: typedef Functor functor_type; static inline void manager(const function_buffer& in_buffer, function_buffer& out_buffer, functor_manager_operation_type op, function_ptr_tag) { functor_manager_common::manage_ptr(in_buffer,out_buffer,op); } static inline void manager(const function_buffer& in_buffer, function_buffer& out_buffer, functor_manager_operation_type op, mpl::true_) { functor_manager_common::manage_small(in_buffer,out_buffer,op); } static inline void manager(const function_buffer& in_buffer, function_buffer& out_buffer, functor_manager_operation_type op, mpl::false_) { typedef functor_wrapper functor_wrapper_type; typedef typename Allocator::template rebind::other wrapper_allocator_type; typedef typename wrapper_allocator_type::pointer wrapper_allocator_pointer_type; if (op == clone_functor_tag) { const functor_wrapper_type* f = static_cast(in_buffer.obj_ptr); wrapper_allocator_type wrapper_allocator(static_cast(*f)); wrapper_allocator_pointer_type copy = wrapper_allocator.allocate(1); wrapper_allocator.construct(copy, *f); functor_wrapper_type* new_f = static_cast(copy); out_buffer.obj_ptr = new_f; } else if (op == move_functor_tag) { out_buffer.obj_ptr = in_buffer.obj_ptr; in_buffer.obj_ptr = 0; } else if (op == destroy_functor_tag) { functor_wrapper_type* victim = static_cast(in_buffer.obj_ptr); wrapper_allocator_type wrapper_allocator(static_cast(*victim)); wrapper_allocator.destroy(victim); wrapper_allocator.deallocate(victim,1); out_buffer.obj_ptr = 0; } else if (op == check_functor_type_tag) { const detail::sp_typeinfo& check_type = *out_buffer.type.type; if ((std::strcmp((check_type).name(),(typeid(Functor)).name()) == 0)) out_buffer.obj_ptr = in_buffer.obj_ptr; else out_buffer.obj_ptr = 0; } else { out_buffer.type.type = &typeid(Functor); out_buffer.type.const_qualified = false; out_buffer.type.volatile_qualified = false; } } static inline void manager(const function_buffer& in_buffer, function_buffer& out_buffer, functor_manager_operation_type op, function_obj_tag) { manager(in_buffer, out_buffer, op, mpl::bool_<(function_allows_small_object_optimization::value)>()); } public: static inline void manage(const function_buffer& in_buffer, function_buffer& out_buffer, functor_manager_operation_type op) { typedef typename get_function_tag::type tag_type; switch (op) { case get_functor_type_tag: out_buffer.type.type = &typeid(functor_type); out_buffer.type.const_qualified = false; out_buffer.type.volatile_qualified = false; return; default: manager(in_buffer, out_buffer, op, tag_type()); return; } } }; struct useless_clear_type {}; # 615 "/usr/include/boost/function/function_base.hpp" 3 4 struct vtable_base { void (*manager)(const function_buffer& in_buffer, function_buffer& out_buffer, functor_manager_operation_type op); }; } } class function_base { public: function_base() : vtable(0) { } bool empty() const { return !vtable; } const detail::sp_typeinfo& target_type() const { if (!vtable) return typeid(void); detail::function::function_buffer type; get_vtable()->manager(functor, type, detail::function::get_functor_type_tag); return *type.type.type; } template Functor* target() { if (!vtable) return 0; detail::function::function_buffer type_result; type_result.type.type = &typeid(Functor); type_result.type.const_qualified = is_const::value; type_result.type.volatile_qualified = is_volatile::value; get_vtable()->manager(functor, type_result, detail::function::check_functor_type_tag); return static_cast(type_result.obj_ptr); } template const Functor* target() const { if (!vtable) return 0; detail::function::function_buffer type_result; type_result.type.type = &typeid(Functor); type_result.type.const_qualified = true; type_result.type.volatile_qualified = is_volatile::value; get_vtable()->manager(functor, type_result, detail::function::check_functor_type_tag); return static_cast(type_result.obj_ptr); } template bool contains(const F& f) const { if (const F* fp = this->template target()) { return function_equal(*fp, f); } else { return false; } } # 713 "/usr/include/boost/function/function_base.hpp" 3 4 public: detail::function::vtable_base* get_vtable() const { return reinterpret_cast( reinterpret_cast(vtable) & ~static_cast(0x01)); } bool has_trivial_copy_and_destroy() const { return reinterpret_cast(vtable) & 0x01; } detail::function::vtable_base* vtable; mutable detail::function::function_buffer functor; }; class bad_function_call : public std::runtime_error { public: bad_function_call() : std::runtime_error("call to empty boost::function") {} }; inline bool operator==(const function_base& f, detail::function::useless_clear_type*) { return f.empty(); } inline bool operator!=(const function_base& f, detail::function::useless_clear_type*) { return !f.empty(); } inline bool operator==(detail::function::useless_clear_type*, const function_base& f) { return f.empty(); } inline bool operator!=(detail::function::useless_clear_type*, const function_base& f) { return !f.empty(); } # 798 "/usr/include/boost/function/function_base.hpp" 3 4 template typename ::boost::enable_if_c<(::boost::type_traits::ice_not< (::boost::is_integral::value)>::value), bool>::type operator==(const function_base& f, Functor g) { if (const Functor* fp = f.template target()) return function_equal(*fp, g); else return false; } template typename ::boost::enable_if_c<(::boost::type_traits::ice_not< (::boost::is_integral::value)>::value), bool>::type operator==(Functor g, const function_base& f) { if (const Functor* fp = f.template target()) return function_equal(g, *fp); else return false; } template typename ::boost::enable_if_c<(::boost::type_traits::ice_not< (::boost::is_integral::value)>::value), bool>::type operator!=(const function_base& f, Functor g) { if (const Functor* fp = f.template target()) return !function_equal(*fp, g); else return true; } template typename ::boost::enable_if_c<(::boost::type_traits::ice_not< (::boost::is_integral::value)>::value), bool>::type operator!=(Functor g, const function_base& f) { if (const Functor* fp = f.template target()) return !function_equal(g, *fp); else return true; } template typename ::boost::enable_if_c<(::boost::type_traits::ice_not< (::boost::is_integral::value)>::value), bool>::type operator==(const function_base& f, reference_wrapper g) { if (const Functor* fp = f.template target()) return fp == g.get_pointer(); else return false; } template typename ::boost::enable_if_c<(::boost::type_traits::ice_not< (::boost::is_integral::value)>::value), bool>::type operator==(reference_wrapper g, const function_base& f) { if (const Functor* fp = f.template target()) return g.get_pointer() == fp; else return false; } template typename ::boost::enable_if_c<(::boost::type_traits::ice_not< (::boost::is_integral::value)>::value), bool>::type operator!=(const function_base& f, reference_wrapper g) { if (const Functor* fp = f.template target()) return fp != g.get_pointer(); else return true; } template typename ::boost::enable_if_c<(::boost::type_traits::ice_not< (::boost::is_integral::value)>::value), bool>::type operator!=(reference_wrapper g, const function_base& f) { if (const Functor* fp = f.template target()) return g.get_pointer() != fp; else return true; } namespace detail { namespace function { inline bool has_empty_target(const function_base* f) { return f->empty(); } inline bool has_empty_target(...) { return false; } } } } # 18 "/usr/include/boost/function/detail/prologue.hpp" 2 3 4 # 1 "/usr/include/boost/mem_fn.hpp" 1 3 4 # 22 "/usr/include/boost/mem_fn.hpp" 3 4 # 1 "/usr/include/boost/bind/mem_fn.hpp" 1 3 4 # 25 "/usr/include/boost/bind/mem_fn.hpp" 3 4 # 1 "/usr/include/boost/get_pointer.hpp" 1 3 4 # 16 "/usr/include/boost/get_pointer.hpp" 3 4 namespace boost { template T * get_pointer(T * p) { return p; } template T * get_pointer(std::auto_ptr const& p) { return p.get(); } # 46 "/usr/include/boost/get_pointer.hpp" 3 4 } # 26 "/usr/include/boost/bind/mem_fn.hpp" 2 3 4 namespace boost { # 207 "/usr/include/boost/bind/mem_fn.hpp" 3 4 namespace _mfi { # 1 "/usr/include/boost/bind/mem_fn_template.hpp" 1 3 4 # 21 "/usr/include/boost/bind/mem_fn_template.hpp" 3 4 template class mf0 { public: typedef R result_type; typedef T * argument_type; private: typedef R ( T::*F) (); F f_; template R call(U & u, T const *) const { return (u.*f_)(); } template R call(U & u, void const *) const { return (get_pointer(u)->*f_)(); } public: explicit mf0(F f): f_(f) {} R operator()(T * p) const { return (p->*f_)(); } template R operator()(U & u) const { U const * p = 0; return call(u, p); } template R operator()(U const & u) const { U const * p = 0; return call(u, p); } R operator()(T & t) const { return (t.*f_)(); } bool operator==(mf0 const & rhs) const { return f_ == rhs.f_; } bool operator!=(mf0 const & rhs) const { return f_ != rhs.f_; } }; template class cmf0 { public: typedef R result_type; typedef T const * argument_type; private: typedef R ( T::*F) () const; F f_; template R call(U & u, T const *) const { return (u.*f_)(); } template R call(U & u, void const *) const { return (get_pointer(u)->*f_)(); } public: explicit cmf0(F f): f_(f) {} template R operator()(U const & u) const { U const * p = 0; return call(u, p); } R operator()(T const & t) const { return (t.*f_)(); } bool operator==(cmf0 const & rhs) const { return f_ == rhs.f_; } bool operator!=(cmf0 const & rhs) const { return f_ != rhs.f_; } }; template class mf1 { public: typedef R result_type; typedef T * first_argument_type; typedef A1 second_argument_type; private: typedef R ( T::*F) (A1); F f_; template R call(U & u, T const *, B1 & b1) const { return (u.*f_)(b1); } template R call(U & u, void const *, B1 & b1) const { return (get_pointer(u)->*f_)(b1); } public: explicit mf1(F f): f_(f) {} R operator()(T * p, A1 a1) const { return (p->*f_)(a1); } template R operator()(U & u, A1 a1) const { U const * p = 0; return call(u, p, a1); } template R operator()(U const & u, A1 a1) const { U const * p = 0; return call(u, p, a1); } R operator()(T & t, A1 a1) const { return (t.*f_)(a1); } bool operator==(mf1 const & rhs) const { return f_ == rhs.f_; } bool operator!=(mf1 const & rhs) const { return f_ != rhs.f_; } }; template class cmf1 { public: typedef R result_type; typedef T const * first_argument_type; typedef A1 second_argument_type; private: typedef R ( T::*F) (A1) const; F f_; template R call(U & u, T const *, B1 & b1) const { return (u.*f_)(b1); } template R call(U & u, void const *, B1 & b1) const { return (get_pointer(u)->*f_)(b1); } public: explicit cmf1(F f): f_(f) {} template R operator()(U const & u, A1 a1) const { U const * p = 0; return call(u, p, a1); } R operator()(T const & t, A1 a1) const { return (t.*f_)(a1); } bool operator==(cmf1 const & rhs) const { return f_ == rhs.f_; } bool operator!=(cmf1 const & rhs) const { return f_ != rhs.f_; } }; template class mf2 { public: typedef R result_type; private: typedef R ( T::*F) (A1, A2); F f_; template R call(U & u, T const *, B1 & b1, B2 & b2) const { return (u.*f_)(b1, b2); } template R call(U & u, void const *, B1 & b1, B2 & b2) const { return (get_pointer(u)->*f_)(b1, b2); } public: explicit mf2(F f): f_(f) {} R operator()(T * p, A1 a1, A2 a2) const { return (p->*f_)(a1, a2); } template R operator()(U & u, A1 a1, A2 a2) const { U const * p = 0; return call(u, p, a1, a2); } template R operator()(U const & u, A1 a1, A2 a2) const { U const * p = 0; return call(u, p, a1, a2); } R operator()(T & t, A1 a1, A2 a2) const { return (t.*f_)(a1, a2); } bool operator==(mf2 const & rhs) const { return f_ == rhs.f_; } bool operator!=(mf2 const & rhs) const { return f_ != rhs.f_; } }; template class cmf2 { public: typedef R result_type; private: typedef R ( T::*F) (A1, A2) const; F f_; template R call(U & u, T const *, B1 & b1, B2 & b2) const { return (u.*f_)(b1, b2); } template R call(U & u, void const *, B1 & b1, B2 & b2) const { return (get_pointer(u)->*f_)(b1, b2); } public: explicit cmf2(F f): f_(f) {} template R operator()(U const & u, A1 a1, A2 a2) const { U const * p = 0; return call(u, p, a1, a2); } R operator()(T const & t, A1 a1, A2 a2) const { return (t.*f_)(a1, a2); } bool operator==(cmf2 const & rhs) const { return f_ == rhs.f_; } bool operator!=(cmf2 const & rhs) const { return f_ != rhs.f_; } }; template class mf3 { public: typedef R result_type; private: typedef R ( T::*F) (A1, A2, A3); F f_; template R call(U & u, T const *, B1 & b1, B2 & b2, B3 & b3) const { return (u.*f_)(b1, b2, b3); } template R call(U & u, void const *, B1 & b1, B2 & b2, B3 & b3) const { return (get_pointer(u)->*f_)(b1, b2, b3); } public: explicit mf3(F f): f_(f) {} R operator()(T * p, A1 a1, A2 a2, A3 a3) const { return (p->*f_)(a1, a2, a3); } template R operator()(U & u, A1 a1, A2 a2, A3 a3) const { U const * p = 0; return call(u, p, a1, a2, a3); } template R operator()(U const & u, A1 a1, A2 a2, A3 a3) const { U const * p = 0; return call(u, p, a1, a2, a3); } R operator()(T & t, A1 a1, A2 a2, A3 a3) const { return (t.*f_)(a1, a2, a3); } bool operator==(mf3 const & rhs) const { return f_ == rhs.f_; } bool operator!=(mf3 const & rhs) const { return f_ != rhs.f_; } }; template class cmf3 { public: typedef R result_type; private: typedef R ( T::*F) (A1, A2, A3) const; F f_; template R call(U & u, T const *, B1 & b1, B2 & b2, B3 & b3) const { return (u.*f_)(b1, b2, b3); } template R call(U & u, void const *, B1 & b1, B2 & b2, B3 & b3) const { return (get_pointer(u)->*f_)(b1, b2, b3); } public: explicit cmf3(F f): f_(f) {} template R operator()(U const & u, A1 a1, A2 a2, A3 a3) const { U const * p = 0; return call(u, p, a1, a2, a3); } R operator()(T const & t, A1 a1, A2 a2, A3 a3) const { return (t.*f_)(a1, a2, a3); } bool operator==(cmf3 const & rhs) const { return f_ == rhs.f_; } bool operator!=(cmf3 const & rhs) const { return f_ != rhs.f_; } }; template class mf4 { public: typedef R result_type; private: typedef R ( T::*F) (A1, A2, A3, A4); F f_; template R call(U & u, T const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4) const { return (u.*f_)(b1, b2, b3, b4); } template R call(U & u, void const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4) const { return (get_pointer(u)->*f_)(b1, b2, b3, b4); } public: explicit mf4(F f): f_(f) {} R operator()(T * p, A1 a1, A2 a2, A3 a3, A4 a4) const { return (p->*f_)(a1, a2, a3, a4); } template R operator()(U & u, A1 a1, A2 a2, A3 a3, A4 a4) const { U const * p = 0; return call(u, p, a1, a2, a3, a4); } template R operator()(U const & u, A1 a1, A2 a2, A3 a3, A4 a4) const { U const * p = 0; return call(u, p, a1, a2, a3, a4); } R operator()(T & t, A1 a1, A2 a2, A3 a3, A4 a4) const { return (t.*f_)(a1, a2, a3, a4); } bool operator==(mf4 const & rhs) const { return f_ == rhs.f_; } bool operator!=(mf4 const & rhs) const { return f_ != rhs.f_; } }; template class cmf4 { public: typedef R result_type; private: typedef R ( T::*F) (A1, A2, A3, A4) const; F f_; template R call(U & u, T const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4) const { return (u.*f_)(b1, b2, b3, b4); } template R call(U & u, void const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4) const { return (get_pointer(u)->*f_)(b1, b2, b3, b4); } public: explicit cmf4(F f): f_(f) {} template R operator()(U const & u, A1 a1, A2 a2, A3 a3, A4 a4) const { U const * p = 0; return call(u, p, a1, a2, a3, a4); } R operator()(T const & t, A1 a1, A2 a2, A3 a3, A4 a4) const { return (t.*f_)(a1, a2, a3, a4); } bool operator==(cmf4 const & rhs) const { return f_ == rhs.f_; } bool operator!=(cmf4 const & rhs) const { return f_ != rhs.f_; } }; template class mf5 { public: typedef R result_type; private: typedef R ( T::*F) (A1, A2, A3, A4, A5); F f_; template R call(U & u, T const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5) const { return (u.*f_)(b1, b2, b3, b4, b5); } template R call(U & u, void const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5) const { return (get_pointer(u)->*f_)(b1, b2, b3, b4, b5); } public: explicit mf5(F f): f_(f) {} R operator()(T * p, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) const { return (p->*f_)(a1, a2, a3, a4, a5); } template R operator()(U & u, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) const { U const * p = 0; return call(u, p, a1, a2, a3, a4, a5); } template R operator()(U const & u, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) const { U const * p = 0; return call(u, p, a1, a2, a3, a4, a5); } R operator()(T & t, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) const { return (t.*f_)(a1, a2, a3, a4, a5); } bool operator==(mf5 const & rhs) const { return f_ == rhs.f_; } bool operator!=(mf5 const & rhs) const { return f_ != rhs.f_; } }; template class cmf5 { public: typedef R result_type; private: typedef R ( T::*F) (A1, A2, A3, A4, A5) const; F f_; template R call(U & u, T const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5) const { return (u.*f_)(b1, b2, b3, b4, b5); } template R call(U & u, void const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5) const { return (get_pointer(u)->*f_)(b1, b2, b3, b4, b5); } public: explicit cmf5(F f): f_(f) {} template R operator()(U const & u, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) const { U const * p = 0; return call(u, p, a1, a2, a3, a4, a5); } R operator()(T const & t, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) const { return (t.*f_)(a1, a2, a3, a4, a5); } bool operator==(cmf5 const & rhs) const { return f_ == rhs.f_; } bool operator!=(cmf5 const & rhs) const { return f_ != rhs.f_; } }; template class mf6 { public: typedef R result_type; private: typedef R ( T::*F) (A1, A2, A3, A4, A5, A6); F f_; template R call(U & u, T const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5, B6 & b6) const { return (u.*f_)(b1, b2, b3, b4, b5, b6); } template R call(U & u, void const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5, B6 & b6) const { return (get_pointer(u)->*f_)(b1, b2, b3, b4, b5, b6); } public: explicit mf6(F f): f_(f) {} R operator()(T * p, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) const { return (p->*f_)(a1, a2, a3, a4, a5, a6); } template R operator()(U & u, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) const { U const * p = 0; return call(u, p, a1, a2, a3, a4, a5, a6); } template R operator()(U const & u, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) const { U const * p = 0; return call(u, p, a1, a2, a3, a4, a5, a6); } R operator()(T & t, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) const { return (t.*f_)(a1, a2, a3, a4, a5, a6); } bool operator==(mf6 const & rhs) const { return f_ == rhs.f_; } bool operator!=(mf6 const & rhs) const { return f_ != rhs.f_; } }; template class cmf6 { public: typedef R result_type; private: typedef R ( T::*F) (A1, A2, A3, A4, A5, A6) const; F f_; template R call(U & u, T const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5, B6 & b6) const { return (u.*f_)(b1, b2, b3, b4, b5, b6); } template R call(U & u, void const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5, B6 & b6) const { return (get_pointer(u)->*f_)(b1, b2, b3, b4, b5, b6); } public: explicit cmf6(F f): f_(f) {} template R operator()(U const & u, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) const { U const * p = 0; return call(u, p, a1, a2, a3, a4, a5, a6); } R operator()(T const & t, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) const { return (t.*f_)(a1, a2, a3, a4, a5, a6); } bool operator==(cmf6 const & rhs) const { return f_ == rhs.f_; } bool operator!=(cmf6 const & rhs) const { return f_ != rhs.f_; } }; template class mf7 { public: typedef R result_type; private: typedef R ( T::*F) (A1, A2, A3, A4, A5, A6, A7); F f_; template R call(U & u, T const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5, B6 & b6, B7 & b7) const { return (u.*f_)(b1, b2, b3, b4, b5, b6, b7); } template R call(U & u, void const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5, B6 & b6, B7 & b7) const { return (get_pointer(u)->*f_)(b1, b2, b3, b4, b5, b6, b7); } public: explicit mf7(F f): f_(f) {} R operator()(T * p, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7) const { return (p->*f_)(a1, a2, a3, a4, a5, a6, a7); } template R operator()(U & u, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7) const { U const * p = 0; return call(u, p, a1, a2, a3, a4, a5, a6, a7); } template R operator()(U const & u, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7) const { U const * p = 0; return call(u, p, a1, a2, a3, a4, a5, a6, a7); } R operator()(T & t, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7) const { return (t.*f_)(a1, a2, a3, a4, a5, a6, a7); } bool operator==(mf7 const & rhs) const { return f_ == rhs.f_; } bool operator!=(mf7 const & rhs) const { return f_ != rhs.f_; } }; template class cmf7 { public: typedef R result_type; private: typedef R ( T::*F) (A1, A2, A3, A4, A5, A6, A7) const; F f_; template R call(U & u, T const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5, B6 & b6, B7 & b7) const { return (u.*f_)(b1, b2, b3, b4, b5, b6, b7); } template R call(U & u, void const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5, B6 & b6, B7 & b7) const { return (get_pointer(u)->*f_)(b1, b2, b3, b4, b5, b6, b7); } public: explicit cmf7(F f): f_(f) {} template R operator()(U const & u, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7) const { U const * p = 0; return call(u, p, a1, a2, a3, a4, a5, a6, a7); } R operator()(T const & t, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7) const { return (t.*f_)(a1, a2, a3, a4, a5, a6, a7); } bool operator==(cmf7 const & rhs) const { return f_ == rhs.f_; } bool operator!=(cmf7 const & rhs) const { return f_ != rhs.f_; } }; template class mf8 { public: typedef R result_type; private: typedef R ( T::*F) (A1, A2, A3, A4, A5, A6, A7, A8); F f_; template R call(U & u, T const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5, B6 & b6, B7 & b7, B8 & b8) const { return (u.*f_)(b1, b2, b3, b4, b5, b6, b7, b8); } template R call(U & u, void const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5, B6 & b6, B7 & b7, B8 & b8) const { return (get_pointer(u)->*f_)(b1, b2, b3, b4, b5, b6, b7, b8); } public: explicit mf8(F f): f_(f) {} R operator()(T * p, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8) const { return (p->*f_)(a1, a2, a3, a4, a5, a6, a7, a8); } template R operator()(U & u, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8) const { U const * p = 0; return call(u, p, a1, a2, a3, a4, a5, a6, a7, a8); } template R operator()(U const & u, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8) const { U const * p = 0; return call(u, p, a1, a2, a3, a4, a5, a6, a7, a8); } R operator()(T & t, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8) const { return (t.*f_)(a1, a2, a3, a4, a5, a6, a7, a8); } bool operator==(mf8 const & rhs) const { return f_ == rhs.f_; } bool operator!=(mf8 const & rhs) const { return f_ != rhs.f_; } }; template class cmf8 { public: typedef R result_type; private: typedef R ( T::*F) (A1, A2, A3, A4, A5, A6, A7, A8) const; F f_; template R call(U & u, T const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5, B6 & b6, B7 & b7, B8 & b8) const { return (u.*f_)(b1, b2, b3, b4, b5, b6, b7, b8); } template R call(U & u, void const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5, B6 & b6, B7 & b7, B8 & b8) const { return (get_pointer(u)->*f_)(b1, b2, b3, b4, b5, b6, b7, b8); } public: explicit cmf8(F f): f_(f) {} R operator()(T const * p, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8) const { return (p->*f_)(a1, a2, a3, a4, a5, a6, a7, a8); } template R operator()(U const & u, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8) const { U const * p = 0; return call(u, p, a1, a2, a3, a4, a5, a6, a7, a8); } R operator()(T const & t, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8) const { return (t.*f_)(a1, a2, a3, a4, a5, a6, a7, a8); } bool operator==(cmf8 const & rhs) const { return f_ == rhs.f_; } bool operator!=(cmf8 const & rhs) const { return f_ != rhs.f_; } }; # 216 "/usr/include/boost/bind/mem_fn.hpp" 2 3 4 # 258 "/usr/include/boost/bind/mem_fn.hpp" 3 4 } # 268 "/usr/include/boost/bind/mem_fn.hpp" 3 4 # 1 "/usr/include/boost/bind/mem_fn_cc.hpp" 1 3 4 # 15 "/usr/include/boost/bind/mem_fn_cc.hpp" 3 4 template _mfi::mf0 mem_fn(R ( T::*f) ()) { return _mfi::mf0(f); } template _mfi::cmf0 mem_fn(R ( T::*f) () const) { return _mfi::cmf0(f); } template _mfi::mf1 mem_fn(R ( T::*f) (A1)) { return _mfi::mf1(f); } template _mfi::cmf1 mem_fn(R ( T::*f) (A1) const) { return _mfi::cmf1(f); } template _mfi::mf2 mem_fn(R ( T::*f) (A1, A2)) { return _mfi::mf2(f); } template _mfi::cmf2 mem_fn(R ( T::*f) (A1, A2) const) { return _mfi::cmf2(f); } template _mfi::mf3 mem_fn(R ( T::*f) (A1, A2, A3)) { return _mfi::mf3(f); } template _mfi::cmf3 mem_fn(R ( T::*f) (A1, A2, A3) const) { return _mfi::cmf3(f); } template _mfi::mf4 mem_fn(R ( T::*f) (A1, A2, A3, A4)) { return _mfi::mf4(f); } template _mfi::cmf4 mem_fn(R ( T::*f) (A1, A2, A3, A4) const) { return _mfi::cmf4(f); } template _mfi::mf5 mem_fn(R ( T::*f) (A1, A2, A3, A4, A5)) { return _mfi::mf5(f); } template _mfi::cmf5 mem_fn(R ( T::*f) (A1, A2, A3, A4, A5) const) { return _mfi::cmf5(f); } template _mfi::mf6 mem_fn(R ( T::*f) (A1, A2, A3, A4, A5, A6)) { return _mfi::mf6(f); } template _mfi::cmf6 mem_fn(R ( T::*f) (A1, A2, A3, A4, A5, A6) const) { return _mfi::cmf6(f); } template _mfi::mf7 mem_fn(R ( T::*f) (A1, A2, A3, A4, A5, A6, A7)) { return _mfi::mf7(f); } template _mfi::cmf7 mem_fn(R ( T::*f) (A1, A2, A3, A4, A5, A6, A7) const) { return _mfi::cmf7(f); } template _mfi::mf8 mem_fn(R ( T::*f) (A1, A2, A3, A4, A5, A6, A7, A8)) { return _mfi::mf8(f); } template _mfi::cmf8 mem_fn(R ( T::*f) (A1, A2, A3, A4, A5, A6, A7, A8) const) { return _mfi::cmf8(f); } # 269 "/usr/include/boost/bind/mem_fn.hpp" 2 3 4 # 311 "/usr/include/boost/bind/mem_fn.hpp" 3 4 namespace _mfi { template class dm { public: typedef R const & result_type; typedef T const * argument_type; private: typedef R (T::*F); F f_; template R const & call(U & u, T const *) const { return (u.*f_); } template R const & call(U & u, void const *) const { return (get_pointer(u)->*f_); } public: explicit dm(F f): f_(f) {} R & operator()(T * p) const { return (p->*f_); } R const & operator()(T const * p) const { return (p->*f_); } template R const & operator()(U const & u) const { return call(u, &u); } R & operator()(T & t) const { return (t.*f_); } R const & operator()(T const & t) const { return (t.*f_); } bool operator==(dm const & rhs) const { return f_ == rhs.f_; } bool operator!=(dm const & rhs) const { return f_ != rhs.f_; } }; } template _mfi::dm mem_fn(R T::*f) { return _mfi::dm(f); } } # 23 "/usr/include/boost/mem_fn.hpp" 2 3 4 # 19 "/usr/include/boost/function/detail/prologue.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/enum.hpp" 1 3 4 # 21 "/usr/include/boost/function/detail/prologue.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/enum_params.hpp" 1 3 4 # 22 "/usr/include/boost/function/detail/prologue.hpp" 2 3 4 # 25 "/usr/include/boost/function.hpp" 2 3 4 # 64 "/usr/include/boost/function.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 1 3 4 # 24 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 1 3 4 # 12 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/slot/detail/shared.hpp" 1 3 4 # 13 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 2 3 4 # 25 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 1 3 4 # 12 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/slot/detail/shared.hpp" 1 3 4 # 13 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 2 3 4 # 27 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 47 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 13 "/usr/include/boost/function/detail/maybe_include.hpp" 3 4 # 1 "/usr/include/boost/function/function_template.hpp" 1 3 4 # 14 "/usr/include/boost/function/function_template.hpp" 3 4 # 1 "/usr/include/boost/detail/no_exceptions_support.hpp" 1 3 4 # 15 "/usr/include/boost/detail/no_exceptions_support.hpp" 3 4 # 1 "/usr/include/boost/core/no_exceptions_support.hpp" 1 3 4 # 16 "/usr/include/boost/detail/no_exceptions_support.hpp" 2 3 4 # 15 "/usr/include/boost/function/function_template.hpp" 2 3 4 # 81 "/usr/include/boost/function/function_template.hpp" 3 4 namespace boost { namespace detail { namespace function { template< typename FunctionPtr, typename R > struct function_invoker0 { static R invoke(function_buffer& function_ptr ) { FunctionPtr f = reinterpret_cast(function_ptr.func_ptr); return f(); } }; template< typename FunctionPtr, typename R > struct void_function_invoker0 { static void invoke(function_buffer& function_ptr ) { FunctionPtr f = reinterpret_cast(function_ptr.func_ptr); f(); } }; template< typename FunctionObj, typename R > struct function_obj_invoker0 { static R invoke(function_buffer& function_obj_ptr ) { FunctionObj* f; if (function_allows_small_object_optimization::value) f = reinterpret_cast(&function_obj_ptr.data); else f = reinterpret_cast(function_obj_ptr.obj_ptr); return (*f)(); } }; template< typename FunctionObj, typename R > struct void_function_obj_invoker0 { static void invoke(function_buffer& function_obj_ptr ) { FunctionObj* f; if (function_allows_small_object_optimization::value) f = reinterpret_cast(&function_obj_ptr.data); else f = reinterpret_cast(function_obj_ptr.obj_ptr); (*f)(); } }; template< typename FunctionObj, typename R > struct function_ref_invoker0 { static R invoke(function_buffer& function_obj_ptr ) { FunctionObj* f = reinterpret_cast(function_obj_ptr.obj_ptr); return (*f)(); } }; template< typename FunctionObj, typename R > struct void_function_ref_invoker0 { static void invoke(function_buffer& function_obj_ptr ) { FunctionObj* f = reinterpret_cast(function_obj_ptr.obj_ptr); (*f)(); } }; # 230 "/usr/include/boost/function/function_template.hpp" 3 4 template< typename FunctionPtr, typename R > struct get_function_invoker0 { typedef typename mpl::if_c<(is_void::value), void_function_invoker0< FunctionPtr, R >, function_invoker0< FunctionPtr, R > >::type type; }; template< typename FunctionObj, typename R > struct get_function_obj_invoker0 { typedef typename mpl::if_c<(is_void::value), void_function_obj_invoker0< FunctionObj, R >, function_obj_invoker0< FunctionObj, R > >::type type; }; template< typename FunctionObj, typename R > struct get_function_ref_invoker0 { typedef typename mpl::if_c<(is_void::value), void_function_ref_invoker0< FunctionObj, R >, function_ref_invoker0< FunctionObj, R > >::type type; }; # 326 "/usr/include/boost/function/function_template.hpp" 3 4 template struct get_invoker0 { }; template<> struct get_invoker0 { template struct apply { typedef typename get_function_invoker0< FunctionPtr, R >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_function_invoker0< FunctionPtr, R >::type invoker_type; typedef functor_manager manager_type; }; }; # 400 "/usr/include/boost/function/function_template.hpp" 3 4 template<> struct get_invoker0 { template struct apply { typedef typename get_function_obj_invoker0< FunctionObj, R >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_function_obj_invoker0< FunctionObj, R >::type invoker_type; typedef functor_manager_a manager_type; }; }; template<> struct get_invoker0 { template struct apply { typedef typename get_function_ref_invoker0< typename RefWrapper::type, R >::type invoker_type; typedef reference_manager manager_type; }; template struct apply_a { typedef typename get_function_ref_invoker0< typename RefWrapper::type, R >::type invoker_type; typedef reference_manager manager_type; }; }; # 475 "/usr/include/boost/function/function_template.hpp" 3 4 template struct basic_vtable0 { typedef R result_type; typedef result_type (*invoker_type)(function_buffer& ); template bool assign_to(F f, function_buffer& functor) const { typedef typename get_function_tag::type tag; return assign_to(f, functor, tag()); } template bool assign_to_a(F f, function_buffer& functor, Allocator a) const { typedef typename get_function_tag::type tag; return assign_to_a(f, functor, a, tag()); } void clear(function_buffer& functor) const { if (base.manager) base.manager(functor, functor, destroy_functor_tag); } private: template bool assign_to(FunctionPtr f, function_buffer& functor, function_ptr_tag) const { this->clear(functor); if (f) { functor.func_ptr = reinterpret_cast(f); return true; } else { return false; } } template bool assign_to_a(FunctionPtr f, function_buffer& functor, Allocator, function_ptr_tag) const { return assign_to(f,functor,function_ptr_tag()); } # 562 "/usr/include/boost/function/function_template.hpp" 3 4 template void assign_functor(FunctionObj f, function_buffer& functor, mpl::true_) const { new (reinterpret_cast(&functor.data)) FunctionObj(f); } template void assign_functor_a(FunctionObj f, function_buffer& functor, Allocator, mpl::true_) const { assign_functor(f,functor,mpl::true_()); } template void assign_functor(FunctionObj f, function_buffer& functor, mpl::false_) const { functor.obj_ptr = new FunctionObj(f); } template void assign_functor_a(FunctionObj f, function_buffer& functor, Allocator a, mpl::false_) const { typedef functor_wrapper functor_wrapper_type; typedef typename Allocator::template rebind::other wrapper_allocator_type; typedef typename wrapper_allocator_type::pointer wrapper_allocator_pointer_type; wrapper_allocator_type wrapper_allocator(a); wrapper_allocator_pointer_type copy = wrapper_allocator.allocate(1); wrapper_allocator.construct(copy, functor_wrapper_type(f,a)); functor_wrapper_type* new_f = static_cast(copy); functor.obj_ptr = new_f; } template bool assign_to(FunctionObj f, function_buffer& functor, function_obj_tag) const { if (!boost::detail::function::has_empty_target(boost::addressof(f))) { assign_functor(f, functor, mpl::bool_<(function_allows_small_object_optimization::value)>()); return true; } else { return false; } } template bool assign_to_a(FunctionObj f, function_buffer& functor, Allocator a, function_obj_tag) const { if (!boost::detail::function::has_empty_target(boost::addressof(f))) { assign_functor_a(f, functor, a, mpl::bool_<(function_allows_small_object_optimization::value)>()); return true; } else { return false; } } template bool assign_to(const reference_wrapper& f, function_buffer& functor, function_obj_ref_tag) const { functor.obj_ref.obj_ptr = (void *)(f.get_pointer()); functor.obj_ref.is_const_qualified = is_const::value; functor.obj_ref.is_volatile_qualified = is_volatile::value; return true; } template bool assign_to_a(const reference_wrapper& f, function_buffer& functor, Allocator, function_obj_ref_tag) const { return assign_to(f,functor,function_obj_ref_tag()); } public: vtable_base base; invoker_type invoker; }; } } template< typename R > class function0 : public function_base # 664 "/usr/include/boost/function/function_template.hpp" 3 4 { public: typedef R result_type; private: typedef boost::detail::function::basic_vtable0< R > vtable_type; vtable_type* get_vtable() const { return reinterpret_cast( reinterpret_cast(vtable) & ~static_cast(0x01)); } struct clear_type {}; public: static const int args = 0; template struct sig { typedef result_type type; }; # 702 "/usr/include/boost/function/function_template.hpp" 3 4 static const int arity = 0; typedef function0 self_type; function0() : function_base() { } template function0(Functor f ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : function_base() { this->assign_to(f); } template function0(Functor f, Allocator a ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : function_base() { this->assign_to_a(f,a); } function0(clear_type*) : function_base() { } function0(const function0& f) : function_base() { this->assign_to_own(f); } # 759 "/usr/include/boost/function/function_template.hpp" 3 4 ~function0() { clear(); } result_type operator()() const { if (this->empty()) boost::throw_exception(bad_function_call()); return get_vtable()->invoker (this->functor ); } template typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), function0&>::type operator=(Functor f) { this->clear(); { try { this->assign_to(f); } catch(...) { vtable = 0; throw;; } } return *this; } template void assign(Functor f, Allocator a) { this->clear(); { try{ this->assign_to_a(f,a); } catch(...) { vtable = 0; throw;; } } } function0& operator=(clear_type*) { this->clear(); return *this; } # 825 "/usr/include/boost/function/function_template.hpp" 3 4 function0& operator=(const function0& f) { if (&f == this) return *this; this->clear(); { try { this->assign_to_own(f); } catch(...) { vtable = 0; throw;; } } return *this; } # 861 "/usr/include/boost/function/function_template.hpp" 3 4 void swap(function0& other) { if (&other == this) return; function0 tmp; tmp.move_assign(*this); this->move_assign(other); other.move_assign(tmp); } void clear() { if (vtable) { if (!this->has_trivial_copy_and_destroy()) get_vtable()->clear(this->functor); vtable = 0; } } private: struct dummy { void nonnull() {} }; typedef void (dummy::*safe_bool)(); public: operator safe_bool () const { return (this->empty())? 0 : &dummy::nonnull; } bool operator!() const { return this->empty(); } private: void assign_to_own(const function0& f) { if (!f.empty()) { this->vtable = f.vtable; if (this->has_trivial_copy_and_destroy()) this->functor = f.functor; else get_vtable()->base.manager(f.functor, this->functor, boost::detail::function::clone_functor_tag); } } template void assign_to(Functor f) { using detail::function::vtable_base; typedef typename detail::function::get_function_tag::type tag; typedef detail::function::get_invoker0 get_invoker; typedef typename get_invoker:: template apply handler_type; typedef typename handler_type::invoker_type invoker_type; typedef typename handler_type::manager_type manager_type; static const vtable_type stored_vtable = { { &manager_type::manage }, &invoker_type::invoke }; if (stored_vtable.assign_to(f, functor)) { std::size_t value = reinterpret_cast(&stored_vtable.base); if (boost::has_trivial_copy_constructor::value && boost::has_trivial_destructor::value && detail::function::function_allows_small_object_optimization::value) value |= static_cast(0x01); vtable = reinterpret_cast(value); } else vtable = 0; } template void assign_to_a(Functor f,Allocator a) { using detail::function::vtable_base; typedef typename detail::function::get_function_tag::type tag; typedef detail::function::get_invoker0 get_invoker; typedef typename get_invoker:: template apply_a handler_type; typedef typename handler_type::invoker_type invoker_type; typedef typename handler_type::manager_type manager_type; static const vtable_type stored_vtable = { { &manager_type::manage }, &invoker_type::invoke }; if (stored_vtable.assign_to_a(f, functor, a)) { std::size_t value = reinterpret_cast(&stored_vtable.base); if (boost::has_trivial_copy_constructor::value && boost::has_trivial_destructor::value && detail::function::function_allows_small_object_optimization::value) value |= static_cast(0x01); vtable = reinterpret_cast(value); } else vtable = 0; } void move_assign(function0& f) { if (&f == this) return; { try { if (!f.empty()) { this->vtable = f.vtable; if (this->has_trivial_copy_and_destroy()) this->functor = f.functor; else get_vtable()->base.manager(f.functor, this->functor, boost::detail::function::move_functor_tag); f.vtable = 0; } else { clear(); } } catch(...) { vtable = 0; throw;; } } } }; template inline void swap(function0< R >& f1, function0< R >& f2) { f1.swap(f2); } template void operator==(const function0< R >&, const function0< R >&); template void operator!=(const function0< R >&, const function0< R >& ); # 1048 "/usr/include/boost/function/function_template.hpp" 3 4 template class function : public function0 { typedef function0 base_type; typedef function self_type; struct clear_type {}; public: function() : base_type() {} template function(Functor f ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : base_type(f) { } template function(Functor f, Allocator a ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : base_type(f,a) { } function(clear_type*) : base_type() {} function(const self_type& f) : base_type(static_cast(f)){} function(const base_type& f) : base_type(static_cast(f)){} self_type& operator=(const self_type& f) { self_type(f).swap(*this); return *this; } # 1115 "/usr/include/boost/function/function_template.hpp" 3 4 template typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), self_type&>::type operator=(Functor f) { self_type(f).swap(*this); return *this; } self_type& operator=(clear_type*) { this->clear(); return *this; } self_type& operator=(const base_type& f) { self_type(f).swap(*this); return *this; } # 1151 "/usr/include/boost/function/function_template.hpp" 3 4 }; } # 14 "/usr/include/boost/function/detail/maybe_include.hpp" 2 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 48 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 18 "/usr/include/boost/function/detail/maybe_include.hpp" 3 4 # 1 "/usr/include/boost/function/function_template.hpp" 1 3 4 # 81 "/usr/include/boost/function/function_template.hpp" 3 4 namespace boost { namespace detail { namespace function { template< typename FunctionPtr, typename R , typename T0 > struct function_invoker1 { static R invoke(function_buffer& function_ptr , T0 a0) { FunctionPtr f = reinterpret_cast(function_ptr.func_ptr); return f( a0); } }; template< typename FunctionPtr, typename R , typename T0 > struct void_function_invoker1 { static void invoke(function_buffer& function_ptr , T0 a0) { FunctionPtr f = reinterpret_cast(function_ptr.func_ptr); f( a0); } }; template< typename FunctionObj, typename R , typename T0 > struct function_obj_invoker1 { static R invoke(function_buffer& function_obj_ptr , T0 a0) { FunctionObj* f; if (function_allows_small_object_optimization::value) f = reinterpret_cast(&function_obj_ptr.data); else f = reinterpret_cast(function_obj_ptr.obj_ptr); return (*f)( a0); } }; template< typename FunctionObj, typename R , typename T0 > struct void_function_obj_invoker1 { static void invoke(function_buffer& function_obj_ptr , T0 a0) { FunctionObj* f; if (function_allows_small_object_optimization::value) f = reinterpret_cast(&function_obj_ptr.data); else f = reinterpret_cast(function_obj_ptr.obj_ptr); (*f)( a0); } }; template< typename FunctionObj, typename R , typename T0 > struct function_ref_invoker1 { static R invoke(function_buffer& function_obj_ptr , T0 a0) { FunctionObj* f = reinterpret_cast(function_obj_ptr.obj_ptr); return (*f)( a0); } }; template< typename FunctionObj, typename R , typename T0 > struct void_function_ref_invoker1 { static void invoke(function_buffer& function_obj_ptr , T0 a0) { FunctionObj* f = reinterpret_cast(function_obj_ptr.obj_ptr); (*f)( a0); } }; template< typename MemberPtr, typename R , typename T0 > struct function_mem_invoker1 { static R invoke(function_buffer& function_obj_ptr , T0 a0) { MemberPtr* f = reinterpret_cast(&function_obj_ptr.data); return boost::mem_fn(*f)( a0); } }; template< typename MemberPtr, typename R , typename T0 > struct function_void_mem_invoker1 { static void invoke(function_buffer& function_obj_ptr , T0 a0) { MemberPtr* f = reinterpret_cast(&function_obj_ptr.data); boost::mem_fn(*f)( a0); } }; template< typename FunctionPtr, typename R , typename T0 > struct get_function_invoker1 { typedef typename mpl::if_c<(is_void::value), void_function_invoker1< FunctionPtr, R , T0 >, function_invoker1< FunctionPtr, R , T0 > >::type type; }; template< typename FunctionObj, typename R , typename T0 > struct get_function_obj_invoker1 { typedef typename mpl::if_c<(is_void::value), void_function_obj_invoker1< FunctionObj, R , T0 >, function_obj_invoker1< FunctionObj, R , T0 > >::type type; }; template< typename FunctionObj, typename R , typename T0 > struct get_function_ref_invoker1 { typedef typename mpl::if_c<(is_void::value), void_function_ref_invoker1< FunctionObj, R , T0 >, function_ref_invoker1< FunctionObj, R , T0 > >::type type; }; template< typename MemberPtr, typename R , typename T0 > struct get_member_invoker1 { typedef typename mpl::if_c<(is_void::value), function_void_mem_invoker1< MemberPtr, R , T0 >, function_mem_invoker1< MemberPtr, R , T0 > >::type type; }; # 326 "/usr/include/boost/function/function_template.hpp" 3 4 template struct get_invoker1 { }; template<> struct get_invoker1 { template struct apply { typedef typename get_function_invoker1< FunctionPtr, R , T0 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_function_invoker1< FunctionPtr, R , T0 >::type invoker_type; typedef functor_manager manager_type; }; }; template<> struct get_invoker1 { template struct apply { typedef typename get_member_invoker1< MemberPtr, R , T0 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_member_invoker1< MemberPtr, R , T0 >::type invoker_type; typedef functor_manager manager_type; }; }; template<> struct get_invoker1 { template struct apply { typedef typename get_function_obj_invoker1< FunctionObj, R , T0 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_function_obj_invoker1< FunctionObj, R , T0 >::type invoker_type; typedef functor_manager_a manager_type; }; }; template<> struct get_invoker1 { template struct apply { typedef typename get_function_ref_invoker1< typename RefWrapper::type, R , T0 >::type invoker_type; typedef reference_manager manager_type; }; template struct apply_a { typedef typename get_function_ref_invoker1< typename RefWrapper::type, R , T0 >::type invoker_type; typedef reference_manager manager_type; }; }; # 475 "/usr/include/boost/function/function_template.hpp" 3 4 template struct basic_vtable1 { typedef R result_type; typedef result_type (*invoker_type)(function_buffer& , T0); template bool assign_to(F f, function_buffer& functor) const { typedef typename get_function_tag::type tag; return assign_to(f, functor, tag()); } template bool assign_to_a(F f, function_buffer& functor, Allocator a) const { typedef typename get_function_tag::type tag; return assign_to_a(f, functor, a, tag()); } void clear(function_buffer& functor) const { if (base.manager) base.manager(functor, functor, destroy_functor_tag); } private: template bool assign_to(FunctionPtr f, function_buffer& functor, function_ptr_tag) const { this->clear(functor); if (f) { functor.func_ptr = reinterpret_cast(f); return true; } else { return false; } } template bool assign_to_a(FunctionPtr f, function_buffer& functor, Allocator, function_ptr_tag) const { return assign_to(f,functor,function_ptr_tag()); } template bool assign_to(MemberPtr f, function_buffer& functor, member_ptr_tag) const { if (f) { this->assign_to(boost::mem_fn(f), functor); return true; } else { return false; } } template bool assign_to_a(MemberPtr f, function_buffer& functor, Allocator a, member_ptr_tag) const { if (f) { this->assign_to_a(boost::mem_fn(f), functor, a); return true; } else { return false; } } template void assign_functor(FunctionObj f, function_buffer& functor, mpl::true_) const { new (reinterpret_cast(&functor.data)) FunctionObj(f); } template void assign_functor_a(FunctionObj f, function_buffer& functor, Allocator, mpl::true_) const { assign_functor(f,functor,mpl::true_()); } template void assign_functor(FunctionObj f, function_buffer& functor, mpl::false_) const { functor.obj_ptr = new FunctionObj(f); } template void assign_functor_a(FunctionObj f, function_buffer& functor, Allocator a, mpl::false_) const { typedef functor_wrapper functor_wrapper_type; typedef typename Allocator::template rebind::other wrapper_allocator_type; typedef typename wrapper_allocator_type::pointer wrapper_allocator_pointer_type; wrapper_allocator_type wrapper_allocator(a); wrapper_allocator_pointer_type copy = wrapper_allocator.allocate(1); wrapper_allocator.construct(copy, functor_wrapper_type(f,a)); functor_wrapper_type* new_f = static_cast(copy); functor.obj_ptr = new_f; } template bool assign_to(FunctionObj f, function_buffer& functor, function_obj_tag) const { if (!boost::detail::function::has_empty_target(boost::addressof(f))) { assign_functor(f, functor, mpl::bool_<(function_allows_small_object_optimization::value)>()); return true; } else { return false; } } template bool assign_to_a(FunctionObj f, function_buffer& functor, Allocator a, function_obj_tag) const { if (!boost::detail::function::has_empty_target(boost::addressof(f))) { assign_functor_a(f, functor, a, mpl::bool_<(function_allows_small_object_optimization::value)>()); return true; } else { return false; } } template bool assign_to(const reference_wrapper& f, function_buffer& functor, function_obj_ref_tag) const { functor.obj_ref.obj_ptr = (void *)(f.get_pointer()); functor.obj_ref.is_const_qualified = is_const::value; functor.obj_ref.is_volatile_qualified = is_volatile::value; return true; } template bool assign_to_a(const reference_wrapper& f, function_buffer& functor, Allocator, function_obj_ref_tag) const { return assign_to(f,functor,function_obj_ref_tag()); } public: vtable_base base; invoker_type invoker; }; } } template< typename R , typename T0 > class function1 : public function_base , public std::unary_function { public: typedef R result_type; private: typedef boost::detail::function::basic_vtable1< R , T0> vtable_type; vtable_type* get_vtable() const { return reinterpret_cast( reinterpret_cast(vtable) & ~static_cast(0x01)); } struct clear_type {}; public: static const int args = 1; template struct sig { typedef result_type type; }; typedef T0 argument_type; static const int arity = 1; typedef T0 arg1_type; typedef function1 self_type; function1() : function_base() { } template function1(Functor f ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : function_base() { this->assign_to(f); } template function1(Functor f, Allocator a ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : function_base() { this->assign_to_a(f,a); } function1(clear_type*) : function_base() { } function1(const function1& f) : function_base() { this->assign_to_own(f); } # 759 "/usr/include/boost/function/function_template.hpp" 3 4 ~function1() { clear(); } result_type operator()( T0 a0) const { if (this->empty()) boost::throw_exception(bad_function_call()); return get_vtable()->invoker (this->functor , a0); } template typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), function1&>::type operator=(Functor f) { this->clear(); { try { this->assign_to(f); } catch(...) { vtable = 0; throw;; } } return *this; } template void assign(Functor f, Allocator a) { this->clear(); { try{ this->assign_to_a(f,a); } catch(...) { vtable = 0; throw;; } } } function1& operator=(clear_type*) { this->clear(); return *this; } # 825 "/usr/include/boost/function/function_template.hpp" 3 4 function1& operator=(const function1& f) { if (&f == this) return *this; this->clear(); { try { this->assign_to_own(f); } catch(...) { vtable = 0; throw;; } } return *this; } # 861 "/usr/include/boost/function/function_template.hpp" 3 4 void swap(function1& other) { if (&other == this) return; function1 tmp; tmp.move_assign(*this); this->move_assign(other); other.move_assign(tmp); } void clear() { if (vtable) { if (!this->has_trivial_copy_and_destroy()) get_vtable()->clear(this->functor); vtable = 0; } } private: struct dummy { void nonnull() {} }; typedef void (dummy::*safe_bool)(); public: operator safe_bool () const { return (this->empty())? 0 : &dummy::nonnull; } bool operator!() const { return this->empty(); } private: void assign_to_own(const function1& f) { if (!f.empty()) { this->vtable = f.vtable; if (this->has_trivial_copy_and_destroy()) this->functor = f.functor; else get_vtable()->base.manager(f.functor, this->functor, boost::detail::function::clone_functor_tag); } } template void assign_to(Functor f) { using detail::function::vtable_base; typedef typename detail::function::get_function_tag::type tag; typedef detail::function::get_invoker1 get_invoker; typedef typename get_invoker:: template apply handler_type; typedef typename handler_type::invoker_type invoker_type; typedef typename handler_type::manager_type manager_type; static const vtable_type stored_vtable = { { &manager_type::manage }, &invoker_type::invoke }; if (stored_vtable.assign_to(f, functor)) { std::size_t value = reinterpret_cast(&stored_vtable.base); if (boost::has_trivial_copy_constructor::value && boost::has_trivial_destructor::value && detail::function::function_allows_small_object_optimization::value) value |= static_cast(0x01); vtable = reinterpret_cast(value); } else vtable = 0; } template void assign_to_a(Functor f,Allocator a) { using detail::function::vtable_base; typedef typename detail::function::get_function_tag::type tag; typedef detail::function::get_invoker1 get_invoker; typedef typename get_invoker:: template apply_a handler_type; typedef typename handler_type::invoker_type invoker_type; typedef typename handler_type::manager_type manager_type; static const vtable_type stored_vtable = { { &manager_type::manage }, &invoker_type::invoke }; if (stored_vtable.assign_to_a(f, functor, a)) { std::size_t value = reinterpret_cast(&stored_vtable.base); if (boost::has_trivial_copy_constructor::value && boost::has_trivial_destructor::value && detail::function::function_allows_small_object_optimization::value) value |= static_cast(0x01); vtable = reinterpret_cast(value); } else vtable = 0; } void move_assign(function1& f) { if (&f == this) return; { try { if (!f.empty()) { this->vtable = f.vtable; if (this->has_trivial_copy_and_destroy()) this->functor = f.functor; else get_vtable()->base.manager(f.functor, this->functor, boost::detail::function::move_functor_tag); f.vtable = 0; } else { clear(); } } catch(...) { vtable = 0; throw;; } } } }; template inline void swap(function1< R , T0 >& f1, function1< R , T0 >& f2) { f1.swap(f2); } template void operator==(const function1< R , T0>&, const function1< R , T0>&); template void operator!=(const function1< R , T0>&, const function1< R , T0>& ); # 1048 "/usr/include/boost/function/function_template.hpp" 3 4 template class function : public function1 { typedef function1 base_type; typedef function self_type; struct clear_type {}; public: function() : base_type() {} template function(Functor f ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : base_type(f) { } template function(Functor f, Allocator a ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : base_type(f,a) { } function(clear_type*) : base_type() {} function(const self_type& f) : base_type(static_cast(f)){} function(const base_type& f) : base_type(static_cast(f)){} self_type& operator=(const self_type& f) { self_type(f).swap(*this); return *this; } # 1115 "/usr/include/boost/function/function_template.hpp" 3 4 template typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), self_type&>::type operator=(Functor f) { self_type(f).swap(*this); return *this; } self_type& operator=(clear_type*) { this->clear(); return *this; } self_type& operator=(const base_type& f) { self_type(f).swap(*this); return *this; } # 1151 "/usr/include/boost/function/function_template.hpp" 3 4 }; } # 19 "/usr/include/boost/function/detail/maybe_include.hpp" 2 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 53 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 23 "/usr/include/boost/function/detail/maybe_include.hpp" 3 4 # 1 "/usr/include/boost/function/function_template.hpp" 1 3 4 # 81 "/usr/include/boost/function/function_template.hpp" 3 4 namespace boost { namespace detail { namespace function { template< typename FunctionPtr, typename R , typename T0 , typename T1 > struct function_invoker2 { static R invoke(function_buffer& function_ptr , T0 a0 , T1 a1) { FunctionPtr f = reinterpret_cast(function_ptr.func_ptr); return f( a0 , a1); } }; template< typename FunctionPtr, typename R , typename T0 , typename T1 > struct void_function_invoker2 { static void invoke(function_buffer& function_ptr , T0 a0 , T1 a1) { FunctionPtr f = reinterpret_cast(function_ptr.func_ptr); f( a0 , a1); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 > struct function_obj_invoker2 { static R invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1) { FunctionObj* f; if (function_allows_small_object_optimization::value) f = reinterpret_cast(&function_obj_ptr.data); else f = reinterpret_cast(function_obj_ptr.obj_ptr); return (*f)( a0 , a1); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 > struct void_function_obj_invoker2 { static void invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1) { FunctionObj* f; if (function_allows_small_object_optimization::value) f = reinterpret_cast(&function_obj_ptr.data); else f = reinterpret_cast(function_obj_ptr.obj_ptr); (*f)( a0 , a1); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 > struct function_ref_invoker2 { static R invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1) { FunctionObj* f = reinterpret_cast(function_obj_ptr.obj_ptr); return (*f)( a0 , a1); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 > struct void_function_ref_invoker2 { static void invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1) { FunctionObj* f = reinterpret_cast(function_obj_ptr.obj_ptr); (*f)( a0 , a1); } }; template< typename MemberPtr, typename R , typename T0 , typename T1 > struct function_mem_invoker2 { static R invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1) { MemberPtr* f = reinterpret_cast(&function_obj_ptr.data); return boost::mem_fn(*f)( a0 , a1); } }; template< typename MemberPtr, typename R , typename T0 , typename T1 > struct function_void_mem_invoker2 { static void invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1) { MemberPtr* f = reinterpret_cast(&function_obj_ptr.data); boost::mem_fn(*f)( a0 , a1); } }; template< typename FunctionPtr, typename R , typename T0 , typename T1 > struct get_function_invoker2 { typedef typename mpl::if_c<(is_void::value), void_function_invoker2< FunctionPtr, R , T0 , T1 >, function_invoker2< FunctionPtr, R , T0 , T1 > >::type type; }; template< typename FunctionObj, typename R , typename T0 , typename T1 > struct get_function_obj_invoker2 { typedef typename mpl::if_c<(is_void::value), void_function_obj_invoker2< FunctionObj, R , T0 , T1 >, function_obj_invoker2< FunctionObj, R , T0 , T1 > >::type type; }; template< typename FunctionObj, typename R , typename T0 , typename T1 > struct get_function_ref_invoker2 { typedef typename mpl::if_c<(is_void::value), void_function_ref_invoker2< FunctionObj, R , T0 , T1 >, function_ref_invoker2< FunctionObj, R , T0 , T1 > >::type type; }; template< typename MemberPtr, typename R , typename T0 , typename T1 > struct get_member_invoker2 { typedef typename mpl::if_c<(is_void::value), function_void_mem_invoker2< MemberPtr, R , T0 , T1 >, function_mem_invoker2< MemberPtr, R , T0 , T1 > >::type type; }; # 326 "/usr/include/boost/function/function_template.hpp" 3 4 template struct get_invoker2 { }; template<> struct get_invoker2 { template struct apply { typedef typename get_function_invoker2< FunctionPtr, R , T0 , T1 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_function_invoker2< FunctionPtr, R , T0 , T1 >::type invoker_type; typedef functor_manager manager_type; }; }; template<> struct get_invoker2 { template struct apply { typedef typename get_member_invoker2< MemberPtr, R , T0 , T1 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_member_invoker2< MemberPtr, R , T0 , T1 >::type invoker_type; typedef functor_manager manager_type; }; }; template<> struct get_invoker2 { template struct apply { typedef typename get_function_obj_invoker2< FunctionObj, R , T0 , T1 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_function_obj_invoker2< FunctionObj, R , T0 , T1 >::type invoker_type; typedef functor_manager_a manager_type; }; }; template<> struct get_invoker2 { template struct apply { typedef typename get_function_ref_invoker2< typename RefWrapper::type, R , T0 , T1 >::type invoker_type; typedef reference_manager manager_type; }; template struct apply_a { typedef typename get_function_ref_invoker2< typename RefWrapper::type, R , T0 , T1 >::type invoker_type; typedef reference_manager manager_type; }; }; # 475 "/usr/include/boost/function/function_template.hpp" 3 4 template struct basic_vtable2 { typedef R result_type; typedef result_type (*invoker_type)(function_buffer& , T0 , T1); template bool assign_to(F f, function_buffer& functor) const { typedef typename get_function_tag::type tag; return assign_to(f, functor, tag()); } template bool assign_to_a(F f, function_buffer& functor, Allocator a) const { typedef typename get_function_tag::type tag; return assign_to_a(f, functor, a, tag()); } void clear(function_buffer& functor) const { if (base.manager) base.manager(functor, functor, destroy_functor_tag); } private: template bool assign_to(FunctionPtr f, function_buffer& functor, function_ptr_tag) const { this->clear(functor); if (f) { functor.func_ptr = reinterpret_cast(f); return true; } else { return false; } } template bool assign_to_a(FunctionPtr f, function_buffer& functor, Allocator, function_ptr_tag) const { return assign_to(f,functor,function_ptr_tag()); } template bool assign_to(MemberPtr f, function_buffer& functor, member_ptr_tag) const { if (f) { this->assign_to(boost::mem_fn(f), functor); return true; } else { return false; } } template bool assign_to_a(MemberPtr f, function_buffer& functor, Allocator a, member_ptr_tag) const { if (f) { this->assign_to_a(boost::mem_fn(f), functor, a); return true; } else { return false; } } template void assign_functor(FunctionObj f, function_buffer& functor, mpl::true_) const { new (reinterpret_cast(&functor.data)) FunctionObj(f); } template void assign_functor_a(FunctionObj f, function_buffer& functor, Allocator, mpl::true_) const { assign_functor(f,functor,mpl::true_()); } template void assign_functor(FunctionObj f, function_buffer& functor, mpl::false_) const { functor.obj_ptr = new FunctionObj(f); } template void assign_functor_a(FunctionObj f, function_buffer& functor, Allocator a, mpl::false_) const { typedef functor_wrapper functor_wrapper_type; typedef typename Allocator::template rebind::other wrapper_allocator_type; typedef typename wrapper_allocator_type::pointer wrapper_allocator_pointer_type; wrapper_allocator_type wrapper_allocator(a); wrapper_allocator_pointer_type copy = wrapper_allocator.allocate(1); wrapper_allocator.construct(copy, functor_wrapper_type(f,a)); functor_wrapper_type* new_f = static_cast(copy); functor.obj_ptr = new_f; } template bool assign_to(FunctionObj f, function_buffer& functor, function_obj_tag) const { if (!boost::detail::function::has_empty_target(boost::addressof(f))) { assign_functor(f, functor, mpl::bool_<(function_allows_small_object_optimization::value)>()); return true; } else { return false; } } template bool assign_to_a(FunctionObj f, function_buffer& functor, Allocator a, function_obj_tag) const { if (!boost::detail::function::has_empty_target(boost::addressof(f))) { assign_functor_a(f, functor, a, mpl::bool_<(function_allows_small_object_optimization::value)>()); return true; } else { return false; } } template bool assign_to(const reference_wrapper& f, function_buffer& functor, function_obj_ref_tag) const { functor.obj_ref.obj_ptr = (void *)(f.get_pointer()); functor.obj_ref.is_const_qualified = is_const::value; functor.obj_ref.is_volatile_qualified = is_volatile::value; return true; } template bool assign_to_a(const reference_wrapper& f, function_buffer& functor, Allocator, function_obj_ref_tag) const { return assign_to(f,functor,function_obj_ref_tag()); } public: vtable_base base; invoker_type invoker; }; } } template< typename R , typename T0 , typename T1 > class function2 : public function_base , public std::binary_function { public: typedef R result_type; private: typedef boost::detail::function::basic_vtable2< R , T0 , T1> vtable_type; vtable_type* get_vtable() const { return reinterpret_cast( reinterpret_cast(vtable) & ~static_cast(0x01)); } struct clear_type {}; public: static const int args = 2; template struct sig { typedef result_type type; }; typedef T0 first_argument_type; typedef T1 second_argument_type; static const int arity = 2; typedef T0 arg1_type; typedef T1 arg2_type; typedef function2 self_type; function2() : function_base() { } template function2(Functor f ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : function_base() { this->assign_to(f); } template function2(Functor f, Allocator a ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : function_base() { this->assign_to_a(f,a); } function2(clear_type*) : function_base() { } function2(const function2& f) : function_base() { this->assign_to_own(f); } # 759 "/usr/include/boost/function/function_template.hpp" 3 4 ~function2() { clear(); } result_type operator()( T0 a0 , T1 a1) const { if (this->empty()) boost::throw_exception(bad_function_call()); return get_vtable()->invoker (this->functor , a0 , a1); } template typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), function2&>::type operator=(Functor f) { this->clear(); { try { this->assign_to(f); } catch(...) { vtable = 0; throw;; } } return *this; } template void assign(Functor f, Allocator a) { this->clear(); { try{ this->assign_to_a(f,a); } catch(...) { vtable = 0; throw;; } } } function2& operator=(clear_type*) { this->clear(); return *this; } # 825 "/usr/include/boost/function/function_template.hpp" 3 4 function2& operator=(const function2& f) { if (&f == this) return *this; this->clear(); { try { this->assign_to_own(f); } catch(...) { vtable = 0; throw;; } } return *this; } # 861 "/usr/include/boost/function/function_template.hpp" 3 4 void swap(function2& other) { if (&other == this) return; function2 tmp; tmp.move_assign(*this); this->move_assign(other); other.move_assign(tmp); } void clear() { if (vtable) { if (!this->has_trivial_copy_and_destroy()) get_vtable()->clear(this->functor); vtable = 0; } } private: struct dummy { void nonnull() {} }; typedef void (dummy::*safe_bool)(); public: operator safe_bool () const { return (this->empty())? 0 : &dummy::nonnull; } bool operator!() const { return this->empty(); } private: void assign_to_own(const function2& f) { if (!f.empty()) { this->vtable = f.vtable; if (this->has_trivial_copy_and_destroy()) this->functor = f.functor; else get_vtable()->base.manager(f.functor, this->functor, boost::detail::function::clone_functor_tag); } } template void assign_to(Functor f) { using detail::function::vtable_base; typedef typename detail::function::get_function_tag::type tag; typedef detail::function::get_invoker2 get_invoker; typedef typename get_invoker:: template apply handler_type; typedef typename handler_type::invoker_type invoker_type; typedef typename handler_type::manager_type manager_type; static const vtable_type stored_vtable = { { &manager_type::manage }, &invoker_type::invoke }; if (stored_vtable.assign_to(f, functor)) { std::size_t value = reinterpret_cast(&stored_vtable.base); if (boost::has_trivial_copy_constructor::value && boost::has_trivial_destructor::value && detail::function::function_allows_small_object_optimization::value) value |= static_cast(0x01); vtable = reinterpret_cast(value); } else vtable = 0; } template void assign_to_a(Functor f,Allocator a) { using detail::function::vtable_base; typedef typename detail::function::get_function_tag::type tag; typedef detail::function::get_invoker2 get_invoker; typedef typename get_invoker:: template apply_a handler_type; typedef typename handler_type::invoker_type invoker_type; typedef typename handler_type::manager_type manager_type; static const vtable_type stored_vtable = { { &manager_type::manage }, &invoker_type::invoke }; if (stored_vtable.assign_to_a(f, functor, a)) { std::size_t value = reinterpret_cast(&stored_vtable.base); if (boost::has_trivial_copy_constructor::value && boost::has_trivial_destructor::value && detail::function::function_allows_small_object_optimization::value) value |= static_cast(0x01); vtable = reinterpret_cast(value); } else vtable = 0; } void move_assign(function2& f) { if (&f == this) return; { try { if (!f.empty()) { this->vtable = f.vtable; if (this->has_trivial_copy_and_destroy()) this->functor = f.functor; else get_vtable()->base.manager(f.functor, this->functor, boost::detail::function::move_functor_tag); f.vtable = 0; } else { clear(); } } catch(...) { vtable = 0; throw;; } } } }; template inline void swap(function2< R , T0 , T1 >& f1, function2< R , T0 , T1 >& f2) { f1.swap(f2); } template void operator==(const function2< R , T0 , T1>&, const function2< R , T0 , T1>&); template void operator!=(const function2< R , T0 , T1>&, const function2< R , T0 , T1>& ); # 1048 "/usr/include/boost/function/function_template.hpp" 3 4 template class function : public function2 { typedef function2 base_type; typedef function self_type; struct clear_type {}; public: function() : base_type() {} template function(Functor f ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : base_type(f) { } template function(Functor f, Allocator a ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : base_type(f,a) { } function(clear_type*) : base_type() {} function(const self_type& f) : base_type(static_cast(f)){} function(const base_type& f) : base_type(static_cast(f)){} self_type& operator=(const self_type& f) { self_type(f).swap(*this); return *this; } # 1115 "/usr/include/boost/function/function_template.hpp" 3 4 template typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), self_type&>::type operator=(Functor f) { self_type(f).swap(*this); return *this; } self_type& operator=(clear_type*) { this->clear(); return *this; } self_type& operator=(const base_type& f) { self_type(f).swap(*this); return *this; } # 1151 "/usr/include/boost/function/function_template.hpp" 3 4 }; } # 24 "/usr/include/boost/function/detail/maybe_include.hpp" 2 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 58 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 28 "/usr/include/boost/function/detail/maybe_include.hpp" 3 4 # 1 "/usr/include/boost/function/function_template.hpp" 1 3 4 # 81 "/usr/include/boost/function/function_template.hpp" 3 4 namespace boost { namespace detail { namespace function { template< typename FunctionPtr, typename R , typename T0 , typename T1 , typename T2 > struct function_invoker3 { static R invoke(function_buffer& function_ptr , T0 a0 , T1 a1 , T2 a2) { FunctionPtr f = reinterpret_cast(function_ptr.func_ptr); return f( a0 , a1 , a2); } }; template< typename FunctionPtr, typename R , typename T0 , typename T1 , typename T2 > struct void_function_invoker3 { static void invoke(function_buffer& function_ptr , T0 a0 , T1 a1 , T2 a2) { FunctionPtr f = reinterpret_cast(function_ptr.func_ptr); f( a0 , a1 , a2); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 > struct function_obj_invoker3 { static R invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2) { FunctionObj* f; if (function_allows_small_object_optimization::value) f = reinterpret_cast(&function_obj_ptr.data); else f = reinterpret_cast(function_obj_ptr.obj_ptr); return (*f)( a0 , a1 , a2); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 > struct void_function_obj_invoker3 { static void invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2) { FunctionObj* f; if (function_allows_small_object_optimization::value) f = reinterpret_cast(&function_obj_ptr.data); else f = reinterpret_cast(function_obj_ptr.obj_ptr); (*f)( a0 , a1 , a2); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 > struct function_ref_invoker3 { static R invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2) { FunctionObj* f = reinterpret_cast(function_obj_ptr.obj_ptr); return (*f)( a0 , a1 , a2); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 > struct void_function_ref_invoker3 { static void invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2) { FunctionObj* f = reinterpret_cast(function_obj_ptr.obj_ptr); (*f)( a0 , a1 , a2); } }; template< typename MemberPtr, typename R , typename T0 , typename T1 , typename T2 > struct function_mem_invoker3 { static R invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2) { MemberPtr* f = reinterpret_cast(&function_obj_ptr.data); return boost::mem_fn(*f)( a0 , a1 , a2); } }; template< typename MemberPtr, typename R , typename T0 , typename T1 , typename T2 > struct function_void_mem_invoker3 { static void invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2) { MemberPtr* f = reinterpret_cast(&function_obj_ptr.data); boost::mem_fn(*f)( a0 , a1 , a2); } }; template< typename FunctionPtr, typename R , typename T0 , typename T1 , typename T2 > struct get_function_invoker3 { typedef typename mpl::if_c<(is_void::value), void_function_invoker3< FunctionPtr, R , T0 , T1 , T2 >, function_invoker3< FunctionPtr, R , T0 , T1 , T2 > >::type type; }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 > struct get_function_obj_invoker3 { typedef typename mpl::if_c<(is_void::value), void_function_obj_invoker3< FunctionObj, R , T0 , T1 , T2 >, function_obj_invoker3< FunctionObj, R , T0 , T1 , T2 > >::type type; }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 > struct get_function_ref_invoker3 { typedef typename mpl::if_c<(is_void::value), void_function_ref_invoker3< FunctionObj, R , T0 , T1 , T2 >, function_ref_invoker3< FunctionObj, R , T0 , T1 , T2 > >::type type; }; template< typename MemberPtr, typename R , typename T0 , typename T1 , typename T2 > struct get_member_invoker3 { typedef typename mpl::if_c<(is_void::value), function_void_mem_invoker3< MemberPtr, R , T0 , T1 , T2 >, function_mem_invoker3< MemberPtr, R , T0 , T1 , T2 > >::type type; }; # 326 "/usr/include/boost/function/function_template.hpp" 3 4 template struct get_invoker3 { }; template<> struct get_invoker3 { template struct apply { typedef typename get_function_invoker3< FunctionPtr, R , T0 , T1 , T2 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_function_invoker3< FunctionPtr, R , T0 , T1 , T2 >::type invoker_type; typedef functor_manager manager_type; }; }; template<> struct get_invoker3 { template struct apply { typedef typename get_member_invoker3< MemberPtr, R , T0 , T1 , T2 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_member_invoker3< MemberPtr, R , T0 , T1 , T2 >::type invoker_type; typedef functor_manager manager_type; }; }; template<> struct get_invoker3 { template struct apply { typedef typename get_function_obj_invoker3< FunctionObj, R , T0 , T1 , T2 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_function_obj_invoker3< FunctionObj, R , T0 , T1 , T2 >::type invoker_type; typedef functor_manager_a manager_type; }; }; template<> struct get_invoker3 { template struct apply { typedef typename get_function_ref_invoker3< typename RefWrapper::type, R , T0 , T1 , T2 >::type invoker_type; typedef reference_manager manager_type; }; template struct apply_a { typedef typename get_function_ref_invoker3< typename RefWrapper::type, R , T0 , T1 , T2 >::type invoker_type; typedef reference_manager manager_type; }; }; # 475 "/usr/include/boost/function/function_template.hpp" 3 4 template struct basic_vtable3 { typedef R result_type; typedef result_type (*invoker_type)(function_buffer& , T0 , T1 , T2); template bool assign_to(F f, function_buffer& functor) const { typedef typename get_function_tag::type tag; return assign_to(f, functor, tag()); } template bool assign_to_a(F f, function_buffer& functor, Allocator a) const { typedef typename get_function_tag::type tag; return assign_to_a(f, functor, a, tag()); } void clear(function_buffer& functor) const { if (base.manager) base.manager(functor, functor, destroy_functor_tag); } private: template bool assign_to(FunctionPtr f, function_buffer& functor, function_ptr_tag) const { this->clear(functor); if (f) { functor.func_ptr = reinterpret_cast(f); return true; } else { return false; } } template bool assign_to_a(FunctionPtr f, function_buffer& functor, Allocator, function_ptr_tag) const { return assign_to(f,functor,function_ptr_tag()); } template bool assign_to(MemberPtr f, function_buffer& functor, member_ptr_tag) const { if (f) { this->assign_to(boost::mem_fn(f), functor); return true; } else { return false; } } template bool assign_to_a(MemberPtr f, function_buffer& functor, Allocator a, member_ptr_tag) const { if (f) { this->assign_to_a(boost::mem_fn(f), functor, a); return true; } else { return false; } } template void assign_functor(FunctionObj f, function_buffer& functor, mpl::true_) const { new (reinterpret_cast(&functor.data)) FunctionObj(f); } template void assign_functor_a(FunctionObj f, function_buffer& functor, Allocator, mpl::true_) const { assign_functor(f,functor,mpl::true_()); } template void assign_functor(FunctionObj f, function_buffer& functor, mpl::false_) const { functor.obj_ptr = new FunctionObj(f); } template void assign_functor_a(FunctionObj f, function_buffer& functor, Allocator a, mpl::false_) const { typedef functor_wrapper functor_wrapper_type; typedef typename Allocator::template rebind::other wrapper_allocator_type; typedef typename wrapper_allocator_type::pointer wrapper_allocator_pointer_type; wrapper_allocator_type wrapper_allocator(a); wrapper_allocator_pointer_type copy = wrapper_allocator.allocate(1); wrapper_allocator.construct(copy, functor_wrapper_type(f,a)); functor_wrapper_type* new_f = static_cast(copy); functor.obj_ptr = new_f; } template bool assign_to(FunctionObj f, function_buffer& functor, function_obj_tag) const { if (!boost::detail::function::has_empty_target(boost::addressof(f))) { assign_functor(f, functor, mpl::bool_<(function_allows_small_object_optimization::value)>()); return true; } else { return false; } } template bool assign_to_a(FunctionObj f, function_buffer& functor, Allocator a, function_obj_tag) const { if (!boost::detail::function::has_empty_target(boost::addressof(f))) { assign_functor_a(f, functor, a, mpl::bool_<(function_allows_small_object_optimization::value)>()); return true; } else { return false; } } template bool assign_to(const reference_wrapper& f, function_buffer& functor, function_obj_ref_tag) const { functor.obj_ref.obj_ptr = (void *)(f.get_pointer()); functor.obj_ref.is_const_qualified = is_const::value; functor.obj_ref.is_volatile_qualified = is_volatile::value; return true; } template bool assign_to_a(const reference_wrapper& f, function_buffer& functor, Allocator, function_obj_ref_tag) const { return assign_to(f,functor,function_obj_ref_tag()); } public: vtable_base base; invoker_type invoker; }; } } template< typename R , typename T0 , typename T1 , typename T2 > class function3 : public function_base # 664 "/usr/include/boost/function/function_template.hpp" 3 4 { public: typedef R result_type; private: typedef boost::detail::function::basic_vtable3< R , T0 , T1 , T2> vtable_type; vtable_type* get_vtable() const { return reinterpret_cast( reinterpret_cast(vtable) & ~static_cast(0x01)); } struct clear_type {}; public: static const int args = 3; template struct sig { typedef result_type type; }; # 702 "/usr/include/boost/function/function_template.hpp" 3 4 static const int arity = 3; typedef T0 arg1_type; typedef T1 arg2_type; typedef T2 arg3_type; typedef function3 self_type; function3() : function_base() { } template function3(Functor f ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : function_base() { this->assign_to(f); } template function3(Functor f, Allocator a ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : function_base() { this->assign_to_a(f,a); } function3(clear_type*) : function_base() { } function3(const function3& f) : function_base() { this->assign_to_own(f); } # 759 "/usr/include/boost/function/function_template.hpp" 3 4 ~function3() { clear(); } result_type operator()( T0 a0 , T1 a1 , T2 a2) const { if (this->empty()) boost::throw_exception(bad_function_call()); return get_vtable()->invoker (this->functor , a0 , a1 , a2); } template typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), function3&>::type operator=(Functor f) { this->clear(); { try { this->assign_to(f); } catch(...) { vtable = 0; throw;; } } return *this; } template void assign(Functor f, Allocator a) { this->clear(); { try{ this->assign_to_a(f,a); } catch(...) { vtable = 0; throw;; } } } function3& operator=(clear_type*) { this->clear(); return *this; } # 825 "/usr/include/boost/function/function_template.hpp" 3 4 function3& operator=(const function3& f) { if (&f == this) return *this; this->clear(); { try { this->assign_to_own(f); } catch(...) { vtable = 0; throw;; } } return *this; } # 861 "/usr/include/boost/function/function_template.hpp" 3 4 void swap(function3& other) { if (&other == this) return; function3 tmp; tmp.move_assign(*this); this->move_assign(other); other.move_assign(tmp); } void clear() { if (vtable) { if (!this->has_trivial_copy_and_destroy()) get_vtable()->clear(this->functor); vtable = 0; } } private: struct dummy { void nonnull() {} }; typedef void (dummy::*safe_bool)(); public: operator safe_bool () const { return (this->empty())? 0 : &dummy::nonnull; } bool operator!() const { return this->empty(); } private: void assign_to_own(const function3& f) { if (!f.empty()) { this->vtable = f.vtable; if (this->has_trivial_copy_and_destroy()) this->functor = f.functor; else get_vtable()->base.manager(f.functor, this->functor, boost::detail::function::clone_functor_tag); } } template void assign_to(Functor f) { using detail::function::vtable_base; typedef typename detail::function::get_function_tag::type tag; typedef detail::function::get_invoker3 get_invoker; typedef typename get_invoker:: template apply handler_type; typedef typename handler_type::invoker_type invoker_type; typedef typename handler_type::manager_type manager_type; static const vtable_type stored_vtable = { { &manager_type::manage }, &invoker_type::invoke }; if (stored_vtable.assign_to(f, functor)) { std::size_t value = reinterpret_cast(&stored_vtable.base); if (boost::has_trivial_copy_constructor::value && boost::has_trivial_destructor::value && detail::function::function_allows_small_object_optimization::value) value |= static_cast(0x01); vtable = reinterpret_cast(value); } else vtable = 0; } template void assign_to_a(Functor f,Allocator a) { using detail::function::vtable_base; typedef typename detail::function::get_function_tag::type tag; typedef detail::function::get_invoker3 get_invoker; typedef typename get_invoker:: template apply_a handler_type; typedef typename handler_type::invoker_type invoker_type; typedef typename handler_type::manager_type manager_type; static const vtable_type stored_vtable = { { &manager_type::manage }, &invoker_type::invoke }; if (stored_vtable.assign_to_a(f, functor, a)) { std::size_t value = reinterpret_cast(&stored_vtable.base); if (boost::has_trivial_copy_constructor::value && boost::has_trivial_destructor::value && detail::function::function_allows_small_object_optimization::value) value |= static_cast(0x01); vtable = reinterpret_cast(value); } else vtable = 0; } void move_assign(function3& f) { if (&f == this) return; { try { if (!f.empty()) { this->vtable = f.vtable; if (this->has_trivial_copy_and_destroy()) this->functor = f.functor; else get_vtable()->base.manager(f.functor, this->functor, boost::detail::function::move_functor_tag); f.vtable = 0; } else { clear(); } } catch(...) { vtable = 0; throw;; } } } }; template inline void swap(function3< R , T0 , T1 , T2 >& f1, function3< R , T0 , T1 , T2 >& f2) { f1.swap(f2); } template void operator==(const function3< R , T0 , T1 , T2>&, const function3< R , T0 , T1 , T2>&); template void operator!=(const function3< R , T0 , T1 , T2>&, const function3< R , T0 , T1 , T2>& ); # 1048 "/usr/include/boost/function/function_template.hpp" 3 4 template class function : public function3 { typedef function3 base_type; typedef function self_type; struct clear_type {}; public: function() : base_type() {} template function(Functor f ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : base_type(f) { } template function(Functor f, Allocator a ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : base_type(f,a) { } function(clear_type*) : base_type() {} function(const self_type& f) : base_type(static_cast(f)){} function(const base_type& f) : base_type(static_cast(f)){} self_type& operator=(const self_type& f) { self_type(f).swap(*this); return *this; } # 1115 "/usr/include/boost/function/function_template.hpp" 3 4 template typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), self_type&>::type operator=(Functor f) { self_type(f).swap(*this); return *this; } self_type& operator=(clear_type*) { this->clear(); return *this; } self_type& operator=(const base_type& f) { self_type(f).swap(*this); return *this; } # 1151 "/usr/include/boost/function/function_template.hpp" 3 4 }; } # 29 "/usr/include/boost/function/detail/maybe_include.hpp" 2 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 63 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 33 "/usr/include/boost/function/detail/maybe_include.hpp" 3 4 # 1 "/usr/include/boost/function/function_template.hpp" 1 3 4 # 81 "/usr/include/boost/function/function_template.hpp" 3 4 namespace boost { namespace detail { namespace function { template< typename FunctionPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 > struct function_invoker4 { static R invoke(function_buffer& function_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3) { FunctionPtr f = reinterpret_cast(function_ptr.func_ptr); return f( a0 , a1 , a2 , a3); } }; template< typename FunctionPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 > struct void_function_invoker4 { static void invoke(function_buffer& function_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3) { FunctionPtr f = reinterpret_cast(function_ptr.func_ptr); f( a0 , a1 , a2 , a3); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 > struct function_obj_invoker4 { static R invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3) { FunctionObj* f; if (function_allows_small_object_optimization::value) f = reinterpret_cast(&function_obj_ptr.data); else f = reinterpret_cast(function_obj_ptr.obj_ptr); return (*f)( a0 , a1 , a2 , a3); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 > struct void_function_obj_invoker4 { static void invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3) { FunctionObj* f; if (function_allows_small_object_optimization::value) f = reinterpret_cast(&function_obj_ptr.data); else f = reinterpret_cast(function_obj_ptr.obj_ptr); (*f)( a0 , a1 , a2 , a3); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 > struct function_ref_invoker4 { static R invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3) { FunctionObj* f = reinterpret_cast(function_obj_ptr.obj_ptr); return (*f)( a0 , a1 , a2 , a3); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 > struct void_function_ref_invoker4 { static void invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3) { FunctionObj* f = reinterpret_cast(function_obj_ptr.obj_ptr); (*f)( a0 , a1 , a2 , a3); } }; template< typename MemberPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 > struct function_mem_invoker4 { static R invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3) { MemberPtr* f = reinterpret_cast(&function_obj_ptr.data); return boost::mem_fn(*f)( a0 , a1 , a2 , a3); } }; template< typename MemberPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 > struct function_void_mem_invoker4 { static void invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3) { MemberPtr* f = reinterpret_cast(&function_obj_ptr.data); boost::mem_fn(*f)( a0 , a1 , a2 , a3); } }; template< typename FunctionPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 > struct get_function_invoker4 { typedef typename mpl::if_c<(is_void::value), void_function_invoker4< FunctionPtr, R , T0 , T1 , T2 , T3 >, function_invoker4< FunctionPtr, R , T0 , T1 , T2 , T3 > >::type type; }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 > struct get_function_obj_invoker4 { typedef typename mpl::if_c<(is_void::value), void_function_obj_invoker4< FunctionObj, R , T0 , T1 , T2 , T3 >, function_obj_invoker4< FunctionObj, R , T0 , T1 , T2 , T3 > >::type type; }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 > struct get_function_ref_invoker4 { typedef typename mpl::if_c<(is_void::value), void_function_ref_invoker4< FunctionObj, R , T0 , T1 , T2 , T3 >, function_ref_invoker4< FunctionObj, R , T0 , T1 , T2 , T3 > >::type type; }; template< typename MemberPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 > struct get_member_invoker4 { typedef typename mpl::if_c<(is_void::value), function_void_mem_invoker4< MemberPtr, R , T0 , T1 , T2 , T3 >, function_mem_invoker4< MemberPtr, R , T0 , T1 , T2 , T3 > >::type type; }; # 326 "/usr/include/boost/function/function_template.hpp" 3 4 template struct get_invoker4 { }; template<> struct get_invoker4 { template struct apply { typedef typename get_function_invoker4< FunctionPtr, R , T0 , T1 , T2 , T3 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_function_invoker4< FunctionPtr, R , T0 , T1 , T2 , T3 >::type invoker_type; typedef functor_manager manager_type; }; }; template<> struct get_invoker4 { template struct apply { typedef typename get_member_invoker4< MemberPtr, R , T0 , T1 , T2 , T3 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_member_invoker4< MemberPtr, R , T0 , T1 , T2 , T3 >::type invoker_type; typedef functor_manager manager_type; }; }; template<> struct get_invoker4 { template struct apply { typedef typename get_function_obj_invoker4< FunctionObj, R , T0 , T1 , T2 , T3 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_function_obj_invoker4< FunctionObj, R , T0 , T1 , T2 , T3 >::type invoker_type; typedef functor_manager_a manager_type; }; }; template<> struct get_invoker4 { template struct apply { typedef typename get_function_ref_invoker4< typename RefWrapper::type, R , T0 , T1 , T2 , T3 >::type invoker_type; typedef reference_manager manager_type; }; template struct apply_a { typedef typename get_function_ref_invoker4< typename RefWrapper::type, R , T0 , T1 , T2 , T3 >::type invoker_type; typedef reference_manager manager_type; }; }; # 475 "/usr/include/boost/function/function_template.hpp" 3 4 template struct basic_vtable4 { typedef R result_type; typedef result_type (*invoker_type)(function_buffer& , T0 , T1 , T2 , T3); template bool assign_to(F f, function_buffer& functor) const { typedef typename get_function_tag::type tag; return assign_to(f, functor, tag()); } template bool assign_to_a(F f, function_buffer& functor, Allocator a) const { typedef typename get_function_tag::type tag; return assign_to_a(f, functor, a, tag()); } void clear(function_buffer& functor) const { if (base.manager) base.manager(functor, functor, destroy_functor_tag); } private: template bool assign_to(FunctionPtr f, function_buffer& functor, function_ptr_tag) const { this->clear(functor); if (f) { functor.func_ptr = reinterpret_cast(f); return true; } else { return false; } } template bool assign_to_a(FunctionPtr f, function_buffer& functor, Allocator, function_ptr_tag) const { return assign_to(f,functor,function_ptr_tag()); } template bool assign_to(MemberPtr f, function_buffer& functor, member_ptr_tag) const { if (f) { this->assign_to(boost::mem_fn(f), functor); return true; } else { return false; } } template bool assign_to_a(MemberPtr f, function_buffer& functor, Allocator a, member_ptr_tag) const { if (f) { this->assign_to_a(boost::mem_fn(f), functor, a); return true; } else { return false; } } template void assign_functor(FunctionObj f, function_buffer& functor, mpl::true_) const { new (reinterpret_cast(&functor.data)) FunctionObj(f); } template void assign_functor_a(FunctionObj f, function_buffer& functor, Allocator, mpl::true_) const { assign_functor(f,functor,mpl::true_()); } template void assign_functor(FunctionObj f, function_buffer& functor, mpl::false_) const { functor.obj_ptr = new FunctionObj(f); } template void assign_functor_a(FunctionObj f, function_buffer& functor, Allocator a, mpl::false_) const { typedef functor_wrapper functor_wrapper_type; typedef typename Allocator::template rebind::other wrapper_allocator_type; typedef typename wrapper_allocator_type::pointer wrapper_allocator_pointer_type; wrapper_allocator_type wrapper_allocator(a); wrapper_allocator_pointer_type copy = wrapper_allocator.allocate(1); wrapper_allocator.construct(copy, functor_wrapper_type(f,a)); functor_wrapper_type* new_f = static_cast(copy); functor.obj_ptr = new_f; } template bool assign_to(FunctionObj f, function_buffer& functor, function_obj_tag) const { if (!boost::detail::function::has_empty_target(boost::addressof(f))) { assign_functor(f, functor, mpl::bool_<(function_allows_small_object_optimization::value)>()); return true; } else { return false; } } template bool assign_to_a(FunctionObj f, function_buffer& functor, Allocator a, function_obj_tag) const { if (!boost::detail::function::has_empty_target(boost::addressof(f))) { assign_functor_a(f, functor, a, mpl::bool_<(function_allows_small_object_optimization::value)>()); return true; } else { return false; } } template bool assign_to(const reference_wrapper& f, function_buffer& functor, function_obj_ref_tag) const { functor.obj_ref.obj_ptr = (void *)(f.get_pointer()); functor.obj_ref.is_const_qualified = is_const::value; functor.obj_ref.is_volatile_qualified = is_volatile::value; return true; } template bool assign_to_a(const reference_wrapper& f, function_buffer& functor, Allocator, function_obj_ref_tag) const { return assign_to(f,functor,function_obj_ref_tag()); } public: vtable_base base; invoker_type invoker; }; } } template< typename R , typename T0 , typename T1 , typename T2 , typename T3 > class function4 : public function_base # 664 "/usr/include/boost/function/function_template.hpp" 3 4 { public: typedef R result_type; private: typedef boost::detail::function::basic_vtable4< R , T0 , T1 , T2 , T3> vtable_type; vtable_type* get_vtable() const { return reinterpret_cast( reinterpret_cast(vtable) & ~static_cast(0x01)); } struct clear_type {}; public: static const int args = 4; template struct sig { typedef result_type type; }; # 702 "/usr/include/boost/function/function_template.hpp" 3 4 static const int arity = 4; typedef T0 arg1_type; typedef T1 arg2_type; typedef T2 arg3_type; typedef T3 arg4_type; typedef function4 self_type; function4() : function_base() { } template function4(Functor f ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : function_base() { this->assign_to(f); } template function4(Functor f, Allocator a ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : function_base() { this->assign_to_a(f,a); } function4(clear_type*) : function_base() { } function4(const function4& f) : function_base() { this->assign_to_own(f); } # 759 "/usr/include/boost/function/function_template.hpp" 3 4 ~function4() { clear(); } result_type operator()( T0 a0 , T1 a1 , T2 a2 , T3 a3) const { if (this->empty()) boost::throw_exception(bad_function_call()); return get_vtable()->invoker (this->functor , a0 , a1 , a2 , a3); } template typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), function4&>::type operator=(Functor f) { this->clear(); { try { this->assign_to(f); } catch(...) { vtable = 0; throw;; } } return *this; } template void assign(Functor f, Allocator a) { this->clear(); { try{ this->assign_to_a(f,a); } catch(...) { vtable = 0; throw;; } } } function4& operator=(clear_type*) { this->clear(); return *this; } # 825 "/usr/include/boost/function/function_template.hpp" 3 4 function4& operator=(const function4& f) { if (&f == this) return *this; this->clear(); { try { this->assign_to_own(f); } catch(...) { vtable = 0; throw;; } } return *this; } # 861 "/usr/include/boost/function/function_template.hpp" 3 4 void swap(function4& other) { if (&other == this) return; function4 tmp; tmp.move_assign(*this); this->move_assign(other); other.move_assign(tmp); } void clear() { if (vtable) { if (!this->has_trivial_copy_and_destroy()) get_vtable()->clear(this->functor); vtable = 0; } } private: struct dummy { void nonnull() {} }; typedef void (dummy::*safe_bool)(); public: operator safe_bool () const { return (this->empty())? 0 : &dummy::nonnull; } bool operator!() const { return this->empty(); } private: void assign_to_own(const function4& f) { if (!f.empty()) { this->vtable = f.vtable; if (this->has_trivial_copy_and_destroy()) this->functor = f.functor; else get_vtable()->base.manager(f.functor, this->functor, boost::detail::function::clone_functor_tag); } } template void assign_to(Functor f) { using detail::function::vtable_base; typedef typename detail::function::get_function_tag::type tag; typedef detail::function::get_invoker4 get_invoker; typedef typename get_invoker:: template apply handler_type; typedef typename handler_type::invoker_type invoker_type; typedef typename handler_type::manager_type manager_type; static const vtable_type stored_vtable = { { &manager_type::manage }, &invoker_type::invoke }; if (stored_vtable.assign_to(f, functor)) { std::size_t value = reinterpret_cast(&stored_vtable.base); if (boost::has_trivial_copy_constructor::value && boost::has_trivial_destructor::value && detail::function::function_allows_small_object_optimization::value) value |= static_cast(0x01); vtable = reinterpret_cast(value); } else vtable = 0; } template void assign_to_a(Functor f,Allocator a) { using detail::function::vtable_base; typedef typename detail::function::get_function_tag::type tag; typedef detail::function::get_invoker4 get_invoker; typedef typename get_invoker:: template apply_a handler_type; typedef typename handler_type::invoker_type invoker_type; typedef typename handler_type::manager_type manager_type; static const vtable_type stored_vtable = { { &manager_type::manage }, &invoker_type::invoke }; if (stored_vtable.assign_to_a(f, functor, a)) { std::size_t value = reinterpret_cast(&stored_vtable.base); if (boost::has_trivial_copy_constructor::value && boost::has_trivial_destructor::value && detail::function::function_allows_small_object_optimization::value) value |= static_cast(0x01); vtable = reinterpret_cast(value); } else vtable = 0; } void move_assign(function4& f) { if (&f == this) return; { try { if (!f.empty()) { this->vtable = f.vtable; if (this->has_trivial_copy_and_destroy()) this->functor = f.functor; else get_vtable()->base.manager(f.functor, this->functor, boost::detail::function::move_functor_tag); f.vtable = 0; } else { clear(); } } catch(...) { vtable = 0; throw;; } } } }; template inline void swap(function4< R , T0 , T1 , T2 , T3 >& f1, function4< R , T0 , T1 , T2 , T3 >& f2) { f1.swap(f2); } template void operator==(const function4< R , T0 , T1 , T2 , T3>&, const function4< R , T0 , T1 , T2 , T3>&); template void operator!=(const function4< R , T0 , T1 , T2 , T3>&, const function4< R , T0 , T1 , T2 , T3>& ); # 1048 "/usr/include/boost/function/function_template.hpp" 3 4 template class function : public function4 { typedef function4 base_type; typedef function self_type; struct clear_type {}; public: function() : base_type() {} template function(Functor f ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : base_type(f) { } template function(Functor f, Allocator a ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : base_type(f,a) { } function(clear_type*) : base_type() {} function(const self_type& f) : base_type(static_cast(f)){} function(const base_type& f) : base_type(static_cast(f)){} self_type& operator=(const self_type& f) { self_type(f).swap(*this); return *this; } # 1115 "/usr/include/boost/function/function_template.hpp" 3 4 template typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), self_type&>::type operator=(Functor f) { self_type(f).swap(*this); return *this; } self_type& operator=(clear_type*) { this->clear(); return *this; } self_type& operator=(const base_type& f) { self_type(f).swap(*this); return *this; } # 1151 "/usr/include/boost/function/function_template.hpp" 3 4 }; } # 34 "/usr/include/boost/function/detail/maybe_include.hpp" 2 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 68 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 38 "/usr/include/boost/function/detail/maybe_include.hpp" 3 4 # 1 "/usr/include/boost/function/function_template.hpp" 1 3 4 # 81 "/usr/include/boost/function/function_template.hpp" 3 4 namespace boost { namespace detail { namespace function { template< typename FunctionPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 > struct function_invoker5 { static R invoke(function_buffer& function_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4) { FunctionPtr f = reinterpret_cast(function_ptr.func_ptr); return f( a0 , a1 , a2 , a3 , a4); } }; template< typename FunctionPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 > struct void_function_invoker5 { static void invoke(function_buffer& function_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4) { FunctionPtr f = reinterpret_cast(function_ptr.func_ptr); f( a0 , a1 , a2 , a3 , a4); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 > struct function_obj_invoker5 { static R invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4) { FunctionObj* f; if (function_allows_small_object_optimization::value) f = reinterpret_cast(&function_obj_ptr.data); else f = reinterpret_cast(function_obj_ptr.obj_ptr); return (*f)( a0 , a1 , a2 , a3 , a4); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 > struct void_function_obj_invoker5 { static void invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4) { FunctionObj* f; if (function_allows_small_object_optimization::value) f = reinterpret_cast(&function_obj_ptr.data); else f = reinterpret_cast(function_obj_ptr.obj_ptr); (*f)( a0 , a1 , a2 , a3 , a4); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 > struct function_ref_invoker5 { static R invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4) { FunctionObj* f = reinterpret_cast(function_obj_ptr.obj_ptr); return (*f)( a0 , a1 , a2 , a3 , a4); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 > struct void_function_ref_invoker5 { static void invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4) { FunctionObj* f = reinterpret_cast(function_obj_ptr.obj_ptr); (*f)( a0 , a1 , a2 , a3 , a4); } }; template< typename MemberPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 > struct function_mem_invoker5 { static R invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4) { MemberPtr* f = reinterpret_cast(&function_obj_ptr.data); return boost::mem_fn(*f)( a0 , a1 , a2 , a3 , a4); } }; template< typename MemberPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 > struct function_void_mem_invoker5 { static void invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4) { MemberPtr* f = reinterpret_cast(&function_obj_ptr.data); boost::mem_fn(*f)( a0 , a1 , a2 , a3 , a4); } }; template< typename FunctionPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 > struct get_function_invoker5 { typedef typename mpl::if_c<(is_void::value), void_function_invoker5< FunctionPtr, R , T0 , T1 , T2 , T3 , T4 >, function_invoker5< FunctionPtr, R , T0 , T1 , T2 , T3 , T4 > >::type type; }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 > struct get_function_obj_invoker5 { typedef typename mpl::if_c<(is_void::value), void_function_obj_invoker5< FunctionObj, R , T0 , T1 , T2 , T3 , T4 >, function_obj_invoker5< FunctionObj, R , T0 , T1 , T2 , T3 , T4 > >::type type; }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 > struct get_function_ref_invoker5 { typedef typename mpl::if_c<(is_void::value), void_function_ref_invoker5< FunctionObj, R , T0 , T1 , T2 , T3 , T4 >, function_ref_invoker5< FunctionObj, R , T0 , T1 , T2 , T3 , T4 > >::type type; }; template< typename MemberPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 > struct get_member_invoker5 { typedef typename mpl::if_c<(is_void::value), function_void_mem_invoker5< MemberPtr, R , T0 , T1 , T2 , T3 , T4 >, function_mem_invoker5< MemberPtr, R , T0 , T1 , T2 , T3 , T4 > >::type type; }; # 326 "/usr/include/boost/function/function_template.hpp" 3 4 template struct get_invoker5 { }; template<> struct get_invoker5 { template struct apply { typedef typename get_function_invoker5< FunctionPtr, R , T0 , T1 , T2 , T3 , T4 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_function_invoker5< FunctionPtr, R , T0 , T1 , T2 , T3 , T4 >::type invoker_type; typedef functor_manager manager_type; }; }; template<> struct get_invoker5 { template struct apply { typedef typename get_member_invoker5< MemberPtr, R , T0 , T1 , T2 , T3 , T4 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_member_invoker5< MemberPtr, R , T0 , T1 , T2 , T3 , T4 >::type invoker_type; typedef functor_manager manager_type; }; }; template<> struct get_invoker5 { template struct apply { typedef typename get_function_obj_invoker5< FunctionObj, R , T0 , T1 , T2 , T3 , T4 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_function_obj_invoker5< FunctionObj, R , T0 , T1 , T2 , T3 , T4 >::type invoker_type; typedef functor_manager_a manager_type; }; }; template<> struct get_invoker5 { template struct apply { typedef typename get_function_ref_invoker5< typename RefWrapper::type, R , T0 , T1 , T2 , T3 , T4 >::type invoker_type; typedef reference_manager manager_type; }; template struct apply_a { typedef typename get_function_ref_invoker5< typename RefWrapper::type, R , T0 , T1 , T2 , T3 , T4 >::type invoker_type; typedef reference_manager manager_type; }; }; # 475 "/usr/include/boost/function/function_template.hpp" 3 4 template struct basic_vtable5 { typedef R result_type; typedef result_type (*invoker_type)(function_buffer& , T0 , T1 , T2 , T3 , T4); template bool assign_to(F f, function_buffer& functor) const { typedef typename get_function_tag::type tag; return assign_to(f, functor, tag()); } template bool assign_to_a(F f, function_buffer& functor, Allocator a) const { typedef typename get_function_tag::type tag; return assign_to_a(f, functor, a, tag()); } void clear(function_buffer& functor) const { if (base.manager) base.manager(functor, functor, destroy_functor_tag); } private: template bool assign_to(FunctionPtr f, function_buffer& functor, function_ptr_tag) const { this->clear(functor); if (f) { functor.func_ptr = reinterpret_cast(f); return true; } else { return false; } } template bool assign_to_a(FunctionPtr f, function_buffer& functor, Allocator, function_ptr_tag) const { return assign_to(f,functor,function_ptr_tag()); } template bool assign_to(MemberPtr f, function_buffer& functor, member_ptr_tag) const { if (f) { this->assign_to(boost::mem_fn(f), functor); return true; } else { return false; } } template bool assign_to_a(MemberPtr f, function_buffer& functor, Allocator a, member_ptr_tag) const { if (f) { this->assign_to_a(boost::mem_fn(f), functor, a); return true; } else { return false; } } template void assign_functor(FunctionObj f, function_buffer& functor, mpl::true_) const { new (reinterpret_cast(&functor.data)) FunctionObj(f); } template void assign_functor_a(FunctionObj f, function_buffer& functor, Allocator, mpl::true_) const { assign_functor(f,functor,mpl::true_()); } template void assign_functor(FunctionObj f, function_buffer& functor, mpl::false_) const { functor.obj_ptr = new FunctionObj(f); } template void assign_functor_a(FunctionObj f, function_buffer& functor, Allocator a, mpl::false_) const { typedef functor_wrapper functor_wrapper_type; typedef typename Allocator::template rebind::other wrapper_allocator_type; typedef typename wrapper_allocator_type::pointer wrapper_allocator_pointer_type; wrapper_allocator_type wrapper_allocator(a); wrapper_allocator_pointer_type copy = wrapper_allocator.allocate(1); wrapper_allocator.construct(copy, functor_wrapper_type(f,a)); functor_wrapper_type* new_f = static_cast(copy); functor.obj_ptr = new_f; } template bool assign_to(FunctionObj f, function_buffer& functor, function_obj_tag) const { if (!boost::detail::function::has_empty_target(boost::addressof(f))) { assign_functor(f, functor, mpl::bool_<(function_allows_small_object_optimization::value)>()); return true; } else { return false; } } template bool assign_to_a(FunctionObj f, function_buffer& functor, Allocator a, function_obj_tag) const { if (!boost::detail::function::has_empty_target(boost::addressof(f))) { assign_functor_a(f, functor, a, mpl::bool_<(function_allows_small_object_optimization::value)>()); return true; } else { return false; } } template bool assign_to(const reference_wrapper& f, function_buffer& functor, function_obj_ref_tag) const { functor.obj_ref.obj_ptr = (void *)(f.get_pointer()); functor.obj_ref.is_const_qualified = is_const::value; functor.obj_ref.is_volatile_qualified = is_volatile::value; return true; } template bool assign_to_a(const reference_wrapper& f, function_buffer& functor, Allocator, function_obj_ref_tag) const { return assign_to(f,functor,function_obj_ref_tag()); } public: vtable_base base; invoker_type invoker; }; } } template< typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 > class function5 : public function_base # 664 "/usr/include/boost/function/function_template.hpp" 3 4 { public: typedef R result_type; private: typedef boost::detail::function::basic_vtable5< R , T0 , T1 , T2 , T3 , T4> vtable_type; vtable_type* get_vtable() const { return reinterpret_cast( reinterpret_cast(vtable) & ~static_cast(0x01)); } struct clear_type {}; public: static const int args = 5; template struct sig { typedef result_type type; }; # 702 "/usr/include/boost/function/function_template.hpp" 3 4 static const int arity = 5; typedef T0 arg1_type; typedef T1 arg2_type; typedef T2 arg3_type; typedef T3 arg4_type; typedef T4 arg5_type; typedef function5 self_type; function5() : function_base() { } template function5(Functor f ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : function_base() { this->assign_to(f); } template function5(Functor f, Allocator a ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : function_base() { this->assign_to_a(f,a); } function5(clear_type*) : function_base() { } function5(const function5& f) : function_base() { this->assign_to_own(f); } # 759 "/usr/include/boost/function/function_template.hpp" 3 4 ~function5() { clear(); } result_type operator()( T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4) const { if (this->empty()) boost::throw_exception(bad_function_call()); return get_vtable()->invoker (this->functor , a0 , a1 , a2 , a3 , a4); } template typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), function5&>::type operator=(Functor f) { this->clear(); { try { this->assign_to(f); } catch(...) { vtable = 0; throw;; } } return *this; } template void assign(Functor f, Allocator a) { this->clear(); { try{ this->assign_to_a(f,a); } catch(...) { vtable = 0; throw;; } } } function5& operator=(clear_type*) { this->clear(); return *this; } # 825 "/usr/include/boost/function/function_template.hpp" 3 4 function5& operator=(const function5& f) { if (&f == this) return *this; this->clear(); { try { this->assign_to_own(f); } catch(...) { vtable = 0; throw;; } } return *this; } # 861 "/usr/include/boost/function/function_template.hpp" 3 4 void swap(function5& other) { if (&other == this) return; function5 tmp; tmp.move_assign(*this); this->move_assign(other); other.move_assign(tmp); } void clear() { if (vtable) { if (!this->has_trivial_copy_and_destroy()) get_vtable()->clear(this->functor); vtable = 0; } } private: struct dummy { void nonnull() {} }; typedef void (dummy::*safe_bool)(); public: operator safe_bool () const { return (this->empty())? 0 : &dummy::nonnull; } bool operator!() const { return this->empty(); } private: void assign_to_own(const function5& f) { if (!f.empty()) { this->vtable = f.vtable; if (this->has_trivial_copy_and_destroy()) this->functor = f.functor; else get_vtable()->base.manager(f.functor, this->functor, boost::detail::function::clone_functor_tag); } } template void assign_to(Functor f) { using detail::function::vtable_base; typedef typename detail::function::get_function_tag::type tag; typedef detail::function::get_invoker5 get_invoker; typedef typename get_invoker:: template apply handler_type; typedef typename handler_type::invoker_type invoker_type; typedef typename handler_type::manager_type manager_type; static const vtable_type stored_vtable = { { &manager_type::manage }, &invoker_type::invoke }; if (stored_vtable.assign_to(f, functor)) { std::size_t value = reinterpret_cast(&stored_vtable.base); if (boost::has_trivial_copy_constructor::value && boost::has_trivial_destructor::value && detail::function::function_allows_small_object_optimization::value) value |= static_cast(0x01); vtable = reinterpret_cast(value); } else vtable = 0; } template void assign_to_a(Functor f,Allocator a) { using detail::function::vtable_base; typedef typename detail::function::get_function_tag::type tag; typedef detail::function::get_invoker5 get_invoker; typedef typename get_invoker:: template apply_a handler_type; typedef typename handler_type::invoker_type invoker_type; typedef typename handler_type::manager_type manager_type; static const vtable_type stored_vtable = { { &manager_type::manage }, &invoker_type::invoke }; if (stored_vtable.assign_to_a(f, functor, a)) { std::size_t value = reinterpret_cast(&stored_vtable.base); if (boost::has_trivial_copy_constructor::value && boost::has_trivial_destructor::value && detail::function::function_allows_small_object_optimization::value) value |= static_cast(0x01); vtable = reinterpret_cast(value); } else vtable = 0; } void move_assign(function5& f) { if (&f == this) return; { try { if (!f.empty()) { this->vtable = f.vtable; if (this->has_trivial_copy_and_destroy()) this->functor = f.functor; else get_vtable()->base.manager(f.functor, this->functor, boost::detail::function::move_functor_tag); f.vtable = 0; } else { clear(); } } catch(...) { vtable = 0; throw;; } } } }; template inline void swap(function5< R , T0 , T1 , T2 , T3 , T4 >& f1, function5< R , T0 , T1 , T2 , T3 , T4 >& f2) { f1.swap(f2); } template void operator==(const function5< R , T0 , T1 , T2 , T3 , T4>&, const function5< R , T0 , T1 , T2 , T3 , T4>&); template void operator!=(const function5< R , T0 , T1 , T2 , T3 , T4>&, const function5< R , T0 , T1 , T2 , T3 , T4>& ); # 1048 "/usr/include/boost/function/function_template.hpp" 3 4 template class function : public function5 { typedef function5 base_type; typedef function self_type; struct clear_type {}; public: function() : base_type() {} template function(Functor f ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : base_type(f) { } template function(Functor f, Allocator a ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : base_type(f,a) { } function(clear_type*) : base_type() {} function(const self_type& f) : base_type(static_cast(f)){} function(const base_type& f) : base_type(static_cast(f)){} self_type& operator=(const self_type& f) { self_type(f).swap(*this); return *this; } # 1115 "/usr/include/boost/function/function_template.hpp" 3 4 template typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), self_type&>::type operator=(Functor f) { self_type(f).swap(*this); return *this; } self_type& operator=(clear_type*) { this->clear(); return *this; } self_type& operator=(const base_type& f) { self_type(f).swap(*this); return *this; } # 1151 "/usr/include/boost/function/function_template.hpp" 3 4 }; } # 39 "/usr/include/boost/function/detail/maybe_include.hpp" 2 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 73 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 43 "/usr/include/boost/function/detail/maybe_include.hpp" 3 4 # 1 "/usr/include/boost/function/function_template.hpp" 1 3 4 # 81 "/usr/include/boost/function/function_template.hpp" 3 4 namespace boost { namespace detail { namespace function { template< typename FunctionPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > struct function_invoker6 { static R invoke(function_buffer& function_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5) { FunctionPtr f = reinterpret_cast(function_ptr.func_ptr); return f( a0 , a1 , a2 , a3 , a4 , a5); } }; template< typename FunctionPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > struct void_function_invoker6 { static void invoke(function_buffer& function_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5) { FunctionPtr f = reinterpret_cast(function_ptr.func_ptr); f( a0 , a1 , a2 , a3 , a4 , a5); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > struct function_obj_invoker6 { static R invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5) { FunctionObj* f; if (function_allows_small_object_optimization::value) f = reinterpret_cast(&function_obj_ptr.data); else f = reinterpret_cast(function_obj_ptr.obj_ptr); return (*f)( a0 , a1 , a2 , a3 , a4 , a5); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > struct void_function_obj_invoker6 { static void invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5) { FunctionObj* f; if (function_allows_small_object_optimization::value) f = reinterpret_cast(&function_obj_ptr.data); else f = reinterpret_cast(function_obj_ptr.obj_ptr); (*f)( a0 , a1 , a2 , a3 , a4 , a5); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > struct function_ref_invoker6 { static R invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5) { FunctionObj* f = reinterpret_cast(function_obj_ptr.obj_ptr); return (*f)( a0 , a1 , a2 , a3 , a4 , a5); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > struct void_function_ref_invoker6 { static void invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5) { FunctionObj* f = reinterpret_cast(function_obj_ptr.obj_ptr); (*f)( a0 , a1 , a2 , a3 , a4 , a5); } }; template< typename MemberPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > struct function_mem_invoker6 { static R invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5) { MemberPtr* f = reinterpret_cast(&function_obj_ptr.data); return boost::mem_fn(*f)( a0 , a1 , a2 , a3 , a4 , a5); } }; template< typename MemberPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > struct function_void_mem_invoker6 { static void invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5) { MemberPtr* f = reinterpret_cast(&function_obj_ptr.data); boost::mem_fn(*f)( a0 , a1 , a2 , a3 , a4 , a5); } }; template< typename FunctionPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > struct get_function_invoker6 { typedef typename mpl::if_c<(is_void::value), void_function_invoker6< FunctionPtr, R , T0 , T1 , T2 , T3 , T4 , T5 >, function_invoker6< FunctionPtr, R , T0 , T1 , T2 , T3 , T4 , T5 > >::type type; }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > struct get_function_obj_invoker6 { typedef typename mpl::if_c<(is_void::value), void_function_obj_invoker6< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 >, function_obj_invoker6< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 > >::type type; }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > struct get_function_ref_invoker6 { typedef typename mpl::if_c<(is_void::value), void_function_ref_invoker6< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 >, function_ref_invoker6< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 > >::type type; }; template< typename MemberPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > struct get_member_invoker6 { typedef typename mpl::if_c<(is_void::value), function_void_mem_invoker6< MemberPtr, R , T0 , T1 , T2 , T3 , T4 , T5 >, function_mem_invoker6< MemberPtr, R , T0 , T1 , T2 , T3 , T4 , T5 > >::type type; }; # 326 "/usr/include/boost/function/function_template.hpp" 3 4 template struct get_invoker6 { }; template<> struct get_invoker6 { template struct apply { typedef typename get_function_invoker6< FunctionPtr, R , T0 , T1 , T2 , T3 , T4 , T5 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_function_invoker6< FunctionPtr, R , T0 , T1 , T2 , T3 , T4 , T5 >::type invoker_type; typedef functor_manager manager_type; }; }; template<> struct get_invoker6 { template struct apply { typedef typename get_member_invoker6< MemberPtr, R , T0 , T1 , T2 , T3 , T4 , T5 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_member_invoker6< MemberPtr, R , T0 , T1 , T2 , T3 , T4 , T5 >::type invoker_type; typedef functor_manager manager_type; }; }; template<> struct get_invoker6 { template struct apply { typedef typename get_function_obj_invoker6< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_function_obj_invoker6< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 >::type invoker_type; typedef functor_manager_a manager_type; }; }; template<> struct get_invoker6 { template struct apply { typedef typename get_function_ref_invoker6< typename RefWrapper::type, R , T0 , T1 , T2 , T3 , T4 , T5 >::type invoker_type; typedef reference_manager manager_type; }; template struct apply_a { typedef typename get_function_ref_invoker6< typename RefWrapper::type, R , T0 , T1 , T2 , T3 , T4 , T5 >::type invoker_type; typedef reference_manager manager_type; }; }; # 475 "/usr/include/boost/function/function_template.hpp" 3 4 template struct basic_vtable6 { typedef R result_type; typedef result_type (*invoker_type)(function_buffer& , T0 , T1 , T2 , T3 , T4 , T5); template bool assign_to(F f, function_buffer& functor) const { typedef typename get_function_tag::type tag; return assign_to(f, functor, tag()); } template bool assign_to_a(F f, function_buffer& functor, Allocator a) const { typedef typename get_function_tag::type tag; return assign_to_a(f, functor, a, tag()); } void clear(function_buffer& functor) const { if (base.manager) base.manager(functor, functor, destroy_functor_tag); } private: template bool assign_to(FunctionPtr f, function_buffer& functor, function_ptr_tag) const { this->clear(functor); if (f) { functor.func_ptr = reinterpret_cast(f); return true; } else { return false; } } template bool assign_to_a(FunctionPtr f, function_buffer& functor, Allocator, function_ptr_tag) const { return assign_to(f,functor,function_ptr_tag()); } template bool assign_to(MemberPtr f, function_buffer& functor, member_ptr_tag) const { if (f) { this->assign_to(boost::mem_fn(f), functor); return true; } else { return false; } } template bool assign_to_a(MemberPtr f, function_buffer& functor, Allocator a, member_ptr_tag) const { if (f) { this->assign_to_a(boost::mem_fn(f), functor, a); return true; } else { return false; } } template void assign_functor(FunctionObj f, function_buffer& functor, mpl::true_) const { new (reinterpret_cast(&functor.data)) FunctionObj(f); } template void assign_functor_a(FunctionObj f, function_buffer& functor, Allocator, mpl::true_) const { assign_functor(f,functor,mpl::true_()); } template void assign_functor(FunctionObj f, function_buffer& functor, mpl::false_) const { functor.obj_ptr = new FunctionObj(f); } template void assign_functor_a(FunctionObj f, function_buffer& functor, Allocator a, mpl::false_) const { typedef functor_wrapper functor_wrapper_type; typedef typename Allocator::template rebind::other wrapper_allocator_type; typedef typename wrapper_allocator_type::pointer wrapper_allocator_pointer_type; wrapper_allocator_type wrapper_allocator(a); wrapper_allocator_pointer_type copy = wrapper_allocator.allocate(1); wrapper_allocator.construct(copy, functor_wrapper_type(f,a)); functor_wrapper_type* new_f = static_cast(copy); functor.obj_ptr = new_f; } template bool assign_to(FunctionObj f, function_buffer& functor, function_obj_tag) const { if (!boost::detail::function::has_empty_target(boost::addressof(f))) { assign_functor(f, functor, mpl::bool_<(function_allows_small_object_optimization::value)>()); return true; } else { return false; } } template bool assign_to_a(FunctionObj f, function_buffer& functor, Allocator a, function_obj_tag) const { if (!boost::detail::function::has_empty_target(boost::addressof(f))) { assign_functor_a(f, functor, a, mpl::bool_<(function_allows_small_object_optimization::value)>()); return true; } else { return false; } } template bool assign_to(const reference_wrapper& f, function_buffer& functor, function_obj_ref_tag) const { functor.obj_ref.obj_ptr = (void *)(f.get_pointer()); functor.obj_ref.is_const_qualified = is_const::value; functor.obj_ref.is_volatile_qualified = is_volatile::value; return true; } template bool assign_to_a(const reference_wrapper& f, function_buffer& functor, Allocator, function_obj_ref_tag) const { return assign_to(f,functor,function_obj_ref_tag()); } public: vtable_base base; invoker_type invoker; }; } } template< typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > class function6 : public function_base # 664 "/usr/include/boost/function/function_template.hpp" 3 4 { public: typedef R result_type; private: typedef boost::detail::function::basic_vtable6< R , T0 , T1 , T2 , T3 , T4 , T5> vtable_type; vtable_type* get_vtable() const { return reinterpret_cast( reinterpret_cast(vtable) & ~static_cast(0x01)); } struct clear_type {}; public: static const int args = 6; template struct sig { typedef result_type type; }; # 702 "/usr/include/boost/function/function_template.hpp" 3 4 static const int arity = 6; typedef T0 arg1_type; typedef T1 arg2_type; typedef T2 arg3_type; typedef T3 arg4_type; typedef T4 arg5_type; typedef T5 arg6_type; typedef function6 self_type; function6() : function_base() { } template function6(Functor f ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : function_base() { this->assign_to(f); } template function6(Functor f, Allocator a ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : function_base() { this->assign_to_a(f,a); } function6(clear_type*) : function_base() { } function6(const function6& f) : function_base() { this->assign_to_own(f); } # 759 "/usr/include/boost/function/function_template.hpp" 3 4 ~function6() { clear(); } result_type operator()( T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5) const { if (this->empty()) boost::throw_exception(bad_function_call()); return get_vtable()->invoker (this->functor , a0 , a1 , a2 , a3 , a4 , a5); } template typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), function6&>::type operator=(Functor f) { this->clear(); { try { this->assign_to(f); } catch(...) { vtable = 0; throw;; } } return *this; } template void assign(Functor f, Allocator a) { this->clear(); { try{ this->assign_to_a(f,a); } catch(...) { vtable = 0; throw;; } } } function6& operator=(clear_type*) { this->clear(); return *this; } # 825 "/usr/include/boost/function/function_template.hpp" 3 4 function6& operator=(const function6& f) { if (&f == this) return *this; this->clear(); { try { this->assign_to_own(f); } catch(...) { vtable = 0; throw;; } } return *this; } # 861 "/usr/include/boost/function/function_template.hpp" 3 4 void swap(function6& other) { if (&other == this) return; function6 tmp; tmp.move_assign(*this); this->move_assign(other); other.move_assign(tmp); } void clear() { if (vtable) { if (!this->has_trivial_copy_and_destroy()) get_vtable()->clear(this->functor); vtable = 0; } } private: struct dummy { void nonnull() {} }; typedef void (dummy::*safe_bool)(); public: operator safe_bool () const { return (this->empty())? 0 : &dummy::nonnull; } bool operator!() const { return this->empty(); } private: void assign_to_own(const function6& f) { if (!f.empty()) { this->vtable = f.vtable; if (this->has_trivial_copy_and_destroy()) this->functor = f.functor; else get_vtable()->base.manager(f.functor, this->functor, boost::detail::function::clone_functor_tag); } } template void assign_to(Functor f) { using detail::function::vtable_base; typedef typename detail::function::get_function_tag::type tag; typedef detail::function::get_invoker6 get_invoker; typedef typename get_invoker:: template apply handler_type; typedef typename handler_type::invoker_type invoker_type; typedef typename handler_type::manager_type manager_type; static const vtable_type stored_vtable = { { &manager_type::manage }, &invoker_type::invoke }; if (stored_vtable.assign_to(f, functor)) { std::size_t value = reinterpret_cast(&stored_vtable.base); if (boost::has_trivial_copy_constructor::value && boost::has_trivial_destructor::value && detail::function::function_allows_small_object_optimization::value) value |= static_cast(0x01); vtable = reinterpret_cast(value); } else vtable = 0; } template void assign_to_a(Functor f,Allocator a) { using detail::function::vtable_base; typedef typename detail::function::get_function_tag::type tag; typedef detail::function::get_invoker6 get_invoker; typedef typename get_invoker:: template apply_a handler_type; typedef typename handler_type::invoker_type invoker_type; typedef typename handler_type::manager_type manager_type; static const vtable_type stored_vtable = { { &manager_type::manage }, &invoker_type::invoke }; if (stored_vtable.assign_to_a(f, functor, a)) { std::size_t value = reinterpret_cast(&stored_vtable.base); if (boost::has_trivial_copy_constructor::value && boost::has_trivial_destructor::value && detail::function::function_allows_small_object_optimization::value) value |= static_cast(0x01); vtable = reinterpret_cast(value); } else vtable = 0; } void move_assign(function6& f) { if (&f == this) return; { try { if (!f.empty()) { this->vtable = f.vtable; if (this->has_trivial_copy_and_destroy()) this->functor = f.functor; else get_vtable()->base.manager(f.functor, this->functor, boost::detail::function::move_functor_tag); f.vtable = 0; } else { clear(); } } catch(...) { vtable = 0; throw;; } } } }; template inline void swap(function6< R , T0 , T1 , T2 , T3 , T4 , T5 >& f1, function6< R , T0 , T1 , T2 , T3 , T4 , T5 >& f2) { f1.swap(f2); } template void operator==(const function6< R , T0 , T1 , T2 , T3 , T4 , T5>&, const function6< R , T0 , T1 , T2 , T3 , T4 , T5>&); template void operator!=(const function6< R , T0 , T1 , T2 , T3 , T4 , T5>&, const function6< R , T0 , T1 , T2 , T3 , T4 , T5>& ); # 1048 "/usr/include/boost/function/function_template.hpp" 3 4 template class function : public function6 { typedef function6 base_type; typedef function self_type; struct clear_type {}; public: function() : base_type() {} template function(Functor f ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : base_type(f) { } template function(Functor f, Allocator a ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : base_type(f,a) { } function(clear_type*) : base_type() {} function(const self_type& f) : base_type(static_cast(f)){} function(const base_type& f) : base_type(static_cast(f)){} self_type& operator=(const self_type& f) { self_type(f).swap(*this); return *this; } # 1115 "/usr/include/boost/function/function_template.hpp" 3 4 template typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), self_type&>::type operator=(Functor f) { self_type(f).swap(*this); return *this; } self_type& operator=(clear_type*) { this->clear(); return *this; } self_type& operator=(const base_type& f) { self_type(f).swap(*this); return *this; } # 1151 "/usr/include/boost/function/function_template.hpp" 3 4 }; } # 44 "/usr/include/boost/function/detail/maybe_include.hpp" 2 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 78 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 48 "/usr/include/boost/function/detail/maybe_include.hpp" 3 4 # 1 "/usr/include/boost/function/function_template.hpp" 1 3 4 # 81 "/usr/include/boost/function/function_template.hpp" 3 4 namespace boost { namespace detail { namespace function { template< typename FunctionPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > struct function_invoker7 { static R invoke(function_buffer& function_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6) { FunctionPtr f = reinterpret_cast(function_ptr.func_ptr); return f( a0 , a1 , a2 , a3 , a4 , a5 , a6); } }; template< typename FunctionPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > struct void_function_invoker7 { static void invoke(function_buffer& function_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6) { FunctionPtr f = reinterpret_cast(function_ptr.func_ptr); f( a0 , a1 , a2 , a3 , a4 , a5 , a6); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > struct function_obj_invoker7 { static R invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6) { FunctionObj* f; if (function_allows_small_object_optimization::value) f = reinterpret_cast(&function_obj_ptr.data); else f = reinterpret_cast(function_obj_ptr.obj_ptr); return (*f)( a0 , a1 , a2 , a3 , a4 , a5 , a6); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > struct void_function_obj_invoker7 { static void invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6) { FunctionObj* f; if (function_allows_small_object_optimization::value) f = reinterpret_cast(&function_obj_ptr.data); else f = reinterpret_cast(function_obj_ptr.obj_ptr); (*f)( a0 , a1 , a2 , a3 , a4 , a5 , a6); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > struct function_ref_invoker7 { static R invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6) { FunctionObj* f = reinterpret_cast(function_obj_ptr.obj_ptr); return (*f)( a0 , a1 , a2 , a3 , a4 , a5 , a6); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > struct void_function_ref_invoker7 { static void invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6) { FunctionObj* f = reinterpret_cast(function_obj_ptr.obj_ptr); (*f)( a0 , a1 , a2 , a3 , a4 , a5 , a6); } }; template< typename MemberPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > struct function_mem_invoker7 { static R invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6) { MemberPtr* f = reinterpret_cast(&function_obj_ptr.data); return boost::mem_fn(*f)( a0 , a1 , a2 , a3 , a4 , a5 , a6); } }; template< typename MemberPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > struct function_void_mem_invoker7 { static void invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6) { MemberPtr* f = reinterpret_cast(&function_obj_ptr.data); boost::mem_fn(*f)( a0 , a1 , a2 , a3 , a4 , a5 , a6); } }; template< typename FunctionPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > struct get_function_invoker7 { typedef typename mpl::if_c<(is_void::value), void_function_invoker7< FunctionPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 >, function_invoker7< FunctionPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 > >::type type; }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > struct get_function_obj_invoker7 { typedef typename mpl::if_c<(is_void::value), void_function_obj_invoker7< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 >, function_obj_invoker7< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 > >::type type; }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > struct get_function_ref_invoker7 { typedef typename mpl::if_c<(is_void::value), void_function_ref_invoker7< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 >, function_ref_invoker7< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 > >::type type; }; template< typename MemberPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > struct get_member_invoker7 { typedef typename mpl::if_c<(is_void::value), function_void_mem_invoker7< MemberPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 >, function_mem_invoker7< MemberPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 > >::type type; }; # 326 "/usr/include/boost/function/function_template.hpp" 3 4 template struct get_invoker7 { }; template<> struct get_invoker7 { template struct apply { typedef typename get_function_invoker7< FunctionPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_function_invoker7< FunctionPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 >::type invoker_type; typedef functor_manager manager_type; }; }; template<> struct get_invoker7 { template struct apply { typedef typename get_member_invoker7< MemberPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_member_invoker7< MemberPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 >::type invoker_type; typedef functor_manager manager_type; }; }; template<> struct get_invoker7 { template struct apply { typedef typename get_function_obj_invoker7< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_function_obj_invoker7< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 >::type invoker_type; typedef functor_manager_a manager_type; }; }; template<> struct get_invoker7 { template struct apply { typedef typename get_function_ref_invoker7< typename RefWrapper::type, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 >::type invoker_type; typedef reference_manager manager_type; }; template struct apply_a { typedef typename get_function_ref_invoker7< typename RefWrapper::type, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 >::type invoker_type; typedef reference_manager manager_type; }; }; # 475 "/usr/include/boost/function/function_template.hpp" 3 4 template struct basic_vtable7 { typedef R result_type; typedef result_type (*invoker_type)(function_buffer& , T0 , T1 , T2 , T3 , T4 , T5 , T6); template bool assign_to(F f, function_buffer& functor) const { typedef typename get_function_tag::type tag; return assign_to(f, functor, tag()); } template bool assign_to_a(F f, function_buffer& functor, Allocator a) const { typedef typename get_function_tag::type tag; return assign_to_a(f, functor, a, tag()); } void clear(function_buffer& functor) const { if (base.manager) base.manager(functor, functor, destroy_functor_tag); } private: template bool assign_to(FunctionPtr f, function_buffer& functor, function_ptr_tag) const { this->clear(functor); if (f) { functor.func_ptr = reinterpret_cast(f); return true; } else { return false; } } template bool assign_to_a(FunctionPtr f, function_buffer& functor, Allocator, function_ptr_tag) const { return assign_to(f,functor,function_ptr_tag()); } template bool assign_to(MemberPtr f, function_buffer& functor, member_ptr_tag) const { if (f) { this->assign_to(boost::mem_fn(f), functor); return true; } else { return false; } } template bool assign_to_a(MemberPtr f, function_buffer& functor, Allocator a, member_ptr_tag) const { if (f) { this->assign_to_a(boost::mem_fn(f), functor, a); return true; } else { return false; } } template void assign_functor(FunctionObj f, function_buffer& functor, mpl::true_) const { new (reinterpret_cast(&functor.data)) FunctionObj(f); } template void assign_functor_a(FunctionObj f, function_buffer& functor, Allocator, mpl::true_) const { assign_functor(f,functor,mpl::true_()); } template void assign_functor(FunctionObj f, function_buffer& functor, mpl::false_) const { functor.obj_ptr = new FunctionObj(f); } template void assign_functor_a(FunctionObj f, function_buffer& functor, Allocator a, mpl::false_) const { typedef functor_wrapper functor_wrapper_type; typedef typename Allocator::template rebind::other wrapper_allocator_type; typedef typename wrapper_allocator_type::pointer wrapper_allocator_pointer_type; wrapper_allocator_type wrapper_allocator(a); wrapper_allocator_pointer_type copy = wrapper_allocator.allocate(1); wrapper_allocator.construct(copy, functor_wrapper_type(f,a)); functor_wrapper_type* new_f = static_cast(copy); functor.obj_ptr = new_f; } template bool assign_to(FunctionObj f, function_buffer& functor, function_obj_tag) const { if (!boost::detail::function::has_empty_target(boost::addressof(f))) { assign_functor(f, functor, mpl::bool_<(function_allows_small_object_optimization::value)>()); return true; } else { return false; } } template bool assign_to_a(FunctionObj f, function_buffer& functor, Allocator a, function_obj_tag) const { if (!boost::detail::function::has_empty_target(boost::addressof(f))) { assign_functor_a(f, functor, a, mpl::bool_<(function_allows_small_object_optimization::value)>()); return true; } else { return false; } } template bool assign_to(const reference_wrapper& f, function_buffer& functor, function_obj_ref_tag) const { functor.obj_ref.obj_ptr = (void *)(f.get_pointer()); functor.obj_ref.is_const_qualified = is_const::value; functor.obj_ref.is_volatile_qualified = is_volatile::value; return true; } template bool assign_to_a(const reference_wrapper& f, function_buffer& functor, Allocator, function_obj_ref_tag) const { return assign_to(f,functor,function_obj_ref_tag()); } public: vtable_base base; invoker_type invoker; }; } } template< typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > class function7 : public function_base # 664 "/usr/include/boost/function/function_template.hpp" 3 4 { public: typedef R result_type; private: typedef boost::detail::function::basic_vtable7< R , T0 , T1 , T2 , T3 , T4 , T5 , T6> vtable_type; vtable_type* get_vtable() const { return reinterpret_cast( reinterpret_cast(vtable) & ~static_cast(0x01)); } struct clear_type {}; public: static const int args = 7; template struct sig { typedef result_type type; }; # 702 "/usr/include/boost/function/function_template.hpp" 3 4 static const int arity = 7; typedef T0 arg1_type; typedef T1 arg2_type; typedef T2 arg3_type; typedef T3 arg4_type; typedef T4 arg5_type; typedef T5 arg6_type; typedef T6 arg7_type; typedef function7 self_type; function7() : function_base() { } template function7(Functor f ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : function_base() { this->assign_to(f); } template function7(Functor f, Allocator a ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : function_base() { this->assign_to_a(f,a); } function7(clear_type*) : function_base() { } function7(const function7& f) : function_base() { this->assign_to_own(f); } # 759 "/usr/include/boost/function/function_template.hpp" 3 4 ~function7() { clear(); } result_type operator()( T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6) const { if (this->empty()) boost::throw_exception(bad_function_call()); return get_vtable()->invoker (this->functor , a0 , a1 , a2 , a3 , a4 , a5 , a6); } template typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), function7&>::type operator=(Functor f) { this->clear(); { try { this->assign_to(f); } catch(...) { vtable = 0; throw;; } } return *this; } template void assign(Functor f, Allocator a) { this->clear(); { try{ this->assign_to_a(f,a); } catch(...) { vtable = 0; throw;; } } } function7& operator=(clear_type*) { this->clear(); return *this; } # 825 "/usr/include/boost/function/function_template.hpp" 3 4 function7& operator=(const function7& f) { if (&f == this) return *this; this->clear(); { try { this->assign_to_own(f); } catch(...) { vtable = 0; throw;; } } return *this; } # 861 "/usr/include/boost/function/function_template.hpp" 3 4 void swap(function7& other) { if (&other == this) return; function7 tmp; tmp.move_assign(*this); this->move_assign(other); other.move_assign(tmp); } void clear() { if (vtable) { if (!this->has_trivial_copy_and_destroy()) get_vtable()->clear(this->functor); vtable = 0; } } private: struct dummy { void nonnull() {} }; typedef void (dummy::*safe_bool)(); public: operator safe_bool () const { return (this->empty())? 0 : &dummy::nonnull; } bool operator!() const { return this->empty(); } private: void assign_to_own(const function7& f) { if (!f.empty()) { this->vtable = f.vtable; if (this->has_trivial_copy_and_destroy()) this->functor = f.functor; else get_vtable()->base.manager(f.functor, this->functor, boost::detail::function::clone_functor_tag); } } template void assign_to(Functor f) { using detail::function::vtable_base; typedef typename detail::function::get_function_tag::type tag; typedef detail::function::get_invoker7 get_invoker; typedef typename get_invoker:: template apply handler_type; typedef typename handler_type::invoker_type invoker_type; typedef typename handler_type::manager_type manager_type; static const vtable_type stored_vtable = { { &manager_type::manage }, &invoker_type::invoke }; if (stored_vtable.assign_to(f, functor)) { std::size_t value = reinterpret_cast(&stored_vtable.base); if (boost::has_trivial_copy_constructor::value && boost::has_trivial_destructor::value && detail::function::function_allows_small_object_optimization::value) value |= static_cast(0x01); vtable = reinterpret_cast(value); } else vtable = 0; } template void assign_to_a(Functor f,Allocator a) { using detail::function::vtable_base; typedef typename detail::function::get_function_tag::type tag; typedef detail::function::get_invoker7 get_invoker; typedef typename get_invoker:: template apply_a handler_type; typedef typename handler_type::invoker_type invoker_type; typedef typename handler_type::manager_type manager_type; static const vtable_type stored_vtable = { { &manager_type::manage }, &invoker_type::invoke }; if (stored_vtable.assign_to_a(f, functor, a)) { std::size_t value = reinterpret_cast(&stored_vtable.base); if (boost::has_trivial_copy_constructor::value && boost::has_trivial_destructor::value && detail::function::function_allows_small_object_optimization::value) value |= static_cast(0x01); vtable = reinterpret_cast(value); } else vtable = 0; } void move_assign(function7& f) { if (&f == this) return; { try { if (!f.empty()) { this->vtable = f.vtable; if (this->has_trivial_copy_and_destroy()) this->functor = f.functor; else get_vtable()->base.manager(f.functor, this->functor, boost::detail::function::move_functor_tag); f.vtable = 0; } else { clear(); } } catch(...) { vtable = 0; throw;; } } } }; template inline void swap(function7< R , T0 , T1 , T2 , T3 , T4 , T5 , T6 >& f1, function7< R , T0 , T1 , T2 , T3 , T4 , T5 , T6 >& f2) { f1.swap(f2); } template void operator==(const function7< R , T0 , T1 , T2 , T3 , T4 , T5 , T6>&, const function7< R , T0 , T1 , T2 , T3 , T4 , T5 , T6>&); template void operator!=(const function7< R , T0 , T1 , T2 , T3 , T4 , T5 , T6>&, const function7< R , T0 , T1 , T2 , T3 , T4 , T5 , T6>& ); # 1048 "/usr/include/boost/function/function_template.hpp" 3 4 template class function : public function7 { typedef function7 base_type; typedef function self_type; struct clear_type {}; public: function() : base_type() {} template function(Functor f ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : base_type(f) { } template function(Functor f, Allocator a ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : base_type(f,a) { } function(clear_type*) : base_type() {} function(const self_type& f) : base_type(static_cast(f)){} function(const base_type& f) : base_type(static_cast(f)){} self_type& operator=(const self_type& f) { self_type(f).swap(*this); return *this; } # 1115 "/usr/include/boost/function/function_template.hpp" 3 4 template typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), self_type&>::type operator=(Functor f) { self_type(f).swap(*this); return *this; } self_type& operator=(clear_type*) { this->clear(); return *this; } self_type& operator=(const base_type& f) { self_type(f).swap(*this); return *this; } # 1151 "/usr/include/boost/function/function_template.hpp" 3 4 }; } # 49 "/usr/include/boost/function/detail/maybe_include.hpp" 2 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 83 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 53 "/usr/include/boost/function/detail/maybe_include.hpp" 3 4 # 1 "/usr/include/boost/function/function_template.hpp" 1 3 4 # 81 "/usr/include/boost/function/function_template.hpp" 3 4 namespace boost { namespace detail { namespace function { template< typename FunctionPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 > struct function_invoker8 { static R invoke(function_buffer& function_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6 , T7 a7) { FunctionPtr f = reinterpret_cast(function_ptr.func_ptr); return f( a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7); } }; template< typename FunctionPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 > struct void_function_invoker8 { static void invoke(function_buffer& function_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6 , T7 a7) { FunctionPtr f = reinterpret_cast(function_ptr.func_ptr); f( a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 > struct function_obj_invoker8 { static R invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6 , T7 a7) { FunctionObj* f; if (function_allows_small_object_optimization::value) f = reinterpret_cast(&function_obj_ptr.data); else f = reinterpret_cast(function_obj_ptr.obj_ptr); return (*f)( a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 > struct void_function_obj_invoker8 { static void invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6 , T7 a7) { FunctionObj* f; if (function_allows_small_object_optimization::value) f = reinterpret_cast(&function_obj_ptr.data); else f = reinterpret_cast(function_obj_ptr.obj_ptr); (*f)( a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 > struct function_ref_invoker8 { static R invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6 , T7 a7) { FunctionObj* f = reinterpret_cast(function_obj_ptr.obj_ptr); return (*f)( a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 > struct void_function_ref_invoker8 { static void invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6 , T7 a7) { FunctionObj* f = reinterpret_cast(function_obj_ptr.obj_ptr); (*f)( a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7); } }; template< typename MemberPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 > struct function_mem_invoker8 { static R invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6 , T7 a7) { MemberPtr* f = reinterpret_cast(&function_obj_ptr.data); return boost::mem_fn(*f)( a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7); } }; template< typename MemberPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 > struct function_void_mem_invoker8 { static void invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6 , T7 a7) { MemberPtr* f = reinterpret_cast(&function_obj_ptr.data); boost::mem_fn(*f)( a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7); } }; template< typename FunctionPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 > struct get_function_invoker8 { typedef typename mpl::if_c<(is_void::value), void_function_invoker8< FunctionPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 >, function_invoker8< FunctionPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 > >::type type; }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 > struct get_function_obj_invoker8 { typedef typename mpl::if_c<(is_void::value), void_function_obj_invoker8< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 >, function_obj_invoker8< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 > >::type type; }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 > struct get_function_ref_invoker8 { typedef typename mpl::if_c<(is_void::value), void_function_ref_invoker8< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 >, function_ref_invoker8< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 > >::type type; }; template< typename MemberPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 > struct get_member_invoker8 { typedef typename mpl::if_c<(is_void::value), function_void_mem_invoker8< MemberPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 >, function_mem_invoker8< MemberPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 > >::type type; }; # 326 "/usr/include/boost/function/function_template.hpp" 3 4 template struct get_invoker8 { }; template<> struct get_invoker8 { template struct apply { typedef typename get_function_invoker8< FunctionPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_function_invoker8< FunctionPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 >::type invoker_type; typedef functor_manager manager_type; }; }; template<> struct get_invoker8 { template struct apply { typedef typename get_member_invoker8< MemberPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_member_invoker8< MemberPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 >::type invoker_type; typedef functor_manager manager_type; }; }; template<> struct get_invoker8 { template struct apply { typedef typename get_function_obj_invoker8< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_function_obj_invoker8< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 >::type invoker_type; typedef functor_manager_a manager_type; }; }; template<> struct get_invoker8 { template struct apply { typedef typename get_function_ref_invoker8< typename RefWrapper::type, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 >::type invoker_type; typedef reference_manager manager_type; }; template struct apply_a { typedef typename get_function_ref_invoker8< typename RefWrapper::type, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 >::type invoker_type; typedef reference_manager manager_type; }; }; # 475 "/usr/include/boost/function/function_template.hpp" 3 4 template struct basic_vtable8 { typedef R result_type; typedef result_type (*invoker_type)(function_buffer& , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7); template bool assign_to(F f, function_buffer& functor) const { typedef typename get_function_tag::type tag; return assign_to(f, functor, tag()); } template bool assign_to_a(F f, function_buffer& functor, Allocator a) const { typedef typename get_function_tag::type tag; return assign_to_a(f, functor, a, tag()); } void clear(function_buffer& functor) const { if (base.manager) base.manager(functor, functor, destroy_functor_tag); } private: template bool assign_to(FunctionPtr f, function_buffer& functor, function_ptr_tag) const { this->clear(functor); if (f) { functor.func_ptr = reinterpret_cast(f); return true; } else { return false; } } template bool assign_to_a(FunctionPtr f, function_buffer& functor, Allocator, function_ptr_tag) const { return assign_to(f,functor,function_ptr_tag()); } template bool assign_to(MemberPtr f, function_buffer& functor, member_ptr_tag) const { if (f) { this->assign_to(boost::mem_fn(f), functor); return true; } else { return false; } } template bool assign_to_a(MemberPtr f, function_buffer& functor, Allocator a, member_ptr_tag) const { if (f) { this->assign_to_a(boost::mem_fn(f), functor, a); return true; } else { return false; } } template void assign_functor(FunctionObj f, function_buffer& functor, mpl::true_) const { new (reinterpret_cast(&functor.data)) FunctionObj(f); } template void assign_functor_a(FunctionObj f, function_buffer& functor, Allocator, mpl::true_) const { assign_functor(f,functor,mpl::true_()); } template void assign_functor(FunctionObj f, function_buffer& functor, mpl::false_) const { functor.obj_ptr = new FunctionObj(f); } template void assign_functor_a(FunctionObj f, function_buffer& functor, Allocator a, mpl::false_) const { typedef functor_wrapper functor_wrapper_type; typedef typename Allocator::template rebind::other wrapper_allocator_type; typedef typename wrapper_allocator_type::pointer wrapper_allocator_pointer_type; wrapper_allocator_type wrapper_allocator(a); wrapper_allocator_pointer_type copy = wrapper_allocator.allocate(1); wrapper_allocator.construct(copy, functor_wrapper_type(f,a)); functor_wrapper_type* new_f = static_cast(copy); functor.obj_ptr = new_f; } template bool assign_to(FunctionObj f, function_buffer& functor, function_obj_tag) const { if (!boost::detail::function::has_empty_target(boost::addressof(f))) { assign_functor(f, functor, mpl::bool_<(function_allows_small_object_optimization::value)>()); return true; } else { return false; } } template bool assign_to_a(FunctionObj f, function_buffer& functor, Allocator a, function_obj_tag) const { if (!boost::detail::function::has_empty_target(boost::addressof(f))) { assign_functor_a(f, functor, a, mpl::bool_<(function_allows_small_object_optimization::value)>()); return true; } else { return false; } } template bool assign_to(const reference_wrapper& f, function_buffer& functor, function_obj_ref_tag) const { functor.obj_ref.obj_ptr = (void *)(f.get_pointer()); functor.obj_ref.is_const_qualified = is_const::value; functor.obj_ref.is_volatile_qualified = is_volatile::value; return true; } template bool assign_to_a(const reference_wrapper& f, function_buffer& functor, Allocator, function_obj_ref_tag) const { return assign_to(f,functor,function_obj_ref_tag()); } public: vtable_base base; invoker_type invoker; }; } } template< typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 > class function8 : public function_base # 664 "/usr/include/boost/function/function_template.hpp" 3 4 { public: typedef R result_type; private: typedef boost::detail::function::basic_vtable8< R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7> vtable_type; vtable_type* get_vtable() const { return reinterpret_cast( reinterpret_cast(vtable) & ~static_cast(0x01)); } struct clear_type {}; public: static const int args = 8; template struct sig { typedef result_type type; }; # 702 "/usr/include/boost/function/function_template.hpp" 3 4 static const int arity = 8; typedef T0 arg1_type; typedef T1 arg2_type; typedef T2 arg3_type; typedef T3 arg4_type; typedef T4 arg5_type; typedef T5 arg6_type; typedef T6 arg7_type; typedef T7 arg8_type; typedef function8 self_type; function8() : function_base() { } template function8(Functor f ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : function_base() { this->assign_to(f); } template function8(Functor f, Allocator a ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : function_base() { this->assign_to_a(f,a); } function8(clear_type*) : function_base() { } function8(const function8& f) : function_base() { this->assign_to_own(f); } # 759 "/usr/include/boost/function/function_template.hpp" 3 4 ~function8() { clear(); } result_type operator()( T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6 , T7 a7) const { if (this->empty()) boost::throw_exception(bad_function_call()); return get_vtable()->invoker (this->functor , a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7); } template typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), function8&>::type operator=(Functor f) { this->clear(); { try { this->assign_to(f); } catch(...) { vtable = 0; throw;; } } return *this; } template void assign(Functor f, Allocator a) { this->clear(); { try{ this->assign_to_a(f,a); } catch(...) { vtable = 0; throw;; } } } function8& operator=(clear_type*) { this->clear(); return *this; } # 825 "/usr/include/boost/function/function_template.hpp" 3 4 function8& operator=(const function8& f) { if (&f == this) return *this; this->clear(); { try { this->assign_to_own(f); } catch(...) { vtable = 0; throw;; } } return *this; } # 861 "/usr/include/boost/function/function_template.hpp" 3 4 void swap(function8& other) { if (&other == this) return; function8 tmp; tmp.move_assign(*this); this->move_assign(other); other.move_assign(tmp); } void clear() { if (vtable) { if (!this->has_trivial_copy_and_destroy()) get_vtable()->clear(this->functor); vtable = 0; } } private: struct dummy { void nonnull() {} }; typedef void (dummy::*safe_bool)(); public: operator safe_bool () const { return (this->empty())? 0 : &dummy::nonnull; } bool operator!() const { return this->empty(); } private: void assign_to_own(const function8& f) { if (!f.empty()) { this->vtable = f.vtable; if (this->has_trivial_copy_and_destroy()) this->functor = f.functor; else get_vtable()->base.manager(f.functor, this->functor, boost::detail::function::clone_functor_tag); } } template void assign_to(Functor f) { using detail::function::vtable_base; typedef typename detail::function::get_function_tag::type tag; typedef detail::function::get_invoker8 get_invoker; typedef typename get_invoker:: template apply handler_type; typedef typename handler_type::invoker_type invoker_type; typedef typename handler_type::manager_type manager_type; static const vtable_type stored_vtable = { { &manager_type::manage }, &invoker_type::invoke }; if (stored_vtable.assign_to(f, functor)) { std::size_t value = reinterpret_cast(&stored_vtable.base); if (boost::has_trivial_copy_constructor::value && boost::has_trivial_destructor::value && detail::function::function_allows_small_object_optimization::value) value |= static_cast(0x01); vtable = reinterpret_cast(value); } else vtable = 0; } template void assign_to_a(Functor f,Allocator a) { using detail::function::vtable_base; typedef typename detail::function::get_function_tag::type tag; typedef detail::function::get_invoker8 get_invoker; typedef typename get_invoker:: template apply_a handler_type; typedef typename handler_type::invoker_type invoker_type; typedef typename handler_type::manager_type manager_type; static const vtable_type stored_vtable = { { &manager_type::manage }, &invoker_type::invoke }; if (stored_vtable.assign_to_a(f, functor, a)) { std::size_t value = reinterpret_cast(&stored_vtable.base); if (boost::has_trivial_copy_constructor::value && boost::has_trivial_destructor::value && detail::function::function_allows_small_object_optimization::value) value |= static_cast(0x01); vtable = reinterpret_cast(value); } else vtable = 0; } void move_assign(function8& f) { if (&f == this) return; { try { if (!f.empty()) { this->vtable = f.vtable; if (this->has_trivial_copy_and_destroy()) this->functor = f.functor; else get_vtable()->base.manager(f.functor, this->functor, boost::detail::function::move_functor_tag); f.vtable = 0; } else { clear(); } } catch(...) { vtable = 0; throw;; } } } }; template inline void swap(function8< R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 >& f1, function8< R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 >& f2) { f1.swap(f2); } template void operator==(const function8< R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7>&, const function8< R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7>&); template void operator!=(const function8< R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7>&, const function8< R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7>& ); # 1048 "/usr/include/boost/function/function_template.hpp" 3 4 template class function : public function8 { typedef function8 base_type; typedef function self_type; struct clear_type {}; public: function() : base_type() {} template function(Functor f ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : base_type(f) { } template function(Functor f, Allocator a ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : base_type(f,a) { } function(clear_type*) : base_type() {} function(const self_type& f) : base_type(static_cast(f)){} function(const base_type& f) : base_type(static_cast(f)){} self_type& operator=(const self_type& f) { self_type(f).swap(*this); return *this; } # 1115 "/usr/include/boost/function/function_template.hpp" 3 4 template typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), self_type&>::type operator=(Functor f) { self_type(f).swap(*this); return *this; } self_type& operator=(clear_type*) { this->clear(); return *this; } self_type& operator=(const base_type& f) { self_type(f).swap(*this); return *this; } # 1151 "/usr/include/boost/function/function_template.hpp" 3 4 }; } # 54 "/usr/include/boost/function/detail/maybe_include.hpp" 2 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 88 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 58 "/usr/include/boost/function/detail/maybe_include.hpp" 3 4 # 1 "/usr/include/boost/function/function_template.hpp" 1 3 4 # 81 "/usr/include/boost/function/function_template.hpp" 3 4 namespace boost { namespace detail { namespace function { template< typename FunctionPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 > struct function_invoker9 { static R invoke(function_buffer& function_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6 , T7 a7 , T8 a8) { FunctionPtr f = reinterpret_cast(function_ptr.func_ptr); return f( a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7 , a8); } }; template< typename FunctionPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 > struct void_function_invoker9 { static void invoke(function_buffer& function_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6 , T7 a7 , T8 a8) { FunctionPtr f = reinterpret_cast(function_ptr.func_ptr); f( a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7 , a8); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 > struct function_obj_invoker9 { static R invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6 , T7 a7 , T8 a8) { FunctionObj* f; if (function_allows_small_object_optimization::value) f = reinterpret_cast(&function_obj_ptr.data); else f = reinterpret_cast(function_obj_ptr.obj_ptr); return (*f)( a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7 , a8); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 > struct void_function_obj_invoker9 { static void invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6 , T7 a7 , T8 a8) { FunctionObj* f; if (function_allows_small_object_optimization::value) f = reinterpret_cast(&function_obj_ptr.data); else f = reinterpret_cast(function_obj_ptr.obj_ptr); (*f)( a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7 , a8); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 > struct function_ref_invoker9 { static R invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6 , T7 a7 , T8 a8) { FunctionObj* f = reinterpret_cast(function_obj_ptr.obj_ptr); return (*f)( a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7 , a8); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 > struct void_function_ref_invoker9 { static void invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6 , T7 a7 , T8 a8) { FunctionObj* f = reinterpret_cast(function_obj_ptr.obj_ptr); (*f)( a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7 , a8); } }; template< typename MemberPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 > struct function_mem_invoker9 { static R invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6 , T7 a7 , T8 a8) { MemberPtr* f = reinterpret_cast(&function_obj_ptr.data); return boost::mem_fn(*f)( a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7 , a8); } }; template< typename MemberPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 > struct function_void_mem_invoker9 { static void invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6 , T7 a7 , T8 a8) { MemberPtr* f = reinterpret_cast(&function_obj_ptr.data); boost::mem_fn(*f)( a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7 , a8); } }; template< typename FunctionPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 > struct get_function_invoker9 { typedef typename mpl::if_c<(is_void::value), void_function_invoker9< FunctionPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 >, function_invoker9< FunctionPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > >::type type; }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 > struct get_function_obj_invoker9 { typedef typename mpl::if_c<(is_void::value), void_function_obj_invoker9< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 >, function_obj_invoker9< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > >::type type; }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 > struct get_function_ref_invoker9 { typedef typename mpl::if_c<(is_void::value), void_function_ref_invoker9< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 >, function_ref_invoker9< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > >::type type; }; template< typename MemberPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 > struct get_member_invoker9 { typedef typename mpl::if_c<(is_void::value), function_void_mem_invoker9< MemberPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 >, function_mem_invoker9< MemberPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > >::type type; }; # 326 "/usr/include/boost/function/function_template.hpp" 3 4 template struct get_invoker9 { }; template<> struct get_invoker9 { template struct apply { typedef typename get_function_invoker9< FunctionPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_function_invoker9< FunctionPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 >::type invoker_type; typedef functor_manager manager_type; }; }; template<> struct get_invoker9 { template struct apply { typedef typename get_member_invoker9< MemberPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_member_invoker9< MemberPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 >::type invoker_type; typedef functor_manager manager_type; }; }; template<> struct get_invoker9 { template struct apply { typedef typename get_function_obj_invoker9< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_function_obj_invoker9< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 >::type invoker_type; typedef functor_manager_a manager_type; }; }; template<> struct get_invoker9 { template struct apply { typedef typename get_function_ref_invoker9< typename RefWrapper::type, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 >::type invoker_type; typedef reference_manager manager_type; }; template struct apply_a { typedef typename get_function_ref_invoker9< typename RefWrapper::type, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 >::type invoker_type; typedef reference_manager manager_type; }; }; # 475 "/usr/include/boost/function/function_template.hpp" 3 4 template struct basic_vtable9 { typedef R result_type; typedef result_type (*invoker_type)(function_buffer& , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8); template bool assign_to(F f, function_buffer& functor) const { typedef typename get_function_tag::type tag; return assign_to(f, functor, tag()); } template bool assign_to_a(F f, function_buffer& functor, Allocator a) const { typedef typename get_function_tag::type tag; return assign_to_a(f, functor, a, tag()); } void clear(function_buffer& functor) const { if (base.manager) base.manager(functor, functor, destroy_functor_tag); } private: template bool assign_to(FunctionPtr f, function_buffer& functor, function_ptr_tag) const { this->clear(functor); if (f) { functor.func_ptr = reinterpret_cast(f); return true; } else { return false; } } template bool assign_to_a(FunctionPtr f, function_buffer& functor, Allocator, function_ptr_tag) const { return assign_to(f,functor,function_ptr_tag()); } template bool assign_to(MemberPtr f, function_buffer& functor, member_ptr_tag) const { if (f) { this->assign_to(boost::mem_fn(f), functor); return true; } else { return false; } } template bool assign_to_a(MemberPtr f, function_buffer& functor, Allocator a, member_ptr_tag) const { if (f) { this->assign_to_a(boost::mem_fn(f), functor, a); return true; } else { return false; } } template void assign_functor(FunctionObj f, function_buffer& functor, mpl::true_) const { new (reinterpret_cast(&functor.data)) FunctionObj(f); } template void assign_functor_a(FunctionObj f, function_buffer& functor, Allocator, mpl::true_) const { assign_functor(f,functor,mpl::true_()); } template void assign_functor(FunctionObj f, function_buffer& functor, mpl::false_) const { functor.obj_ptr = new FunctionObj(f); } template void assign_functor_a(FunctionObj f, function_buffer& functor, Allocator a, mpl::false_) const { typedef functor_wrapper functor_wrapper_type; typedef typename Allocator::template rebind::other wrapper_allocator_type; typedef typename wrapper_allocator_type::pointer wrapper_allocator_pointer_type; wrapper_allocator_type wrapper_allocator(a); wrapper_allocator_pointer_type copy = wrapper_allocator.allocate(1); wrapper_allocator.construct(copy, functor_wrapper_type(f,a)); functor_wrapper_type* new_f = static_cast(copy); functor.obj_ptr = new_f; } template bool assign_to(FunctionObj f, function_buffer& functor, function_obj_tag) const { if (!boost::detail::function::has_empty_target(boost::addressof(f))) { assign_functor(f, functor, mpl::bool_<(function_allows_small_object_optimization::value)>()); return true; } else { return false; } } template bool assign_to_a(FunctionObj f, function_buffer& functor, Allocator a, function_obj_tag) const { if (!boost::detail::function::has_empty_target(boost::addressof(f))) { assign_functor_a(f, functor, a, mpl::bool_<(function_allows_small_object_optimization::value)>()); return true; } else { return false; } } template bool assign_to(const reference_wrapper& f, function_buffer& functor, function_obj_ref_tag) const { functor.obj_ref.obj_ptr = (void *)(f.get_pointer()); functor.obj_ref.is_const_qualified = is_const::value; functor.obj_ref.is_volatile_qualified = is_volatile::value; return true; } template bool assign_to_a(const reference_wrapper& f, function_buffer& functor, Allocator, function_obj_ref_tag) const { return assign_to(f,functor,function_obj_ref_tag()); } public: vtable_base base; invoker_type invoker; }; } } template< typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 > class function9 : public function_base # 664 "/usr/include/boost/function/function_template.hpp" 3 4 { public: typedef R result_type; private: typedef boost::detail::function::basic_vtable9< R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8> vtable_type; vtable_type* get_vtable() const { return reinterpret_cast( reinterpret_cast(vtable) & ~static_cast(0x01)); } struct clear_type {}; public: static const int args = 9; template struct sig { typedef result_type type; }; # 702 "/usr/include/boost/function/function_template.hpp" 3 4 static const int arity = 9; typedef T0 arg1_type; typedef T1 arg2_type; typedef T2 arg3_type; typedef T3 arg4_type; typedef T4 arg5_type; typedef T5 arg6_type; typedef T6 arg7_type; typedef T7 arg8_type; typedef T8 arg9_type; typedef function9 self_type; function9() : function_base() { } template function9(Functor f ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : function_base() { this->assign_to(f); } template function9(Functor f, Allocator a ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : function_base() { this->assign_to_a(f,a); } function9(clear_type*) : function_base() { } function9(const function9& f) : function_base() { this->assign_to_own(f); } # 759 "/usr/include/boost/function/function_template.hpp" 3 4 ~function9() { clear(); } result_type operator()( T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6 , T7 a7 , T8 a8) const { if (this->empty()) boost::throw_exception(bad_function_call()); return get_vtable()->invoker (this->functor , a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7 , a8); } template typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), function9&>::type operator=(Functor f) { this->clear(); { try { this->assign_to(f); } catch(...) { vtable = 0; throw;; } } return *this; } template void assign(Functor f, Allocator a) { this->clear(); { try{ this->assign_to_a(f,a); } catch(...) { vtable = 0; throw;; } } } function9& operator=(clear_type*) { this->clear(); return *this; } # 825 "/usr/include/boost/function/function_template.hpp" 3 4 function9& operator=(const function9& f) { if (&f == this) return *this; this->clear(); { try { this->assign_to_own(f); } catch(...) { vtable = 0; throw;; } } return *this; } # 861 "/usr/include/boost/function/function_template.hpp" 3 4 void swap(function9& other) { if (&other == this) return; function9 tmp; tmp.move_assign(*this); this->move_assign(other); other.move_assign(tmp); } void clear() { if (vtable) { if (!this->has_trivial_copy_and_destroy()) get_vtable()->clear(this->functor); vtable = 0; } } private: struct dummy { void nonnull() {} }; typedef void (dummy::*safe_bool)(); public: operator safe_bool () const { return (this->empty())? 0 : &dummy::nonnull; } bool operator!() const { return this->empty(); } private: void assign_to_own(const function9& f) { if (!f.empty()) { this->vtable = f.vtable; if (this->has_trivial_copy_and_destroy()) this->functor = f.functor; else get_vtable()->base.manager(f.functor, this->functor, boost::detail::function::clone_functor_tag); } } template void assign_to(Functor f) { using detail::function::vtable_base; typedef typename detail::function::get_function_tag::type tag; typedef detail::function::get_invoker9 get_invoker; typedef typename get_invoker:: template apply handler_type; typedef typename handler_type::invoker_type invoker_type; typedef typename handler_type::manager_type manager_type; static const vtable_type stored_vtable = { { &manager_type::manage }, &invoker_type::invoke }; if (stored_vtable.assign_to(f, functor)) { std::size_t value = reinterpret_cast(&stored_vtable.base); if (boost::has_trivial_copy_constructor::value && boost::has_trivial_destructor::value && detail::function::function_allows_small_object_optimization::value) value |= static_cast(0x01); vtable = reinterpret_cast(value); } else vtable = 0; } template void assign_to_a(Functor f,Allocator a) { using detail::function::vtable_base; typedef typename detail::function::get_function_tag::type tag; typedef detail::function::get_invoker9 get_invoker; typedef typename get_invoker:: template apply_a handler_type; typedef typename handler_type::invoker_type invoker_type; typedef typename handler_type::manager_type manager_type; static const vtable_type stored_vtable = { { &manager_type::manage }, &invoker_type::invoke }; if (stored_vtable.assign_to_a(f, functor, a)) { std::size_t value = reinterpret_cast(&stored_vtable.base); if (boost::has_trivial_copy_constructor::value && boost::has_trivial_destructor::value && detail::function::function_allows_small_object_optimization::value) value |= static_cast(0x01); vtable = reinterpret_cast(value); } else vtable = 0; } void move_assign(function9& f) { if (&f == this) return; { try { if (!f.empty()) { this->vtable = f.vtable; if (this->has_trivial_copy_and_destroy()) this->functor = f.functor; else get_vtable()->base.manager(f.functor, this->functor, boost::detail::function::move_functor_tag); f.vtable = 0; } else { clear(); } } catch(...) { vtable = 0; throw;; } } } }; template inline void swap(function9< R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 >& f1, function9< R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 >& f2) { f1.swap(f2); } template void operator==(const function9< R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8>&, const function9< R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8>&); template void operator!=(const function9< R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8>&, const function9< R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8>& ); # 1048 "/usr/include/boost/function/function_template.hpp" 3 4 template class function : public function9 { typedef function9 base_type; typedef function self_type; struct clear_type {}; public: function() : base_type() {} template function(Functor f ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : base_type(f) { } template function(Functor f, Allocator a ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : base_type(f,a) { } function(clear_type*) : base_type() {} function(const self_type& f) : base_type(static_cast(f)){} function(const base_type& f) : base_type(static_cast(f)){} self_type& operator=(const self_type& f) { self_type(f).swap(*this); return *this; } # 1115 "/usr/include/boost/function/function_template.hpp" 3 4 template typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), self_type&>::type operator=(Functor f) { self_type(f).swap(*this); return *this; } self_type& operator=(clear_type*) { this->clear(); return *this; } self_type& operator=(const base_type& f) { self_type(f).swap(*this); return *this; } # 1151 "/usr/include/boost/function/function_template.hpp" 3 4 }; } # 59 "/usr/include/boost/function/detail/maybe_include.hpp" 2 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 93 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 63 "/usr/include/boost/function/detail/maybe_include.hpp" 3 4 # 1 "/usr/include/boost/function/function_template.hpp" 1 3 4 # 81 "/usr/include/boost/function/function_template.hpp" 3 4 namespace boost { namespace detail { namespace function { template< typename FunctionPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 > struct function_invoker10 { static R invoke(function_buffer& function_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6 , T7 a7 , T8 a8 , T9 a9) { FunctionPtr f = reinterpret_cast(function_ptr.func_ptr); return f( a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7 , a8 , a9); } }; template< typename FunctionPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 > struct void_function_invoker10 { static void invoke(function_buffer& function_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6 , T7 a7 , T8 a8 , T9 a9) { FunctionPtr f = reinterpret_cast(function_ptr.func_ptr); f( a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7 , a8 , a9); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 > struct function_obj_invoker10 { static R invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6 , T7 a7 , T8 a8 , T9 a9) { FunctionObj* f; if (function_allows_small_object_optimization::value) f = reinterpret_cast(&function_obj_ptr.data); else f = reinterpret_cast(function_obj_ptr.obj_ptr); return (*f)( a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7 , a8 , a9); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 > struct void_function_obj_invoker10 { static void invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6 , T7 a7 , T8 a8 , T9 a9) { FunctionObj* f; if (function_allows_small_object_optimization::value) f = reinterpret_cast(&function_obj_ptr.data); else f = reinterpret_cast(function_obj_ptr.obj_ptr); (*f)( a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7 , a8 , a9); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 > struct function_ref_invoker10 { static R invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6 , T7 a7 , T8 a8 , T9 a9) { FunctionObj* f = reinterpret_cast(function_obj_ptr.obj_ptr); return (*f)( a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7 , a8 , a9); } }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 > struct void_function_ref_invoker10 { static void invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6 , T7 a7 , T8 a8 , T9 a9) { FunctionObj* f = reinterpret_cast(function_obj_ptr.obj_ptr); (*f)( a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7 , a8 , a9); } }; template< typename MemberPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 > struct function_mem_invoker10 { static R invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6 , T7 a7 , T8 a8 , T9 a9) { MemberPtr* f = reinterpret_cast(&function_obj_ptr.data); return boost::mem_fn(*f)( a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7 , a8 , a9); } }; template< typename MemberPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 > struct function_void_mem_invoker10 { static void invoke(function_buffer& function_obj_ptr , T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6 , T7 a7 , T8 a8 , T9 a9) { MemberPtr* f = reinterpret_cast(&function_obj_ptr.data); boost::mem_fn(*f)( a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7 , a8 , a9); } }; template< typename FunctionPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 > struct get_function_invoker10 { typedef typename mpl::if_c<(is_void::value), void_function_invoker10< FunctionPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 >, function_invoker10< FunctionPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > >::type type; }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 > struct get_function_obj_invoker10 { typedef typename mpl::if_c<(is_void::value), void_function_obj_invoker10< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 >, function_obj_invoker10< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > >::type type; }; template< typename FunctionObj, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 > struct get_function_ref_invoker10 { typedef typename mpl::if_c<(is_void::value), void_function_ref_invoker10< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 >, function_ref_invoker10< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > >::type type; }; template< typename MemberPtr, typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 > struct get_member_invoker10 { typedef typename mpl::if_c<(is_void::value), function_void_mem_invoker10< MemberPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 >, function_mem_invoker10< MemberPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > >::type type; }; # 326 "/usr/include/boost/function/function_template.hpp" 3 4 template struct get_invoker10 { }; template<> struct get_invoker10 { template struct apply { typedef typename get_function_invoker10< FunctionPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_function_invoker10< FunctionPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 >::type invoker_type; typedef functor_manager manager_type; }; }; template<> struct get_invoker10 { template struct apply { typedef typename get_member_invoker10< MemberPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_member_invoker10< MemberPtr, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 >::type invoker_type; typedef functor_manager manager_type; }; }; template<> struct get_invoker10 { template struct apply { typedef typename get_function_obj_invoker10< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 >::type invoker_type; typedef functor_manager manager_type; }; template struct apply_a { typedef typename get_function_obj_invoker10< FunctionObj, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 >::type invoker_type; typedef functor_manager_a manager_type; }; }; template<> struct get_invoker10 { template struct apply { typedef typename get_function_ref_invoker10< typename RefWrapper::type, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 >::type invoker_type; typedef reference_manager manager_type; }; template struct apply_a { typedef typename get_function_ref_invoker10< typename RefWrapper::type, R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 >::type invoker_type; typedef reference_manager manager_type; }; }; # 475 "/usr/include/boost/function/function_template.hpp" 3 4 template struct basic_vtable10 { typedef R result_type; typedef result_type (*invoker_type)(function_buffer& , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9); template bool assign_to(F f, function_buffer& functor) const { typedef typename get_function_tag::type tag; return assign_to(f, functor, tag()); } template bool assign_to_a(F f, function_buffer& functor, Allocator a) const { typedef typename get_function_tag::type tag; return assign_to_a(f, functor, a, tag()); } void clear(function_buffer& functor) const { if (base.manager) base.manager(functor, functor, destroy_functor_tag); } private: template bool assign_to(FunctionPtr f, function_buffer& functor, function_ptr_tag) const { this->clear(functor); if (f) { functor.func_ptr = reinterpret_cast(f); return true; } else { return false; } } template bool assign_to_a(FunctionPtr f, function_buffer& functor, Allocator, function_ptr_tag) const { return assign_to(f,functor,function_ptr_tag()); } template bool assign_to(MemberPtr f, function_buffer& functor, member_ptr_tag) const { if (f) { this->assign_to(boost::mem_fn(f), functor); return true; } else { return false; } } template bool assign_to_a(MemberPtr f, function_buffer& functor, Allocator a, member_ptr_tag) const { if (f) { this->assign_to_a(boost::mem_fn(f), functor, a); return true; } else { return false; } } template void assign_functor(FunctionObj f, function_buffer& functor, mpl::true_) const { new (reinterpret_cast(&functor.data)) FunctionObj(f); } template void assign_functor_a(FunctionObj f, function_buffer& functor, Allocator, mpl::true_) const { assign_functor(f,functor,mpl::true_()); } template void assign_functor(FunctionObj f, function_buffer& functor, mpl::false_) const { functor.obj_ptr = new FunctionObj(f); } template void assign_functor_a(FunctionObj f, function_buffer& functor, Allocator a, mpl::false_) const { typedef functor_wrapper functor_wrapper_type; typedef typename Allocator::template rebind::other wrapper_allocator_type; typedef typename wrapper_allocator_type::pointer wrapper_allocator_pointer_type; wrapper_allocator_type wrapper_allocator(a); wrapper_allocator_pointer_type copy = wrapper_allocator.allocate(1); wrapper_allocator.construct(copy, functor_wrapper_type(f,a)); functor_wrapper_type* new_f = static_cast(copy); functor.obj_ptr = new_f; } template bool assign_to(FunctionObj f, function_buffer& functor, function_obj_tag) const { if (!boost::detail::function::has_empty_target(boost::addressof(f))) { assign_functor(f, functor, mpl::bool_<(function_allows_small_object_optimization::value)>()); return true; } else { return false; } } template bool assign_to_a(FunctionObj f, function_buffer& functor, Allocator a, function_obj_tag) const { if (!boost::detail::function::has_empty_target(boost::addressof(f))) { assign_functor_a(f, functor, a, mpl::bool_<(function_allows_small_object_optimization::value)>()); return true; } else { return false; } } template bool assign_to(const reference_wrapper& f, function_buffer& functor, function_obj_ref_tag) const { functor.obj_ref.obj_ptr = (void *)(f.get_pointer()); functor.obj_ref.is_const_qualified = is_const::value; functor.obj_ref.is_volatile_qualified = is_volatile::value; return true; } template bool assign_to_a(const reference_wrapper& f, function_buffer& functor, Allocator, function_obj_ref_tag) const { return assign_to(f,functor,function_obj_ref_tag()); } public: vtable_base base; invoker_type invoker; }; } } template< typename R , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 > class function10 : public function_base # 664 "/usr/include/boost/function/function_template.hpp" 3 4 { public: typedef R result_type; private: typedef boost::detail::function::basic_vtable10< R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9> vtable_type; vtable_type* get_vtable() const { return reinterpret_cast( reinterpret_cast(vtable) & ~static_cast(0x01)); } struct clear_type {}; public: static const int args = 10; template struct sig { typedef result_type type; }; # 702 "/usr/include/boost/function/function_template.hpp" 3 4 static const int arity = 10; typedef T0 arg1_type; typedef T1 arg2_type; typedef T2 arg3_type; typedef T3 arg4_type; typedef T4 arg5_type; typedef T5 arg6_type; typedef T6 arg7_type; typedef T7 arg8_type; typedef T8 arg9_type; typedef T9 arg10_type; typedef function10 self_type; function10() : function_base() { } template function10(Functor f ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : function_base() { this->assign_to(f); } template function10(Functor f, Allocator a ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : function_base() { this->assign_to_a(f,a); } function10(clear_type*) : function_base() { } function10(const function10& f) : function_base() { this->assign_to_own(f); } # 759 "/usr/include/boost/function/function_template.hpp" 3 4 ~function10() { clear(); } result_type operator()( T0 a0 , T1 a1 , T2 a2 , T3 a3 , T4 a4 , T5 a5 , T6 a6 , T7 a7 , T8 a8 , T9 a9) const { if (this->empty()) boost::throw_exception(bad_function_call()); return get_vtable()->invoker (this->functor , a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7 , a8 , a9); } template typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), function10&>::type operator=(Functor f) { this->clear(); { try { this->assign_to(f); } catch(...) { vtable = 0; throw;; } } return *this; } template void assign(Functor f, Allocator a) { this->clear(); { try{ this->assign_to_a(f,a); } catch(...) { vtable = 0; throw;; } } } function10& operator=(clear_type*) { this->clear(); return *this; } # 825 "/usr/include/boost/function/function_template.hpp" 3 4 function10& operator=(const function10& f) { if (&f == this) return *this; this->clear(); { try { this->assign_to_own(f); } catch(...) { vtable = 0; throw;; } } return *this; } # 861 "/usr/include/boost/function/function_template.hpp" 3 4 void swap(function10& other) { if (&other == this) return; function10 tmp; tmp.move_assign(*this); this->move_assign(other); other.move_assign(tmp); } void clear() { if (vtable) { if (!this->has_trivial_copy_and_destroy()) get_vtable()->clear(this->functor); vtable = 0; } } private: struct dummy { void nonnull() {} }; typedef void (dummy::*safe_bool)(); public: operator safe_bool () const { return (this->empty())? 0 : &dummy::nonnull; } bool operator!() const { return this->empty(); } private: void assign_to_own(const function10& f) { if (!f.empty()) { this->vtable = f.vtable; if (this->has_trivial_copy_and_destroy()) this->functor = f.functor; else get_vtable()->base.manager(f.functor, this->functor, boost::detail::function::clone_functor_tag); } } template void assign_to(Functor f) { using detail::function::vtable_base; typedef typename detail::function::get_function_tag::type tag; typedef detail::function::get_invoker10 get_invoker; typedef typename get_invoker:: template apply handler_type; typedef typename handler_type::invoker_type invoker_type; typedef typename handler_type::manager_type manager_type; static const vtable_type stored_vtable = { { &manager_type::manage }, &invoker_type::invoke }; if (stored_vtable.assign_to(f, functor)) { std::size_t value = reinterpret_cast(&stored_vtable.base); if (boost::has_trivial_copy_constructor::value && boost::has_trivial_destructor::value && detail::function::function_allows_small_object_optimization::value) value |= static_cast(0x01); vtable = reinterpret_cast(value); } else vtable = 0; } template void assign_to_a(Functor f,Allocator a) { using detail::function::vtable_base; typedef typename detail::function::get_function_tag::type tag; typedef detail::function::get_invoker10 get_invoker; typedef typename get_invoker:: template apply_a handler_type; typedef typename handler_type::invoker_type invoker_type; typedef typename handler_type::manager_type manager_type; static const vtable_type stored_vtable = { { &manager_type::manage }, &invoker_type::invoke }; if (stored_vtable.assign_to_a(f, functor, a)) { std::size_t value = reinterpret_cast(&stored_vtable.base); if (boost::has_trivial_copy_constructor::value && boost::has_trivial_destructor::value && detail::function::function_allows_small_object_optimization::value) value |= static_cast(0x01); vtable = reinterpret_cast(value); } else vtable = 0; } void move_assign(function10& f) { if (&f == this) return; { try { if (!f.empty()) { this->vtable = f.vtable; if (this->has_trivial_copy_and_destroy()) this->functor = f.functor; else get_vtable()->base.manager(f.functor, this->functor, boost::detail::function::move_functor_tag); f.vtable = 0; } else { clear(); } } catch(...) { vtable = 0; throw;; } } } }; template inline void swap(function10< R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 >& f1, function10< R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 >& f2) { f1.swap(f2); } template void operator==(const function10< R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9>&, const function10< R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9>&); template void operator!=(const function10< R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9>&, const function10< R , T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9>& ); # 1048 "/usr/include/boost/function/function_template.hpp" 3 4 template class function : public function10 { typedef function10 base_type; typedef function self_type; struct clear_type {}; public: function() : base_type() {} template function(Functor f ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : base_type(f) { } template function(Functor f, Allocator a ,typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), int>::type = 0 ) : base_type(f,a) { } function(clear_type*) : base_type() {} function(const self_type& f) : base_type(static_cast(f)){} function(const base_type& f) : base_type(static_cast(f)){} self_type& operator=(const self_type& f) { self_type(f).swap(*this); return *this; } # 1115 "/usr/include/boost/function/function_template.hpp" 3 4 template typename enable_if_c< (boost::type_traits::ice_not< (is_integral::value)>::value), self_type&>::type operator=(Functor f) { self_type(f).swap(*this); return *this; } self_type& operator=(clear_type*) { this->clear(); return *this; } self_type& operator=(const base_type& f) { self_type(f).swap(*this); return *this; } # 1151 "/usr/include/boost/function/function_template.hpp" 3 4 }; } # 64 "/usr/include/boost/function/detail/maybe_include.hpp" 2 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 98 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 65 "/usr/include/boost/function.hpp" 2 3 4 # 11 "namespaces.hh" 2 # 1 "/usr/include/boost/format.hpp" 1 3 4 # 17 "/usr/include/boost/format.hpp" 3 4 # 1 "/usr/include/c++/5.0.0/vector" 1 3 4 # 58 "/usr/include/c++/5.0.0/vector" 3 4 # 59 "/usr/include/c++/5.0.0/vector" 3 # 1 "/usr/include/c++/5.0.0/bits/stl_vector.h" 1 3 # 66 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template struct _Vector_base { typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template rebind<_Tp>::other _Tp_alloc_type; typedef typename __gnu_cxx::__alloc_traits<_Tp_alloc_type>::pointer pointer; struct _Vector_impl : public _Tp_alloc_type { pointer _M_start; pointer _M_finish; pointer _M_end_of_storage; _Vector_impl() : _Tp_alloc_type(), _M_start(), _M_finish(), _M_end_of_storage() { } _Vector_impl(_Tp_alloc_type const& __a) : _Tp_alloc_type(__a), _M_start(), _M_finish(), _M_end_of_storage() { } # 101 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 void _M_swap_data(_Vector_impl& __x) { std::swap(_M_start, __x._M_start); std::swap(_M_finish, __x._M_finish); std::swap(_M_end_of_storage, __x._M_end_of_storage); } }; public: typedef _Alloc allocator_type; _Tp_alloc_type& _M_get_Tp_allocator() { return *static_cast<_Tp_alloc_type*>(&this->_M_impl); } const _Tp_alloc_type& _M_get_Tp_allocator() const { return *static_cast(&this->_M_impl); } allocator_type get_allocator() const { return allocator_type(_M_get_Tp_allocator()); } _Vector_base() : _M_impl() { } _Vector_base(const allocator_type& __a) : _M_impl(__a) { } _Vector_base(size_t __n) : _M_impl() { _M_create_storage(__n); } _Vector_base(size_t __n, const allocator_type& __a) : _M_impl(__a) { _M_create_storage(__n); } # 159 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 ~_Vector_base() { _M_deallocate(this->_M_impl._M_start, this->_M_impl._M_end_of_storage - this->_M_impl._M_start); } public: _Vector_impl _M_impl; pointer _M_allocate(size_t __n) { typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tr; return __n != 0 ? _Tr::allocate(_M_impl, __n) : pointer(); } void _M_deallocate(pointer __p, size_t __n) { typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tr; if (__p) _Tr::deallocate(_M_impl, __p, __n); } private: void _M_create_storage(size_t __n) { this->_M_impl._M_start = this->_M_allocate(__n); this->_M_impl._M_finish = this->_M_impl._M_start; this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; } }; # 213 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 template > class vector : protected _Vector_base<_Tp, _Alloc> { typedef typename _Alloc::value_type _Alloc_value_type; typedef _Vector_base<_Tp, _Alloc> _Base; typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Alloc_traits; public: typedef _Tp value_type; typedef typename _Base::pointer pointer; typedef typename _Alloc_traits::const_pointer const_pointer; typedef typename _Alloc_traits::reference reference; typedef typename _Alloc_traits::const_reference const_reference; typedef __gnu_cxx::__normal_iterator iterator; typedef __gnu_cxx::__normal_iterator const_iterator; typedef std::reverse_iterator const_reverse_iterator; typedef std::reverse_iterator reverse_iterator; typedef size_t size_type; typedef ptrdiff_t difference_type; typedef _Alloc allocator_type; protected: using _Base::_M_allocate; using _Base::_M_deallocate; using _Base::_M_impl; using _Base::_M_get_Tp_allocator; public: vector() : _Base() { } explicit vector(const allocator_type& __a) : _Base(__a) { } # 302 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 explicit vector(size_type __n, const value_type& __value = value_type(), const allocator_type& __a = allocator_type()) : _Base(__n, __a) { _M_fill_initialize(__n, __value); } # 318 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 vector(const vector& __x) : _Base(__x.size(), _Alloc_traits::_S_select_on_copy(__x._M_get_Tp_allocator())) { this->_M_impl._M_finish = std::__uninitialized_copy_a(__x.begin(), __x.end(), this->_M_impl._M_start, _M_get_Tp_allocator()); } # 406 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 template vector(_InputIterator __first, _InputIterator __last, const allocator_type& __a = allocator_type()) : _Base(__a) { typedef typename std::__is_integer<_InputIterator>::__type _Integral; _M_initialize_dispatch(__first, __last, _Integral()); } # 423 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 ~vector() { std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, _M_get_Tp_allocator()); } # 435 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 vector& operator=(const vector& __x); # 487 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 void assign(size_type __n, const value_type& __val) { _M_fill_assign(__n, __val); } # 510 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 template void assign(_InputIterator __first, _InputIterator __last) { typedef typename std::__is_integer<_InputIterator>::__type _Integral; _M_assign_dispatch(__first, __last, _Integral()); } # 538 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 using _Base::get_allocator; iterator begin() { return iterator(this->_M_impl._M_start); } const_iterator begin() const { return const_iterator(this->_M_impl._M_start); } iterator end() { return iterator(this->_M_impl._M_finish); } const_iterator end() const { return const_iterator(this->_M_impl._M_finish); } reverse_iterator rbegin() { return reverse_iterator(end()); } const_reverse_iterator rbegin() const { return const_reverse_iterator(end()); } reverse_iterator rend() { return reverse_iterator(begin()); } const_reverse_iterator rend() const { return const_reverse_iterator(begin()); } # 653 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 size_type size() const { return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); } size_type max_size() const { return _Alloc_traits::max_size(_M_get_Tp_allocator()); } # 712 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 void resize(size_type __new_size, value_type __x = value_type()) { if (__new_size > size()) insert(end(), __new_size - size(), __x); else if (__new_size < size()) _M_erase_at_end(this->_M_impl._M_start + __new_size); } # 733 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 size_type capacity() const { return size_type(this->_M_impl._M_end_of_storage - this->_M_impl._M_start); } bool empty() const { return begin() == end(); } # 763 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 void reserve(size_type __n); # 778 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 reference operator[](size_type __n) { return *(this->_M_impl._M_start + __n); } # 793 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 const_reference operator[](size_type __n) const { return *(this->_M_impl._M_start + __n); } protected: void _M_range_check(size_type __n) const { if (__n >= this->size()) __throw_out_of_range_fmt(("vector::_M_range_check: __n " "(which is %zu) >= this->size() " "(which is %zu)") , __n, this->size()); } public: # 821 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 reference at(size_type __n) { _M_range_check(__n); return (*this)[__n]; } # 839 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 const_reference at(size_type __n) const { _M_range_check(__n); return (*this)[__n]; } reference front() { return *begin(); } const_reference front() const { return *begin(); } reference back() { return *(end() - 1); } const_reference back() const { return *(end() - 1); } # 888 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 pointer data() { return _M_data_ptr(this->_M_impl._M_start); } const_pointer data() const { return _M_data_ptr(this->_M_impl._M_start); } # 912 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 void push_back(const value_type& __x) { if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) { _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, __x); ++this->_M_impl._M_finish; } else _M_insert_aux(end(), __x); } # 948 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 void pop_back() { --this->_M_impl._M_finish; _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); } # 997 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 iterator insert(iterator __position, const value_type& __x); # 1071 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 void insert(iterator __position, size_type __n, const value_type& __x) { _M_fill_insert(__position, __n, __x); } # 1118 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 template void insert(iterator __position, _InputIterator __first, _InputIterator __last) { typedef typename std::__is_integer<_InputIterator>::__type _Integral; _M_insert_dispatch(__position, __first, __last, _Integral()); } # 1144 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 iterator erase(iterator __position) { return _M_erase(__position); } # 1171 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 iterator # 1180 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 erase(iterator __first, iterator __last) { return _M_erase(__first, __last); } # 1193 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 void swap(vector& __x) { this->_M_impl._M_swap_data(__x._M_impl); _Alloc_traits::_S_on_swap(_M_get_Tp_allocator(), __x._M_get_Tp_allocator()); } void clear() { _M_erase_at_end(this->_M_impl._M_start); } protected: template pointer _M_allocate_and_copy(size_type __n, _ForwardIterator __first, _ForwardIterator __last) { pointer __result = this->_M_allocate(__n); try { std::__uninitialized_copy_a(__first, __last, __result, _M_get_Tp_allocator()); return __result; } catch(...) { _M_deallocate(__result, __n); throw; } } # 1245 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 template void _M_initialize_dispatch(_Integer __n, _Integer __value, __true_type) { this->_M_impl._M_start = _M_allocate(static_cast(__n)); this->_M_impl._M_end_of_storage = this->_M_impl._M_start + static_cast(__n); _M_fill_initialize(static_cast(__n), __value); } template void _M_initialize_dispatch(_InputIterator __first, _InputIterator __last, __false_type) { typedef typename std::iterator_traits<_InputIterator>:: iterator_category _IterCategory; _M_range_initialize(__first, __last, _IterCategory()); } template void _M_range_initialize(_InputIterator __first, _InputIterator __last, std::input_iterator_tag) { for (; __first != __last; ++__first) push_back(*__first); } template void _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, std::forward_iterator_tag) { const size_type __n = std::distance(__first, __last); this->_M_impl._M_start = this->_M_allocate(__n); this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; this->_M_impl._M_finish = std::__uninitialized_copy_a(__first, __last, this->_M_impl._M_start, _M_get_Tp_allocator()); } void _M_fill_initialize(size_type __n, const value_type& __value) { this->_M_impl._M_finish = std::__uninitialized_fill_n_a(this->_M_impl._M_start, __n, __value, _M_get_Tp_allocator()); } # 1323 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 template void _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) { _M_fill_assign(__n, __val); } template void _M_assign_dispatch(_InputIterator __first, _InputIterator __last, __false_type) { typedef typename std::iterator_traits<_InputIterator>:: iterator_category _IterCategory; _M_assign_aux(__first, __last, _IterCategory()); } template void _M_assign_aux(_InputIterator __first, _InputIterator __last, std::input_iterator_tag); template void _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, std::forward_iterator_tag); void _M_fill_assign(size_type __n, const value_type& __val); # 1363 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 template void _M_insert_dispatch(iterator __pos, _Integer __n, _Integer __val, __true_type) { _M_fill_insert(__pos, __n, __val); } template void _M_insert_dispatch(iterator __pos, _InputIterator __first, _InputIterator __last, __false_type) { typedef typename std::iterator_traits<_InputIterator>:: iterator_category _IterCategory; _M_range_insert(__pos, __first, __last, _IterCategory()); } template void _M_range_insert(iterator __pos, _InputIterator __first, _InputIterator __last, std::input_iterator_tag); template void _M_range_insert(iterator __pos, _ForwardIterator __first, _ForwardIterator __last, std::forward_iterator_tag); void _M_fill_insert(iterator __pos, size_type __n, const value_type& __x); # 1408 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 void _M_insert_aux(iterator __position, const value_type& __x); # 1421 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 size_type _M_check_len(size_type __n, const char* __s) const { if (max_size() - size() < __n) __throw_length_error((__s)); const size_type __len = size() + std::max(size(), __n); return (__len < size() || __len > max_size()) ? max_size() : __len; } void _M_erase_at_end(pointer __pos) { std::_Destroy(__pos, this->_M_impl._M_finish, _M_get_Tp_allocator()); this->_M_impl._M_finish = __pos; } iterator _M_erase(iterator __position); iterator _M_erase(iterator __first, iterator __last); # 1491 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 template _Ptr _M_data_ptr(_Ptr __ptr) const { return __ptr; } }; # 1509 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 template inline bool operator==(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) { return (__x.size() == __y.size() && std::equal(__x.begin(), __x.end(), __y.begin())); } # 1526 "/usr/include/c++/5.0.0/bits/stl_vector.h" 3 template inline bool operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) { return std::lexicographical_compare(__x.begin(), __x.end(), __y.begin(), __y.end()); } template inline bool operator!=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) { return !(__x == __y); } template inline bool operator>(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) { return __y < __x; } template inline bool operator<=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) { return !(__y < __x); } template inline bool operator>=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) { return !(__x < __y); } template inline void swap(vector<_Tp, _Alloc>& __x, vector<_Tp, _Alloc>& __y) { __x.swap(__y); } } # 65 "/usr/include/c++/5.0.0/vector" 2 3 # 1 "/usr/include/c++/5.0.0/bits/stl_bvector.h" 1 3 # 63 "/usr/include/c++/5.0.0/bits/stl_bvector.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { typedef unsigned long _Bit_type; enum { _S_word_bit = int(8 * sizeof(_Bit_type)) }; struct _Bit_reference { _Bit_type * _M_p; _Bit_type _M_mask; _Bit_reference(_Bit_type * __x, _Bit_type __y) : _M_p(__x), _M_mask(__y) { } _Bit_reference() : _M_p(0), _M_mask(0) { } operator bool() const { return !!(*_M_p & _M_mask); } _Bit_reference& operator=(bool __x) { if (__x) *_M_p |= _M_mask; else *_M_p &= ~_M_mask; return *this; } _Bit_reference& operator=(const _Bit_reference& __x) { return *this = bool(__x); } bool operator==(const _Bit_reference& __x) const { return bool(*this) == bool(__x); } bool operator<(const _Bit_reference& __x) const { return !bool(*this) && bool(__x); } void flip() { *_M_p ^= _M_mask; } }; # 136 "/usr/include/c++/5.0.0/bits/stl_bvector.h" 3 struct _Bit_iterator_base : public std::iterator { _Bit_type * _M_p; unsigned int _M_offset; _Bit_iterator_base(_Bit_type * __x, unsigned int __y) : _M_p(__x), _M_offset(__y) { } void _M_bump_up() { if (_M_offset++ == int(_S_word_bit) - 1) { _M_offset = 0; ++_M_p; } } void _M_bump_down() { if (_M_offset-- == 0) { _M_offset = int(_S_word_bit) - 1; --_M_p; } } void _M_incr(ptrdiff_t __i) { difference_type __n = __i + _M_offset; _M_p += __n / int(_S_word_bit); __n = __n % int(_S_word_bit); if (__n < 0) { __n += int(_S_word_bit); --_M_p; } _M_offset = static_cast(__n); } bool operator==(const _Bit_iterator_base& __i) const { return _M_p == __i._M_p && _M_offset == __i._M_offset; } bool operator<(const _Bit_iterator_base& __i) const { return _M_p < __i._M_p || (_M_p == __i._M_p && _M_offset < __i._M_offset); } bool operator!=(const _Bit_iterator_base& __i) const { return !(*this == __i); } bool operator>(const _Bit_iterator_base& __i) const { return __i < *this; } bool operator<=(const _Bit_iterator_base& __i) const { return !(__i < *this); } bool operator>=(const _Bit_iterator_base& __i) const { return !(*this < __i); } }; inline ptrdiff_t operator-(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) { return (int(_S_word_bit) * (__x._M_p - __y._M_p) + __x._M_offset - __y._M_offset); } struct _Bit_iterator : public _Bit_iterator_base { typedef _Bit_reference reference; typedef _Bit_reference* pointer; typedef _Bit_iterator iterator; _Bit_iterator() : _Bit_iterator_base(0, 0) { } _Bit_iterator(_Bit_type * __x, unsigned int __y) : _Bit_iterator_base(__x, __y) { } iterator _M_const_cast() const { return *this; } reference operator*() const { return reference(_M_p, 1UL << _M_offset); } iterator& operator++() { _M_bump_up(); return *this; } iterator operator++(int) { iterator __tmp = *this; _M_bump_up(); return __tmp; } iterator& operator--() { _M_bump_down(); return *this; } iterator operator--(int) { iterator __tmp = *this; _M_bump_down(); return __tmp; } iterator& operator+=(difference_type __i) { _M_incr(__i); return *this; } iterator& operator-=(difference_type __i) { *this += -__i; return *this; } iterator operator+(difference_type __i) const { iterator __tmp = *this; return __tmp += __i; } iterator operator-(difference_type __i) const { iterator __tmp = *this; return __tmp -= __i; } reference operator[](difference_type __i) const { return *(*this + __i); } }; inline _Bit_iterator operator+(ptrdiff_t __n, const _Bit_iterator& __x) { return __x + __n; } struct _Bit_const_iterator : public _Bit_iterator_base { typedef bool reference; typedef bool const_reference; typedef const bool* pointer; typedef _Bit_const_iterator const_iterator; _Bit_const_iterator() : _Bit_iterator_base(0, 0) { } _Bit_const_iterator(_Bit_type * __x, unsigned int __y) : _Bit_iterator_base(__x, __y) { } _Bit_const_iterator(const _Bit_iterator& __x) : _Bit_iterator_base(__x._M_p, __x._M_offset) { } _Bit_iterator _M_const_cast() const { return _Bit_iterator(_M_p, _M_offset); } const_reference operator*() const { return _Bit_reference(_M_p, 1UL << _M_offset); } const_iterator& operator++() { _M_bump_up(); return *this; } const_iterator operator++(int) { const_iterator __tmp = *this; _M_bump_up(); return __tmp; } const_iterator& operator--() { _M_bump_down(); return *this; } const_iterator operator--(int) { const_iterator __tmp = *this; _M_bump_down(); return __tmp; } const_iterator& operator+=(difference_type __i) { _M_incr(__i); return *this; } const_iterator& operator-=(difference_type __i) { *this += -__i; return *this; } const_iterator operator+(difference_type __i) const { const_iterator __tmp = *this; return __tmp += __i; } const_iterator operator-(difference_type __i) const { const_iterator __tmp = *this; return __tmp -= __i; } const_reference operator[](difference_type __i) const { return *(*this + __i); } }; inline _Bit_const_iterator operator+(ptrdiff_t __n, const _Bit_const_iterator& __x) { return __x + __n; } inline void __fill_bvector(_Bit_iterator __first, _Bit_iterator __last, bool __x) { for (; __first != __last; ++__first) *__first = __x; } inline void fill(_Bit_iterator __first, _Bit_iterator __last, const bool& __x) { if (__first._M_p != __last._M_p) { std::fill(__first._M_p + 1, __last._M_p, __x ? ~0 : 0); __fill_bvector(__first, _Bit_iterator(__first._M_p + 1, 0), __x); __fill_bvector(_Bit_iterator(__last._M_p, 0), __last, __x); } else __fill_bvector(__first, __last, __x); } template struct _Bvector_base { typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template rebind<_Bit_type>::other _Bit_alloc_type; typedef typename __gnu_cxx::__alloc_traits<_Bit_alloc_type> _Bit_alloc_traits; typedef typename _Bit_alloc_traits::pointer _Bit_pointer; struct _Bvector_impl : public _Bit_alloc_type { _Bit_iterator _M_start; _Bit_iterator _M_finish; _Bit_pointer _M_end_of_storage; _Bvector_impl() : _Bit_alloc_type(), _M_start(), _M_finish(), _M_end_of_storage() { } _Bvector_impl(const _Bit_alloc_type& __a) : _Bit_alloc_type(__a), _M_start(), _M_finish(), _M_end_of_storage() { } # 441 "/usr/include/c++/5.0.0/bits/stl_bvector.h" 3 _Bit_type* _M_end_addr() const { if (_M_end_of_storage) return std::__addressof(_M_end_of_storage[-1]) + 1; return 0; } }; public: typedef _Alloc allocator_type; _Bit_alloc_type& _M_get_Bit_allocator() { return *static_cast<_Bit_alloc_type*>(&this->_M_impl); } const _Bit_alloc_type& _M_get_Bit_allocator() const { return *static_cast(&this->_M_impl); } allocator_type get_allocator() const { return allocator_type(_M_get_Bit_allocator()); } _Bvector_base() : _M_impl() { } _Bvector_base(const allocator_type& __a) : _M_impl(__a) { } # 484 "/usr/include/c++/5.0.0/bits/stl_bvector.h" 3 ~_Bvector_base() { this->_M_deallocate(); } protected: _Bvector_impl _M_impl; _Bit_pointer _M_allocate(size_t __n) { return _Bit_alloc_traits::allocate(_M_impl, _S_nword(__n)); } void _M_deallocate() { if (_M_impl._M_start._M_p) { const size_t __n = _M_impl._M_end_addr() - _M_impl._M_start._M_p; _Bit_alloc_traits::deallocate(_M_impl, _M_impl._M_end_of_storage - __n, __n); } } static size_t _S_nword(size_t __n) { return (__n + int(_S_word_bit) - 1) / int(_S_word_bit); } }; } namespace std __attribute__ ((__visibility__ ("default"))) { # 540 "/usr/include/c++/5.0.0/bits/stl_bvector.h" 3 template class vector : protected _Bvector_base<_Alloc> { typedef _Bvector_base<_Alloc> _Base; typedef typename _Base::_Bit_pointer _Bit_pointer; typedef typename _Base::_Bit_alloc_traits _Bit_alloc_traits; public: typedef bool value_type; typedef size_t size_type; typedef ptrdiff_t difference_type; typedef _Bit_reference reference; typedef bool const_reference; typedef _Bit_reference* pointer; typedef const bool* const_pointer; typedef _Bit_iterator iterator; typedef _Bit_const_iterator const_iterator; typedef std::reverse_iterator const_reverse_iterator; typedef std::reverse_iterator reverse_iterator; typedef _Alloc allocator_type; allocator_type get_allocator() const { return _Base::get_allocator(); } protected: using _Base::_M_allocate; using _Base::_M_deallocate; using _Base::_S_nword; using _Base::_M_get_Bit_allocator; public: vector() : _Base() { } explicit vector(const allocator_type& __a) : _Base(__a) { } # 597 "/usr/include/c++/5.0.0/bits/stl_bvector.h" 3 explicit vector(size_type __n, const bool& __value = bool(), const allocator_type& __a = allocator_type()) : _Base(__a) { _M_initialize(__n); std::fill(this->_M_impl._M_start._M_p, this->_M_impl._M_end_addr(), __value ? ~0 : 0); } vector(const vector& __x) : _Base(_Bit_alloc_traits::_S_select_on_copy(__x._M_get_Bit_allocator())) { _M_initialize(__x.size()); _M_copy_aligned(__x.begin(), __x.end(), this->_M_impl._M_start); } # 664 "/usr/include/c++/5.0.0/bits/stl_bvector.h" 3 template vector(_InputIterator __first, _InputIterator __last, const allocator_type& __a = allocator_type()) : _Base(__a) { typedef typename std::__is_integer<_InputIterator>::__type _Integral; _M_initialize_dispatch(__first, __last, _Integral()); } ~vector() { } vector& operator=(const vector& __x) { if (&__x == this) return *this; # 696 "/usr/include/c++/5.0.0/bits/stl_bvector.h" 3 if (__x.size() > capacity()) { this->_M_deallocate(); _M_initialize(__x.size()); } this->_M_impl._M_finish = _M_copy_aligned(__x.begin(), __x.end(), begin()); return *this; } # 749 "/usr/include/c++/5.0.0/bits/stl_bvector.h" 3 void assign(size_type __n, const bool& __x) { _M_fill_assign(__n, __x); } # 760 "/usr/include/c++/5.0.0/bits/stl_bvector.h" 3 template void assign(_InputIterator __first, _InputIterator __last) { typedef typename std::__is_integer<_InputIterator>::__type _Integral; _M_assign_dispatch(__first, __last, _Integral()); } # 775 "/usr/include/c++/5.0.0/bits/stl_bvector.h" 3 iterator begin() { return this->_M_impl._M_start; } const_iterator begin() const { return this->_M_impl._M_start; } iterator end() { return this->_M_impl._M_finish; } const_iterator end() const { return this->_M_impl._M_finish; } reverse_iterator rbegin() { return reverse_iterator(end()); } const_reverse_iterator rbegin() const { return const_reverse_iterator(end()); } reverse_iterator rend() { return reverse_iterator(begin()); } const_reverse_iterator rend() const { return const_reverse_iterator(begin()); } # 825 "/usr/include/c++/5.0.0/bits/stl_bvector.h" 3 size_type size() const { return size_type(end() - begin()); } size_type max_size() const { const size_type __isize = __gnu_cxx::__numeric_traits::__max - int(_S_word_bit) + 1; const size_type __asize = _Bit_alloc_traits::max_size(_M_get_Bit_allocator()); return (__asize <= __isize / int(_S_word_bit) ? __asize * int(_S_word_bit) : __isize); } size_type capacity() const { return size_type(const_iterator(this->_M_impl._M_end_addr(), 0) - begin()); } bool empty() const { return begin() == end(); } reference operator[](size_type __n) { return *iterator(this->_M_impl._M_start._M_p + __n / int(_S_word_bit), __n % int(_S_word_bit)); } const_reference operator[](size_type __n) const { return *const_iterator(this->_M_impl._M_start._M_p + __n / int(_S_word_bit), __n % int(_S_word_bit)); } protected: void _M_range_check(size_type __n) const { if (__n >= this->size()) __throw_out_of_range_fmt(("vector::_M_range_check: __n " "(which is %zu) >= this->size() " "(which is %zu)") , __n, this->size()); } public: reference at(size_type __n) { _M_range_check(__n); return (*this)[__n]; } const_reference at(size_type __n) const { _M_range_check(__n); return (*this)[__n]; } void reserve(size_type __n) { if (__n > max_size()) __throw_length_error(("vector::reserve")); if (capacity() < __n) _M_reallocate(__n); } reference front() { return *begin(); } const_reference front() const { return *begin(); } reference back() { return *(end() - 1); } const_reference back() const { return *(end() - 1); } void data() { } void push_back(bool __x) { if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr()) *this->_M_impl._M_finish++ = __x; else _M_insert_aux(end(), __x); } void swap(vector& __x) { std::swap(this->_M_impl._M_start, __x._M_impl._M_start); std::swap(this->_M_impl._M_finish, __x._M_impl._M_finish); std::swap(this->_M_impl._M_end_of_storage, __x._M_impl._M_end_of_storage); _Bit_alloc_traits::_S_on_swap(_M_get_Bit_allocator(), __x._M_get_Bit_allocator()); } static void swap(reference __x, reference __y) { bool __tmp = __x; __x = __y; __y = __tmp; } iterator insert(iterator __position, const bool& __x = bool()) { const difference_type __n = __position - begin(); if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr() && __position == end()) *this->_M_impl._M_finish++ = __x; else _M_insert_aux(__position._M_const_cast(), __x); return begin() + __n; } # 978 "/usr/include/c++/5.0.0/bits/stl_bvector.h" 3 template void insert(iterator __position, _InputIterator __first, _InputIterator __last) { typedef typename std::__is_integer<_InputIterator>::__type _Integral; _M_insert_dispatch(__position, __first, __last, _Integral()); } # 997 "/usr/include/c++/5.0.0/bits/stl_bvector.h" 3 void insert(iterator __position, size_type __n, const bool& __x) { _M_fill_insert(__position, __n, __x); } # 1008 "/usr/include/c++/5.0.0/bits/stl_bvector.h" 3 void pop_back() { --this->_M_impl._M_finish; } iterator erase(iterator __position) { return _M_erase(__position._M_const_cast()); } iterator erase(iterator __first, iterator __last) { return _M_erase(__first._M_const_cast(), __last._M_const_cast()); } void resize(size_type __new_size, bool __x = bool()) { if (__new_size < size()) _M_erase_at_end(begin() + difference_type(__new_size)); else insert(end(), __new_size - size(), __x); } void flip() { _Bit_type * const __end = this->_M_impl._M_end_addr(); for (_Bit_type * __p = this->_M_impl._M_start._M_p; __p != __end; ++__p) *__p = ~*__p; } void clear() { _M_erase_at_end(begin()); } # 1067 "/usr/include/c++/5.0.0/bits/stl_bvector.h" 3 protected: iterator _M_copy_aligned(const_iterator __first, const_iterator __last, iterator __result) { _Bit_type* __q = std::copy(__first._M_p, __last._M_p, __result._M_p); return std::copy(const_iterator(__last._M_p, 0), __last, iterator(__q, 0)); } void _M_initialize(size_type __n) { _Bit_pointer __q = this->_M_allocate(__n); this->_M_impl._M_end_of_storage = __q + _S_nword(__n); this->_M_impl._M_start = iterator(std::__addressof(*__q), 0); this->_M_impl._M_finish = this->_M_impl._M_start + difference_type(__n); } void _M_reallocate(size_type __n); # 1099 "/usr/include/c++/5.0.0/bits/stl_bvector.h" 3 template void _M_initialize_dispatch(_Integer __n, _Integer __x, __true_type) { _M_initialize(static_cast(__n)); std::fill(this->_M_impl._M_start._M_p, this->_M_impl._M_end_addr(), __x ? ~0 : 0); } template void _M_initialize_dispatch(_InputIterator __first, _InputIterator __last, __false_type) { _M_initialize_range(__first, __last, std::__iterator_category(__first)); } template void _M_initialize_range(_InputIterator __first, _InputIterator __last, std::input_iterator_tag) { for (; __first != __last; ++__first) push_back(*__first); } template void _M_initialize_range(_ForwardIterator __first, _ForwardIterator __last, std::forward_iterator_tag) { const size_type __n = std::distance(__first, __last); _M_initialize(__n); std::copy(__first, __last, this->_M_impl._M_start); } template void _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) { _M_fill_assign(__n, __val); } template void _M_assign_dispatch(_InputIterator __first, _InputIterator __last, __false_type) { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } void _M_fill_assign(size_t __n, bool __x) { if (__n > size()) { std::fill(this->_M_impl._M_start._M_p, this->_M_impl._M_end_addr(), __x ? ~0 : 0); insert(end(), __n - size(), __x); } else { _M_erase_at_end(begin() + __n); std::fill(this->_M_impl._M_start._M_p, this->_M_impl._M_end_addr(), __x ? ~0 : 0); } } template void _M_assign_aux(_InputIterator __first, _InputIterator __last, std::input_iterator_tag) { iterator __cur = begin(); for (; __first != __last && __cur != end(); ++__cur, ++__first) *__cur = *__first; if (__first == __last) _M_erase_at_end(__cur); else insert(end(), __first, __last); } template void _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, std::forward_iterator_tag) { const size_type __len = std::distance(__first, __last); if (__len < size()) _M_erase_at_end(std::copy(__first, __last, begin())); else { _ForwardIterator __mid = __first; std::advance(__mid, size()); std::copy(__first, __mid, begin()); insert(end(), __mid, __last); } } template void _M_insert_dispatch(iterator __pos, _Integer __n, _Integer __x, __true_type) { _M_fill_insert(__pos, __n, __x); } template void _M_insert_dispatch(iterator __pos, _InputIterator __first, _InputIterator __last, __false_type) { _M_insert_range(__pos, __first, __last, std::__iterator_category(__first)); } void _M_fill_insert(iterator __position, size_type __n, bool __x); template void _M_insert_range(iterator __pos, _InputIterator __first, _InputIterator __last, std::input_iterator_tag) { for (; __first != __last; ++__first) { __pos = insert(__pos, *__first); ++__pos; } } template void _M_insert_range(iterator __position, _ForwardIterator __first, _ForwardIterator __last, std::forward_iterator_tag); void _M_insert_aux(iterator __position, bool __x); size_type _M_check_len(size_type __n, const char* __s) const { if (max_size() - size() < __n) __throw_length_error((__s)); const size_type __len = size() + std::max(size(), __n); return (__len < size() || __len > max_size()) ? max_size() : __len; } void _M_erase_at_end(iterator __pos) { this->_M_impl._M_finish = __pos; } iterator _M_erase(iterator __pos); iterator _M_erase(iterator __first, iterator __last); }; } # 66 "/usr/include/c++/5.0.0/vector" 2 3 # 1 "/usr/include/c++/5.0.0/bits/vector.tcc" 1 3 # 59 "/usr/include/c++/5.0.0/bits/vector.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template void vector<_Tp, _Alloc>:: reserve(size_type __n) { if (__n > this->max_size()) __throw_length_error(("vector::reserve")); if (this->capacity() < __n) { const size_type __old_size = size(); pointer __tmp = _M_allocate_and_copy(__n, (this->_M_impl._M_start), (this->_M_impl._M_finish)); std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, _M_get_Tp_allocator()); _M_deallocate(this->_M_impl._M_start, this->_M_impl._M_end_of_storage - this->_M_impl._M_start); this->_M_impl._M_start = __tmp; this->_M_impl._M_finish = __tmp + __old_size; this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; } } # 105 "/usr/include/c++/5.0.0/bits/vector.tcc" 3 template typename vector<_Tp, _Alloc>::iterator vector<_Tp, _Alloc>:: insert(iterator __position, const value_type& __x) { const size_type __n = __position - begin(); if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage && __position == end()) { _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, __x); ++this->_M_impl._M_finish; } else { # 133 "/usr/include/c++/5.0.0/bits/vector.tcc" 3 _M_insert_aux(__position, __x); } return iterator(this->_M_impl._M_start + __n); } template typename vector<_Tp, _Alloc>::iterator vector<_Tp, _Alloc>:: _M_erase(iterator __position) { if (__position + 1 != end()) std::copy(__position + 1, end(), __position); --this->_M_impl._M_finish; _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); return __position; } template typename vector<_Tp, _Alloc>::iterator vector<_Tp, _Alloc>:: _M_erase(iterator __first, iterator __last) { if (__first != __last) { if (__last != end()) std::copy(__last, end(), __first); _M_erase_at_end(__first.base() + (end() - __last)); } return __first; } template vector<_Tp, _Alloc>& vector<_Tp, _Alloc>:: operator=(const vector<_Tp, _Alloc>& __x) { if (&__x != this) { # 191 "/usr/include/c++/5.0.0/bits/vector.tcc" 3 const size_type __xlen = __x.size(); if (__xlen > capacity()) { pointer __tmp = _M_allocate_and_copy(__xlen, __x.begin(), __x.end()); std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, _M_get_Tp_allocator()); _M_deallocate(this->_M_impl._M_start, this->_M_impl._M_end_of_storage - this->_M_impl._M_start); this->_M_impl._M_start = __tmp; this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __xlen; } else if (size() >= __xlen) { std::_Destroy(std::copy(__x.begin(), __x.end(), begin()), end(), _M_get_Tp_allocator()); } else { std::copy(__x._M_impl._M_start, __x._M_impl._M_start + size(), this->_M_impl._M_start); std::__uninitialized_copy_a(__x._M_impl._M_start + size(), __x._M_impl._M_finish, this->_M_impl._M_finish, _M_get_Tp_allocator()); } this->_M_impl._M_finish = this->_M_impl._M_start + __xlen; } return *this; } template void vector<_Tp, _Alloc>:: _M_fill_assign(size_t __n, const value_type& __val) { if (__n > capacity()) { vector __tmp(__n, __val, _M_get_Tp_allocator()); __tmp._M_impl._M_swap_data(this->_M_impl); } else if (__n > size()) { std::fill(begin(), end(), __val); this->_M_impl._M_finish = std::__uninitialized_fill_n_a(this->_M_impl._M_finish, __n - size(), __val, _M_get_Tp_allocator()); } else _M_erase_at_end(std::fill_n(this->_M_impl._M_start, __n, __val)); } template template void vector<_Tp, _Alloc>:: _M_assign_aux(_InputIterator __first, _InputIterator __last, std::input_iterator_tag) { pointer __cur(this->_M_impl._M_start); for (; __first != __last && __cur != this->_M_impl._M_finish; ++__cur, ++__first) *__cur = *__first; if (__first == __last) _M_erase_at_end(__cur); else insert(end(), __first, __last); } template template void vector<_Tp, _Alloc>:: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, std::forward_iterator_tag) { const size_type __len = std::distance(__first, __last); if (__len > capacity()) { pointer __tmp(_M_allocate_and_copy(__len, __first, __last)); std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, _M_get_Tp_allocator()); _M_deallocate(this->_M_impl._M_start, this->_M_impl._M_end_of_storage - this->_M_impl._M_start); this->_M_impl._M_start = __tmp; this->_M_impl._M_finish = this->_M_impl._M_start + __len; this->_M_impl._M_end_of_storage = this->_M_impl._M_finish; } else if (size() >= __len) _M_erase_at_end(std::copy(__first, __last, this->_M_impl._M_start)); else { _ForwardIterator __mid = __first; std::advance(__mid, size()); std::copy(__first, __mid, this->_M_impl._M_start); this->_M_impl._M_finish = std::__uninitialized_copy_a(__mid, __last, this->_M_impl._M_finish, _M_get_Tp_allocator()); } } # 324 "/usr/include/c++/5.0.0/bits/vector.tcc" 3 template void vector<_Tp, _Alloc>:: _M_insert_aux(iterator __position, const _Tp& __x) { if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) { _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, (*(this->_M_impl._M_finish - 1)) ); ++this->_M_impl._M_finish; _Tp __x_copy = __x; std::copy_backward(__position.base(), this->_M_impl._M_finish - 2, this->_M_impl._M_finish - 1) ; *__position = __x_copy; } else { const size_type __len = _M_check_len(size_type(1), "vector::_M_insert_aux"); const size_type __elems_before = __position - begin(); pointer __new_start(this->_M_allocate(__len)); pointer __new_finish(__new_start); try { _Alloc_traits::construct(this->_M_impl, __new_start + __elems_before, __x); __new_finish = pointer(); __new_finish = std::__uninitialized_move_if_noexcept_a (this->_M_impl._M_start, __position.base(), __new_start, _M_get_Tp_allocator()); ++__new_finish; __new_finish = std::__uninitialized_move_if_noexcept_a (__position.base(), this->_M_impl._M_finish, __new_finish, _M_get_Tp_allocator()); } catch(...) { if (!__new_finish) _Alloc_traits::destroy(this->_M_impl, __new_start + __elems_before); else std::_Destroy(__new_start, __new_finish, _M_get_Tp_allocator()); _M_deallocate(__new_start, __len); throw; } std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, _M_get_Tp_allocator()); _M_deallocate(this->_M_impl._M_start, this->_M_impl._M_end_of_storage - this->_M_impl._M_start); this->_M_impl._M_start = __new_start; this->_M_impl._M_finish = __new_finish; this->_M_impl._M_end_of_storage = __new_start + __len; } } # 447 "/usr/include/c++/5.0.0/bits/vector.tcc" 3 template void vector<_Tp, _Alloc>:: _M_fill_insert(iterator __position, size_type __n, const value_type& __x) { if (__n != 0) { if (size_type(this->_M_impl._M_end_of_storage - this->_M_impl._M_finish) >= __n) { value_type __x_copy = __x; const size_type __elems_after = end() - __position; pointer __old_finish(this->_M_impl._M_finish); if (__elems_after > __n) { std::__uninitialized_move_a(this->_M_impl._M_finish - __n, this->_M_impl._M_finish, this->_M_impl._M_finish, _M_get_Tp_allocator()); this->_M_impl._M_finish += __n; std::copy_backward(__position.base(), __old_finish - __n, __old_finish) ; std::fill(__position.base(), __position.base() + __n, __x_copy); } else { this->_M_impl._M_finish = std::__uninitialized_fill_n_a(this->_M_impl._M_finish, __n - __elems_after, __x_copy, _M_get_Tp_allocator()); std::__uninitialized_move_a(__position.base(), __old_finish, this->_M_impl._M_finish, _M_get_Tp_allocator()); this->_M_impl._M_finish += __elems_after; std::fill(__position.base(), __old_finish, __x_copy); } } else { const size_type __len = _M_check_len(__n, "vector::_M_fill_insert"); const size_type __elems_before = __position - begin(); pointer __new_start(this->_M_allocate(__len)); pointer __new_finish(__new_start); try { std::__uninitialized_fill_n_a(__new_start + __elems_before, __n, __x, _M_get_Tp_allocator()); __new_finish = pointer(); __new_finish = std::__uninitialized_move_if_noexcept_a (this->_M_impl._M_start, __position.base(), __new_start, _M_get_Tp_allocator()); __new_finish += __n; __new_finish = std::__uninitialized_move_if_noexcept_a (__position.base(), this->_M_impl._M_finish, __new_finish, _M_get_Tp_allocator()); } catch(...) { if (!__new_finish) std::_Destroy(__new_start + __elems_before, __new_start + __elems_before + __n, _M_get_Tp_allocator()); else std::_Destroy(__new_start, __new_finish, _M_get_Tp_allocator()); _M_deallocate(__new_start, __len); throw; } std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, _M_get_Tp_allocator()); _M_deallocate(this->_M_impl._M_start, this->_M_impl._M_end_of_storage - this->_M_impl._M_start); this->_M_impl._M_start = __new_start; this->_M_impl._M_finish = __new_finish; this->_M_impl._M_end_of_storage = __new_start + __len; } } } # 599 "/usr/include/c++/5.0.0/bits/vector.tcc" 3 template template void vector<_Tp, _Alloc>:: _M_range_insert(iterator __pos, _InputIterator __first, _InputIterator __last, std::input_iterator_tag) { for (; __first != __last; ++__first) { __pos = insert(__pos, *__first); ++__pos; } } template template void vector<_Tp, _Alloc>:: _M_range_insert(iterator __position, _ForwardIterator __first, _ForwardIterator __last, std::forward_iterator_tag) { if (__first != __last) { const size_type __n = std::distance(__first, __last); if (size_type(this->_M_impl._M_end_of_storage - this->_M_impl._M_finish) >= __n) { const size_type __elems_after = end() - __position; pointer __old_finish(this->_M_impl._M_finish); if (__elems_after > __n) { std::__uninitialized_move_a(this->_M_impl._M_finish - __n, this->_M_impl._M_finish, this->_M_impl._M_finish, _M_get_Tp_allocator()); this->_M_impl._M_finish += __n; std::copy_backward(__position.base(), __old_finish - __n, __old_finish) ; std::copy(__first, __last, __position); } else { _ForwardIterator __mid = __first; std::advance(__mid, __elems_after); std::__uninitialized_copy_a(__mid, __last, this->_M_impl._M_finish, _M_get_Tp_allocator()); this->_M_impl._M_finish += __n - __elems_after; std::__uninitialized_move_a(__position.base(), __old_finish, this->_M_impl._M_finish, _M_get_Tp_allocator()); this->_M_impl._M_finish += __elems_after; std::copy(__first, __mid, __position); } } else { const size_type __len = _M_check_len(__n, "vector::_M_range_insert"); pointer __new_start(this->_M_allocate(__len)); pointer __new_finish(__new_start); try { __new_finish = std::__uninitialized_move_if_noexcept_a (this->_M_impl._M_start, __position.base(), __new_start, _M_get_Tp_allocator()); __new_finish = std::__uninitialized_copy_a(__first, __last, __new_finish, _M_get_Tp_allocator()); __new_finish = std::__uninitialized_move_if_noexcept_a (__position.base(), this->_M_impl._M_finish, __new_finish, _M_get_Tp_allocator()); } catch(...) { std::_Destroy(__new_start, __new_finish, _M_get_Tp_allocator()); _M_deallocate(__new_start, __len); throw; } std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, _M_get_Tp_allocator()); _M_deallocate(this->_M_impl._M_start, this->_M_impl._M_end_of_storage - this->_M_impl._M_start); this->_M_impl._M_start = __new_start; this->_M_impl._M_finish = __new_finish; this->_M_impl._M_end_of_storage = __new_start + __len; } } } template void vector:: _M_reallocate(size_type __n) { _Bit_pointer __q = this->_M_allocate(__n); iterator __start(std::__addressof(*__q), 0); this->_M_impl._M_finish = _M_copy_aligned(begin(), end(), __start); this->_M_deallocate(); this->_M_impl._M_start = __start; this->_M_impl._M_end_of_storage = __q + _S_nword(__n); } template void vector:: _M_fill_insert(iterator __position, size_type __n, bool __x) { if (__n == 0) return; if (capacity() - size() >= __n) { std::copy_backward(__position, end(), this->_M_impl._M_finish + difference_type(__n)); std::fill(__position, __position + difference_type(__n), __x); this->_M_impl._M_finish += difference_type(__n); } else { const size_type __len = _M_check_len(__n, "vector::_M_fill_insert"); _Bit_pointer __q = this->_M_allocate(__len); iterator __start(std::__addressof(*__q), 0); iterator __i = _M_copy_aligned(begin(), __position, __start); std::fill(__i, __i + difference_type(__n), __x); this->_M_impl._M_finish = std::copy(__position, end(), __i + difference_type(__n)); this->_M_deallocate(); this->_M_impl._M_end_of_storage = __q + _S_nword(__len); this->_M_impl._M_start = __start; } } template template void vector:: _M_insert_range(iterator __position, _ForwardIterator __first, _ForwardIterator __last, std::forward_iterator_tag) { if (__first != __last) { size_type __n = std::distance(__first, __last); if (capacity() - size() >= __n) { std::copy_backward(__position, end(), this->_M_impl._M_finish + difference_type(__n)); std::copy(__first, __last, __position); this->_M_impl._M_finish += difference_type(__n); } else { const size_type __len = _M_check_len(__n, "vector::_M_insert_range"); _Bit_pointer __q = this->_M_allocate(__len); iterator __start(std::__addressof(*__q), 0); iterator __i = _M_copy_aligned(begin(), __position, __start); __i = std::copy(__first, __last, __i); this->_M_impl._M_finish = std::copy(__position, end(), __i); this->_M_deallocate(); this->_M_impl._M_end_of_storage = __q + _S_nword(__len); this->_M_impl._M_start = __start; } } } template void vector:: _M_insert_aux(iterator __position, bool __x) { if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr()) { std::copy_backward(__position, this->_M_impl._M_finish, this->_M_impl._M_finish + 1); *__position = __x; ++this->_M_impl._M_finish; } else { const size_type __len = _M_check_len(size_type(1), "vector::_M_insert_aux"); _Bit_pointer __q = this->_M_allocate(__len); iterator __start(std::__addressof(*__q), 0); iterator __i = _M_copy_aligned(begin(), __position, __start); *__i++ = __x; this->_M_impl._M_finish = std::copy(__position, end(), __i); this->_M_deallocate(); this->_M_impl._M_end_of_storage = __q + _S_nword(__len); this->_M_impl._M_start = __start; } } template typename vector::iterator vector:: _M_erase(iterator __position) { if (__position + 1 != end()) std::copy(__position + 1, end(), __position); --this->_M_impl._M_finish; return __position; } template typename vector::iterator vector:: _M_erase(iterator __first, iterator __last) { if (__first != __last) _M_erase_at_end(std::copy(__last, end(), __first)); return __first; } # 840 "/usr/include/c++/5.0.0/bits/vector.tcc" 3 } # 70 "/usr/include/c++/5.0.0/vector" 2 3 # 18 "/usr/include/boost/format.hpp" 2 3 4 # 27 "/usr/include/boost/format.hpp" 3 4 # 1 "/usr/include/boost/format/detail/compat_workarounds.hpp" 1 3 4 # 33 "/usr/include/boost/format/detail/compat_workarounds.hpp" 3 4 namespace boost { namespace io { template class CompatTraits; template class CompatAlloc; } } # 1 "/usr/include/boost/format/detail/config_macros.hpp" 1 3 4 # 33 "/usr/include/boost/format/detail/config_macros.hpp" 3 4 # 1 "/usr/include/boost/format/detail/workarounds_gcc-2_95.hpp" 1 3 4 # 34 "/usr/include/boost/format/detail/config_macros.hpp" 2 3 4 # 1 "/usr/include/boost/format/detail/workarounds_stlport.hpp" 1 3 4 # 35 "/usr/include/boost/format/detail/config_macros.hpp" 2 3 4 # 84 "/usr/include/boost/format/detail/config_macros.hpp" 3 4 namespace boost { namespace io { namespace detail { typedef ::std:: locale locale_t; } } } # 51 "/usr/include/boost/format/detail/compat_workarounds.hpp" 2 3 4 # 65 "/usr/include/boost/format/detail/compat_workarounds.hpp" 3 4 namespace boost { namespace io { template class CompatTraits { public: typedef Tr compatible_type; }; template class CompatAlloc { public: typedef Alloc compatible_type; }; } } # 28 "/usr/include/boost/format.hpp" 2 3 4 # 1 "/usr/include/boost/format/format_fwd.hpp" 1 3 4 # 21 "/usr/include/boost/format/format_fwd.hpp" 3 4 namespace boost { template , class Alloc = std::allocator > class basic_format; typedef basic_format format; typedef basic_format wformat; namespace io { enum format_error_bits { bad_format_string_bit = 1, too_few_args_bit = 2, too_many_args_bit = 4, out_of_range_bit = 8, all_error_bits = 255, no_error_bits=0 }; } } # 35 "/usr/include/boost/format.hpp" 2 3 4 # 1 "/usr/include/boost/format/internals_fwd.hpp" 1 3 4 # 20 "/usr/include/boost/format/internals_fwd.hpp" 3 4 namespace boost { namespace io { namespace detail { template struct stream_format_state; template struct format_item; template basic_format& modify_item_body (basic_format& self, int itemN, T manipulator); template basic_format& bind_arg_body (basic_format& self, int argN, const T& val); template void apply_manip_body (stream_format_state& self, T manipulator); template void distribute (basic_format& self, T x); template basic_format& feed (basic_format& self, T x); template basic_format& feed_impl (basic_format& self, T x); } } } # 36 "/usr/include/boost/format.hpp" 2 3 4 # 1 "/usr/include/boost/format/internals.hpp" 1 3 4 # 19 "/usr/include/boost/format/internals.hpp" 3 4 # 1 "/usr/include/boost/assert.hpp" 1 3 4 # 54 "/usr/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 64 "/usr/include/assert.h" 3 4 extern "C" { extern void __assert_fail (const char *__assertion, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert_perror_fail (int __errnum, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert (const char *__assertion, const char *__file, int __line) throw () __attribute__ ((__noreturn__)); } # 55 "/usr/include/boost/assert.hpp" 2 3 4 # 20 "/usr/include/boost/format/internals.hpp" 2 3 4 # 1 "/usr/include/boost/format/alt_sstream.hpp" 1 3 4 # 22 "/usr/include/boost/format/alt_sstream.hpp" 3 4 # 1 "/usr/include/boost/assert.hpp" 1 3 4 # 54 "/usr/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 64 "/usr/include/assert.h" 3 4 extern "C" { extern void __assert_fail (const char *__assertion, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert_perror_fail (int __errnum, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert (const char *__assertion, const char *__file, int __line) throw () __attribute__ ((__noreturn__)); } # 55 "/usr/include/boost/assert.hpp" 2 3 4 # 23 "/usr/include/boost/format/alt_sstream.hpp" 2 3 4 namespace boost { namespace io { template, class Alloc=::std::allocator > class basic_altstringbuf; template, class Alloc=::std::allocator > class basic_oaltstringstream; template class basic_altstringbuf : public ::std::basic_streambuf { typedef ::std::basic_streambuf streambuf_t; typedef typename CompatAlloc::compatible_type compat_allocator_type; typedef typename CompatTraits::compatible_type compat_traits_type; public: typedef Ch char_type; typedef Tr traits_type; typedef typename compat_traits_type::int_type int_type; typedef typename compat_traits_type::pos_type pos_type; typedef typename compat_traits_type::off_type off_type; typedef Alloc allocator_type; typedef ::std::basic_string string_type; typedef typename string_type::size_type size_type; typedef ::std::streamsize streamsize; explicit basic_altstringbuf(std::ios_base::openmode mode = std::ios_base::in | std::ios_base::out) : putend_(__null), is_allocated_(false), mode_(mode) {} explicit basic_altstringbuf(const string_type& s, ::std::ios_base::openmode mode = ::std::ios_base::in | ::std::ios_base::out) : putend_(__null), is_allocated_(false), mode_(mode) { dealloc(); str(s); } virtual ~basic_altstringbuf() { dealloc(); } using streambuf_t::pbase; using streambuf_t::pptr; using streambuf_t::epptr; using streambuf_t::eback; using streambuf_t::gptr; using streambuf_t::egptr; void clear_buffer(); void str(const string_type& s); Ch * begin() const; size_type size() const; size_type cur_size() const; Ch * pend() const { return ((putend_ < pptr()) ? pptr() : putend_); } size_type pcount() const { return static_cast( pptr() - pbase()) ;} string_type str() const { return string_type(begin(), size()); } string_type cur_str() const { return string_type(begin(), cur_size()); } protected: explicit basic_altstringbuf (basic_altstringbuf * s, ::std::ios_base::openmode mode = ::std::ios_base::in | ::std::ios_base::out) : putend_(__null), is_allocated_(false), mode_(mode) { dealloc(); str(s); } virtual pos_type seekoff(off_type off, ::std::ios_base::seekdir way, ::std::ios_base::openmode which = ::std::ios_base::in | ::std::ios_base::out); virtual pos_type seekpos (pos_type pos, ::std::ios_base::openmode which = ::std::ios_base::in | ::std::ios_base::out); virtual int_type underflow(); virtual int_type pbackfail(int_type meta = compat_traits_type::eof()); virtual int_type overflow(int_type meta = compat_traits_type::eof()); void dealloc(); private: enum { alloc_min = 256}; Ch *putend_; bool is_allocated_; ::std::ios_base::openmode mode_; compat_allocator_type alloc_; }; template class basic_oaltstringstream : private base_from_member< shared_ptr< basic_altstringbuf< Ch, Tr, Alloc> > >, public ::std::basic_ostream { class No_Op { public: template const T & operator()(const T & arg) { return arg; } }; typedef ::std::basic_ostream stream_t; typedef boost::base_from_member > > pbase_type; typedef ::std::basic_string string_type; typedef typename string_type::size_type size_type; typedef basic_altstringbuf stringbuf_t; public: typedef Alloc allocator_type; basic_oaltstringstream() : pbase_type(new stringbuf_t), stream_t(rdbuf()) { } basic_oaltstringstream(::boost::shared_ptr buf) : pbase_type(buf), stream_t(rdbuf()) { } basic_oaltstringstream(stringbuf_t * buf) : pbase_type(buf, No_Op() ), stream_t(rdbuf()) { } stringbuf_t * rdbuf() const { return pbase_type::member.get(); } void clear_buffer() { rdbuf()->clear_buffer(); } Ch * begin() const { return rdbuf()->begin(); } size_type size() const { return rdbuf()->size(); } size_type cur_size() const { return rdbuf()->cur_size(); } string_type str() const { return rdbuf()->str(); } string_type cur_str() const { return rdbuf()->cur_str(); } void str(const string_type& s) { rdbuf()->str(s); } }; } } # 1 "/usr/include/boost/format/alt_sstream_impl.hpp" 1 3 4 # 16 "/usr/include/boost/format/alt_sstream_impl.hpp" 3 4 namespace boost { namespace io { template void basic_altstringbuf:: clear_buffer () { const Ch * p = pptr(); const Ch * b = pbase(); if(p != __null && p != b) { seekpos(0, ::std::ios_base::out); } p = gptr(); b = eback(); if(p != __null && p != b) { seekpos(0, ::std::ios_base::in); } } template void basic_altstringbuf:: str (const string_type& s) { size_type sz=s.size(); if(sz != 0 && mode_ & (::std::ios_base::in | ::std::ios_base::out) ) { Ch *new_ptr = alloc_.allocate(sz, is_allocated_? eback() : 0); dealloc(); sz = s.copy(new_ptr, sz); putend_ = new_ptr + sz; if(mode_ & ::std::ios_base::in) streambuf_t::setg(new_ptr, new_ptr, new_ptr + sz); if(mode_ & ::std::ios_base::out) { streambuf_t::setp(new_ptr, new_ptr + sz); if(mode_ & (::std::ios_base::app | ::std::ios_base::ate)) streambuf_t::pbump(static_cast(sz)); if(gptr() == __null) streambuf_t::setg(new_ptr, __null, new_ptr); } is_allocated_ = true; } else dealloc(); } template Ch* basic_altstringbuf:: begin () const { if(mode_ & ::std::ios_base::out && pptr() != __null) return pbase(); else if(mode_ & ::std::ios_base::in && gptr() != __null) return eback(); return __null; } template typename std::basic_string::size_type basic_altstringbuf:: size () const { if(mode_ & ::std::ios_base::out && pptr()) return static_cast(pend() - pbase()); else if(mode_ & ::std::ios_base::in && gptr()) return static_cast(egptr() - eback()); else return 0; } template typename std::basic_string::size_type basic_altstringbuf:: cur_size () const { if(mode_ & ::std::ios_base::out && pptr()) return static_cast( pptr() - pbase()); else if(mode_ & ::std::ios_base::in && gptr()) return static_cast( gptr() - eback()); else return 0; } template typename basic_altstringbuf::pos_type basic_altstringbuf:: seekoff (off_type off, ::std::ios_base::seekdir way, ::std::ios_base::openmode which) { if(pptr() != __null && putend_ < pptr()) putend_ = pptr(); if(which & ::std::ios_base::in && gptr() != __null) { if(way == ::std::ios_base::end) off += static_cast(putend_ - gptr()); else if(way == ::std::ios_base::beg) off += static_cast(eback() - gptr()); else if(way != ::std::ios_base::cur || (which & ::std::ios_base::out) ) return pos_type(off_type(-1)); if(eback() <= off+gptr() && off+gptr() <= putend_ ) { streambuf_t::gbump(static_cast(off)); if(which & ::std::ios_base::out && pptr() != __null) streambuf_t::pbump(static_cast(gptr()-pptr())); } else off = off_type(-1); } else if(which & ::std::ios_base::out && pptr() != __null) { if(way == ::std::ios_base::end) off += static_cast(putend_ - pptr()); else if(way == ::std::ios_base::beg) off += static_cast(pbase() - pptr()); else if(way != ::std::ios_base::beg) return pos_type(off_type(-1)); if(pbase() <= off+pptr() && off+pptr() <= putend_) streambuf_t::pbump(static_cast(off)); else off = off_type(-1); } else off = off_type(-1); return (pos_type(off)); } template typename basic_altstringbuf::pos_type basic_altstringbuf:: seekpos (pos_type pos, ::std::ios_base::openmode which) { off_type off = off_type(pos); if(pptr() != __null && putend_ < pptr()) putend_ = pptr(); if(off != off_type(-1)) { if(which & ::std::ios_base::in && gptr() != __null) { if(0 <= off && off <= putend_ - eback()) { streambuf_t::gbump(static_cast(eback() - gptr() + off)); if(which & ::std::ios_base::out && pptr() != __null) { streambuf_t::pbump(static_cast(gptr()-pptr())); } } else off = off_type(-1); } else if(which & ::std::ios_base::out && pptr() != __null) { if(0 <= off && off <= putend_ - eback()) streambuf_t::pbump(static_cast(eback() - pptr() + off)); else off = off_type(-1); } else off = off_type(-1); return (pos_type(off)); } else { ((0) ? static_cast (0) : __assert_fail ("0", "/usr/include/boost/format/alt_sstream_impl.hpp", 176, __PRETTY_FUNCTION__)); return pos_type(off_type(-1)); } } template typename basic_altstringbuf::int_type basic_altstringbuf:: underflow () { if(gptr() == __null) return (compat_traits_type::eof()); else if(gptr() < egptr()) return (compat_traits_type::to_int_type(*gptr())); else if(mode_ & ::std::ios_base::in && pptr() != __null && (gptr() < pptr() || gptr() < putend_) ) { if(putend_ < pptr()) putend_ = pptr(); streambuf_t::setg(eback(), gptr(), putend_); return (compat_traits_type::to_int_type(*gptr())); } else return (compat_traits_type::eof()); } template typename basic_altstringbuf::int_type basic_altstringbuf:: pbackfail (int_type meta) { if(gptr() != __null && (eback() < gptr()) && (mode_ & (::std::ios_base::out) || compat_traits_type::eq_int_type(compat_traits_type::eof(), meta) || compat_traits_type::eq(compat_traits_type::to_char_type(meta), gptr()[-1]) ) ) { streambuf_t::gbump(-1); if(!compat_traits_type::eq_int_type(compat_traits_type::eof(), meta)) *gptr() = compat_traits_type::to_char_type(meta); return (compat_traits_type::not_eof(meta)); } else return (compat_traits_type::eof()); } template typename basic_altstringbuf::int_type basic_altstringbuf:: overflow (int_type meta) { if(compat_traits_type::eq_int_type(compat_traits_type::eof(), meta)) return compat_traits_type::not_eof(meta); else if(pptr() != __null && pptr() < epptr()) { streambuf_t::sputc(compat_traits_type::to_char_type(meta)); return meta; } else if(! (mode_ & ::std::ios_base::out)) return compat_traits_type::eof(); else { std::size_t prev_size = pptr() == __null ? 0 : epptr() - eback(); std::size_t new_size = prev_size; std::size_t add_size = new_size / 2; if(add_size < alloc_min) add_size = alloc_min; Ch * newptr = __null, *oldptr = eback(); while (0 < add_size && ((std::numeric_limits::max)() - add_size < new_size) ) add_size /= 2; if(0 < add_size) { new_size += add_size; newptr = alloc_.allocate(new_size, is_allocated_? oldptr : 0); } if(0 < prev_size) compat_traits_type::copy(newptr, oldptr, prev_size); if(is_allocated_) alloc_.deallocate(oldptr, prev_size); is_allocated_=true; if(prev_size == 0) { putend_ = newptr; streambuf_t::setp(newptr, newptr + new_size); if(mode_ & ::std::ios_base::in) streambuf_t::setg(newptr, newptr, newptr + 1); else streambuf_t::setg(newptr, 0, newptr); } else { putend_ = putend_ - oldptr + newptr; int pptr_count = static_cast(pptr()-pbase()); int gptr_count = static_cast(gptr()-eback()); streambuf_t::setp(pbase() - oldptr + newptr, newptr + new_size); streambuf_t::pbump(pptr_count); if(mode_ & ::std::ios_base::in) streambuf_t::setg(newptr, newptr + gptr_count, pptr() + 1); else streambuf_t::setg(newptr, 0, newptr); } streambuf_t::sputc(compat_traits_type::to_char_type(meta)); return meta; } } template void basic_altstringbuf:: dealloc() { if(is_allocated_) alloc_.deallocate(eback(), (pptr() != __null ? epptr() : egptr()) - eback()); is_allocated_ = false; streambuf_t::setg(0, 0, 0); streambuf_t::setp(0, 0); putend_ = __null; } } } # 174 "/usr/include/boost/format/alt_sstream.hpp" 2 3 4 # 24 "/usr/include/boost/format/internals.hpp" 2 3 4 namespace boost { namespace io { namespace detail { template struct stream_format_state { typedef ::std:: basic_ios basic_ios; stream_format_state(Ch fill) { reset(fill); } void reset(Ch fill); void set_by_stream(const basic_ios& os); void apply_on(basic_ios & os, boost::io::detail::locale_t * loc_default = 0) const; template void apply_manip(T manipulator) { apply_manip_body( *this, manipulator) ; } std::streamsize width_; std::streamsize precision_; Ch fill_; std::ios_base::fmtflags flags_; std::ios_base::iostate rdstate_; std::ios_base::iostate exceptions_; boost::optional loc_; }; template struct format_item { enum pad_values { zeropad = 1, spacepad =2, centered=4, tabulation = 8 }; enum arg_values { argN_no_posit = -1, argN_tabulation = -2, argN_ignored = -3 }; typedef ::std:: basic_ios basic_ios; typedef detail::stream_format_state stream_format_state; typedef ::std::basic_string string_type; format_item(Ch fill) :argN_(argN_no_posit), fmtstate_(fill), truncate_(max_streamsize()), pad_scheme_(0) {} void reset(Ch fill); void compute_states(); static std::streamsize max_streamsize() { return (std::numeric_limits::max)(); } int argN_; string_type res_; string_type appendix_; stream_format_state fmtstate_; std::streamsize truncate_; unsigned int pad_scheme_; }; template void stream_format_state:: apply_on (basic_ios & os, boost::io::detail::locale_t * loc_default) const { if(loc_) os.imbue(loc_.get()); else if(loc_default) os.imbue(*loc_default); if(width_ != -1) os.width(width_); if(precision_ != -1) os.precision(precision_); if(fill_ != 0) os.fill(fill_); os.flags(flags_); os.clear(rdstate_); os.exceptions(exceptions_); } template void stream_format_state:: set_by_stream(const basic_ios& os) { flags_ = os.flags(); width_ = os.width(); precision_ = os.precision(); fill_ = os.fill(); rdstate_ = os.rdstate(); exceptions_ = os.exceptions(); } template void apply_manip_body( stream_format_state& self, T manipulator) { basic_oaltstringstream ss; self.apply_on( ss ); ss << manipulator; self.set_by_stream( ss ); } template inline void stream_format_state:: reset(Ch fill) { width_=0; precision_=6; fill_=fill; flags_ = std::ios_base::dec | std::ios_base::skipws; exceptions_ = std::ios_base::goodbit; rdstate_ = std::ios_base::goodbit; } template void format_item:: reset (Ch fill) { argN_=argN_no_posit; truncate_ = max_streamsize(); pad_scheme_ =0; res_.resize(0); appendix_.resize(0); fmtstate_.reset(fill); } template void format_item:: compute_states() { if(pad_scheme_ & zeropad) { if(fmtstate_.flags_ & std::ios_base::left) { ((!(fmtstate_.flags_ &(std::ios_base::adjustfield ^std::ios_base::left))) ? static_cast (0) : __assert_fail ("!(fmtstate_.flags_ &(std::ios_base::adjustfield ^std::ios_base::left))", "/usr/include/boost/format/internals.hpp", 180, __PRETTY_FUNCTION__)); pad_scheme_ = pad_scheme_ & (~zeropad); } else { pad_scheme_ &= ~spacepad; fmtstate_.fill_='0'; fmtstate_.flags_ = (fmtstate_.flags_ & ~std::ios_base::adjustfield) | std::ios_base::internal; } } if(pad_scheme_ & spacepad) { if(fmtstate_.flags_ & std::ios_base::showpos) pad_scheme_ &= ~spacepad; } } } } } # 39 "/usr/include/boost/format.hpp" 2 3 4 # 1 "/usr/include/boost/format/format_class.hpp" 1 3 4 # 27 "/usr/include/boost/format/format_class.hpp" 3 4 namespace boost { template class basic_format { typedef typename io::CompatTraits::compatible_type compat_traits; public: typedef Ch CharT; typedef std::basic_string string_type; typedef typename string_type::size_type size_type; typedef io::detail::format_item format_item_t; typedef io::basic_altstringbuf internal_streambuf_t; explicit basic_format(const Ch* str=__null); explicit basic_format(const string_type& s); basic_format(const basic_format& x); basic_format& operator= (const basic_format& x); void swap(basic_format& x); explicit basic_format(const Ch* str, const std::locale & loc); explicit basic_format(const string_type& s, const std::locale & loc); io::detail::locale_t getloc() const; basic_format& clear(); basic_format& clear_binds(); basic_format& parse(const string_type&); size_type size() const; string_type str() const; template basic_format& operator%(const T& x) { return io::detail::feed(*this,x); } template basic_format& operator%(T& x) { return io::detail::feed(*this,x); } basic_format& operator%(const int& x) { return io::detail::feed(*this,x); } basic_format& operator%(int& x) { return io::detail::feed(*this,x); } int expected_args() const { return num_args_; } int bound_args() const; int fed_args() const; int cur_arg() const; int remaining_args() const; template basic_format& bind_arg(int argN, const T& val) { return io::detail::bind_arg_body(*this, argN, val); } basic_format& clear_bind(int argN); template basic_format& modify_item(int itemN, T manipulator) { return io::detail::modify_item_body (*this, itemN, manipulator);} unsigned char exceptions() const; unsigned char exceptions(unsigned char newexcept); # 116 "/usr/include/boost/format/format_class.hpp" 3 4 template friend std::basic_ostream & operator<<( std::basic_ostream & , const basic_format& ); template friend basic_format& io::detail::feed_impl (basic_format&, T); template friend void io::detail::distribute (basic_format&, T); template friend basic_format& io::detail::modify_item_body (basic_format&, int, T); template friend basic_format& io::detail::bind_arg_body (basic_format&, int, const T&); private: typedef io::detail::stream_format_state stream_format_state; enum style_values { ordered = 1, special_needs = 4 }; void make_or_reuse_data(std::size_t nbitems); std::vector items_; std::vector bound_; int style_; int cur_arg_; int num_args_; mutable bool dumped_; string_type prefix_; unsigned char exceptions_; internal_streambuf_t buf_; boost::optional loc_; }; } # 42 "/usr/include/boost/format.hpp" 2 3 4 # 1 "/usr/include/boost/format/exceptions.hpp" 1 3 4 # 23 "/usr/include/boost/format/exceptions.hpp" 3 4 namespace boost { namespace io { class format_error : public std::exception { public: format_error() {} virtual const char *what() const throw() { return "boost::format_error: " "format generic failure"; } }; class bad_format_string : public format_error { std::size_t pos_, next_; public: bad_format_string(std::size_t pos, std::size_t size) : pos_(pos), next_(size) {} std::size_t get_pos() const { return pos_; } std::size_t get_next() const { return next_; } virtual const char *what() const throw() { return "boost::bad_format_string: format-string is ill-formed"; } }; class too_few_args : public format_error { std::size_t cur_, expected_; public: too_few_args(std::size_t cur, std::size_t expected) : cur_(cur), expected_(expected) {} std::size_t get_cur() const { return cur_; } std::size_t get_expected() const { return expected_; } virtual const char *what() const throw() { return "boost::too_few_args: " "format-string referred to more arguments than were passed"; } }; class too_many_args : public format_error { std::size_t cur_, expected_; public: too_many_args(std::size_t cur, std::size_t expected) : cur_(cur), expected_(expected) {} std::size_t get_cur() const { return cur_; } std::size_t get_expected() const { return expected_; } virtual const char *what() const throw() { return "boost::too_many_args: " "format-string referred to less arguments than were passed"; } }; class out_of_range : public format_error { int index_, beg_, end_; public: out_of_range(int index, int beg, int end) : index_(index), beg_(beg), end_(end) {} int get_index() const { return index_; } int get_beg() const { return beg_; } int get_end() const { return end_; } virtual const char *what() const throw() { return "boost::out_of_range: " "tried to refer to an argument (or item) number which" " is out of range, according to the format string"; } }; } } # 45 "/usr/include/boost/format.hpp" 2 3 4 # 1 "/usr/include/boost/format/format_implementation.hpp" 1 3 4 # 19 "/usr/include/boost/format/format_implementation.hpp" 3 4 # 1 "/usr/include/boost/assert.hpp" 1 3 4 # 54 "/usr/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 64 "/usr/include/assert.h" 3 4 extern "C" { extern void __assert_fail (const char *__assertion, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert_perror_fail (int __errnum, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert (const char *__assertion, const char *__file, int __line) throw () __attribute__ ((__noreturn__)); } # 55 "/usr/include/boost/assert.hpp" 2 3 4 # 20 "/usr/include/boost/format/format_implementation.hpp" 2 3 4 namespace boost { template< class Ch, class Tr, class Alloc> basic_format:: basic_format(const Ch* s) : style_(0), cur_arg_(0), num_args_(0), dumped_(false), exceptions_(io::all_error_bits) { if( s) parse( s ); } template< class Ch, class Tr, class Alloc> basic_format:: basic_format(const Ch* s, const std::locale & loc) : style_(0), cur_arg_(0), num_args_(0), dumped_(false), exceptions_(io::all_error_bits), loc_(loc) { if(s) parse( s ); } template< class Ch, class Tr, class Alloc> basic_format:: basic_format(const string_type& s, const std::locale & loc) : style_(0), cur_arg_(0), num_args_(0), dumped_(false), exceptions_(io::all_error_bits), loc_(loc) { parse(s); } template< class Ch, class Tr, class Alloc> io::detail::locale_t basic_format:: getloc() const { return loc_ ? loc_.get() : io::detail::locale_t(); } template< class Ch, class Tr, class Alloc> basic_format:: basic_format(const string_type& s) : style_(0), cur_arg_(0), num_args_(0), dumped_(false), exceptions_(io::all_error_bits) { parse(s); } template< class Ch, class Tr, class Alloc> basic_format:: basic_format(const basic_format& x) : items_(x.items_), bound_(x.bound_), style_(x.style_), cur_arg_(x.cur_arg_), num_args_(x.num_args_), dumped_(x.dumped_), prefix_(x.prefix_), exceptions_(x.exceptions_), loc_(x.loc_) { } template< class Ch, class Tr, class Alloc> basic_format& basic_format:: operator= (const basic_format& x) { if(this == &x) return *this; (basic_format(x)).swap(*this); return *this; } template< class Ch, class Tr, class Alloc> void basic_format:: swap (basic_format & x) { std::swap(exceptions_, x.exceptions_); std::swap(style_, x.style_); std::swap(cur_arg_, x.cur_arg_); std::swap(num_args_, x.num_args_); std::swap(dumped_, x.dumped_); items_.swap(x.items_); prefix_.swap(x.prefix_); bound_.swap(x.bound_); } template< class Ch, class Tr, class Alloc> unsigned char basic_format:: exceptions() const { return exceptions_; } template< class Ch, class Tr, class Alloc> unsigned char basic_format:: exceptions(unsigned char newexcept) { unsigned char swp = exceptions_; exceptions_ = newexcept; return swp; } template void basic_format:: make_or_reuse_data (std::size_t nbitems) { Ch fill = ( std::use_facet< std::ctype >(getloc()) ). widen(' '); if(items_.size() == 0) items_.assign( nbitems, format_item_t(fill) ); else { if(nbitems>items_.size()) items_.resize(nbitems, format_item_t(fill)); bound_.resize(0); for(std::size_t i=0; i < nbitems; ++i) items_[i].reset(fill); } prefix_.resize(0); } template< class Ch, class Tr, class Alloc> basic_format& basic_format:: clear () { ((bound_.size()==0 || num_args_ == static_cast(bound_.size())) ? static_cast (0) : __assert_fail ("bound_.size()==0 || num_args_ == static_cast(bound_.size())", "/usr/include/boost/format/format_implementation.hpp", 135, __PRETTY_FUNCTION__)); for(unsigned long i=0; i basic_format& basic_format:: clear_binds () { bound_.resize(0); clear(); return *this; } template< class Ch, class Tr, class Alloc> basic_format& basic_format:: clear_bind (int argN) { if(argN<1 || argN > num_args_ || bound_.size()==0 || !bound_[argN-1] ) { if( exceptions() & io::out_of_range_bit) boost::throw_exception(io::out_of_range(argN, 1, num_args_+1 ) ); else return *this; } bound_[argN-1]=false; clear(); return *this; } template< class Ch, class Tr, class Alloc> int basic_format:: bound_args() const { if(bound_.size()==0) return 0; int n=0; for(int i=0; i int basic_format:: fed_args() const { if(bound_.size()==0) return cur_arg_; int n=0; for(int i=0; i int basic_format:: cur_arg() const { return cur_arg_+1; } template< class Ch, class Tr, class Alloc> int basic_format:: remaining_args() const { if(bound_.size()==0) return num_args_-cur_arg_; int n=0; for(int i=cur_arg_; i typename basic_format::string_type basic_format:: str () const { if(items_.size()==0) return prefix_; if( cur_arg_ < num_args_) if( exceptions() & io::too_few_args_bit ) boost::throw_exception(io::too_few_args(cur_arg_, num_args_)); unsigned long i; string_type res; res.reserve(size()); res += prefix_; for(i=0; i < items_.size(); ++i) { const format_item_t& item = items_[i]; res += item.res_; if( item.argN_ == format_item_t::argN_tabulation) { ((item.pad_scheme_ & format_item_t::tabulation) ? static_cast (0) : __assert_fail ("item.pad_scheme_ & format_item_t::tabulation", "/usr/include/boost/format/format_implementation.hpp", 234, __PRETTY_FUNCTION__)); if( static_cast(item.fmtstate_.width_) > res.size() ) res.append( static_cast(item.fmtstate_.width_) - res.size(), item.fmtstate_.fill_ ); } res += item.appendix_; } dumped_=true; return res; } template< class Ch, class Tr, class Alloc> typename std::basic_string::size_type basic_format:: size () const { using std::max; size_type sz = prefix_.size(); unsigned long i; for(i=0; i < items_.size(); ++i) { const format_item_t& item = items_[i]; sz += item.res_.size(); if( item.argN_ == format_item_t::argN_tabulation) sz = max (sz, static_cast(item.fmtstate_.width_) ); sz += item.appendix_.size(); } return sz; } namespace io { namespace detail { template basic_format& bind_arg_body (basic_format& self, int argN, const T& val) { if(self.dumped_) self.clear(); if(argN<1 || argN > self.num_args_) { if( self.exceptions() & io::out_of_range_bit ) boost::throw_exception(io::out_of_range(argN, 1, self.num_args_+1 ) ); else return self; } if(self.bound_.size()==0) self.bound_.assign(self.num_args_,false); else ((self.num_args_ == static_cast(self.bound_.size())) ? static_cast (0) : __assert_fail ("self.num_args_ == static_cast(self.bound_.size())", "/usr/include/boost/format/format_implementation.hpp", 289, __PRETTY_FUNCTION__)); int o_cur_arg = self.cur_arg_; self.cur_arg_ = argN-1; self.bound_[self.cur_arg_]=false; self.operator%(val); self.cur_arg_ = o_cur_arg; self.bound_[argN-1]=true; if(self.cur_arg_ == argN-1 ) { while(self.cur_arg_ < self.num_args_ && self.bound_[self.cur_arg_]) ++self.cur_arg_; } ((self.cur_arg_ >= self.num_args_ || ! self.bound_[self.cur_arg_]) ? static_cast (0) : __assert_fail ("self.cur_arg_ >= self.num_args_ || ! self.bound_[self.cur_arg_]", "/usr/include/boost/format/format_implementation.hpp", 306, __PRETTY_FUNCTION__)); return self; } template basic_format& modify_item_body (basic_format& self, int itemN, T manipulator) { if(itemN<1 || itemN > static_cast(self.items_.size() )) { if( self.exceptions() & io::out_of_range_bit ) boost::throw_exception(io::out_of_range(itemN, 1, static_cast(self.items_.size()) )); else return self; } self.items_[itemN-1].fmtstate_. template apply_manip ( manipulator ); return self; } } } } # 48 "/usr/include/boost/format.hpp" 2 3 4 # 1 "/usr/include/boost/format/group.hpp" 1 3 4 # 29 "/usr/include/boost/format/group.hpp" 3 4 namespace boost { namespace io { namespace detail { struct group0 { group0() {} }; template inline ::std:: basic_ostream& operator << ( ::std:: basic_ostream& os, const group0& ) { return os; } template struct group1 { T1 a1_; group1(T1 a1) : a1_(a1) {} private: group1& operator=(const group1&); }; template inline ::std:: basic_ostream& operator << (::std:: basic_ostream& os, const group1& x) { os << x.a1_; return os; } template struct group2 { T1 a1_; T2 a2_; group2(T1 a1,T2 a2) : a1_(a1),a2_(a2) {} private: group2& operator=(const group2&); }; template inline ::std:: basic_ostream& operator << (::std:: basic_ostream& os, const group2& x) { os << x.a1_<< x.a2_; return os; } template struct group3 { T1 a1_; T2 a2_; T3 a3_; group3(T1 a1,T2 a2,T3 a3) : a1_(a1),a2_(a2),a3_(a3) {} private: group3& operator=(const group3&); }; template inline ::std:: basic_ostream& operator << (::std:: basic_ostream& os, const group3& x) { os << x.a1_<< x.a2_<< x.a3_; return os; } template struct group4 { T1 a1_; T2 a2_; T3 a3_; T4 a4_; group4(T1 a1,T2 a2,T3 a3,T4 a4) : a1_(a1),a2_(a2),a3_(a3),a4_(a4) {} private: group4& operator=(const group4&); }; template inline ::std:: basic_ostream& operator << (::std:: basic_ostream& os, const group4& x) { os << x.a1_<< x.a2_<< x.a3_<< x.a4_; return os; } template struct group5 { T1 a1_; T2 a2_; T3 a3_; T4 a4_; T5 a5_; group5(T1 a1,T2 a2,T3 a3,T4 a4,T5 a5) : a1_(a1),a2_(a2),a3_(a3),a4_(a4),a5_(a5) {} }; template inline ::std:: basic_ostream& operator << (::std:: basic_ostream& os, const group5& x) { os << x.a1_<< x.a2_<< x.a3_<< x.a4_<< x.a5_; return os; } template struct group6 { T1 a1_; T2 a2_; T3 a3_; T4 a4_; T5 a5_; T6 a6_; group6(T1 a1,T2 a2,T3 a3,T4 a4,T5 a5,T6 a6) : a1_(a1),a2_(a2),a3_(a3),a4_(a4),a5_(a5),a6_(a6) {} }; template inline ::std:: basic_ostream& operator << (::std:: basic_ostream& os, const group6& x) { os << x.a1_<< x.a2_<< x.a3_<< x.a4_<< x.a5_<< x.a6_; return os; } template struct group7 { T1 a1_; T2 a2_; T3 a3_; T4 a4_; T5 a5_; T6 a6_; T7 a7_; group7(T1 a1,T2 a2,T3 a3,T4 a4,T5 a5,T6 a6,T7 a7) : a1_(a1),a2_(a2),a3_(a3),a4_(a4),a5_(a5),a6_(a6),a7_(a7) {} }; template inline ::std:: basic_ostream& operator << (::std:: basic_ostream& os, const group7& x) { os << x.a1_<< x.a2_<< x.a3_<< x.a4_<< x.a5_<< x.a6_<< x.a7_; return os; } template struct group8 { T1 a1_; T2 a2_; T3 a3_; T4 a4_; T5 a5_; T6 a6_; T7 a7_; T8 a8_; group8(T1 a1,T2 a2,T3 a3,T4 a4,T5 a5,T6 a6,T7 a7,T8 a8) : a1_(a1),a2_(a2),a3_(a3),a4_(a4),a5_(a5),a6_(a6),a7_(a7),a8_(a8) {} }; template inline ::std:: basic_ostream& operator << (::std:: basic_ostream& os, const group8& x) { os << x.a1_<< x.a2_<< x.a3_<< x.a4_<< x.a5_<< x.a6_<< x.a7_<< x.a8_; return os; } template struct group9 { T1 a1_; T2 a2_; T3 a3_; T4 a4_; T5 a5_; T6 a6_; T7 a7_; T8 a8_; T9 a9_; group9(T1 a1,T2 a2,T3 a3,T4 a4,T5 a5,T6 a6,T7 a7,T8 a8,T9 a9) : a1_(a1),a2_(a2),a3_(a3),a4_(a4),a5_(a5),a6_(a6),a7_(a7),a8_(a8),a9_(a9) {} }; template inline ::std:: basic_ostream& operator << (::std:: basic_ostream& os, const group9& x) { os << x.a1_<< x.a2_<< x.a3_<< x.a4_<< x.a5_<< x.a6_<< x.a7_<< x.a8_<< x.a9_; return os; } template struct group10 { T1 a1_; T2 a2_; T3 a3_; T4 a4_; T5 a5_; T6 a6_; T7 a7_; T8 a8_; T9 a9_; T10 a10_; group10(T1 a1,T2 a2,T3 a3,T4 a4,T5 a5,T6 a6,T7 a7,T8 a8,T9 a9,T10 a10) : a1_(a1),a2_(a2),a3_(a3),a4_(a4),a5_(a5),a6_(a6),a7_(a7),a8_(a8),a9_(a9),a10_(a10) {} }; template inline ::std:: basic_ostream& operator << (::std:: basic_ostream& os, const group10& x) { os << x.a1_<< x.a2_<< x.a3_<< x.a4_<< x.a5_<< x.a6_<< x.a7_<< x.a8_<< x.a9_<< x.a10_; return os; } template inline group1 group_head( group2 const& x) { return group1 (x.a1_); } template inline group1 group_last( group2 const& x) { return group1 (x.a2_); } template inline group2 group_head( group3 const& x) { return group2 (x.a1_,x.a2_); } template inline group1 group_last( group3 const& x) { return group1 (x.a3_); } template inline group3 group_head( group4 const& x) { return group3 (x.a1_,x.a2_,x.a3_); } template inline group1 group_last( group4 const& x) { return group1 (x.a4_); } template inline group4 group_head( group5 const& x) { return group4 (x.a1_,x.a2_,x.a3_,x.a4_); } template inline group1 group_last( group5 const& x) { return group1 (x.a5_); } template inline group5 group_head( group6 const& x) { return group5 (x.a1_,x.a2_,x.a3_,x.a4_,x.a5_); } template inline group1 group_last( group6 const& x) { return group1 (x.a6_); } template inline group6 group_head( group7 const& x) { return group6 (x.a1_,x.a2_,x.a3_,x.a4_,x.a5_,x.a6_); } template inline group1 group_last( group7 const& x) { return group1 (x.a7_); } template inline group7 group_head( group8 const& x) { return group7 (x.a1_,x.a2_,x.a3_,x.a4_,x.a5_,x.a6_,x.a7_); } template inline group1 group_last( group8 const& x) { return group1 (x.a8_); } template inline group8 group_head( group9 const& x) { return group8 (x.a1_,x.a2_,x.a3_,x.a4_,x.a5_,x.a6_,x.a7_,x.a8_); } template inline group1 group_last( group9 const& x) { return group1 (x.a9_); } template inline group9 group_head( group10 const& x) { return group9 (x.a1_,x.a2_,x.a3_,x.a4_,x.a5_,x.a6_,x.a7_,x.a8_,x.a9_); } template inline group1 group_last( group10 const& x) { return group1 (x.a10_); } } inline detail::group1< detail::group0 > group() { return detail::group1< detail::group0 > ( detail::group0() ); } template inline detail::group1< detail::group2 > group(T1 a1, Var const& var) { return detail::group1< detail::group2 > ( detail::group2 (a1, var) ); } template inline detail::group1< detail::group3 > group(T1 a1,T2 a2, Var const& var) { return detail::group1< detail::group3 > ( detail::group3 (a1,a2, var) ); } template inline detail::group1< detail::group4 > group(T1 a1,T2 a2,T3 a3, Var const& var) { return detail::group1< detail::group4 > ( detail::group4 (a1,a2,a3, var) ); } template inline detail::group1< detail::group5 > group(T1 a1,T2 a2,T3 a3,T4 a4, Var const& var) { return detail::group1< detail::group5 > ( detail::group5 (a1,a2,a3,a4, var) ); } template inline detail::group1< detail::group6 > group(T1 a1,T2 a2,T3 a3,T4 a4,T5 a5, Var const& var) { return detail::group1< detail::group6 > ( detail::group6 (a1,a2,a3,a4,a5, var) ); } template inline detail::group1< detail::group7 > group(T1 a1,T2 a2,T3 a3,T4 a4,T5 a5,T6 a6, Var const& var) { return detail::group1< detail::group7 > ( detail::group7 (a1,a2,a3,a4,a5,a6, var) ); } template inline detail::group1< detail::group8 > group(T1 a1,T2 a2,T3 a3,T4 a4,T5 a5,T6 a6,T7 a7, Var const& var) { return detail::group1< detail::group8 > ( detail::group8 (a1,a2,a3,a4,a5,a6,a7, var) ); } template inline detail::group1< detail::group9 > group(T1 a1,T2 a2,T3 a3,T4 a4,T5 a5,T6 a6,T7 a7,T8 a8, Var const& var) { return detail::group1< detail::group9 > ( detail::group9 (a1,a2,a3,a4,a5,a6,a7,a8, var) ); } template inline detail::group1< detail::group10 > group(T1 a1,T2 a2,T3 a3,T4 a4,T5 a5,T6 a6,T7 a7,T8 a8,T9 a9, Var const& var) { return detail::group1< detail::group10 > ( detail::group10 (a1,a2,a3,a4,a5,a6,a7,a8,a9, var) ); } template inline detail::group1< detail::group2 > group(T1 a1, Var& var) { return detail::group1< detail::group2 > ( detail::group2 (a1, var) ); } template inline detail::group1< detail::group3 > group(T1 a1,T2 a2, Var& var) { return detail::group1< detail::group3 > ( detail::group3 (a1,a2, var) ); } template inline detail::group1< detail::group4 > group(T1 a1,T2 a2,T3 a3, Var& var) { return detail::group1< detail::group4 > ( detail::group4 (a1,a2,a3, var) ); } template inline detail::group1< detail::group5 > group(T1 a1,T2 a2,T3 a3,T4 a4, Var& var) { return detail::group1< detail::group5 > ( detail::group5 (a1,a2,a3,a4, var) ); } template inline detail::group1< detail::group6 > group(T1 a1,T2 a2,T3 a3,T4 a4,T5 a5, Var& var) { return detail::group1< detail::group6 > ( detail::group6 (a1,a2,a3,a4,a5, var) ); } template inline detail::group1< detail::group7 > group(T1 a1,T2 a2,T3 a3,T4 a4,T5 a5,T6 a6, Var& var) { return detail::group1< detail::group7 > ( detail::group7 (a1,a2,a3,a4,a5,a6, var) ); } template inline detail::group1< detail::group8 > group(T1 a1,T2 a2,T3 a3,T4 a4,T5 a5,T6 a6,T7 a7, Var& var) { return detail::group1< detail::group8 > ( detail::group8 (a1,a2,a3,a4,a5,a6,a7, var) ); } template inline detail::group1< detail::group9 > group(T1 a1,T2 a2,T3 a3,T4 a4,T5 a5,T6 a6,T7 a7,T8 a8, Var& var) { return detail::group1< detail::group9 > ( detail::group9 (a1,a2,a3,a4,a5,a6,a7,a8, var) ); } template inline detail::group1< detail::group10 > group(T1 a1,T2 a2,T3 a3,T4 a4,T5 a5,T6 a6,T7 a7,T8 a8,T9 a9, Var& var) { return detail::group1< detail::group10 > ( detail::group10 (a1,a2,a3,a4,a5,a6,a7,a8,a9, var) ); } } } # 49 "/usr/include/boost/format.hpp" 2 3 4 # 1 "/usr/include/boost/format/feed_args.hpp" 1 3 4 # 18 "/usr/include/boost/format/feed_args.hpp" 3 4 # 1 "/usr/include/boost/assert.hpp" 1 3 4 # 54 "/usr/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 64 "/usr/include/assert.h" 3 4 extern "C" { extern void __assert_fail (const char *__assertion, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert_perror_fail (int __errnum, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert (const char *__assertion, const char *__file, int __line) throw () __attribute__ ((__noreturn__)); } # 55 "/usr/include/boost/assert.hpp" 2 3 4 # 19 "/usr/include/boost/format/feed_args.hpp" 2 3 4 # 1 "/usr/include/boost/format/detail/msvc_disambiguater.hpp" 1 3 4 # 24 "/usr/include/boost/format/feed_args.hpp" 2 3 4 namespace boost { namespace io { namespace detail { template void mk_str( std::basic_string & res, const Ch * beg, typename std::basic_string::size_type size, std::streamsize w, const Ch fill_char, std::ios_base::fmtflags f, const Ch prefix_space, bool center) { typedef typename std::basic_string::size_type size_type; res.resize(0); if(w<=0 || static_cast(w) <=size) { res.reserve(size + !!prefix_space); if(prefix_space) res.append(1, prefix_space); if (size) res.append(beg, size); } else { std::streamsize n=static_cast(w-size-!!prefix_space); std::streamsize n_after = 0, n_before = 0; res.reserve(static_cast(w)); if(center) n_after = n/2, n_before = n - n_after; else if(f & std::ios_base::left) n_after = n; else n_before = n; if(n_before) res.append(static_cast(n_before), fill_char); if(prefix_space) res.append(1, prefix_space); if (size) res.append(beg, size); if(n_after) res.append(static_cast(n_after), fill_char); } } # 88 "/usr/include/boost/format/feed_args.hpp" 3 4 template< class Ch, class Tr, class T> inline void put_head (::std:: basic_ostream &, const T& ) { } template< class Ch, class Tr, class T> inline void put_head( ::std:: basic_ostream & os, const group1& x ) { os << group_head(x.a1_); } template< class Ch, class Tr, class T> inline void put_last( ::std:: basic_ostream & os, const T& x ) { os << x ; } template< class Ch, class Tr, class T> inline void put_last( ::std:: basic_ostream & os, const group1& x ) { os << group_last(x.a1_); } template< class Ch, class Tr, class T> inline void put_head( ::std:: basic_ostream &, T& ) { } template< class Ch, class Tr, class T> inline void put_last( ::std:: basic_ostream & os, T& x) { os << x ; } template< class Ch, class Tr, class T> void call_put_head(::std:: basic_ostream & os, const void* x) { put_head(os, *(typename ::boost::remove_reference::type*)x); } template< class Ch, class Tr, class T> void call_put_last(::std:: basic_ostream & os, const void* x) { put_last(os, *(T*)x); } template< class Ch, class Tr> struct put_holder { template put_holder(T& t) : arg(&t), put_head(&call_put_head), put_last(&call_put_last) {} const void* arg; void (*put_head)(::std:: basic_ostream & os, const void* x); void (*put_last)(::std:: basic_ostream & os, const void* x); }; template< class Ch, class Tr> inline void put_head( ::std:: basic_ostream & os, const put_holder& t) { t.put_head(os, t.arg); } template< class Ch, class Tr> inline void put_last( ::std:: basic_ostream & os, const put_holder& t) { t.put_last(os, t.arg); } template< class Ch, class Tr, class Alloc, class T> void put( T x, const format_item& specs, typename basic_format::string_type& res, typename basic_format::internal_streambuf_t & buf, io::detail::locale_t *loc_p = __null) { # 170 "/usr/include/boost/format/feed_args.hpp" 3 4 typedef typename basic_format::string_type string_type; typedef typename basic_format::format_item_t format_item_t; typedef typename string_type::size_type size_type; basic_oaltstringstream oss( &buf); specs.fmtstate_.apply_on(oss, loc_p); put_head( oss, x ); const std::ios_base::fmtflags fl=oss.flags(); const bool internal = (fl & std::ios_base::internal) != 0; const std::streamsize w = oss.width(); const bool two_stepped_padding= internal && (w!=0); res.resize(0); if(! two_stepped_padding) { if(w>0) oss.width(0); put_last( oss, x); const Ch * res_beg = buf.pbase(); Ch prefix_space = 0; if(specs.pad_scheme_ & format_item_t::spacepad) if(buf.pcount()== 0 || (res_beg[0] !=oss.widen('+') && res_beg[0] !=oss.widen('-') )) prefix_space = oss.widen(' '); size_type res_size = (std::min)( static_cast(specs.truncate_ - !!prefix_space), buf.pcount() ); mk_str(res, res_beg, res_size, w, oss.fill(), fl, prefix_space, (specs.pad_scheme_ & format_item_t::centered) !=0 ); } else { put_last( oss, x); const Ch * res_beg = buf.pbase(); size_type res_size = buf.pcount(); bool prefix_space=false; if(specs.pad_scheme_ & format_item_t::spacepad) if(buf.pcount()== 0 || (res_beg[0] !=oss.widen('+') && res_beg[0] !=oss.widen('-') )) prefix_space = true; if(res_size == static_cast(w) && w<=specs.truncate_ && !prefix_space) { res.assign(res_beg, res_size); } else { res.assign(res_beg, res_size); res_beg=__null; buf.clear_buffer(); basic_oaltstringstream oss2( &buf); specs.fmtstate_.apply_on(oss2, loc_p); put_head( oss2, x ); oss2.width(0); if(prefix_space) oss2 << ' '; put_last(oss2, x ); if(buf.pcount()==0 && specs.pad_scheme_ & format_item_t::spacepad) { prefix_space =true; oss2 << ' '; } const Ch * tmp_beg = buf.pbase(); size_type tmp_size = (std::min)(static_cast(specs.truncate_), buf.pcount() ); if(static_cast(w) <= tmp_size) { res.assign(tmp_beg, tmp_size); } else { size_type sz = (std::min)(res_size + (prefix_space ? 1 : 0), tmp_size); size_type i = prefix_space; for(; i=tmp_size) i=prefix_space; res.assign(tmp_beg, i); std::streamsize d = w - static_cast(tmp_size); ((d>0) ? static_cast (0) : __assert_fail ("d>0", "/usr/include/boost/format/feed_args.hpp", 259, __PRETTY_FUNCTION__)); res.append(static_cast( d ), oss2.fill()); res.append(tmp_beg+i, tmp_size-i); ((i+(tmp_size-i)+(std::max)(d,(std::streamsize)0) == static_cast(w)) ? static_cast (0) : __assert_fail ("i+(tmp_size-i)+(std::max)(d,(std::streamsize)0) == static_cast(w)", "/usr/include/boost/format/feed_args.hpp" # 262 "/usr/include/boost/format/feed_args.hpp" 3 4 , 263 # 262 "/usr/include/boost/format/feed_args.hpp" 3 4 , __PRETTY_FUNCTION__)) ; ((res.size() == static_cast(w)) ? static_cast (0) : __assert_fail ("res.size() == static_cast(w)", "/usr/include/boost/format/feed_args.hpp", 264, __PRETTY_FUNCTION__)); } } } buf.clear_buffer(); } template< class Ch, class Tr, class Alloc, class T> void distribute (basic_format& self, T x) { if(self.cur_arg_ >= self.num_args_) { if( self.exceptions() & too_many_args_bit ) boost::throw_exception(too_many_args(self.cur_arg_, self.num_args_)); else return; } for(unsigned long i=0; i < self.items_.size(); ++i) { if(self.items_[i].argN_ == self.cur_arg_) { put (x, self.items_[i], self.items_[i].res_, self.buf_, boost::get_pointer(self.loc_) ); } } } template basic_format& feed_impl (basic_format& self, T x) { if(self.dumped_) self.clear(); distribute (self, x); ++self.cur_arg_; if(self.bound_.size() != 0) { while( self.cur_arg_ < self.num_args_ && self.bound_[self.cur_arg_] ) ++self.cur_arg_; } return self; } template inline basic_format& feed (basic_format& self, T x) { return feed_impl&>(self, put_holder(x)); } } } } # 50 "/usr/include/boost/format.hpp" 2 3 4 # 1 "/usr/include/boost/format/parsing.hpp" 1 3 4 # 21 "/usr/include/boost/format/parsing.hpp" 3 4 # 1 "/usr/include/boost/assert.hpp" 1 3 4 # 54 "/usr/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 64 "/usr/include/assert.h" 3 4 extern "C" { extern void __assert_fail (const char *__assertion, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert_perror_fail (int __errnum, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert (const char *__assertion, const char *__file, int __line) throw () __attribute__ ((__noreturn__)); } # 55 "/usr/include/boost/assert.hpp" 2 3 4 # 22 "/usr/include/boost/format/parsing.hpp" 2 3 4 namespace boost { namespace io { namespace detail { # 35 "/usr/include/boost/format/parsing.hpp" 3 4 template const T& const_or_not(const T& x) { return x; } template inline char wrap_narrow(const Facet& fac, Ch c, char deflt) { return const_or_not(fac).narrow(c, deflt); } template inline bool wrap_isdigit(const Facet& fac, Ch c) { return fac.is(std::ctype::digit, c); } template Iter wrap_scan_notdigit(const Facet & fac, Iter beg, Iter end) { using namespace std; for( ; beg!=end && wrap_isdigit(fac, *beg); ++beg) ; return beg; } template Iter str2int (const Iter & start, const Iter & last, Res & res, const Facet& fac) { using namespace std; Iter it; res=0; for(it=start; it != last && wrap_isdigit(fac, *it); ++it ) { char cur_ch = wrap_narrow(fac, *it, 0); res *= 10; res += cur_ch - '0'; } return it; } template Iter skip_asterisk(Iter start, Iter last, const Facet& fac) { using namespace std; ++ start; start = wrap_scan_notdigit(fac, start, last); if(start!=last && *start== const_or_not(fac).widen( '$') ) ++start; return start; } inline void maybe_throw_exception(unsigned char exceptions, std::size_t pos, std::size_t size) { if(exceptions & io::bad_format_string_bit) boost::throw_exception(io::bad_format_string(pos, size) ); } # 122 "/usr/include/boost/format/parsing.hpp" 3 4 template bool parse_printf_directive(Iter & start, const Iter& last, detail::format_item * fpar, const Facet& fac, std::size_t offset, unsigned char exceptions) { typedef typename basic_format::format_item_t format_item_t; fpar->argN_ = format_item_t::argN_no_posit; bool precision_set = false; bool in_brackets=false; Iter start0 = start; std::size_t fstring_size = last-start0+offset; if(start>= last) { maybe_throw_exception(exceptions, start-start0 + offset, fstring_size); return false; } if(*start== const_or_not(fac).widen( '|')) { in_brackets=true; if( ++start >= last ) { maybe_throw_exception(exceptions, start-start0 + offset, fstring_size); return false; } } if(*start== const_or_not(fac).widen( '0')) goto parse_flags; if(wrap_isdigit(fac, *start)) { int n; start = str2int(start, last, n, fac); if( start >= last ) { maybe_throw_exception(exceptions, start-start0+offset, fstring_size); return false; } if( *start == const_or_not(fac).widen( '%') ) { fpar->argN_ = n-1; ++start; if( in_brackets) maybe_throw_exception(exceptions, start-start0+offset, fstring_size); else return true; } if ( *start== const_or_not(fac).widen( '$') ) { fpar->argN_ = n-1; ++start; } else { fpar->fmtstate_.width_ = n; fpar->argN_ = format_item_t::argN_no_posit; goto parse_precision; } } parse_flags: while ( start != last) { switch ( wrap_narrow(fac, *start, 0)) { case '\'' : break; case 'l': case 'h': break; case '-': fpar->fmtstate_.flags_ |= std::ios_base::left; break; case '=': fpar->pad_scheme_ |= format_item_t::centered; break; case '_': fpar->fmtstate_.flags_ |= std::ios_base::internal; break; case ' ': fpar->pad_scheme_ |= format_item_t::spacepad; break; case '+': fpar->fmtstate_.flags_ |= std::ios_base::showpos; break; case '0': fpar->pad_scheme_ |= format_item_t::zeropad; break; case '#': fpar->fmtstate_.flags_ |= std::ios_base::showpoint | std::ios_base::showbase; break; default: goto parse_width; } ++start; } if( start>=last) { maybe_throw_exception(exceptions, start-start0+offset, fstring_size); return true; } parse_width: if(*start == const_or_not(fac).widen( '*') ) start = skip_asterisk(start, last, fac); if(start!=last && wrap_isdigit(fac, *start)) start = str2int(start, last, fpar->fmtstate_.width_, fac); parse_precision: if( start>= last) { maybe_throw_exception(exceptions, start-start0+offset, fstring_size); return true; } if (*start== const_or_not(fac).widen( '.')) { ++start; if(start != last && *start == const_or_not(fac).widen( '*') ) start = skip_asterisk(start, last, fac); if(start != last && wrap_isdigit(fac, *start)) { start = str2int(start, last, fpar->fmtstate_.precision_, fac); precision_set = true; } else fpar->fmtstate_.precision_ =0; } while( start != last && ( *start== const_or_not(fac).widen( 'l') || *start== const_or_not(fac).widen( 'L') || *start== const_or_not(fac).widen( 'h')) ) ++start; if( start>=last) { maybe_throw_exception(exceptions, start-start0+offset, fstring_size); return true; } if( in_brackets && *start== const_or_not(fac).widen( '|') ) { ++start; return true; } switch ( wrap_narrow(fac, *start, 0) ) { case 'X': fpar->fmtstate_.flags_ |= std::ios_base::uppercase; case 'p': case 'x': fpar->fmtstate_.flags_ &= ~std::ios_base::basefield; fpar->fmtstate_.flags_ |= std::ios_base::hex; break; case 'o': fpar->fmtstate_.flags_ &= ~std::ios_base::basefield; fpar->fmtstate_.flags_ |= std::ios_base::oct; break; case 'E': fpar->fmtstate_.flags_ |= std::ios_base::uppercase; case 'e': fpar->fmtstate_.flags_ &= ~std::ios_base::floatfield; fpar->fmtstate_.flags_ |= std::ios_base::scientific; fpar->fmtstate_.flags_ &= ~std::ios_base::basefield; fpar->fmtstate_.flags_ |= std::ios_base::dec; break; case 'f': fpar->fmtstate_.flags_ &= ~std::ios_base::floatfield; fpar->fmtstate_.flags_ |= std::ios_base::fixed; case 'u': case 'd': case 'i': fpar->fmtstate_.flags_ &= ~std::ios_base::basefield; fpar->fmtstate_.flags_ |= std::ios_base::dec; break; case 'T': ++start; if( start >= last) maybe_throw_exception(exceptions, start-start0+offset, fstring_size); else fpar->fmtstate_.fill_ = *start; fpar->pad_scheme_ |= format_item_t::tabulation; fpar->argN_ = format_item_t::argN_tabulation; break; case 't': fpar->fmtstate_.fill_ = const_or_not(fac).widen( ' '); fpar->pad_scheme_ |= format_item_t::tabulation; fpar->argN_ = format_item_t::argN_tabulation; break; case 'G': fpar->fmtstate_.flags_ |= std::ios_base::uppercase; break; case 'g': fpar->fmtstate_.flags_ &= ~std::ios_base::basefield; fpar->fmtstate_.flags_ |= std::ios_base::dec; fpar->fmtstate_.flags_ &= ~std::ios_base::floatfield; break; case 'C': case 'c': fpar->truncate_ = 1; break; case 'S': case 's': if(precision_set) fpar->truncate_ = fpar->fmtstate_.precision_; fpar->fmtstate_.precision_ = 6; break; case 'n' : fpar->argN_ = format_item_t::argN_ignored; break; default: maybe_throw_exception(exceptions, start-start0+offset, fstring_size); } ++start; if( in_brackets ) { if( start != last && *start== const_or_not(fac).widen( '|') ) { ++start; return true; } else maybe_throw_exception(exceptions, start-start0+offset, fstring_size); } return true; } template int upper_bound_from_fstring(const String& buf, const typename String::value_type arg_mark, const Facet& fac, unsigned char exceptions) { using namespace boost::io; typename String::size_type i1=0; int num_items=0; while( (i1=buf.find(arg_mark,i1)) != String::npos ) { if( i1+1 >= buf.size() ) { if(exceptions & bad_format_string_bit) boost::throw_exception(bad_format_string(i1, buf.size() )); else { ++num_items; break; } } if(buf[i1+1] == buf[i1] ) { i1+=2; continue; } ++i1; i1 = detail::wrap_scan_notdigit(fac, buf.begin()+i1, buf.end()) - buf.begin(); if( i1 < buf.size() && buf[i1] == arg_mark ) ++i1; ++num_items; } return num_items; } template inline void append_string(String& dst, const String& src, const typename String::size_type beg, const typename String::size_type end) { dst.append(src.begin()+beg, src.begin()+end); } } } template basic_format& basic_format:: parse (const string_type& buf) { using namespace std; const std::ctype & fac = std::use_facet< std::ctype >(getloc()); const Ch arg_mark = io::detail::const_or_not(fac).widen( '%'); bool ordered_args=true; int max_argN=-1; int num_items = io::detail::upper_bound_from_fstring(buf, arg_mark, fac, exceptions()); make_or_reuse_data(num_items); num_items=0; typename string_type::size_type i0=0, i1=0; typename string_type::const_iterator it; bool special_things=false; int cur_item=0; while( (i1=buf.find(arg_mark,i1)) != string_type::npos ) { string_type & piece = (cur_item==0) ? prefix_ : items_[cur_item-1].appendix_; if( buf[i1+1] == buf[i1] ) { io::detail::append_string(piece, buf, i0, i1+1); i1+=2; i0=i1; continue; } ((static_cast(cur_item) < items_.size() || cur_item==0) ? static_cast (0) : __assert_fail ("static_cast(cur_item) < items_.size() || cur_item==0", "/usr/include/boost/format/parsing.hpp", 437, __PRETTY_FUNCTION__)); if(i1!=i0) { io::detail::append_string(piece, buf, i0, i1); i0=i1; } ++i1; it = buf.begin()+i1; bool parse_ok = io::detail::parse_printf_directive( it, buf.end(), &items_[cur_item], fac, i1, exceptions()); i1 = it - buf.begin(); if( ! parse_ok ) continue; i0=i1; items_[cur_item].compute_states(); int argN=items_[cur_item].argN_; if(argN == format_item_t::argN_ignored) continue; if(argN ==format_item_t::argN_no_posit) ordered_args=false; else if(argN == format_item_t::argN_tabulation) special_things=true; else if(argN > max_argN) max_argN = argN; ++num_items; ++cur_item; } ((cur_item == num_items) ? static_cast (0) : __assert_fail ("cur_item == num_items", "/usr/include/boost/format/parsing.hpp", 463, __PRETTY_FUNCTION__)); { string_type & piece = (cur_item==0) ? prefix_ : items_[cur_item-1].appendix_; io::detail::append_string(piece, buf, i0, buf.size()); } if( !ordered_args) { if(max_argN >= 0 ) { if(exceptions() & io::bad_format_string_bit) boost::throw_exception(io::bad_format_string(max_argN, 0)); } int non_ordered_items = 0; for(int i=0; i< num_items; ++i) if(items_[i].argN_ == format_item_t::argN_no_posit) { items_[i].argN_ = non_ordered_items; ++non_ordered_items; } max_argN = non_ordered_items-1; } items_.resize(num_items, format_item_t(io::detail::const_or_not(fac).widen( ' ')) ); if(special_things) style_ |= special_needs; num_args_ = max_argN + 1; if(ordered_args) style_ |= ordered; else style_ &= ~ordered; return *this; } } # 51 "/usr/include/boost/format.hpp" 2 3 4 # 1 "/usr/include/boost/format/free_funcs.hpp" 1 3 4 # 19 "/usr/include/boost/format/free_funcs.hpp" 3 4 namespace boost { template inline std::basic_string str(const basic_format& f) { return f.str(); } namespace io { using ::boost::str; } template std::basic_ostream & operator<<( std::basic_ostream & os, const basic_format& f) { typedef boost::basic_format format_t; if(f.items_.size()==0) os << f.prefix_; else { if(f.cur_arg_ < f.num_args_) if( f.exceptions() & io::too_few_args_bit ) boost::throw_exception(io::too_few_args(f.cur_arg_, f.num_args_)); if(f.style_ & format_t::special_needs) os << f.str(); else { os << f.prefix_; for(unsigned long i=0; i struct size_descriptor { typedef char (& type)[I]; }; typedef size_descriptor<1>::type yes_type; typedef size_descriptor<2>::type no_type; } } # 15 "/usr/include/boost/algorithm/string/std/string_traits.hpp" 2 3 4 # 1 "/usr/include/boost/algorithm/string/sequence_traits.hpp" 1 3 4 # 34 "/usr/include/boost/algorithm/string/sequence_traits.hpp" 3 4 namespace boost { namespace algorithm { # 44 "/usr/include/boost/algorithm/string/sequence_traits.hpp" 3 4 template< typename T > class has_native_replace { public: static const bool value=false; typedef mpl::bool_::value> type; }; template< typename T > class has_stable_iterators { public: static const bool value=false; typedef mpl::bool_::value> type; }; template< typename T > class has_const_time_insert { public: static const bool value=false; typedef mpl::bool_::value> type; }; template< typename T > class has_const_time_erase { public: static const bool value=false; typedef mpl::bool_::value> type; }; } } # 17 "/usr/include/boost/algorithm/string/std/string_traits.hpp" 2 3 4 namespace boost { namespace algorithm { template class has_native_replace< std::basic_string > { public: static const bool value=true; typedef mpl::bool_::value> type; }; } } # 20 "/usr/include/boost/algorithm/string/std_containers_traits.hpp" 2 3 4 # 1 "/usr/include/boost/algorithm/string/std/list_traits.hpp" 1 3 4 # 15 "/usr/include/boost/algorithm/string/std/list_traits.hpp" 3 4 # 1 "/usr/include/c++/5.0.0/list" 1 3 4 # 58 "/usr/include/c++/5.0.0/list" 3 4 # 59 "/usr/include/c++/5.0.0/list" 3 # 1 "/usr/include/c++/5.0.0/bits/stl_list.h" 1 3 # 64 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace __detail { # 77 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 struct _List_node_base { _List_node_base* _M_next; _List_node_base* _M_prev; static void swap(_List_node_base& __x, _List_node_base& __y) throw(); void _M_transfer(_List_node_base* const __first, _List_node_base* const __last) throw(); void _M_reverse() throw(); void _M_hook(_List_node_base* const __position) throw(); void _M_unhook() throw(); }; } template struct _List_node : public __detail::_List_node_base { _Tp _M_data; }; template struct _List_iterator { typedef _List_iterator<_Tp> _Self; typedef _List_node<_Tp> _Node; typedef ptrdiff_t difference_type; typedef std::bidirectional_iterator_tag iterator_category; typedef _Tp value_type; typedef _Tp* pointer; typedef _Tp& reference; _List_iterator() : _M_node() { } explicit _List_iterator(__detail::_List_node_base* __x) : _M_node(__x) { } _Self _M_const_cast() const { return *this; } reference operator*() const { return static_cast<_Node*>(_M_node)->_M_data; } pointer operator->() const { return std::__addressof(static_cast<_Node*>(_M_node)->_M_data); } _Self& operator++() { _M_node = _M_node->_M_next; return *this; } _Self operator++(int) { _Self __tmp = *this; _M_node = _M_node->_M_next; return __tmp; } _Self& operator--() { _M_node = _M_node->_M_prev; return *this; } _Self operator--(int) { _Self __tmp = *this; _M_node = _M_node->_M_prev; return __tmp; } bool operator==(const _Self& __x) const { return _M_node == __x._M_node; } bool operator!=(const _Self& __x) const { return _M_node != __x._M_node; } __detail::_List_node_base* _M_node; }; template struct _List_const_iterator { typedef _List_const_iterator<_Tp> _Self; typedef const _List_node<_Tp> _Node; typedef _List_iterator<_Tp> iterator; typedef ptrdiff_t difference_type; typedef std::bidirectional_iterator_tag iterator_category; typedef _Tp value_type; typedef const _Tp* pointer; typedef const _Tp& reference; _List_const_iterator() : _M_node() { } explicit _List_const_iterator(const __detail::_List_node_base* __x) : _M_node(__x) { } _List_const_iterator(const iterator& __x) : _M_node(__x._M_node) { } iterator _M_const_cast() const { return iterator(const_cast<__detail::_List_node_base*>(_M_node)); } reference operator*() const { return static_cast<_Node*>(_M_node)->_M_data; } pointer operator->() const { return std::__addressof(static_cast<_Node*>(_M_node)->_M_data); } _Self& operator++() { _M_node = _M_node->_M_next; return *this; } _Self operator++(int) { _Self __tmp = *this; _M_node = _M_node->_M_next; return __tmp; } _Self& operator--() { _M_node = _M_node->_M_prev; return *this; } _Self operator--(int) { _Self __tmp = *this; _M_node = _M_node->_M_prev; return __tmp; } bool operator==(const _Self& __x) const { return _M_node == __x._M_node; } bool operator!=(const _Self& __x) const { return _M_node != __x._M_node; } const __detail::_List_node_base* _M_node; }; template inline bool operator==(const _List_iterator<_Val>& __x, const _List_const_iterator<_Val>& __y) { return __x._M_node == __y._M_node; } template inline bool operator!=(const _List_iterator<_Val>& __x, const _List_const_iterator<_Val>& __y) { return __x._M_node != __y._M_node; } template class _List_base { protected: # 314 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 typedef typename _Alloc::template rebind<_List_node<_Tp> >::other _Node_alloc_type; typedef typename _Alloc::template rebind<_Tp>::other _Tp_alloc_type; static size_t _S_distance(const __detail::_List_node_base* __first, const __detail::_List_node_base* __last) { size_t __n = 0; while (__first != __last) { __first = __first->_M_next; ++__n; } return __n; } struct _List_impl : public _Node_alloc_type { __detail::_List_node_base _M_node; _List_impl() : _Node_alloc_type(), _M_node() { } _List_impl(const _Node_alloc_type& __a) : _Node_alloc_type(__a), _M_node() { } }; _List_impl _M_impl; # 376 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 size_t _M_get_size() const { return 0; } void _M_set_size(size_t) { } void _M_inc_size(size_t) { } void _M_dec_size(size_t) { } size_t _M_distance(const void*, const void*) const { return 0; } size_t _M_node_count() const { return _S_distance(_M_impl._M_node._M_next, std::__addressof(_M_impl._M_node)); } _List_node<_Tp>* _M_get_node() { return _M_impl._Node_alloc_type::allocate(1); } void _M_put_node(_List_node<_Tp>* __p) { _M_impl._Node_alloc_type::deallocate(__p, 1); } public: typedef _Alloc allocator_type; _Node_alloc_type& _M_get_Node_allocator() { return *static_cast<_Node_alloc_type*>(&_M_impl); } const _Node_alloc_type& _M_get_Node_allocator() const { return *static_cast(&_M_impl); } _Tp_alloc_type _M_get_Tp_allocator() const { return _Tp_alloc_type(_M_get_Node_allocator()); } allocator_type get_allocator() const { return allocator_type(_M_get_Node_allocator()); } _List_base() : _M_impl() { _M_init(); } _List_base(const _Node_alloc_type& __a) : _M_impl(__a) { _M_init(); } # 445 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 ~_List_base() { _M_clear(); } void _M_clear() ; void _M_init() { this->_M_impl._M_node._M_next = &this->_M_impl._M_node; this->_M_impl._M_node._M_prev = &this->_M_impl._M_node; _M_set_size(0); } }; # 506 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 template > class list : protected _List_base<_Tp, _Alloc> { typedef typename _Alloc::value_type _Alloc_value_type; typedef _List_base<_Tp, _Alloc> _Base; typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; typedef typename _Base::_Node_alloc_type _Node_alloc_type; public: typedef _Tp value_type; typedef typename _Tp_alloc_type::pointer pointer; typedef typename _Tp_alloc_type::const_pointer const_pointer; typedef typename _Tp_alloc_type::reference reference; typedef typename _Tp_alloc_type::const_reference const_reference; typedef _List_iterator<_Tp> iterator; typedef _List_const_iterator<_Tp> const_iterator; typedef std::reverse_iterator const_reverse_iterator; typedef std::reverse_iterator reverse_iterator; typedef size_t size_type; typedef ptrdiff_t difference_type; typedef _Alloc allocator_type; protected: typedef _List_node<_Tp> _Node; using _Base::_M_impl; using _Base::_M_put_node; using _Base::_M_get_node; using _Base::_M_get_Tp_allocator; using _Base::_M_get_Node_allocator; # 550 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 _Node* _M_create_node(const value_type& __x) { _Node* __p = this->_M_get_node(); try { _M_get_Tp_allocator().construct (std::__addressof(__p->_M_data), __x); } catch(...) { _M_put_node(__p); throw; } return __p; } # 586 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 public: list() : _Base() { } explicit list(const allocator_type& __a) : _Base(_Node_alloc_type(__a)) { } # 641 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 explicit list(size_type __n, const value_type& __value = value_type(), const allocator_type& __a = allocator_type()) : _Base(_Node_alloc_type(__a)) { _M_fill_initialize(__n, __value); } # 655 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 list(const list& __x) : _Base(__x._M_get_Node_allocator()) { _M_initialize_dispatch(__x.begin(), __x.end(), __false_type()); } # 702 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 template list(_InputIterator __first, _InputIterator __last, const allocator_type& __a = allocator_type()) : _Base(_Node_alloc_type(__a)) { typedef typename std::__is_integer<_InputIterator>::__type _Integral; _M_initialize_dispatch(__first, __last, _Integral()); } # 728 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 list& operator=(const list& __x); # 774 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 void assign(size_type __n, const value_type& __val) { _M_fill_assign(__n, __val); } # 797 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 template void assign(_InputIterator __first, _InputIterator __last) { typedef typename std::__is_integer<_InputIterator>::__type _Integral; _M_assign_dispatch(__first, __last, _Integral()); } # 821 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 allocator_type get_allocator() const { return _Base::get_allocator(); } iterator begin() { return iterator(this->_M_impl._M_node._M_next); } const_iterator begin() const { return const_iterator(this->_M_impl._M_node._M_next); } iterator end() { return iterator(&this->_M_impl._M_node); } const_iterator end() const { return const_iterator(&this->_M_impl._M_node); } reverse_iterator rbegin() { return reverse_iterator(end()); } const_reverse_iterator rbegin() const { return const_reverse_iterator(end()); } reverse_iterator rend() { return reverse_iterator(begin()); } const_reverse_iterator rend() const { return const_reverse_iterator(begin()); } # 940 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 bool empty() const { return this->_M_impl._M_node._M_next == &this->_M_impl._M_node; } size_type size() const { return this->_M_node_count(); } size_type max_size() const { return _M_get_Node_allocator().max_size(); } # 990 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 void resize(size_type __new_size, value_type __x = value_type()); reference front() { return *begin(); } const_reference front() const { return *begin(); } reference back() { iterator __tmp = end(); --__tmp; return *__tmp; } const_reference back() const { const_iterator __tmp = end(); --__tmp; return *__tmp; } # 1046 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 void push_front(const value_type& __x) { this->_M_insert(begin(), __x); } # 1073 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 void pop_front() { this->_M_erase(begin()); } # 1087 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 void push_back(const value_type& __x) { this->_M_insert(end(), __x); } # 1113 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 void pop_back() { this->_M_erase(iterator(this->_M_impl._M_node._M_prev)); } # 1159 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 iterator insert(iterator __position, const value_type& __x); # 1229 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 void insert(iterator __position, size_type __n, const value_type& __x) { list __tmp(__n, __x, get_allocator()); splice(__position, __tmp); } # 1272 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 template void insert(iterator __position, _InputIterator __first, _InputIterator __last) { list __tmp(__first, __last, get_allocator()); splice(__position, __tmp); } # 1297 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 iterator erase(iterator __position); # 1322 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 iterator erase(iterator __first, iterator __last) { while (__first != __last) __first = erase(__first); return __last._M_const_cast(); } # 1343 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 void swap(list& __x) { __detail::_List_node_base::swap(this->_M_impl._M_node, __x._M_impl._M_node); size_t __xsize = __x._M_get_size(); __x._M_set_size(this->_M_get_size()); this->_M_set_size(__xsize); std::__alloc_swap:: _S_do_it(_M_get_Node_allocator(), __x._M_get_Node_allocator()); } void clear() { _Base::_M_clear(); _Base::_M_init(); } # 1384 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 void splice(iterator __position, list& __x) { if (!__x.empty()) { _M_check_equal_allocators(__x); this->_M_transfer(__position._M_const_cast(), __x.begin(), __x.end()); this->_M_inc_size(__x._M_get_size()); __x._M_set_size(0); } } # 1432 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 void splice(iterator __position, list& __x, iterator __i) { iterator __j = __i._M_const_cast(); ++__j; if (__position == __i || __position == __j) return; if (this != &__x) _M_check_equal_allocators(__x); this->_M_transfer(__position._M_const_cast(), __i._M_const_cast(), __j); this->_M_inc_size(1); __x._M_dec_size(1); } # 1497 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 void splice(iterator __position, list& __x, iterator __first, iterator __last) { if (__first != __last) { if (this != &__x) _M_check_equal_allocators(__x); size_t __n = this->_M_distance(__first._M_node, __last._M_node); this->_M_inc_size(__n); __x._M_dec_size(__n); this->_M_transfer(__position._M_const_cast(), __first._M_const_cast(), __last._M_const_cast()); } } # 1548 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 void remove(const _Tp& __value); # 1562 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 template void remove_if(_Predicate); # 1576 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 void unique(); # 1591 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 template void unique(_BinaryPredicate); # 1612 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 void merge(list& __x); # 1639 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 template void merge(list& __x, _StrictWeakOrdering __comp); void reverse() { this->_M_impl._M_node._M_reverse(); } void sort(); template void sort(_StrictWeakOrdering); protected: template void _M_initialize_dispatch(_Integer __n, _Integer __x, __true_type) { _M_fill_initialize(static_cast(__n), __x); } template void _M_initialize_dispatch(_InputIterator __first, _InputIterator __last, __false_type) { for (; __first != __last; ++__first) push_back(*__first); } void _M_fill_initialize(size_type __n, const value_type& __x) { for (; __n; --__n) push_back(__x); } # 1727 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 template void _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) { _M_fill_assign(__n, __val); } template void _M_assign_dispatch(_InputIterator __first, _InputIterator __last, __false_type); void _M_fill_assign(size_type __n, const value_type& __val); void _M_transfer(iterator __position, iterator __first, iterator __last) { __position._M_node->_M_transfer(__first._M_node, __last._M_node); } void _M_insert(iterator __position, const value_type& __x) { _Node* __tmp = _M_create_node(__x); __tmp->_M_hook(__position._M_node); this->_M_inc_size(1); } # 1770 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 void _M_erase(iterator __position) { this->_M_dec_size(1); __position._M_node->_M_unhook(); _Node* __n = static_cast<_Node*>(__position._M_node); _M_get_Tp_allocator().destroy(std::__addressof(__n->_M_data)); _M_put_node(__n); } void _M_check_equal_allocators(list& __x) { if (std::__alloc_neq:: _S_do_it(_M_get_Node_allocator(), __x._M_get_Node_allocator())) __builtin_abort(); } }; # 1805 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 template inline bool operator==(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) { typedef typename list<_Tp, _Alloc>::const_iterator const_iterator; const_iterator __end1 = __x.end(); const_iterator __end2 = __y.end(); const_iterator __i1 = __x.begin(); const_iterator __i2 = __y.begin(); while (__i1 != __end1 && __i2 != __end2 && *__i1 == *__i2) { ++__i1; ++__i2; } return __i1 == __end1 && __i2 == __end2; } # 1834 "/usr/include/c++/5.0.0/bits/stl_list.h" 3 template inline bool operator<(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) { return std::lexicographical_compare(__x.begin(), __x.end(), __y.begin(), __y.end()); } template inline bool operator!=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) { return !(__x == __y); } template inline bool operator>(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) { return __y < __x; } template inline bool operator<=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) { return !(__y < __x); } template inline bool operator>=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) { return !(__x < __y); } template inline void swap(list<_Tp, _Alloc>& __x, list<_Tp, _Alloc>& __y) { __x.swap(__y); } } # 64 "/usr/include/c++/5.0.0/list" 2 3 # 1 "/usr/include/c++/5.0.0/bits/list.tcc" 1 3 # 59 "/usr/include/c++/5.0.0/bits/list.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template void _List_base<_Tp, _Alloc>:: _M_clear() { typedef _List_node<_Tp> _Node; __detail::_List_node_base* __cur = _M_impl._M_node._M_next; while (__cur != &_M_impl._M_node) { _Node* __tmp = static_cast<_Node*>(__cur); __cur = __tmp->_M_next; _M_get_Tp_allocator().destroy(std::__addressof(__tmp->_M_data)); _M_put_node(__tmp); } } # 97 "/usr/include/c++/5.0.0/bits/list.tcc" 3 template typename list<_Tp, _Alloc>::iterator list<_Tp, _Alloc>:: insert(iterator __position, const value_type& __x) { _Node* __tmp = _M_create_node(__x); __tmp->_M_hook(__position._M_const_cast()._M_node); this->_M_inc_size(1); return iterator(__tmp); } # 146 "/usr/include/c++/5.0.0/bits/list.tcc" 3 template typename list<_Tp, _Alloc>::iterator list<_Tp, _Alloc>:: erase(iterator __position) { iterator __ret = iterator(__position._M_node->_M_next); _M_erase(__position._M_const_cast()); return __ret; } # 210 "/usr/include/c++/5.0.0/bits/list.tcc" 3 template void list<_Tp, _Alloc>:: resize(size_type __new_size, value_type __x) { iterator __i = begin(); size_type __len = 0; for (; __i != end() && __len < __new_size; ++__i, ++__len) ; if (__len == __new_size) erase(__i, end()); else insert(end(), __new_size - __len, __x); } template list<_Tp, _Alloc>& list<_Tp, _Alloc>:: operator=(const list& __x) { if (this != &__x) { iterator __first1 = begin(); iterator __last1 = end(); const_iterator __first2 = __x.begin(); const_iterator __last2 = __x.end(); for (; __first1 != __last1 && __first2 != __last2; ++__first1, ++__first2) *__first1 = *__first2; if (__first2 == __last2) erase(__first1, __last1); else insert(__last1, __first2, __last2); } return *this; } template void list<_Tp, _Alloc>:: _M_fill_assign(size_type __n, const value_type& __val) { iterator __i = begin(); for (; __i != end() && __n > 0; ++__i, --__n) *__i = __val; if (__n > 0) insert(end(), __n, __val); else erase(__i, end()); } template template void list<_Tp, _Alloc>:: _M_assign_dispatch(_InputIterator __first2, _InputIterator __last2, __false_type) { iterator __first1 = begin(); iterator __last1 = end(); for (; __first1 != __last1 && __first2 != __last2; ++__first1, ++__first2) *__first1 = *__first2; if (__first2 == __last2) erase(__first1, __last1); else insert(__last1, __first2, __last2); } template void list<_Tp, _Alloc>:: remove(const value_type& __value) { iterator __first = begin(); iterator __last = end(); iterator __extra = __last; while (__first != __last) { iterator __next = __first; ++__next; if (*__first == __value) { if (std::__addressof(*__first) != std::__addressof(__value)) _M_erase(__first); else __extra = __first; } __first = __next; } if (__extra != __last) _M_erase(__extra); } template void list<_Tp, _Alloc>:: unique() { iterator __first = begin(); iterator __last = end(); if (__first == __last) return; iterator __next = __first; while (++__next != __last) { if (*__first == *__next) _M_erase(__next); else __first = __next; __next = __first; } } template void list<_Tp, _Alloc>:: merge(list& __x) { if (this != &__x) { _M_check_equal_allocators(__x); iterator __first1 = begin(); iterator __last1 = end(); iterator __first2 = __x.begin(); iterator __last2 = __x.end(); while (__first1 != __last1 && __first2 != __last2) if (*__first2 < *__first1) { iterator __next = __first2; _M_transfer(__first1, __first2, ++__next); __first2 = __next; } else ++__first1; if (__first2 != __last2) _M_transfer(__last1, __first2, __last2); this->_M_inc_size(__x._M_get_size()); __x._M_set_size(0); } } template template void list<_Tp, _Alloc>:: merge(list& __x, _StrictWeakOrdering __comp) { if (this != &__x) { _M_check_equal_allocators(__x); iterator __first1 = begin(); iterator __last1 = end(); iterator __first2 = __x.begin(); iterator __last2 = __x.end(); while (__first1 != __last1 && __first2 != __last2) if (__comp(*__first2, *__first1)) { iterator __next = __first2; _M_transfer(__first1, __first2, ++__next); __first2 = __next; } else ++__first1; if (__first2 != __last2) _M_transfer(__last1, __first2, __last2); this->_M_inc_size(__x._M_get_size()); __x._M_set_size(0); } } template void list<_Tp, _Alloc>:: sort() { if (this->_M_impl._M_node._M_next != &this->_M_impl._M_node && this->_M_impl._M_node._M_next->_M_next != &this->_M_impl._M_node) { list __carry; list __tmp[64]; list * __fill = &__tmp[0]; list * __counter; do { __carry.splice(__carry.begin(), *this, begin()); for(__counter = &__tmp[0]; __counter != __fill && !__counter->empty(); ++__counter) { __counter->merge(__carry); __carry.swap(*__counter); } __carry.swap(*__counter); if (__counter == __fill) ++__fill; } while ( !empty() ); for (__counter = &__tmp[1]; __counter != __fill; ++__counter) __counter->merge(*(__counter - 1)); swap( *(__fill - 1) ); } } template template void list<_Tp, _Alloc>:: remove_if(_Predicate __pred) { iterator __first = begin(); iterator __last = end(); while (__first != __last) { iterator __next = __first; ++__next; if (__pred(*__first)) _M_erase(__first); __first = __next; } } template template void list<_Tp, _Alloc>:: unique(_BinaryPredicate __binary_pred) { iterator __first = begin(); iterator __last = end(); if (__first == __last) return; iterator __next = __first; while (++__next != __last) { if (__binary_pred(*__first, *__next)) _M_erase(__next); else __first = __next; __next = __first; } } template template void list<_Tp, _Alloc>:: sort(_StrictWeakOrdering __comp) { if (this->_M_impl._M_node._M_next != &this->_M_impl._M_node && this->_M_impl._M_node._M_next->_M_next != &this->_M_impl._M_node) { list __carry; list __tmp[64]; list * __fill = &__tmp[0]; list * __counter; do { __carry.splice(__carry.begin(), *this, begin()); for(__counter = &__tmp[0]; __counter != __fill && !__counter->empty(); ++__counter) { __counter->merge(__carry, __comp); __carry.swap(*__counter); } __carry.swap(*__counter); if (__counter == __fill) ++__fill; } while ( !empty() ); for (__counter = &__tmp[1]; __counter != __fill; ++__counter) __counter->merge(*(__counter - 1), __comp); swap(*(__fill - 1)); } } } # 65 "/usr/include/c++/5.0.0/list" 2 3 # 16 "/usr/include/boost/algorithm/string/std/list_traits.hpp" 2 3 4 namespace boost { namespace algorithm { template class has_stable_iterators< ::std::list > { public: static const bool value=true; typedef mpl::bool_::value> type; }; template class has_const_time_insert< ::std::list > { public: static const bool value=true; typedef mpl::bool_::value> type; }; template class has_const_time_erase< ::std::list > { public: static const bool value=true; typedef mpl::bool_::value> type; }; } } # 21 "/usr/include/boost/algorithm/string/std_containers_traits.hpp" 2 3 4 # 1 "/usr/include/boost/algorithm/string/std/slist_traits.hpp" 1 3 4 # 14 "/usr/include/boost/algorithm/string/std/slist_traits.hpp" 3 4 # 1 "/usr/include/boost/algorithm/string/config.hpp" 1 3 4 # 15 "/usr/include/boost/algorithm/string/std/slist_traits.hpp" 2 3 4 # 1 "/usr/include/c++/5.0.0/ext/slist" 1 3 4 # 53 "/usr/include/c++/5.0.0/ext/slist" 3 4 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { using std::size_t; using std::ptrdiff_t; using std::_Construct; using std::_Destroy; using std::allocator; using std::__true_type; using std::__false_type; struct _Slist_node_base { _Slist_node_base* _M_next; }; inline _Slist_node_base* __slist_make_link(_Slist_node_base* __prev_node, _Slist_node_base* __new_node) { __new_node->_M_next = __prev_node->_M_next; __prev_node->_M_next = __new_node; return __new_node; } inline _Slist_node_base* __slist_previous(_Slist_node_base* __head, const _Slist_node_base* __node) { while (__head && __head->_M_next != __node) __head = __head->_M_next; return __head; } inline const _Slist_node_base* __slist_previous(const _Slist_node_base* __head, const _Slist_node_base* __node) { while (__head && __head->_M_next != __node) __head = __head->_M_next; return __head; } inline void __slist_splice_after(_Slist_node_base* __pos, _Slist_node_base* __before_first, _Slist_node_base* __before_last) { if (__pos != __before_first && __pos != __before_last) { _Slist_node_base* __first = __before_first->_M_next; _Slist_node_base* __after = __pos->_M_next; __before_first->_M_next = __before_last->_M_next; __pos->_M_next = __first; __before_last->_M_next = __after; } } inline void __slist_splice_after(_Slist_node_base* __pos, _Slist_node_base* __head) { _Slist_node_base* __before_last = __slist_previous(__head, 0); if (__before_last != __head) { _Slist_node_base* __after = __pos->_M_next; __pos->_M_next = __head->_M_next; __head->_M_next = 0; __before_last->_M_next = __after; } } inline _Slist_node_base* __slist_reverse(_Slist_node_base* __node) { _Slist_node_base* __result = __node; __node = __node->_M_next; __result->_M_next = 0; while(__node) { _Slist_node_base* __next = __node->_M_next; __node->_M_next = __result; __result = __node; __node = __next; } return __result; } inline size_t __slist_size(_Slist_node_base* __node) { size_t __result = 0; for (; __node != 0; __node = __node->_M_next) ++__result; return __result; } template struct _Slist_node : public _Slist_node_base { _Tp _M_data; }; struct _Slist_iterator_base { typedef size_t size_type; typedef ptrdiff_t difference_type; typedef std::forward_iterator_tag iterator_category; _Slist_node_base* _M_node; _Slist_iterator_base(_Slist_node_base* __x) : _M_node(__x) {} void _M_incr() { _M_node = _M_node->_M_next; } bool operator==(const _Slist_iterator_base& __x) const { return _M_node == __x._M_node; } bool operator!=(const _Slist_iterator_base& __x) const { return _M_node != __x._M_node; } }; template struct _Slist_iterator : public _Slist_iterator_base { typedef _Slist_iterator<_Tp, _Tp&, _Tp*> iterator; typedef _Slist_iterator<_Tp, const _Tp&, const _Tp*> const_iterator; typedef _Slist_iterator<_Tp, _Ref, _Ptr> _Self; typedef _Tp value_type; typedef _Ptr pointer; typedef _Ref reference; typedef _Slist_node<_Tp> _Node; explicit _Slist_iterator(_Node* __x) : _Slist_iterator_base(__x) {} _Slist_iterator() : _Slist_iterator_base(0) {} _Slist_iterator(const iterator& __x) : _Slist_iterator_base(__x._M_node) {} reference operator*() const { return ((_Node*) _M_node)->_M_data; } pointer operator->() const { return &(operator*()); } _Self& operator++() { _M_incr(); return *this; } _Self operator++(int) { _Self __tmp = *this; _M_incr(); return __tmp; } }; template struct _Slist_base : public _Alloc::template rebind<_Slist_node<_Tp> >::other { typedef typename _Alloc::template rebind<_Slist_node<_Tp> >::other _Node_alloc; typedef _Alloc allocator_type; allocator_type get_allocator() const { return *static_cast(this); } _Slist_base(const allocator_type& __a) : _Node_alloc(__a) { this->_M_head._M_next = 0; } ~_Slist_base() { _M_erase_after(&this->_M_head, 0); } protected: _Slist_node_base _M_head; _Slist_node<_Tp>* _M_get_node() { return _Node_alloc::allocate(1); } void _M_put_node(_Slist_node<_Tp>* __p) { _Node_alloc::deallocate(__p, 1); } protected: _Slist_node_base* _M_erase_after(_Slist_node_base* __pos) { _Slist_node<_Tp>* __next = (_Slist_node<_Tp>*) (__pos->_M_next); _Slist_node_base* __next_next = __next->_M_next; __pos->_M_next = __next_next; get_allocator().destroy(&__next->_M_data); _M_put_node(__next); return __next_next; } _Slist_node_base* _M_erase_after(_Slist_node_base*, _Slist_node_base*); }; template _Slist_node_base* _Slist_base<_Tp,_Alloc>::_M_erase_after(_Slist_node_base* __before_first, _Slist_node_base* __last_node) { _Slist_node<_Tp>* __cur = (_Slist_node<_Tp>*) (__before_first->_M_next); while (__cur != __last_node) { _Slist_node<_Tp>* __tmp = __cur; __cur = (_Slist_node<_Tp>*) __cur->_M_next; get_allocator().destroy(&__tmp->_M_data); _M_put_node(__tmp); } __before_first->_M_next = __last_node; return __last_node; } template > class slist : private _Slist_base<_Tp,_Alloc> { private: typedef _Slist_base<_Tp,_Alloc> _Base; public: typedef _Tp value_type; typedef value_type* pointer; typedef const value_type* const_pointer; typedef value_type& reference; typedef const value_type& const_reference; typedef size_t size_type; typedef ptrdiff_t difference_type; typedef _Slist_iterator<_Tp, _Tp&, _Tp*> iterator; typedef _Slist_iterator<_Tp, const _Tp&, const _Tp*> const_iterator; typedef typename _Base::allocator_type allocator_type; allocator_type get_allocator() const { return _Base::get_allocator(); } private: typedef _Slist_node<_Tp> _Node; typedef _Slist_node_base _Node_base; typedef _Slist_iterator_base _Iterator_base; _Node* _M_create_node(const value_type& __x) { _Node* __node = this->_M_get_node(); try { get_allocator().construct(&__node->_M_data, __x); __node->_M_next = 0; } catch(...) { this->_M_put_node(__node); throw; } return __node; } _Node* _M_create_node() { _Node* __node = this->_M_get_node(); try { get_allocator().construct(&__node->_M_data, value_type()); __node->_M_next = 0; } catch(...) { this->_M_put_node(__node); throw; } return __node; } public: explicit slist(const allocator_type& __a = allocator_type()) : _Base(__a) {} slist(size_type __n, const value_type& __x, const allocator_type& __a = allocator_type()) : _Base(__a) { _M_insert_after_fill(&this->_M_head, __n, __x); } explicit slist(size_type __n) : _Base(allocator_type()) { _M_insert_after_fill(&this->_M_head, __n, value_type()); } template slist(_InputIterator __first, _InputIterator __last, const allocator_type& __a = allocator_type()) : _Base(__a) { _M_insert_after_range(&this->_M_head, __first, __last); } slist(const slist& __x) : _Base(__x.get_allocator()) { _M_insert_after_range(&this->_M_head, __x.begin(), __x.end()); } slist& operator= (const slist& __x); ~slist() {} public: void assign(size_type __n, const _Tp& __val) { _M_fill_assign(__n, __val); } void _M_fill_assign(size_type __n, const _Tp& __val); template void assign(_InputIterator __first, _InputIterator __last) { typedef typename std::__is_integer<_InputIterator>::__type _Integral; _M_assign_dispatch(__first, __last, _Integral()); } template void _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) { _M_fill_assign((size_type) __n, (_Tp) __val); } template void _M_assign_dispatch(_InputIterator __first, _InputIterator __last, __false_type); public: iterator begin() { return iterator((_Node*)this->_M_head._M_next); } const_iterator begin() const { return const_iterator((_Node*)this->_M_head._M_next);} iterator end() { return iterator(0); } const_iterator end() const { return const_iterator(0); } # 445 "/usr/include/c++/5.0.0/ext/slist" 3 4 iterator before_begin() { return iterator((_Node*) &this->_M_head); } const_iterator before_begin() const { return const_iterator((_Node*) &this->_M_head); } size_type size() const { return __slist_size(this->_M_head._M_next); } size_type max_size() const { return size_type(-1); } bool empty() const { return this->_M_head._M_next == 0; } void swap(slist& __x) { std::swap(this->_M_head._M_next, __x._M_head._M_next); } public: reference front() { return ((_Node*) this->_M_head._M_next)->_M_data; } const_reference front() const { return ((_Node*) this->_M_head._M_next)->_M_data; } void push_front(const value_type& __x) { __slist_make_link(&this->_M_head, _M_create_node(__x)); } void push_front() { __slist_make_link(&this->_M_head, _M_create_node()); } void pop_front() { _Node* __node = (_Node*) this->_M_head._M_next; this->_M_head._M_next = __node->_M_next; get_allocator().destroy(&__node->_M_data); this->_M_put_node(__node); } iterator previous(const_iterator __pos) { return iterator((_Node*) __slist_previous(&this->_M_head, __pos._M_node)); } const_iterator previous(const_iterator __pos) const { return const_iterator((_Node*) __slist_previous(&this->_M_head, __pos._M_node)); } private: _Node* _M_insert_after(_Node_base* __pos, const value_type& __x) { return (_Node*) (__slist_make_link(__pos, _M_create_node(__x))); } _Node* _M_insert_after(_Node_base* __pos) { return (_Node*) (__slist_make_link(__pos, _M_create_node())); } void _M_insert_after_fill(_Node_base* __pos, size_type __n, const value_type& __x) { for (size_type __i = 0; __i < __n; ++__i) __pos = __slist_make_link(__pos, _M_create_node(__x)); } template void _M_insert_after_range(_Node_base* __pos, _InIterator __first, _InIterator __last) { typedef typename std::__is_integer<_InIterator>::__type _Integral; _M_insert_after_range(__pos, __first, __last, _Integral()); } template void _M_insert_after_range(_Node_base* __pos, _Integer __n, _Integer __x, __true_type) { _M_insert_after_fill(__pos, __n, __x); } template void _M_insert_after_range(_Node_base* __pos, _InIterator __first, _InIterator __last, __false_type) { while (__first != __last) { __pos = __slist_make_link(__pos, _M_create_node(*__first)); ++__first; } } public: iterator insert_after(iterator __pos, const value_type& __x) { return iterator(_M_insert_after(__pos._M_node, __x)); } iterator insert_after(iterator __pos) { return insert_after(__pos, value_type()); } void insert_after(iterator __pos, size_type __n, const value_type& __x) { _M_insert_after_fill(__pos._M_node, __n, __x); } template void insert_after(iterator __pos, _InIterator __first, _InIterator __last) { _M_insert_after_range(__pos._M_node, __first, __last); } iterator insert(iterator __pos, const value_type& __x) { return iterator(_M_insert_after(__slist_previous(&this->_M_head, __pos._M_node), __x)); } iterator insert(iterator __pos) { return iterator(_M_insert_after(__slist_previous(&this->_M_head, __pos._M_node), value_type())); } void insert(iterator __pos, size_type __n, const value_type& __x) { _M_insert_after_fill(__slist_previous(&this->_M_head, __pos._M_node), __n, __x); } template void insert(iterator __pos, _InIterator __first, _InIterator __last) { _M_insert_after_range(__slist_previous(&this->_M_head, __pos._M_node), __first, __last); } public: iterator erase_after(iterator __pos) { return iterator((_Node*) this->_M_erase_after(__pos._M_node)); } iterator erase_after(iterator __before_first, iterator __last) { return iterator((_Node*) this->_M_erase_after(__before_first._M_node, __last._M_node)); } iterator erase(iterator __pos) { return iterator((_Node*) this->_M_erase_after (__slist_previous(&this->_M_head, __pos._M_node))); } iterator erase(iterator __first, iterator __last) { return iterator((_Node*) this->_M_erase_after (__slist_previous(&this->_M_head, __first._M_node), __last._M_node)); } void resize(size_type new_size, const _Tp& __x); void resize(size_type new_size) { resize(new_size, _Tp()); } void clear() { this->_M_erase_after(&this->_M_head, 0); } public: void splice_after(iterator __pos, iterator __before_first, iterator __before_last) { if (__before_first != __before_last) __slist_splice_after(__pos._M_node, __before_first._M_node, __before_last._M_node); } void splice_after(iterator __pos, iterator __prev) { __slist_splice_after(__pos._M_node, __prev._M_node, __prev._M_node->_M_next); } void splice_after(iterator __pos, slist& __x) { __slist_splice_after(__pos._M_node, &__x._M_head); } void splice(iterator __pos, slist& __x) { if (__x._M_head._M_next) __slist_splice_after(__slist_previous(&this->_M_head, __pos._M_node), &__x._M_head, __slist_previous(&__x._M_head, 0)); } void splice(iterator __pos, slist& __x, iterator __i) { __slist_splice_after(__slist_previous(&this->_M_head, __pos._M_node), __slist_previous(&__x._M_head, __i._M_node), __i._M_node); } void splice(iterator __pos, slist& __x, iterator __first, iterator __last) { if (__first != __last) __slist_splice_after(__slist_previous(&this->_M_head, __pos._M_node), __slist_previous(&__x._M_head, __first._M_node), __slist_previous(__first._M_node, __last._M_node)); } public: void reverse() { if (this->_M_head._M_next) this->_M_head._M_next = __slist_reverse(this->_M_head._M_next); } void remove(const _Tp& __val); void unique(); void merge(slist& __x); void sort(); template void remove_if(_Predicate __pred); template void unique(_BinaryPredicate __pred); template void merge(slist&, _StrictWeakOrdering); template void sort(_StrictWeakOrdering __comp); }; template slist<_Tp, _Alloc>& slist<_Tp, _Alloc>::operator=(const slist<_Tp, _Alloc>& __x) { if (&__x != this) { _Node_base* __p1 = &this->_M_head; _Node* __n1 = (_Node*) this->_M_head._M_next; const _Node* __n2 = (const _Node*) __x._M_head._M_next; while (__n1 && __n2) { __n1->_M_data = __n2->_M_data; __p1 = __n1; __n1 = (_Node*) __n1->_M_next; __n2 = (const _Node*) __n2->_M_next; } if (__n2 == 0) this->_M_erase_after(__p1, 0); else _M_insert_after_range(__p1, const_iterator((_Node*)__n2), const_iterator(0)); } return *this; } template void slist<_Tp, _Alloc>::_M_fill_assign(size_type __n, const _Tp& __val) { _Node_base* __prev = &this->_M_head; _Node* __node = (_Node*) this->_M_head._M_next; for (; __node != 0 && __n > 0; --__n) { __node->_M_data = __val; __prev = __node; __node = (_Node*) __node->_M_next; } if (__n > 0) _M_insert_after_fill(__prev, __n, __val); else this->_M_erase_after(__prev, 0); } template template void slist<_Tp, _Alloc>::_M_assign_dispatch(_InputIterator __first, _InputIterator __last, __false_type) { _Node_base* __prev = &this->_M_head; _Node* __node = (_Node*) this->_M_head._M_next; while (__node != 0 && __first != __last) { __node->_M_data = *__first; __prev = __node; __node = (_Node*) __node->_M_next; ++__first; } if (__first != __last) _M_insert_after_range(__prev, __first, __last); else this->_M_erase_after(__prev, 0); } template inline bool operator==(const slist<_Tp, _Alloc>& _SL1, const slist<_Tp, _Alloc>& _SL2) { typedef typename slist<_Tp,_Alloc>::const_iterator const_iterator; const_iterator __end1 = _SL1.end(); const_iterator __end2 = _SL2.end(); const_iterator __i1 = _SL1.begin(); const_iterator __i2 = _SL2.begin(); while (__i1 != __end1 && __i2 != __end2 && *__i1 == *__i2) { ++__i1; ++__i2; } return __i1 == __end1 && __i2 == __end2; } template inline bool operator<(const slist<_Tp, _Alloc>& _SL1, const slist<_Tp, _Alloc>& _SL2) { return std::lexicographical_compare(_SL1.begin(), _SL1.end(), _SL2.begin(), _SL2.end()); } template inline bool operator!=(const slist<_Tp, _Alloc>& _SL1, const slist<_Tp, _Alloc>& _SL2) { return !(_SL1 == _SL2); } template inline bool operator>(const slist<_Tp, _Alloc>& _SL1, const slist<_Tp, _Alloc>& _SL2) { return _SL2 < _SL1; } template inline bool operator<=(const slist<_Tp, _Alloc>& _SL1, const slist<_Tp, _Alloc>& _SL2) { return !(_SL2 < _SL1); } template inline bool operator>=(const slist<_Tp, _Alloc>& _SL1, const slist<_Tp, _Alloc>& _SL2) { return !(_SL1 < _SL2); } template inline void swap(slist<_Tp, _Alloc>& __x, slist<_Tp, _Alloc>& __y) { __x.swap(__y); } template void slist<_Tp, _Alloc>::resize(size_type __len, const _Tp& __x) { _Node_base* __cur = &this->_M_head; while (__cur->_M_next != 0 && __len > 0) { --__len; __cur = __cur->_M_next; } if (__cur->_M_next) this->_M_erase_after(__cur, 0); else _M_insert_after_fill(__cur, __len, __x); } template void slist<_Tp, _Alloc>::remove(const _Tp& __val) { _Node_base* __cur = &this->_M_head; while (__cur && __cur->_M_next) { if (((_Node*) __cur->_M_next)->_M_data == __val) this->_M_erase_after(__cur); else __cur = __cur->_M_next; } } template void slist<_Tp, _Alloc>::unique() { _Node_base* __cur = this->_M_head._M_next; if (__cur) { while (__cur->_M_next) { if (((_Node*)__cur)->_M_data == ((_Node*)(__cur->_M_next))->_M_data) this->_M_erase_after(__cur); else __cur = __cur->_M_next; } } } template void slist<_Tp, _Alloc>::merge(slist<_Tp, _Alloc>& __x) { _Node_base* __n1 = &this->_M_head; while (__n1->_M_next && __x._M_head._M_next) { if (((_Node*) __x._M_head._M_next)->_M_data < ((_Node*) __n1->_M_next)->_M_data) __slist_splice_after(__n1, &__x._M_head, __x._M_head._M_next); __n1 = __n1->_M_next; } if (__x._M_head._M_next) { __n1->_M_next = __x._M_head._M_next; __x._M_head._M_next = 0; } } template void slist<_Tp, _Alloc>::sort() { if (this->_M_head._M_next && this->_M_head._M_next->_M_next) { slist __carry; slist __counter[64]; int __fill = 0; while (!empty()) { __slist_splice_after(&__carry._M_head, &this->_M_head, this->_M_head._M_next); int __i = 0; while (__i < __fill && !__counter[__i].empty()) { __counter[__i].merge(__carry); __carry.swap(__counter[__i]); ++__i; } __carry.swap(__counter[__i]); if (__i == __fill) ++__fill; } for (int __i = 1; __i < __fill; ++__i) __counter[__i].merge(__counter[__i-1]); this->swap(__counter[__fill-1]); } } template template void slist<_Tp, _Alloc>::remove_if(_Predicate __pred) { _Node_base* __cur = &this->_M_head; while (__cur->_M_next) { if (__pred(((_Node*) __cur->_M_next)->_M_data)) this->_M_erase_after(__cur); else __cur = __cur->_M_next; } } template template void slist<_Tp, _Alloc>::unique(_BinaryPredicate __pred) { _Node* __cur = (_Node*) this->_M_head._M_next; if (__cur) { while (__cur->_M_next) { if (__pred(((_Node*)__cur)->_M_data, ((_Node*)(__cur->_M_next))->_M_data)) this->_M_erase_after(__cur); else __cur = (_Node*) __cur->_M_next; } } } template template void slist<_Tp, _Alloc>::merge(slist<_Tp, _Alloc>& __x, _StrictWeakOrdering __comp) { _Node_base* __n1 = &this->_M_head; while (__n1->_M_next && __x._M_head._M_next) { if (__comp(((_Node*) __x._M_head._M_next)->_M_data, ((_Node*) __n1->_M_next)->_M_data)) __slist_splice_after(__n1, &__x._M_head, __x._M_head._M_next); __n1 = __n1->_M_next; } if (__x._M_head._M_next) { __n1->_M_next = __x._M_head._M_next; __x._M_head._M_next = 0; } } template template void slist<_Tp, _Alloc>::sort(_StrictWeakOrdering __comp) { if (this->_M_head._M_next && this->_M_head._M_next->_M_next) { slist __carry; slist __counter[64]; int __fill = 0; while (!empty()) { __slist_splice_after(&__carry._M_head, &this->_M_head, this->_M_head._M_next); int __i = 0; while (__i < __fill && !__counter[__i].empty()) { __counter[__i].merge(__carry, __comp); __carry.swap(__counter[__i]); ++__i; } __carry.swap(__counter[__i]); if (__i == __fill) ++__fill; } for (int __i = 1; __i < __fill; ++__i) __counter[__i].merge(__counter[__i-1], __comp); this->swap(__counter[__fill-1]); } } } namespace std __attribute__ ((__visibility__ ("default"))) { template class insert_iterator<__gnu_cxx::slist<_Tp, _Alloc> > { protected: typedef __gnu_cxx::slist<_Tp, _Alloc> _Container; _Container* container; typename _Container::iterator iter; public: typedef _Container container_type; typedef output_iterator_tag iterator_category; typedef void value_type; typedef void difference_type; typedef void pointer; typedef void reference; insert_iterator(_Container& __x, typename _Container::iterator __i) : container(&__x) { if (__i == __x.begin()) iter = __x.before_begin(); else iter = __x.previous(__i); } insert_iterator<_Container>& operator=(const typename _Container::value_type& __value) { iter = container->insert_after(iter, __value); return *this; } insert_iterator<_Container>& operator*() { return *this; } insert_iterator<_Container>& operator++() { return *this; } insert_iterator<_Container>& operator++(int) { return *this; } }; } # 17 "/usr/include/boost/algorithm/string/std/slist_traits.hpp" 2 3 4 namespace boost { namespace algorithm { template class has_stable_iterators< __gnu_cxx::slist > { public: static const bool value=true; typedef mpl::bool_::value> type; }; template class has_const_time_insert< __gnu_cxx::slist > { public: static const bool value=true; typedef mpl::bool_::value> type; }; template class has_const_time_erase< __gnu_cxx::slist > { public: static const bool value=true; typedef mpl::bool_::value> type; }; } } # 24 "/usr/include/boost/algorithm/string/std_containers_traits.hpp" 2 3 4 # 19 "/usr/include/boost/algorithm/string.hpp" 2 3 4 # 1 "/usr/include/boost/algorithm/string/trim.hpp" 1 3 4 # 19 "/usr/include/boost/algorithm/string/trim.hpp" 3 4 # 1 "/usr/include/boost/range/as_literal.hpp" 1 3 4 # 22 "/usr/include/boost/range/as_literal.hpp" 3 4 # 1 "/usr/include/boost/range/iterator_range.hpp" 1 3 4 # 14 "/usr/include/boost/range/iterator_range.hpp" 3 4 # 1 "/usr/include/boost/range/iterator_range_io.hpp" 1 3 4 # 43 "/usr/include/boost/range/iterator_range_io.hpp" 3 4 namespace boost { # 54 "/usr/include/boost/range/iterator_range_io.hpp" 3 4 template< typename IteratorT, typename Elem, typename Traits > inline std::basic_ostream& operator<<( std::basic_ostream& Os, const iterator_range& r ) { std::copy( r.begin(), r.end(), std::ostream_iterator< typename iterator_value::type, Elem, Traits>(Os) ); return Os; } # 85 "/usr/include/boost/range/iterator_range_io.hpp" 3 4 } # 15 "/usr/include/boost/range/iterator_range.hpp" 2 3 4 # 23 "/usr/include/boost/range/as_literal.hpp" 2 3 4 # 1 "/usr/include/boost/range/detail/str_types.hpp" 1 3 4 # 17 "/usr/include/boost/range/detail/str_types.hpp" 3 4 namespace boost { template< class T > struct range_mutable_iterator { typedef T* type; }; template< class T > struct range_const_iterator { typedef const T* type; }; template< class T > struct range_size { typedef std::size_t type; }; } # 24 "/usr/include/boost/range/as_literal.hpp" 2 3 4 # 1 "/usr/include/c++/5.0.0/cstring" 1 3 4 # 39 "/usr/include/c++/5.0.0/cstring" 3 4 # 40 "/usr/include/c++/5.0.0/cstring" 3 # 28 "/usr/include/boost/range/as_literal.hpp" 2 3 4 # 1 "/usr/include/c++/5.0.0/cwchar" 1 3 4 # 39 "/usr/include/c++/5.0.0/cwchar" 3 4 # 40 "/usr/include/c++/5.0.0/cwchar" 3 # 1 "/usr/include/wchar.h" 1 3 4 # 45 "/usr/include/c++/5.0.0/cwchar" 2 3 # 30 "/usr/include/boost/range/as_literal.hpp" 2 3 4 namespace boost { namespace range_detail { inline std::size_t length( const char* s ) { return strlen( s ); } inline std::size_t length( const wchar_t* s ) { return wcslen( s ); } # 54 "/usr/include/boost/range/as_literal.hpp" 3 4 inline bool is_char_ptr( char* ) { return true; } inline bool is_char_ptr( const char* ) { return true; } inline bool is_char_ptr( wchar_t* ) { return true; } inline bool is_char_ptr( const wchar_t* ) { return true; } template< class T > inline long is_char_ptr( const T& ) { return 0L; } template< class T > inline iterator_range make_range( T* const r, bool ) { return iterator_range( r, r + length(r) ); } template< class T > inline iterator_range::type> make_range( T& r, long ) { return boost::make_iterator_range( r ); } } template< class Range > inline iterator_range::type> as_literal( Range& r ) { return range_detail::make_range( r, range_detail::is_char_ptr(r) ); } template< class Range > inline iterator_range::type> as_literal( const Range& r ) { return range_detail::make_range( r, range_detail::is_char_ptr(r) ); } template< class Char, std::size_t sz > inline iterator_range as_literal( Char (&arr)[sz] ) { return range_detail::make_range( arr, range_detail::is_char_ptr(arr) ); } template< class Char, std::size_t sz > inline iterator_range as_literal( const Char (&arr)[sz] ) { return range_detail::make_range( arr, range_detail::is_char_ptr(arr) ); } } # 20 "/usr/include/boost/algorithm/string/trim.hpp" 2 3 4 # 1 "/usr/include/boost/algorithm/string/detail/trim.hpp" 1 3 4 # 17 "/usr/include/boost/algorithm/string/detail/trim.hpp" 3 4 namespace boost { namespace algorithm { namespace detail { template< typename ForwardIteratorT, typename PredicateT > inline ForwardIteratorT trim_end_iter_select( ForwardIteratorT InBegin, ForwardIteratorT InEnd, PredicateT IsSpace, std::forward_iterator_tag ) { ForwardIteratorT TrimIt=InBegin; for( ForwardIteratorT It=InBegin; It!=InEnd; ++It ) { if ( !IsSpace(*It) ) { TrimIt=It; ++TrimIt; } } return TrimIt; } template< typename ForwardIteratorT, typename PredicateT > inline ForwardIteratorT trim_end_iter_select( ForwardIteratorT InBegin, ForwardIteratorT InEnd, PredicateT IsSpace, std::bidirectional_iterator_tag ) { for( ForwardIteratorT It=InEnd; It!=InBegin; ) { if ( !IsSpace(*(--It)) ) return ++It; } return InBegin; } template< typename ForwardIteratorT, typename PredicateT > inline ForwardIteratorT trim_begin( ForwardIteratorT InBegin, ForwardIteratorT InEnd, PredicateT IsSpace ) { ForwardIteratorT It=InBegin; for(; It!=InEnd; ++It ) { if (!IsSpace(*It)) return It; } return It; } template< typename ForwardIteratorT, typename PredicateT > inline ForwardIteratorT trim_end( ForwardIteratorT InBegin, ForwardIteratorT InEnd, PredicateT IsSpace ) { typedef typename boost::detail:: iterator_traits::iterator_category category; return ::boost::algorithm::detail::trim_end_iter_select( InBegin, InEnd, IsSpace, category() ); } } } } # 23 "/usr/include/boost/algorithm/string/trim.hpp" 2 3 4 # 1 "/usr/include/boost/algorithm/string/classification.hpp" 1 3 4 # 18 "/usr/include/boost/algorithm/string/classification.hpp" 3 4 # 1 "/usr/include/boost/algorithm/string/detail/classification.hpp" 1 3 4 # 22 "/usr/include/boost/algorithm/string/detail/classification.hpp" 3 4 # 1 "/usr/include/boost/algorithm/string/predicate_facade.hpp" 1 3 4 # 23 "/usr/include/boost/algorithm/string/predicate_facade.hpp" 3 4 namespace boost { namespace algorithm { # 35 "/usr/include/boost/algorithm/string/predicate_facade.hpp" 3 4 template struct predicate_facade {}; } } # 23 "/usr/include/boost/algorithm/string/detail/classification.hpp" 2 3 4 namespace boost { namespace algorithm { namespace detail { struct is_classifiedF : public predicate_facade { typedef bool result_type; is_classifiedF(std::ctype_base::mask Type, std::locale const & Loc = std::locale()) : m_Type(Type), m_Locale(Loc) {} template bool operator()( CharT Ch ) const { return std::use_facet< std::ctype >(m_Locale).is( m_Type, Ch ); } # 56 "/usr/include/boost/algorithm/string/detail/classification.hpp" 3 4 private: std::ctype_base::mask m_Type; std::locale m_Locale; }; template struct is_any_ofF : public predicate_facade > { private: typedef typename ::boost::remove_const::type set_value_type; public: typedef bool result_type; template is_any_ofF( const RangeT& Range ) : m_Size(0) { m_Storage.m_dynSet=0; std::size_t Size=::boost::distance(Range); m_Size=Size; set_value_type* Storage=0; if(use_fixed_storage(m_Size)) { Storage=&m_Storage.m_fixSet[0]; } else { m_Storage.m_dynSet=new set_value_type[m_Size]; Storage=m_Storage.m_dynSet; } ::std::copy(::boost::begin(Range), ::boost::end(Range), Storage); ::std::sort(Storage, Storage+m_Size); } is_any_ofF(const is_any_ofF& Other) : m_Size(Other.m_Size) { m_Storage.m_dynSet=0; const set_value_type* SrcStorage=0; set_value_type* DestStorage=0; if(use_fixed_storage(m_Size)) { DestStorage=&m_Storage.m_fixSet[0]; SrcStorage=&Other.m_Storage.m_fixSet[0]; } else { m_Storage.m_dynSet=new set_value_type[m_Size]; DestStorage=m_Storage.m_dynSet; SrcStorage=Other.m_Storage.m_dynSet; } ::std::memcpy(DestStorage, SrcStorage, sizeof(set_value_type)*m_Size); } ~is_any_ofF() { if(!use_fixed_storage(m_Size) && m_Storage.m_dynSet!=0) { delete [] m_Storage.m_dynSet; } } is_any_ofF& operator=(const is_any_ofF& Other) { if(this==&Other) return *this; const set_value_type* SrcStorage; set_value_type* DestStorage; if(use_fixed_storage(Other.m_Size)) { DestStorage=&m_Storage.m_fixSet[0]; SrcStorage=&Other.m_Storage.m_fixSet[0]; if(!use_fixed_storage(m_Size) && m_Storage.m_dynSet!=0) { delete [] m_Storage.m_dynSet; } m_Size=Other.m_Size; } else { SrcStorage=Other.m_Storage.m_dynSet; if(use_fixed_storage(m_Size)) { set_value_type* pTemp=new set_value_type[Other.m_Size]; DestStorage=pTemp; m_Storage.m_dynSet=pTemp; m_Size=Other.m_Size; } else { if(m_Storage.m_dynSet!=0 && m_Size>=Other.m_Size && m_Size bool operator()( Char2T Ch ) const { const set_value_type* Storage= (use_fixed_storage(m_Size)) ? &m_Storage.m_fixSet[0] : m_Storage.m_dynSet; return ::std::binary_search(Storage, Storage+m_Size, Ch); } private: static bool use_fixed_storage(std::size_t size) { return size<=sizeof(set_value_type*)*2; } private: union { set_value_type* m_dynSet; set_value_type m_fixSet[sizeof(set_value_type*)*2]; } m_Storage; ::std::size_t m_Size; }; template struct is_from_rangeF : public predicate_facade< is_from_rangeF > { typedef bool result_type; is_from_rangeF( CharT From, CharT To ) : m_From(From), m_To(To) {} template bool operator()( Char2T Ch ) const { return ( m_From <= Ch ) && ( Ch <= m_To ); } private: CharT m_From; CharT m_To; }; template struct pred_andF : public predicate_facade< pred_andF > { public: typedef bool result_type; pred_andF( Pred1T Pred1, Pred2T Pred2 ) : m_Pred1(Pred1), m_Pred2(Pred2) {} template bool operator()( CharT Ch ) const { return m_Pred1(Ch) && m_Pred2(Ch); } private: Pred1T m_Pred1; Pred2T m_Pred2; }; template struct pred_orF : public predicate_facade< pred_orF > { public: typedef bool result_type; pred_orF( Pred1T Pred1, Pred2T Pred2 ) : m_Pred1(Pred1), m_Pred2(Pred2) {} template bool operator()( CharT Ch ) const { return m_Pred1(Ch) || m_Pred2(Ch); } private: Pred1T m_Pred1; Pred2T m_Pred2; }; template< typename PredT > struct pred_notF : public predicate_facade< pred_notF > { public: typedef bool result_type; pred_notF( PredT Pred ) : m_Pred(Pred) {} template bool operator()( CharT Ch ) const { return !m_Pred(Ch); } private: PredT m_Pred; }; } } } # 19 "/usr/include/boost/algorithm/string/classification.hpp" 2 3 4 # 29 "/usr/include/boost/algorithm/string/classification.hpp" 3 4 namespace boost { namespace algorithm { # 43 "/usr/include/boost/algorithm/string/classification.hpp" 3 4 inline detail::is_classifiedF is_classified(std::ctype_base::mask Type, const std::locale& Loc=std::locale()) { return detail::is_classifiedF(Type, Loc); } # 56 "/usr/include/boost/algorithm/string/classification.hpp" 3 4 inline detail::is_classifiedF is_space(const std::locale& Loc=std::locale()) { return detail::is_classifiedF(std::ctype_base::space, Loc); } # 69 "/usr/include/boost/algorithm/string/classification.hpp" 3 4 inline detail::is_classifiedF is_alnum(const std::locale& Loc=std::locale()) { return detail::is_classifiedF(std::ctype_base::alnum, Loc); } # 82 "/usr/include/boost/algorithm/string/classification.hpp" 3 4 inline detail::is_classifiedF is_alpha(const std::locale& Loc=std::locale()) { return detail::is_classifiedF(std::ctype_base::alpha, Loc); } # 95 "/usr/include/boost/algorithm/string/classification.hpp" 3 4 inline detail::is_classifiedF is_cntrl(const std::locale& Loc=std::locale()) { return detail::is_classifiedF(std::ctype_base::cntrl, Loc); } # 108 "/usr/include/boost/algorithm/string/classification.hpp" 3 4 inline detail::is_classifiedF is_digit(const std::locale& Loc=std::locale()) { return detail::is_classifiedF(std::ctype_base::digit, Loc); } # 121 "/usr/include/boost/algorithm/string/classification.hpp" 3 4 inline detail::is_classifiedF is_graph(const std::locale& Loc=std::locale()) { return detail::is_classifiedF(std::ctype_base::graph, Loc); } # 134 "/usr/include/boost/algorithm/string/classification.hpp" 3 4 inline detail::is_classifiedF is_lower(const std::locale& Loc=std::locale()) { return detail::is_classifiedF(std::ctype_base::lower, Loc); } # 147 "/usr/include/boost/algorithm/string/classification.hpp" 3 4 inline detail::is_classifiedF is_print(const std::locale& Loc=std::locale()) { return detail::is_classifiedF(std::ctype_base::print, Loc); } # 160 "/usr/include/boost/algorithm/string/classification.hpp" 3 4 inline detail::is_classifiedF is_punct(const std::locale& Loc=std::locale()) { return detail::is_classifiedF(std::ctype_base::punct, Loc); } # 173 "/usr/include/boost/algorithm/string/classification.hpp" 3 4 inline detail::is_classifiedF is_upper(const std::locale& Loc=std::locale()) { return detail::is_classifiedF(std::ctype_base::upper, Loc); } # 186 "/usr/include/boost/algorithm/string/classification.hpp" 3 4 inline detail::is_classifiedF is_xdigit(const std::locale& Loc=std::locale()) { return detail::is_classifiedF(std::ctype_base::xdigit, Loc); } # 200 "/usr/include/boost/algorithm/string/classification.hpp" 3 4 template inline detail::is_any_ofF< typename range_value::type> is_any_of( const RangeT& Set ) { iterator_range::type> lit_set(boost::as_literal(Set)); return detail::is_any_ofF::type>(lit_set); } # 218 "/usr/include/boost/algorithm/string/classification.hpp" 3 4 template inline detail::is_from_rangeF is_from_range(CharT From, CharT To) { return detail::is_from_rangeF(From,To); } # 236 "/usr/include/boost/algorithm/string/classification.hpp" 3 4 template inline detail::pred_andF operator&&( const predicate_facade& Pred1, const predicate_facade& Pred2 ) { return detail::pred_andF( *static_cast(&Pred1), *static_cast(&Pred2) ); } # 260 "/usr/include/boost/algorithm/string/classification.hpp" 3 4 template inline detail::pred_orF operator||( const predicate_facade& Pred1, const predicate_facade& Pred2 ) { return detail::pred_orF( *static_cast(&Pred1), *static_cast(&Pred2)); } # 282 "/usr/include/boost/algorithm/string/classification.hpp" 3 4 template inline detail::pred_notF operator!( const predicate_facade& Pred ) { return detail::pred_notF(*static_cast(&Pred)); } } using algorithm::is_classified; using algorithm::is_space; using algorithm::is_alnum; using algorithm::is_alpha; using algorithm::is_cntrl; using algorithm::is_digit; using algorithm::is_graph; using algorithm::is_lower; using algorithm::is_upper; using algorithm::is_print; using algorithm::is_punct; using algorithm::is_xdigit; using algorithm::is_any_of; using algorithm::is_from_range; } # 24 "/usr/include/boost/algorithm/string/trim.hpp" 2 3 4 # 38 "/usr/include/boost/algorithm/string/trim.hpp" 3 4 namespace boost { namespace algorithm { # 60 "/usr/include/boost/algorithm/string/trim.hpp" 3 4 template inline OutputIteratorT trim_left_copy_if( OutputIteratorT Output, const RangeT& Input, PredicateT IsSpace) { iterator_range::type> lit_range(::boost::as_literal(Input)); std::copy( ::boost::algorithm::detail::trim_begin( ::boost::begin(lit_range), ::boost::end(lit_range), IsSpace ), ::boost::end(lit_range), Output); return Output; } template inline SequenceT trim_left_copy_if(const SequenceT& Input, PredicateT IsSpace) { return SequenceT( ::boost::algorithm::detail::trim_begin( ::boost::begin(Input), ::boost::end(Input), IsSpace ), ::boost::end(Input)); } # 105 "/usr/include/boost/algorithm/string/trim.hpp" 3 4 template inline SequenceT trim_left_copy(const SequenceT& Input, const std::locale& Loc=std::locale()) { return ::boost::algorithm::trim_left_copy_if( Input, is_space(Loc)); } # 123 "/usr/include/boost/algorithm/string/trim.hpp" 3 4 template inline void trim_left_if(SequenceT& Input, PredicateT IsSpace) { Input.erase( ::boost::begin(Input), ::boost::algorithm::detail::trim_begin( ::boost::begin(Input), ::boost::end(Input), IsSpace)); } # 142 "/usr/include/boost/algorithm/string/trim.hpp" 3 4 template inline void trim_left(SequenceT& Input, const std::locale& Loc=std::locale()) { ::boost::algorithm::trim_left_if( Input, is_space(Loc)); } # 168 "/usr/include/boost/algorithm/string/trim.hpp" 3 4 template inline OutputIteratorT trim_right_copy_if( OutputIteratorT Output, const RangeT& Input, PredicateT IsSpace ) { iterator_range::type> lit_range(::boost::as_literal(Input)); std::copy( ::boost::begin(lit_range), ::boost::algorithm::detail::trim_end( ::boost::begin(lit_range), ::boost::end(lit_range), IsSpace ), Output ); return Output; } template inline SequenceT trim_right_copy_if(const SequenceT& Input, PredicateT IsSpace) { return SequenceT( ::boost::begin(Input), ::boost::algorithm::detail::trim_end( ::boost::begin(Input), ::boost::end(Input), IsSpace) ); } # 214 "/usr/include/boost/algorithm/string/trim.hpp" 3 4 template inline SequenceT trim_right_copy(const SequenceT& Input, const std::locale& Loc=std::locale()) { return ::boost::algorithm::trim_right_copy_if( Input, is_space(Loc)); } # 233 "/usr/include/boost/algorithm/string/trim.hpp" 3 4 template inline void trim_right_if(SequenceT& Input, PredicateT IsSpace) { Input.erase( ::boost::algorithm::detail::trim_end( ::boost::begin(Input), ::boost::end(Input), IsSpace ), ::boost::end(Input) ); } # 254 "/usr/include/boost/algorithm/string/trim.hpp" 3 4 template inline void trim_right(SequenceT& Input, const std::locale& Loc=std::locale()) { ::boost::algorithm::trim_right_if( Input, is_space(Loc) ); } # 280 "/usr/include/boost/algorithm/string/trim.hpp" 3 4 template inline OutputIteratorT trim_copy_if( OutputIteratorT Output, const RangeT& Input, PredicateT IsSpace) { iterator_range::type> lit_range(::boost::as_literal(Input)); typename range_const_iterator::type TrimEnd= ::boost::algorithm::detail::trim_end( ::boost::begin(lit_range), ::boost::end(lit_range), IsSpace); std::copy( detail::trim_begin( ::boost::begin(lit_range), TrimEnd, IsSpace), TrimEnd, Output ); return Output; } template inline SequenceT trim_copy_if(const SequenceT& Input, PredicateT IsSpace) { typename range_const_iterator::type TrimEnd= ::boost::algorithm::detail::trim_end( ::boost::begin(Input), ::boost::end(Input), IsSpace); return SequenceT( detail::trim_begin( ::boost::begin(Input), TrimEnd, IsSpace), TrimEnd ); } # 339 "/usr/include/boost/algorithm/string/trim.hpp" 3 4 template inline SequenceT trim_copy( const SequenceT& Input, const std::locale& Loc=std::locale() ) { return ::boost::algorithm::trim_copy_if( Input, is_space(Loc) ); } # 357 "/usr/include/boost/algorithm/string/trim.hpp" 3 4 template inline void trim_if(SequenceT& Input, PredicateT IsSpace) { ::boost::algorithm::trim_right_if( Input, IsSpace ); ::boost::algorithm::trim_left_if( Input, IsSpace ); } # 372 "/usr/include/boost/algorithm/string/trim.hpp" 3 4 template inline void trim(SequenceT& Input, const std::locale& Loc=std::locale()) { ::boost::algorithm::trim_if( Input, is_space( Loc ) ); } } using algorithm::trim_left; using algorithm::trim_left_if; using algorithm::trim_left_copy; using algorithm::trim_left_copy_if; using algorithm::trim_right; using algorithm::trim_right_if; using algorithm::trim_right_copy; using algorithm::trim_right_copy_if; using algorithm::trim; using algorithm::trim_if; using algorithm::trim_copy; using algorithm::trim_copy_if; } # 20 "/usr/include/boost/algorithm/string.hpp" 2 3 4 # 1 "/usr/include/boost/algorithm/string/case_conv.hpp" 1 3 4 # 17 "/usr/include/boost/algorithm/string/case_conv.hpp" 3 4 # 1 "/usr/include/boost/iterator/transform_iterator.hpp" 1 3 4 # 23 "/usr/include/boost/iterator/transform_iterator.hpp" 3 4 # 1 "/usr/include/boost/utility/result_of.hpp" 1 3 4 # 18 "/usr/include/boost/utility/result_of.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/repetition/enum_shifted_params.hpp" 1 3 4 # 19 "/usr/include/boost/utility/result_of.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/facilities/intercept.hpp" 1 3 4 # 20 "/usr/include/boost/utility/result_of.hpp" 2 3 4 # 66 "/usr/include/boost/utility/result_of.hpp" 3 4 namespace boost { template struct result_of; template struct tr1_result_of; namespace detail { template< typename T, typename fallback_ = boost::mpl::bool_ > struct has_result_type { struct gcc_3_2_wknd { template< typename U > static boost::mpl::aux::yes_tag test( boost::mpl::aux::type_wrapper const volatile* , boost::mpl::aux::type_wrapper* = 0 ); static boost::mpl::aux::no_tag test(...); }; typedef boost::mpl::aux::type_wrapper t_; static const bool value = sizeof(gcc_3_2_wknd::test(static_cast(0))) == sizeof(boost::mpl::aux::yes_tag); typedef boost::mpl::bool_ type; }; template struct tr1_result_of_impl; template struct cpp0x_result_of; # 143 "/usr/include/boost/utility/result_of.hpp" 3 4 template struct result_of_always_void { typedef void type; }; template struct cpp0x_result_of_impl {}; template struct result_of_void_impl { typedef void type; }; template struct result_of_void_impl { typedef R type; }; template struct result_of_void_impl { typedef R type; }; template struct result_of_pointer : tr1_result_of_impl::type, FArgs, false> { }; template struct tr1_result_of_impl { typedef typename F::result_type type; }; template struct is_function_with_no_args : mpl::false_ {}; template struct is_function_with_no_args : mpl::true_ {}; template struct result_of_nested_result : F::template result {}; template struct tr1_result_of_impl : mpl::if_, result_of_void_impl, result_of_nested_result >::type {}; } # 1 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 1 3 4 # 24 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 1 3 4 # 12 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/slot/detail/shared.hpp" 1 3 4 # 13 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 2 3 4 # 25 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 1 3 4 # 12 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/slot/detail/shared.hpp" 1 3 4 # 13 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 2 3 4 # 27 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 47 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 3 4 # 1 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 1 3 4 # 26 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct tr1_result_of : mpl::if_< mpl::or_< is_pointer, is_member_function_pointer > , boost::detail::tr1_result_of_impl< typename remove_cv::type, typename remove_cv::type(), (boost::detail::has_result_type::value)> , boost::detail::tr1_result_of_impl< F, F(), (boost::detail::has_result_type::value)> >::type { }; # 158 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct result_of : tr1_result_of { }; # 48 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 1 3 4 # 26 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct tr1_result_of : mpl::if_< mpl::or_< is_pointer, is_member_function_pointer > , boost::detail::tr1_result_of_impl< typename remove_cv::type, typename remove_cv::type( T0), (boost::detail::has_result_type::value)> , boost::detail::tr1_result_of_impl< F, F( T0), (boost::detail::has_result_type::value)> >::type { }; # 158 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct result_of : tr1_result_of { }; # 169 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 namespace detail { template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; } # 53 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 1 3 4 # 26 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct tr1_result_of : mpl::if_< mpl::or_< is_pointer, is_member_function_pointer > , boost::detail::tr1_result_of_impl< typename remove_cv::type, typename remove_cv::type( T0 , T1), (boost::detail::has_result_type::value)> , boost::detail::tr1_result_of_impl< F, F( T0 , T1), (boost::detail::has_result_type::value)> >::type { }; # 158 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct result_of : tr1_result_of { }; # 169 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 namespace detail { template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; } # 58 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 1 3 4 # 26 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct tr1_result_of : mpl::if_< mpl::or_< is_pointer, is_member_function_pointer > , boost::detail::tr1_result_of_impl< typename remove_cv::type, typename remove_cv::type( T0 , T1 , T2), (boost::detail::has_result_type::value)> , boost::detail::tr1_result_of_impl< F, F( T0 , T1 , T2), (boost::detail::has_result_type::value)> >::type { }; # 158 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct result_of : tr1_result_of { }; # 169 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 namespace detail { template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; } # 63 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 1 3 4 # 26 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct tr1_result_of : mpl::if_< mpl::or_< is_pointer, is_member_function_pointer > , boost::detail::tr1_result_of_impl< typename remove_cv::type, typename remove_cv::type( T0 , T1 , T2 , T3), (boost::detail::has_result_type::value)> , boost::detail::tr1_result_of_impl< F, F( T0 , T1 , T2 , T3), (boost::detail::has_result_type::value)> >::type { }; # 158 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct result_of : tr1_result_of { }; # 169 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 namespace detail { template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; } # 68 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 1 3 4 # 26 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct tr1_result_of : mpl::if_< mpl::or_< is_pointer, is_member_function_pointer > , boost::detail::tr1_result_of_impl< typename remove_cv::type, typename remove_cv::type( T0 , T1 , T2 , T3 , T4), (boost::detail::has_result_type::value)> , boost::detail::tr1_result_of_impl< F, F( T0 , T1 , T2 , T3 , T4), (boost::detail::has_result_type::value)> >::type { }; # 158 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct result_of : tr1_result_of { }; # 169 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 namespace detail { template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; } # 73 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 1 3 4 # 26 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct tr1_result_of : mpl::if_< mpl::or_< is_pointer, is_member_function_pointer > , boost::detail::tr1_result_of_impl< typename remove_cv::type, typename remove_cv::type( T0 , T1 , T2 , T3 , T4 , T5), (boost::detail::has_result_type::value)> , boost::detail::tr1_result_of_impl< F, F( T0 , T1 , T2 , T3 , T4 , T5), (boost::detail::has_result_type::value)> >::type { }; # 158 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct result_of : tr1_result_of { }; # 169 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 namespace detail { template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; } # 78 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 1 3 4 # 26 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct tr1_result_of : mpl::if_< mpl::or_< is_pointer, is_member_function_pointer > , boost::detail::tr1_result_of_impl< typename remove_cv::type, typename remove_cv::type( T0 , T1 , T2 , T3 , T4 , T5 , T6), (boost::detail::has_result_type::value)> , boost::detail::tr1_result_of_impl< F, F( T0 , T1 , T2 , T3 , T4 , T5 , T6), (boost::detail::has_result_type::value)> >::type { }; # 158 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct result_of : tr1_result_of { }; # 169 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 namespace detail { template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; } # 83 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 1 3 4 # 26 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct tr1_result_of : mpl::if_< mpl::or_< is_pointer, is_member_function_pointer > , boost::detail::tr1_result_of_impl< typename remove_cv::type, typename remove_cv::type( T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7), (boost::detail::has_result_type::value)> , boost::detail::tr1_result_of_impl< F, F( T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7), (boost::detail::has_result_type::value)> >::type { }; # 158 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct result_of : tr1_result_of { }; # 169 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 namespace detail { template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; } # 88 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 1 3 4 # 26 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct tr1_result_of : mpl::if_< mpl::or_< is_pointer, is_member_function_pointer > , boost::detail::tr1_result_of_impl< typename remove_cv::type, typename remove_cv::type( T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8), (boost::detail::has_result_type::value)> , boost::detail::tr1_result_of_impl< F, F( T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8), (boost::detail::has_result_type::value)> >::type { }; # 158 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct result_of : tr1_result_of { }; # 169 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 namespace detail { template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; } # 93 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 1 3 4 # 26 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct tr1_result_of : mpl::if_< mpl::or_< is_pointer, is_member_function_pointer > , boost::detail::tr1_result_of_impl< typename remove_cv::type, typename remove_cv::type( T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9), (boost::detail::has_result_type::value)> , boost::detail::tr1_result_of_impl< F, F( T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9), (boost::detail::has_result_type::value)> >::type { }; # 158 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct result_of : tr1_result_of { }; # 169 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 namespace detail { template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; } # 98 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 1 3 4 # 26 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct tr1_result_of : mpl::if_< mpl::or_< is_pointer, is_member_function_pointer > , boost::detail::tr1_result_of_impl< typename remove_cv::type, typename remove_cv::type( T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10), (boost::detail::has_result_type::value)> , boost::detail::tr1_result_of_impl< F, F( T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10), (boost::detail::has_result_type::value)> >::type { }; # 158 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct result_of : tr1_result_of { }; # 169 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 namespace detail { template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; } # 103 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 1 3 4 # 26 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct tr1_result_of : mpl::if_< mpl::or_< is_pointer, is_member_function_pointer > , boost::detail::tr1_result_of_impl< typename remove_cv::type, typename remove_cv::type( T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11), (boost::detail::has_result_type::value)> , boost::detail::tr1_result_of_impl< F, F( T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11), (boost::detail::has_result_type::value)> >::type { }; # 158 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct result_of : tr1_result_of { }; # 169 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 namespace detail { template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; } # 108 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 1 3 4 # 26 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct tr1_result_of : mpl::if_< mpl::or_< is_pointer, is_member_function_pointer > , boost::detail::tr1_result_of_impl< typename remove_cv::type, typename remove_cv::type( T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12), (boost::detail::has_result_type::value)> , boost::detail::tr1_result_of_impl< F, F( T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12), (boost::detail::has_result_type::value)> >::type { }; # 158 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct result_of : tr1_result_of { }; # 169 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 namespace detail { template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; } # 113 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 1 3 4 # 26 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct tr1_result_of : mpl::if_< mpl::or_< is_pointer, is_member_function_pointer > , boost::detail::tr1_result_of_impl< typename remove_cv::type, typename remove_cv::type( T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13), (boost::detail::has_result_type::value)> , boost::detail::tr1_result_of_impl< F, F( T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13), (boost::detail::has_result_type::value)> >::type { }; # 158 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct result_of : tr1_result_of { }; # 169 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 namespace detail { template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; } # 118 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 1 3 4 # 26 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct tr1_result_of : mpl::if_< mpl::or_< is_pointer, is_member_function_pointer > , boost::detail::tr1_result_of_impl< typename remove_cv::type, typename remove_cv::type( T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14), (boost::detail::has_result_type::value)> , boost::detail::tr1_result_of_impl< F, F( T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14), (boost::detail::has_result_type::value)> >::type { }; # 158 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct result_of : tr1_result_of { }; # 169 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 namespace detail { template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; } # 123 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 1 3 4 # 26 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct tr1_result_of : mpl::if_< mpl::or_< is_pointer, is_member_function_pointer > , boost::detail::tr1_result_of_impl< typename remove_cv::type, typename remove_cv::type( T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15), (boost::detail::has_result_type::value)> , boost::detail::tr1_result_of_impl< F, F( T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15), (boost::detail::has_result_type::value)> >::type { }; # 158 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 template struct result_of : tr1_result_of { }; # 169 "/usr/include/boost/utility/detail/result_of_iterate.hpp" 3 4 namespace detail { template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; template struct tr1_result_of_impl { typedef R type; }; } # 128 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 203 "/usr/include/boost/utility/result_of.hpp" 2 3 4 } # 24 "/usr/include/boost/iterator/transform_iterator.hpp" 2 3 4 # 1 "/usr/include/boost/iterator/detail/config_def.hpp" 1 3 4 # 31 "/usr/include/boost/iterator/transform_iterator.hpp" 2 3 4 namespace boost { namespace iterators { template class transform_iterator; namespace detail { template struct transform_iterator_base { private: typedef typename ia_dflt_help< Reference , result_of::reference)> >::type reference; typedef typename ia_dflt_help< Value , remove_reference >::type cv_value_type; public: typedef iterator_adaptor< transform_iterator , Iterator , cv_value_type , use_default , reference > type; }; } template class transform_iterator : public boost::iterators::detail::transform_iterator_base::type { typedef typename boost::iterators::detail::transform_iterator_base::type super_t; friend class iterator_core_access; public: transform_iterator() { } transform_iterator(Iterator const& x, UnaryFunc f) : super_t(x), m_f(f) { } explicit transform_iterator(Iterator const& x) : super_t(x) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((is_class::value) == 0 ? false : true) >)> boost_static_assert_typedef_98 __attribute__((unused)); } template < class OtherUnaryFunction , class OtherIterator , class OtherReference , class OtherValue> transform_iterator( transform_iterator const& t , typename enable_if_convertible::type* = 0 , typename enable_if_convertible::type* = 0 ) : super_t(t.base()), m_f(t.functor()) {} UnaryFunc functor() const { return m_f; } private: typename super_t::reference dereference() const { return m_f(*this->base()); } UnaryFunc m_f; }; template inline transform_iterator make_transform_iterator(Iterator it, UnaryFunc fun) { return transform_iterator(it, fun); } # 143 "/usr/include/boost/iterator/transform_iterator.hpp" 3 4 template inline typename iterators::enable_if< is_class , transform_iterator >::type make_transform_iterator(Iterator it) { return transform_iterator(it, UnaryFunc()); } # 162 "/usr/include/boost/iterator/transform_iterator.hpp" 3 4 } using iterators::transform_iterator; using iterators::make_transform_iterator; } # 1 "/usr/include/boost/iterator/detail/config_undef.hpp" 1 3 4 # 170 "/usr/include/boost/iterator/transform_iterator.hpp" 2 3 4 # 18 "/usr/include/boost/algorithm/string/case_conv.hpp" 2 3 4 # 1 "/usr/include/boost/algorithm/string/detail/case_conv.hpp" 1 3 4 # 20 "/usr/include/boost/algorithm/string/detail/case_conv.hpp" 3 4 namespace boost { namespace algorithm { namespace detail { # 32 "/usr/include/boost/algorithm/string/detail/case_conv.hpp" 3 4 template struct to_lowerF : public std::unary_function { to_lowerF( const std::locale& Loc ) : m_Loc( &Loc ) {} CharT operator ()( CharT Ch ) const { return std::tolower( Ch, *m_Loc ); } private: const std::locale* m_Loc; }; template struct to_upperF : public std::unary_function { to_upperF( const std::locale& Loc ) : m_Loc( &Loc ) {} CharT operator ()( CharT Ch ) const { return std::toupper( Ch, *m_Loc ); } private: const std::locale* m_Loc; }; # 78 "/usr/include/boost/algorithm/string/detail/case_conv.hpp" 3 4 template OutputIteratorT transform_range_copy( OutputIteratorT Output, const RangeT& Input, FunctorT Functor) { return std::transform( ::boost::begin(Input), ::boost::end(Input), Output, Functor); } template void transform_range( const RangeT& Input, FunctorT Functor) { std::transform( ::boost::begin(Input), ::boost::end(Input), ::boost::begin(Input), Functor); } template inline SequenceT transform_range_copy( const RangeT& Input, FunctorT Functor) { return SequenceT( ::boost::make_transform_iterator( ::boost::begin(Input), Functor), ::boost::make_transform_iterator( ::boost::end(Input), Functor)); } } } } # 25 "/usr/include/boost/algorithm/string/case_conv.hpp" 2 3 4 namespace boost { namespace algorithm { # 53 "/usr/include/boost/algorithm/string/case_conv.hpp" 3 4 template inline OutputIteratorT to_lower_copy( OutputIteratorT Output, const RangeT& Input, const std::locale& Loc=std::locale()) { return ::boost::algorithm::detail::transform_range_copy( Output, ::boost::as_literal(Input), ::boost::algorithm::detail::to_lowerF< typename range_value::type >(Loc)); } template inline SequenceT to_lower_copy( const SequenceT& Input, const std::locale& Loc=std::locale()) { return ::boost::algorithm::detail::transform_range_copy( Input, ::boost::algorithm::detail::to_lowerF< typename range_value::type >(Loc)); } # 90 "/usr/include/boost/algorithm/string/case_conv.hpp" 3 4 template inline void to_lower( WritableRangeT& Input, const std::locale& Loc=std::locale()) { ::boost::algorithm::detail::transform_range( ::boost::as_literal(Input), ::boost::algorithm::detail::to_lowerF< typename range_value::type >(Loc)); } # 118 "/usr/include/boost/algorithm/string/case_conv.hpp" 3 4 template inline OutputIteratorT to_upper_copy( OutputIteratorT Output, const RangeT& Input, const std::locale& Loc=std::locale()) { return ::boost::algorithm::detail::transform_range_copy( Output, ::boost::as_literal(Input), ::boost::algorithm::detail::to_upperF< typename range_value::type >(Loc)); } template inline SequenceT to_upper_copy( const SequenceT& Input, const std::locale& Loc=std::locale()) { return ::boost::algorithm::detail::transform_range_copy( Input, ::boost::algorithm::detail::to_upperF< typename range_value::type >(Loc)); } # 155 "/usr/include/boost/algorithm/string/case_conv.hpp" 3 4 template inline void to_upper( WritableRangeT& Input, const std::locale& Loc=std::locale()) { ::boost::algorithm::detail::transform_range( ::boost::as_literal(Input), ::boost::algorithm::detail::to_upperF< typename range_value::type >(Loc)); } } using algorithm::to_lower; using algorithm::to_lower_copy; using algorithm::to_upper; using algorithm::to_upper_copy; } # 21 "/usr/include/boost/algorithm/string.hpp" 2 3 4 # 1 "/usr/include/boost/algorithm/string/predicate.hpp" 1 3 4 # 22 "/usr/include/boost/algorithm/string/predicate.hpp" 3 4 # 1 "/usr/include/boost/algorithm/string/compare.hpp" 1 3 4 # 24 "/usr/include/boost/algorithm/string/compare.hpp" 3 4 namespace boost { namespace algorithm { # 34 "/usr/include/boost/algorithm/string/compare.hpp" 3 4 struct is_equal { template< typename T1, typename T2 > bool operator()( const T1& Arg1, const T2& Arg2 ) const { return Arg1==Arg2; } }; struct is_iequal { is_iequal( const std::locale& Loc=std::locale() ) : m_Loc( Loc ) {} template< typename T1, typename T2 > bool operator()( const T1& Arg1, const T2& Arg2 ) const { return std::toupper(Arg1,m_Loc)==std::toupper(Arg2,m_Loc); } private: std::locale m_Loc; }; # 86 "/usr/include/boost/algorithm/string/compare.hpp" 3 4 struct is_less { template< typename T1, typename T2 > bool operator()( const T1& Arg1, const T2& Arg2 ) const { return Arg1 bool operator()( const T1& Arg1, const T2& Arg2 ) const { return std::toupper(Arg1,m_Loc)(Arg2,m_Loc); } private: std::locale m_Loc; }; # 139 "/usr/include/boost/algorithm/string/compare.hpp" 3 4 struct is_not_greater { template< typename T1, typename T2 > bool operator()( const T1& Arg1, const T2& Arg2 ) const { return Arg1<=Arg2; } }; struct is_not_igreater { is_not_igreater( const std::locale& Loc=std::locale() ) : m_Loc( Loc ) {} template< typename T1, typename T2 > bool operator()( const T1& Arg1, const T2& Arg2 ) const { return std::toupper(Arg1,m_Loc)<=std::toupper(Arg2,m_Loc); } private: std::locale m_Loc; }; } using algorithm::is_equal; using algorithm::is_iequal; using algorithm::is_less; using algorithm::is_iless; using algorithm::is_not_greater; using algorithm::is_not_igreater; } # 23 "/usr/include/boost/algorithm/string/predicate.hpp" 2 3 4 # 1 "/usr/include/boost/algorithm/string/find.hpp" 1 3 4 # 22 "/usr/include/boost/algorithm/string/find.hpp" 3 4 # 1 "/usr/include/boost/algorithm/string/finder.hpp" 1 3 4 # 22 "/usr/include/boost/algorithm/string/finder.hpp" 3 4 # 1 "/usr/include/boost/algorithm/string/constants.hpp" 1 3 4 # 14 "/usr/include/boost/algorithm/string/constants.hpp" 3 4 namespace boost { namespace algorithm { enum token_compress_mode_type { token_compress_on, token_compress_off }; } using algorithm::token_compress_on; using algorithm::token_compress_off; } # 23 "/usr/include/boost/algorithm/string/finder.hpp" 2 3 4 # 1 "/usr/include/boost/algorithm/string/detail/finder.hpp" 1 3 4 # 24 "/usr/include/boost/algorithm/string/detail/finder.hpp" 3 4 namespace boost { namespace algorithm { namespace detail { # 36 "/usr/include/boost/algorithm/string/detail/finder.hpp" 3 4 template struct first_finderF { typedef SearchIteratorT search_iterator_type; template< typename SearchT > first_finderF( const SearchT& Search, PredicateT Comp ) : m_Search(::boost::begin(Search), ::boost::end(Search)), m_Comp(Comp) {} first_finderF( search_iterator_type SearchBegin, search_iterator_type SearchEnd, PredicateT Comp ) : m_Search(SearchBegin, SearchEnd), m_Comp(Comp) {} template< typename ForwardIteratorT > iterator_range operator()( ForwardIteratorT Begin, ForwardIteratorT End ) const { typedef iterator_range result_type; typedef ForwardIteratorT input_iterator_type; for(input_iterator_type OuterIt=Begin; OuterIt!=End; ++OuterIt) { if( boost::empty(m_Search) ) return result_type( End, End ); input_iterator_type InnerIt=OuterIt; search_iterator_type SubstrIt=m_Search.begin(); for(; InnerIt!=End && SubstrIt!=m_Search.end(); ++InnerIt,++SubstrIt) { if( !( m_Comp(*InnerIt,*SubstrIt) ) ) break; } if ( SubstrIt==m_Search.end() ) return result_type( OuterIt, InnerIt ); } return result_type( End, End ); } private: iterator_range m_Search; PredicateT m_Comp; }; # 100 "/usr/include/boost/algorithm/string/detail/finder.hpp" 3 4 template struct last_finderF { typedef SearchIteratorT search_iterator_type; typedef first_finderF< search_iterator_type, PredicateT> first_finder_type; template< typename SearchT > last_finderF( const SearchT& Search, PredicateT Comp ) : m_Search(::boost::begin(Search), ::boost::end(Search)), m_Comp(Comp) {} last_finderF( search_iterator_type SearchBegin, search_iterator_type SearchEnd, PredicateT Comp ) : m_Search(SearchBegin, SearchEnd), m_Comp(Comp) {} template< typename ForwardIteratorT > iterator_range operator()( ForwardIteratorT Begin, ForwardIteratorT End ) const { typedef iterator_range result_type; if( boost::empty(m_Search) ) return result_type( End, End ); typedef typename boost::detail:: iterator_traits::iterator_category category; return findit( Begin, End, category() ); } private: template< typename ForwardIteratorT > iterator_range findit( ForwardIteratorT Begin, ForwardIteratorT End, std::forward_iterator_tag ) const { typedef iterator_range result_type; first_finder_type first_finder( m_Search.begin(), m_Search.end(), m_Comp ); result_type M=first_finder( Begin, End ); result_type Last=M; while( M ) { Last=M; M=first_finder( ::boost::end(M), End ); } return Last; } template< typename ForwardIteratorT > iterator_range findit( ForwardIteratorT Begin, ForwardIteratorT End, std::bidirectional_iterator_tag ) const { typedef iterator_range result_type; typedef ForwardIteratorT input_iterator_type; for(input_iterator_type OuterIt=End; OuterIt!=Begin; ) { input_iterator_type OuterIt2=--OuterIt; input_iterator_type InnerIt=OuterIt2; search_iterator_type SubstrIt=m_Search.begin(); for(; InnerIt!=End && SubstrIt!=m_Search.end(); ++InnerIt,++SubstrIt) { if( !( m_Comp(*InnerIt,*SubstrIt) ) ) break; } if( SubstrIt==m_Search.end() ) return result_type( OuterIt2, InnerIt ); } return result_type( End, End ); } private: iterator_range m_Search; PredicateT m_Comp; }; # 209 "/usr/include/boost/algorithm/string/detail/finder.hpp" 3 4 template struct nth_finderF { typedef SearchIteratorT search_iterator_type; typedef first_finderF< search_iterator_type, PredicateT> first_finder_type; typedef last_finderF< search_iterator_type, PredicateT> last_finder_type; template< typename SearchT > nth_finderF( const SearchT& Search, int Nth, PredicateT Comp) : m_Search(::boost::begin(Search), ::boost::end(Search)), m_Nth(Nth), m_Comp(Comp) {} nth_finderF( search_iterator_type SearchBegin, search_iterator_type SearchEnd, int Nth, PredicateT Comp) : m_Search(SearchBegin, SearchEnd), m_Nth(Nth), m_Comp(Comp) {} template< typename ForwardIteratorT > iterator_range operator()( ForwardIteratorT Begin, ForwardIteratorT End ) const { if(m_Nth>=0) { return find_forward(Begin, End, m_Nth); } else { return find_backward(Begin, End, -m_Nth); } } private: template< typename ForwardIteratorT > iterator_range find_forward( ForwardIteratorT Begin, ForwardIteratorT End, unsigned int N) const { typedef iterator_range result_type; if( boost::empty(m_Search) ) return result_type( End, End ); first_finder_type first_finder( m_Search.begin(), m_Search.end(), m_Comp ); result_type M( Begin, Begin ); for( unsigned int n=0; n<=N; ++n ) { M=first_finder( ::boost::end(M), End ); if ( !M ) { return M; } } return M; } template< typename ForwardIteratorT > iterator_range find_backward( ForwardIteratorT Begin, ForwardIteratorT End, unsigned int N) const { typedef iterator_range result_type; if( boost::empty(m_Search) ) return result_type( End, End ); last_finder_type last_finder( m_Search.begin(), m_Search.end(), m_Comp ); result_type M( End, End ); for( unsigned int n=1; n<=N; ++n ) { M=last_finder( Begin, ::boost::begin(M) ); if ( !M ) { return M; } } return M; } private: iterator_range m_Search; int m_Nth; PredicateT m_Comp; }; template iterator_range find_head_impl( ForwardIteratorT Begin, ForwardIteratorT End, unsigned int N, std::forward_iterator_tag ) { typedef ForwardIteratorT input_iterator_type; typedef iterator_range result_type; input_iterator_type It=Begin; for( unsigned int Index=0; Index iterator_range find_head_impl( ForwardIteratorT Begin, ForwardIteratorT End, unsigned int N, std::random_access_iterator_tag ) { typedef iterator_range result_type; if ( (End<=Begin) || ( static_cast(End-Begin) < N ) ) return result_type( Begin, End ); return result_type(Begin,Begin+N); } template iterator_range find_head_impl( ForwardIteratorT Begin, ForwardIteratorT End, unsigned int N ) { typedef typename boost::detail:: iterator_traits::iterator_category category; return ::boost::algorithm::detail::find_head_impl( Begin, End, N, category() ); } template< typename ForwardIteratorT > iterator_range find_tail_impl( ForwardIteratorT Begin, ForwardIteratorT End, unsigned int N, std::forward_iterator_tag ) { typedef ForwardIteratorT input_iterator_type; typedef iterator_range result_type; unsigned int Index=0; input_iterator_type It=Begin; input_iterator_type It2=Begin; for( Index=0; Index iterator_range find_tail_impl( ForwardIteratorT Begin, ForwardIteratorT End, unsigned int N, std::bidirectional_iterator_tag ) { typedef ForwardIteratorT input_iterator_type; typedef iterator_range result_type; input_iterator_type It=End; for( unsigned int Index=0; Index iterator_range find_tail_impl( ForwardIteratorT Begin, ForwardIteratorT End, unsigned int N, std::random_access_iterator_tag ) { typedef iterator_range result_type; if ( (End<=Begin) || ( static_cast(End-Begin) < N ) ) return result_type( Begin, End ); return result_type( End-N, End ); } template< typename ForwardIteratorT > iterator_range find_tail_impl( ForwardIteratorT Begin, ForwardIteratorT End, unsigned int N ) { typedef typename boost::detail:: iterator_traits::iterator_category category; return ::boost::algorithm::detail::find_tail_impl( Begin, End, N, category() ); } # 468 "/usr/include/boost/algorithm/string/detail/finder.hpp" 3 4 struct head_finderF { head_finderF( int N ) : m_N(N) {} template< typename ForwardIteratorT > iterator_range operator()( ForwardIteratorT Begin, ForwardIteratorT End ) const { if(m_N>=0) { return ::boost::algorithm::detail::find_head_impl( Begin, End, m_N ); } else { iterator_range Res= ::boost::algorithm::detail::find_tail_impl( Begin, End, -m_N ); return ::boost::make_iterator_range(Begin, Res.begin()); } } private: int m_N; }; # 506 "/usr/include/boost/algorithm/string/detail/finder.hpp" 3 4 struct tail_finderF { tail_finderF( int N ) : m_N(N) {} template< typename ForwardIteratorT > iterator_range operator()( ForwardIteratorT Begin, ForwardIteratorT End ) const { if(m_N>=0) { return ::boost::algorithm::detail::find_tail_impl( Begin, End, m_N ); } else { iterator_range Res= ::boost::algorithm::detail::find_head_impl( Begin, End, -m_N ); return ::boost::make_iterator_range(Res.end(), End); } } private: int m_N; }; # 547 "/usr/include/boost/algorithm/string/detail/finder.hpp" 3 4 template< typename PredicateT > struct token_finderF { token_finderF( PredicateT Pred, token_compress_mode_type eCompress=token_compress_off ) : m_Pred(Pred), m_eCompress(eCompress) {} template< typename ForwardIteratorT > iterator_range operator()( ForwardIteratorT Begin, ForwardIteratorT End ) const { typedef iterator_range result_type; ForwardIteratorT It=std::find_if( Begin, End, m_Pred ); if( It==End ) { return result_type( End, End ); } else { ForwardIteratorT It2=It; if( m_eCompress==token_compress_on ) { while( It2!=End && m_Pred(*It2) ) ++It2; } else { ++It2; } return result_type( It, It2 ); } } private: PredicateT m_Pred; token_compress_mode_type m_eCompress; }; # 602 "/usr/include/boost/algorithm/string/detail/finder.hpp" 3 4 template struct range_finderF { typedef ForwardIterator1T input_iterator_type; typedef iterator_range result_type; range_finderF( input_iterator_type Begin, input_iterator_type End ) : m_Range(Begin, End) {} range_finderF(const iterator_range& Range) : m_Range(Range) {} template< typename ForwardIterator2T > iterator_range operator()( ForwardIterator2T, ForwardIterator2T ) const { return m_Range; } private: iterator_range m_Range; }; } } } # 24 "/usr/include/boost/algorithm/string/finder.hpp" 2 3 4 # 34 "/usr/include/boost/algorithm/string/finder.hpp" 3 4 namespace boost { namespace algorithm { # 49 "/usr/include/boost/algorithm/string/finder.hpp" 3 4 template inline detail::first_finderF< typename range_const_iterator::type, is_equal> first_finder( const RangeT& Search ) { return detail::first_finderF< typename range_const_iterator::type, is_equal>( ::boost::as_literal(Search), is_equal() ) ; } template inline detail::first_finderF< typename range_const_iterator::type, PredicateT> first_finder( const RangeT& Search, PredicateT Comp ) { return detail::first_finderF< typename range_const_iterator::type, PredicateT>( ::boost::as_literal(Search), Comp ); } # 90 "/usr/include/boost/algorithm/string/finder.hpp" 3 4 template inline detail::last_finderF< typename range_const_iterator::type, is_equal> last_finder( const RangeT& Search ) { return detail::last_finderF< typename range_const_iterator::type, is_equal>( ::boost::as_literal(Search), is_equal() ); } template inline detail::last_finderF< typename range_const_iterator::type, PredicateT> last_finder( const RangeT& Search, PredicateT Comp ) { return detail::last_finderF< typename range_const_iterator::type, PredicateT>( ::boost::as_literal(Search), Comp ) ; } # 130 "/usr/include/boost/algorithm/string/finder.hpp" 3 4 template inline detail::nth_finderF< typename range_const_iterator::type, is_equal> nth_finder( const RangeT& Search, int Nth) { return detail::nth_finderF< typename range_const_iterator::type, is_equal>( ::boost::as_literal(Search), Nth, is_equal() ) ; } template inline detail::nth_finderF< typename range_const_iterator::type, PredicateT> nth_finder( const RangeT& Search, int Nth, PredicateT Comp ) { return detail::nth_finderF< typename range_const_iterator::type, PredicateT>( ::boost::as_literal(Search), Nth, Comp ); } # 175 "/usr/include/boost/algorithm/string/finder.hpp" 3 4 inline detail::head_finderF head_finder( int N ) { return detail::head_finderF(N); } # 192 "/usr/include/boost/algorithm/string/finder.hpp" 3 4 inline detail::tail_finderF tail_finder( int N ) { return detail::tail_finderF(N); } # 216 "/usr/include/boost/algorithm/string/finder.hpp" 3 4 template< typename PredicateT > inline detail::token_finderF token_finder( PredicateT Pred, token_compress_mode_type eCompress=token_compress_off ) { return detail::token_finderF( Pred, eCompress ); } # 236 "/usr/include/boost/algorithm/string/finder.hpp" 3 4 template< typename ForwardIteratorT > inline detail::range_finderF range_finder( ForwardIteratorT Begin, ForwardIteratorT End ) { return detail::range_finderF( Begin, End ); } template< typename ForwardIteratorT > inline detail::range_finderF range_finder( iterator_range Range ) { return detail::range_finderF( Range ); } } using algorithm::first_finder; using algorithm::last_finder; using algorithm::nth_finder; using algorithm::head_finder; using algorithm::tail_finder; using algorithm::token_finder; using algorithm::range_finder; } # 23 "/usr/include/boost/algorithm/string/find.hpp" 2 3 4 # 32 "/usr/include/boost/algorithm/string/find.hpp" 3 4 namespace boost { namespace algorithm { # 49 "/usr/include/boost/algorithm/string/find.hpp" 3 4 template inline iterator_range< typename range_iterator::type> find( RangeT& Input, const FinderT& Finder) { iterator_range::type> lit_input(::boost::as_literal(Input)); return Finder(::boost::begin(lit_input),::boost::end(lit_input)); } # 77 "/usr/include/boost/algorithm/string/find.hpp" 3 4 template inline iterator_range< typename range_iterator::type> find_first( Range1T& Input, const Range2T& Search) { return ::boost::algorithm::find(Input, ::boost::algorithm::first_finder(Search)); } # 103 "/usr/include/boost/algorithm/string/find.hpp" 3 4 template inline iterator_range< typename range_iterator::type> ifind_first( Range1T& Input, const Range2T& Search, const std::locale& Loc=std::locale()) { return ::boost::algorithm::find(Input, ::boost::algorithm::first_finder(Search,is_iequal(Loc))); } # 130 "/usr/include/boost/algorithm/string/find.hpp" 3 4 template inline iterator_range< typename range_iterator::type> find_last( Range1T& Input, const Range2T& Search) { return ::boost::algorithm::find(Input, ::boost::algorithm::last_finder(Search)); } # 156 "/usr/include/boost/algorithm/string/find.hpp" 3 4 template inline iterator_range< typename range_iterator::type> ifind_last( Range1T& Input, const Range2T& Search, const std::locale& Loc=std::locale()) { return ::boost::algorithm::find(Input, ::boost::algorithm::last_finder(Search, is_iequal(Loc))); } # 184 "/usr/include/boost/algorithm/string/find.hpp" 3 4 template inline iterator_range< typename range_iterator::type> find_nth( Range1T& Input, const Range2T& Search, int Nth) { return ::boost::algorithm::find(Input, ::boost::algorithm::nth_finder(Search,Nth)); } # 214 "/usr/include/boost/algorithm/string/find.hpp" 3 4 template inline iterator_range< typename range_iterator::type> ifind_nth( Range1T& Input, const Range2T& Search, int Nth, const std::locale& Loc=std::locale()) { return ::boost::algorithm::find(Input, ::boost::algorithm::nth_finder(Search,Nth,is_iequal(Loc))); } # 246 "/usr/include/boost/algorithm/string/find.hpp" 3 4 template inline iterator_range< typename range_iterator::type> find_head( RangeT& Input, int N) { return ::boost::algorithm::find(Input, ::boost::algorithm::head_finder(N)); } # 277 "/usr/include/boost/algorithm/string/find.hpp" 3 4 template inline iterator_range< typename range_iterator::type> find_tail( RangeT& Input, int N) { return ::boost::algorithm::find(Input, ::boost::algorithm::tail_finder(N)); } # 306 "/usr/include/boost/algorithm/string/find.hpp" 3 4 template inline iterator_range< typename range_iterator::type> find_token( RangeT& Input, PredicateT Pred, token_compress_mode_type eCompress=token_compress_off) { return ::boost::algorithm::find(Input, ::boost::algorithm::token_finder(Pred, eCompress)); } } using algorithm::find; using algorithm::find_first; using algorithm::ifind_first; using algorithm::find_last; using algorithm::ifind_last; using algorithm::find_nth; using algorithm::ifind_nth; using algorithm::find_head; using algorithm::find_tail; using algorithm::find_token; } # 24 "/usr/include/boost/algorithm/string/predicate.hpp" 2 3 4 # 1 "/usr/include/boost/algorithm/string/detail/predicate.hpp" 1 3 4 # 17 "/usr/include/boost/algorithm/string/detail/predicate.hpp" 3 4 namespace boost { namespace algorithm { namespace detail { template< typename ForwardIterator1T, typename ForwardIterator2T, typename PredicateT> inline bool ends_with_iter_select( ForwardIterator1T Begin, ForwardIterator1T End, ForwardIterator2T SubBegin, ForwardIterator2T SubEnd, PredicateT Comp, std::bidirectional_iterator_tag) { ForwardIterator1T it=End; ForwardIterator2T pit=SubEnd; for(;it!=Begin && pit!=SubBegin;) { if( !(Comp(*(--it),*(--pit))) ) return false; } return pit==SubBegin; } template< typename ForwardIterator1T, typename ForwardIterator2T, typename PredicateT> inline bool ends_with_iter_select( ForwardIterator1T Begin, ForwardIterator1T End, ForwardIterator2T SubBegin, ForwardIterator2T SubEnd, PredicateT Comp, std::forward_iterator_tag) { if ( SubBegin==SubEnd ) { return true; } iterator_range Result =last_finder( ::boost::make_iterator_range(SubBegin, SubEnd), Comp)(Begin, End); return !Result.empty() && Result.end()==End; } } } } # 25 "/usr/include/boost/algorithm/string/predicate.hpp" 2 3 4 # 37 "/usr/include/boost/algorithm/string/predicate.hpp" 3 4 namespace boost { namespace algorithm { # 56 "/usr/include/boost/algorithm/string/predicate.hpp" 3 4 template inline bool starts_with( const Range1T& Input, const Range2T& Test, PredicateT Comp) { iterator_range::type> lit_input(::boost::as_literal(Input)); iterator_range::type> lit_test(::boost::as_literal(Test)); typedef typename range_const_iterator::type Iterator1T; typedef typename range_const_iterator::type Iterator2T; Iterator1T InputEnd=::boost::end(lit_input); Iterator2T TestEnd=::boost::end(lit_test); Iterator1T it=::boost::begin(lit_input); Iterator2T pit=::boost::begin(lit_test); for(; it!=InputEnd && pit!=TestEnd; ++it,++pit) { if( !(Comp(*it,*pit)) ) return false; } return pit==TestEnd; } template inline bool starts_with( const Range1T& Input, const Range2T& Test) { return ::boost::algorithm::starts_with(Input, Test, is_equal()); } # 111 "/usr/include/boost/algorithm/string/predicate.hpp" 3 4 template inline bool istarts_with( const Range1T& Input, const Range2T& Test, const std::locale& Loc=std::locale()) { return ::boost::algorithm::starts_with(Input, Test, is_iequal(Loc)); } # 138 "/usr/include/boost/algorithm/string/predicate.hpp" 3 4 template inline bool ends_with( const Range1T& Input, const Range2T& Test, PredicateT Comp) { iterator_range::type> lit_input(::boost::as_literal(Input)); iterator_range::type> lit_test(::boost::as_literal(Test)); typedef typename range_const_iterator::type Iterator1T; typedef typename boost::detail:: iterator_traits::iterator_category category; return detail:: ends_with_iter_select( ::boost::begin(lit_input), ::boost::end(lit_input), ::boost::begin(lit_test), ::boost::end(lit_test), Comp, category()); } template inline bool ends_with( const Range1T& Input, const Range2T& Test) { return ::boost::algorithm::ends_with(Input, Test, is_equal()); } # 188 "/usr/include/boost/algorithm/string/predicate.hpp" 3 4 template inline bool iends_with( const Range1T& Input, const Range2T& Test, const std::locale& Loc=std::locale()) { return ::boost::algorithm::ends_with(Input, Test, is_iequal(Loc)); } # 212 "/usr/include/boost/algorithm/string/predicate.hpp" 3 4 template inline bool contains( const Range1T& Input, const Range2T& Test, PredicateT Comp) { iterator_range::type> lit_input(::boost::as_literal(Input)); iterator_range::type> lit_test(::boost::as_literal(Test)); if (::boost::empty(lit_test)) { return true; } bool bResult=(::boost::algorithm::first_finder(lit_test,Comp)(::boost::begin(lit_input), ::boost::end(lit_input))); return bResult; } template inline bool contains( const Range1T& Input, const Range2T& Test) { return ::boost::algorithm::contains(Input, Test, is_equal()); } # 256 "/usr/include/boost/algorithm/string/predicate.hpp" 3 4 template inline bool icontains( const Range1T& Input, const Range2T& Test, const std::locale& Loc=std::locale()) { return ::boost::algorithm::contains(Input, Test, is_iequal(Loc)); } # 283 "/usr/include/boost/algorithm/string/predicate.hpp" 3 4 template inline bool equals( const Range1T& Input, const Range2T& Test, PredicateT Comp) { iterator_range::type> lit_input(::boost::as_literal(Input)); iterator_range::type> lit_test(::boost::as_literal(Test)); typedef typename range_const_iterator::type Iterator1T; typedef typename range_const_iterator::type Iterator2T; Iterator1T InputEnd=::boost::end(lit_input); Iterator2T TestEnd=::boost::end(lit_test); Iterator1T it=::boost::begin(lit_input); Iterator2T pit=::boost::begin(lit_test); for(; it!=InputEnd && pit!=TestEnd; ++it,++pit) { if( !(Comp(*it,*pit)) ) return false; } return (pit==TestEnd) && (it==InputEnd); } template inline bool equals( const Range1T& Input, const Range2T& Test) { return ::boost::algorithm::equals(Input, Test, is_equal()); } # 340 "/usr/include/boost/algorithm/string/predicate.hpp" 3 4 template inline bool iequals( const Range1T& Input, const Range2T& Test, const std::locale& Loc=std::locale()) { return ::boost::algorithm::equals(Input, Test, is_iequal(Loc)); } # 369 "/usr/include/boost/algorithm/string/predicate.hpp" 3 4 template inline bool lexicographical_compare( const Range1T& Arg1, const Range2T& Arg2, PredicateT Pred) { iterator_range::type> lit_arg1(::boost::as_literal(Arg1)); iterator_range::type> lit_arg2(::boost::as_literal(Arg2)); return std::lexicographical_compare( ::boost::begin(lit_arg1), ::boost::end(lit_arg1), ::boost::begin(lit_arg2), ::boost::end(lit_arg2), Pred); } template inline bool lexicographical_compare( const Range1T& Arg1, const Range2T& Arg2) { return ::boost::algorithm::lexicographical_compare(Arg1, Arg2, is_less()); } # 414 "/usr/include/boost/algorithm/string/predicate.hpp" 3 4 template inline bool ilexicographical_compare( const Range1T& Arg1, const Range2T& Arg2, const std::locale& Loc=std::locale()) { return ::boost::algorithm::lexicographical_compare(Arg1, Arg2, is_iless(Loc)); } # 437 "/usr/include/boost/algorithm/string/predicate.hpp" 3 4 template inline bool all( const RangeT& Input, PredicateT Pred) { iterator_range::type> lit_input(::boost::as_literal(Input)); typedef typename range_const_iterator::type Iterator1T; Iterator1T InputEnd=::boost::end(lit_input); for( Iterator1T It=::boost::begin(lit_input); It!=InputEnd; ++It) { if (!Pred(*It)) return false; } return true; } } using algorithm::starts_with; using algorithm::istarts_with; using algorithm::ends_with; using algorithm::iends_with; using algorithm::contains; using algorithm::icontains; using algorithm::equals; using algorithm::iequals; using algorithm::all; using algorithm::lexicographical_compare; using algorithm::ilexicographical_compare; } # 22 "/usr/include/boost/algorithm/string.hpp" 2 3 4 # 1 "/usr/include/boost/algorithm/string/split.hpp" 1 3 4 # 16 "/usr/include/boost/algorithm/string/split.hpp" 3 4 # 1 "/usr/include/boost/algorithm/string/iter_find.hpp" 1 3 4 # 26 "/usr/include/boost/algorithm/string/iter_find.hpp" 3 4 # 1 "/usr/include/boost/algorithm/string/concept.hpp" 1 3 4 # 23 "/usr/include/boost/algorithm/string/concept.hpp" 3 4 namespace boost { namespace algorithm { # 34 "/usr/include/boost/algorithm/string/concept.hpp" 3 4 template struct FinderConcept { private: typedef iterator_range range; public: void constraints() { r=(*pF)(i,i); } private: range r; IteratorT i; FinderT* pF; }; # 61 "/usr/include/boost/algorithm/string/concept.hpp" 3 4 template struct FormatterConcept { public: void constraints() { ::boost::begin((*pFo)( (*pF)(i,i) )); ::boost::end((*pFo)( (*pF)(i,i) )); } private: IteratorT i; FinderT* pF; FormatterT *pFo; }; } } # 27 "/usr/include/boost/algorithm/string/iter_find.hpp" 2 3 4 # 1 "/usr/include/boost/algorithm/string/find_iterator.hpp" 1 3 4 # 24 "/usr/include/boost/algorithm/string/find_iterator.hpp" 3 4 # 1 "/usr/include/boost/algorithm/string/detail/find_iterator.hpp" 1 3 4 # 18 "/usr/include/boost/algorithm/string/detail/find_iterator.hpp" 3 4 # 1 "/usr/include/boost/function.hpp" 1 3 4 # 64 "/usr/include/boost/function.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 1 3 4 # 24 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 1 3 4 # 12 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/slot/detail/shared.hpp" 1 3 4 # 13 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 2 3 4 # 25 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 1 3 4 # 12 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/slot/detail/shared.hpp" 1 3 4 # 13 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 2 3 4 # 27 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 47 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 48 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 53 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 58 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 63 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 68 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 73 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 78 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 83 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 88 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 93 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 98 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 65 "/usr/include/boost/function.hpp" 2 3 4 # 19 "/usr/include/boost/algorithm/string/detail/find_iterator.hpp" 2 3 4 namespace boost { namespace algorithm { namespace detail { template class find_iterator_base { protected: typedef IteratorT input_iterator_type; typedef iterator_range match_type; typedef function2< match_type, input_iterator_type, input_iterator_type> finder_type; protected: find_iterator_base() {}; find_iterator_base( const find_iterator_base& Other ) : m_Finder(Other.m_Finder) {} template find_iterator_base( FinderT Finder, int ) : m_Finder(Finder) {} ~find_iterator_base() {} match_type do_find( input_iterator_type Begin, input_iterator_type End ) const { if (!m_Finder.empty()) { return m_Finder(Begin,End); } else { return match_type(End,End); } } bool is_null() const { return m_Finder.empty(); } private: finder_type m_Finder; }; } } } # 25 "/usr/include/boost/algorithm/string/find_iterator.hpp" 2 3 4 # 33 "/usr/include/boost/algorithm/string/find_iterator.hpp" 3 4 namespace boost { namespace algorithm { # 49 "/usr/include/boost/algorithm/string/find_iterator.hpp" 3 4 template class find_iterator : public iterator_facade< find_iterator, const iterator_range, forward_traversal_tag >, private detail::find_iterator_base { private: friend class ::boost::iterator_core_access; private: typedef detail::find_iterator_base base_type; typedef typename base_type::input_iterator_type input_iterator_type; typedef typename base_type::match_type match_type; public: find_iterator() {} find_iterator( const find_iterator& Other ) : base_type(Other), m_Match(Other.m_Match), m_End(Other.m_End) {} template find_iterator( IteratorT Begin, IteratorT End, FinderT Finder ) : detail::find_iterator_base(Finder,0), m_Match(Begin,Begin), m_End(End) { increment(); } template find_iterator( RangeT& Col, FinderT Finder ) : detail::find_iterator_base(Finder,0) { iterator_range::type> lit_col(::boost::as_literal(Col)); m_Match=::boost::make_iterator_range(::boost::begin(lit_col), ::boost::begin(lit_col)); m_End=::boost::end(lit_col); increment(); } private: const match_type& dereference() const { return m_Match; } void increment() { m_Match=this->do_find(m_Match.end(),m_End); } bool equal( const find_iterator& Other ) const { bool bEof=eof(); bool bOtherEof=Other.eof(); return bEof || bOtherEof ? bEof==bOtherEof : ( m_Match==Other.m_Match && m_End==Other.m_End ); } public: # 160 "/usr/include/boost/algorithm/string/find_iterator.hpp" 3 4 bool eof() const { return this->is_null() || ( m_Match.begin() == m_End && m_Match.end() == m_End ); } private: match_type m_Match; input_iterator_type m_End; }; template inline find_iterator< typename range_iterator::type> make_find_iterator( RangeT& Collection, FinderT Finder) { return find_iterator::type>( Collection, Finder); } # 205 "/usr/include/boost/algorithm/string/find_iterator.hpp" 3 4 template class split_iterator : public iterator_facade< split_iterator, const iterator_range, forward_traversal_tag >, private detail::find_iterator_base { private: friend class ::boost::iterator_core_access; private: typedef detail::find_iterator_base base_type; typedef typename base_type::input_iterator_type input_iterator_type; typedef typename base_type::match_type match_type; public: split_iterator() { m_bEof = true; } split_iterator( const split_iterator& Other ) : base_type(Other), m_Match(Other.m_Match), m_Next(Other.m_Next), m_End(Other.m_End), m_bEof(Other.m_bEof) {} template split_iterator( IteratorT Begin, IteratorT End, FinderT Finder ) : detail::find_iterator_base(Finder,0), m_Match(Begin,Begin), m_Next(Begin), m_End(End), m_bEof(false) { if(Begin!=End) { increment(); } } template split_iterator( RangeT& Col, FinderT Finder ) : detail::find_iterator_base(Finder,0), m_bEof(false) { iterator_range::type> lit_col(::boost::as_literal(Col)); m_Match=make_iterator_range(::boost::begin(lit_col), ::boost::begin(lit_col)); m_Next=::boost::begin(lit_col); m_End=::boost::end(lit_col); if(m_Next!=m_End) { increment(); } } private: const match_type& dereference() const { return m_Match; } void increment() { match_type FindMatch=this->do_find( m_Next, m_End ); if(FindMatch.begin()==m_End && FindMatch.end()==m_End) { if(m_Match.end()==m_End) { m_bEof=true; } } m_Match=match_type( m_Next, FindMatch.begin() ); m_Next=FindMatch.end(); } bool equal( const split_iterator& Other ) const { bool bEof=eof(); bool bOtherEof=Other.eof(); return bEof || bOtherEof ? bEof==bOtherEof : ( m_Match==Other.m_Match && m_Next==Other.m_Next && m_End==Other.m_End ); } public: # 343 "/usr/include/boost/algorithm/string/find_iterator.hpp" 3 4 bool eof() const { return this->is_null() || m_bEof; } private: match_type m_Match; input_iterator_type m_Next; input_iterator_type m_End; bool m_bEof; }; template inline split_iterator< typename range_iterator::type> make_split_iterator( RangeT& Collection, FinderT Finder) { return split_iterator::type>( Collection, Finder); } } using algorithm::find_iterator; using algorithm::make_find_iterator; using algorithm::split_iterator; using algorithm::make_split_iterator; } # 28 "/usr/include/boost/algorithm/string/iter_find.hpp" 2 3 4 # 1 "/usr/include/boost/algorithm/string/detail/util.hpp" 1 3 4 # 18 "/usr/include/boost/algorithm/string/detail/util.hpp" 3 4 namespace boost { namespace algorithm { namespace detail { # 31 "/usr/include/boost/algorithm/string/detail/util.hpp" 3 4 template< typename CharT > struct empty_container { typedef empty_container type; typedef CharT value_type; typedef std::size_t size_type; typedef std::ptrdiff_t difference_type; typedef const value_type& reference; typedef const value_type& const_reference; typedef const value_type* iterator; typedef const value_type* const_iterator; const_iterator begin() const { return reinterpret_cast(0); } const_iterator end() const { return reinterpret_cast(0); } bool empty() const { return false; } size_type size() const { return 0; } }; template inline OutputIteratorT bounded_copy( InputIteratorT First, InputIteratorT Last, OutputIteratorT DestFirst, OutputIteratorT DestLast ) { InputIteratorT InputIt=First; OutputIteratorT OutputIt=DestFirst; for(; InputIt!=Last && OutputIt!=DestLast; InputIt++, OutputIt++ ) { *OutputIt=*InputIt; } return OutputIt; } template< typename SeqT, typename IteratorT=typename SeqT::const_iterator > struct copy_iterator_rangeF : public std::unary_function< iterator_range, SeqT > { SeqT operator()( const iterator_range& Range ) const { return copy_range(Range); } }; } } } # 29 "/usr/include/boost/algorithm/string/iter_find.hpp" 2 3 4 # 41 "/usr/include/boost/algorithm/string/iter_find.hpp" 3 4 namespace boost { namespace algorithm { # 67 "/usr/include/boost/algorithm/string/iter_find.hpp" 3 4 template< typename SequenceSequenceT, typename RangeT, typename FinderT > inline SequenceSequenceT& iter_find( SequenceSequenceT& Result, RangeT& Input, FinderT Finder ) { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_::type> )>::failed> boost_concept_check81 __attribute__((unused)) ; iterator_range::type> lit_input(::boost::as_literal(Input)); typedef typename range_iterator::type input_iterator_type; typedef find_iterator find_iterator_type; typedef detail::copy_iterator_rangeF< typename range_value::type, input_iterator_type> copy_range_type; input_iterator_type InputEnd=::boost::end(lit_input); typedef transform_iterator transform_iter_type; transform_iter_type itBegin= ::boost::make_transform_iterator( find_iterator_type( ::boost::begin(lit_input), InputEnd, Finder ), copy_range_type()); transform_iter_type itEnd= ::boost::make_transform_iterator( find_iterator_type(), copy_range_type()); SequenceSequenceT Tmp(itBegin, itEnd); Result.swap(Tmp); return Result; } # 138 "/usr/include/boost/algorithm/string/iter_find.hpp" 3 4 template< typename SequenceSequenceT, typename RangeT, typename FinderT > inline SequenceSequenceT& iter_split( SequenceSequenceT& Result, RangeT& Input, FinderT Finder ) { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_::type> )>::failed> boost_concept_check151 __attribute__((unused)) ; iterator_range::type> lit_input(::boost::as_literal(Input)); typedef typename range_iterator::type input_iterator_type; typedef split_iterator find_iterator_type; typedef detail::copy_iterator_rangeF< typename range_value::type, input_iterator_type> copy_range_type; input_iterator_type InputEnd=::boost::end(lit_input); typedef transform_iterator transform_iter_type; transform_iter_type itBegin= ::boost::make_transform_iterator( find_iterator_type( ::boost::begin(lit_input), InputEnd, Finder ), copy_range_type() ); transform_iter_type itEnd= ::boost::make_transform_iterator( find_iterator_type(), copy_range_type() ); SequenceSequenceT Tmp(itBegin, itEnd); Result.swap(Tmp); return Result; } } using algorithm::iter_find; using algorithm::iter_split; } # 17 "/usr/include/boost/algorithm/string/split.hpp" 2 3 4 # 34 "/usr/include/boost/algorithm/string/split.hpp" 3 4 namespace boost { namespace algorithm { # 61 "/usr/include/boost/algorithm/string/split.hpp" 3 4 template< typename SequenceSequenceT, typename Range1T, typename Range2T > inline SequenceSequenceT& find_all( SequenceSequenceT& Result, Range1T& Input, const Range2T& Search) { return ::boost::algorithm::iter_find( Result, Input, ::boost::algorithm::first_finder(Search) ); } # 96 "/usr/include/boost/algorithm/string/split.hpp" 3 4 template< typename SequenceSequenceT, typename Range1T, typename Range2T > inline SequenceSequenceT& ifind_all( SequenceSequenceT& Result, Range1T& Input, const Range2T& Search, const std::locale& Loc=std::locale() ) { return ::boost::algorithm::iter_find( Result, Input, ::boost::algorithm::first_finder(Search, is_iequal(Loc) ) ); } # 139 "/usr/include/boost/algorithm/string/split.hpp" 3 4 template< typename SequenceSequenceT, typename RangeT, typename PredicateT > inline SequenceSequenceT& split( SequenceSequenceT& Result, RangeT& Input, PredicateT Pred, token_compress_mode_type eCompress=token_compress_off ) { return ::boost::algorithm::iter_split( Result, Input, ::boost::algorithm::token_finder( Pred, eCompress ) ); } } using algorithm::find_all; using algorithm::ifind_all; using algorithm::split; } # 24 "/usr/include/boost/algorithm/string.hpp" 2 3 4 # 1 "/usr/include/boost/algorithm/string/join.hpp" 1 3 4 # 15 "/usr/include/boost/algorithm/string/join.hpp" 3 4 # 1 "/usr/include/boost/algorithm/string/detail/sequence.hpp" 1 3 4 # 22 "/usr/include/boost/algorithm/string/detail/sequence.hpp" 3 4 namespace boost { namespace algorithm { namespace detail { template< typename InputT, typename ForwardIteratorT > inline void insert( InputT& Input, typename InputT::iterator At, ForwardIteratorT Begin, ForwardIteratorT End ) { Input.insert( At, Begin, End ); } template< typename InputT, typename InsertT > inline void insert( InputT& Input, typename InputT::iterator At, const InsertT& Insert ) { ::boost::algorithm::detail::insert( Input, At, ::boost::begin(Insert), ::boost::end(Insert) ); } template< typename InputT > inline typename InputT::iterator erase( InputT& Input, typename InputT::iterator From, typename InputT::iterator To ) { return Input.erase( From, To ); } template< bool HasConstTimeOperations > struct replace_const_time_helper { template< typename InputT, typename ForwardIteratorT > void operator()( InputT& Input, typename InputT::iterator From, typename InputT::iterator To, ForwardIteratorT Begin, ForwardIteratorT End ) { ForwardIteratorT InsertIt=Begin; typename InputT::iterator InputIt=From; for(; InsertIt!=End && InputIt!=To; InsertIt++, InputIt++ ) { *InputIt=*InsertIt; } if ( InsertIt!=End ) { Input.insert( InputIt, InsertIt, End ); } else { if ( InputIt!=To ) { Input.erase( InputIt, To ); } } } }; template<> struct replace_const_time_helper< true > { template< typename InputT, typename ForwardIteratorT > void operator()( InputT& Input, typename InputT::iterator From, typename InputT::iterator To, ForwardIteratorT Begin, ForwardIteratorT End ) { typename InputT::iterator At=Input.erase( From, To ); if ( Begin!=End ) { if(!Input.empty()) { Input.insert( At, Begin, End ); } else { Input.insert( Input.begin(), Begin, End ); } } } }; template< bool HasNative > struct replace_native_helper { template< typename InputT, typename ForwardIteratorT > void operator()( InputT& Input, typename InputT::iterator From, typename InputT::iterator To, ForwardIteratorT Begin, ForwardIteratorT End ) { replace_const_time_helper< boost::mpl::and_< has_const_time_insert, has_const_time_erase >::value >()( Input, From, To, Begin, End ); } }; template<> struct replace_native_helper< true > { template< typename InputT, typename ForwardIteratorT > void operator()( InputT& Input, typename InputT::iterator From, typename InputT::iterator To, ForwardIteratorT Begin, ForwardIteratorT End ) { Input.replace( From, To, Begin, End ); } }; template< typename InputT, typename ForwardIteratorT > inline void replace( InputT& Input, typename InputT::iterator From, typename InputT::iterator To, ForwardIteratorT Begin, ForwardIteratorT End ) { replace_native_helper< has_native_replace::value >()( Input, From, To, Begin, End ); } template< typename InputT, typename InsertT > inline void replace( InputT& Input, typename InputT::iterator From, typename InputT::iterator To, const InsertT& Insert ) { if(From!=To) { ::boost::algorithm::detail::replace( Input, From, To, ::boost::begin(Insert), ::boost::end(Insert) ); } else { ::boost::algorithm::detail::insert( Input, From, ::boost::begin(Insert), ::boost::end(Insert) ); } } } } } # 16 "/usr/include/boost/algorithm/string/join.hpp" 2 3 4 # 28 "/usr/include/boost/algorithm/string/join.hpp" 3 4 namespace boost { namespace algorithm { # 44 "/usr/include/boost/algorithm/string/join.hpp" 3 4 template< typename SequenceSequenceT, typename Range1T> inline typename range_value::type join( const SequenceSequenceT& Input, const Range1T& Separator) { typedef typename range_value::type ResultT; typedef typename range_const_iterator::type InputIteratorT; InputIteratorT itBegin=::boost::begin(Input); InputIteratorT itEnd=::boost::end(Input); ResultT Result; if(itBegin!=itEnd) { detail::insert(Result, ::boost::end(Result), *itBegin); ++itBegin; } for(;itBegin!=itEnd; ++itBegin) { detail::insert(Result, ::boost::end(Result), ::boost::as_literal(Separator)); detail::insert(Result, ::boost::end(Result), *itBegin); } return Result; } # 94 "/usr/include/boost/algorithm/string/join.hpp" 3 4 template< typename SequenceSequenceT, typename Range1T, typename PredicateT> inline typename range_value::type join_if( const SequenceSequenceT& Input, const Range1T& Separator, PredicateT Pred) { typedef typename range_value::type ResultT; typedef typename range_const_iterator::type InputIteratorT; InputIteratorT itBegin=::boost::begin(Input); InputIteratorT itEnd=::boost::end(Input); ResultT Result; while(itBegin!=itEnd && !Pred(*itBegin)) ++itBegin; if(itBegin!=itEnd) { detail::insert(Result, ::boost::end(Result), *itBegin); ++itBegin; } for(;itBegin!=itEnd; ++itBegin) { if(Pred(*itBegin)) { detail::insert(Result, ::boost::end(Result), ::boost::as_literal(Separator)); detail::insert(Result, ::boost::end(Result), *itBegin); } } return Result; } } using algorithm::join; using algorithm::join_if; } # 25 "/usr/include/boost/algorithm/string.hpp" 2 3 4 # 1 "/usr/include/boost/algorithm/string/replace.hpp" 1 3 4 # 22 "/usr/include/boost/algorithm/string/replace.hpp" 3 4 # 1 "/usr/include/boost/algorithm/string/find_format.hpp" 1 3 4 # 14 "/usr/include/boost/algorithm/string/find_format.hpp" 3 4 # 1 "/usr/include/c++/5.0.0/deque" 1 3 4 # 58 "/usr/include/c++/5.0.0/deque" 3 4 # 59 "/usr/include/c++/5.0.0/deque" 3 # 1 "/usr/include/c++/5.0.0/bits/stl_deque.h" 1 3 # 66 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 88 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 inline size_t __deque_buf_size(size_t __size) { return (__size < 512 ? size_t(512 / __size) : size_t(1)); } # 105 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 template struct _Deque_iterator { typedef _Deque_iterator<_Tp, _Tp&, _Tp*> iterator; typedef _Deque_iterator<_Tp, const _Tp&, const _Tp*> const_iterator; typedef _Tp* _Elt_pointer; typedef _Tp** _Map_pointer; # 126 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 static size_t _S_buffer_size() { return __deque_buf_size(sizeof(_Tp)); } typedef std::random_access_iterator_tag iterator_category; typedef _Tp value_type; typedef _Ptr pointer; typedef _Ref reference; typedef size_t size_type; typedef ptrdiff_t difference_type; typedef _Deque_iterator _Self; _Elt_pointer _M_cur; _Elt_pointer _M_first; _Elt_pointer _M_last; _Map_pointer _M_node; _Deque_iterator(_Elt_pointer __x, _Map_pointer __y) : _M_cur(__x), _M_first(*__y), _M_last(*__y + _S_buffer_size()), _M_node(__y) { } _Deque_iterator() : _M_cur(), _M_first(), _M_last(), _M_node() { } _Deque_iterator(const iterator& __x) : _M_cur(__x._M_cur), _M_first(__x._M_first), _M_last(__x._M_last), _M_node(__x._M_node) { } iterator _M_const_cast() const { return iterator(_M_cur, _M_node); } reference operator*() const { return *_M_cur; } pointer operator->() const { return _M_cur; } _Self& operator++() { ++_M_cur; if (_M_cur == _M_last) { _M_set_node(_M_node + 1); _M_cur = _M_first; } return *this; } _Self operator++(int) { _Self __tmp = *this; ++*this; return __tmp; } _Self& operator--() { if (_M_cur == _M_first) { _M_set_node(_M_node - 1); _M_cur = _M_last; } --_M_cur; return *this; } _Self operator--(int) { _Self __tmp = *this; --*this; return __tmp; } _Self& operator+=(difference_type __n) { const difference_type __offset = __n + (_M_cur - _M_first); if (__offset >= 0 && __offset < difference_type(_S_buffer_size())) _M_cur += __n; else { const difference_type __node_offset = __offset > 0 ? __offset / difference_type(_S_buffer_size()) : -difference_type((-__offset - 1) / _S_buffer_size()) - 1; _M_set_node(_M_node + __node_offset); _M_cur = _M_first + (__offset - __node_offset * difference_type(_S_buffer_size())); } return *this; } _Self operator+(difference_type __n) const { _Self __tmp = *this; return __tmp += __n; } _Self& operator-=(difference_type __n) { return *this += -__n; } _Self operator-(difference_type __n) const { _Self __tmp = *this; return __tmp -= __n; } reference operator[](difference_type __n) const { return *(*this + __n); } void _M_set_node(_Map_pointer __new_node) { _M_node = __new_node; _M_first = *__new_node; _M_last = _M_first + difference_type(_S_buffer_size()); } }; template inline bool operator==(const _Deque_iterator<_Tp, _Ref, _Ptr>& __x, const _Deque_iterator<_Tp, _Ref, _Ptr>& __y) { return __x._M_cur == __y._M_cur; } template inline bool operator==(const _Deque_iterator<_Tp, _RefL, _PtrL>& __x, const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) { return __x._M_cur == __y._M_cur; } template inline bool operator!=(const _Deque_iterator<_Tp, _Ref, _Ptr>& __x, const _Deque_iterator<_Tp, _Ref, _Ptr>& __y) { return !(__x == __y); } template inline bool operator!=(const _Deque_iterator<_Tp, _RefL, _PtrL>& __x, const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) { return !(__x == __y); } template inline bool operator<(const _Deque_iterator<_Tp, _Ref, _Ptr>& __x, const _Deque_iterator<_Tp, _Ref, _Ptr>& __y) { return (__x._M_node == __y._M_node) ? (__x._M_cur < __y._M_cur) : (__x._M_node < __y._M_node); } template inline bool operator<(const _Deque_iterator<_Tp, _RefL, _PtrL>& __x, const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) { return (__x._M_node == __y._M_node) ? (__x._M_cur < __y._M_cur) : (__x._M_node < __y._M_node); } template inline bool operator>(const _Deque_iterator<_Tp, _Ref, _Ptr>& __x, const _Deque_iterator<_Tp, _Ref, _Ptr>& __y) { return __y < __x; } template inline bool operator>(const _Deque_iterator<_Tp, _RefL, _PtrL>& __x, const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) { return __y < __x; } template inline bool operator<=(const _Deque_iterator<_Tp, _Ref, _Ptr>& __x, const _Deque_iterator<_Tp, _Ref, _Ptr>& __y) { return !(__y < __x); } template inline bool operator<=(const _Deque_iterator<_Tp, _RefL, _PtrL>& __x, const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) { return !(__y < __x); } template inline bool operator>=(const _Deque_iterator<_Tp, _Ref, _Ptr>& __x, const _Deque_iterator<_Tp, _Ref, _Ptr>& __y) { return !(__x < __y); } template inline bool operator>=(const _Deque_iterator<_Tp, _RefL, _PtrL>& __x, const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) { return !(__x < __y); } template inline typename _Deque_iterator<_Tp, _Ref, _Ptr>::difference_type operator-(const _Deque_iterator<_Tp, _Ref, _Ptr>& __x, const _Deque_iterator<_Tp, _Ref, _Ptr>& __y) { return typename _Deque_iterator<_Tp, _Ref, _Ptr>::difference_type (_Deque_iterator<_Tp, _Ref, _Ptr>::_S_buffer_size()) * (__x._M_node - __y._M_node - 1) + (__x._M_cur - __x._M_first) + (__y._M_last - __y._M_cur); } template inline typename _Deque_iterator<_Tp, _RefL, _PtrL>::difference_type operator-(const _Deque_iterator<_Tp, _RefL, _PtrL>& __x, const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) { return typename _Deque_iterator<_Tp, _RefL, _PtrL>::difference_type (_Deque_iterator<_Tp, _RefL, _PtrL>::_S_buffer_size()) * (__x._M_node - __y._M_node - 1) + (__x._M_cur - __x._M_first) + (__y._M_last - __y._M_cur); } template inline _Deque_iterator<_Tp, _Ref, _Ptr> operator+(ptrdiff_t __n, const _Deque_iterator<_Tp, _Ref, _Ptr>& __x) { return __x + __n; } template void fill(const _Deque_iterator<_Tp, _Tp&, _Tp*>&, const _Deque_iterator<_Tp, _Tp&, _Tp*>&, const _Tp&); template _Deque_iterator<_Tp, _Tp&, _Tp*> copy(_Deque_iterator<_Tp, const _Tp&, const _Tp*>, _Deque_iterator<_Tp, const _Tp&, const _Tp*>, _Deque_iterator<_Tp, _Tp&, _Tp*>); template inline _Deque_iterator<_Tp, _Tp&, _Tp*> copy(_Deque_iterator<_Tp, _Tp&, _Tp*> __first, _Deque_iterator<_Tp, _Tp&, _Tp*> __last, _Deque_iterator<_Tp, _Tp&, _Tp*> __result) { return std::copy(_Deque_iterator<_Tp, const _Tp&, const _Tp*>(__first), _Deque_iterator<_Tp, const _Tp&, const _Tp*>(__last), __result); } template _Deque_iterator<_Tp, _Tp&, _Tp*> copy_backward(_Deque_iterator<_Tp, const _Tp&, const _Tp*>, _Deque_iterator<_Tp, const _Tp&, const _Tp*>, _Deque_iterator<_Tp, _Tp&, _Tp*>); template inline _Deque_iterator<_Tp, _Tp&, _Tp*> copy_backward(_Deque_iterator<_Tp, _Tp&, _Tp*> __first, _Deque_iterator<_Tp, _Tp&, _Tp*> __last, _Deque_iterator<_Tp, _Tp&, _Tp*> __result) { return std::copy_backward(_Deque_iterator<_Tp, const _Tp&, const _Tp*>(__first), _Deque_iterator<_Tp, const _Tp&, const _Tp*>(__last), __result); } # 457 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 template class _Deque_base { protected: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template rebind<_Tp>::other _Tp_alloc_type; typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Alloc_traits; typedef _Tp* _Ptr; typedef const _Tp* _Ptr_const; typedef typename _Alloc_traits::template rebind<_Ptr>::other _Map_alloc_type; typedef __gnu_cxx::__alloc_traits<_Map_alloc_type> _Map_alloc_traits; public: typedef _Alloc allocator_type; typedef typename _Alloc_traits::size_type size_type; allocator_type get_allocator() const { return allocator_type(_M_get_Tp_allocator()); } typedef _Deque_iterator<_Tp, _Tp&, _Ptr> iterator; typedef _Deque_iterator<_Tp, const _Tp&, _Ptr_const> const_iterator; _Deque_base() : _M_impl() { _M_initialize_map(0); } _Deque_base(size_t __num_elements) : _M_impl() { _M_initialize_map(__num_elements); } _Deque_base(const allocator_type& __a, size_t __num_elements) : _M_impl(__a) { _M_initialize_map(__num_elements); } _Deque_base(const allocator_type& __a) : _M_impl(__a) { } # 540 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 ~_Deque_base() ; protected: typedef typename iterator::_Map_pointer _Map_pointer; struct _Deque_impl : public _Tp_alloc_type { _Map_pointer _M_map; size_t _M_map_size; iterator _M_start; iterator _M_finish; _Deque_impl() : _Tp_alloc_type(), _M_map(), _M_map_size(0), _M_start(), _M_finish() { } _Deque_impl(const _Tp_alloc_type& __a) : _Tp_alloc_type(__a), _M_map(), _M_map_size(0), _M_start(), _M_finish() { } # 575 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 void _M_swap_data(_Deque_impl& __x) { using std::swap; swap(this->_M_start, __x._M_start); swap(this->_M_finish, __x._M_finish); swap(this->_M_map, __x._M_map); swap(this->_M_map_size, __x._M_map_size); } }; _Tp_alloc_type& _M_get_Tp_allocator() { return *static_cast<_Tp_alloc_type*>(&this->_M_impl); } const _Tp_alloc_type& _M_get_Tp_allocator() const { return *static_cast(&this->_M_impl); } _Map_alloc_type _M_get_map_allocator() const { return _Map_alloc_type(_M_get_Tp_allocator()); } _Ptr _M_allocate_node() { typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Traits; return _Traits::allocate(_M_impl, __deque_buf_size(sizeof(_Tp))); } void _M_deallocate_node(_Ptr __p) { typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Traits; _Traits::deallocate(_M_impl, __p, __deque_buf_size(sizeof(_Tp))); } _Map_pointer _M_allocate_map(size_t __n) { _Map_alloc_type __map_alloc = _M_get_map_allocator(); return _Map_alloc_traits::allocate(__map_alloc, __n); } void _M_deallocate_map(_Map_pointer __p, size_t __n) { _Map_alloc_type __map_alloc = _M_get_map_allocator(); _Map_alloc_traits::deallocate(__map_alloc, __p, __n); } protected: void _M_initialize_map(size_t); void _M_create_nodes(_Map_pointer __nstart, _Map_pointer __nfinish); void _M_destroy_nodes(_Map_pointer __nstart, _Map_pointer __nfinish) ; enum { _S_initial_map_size = 8 }; _Deque_impl _M_impl; # 655 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 }; template _Deque_base<_Tp, _Alloc>:: ~_Deque_base() { if (this->_M_impl._M_map) { _M_destroy_nodes(this->_M_impl._M_start._M_node, this->_M_impl._M_finish._M_node + 1); _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); } } # 677 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 template void _Deque_base<_Tp, _Alloc>:: _M_initialize_map(size_t __num_elements) { const size_t __num_nodes = (__num_elements/ __deque_buf_size(sizeof(_Tp)) + 1); this->_M_impl._M_map_size = std::max((size_t) _S_initial_map_size, size_t(__num_nodes + 2)); this->_M_impl._M_map = _M_allocate_map(this->_M_impl._M_map_size); _Map_pointer __nstart = (this->_M_impl._M_map + (this->_M_impl._M_map_size - __num_nodes) / 2); _Map_pointer __nfinish = __nstart + __num_nodes; try { _M_create_nodes(__nstart, __nfinish); } catch(...) { _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); this->_M_impl._M_map = _Map_pointer(); this->_M_impl._M_map_size = 0; throw; } this->_M_impl._M_start._M_set_node(__nstart); this->_M_impl._M_finish._M_set_node(__nfinish - 1); this->_M_impl._M_start._M_cur = _M_impl._M_start._M_first; this->_M_impl._M_finish._M_cur = (this->_M_impl._M_finish._M_first + __num_elements % __deque_buf_size(sizeof(_Tp))); } template void _Deque_base<_Tp, _Alloc>:: _M_create_nodes(_Map_pointer __nstart, _Map_pointer __nfinish) { _Map_pointer __cur; try { for (__cur = __nstart; __cur < __nfinish; ++__cur) *__cur = this->_M_allocate_node(); } catch(...) { _M_destroy_nodes(__nstart, __cur); throw; } } template void _Deque_base<_Tp, _Alloc>:: _M_destroy_nodes(_Map_pointer __nstart, _Map_pointer __nfinish) { for (_Map_pointer __n = __nstart; __n < __nfinish; ++__n) _M_deallocate_node(*__n); } # 828 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 template > class deque : protected _Deque_base<_Tp, _Alloc> { typedef typename _Alloc::value_type _Alloc_value_type; typedef _Deque_base<_Tp, _Alloc> _Base; typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; typedef typename _Base::_Alloc_traits _Alloc_traits; typedef typename _Base::_Map_pointer _Map_pointer; public: typedef _Tp value_type; typedef typename _Alloc_traits::pointer pointer; typedef typename _Alloc_traits::const_pointer const_pointer; typedef typename _Alloc_traits::reference reference; typedef typename _Alloc_traits::const_reference const_reference; typedef typename _Base::iterator iterator; typedef typename _Base::const_iterator const_iterator; typedef std::reverse_iterator const_reverse_iterator; typedef std::reverse_iterator reverse_iterator; typedef size_t size_type; typedef ptrdiff_t difference_type; typedef _Alloc allocator_type; protected: static size_t _S_buffer_size() { return __deque_buf_size(sizeof(_Tp)); } using _Base::_M_initialize_map; using _Base::_M_create_nodes; using _Base::_M_destroy_nodes; using _Base::_M_allocate_node; using _Base::_M_deallocate_node; using _Base::_M_allocate_map; using _Base::_M_deallocate_map; using _Base::_M_get_Tp_allocator; using _Base::_M_impl; public: deque() : _Base() { } explicit deque(const allocator_type& __a) : _Base(__a, 0) { } # 926 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 explicit deque(size_type __n, const value_type& __value = value_type(), const allocator_type& __a = allocator_type()) : _Base(__a, __n) { _M_fill_initialize(__value); } # 940 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 deque(const deque& __x) : _Base(_Alloc_traits::_S_select_on_copy(__x._M_get_Tp_allocator()), __x.size()) { std::__uninitialized_copy_a(__x.begin(), __x.end(), this->_M_impl._M_start, _M_get_Tp_allocator()); } # 1021 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 template deque(_InputIterator __first, _InputIterator __last, const allocator_type& __a = allocator_type()) : _Base(__a) { typedef typename std::__is_integer<_InputIterator>::__type _Integral; _M_initialize_dispatch(__first, __last, _Integral()); } ~deque() { _M_destroy_data(begin(), end(), _M_get_Tp_allocator()); } # 1047 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 deque& operator=(const deque& __x); # 1097 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 void assign(size_type __n, const value_type& __val) { _M_fill_assign(__n, __val); } # 1120 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 template void assign(_InputIterator __first, _InputIterator __last) { typedef typename std::__is_integer<_InputIterator>::__type _Integral; _M_assign_dispatch(__first, __last, _Integral()); } # 1147 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 allocator_type get_allocator() const { return _Base::get_allocator(); } iterator begin() { return this->_M_impl._M_start; } const_iterator begin() const { return this->_M_impl._M_start; } iterator end() { return this->_M_impl._M_finish; } const_iterator end() const { return this->_M_impl._M_finish; } reverse_iterator rbegin() { return reverse_iterator(this->_M_impl._M_finish); } const_reverse_iterator rbegin() const { return const_reverse_iterator(this->_M_impl._M_finish); } reverse_iterator rend() { return reverse_iterator(this->_M_impl._M_start); } const_reverse_iterator rend() const { return const_reverse_iterator(this->_M_impl._M_start); } # 1261 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 size_type size() const { return this->_M_impl._M_finish - this->_M_impl._M_start; } size_type max_size() const { return _Alloc_traits::max_size(_M_get_Tp_allocator()); } # 1324 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 void resize(size_type __new_size, value_type __x = value_type()) { const size_type __len = size(); if (__new_size > __len) insert(this->_M_impl._M_finish, __new_size - __len, __x); else if (__new_size < __len) _M_erase_at_end(this->_M_impl._M_start + difference_type(__new_size)); } # 1347 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 bool empty() const { return this->_M_impl._M_finish == this->_M_impl._M_start; } # 1363 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 reference operator[](size_type __n) { return this->_M_impl._M_start[difference_type(__n)]; } # 1378 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 const_reference operator[](size_type __n) const { return this->_M_impl._M_start[difference_type(__n)]; } protected: void _M_range_check(size_type __n) const { if (__n >= this->size()) __throw_out_of_range_fmt(("deque::_M_range_check: __n " "(which is %zu)>= this->size() " "(which is %zu)") , __n, this->size()); } public: # 1406 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 reference at(size_type __n) { _M_range_check(__n); return (*this)[__n]; } # 1424 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 const_reference at(size_type __n) const { _M_range_check(__n); return (*this)[__n]; } reference front() { return *begin(); } const_reference front() const { return *begin(); } reference back() { iterator __tmp = end(); --__tmp; return *__tmp; } const_reference back() const { const_iterator __tmp = end(); --__tmp; return *__tmp; } # 1481 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 void push_front(const value_type& __x) { if (this->_M_impl._M_start._M_cur != this->_M_impl._M_start._M_first) { _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_start._M_cur - 1, __x); --this->_M_impl._M_start._M_cur; } else _M_push_front_aux(__x); } # 1514 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 void push_back(const value_type& __x) { if (this->_M_impl._M_finish._M_cur != this->_M_impl._M_finish._M_last - 1) { _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish._M_cur, __x); ++this->_M_impl._M_finish._M_cur; } else _M_push_back_aux(__x); } # 1546 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 void pop_front() { if (this->_M_impl._M_start._M_cur != this->_M_impl._M_start._M_last - 1) { _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_start._M_cur); ++this->_M_impl._M_start._M_cur; } else _M_pop_front_aux(); } # 1568 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 void pop_back() { if (this->_M_impl._M_finish._M_cur != this->_M_impl._M_finish._M_first) { --this->_M_impl._M_finish._M_cur; _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish._M_cur); } else _M_pop_back_aux(); } # 1617 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 iterator insert(iterator __position, const value_type& __x); # 1677 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 void insert(iterator __position, size_type __n, const value_type& __x) { _M_fill_insert(__position, __n, __x); } # 1716 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 template void insert(iterator __position, _InputIterator __first, _InputIterator __last) { typedef typename std::__is_integer<_InputIterator>::__type _Integral; _M_insert_dispatch(__position, __first, __last, _Integral()); } # 1740 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 iterator erase(iterator __position) { return _M_erase(__position._M_const_cast()); } # 1764 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 iterator erase(iterator __first, iterator __last) { return _M_erase(__first._M_const_cast(), __last._M_const_cast()); } # 1781 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 void swap(deque& __x) { _M_impl._M_swap_data(__x._M_impl); _Alloc_traits::_S_on_swap(_M_get_Tp_allocator(), __x._M_get_Tp_allocator()); } void clear() { _M_erase_at_end(begin()); } protected: template void _M_initialize_dispatch(_Integer __n, _Integer __x, __true_type) { _M_initialize_map(static_cast(__n)); _M_fill_initialize(__x); } template void _M_initialize_dispatch(_InputIterator __first, _InputIterator __last, __false_type) { typedef typename std::iterator_traits<_InputIterator>:: iterator_category _IterCategory; _M_range_initialize(__first, __last, _IterCategory()); } # 1840 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 template void _M_range_initialize(_InputIterator __first, _InputIterator __last, std::input_iterator_tag); template void _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, std::forward_iterator_tag); # 1862 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 void _M_fill_initialize(const value_type& __value); # 1878 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 template void _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) { _M_fill_assign(__n, __val); } template void _M_assign_dispatch(_InputIterator __first, _InputIterator __last, __false_type) { typedef typename std::iterator_traits<_InputIterator>:: iterator_category _IterCategory; _M_assign_aux(__first, __last, _IterCategory()); } template void _M_assign_aux(_InputIterator __first, _InputIterator __last, std::input_iterator_tag); template void _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, std::forward_iterator_tag) { const size_type __len = std::distance(__first, __last); if (__len > size()) { _ForwardIterator __mid = __first; std::advance(__mid, size()); std::copy(__first, __mid, begin()); insert(end(), __mid, __last); } else _M_erase_at_end(std::copy(__first, __last, begin())); } void _M_fill_assign(size_type __n, const value_type& __val) { if (__n > size()) { std::fill(begin(), end(), __val); insert(end(), __n - size(), __val); } else { _M_erase_at_end(begin() + difference_type(__n)); std::fill(begin(), end(), __val); } } void _M_push_back_aux(const value_type&); void _M_push_front_aux(const value_type&); # 1949 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 void _M_pop_back_aux(); void _M_pop_front_aux(); # 1961 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 template void _M_insert_dispatch(iterator __pos, _Integer __n, _Integer __x, __true_type) { _M_fill_insert(__pos, __n, __x); } template void _M_insert_dispatch(iterator __pos, _InputIterator __first, _InputIterator __last, __false_type) { typedef typename std::iterator_traits<_InputIterator>:: iterator_category _IterCategory; _M_range_insert_aux(__pos, __first, __last, _IterCategory()); } template void _M_range_insert_aux(iterator __pos, _InputIterator __first, _InputIterator __last, std::input_iterator_tag); template void _M_range_insert_aux(iterator __pos, _ForwardIterator __first, _ForwardIterator __last, std::forward_iterator_tag); void _M_fill_insert(iterator __pos, size_type __n, const value_type& __x); iterator _M_insert_aux(iterator __pos, const value_type& __x); void _M_insert_aux(iterator __pos, size_type __n, const value_type& __x); template void _M_insert_aux(iterator __pos, _ForwardIterator __first, _ForwardIterator __last, size_type __n); void _M_destroy_data_aux(iterator __first, iterator __last); template void _M_destroy_data(iterator __first, iterator __last, const _Alloc1&) { _M_destroy_data_aux(__first, __last); } void _M_destroy_data(iterator __first, iterator __last, const std::allocator<_Tp>&) { if (!__has_trivial_destructor(value_type)) _M_destroy_data_aux(__first, __last); } void _M_erase_at_begin(iterator __pos) { _M_destroy_data(begin(), __pos, _M_get_Tp_allocator()); _M_destroy_nodes(this->_M_impl._M_start._M_node, __pos._M_node); this->_M_impl._M_start = __pos; } void _M_erase_at_end(iterator __pos) { _M_destroy_data(__pos, end(), _M_get_Tp_allocator()); _M_destroy_nodes(__pos._M_node + 1, this->_M_impl._M_finish._M_node + 1); this->_M_impl._M_finish = __pos; } iterator _M_erase(iterator __pos); iterator _M_erase(iterator __first, iterator __last); # 2076 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 iterator _M_reserve_elements_at_front(size_type __n) { const size_type __vacancies = this->_M_impl._M_start._M_cur - this->_M_impl._M_start._M_first; if (__n > __vacancies) _M_new_elements_at_front(__n - __vacancies); return this->_M_impl._M_start - difference_type(__n); } iterator _M_reserve_elements_at_back(size_type __n) { const size_type __vacancies = (this->_M_impl._M_finish._M_last - this->_M_impl._M_finish._M_cur) - 1; if (__n > __vacancies) _M_new_elements_at_back(__n - __vacancies); return this->_M_impl._M_finish + difference_type(__n); } void _M_new_elements_at_front(size_type __new_elements); void _M_new_elements_at_back(size_type __new_elements); # 2112 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 void _M_reserve_map_at_back(size_type __nodes_to_add = 1) { if (__nodes_to_add + 1 > this->_M_impl._M_map_size - (this->_M_impl._M_finish._M_node - this->_M_impl._M_map)) _M_reallocate_map(__nodes_to_add, false); } void _M_reserve_map_at_front(size_type __nodes_to_add = 1) { if (__nodes_to_add > size_type(this->_M_impl._M_start._M_node - this->_M_impl._M_map)) _M_reallocate_map(__nodes_to_add, true); } void _M_reallocate_map(size_type __nodes_to_add, bool __add_at_front); # 2204 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 }; # 2217 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 template inline bool operator==(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) { return __x.size() == __y.size() && std::equal(__x.begin(), __x.end(), __y.begin()); } # 2235 "/usr/include/c++/5.0.0/bits/stl_deque.h" 3 template inline bool operator<(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) { return std::lexicographical_compare(__x.begin(), __x.end(), __y.begin(), __y.end()); } template inline bool operator!=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) { return !(__x == __y); } template inline bool operator>(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) { return __y < __x; } template inline bool operator<=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) { return !(__y < __x); } template inline bool operator>=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) { return !(__x < __y); } template inline void swap(deque<_Tp,_Alloc>& __x, deque<_Tp,_Alloc>& __y) { __x.swap(__y); } } # 65 "/usr/include/c++/5.0.0/deque" 2 3 # 1 "/usr/include/c++/5.0.0/bits/deque.tcc" 1 3 # 59 "/usr/include/c++/5.0.0/bits/deque.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 90 "/usr/include/c++/5.0.0/bits/deque.tcc" 3 template deque<_Tp, _Alloc>& deque<_Tp, _Alloc>:: operator=(const deque& __x) { if (&__x != this) { # 114 "/usr/include/c++/5.0.0/bits/deque.tcc" 3 const size_type __len = size(); if (__len >= __x.size()) _M_erase_at_end(std::copy(__x.begin(), __x.end(), this->_M_impl._M_start)); else { const_iterator __mid = __x.begin() + difference_type(__len); std::copy(__x.begin(), __mid, this->_M_impl._M_start); insert(this->_M_impl._M_finish, __mid, __x.end()); } } return *this; } # 190 "/usr/include/c++/5.0.0/bits/deque.tcc" 3 template typename deque<_Tp, _Alloc>::iterator deque<_Tp, _Alloc>:: insert(iterator __position, const value_type& __x) { if (__position._M_cur == this->_M_impl._M_start._M_cur) { push_front(__x); return this->_M_impl._M_start; } else if (__position._M_cur == this->_M_impl._M_finish._M_cur) { push_back(__x); iterator __tmp = this->_M_impl._M_finish; --__tmp; return __tmp; } else return _M_insert_aux(__position._M_const_cast(), __x); } template typename deque<_Tp, _Alloc>::iterator deque<_Tp, _Alloc>:: _M_erase(iterator __position) { iterator __next = __position; ++__next; const difference_type __index = __position - begin(); if (static_cast(__index) < (size() >> 1)) { if (__position != begin()) std::copy_backward(begin(), __position, __next); pop_front(); } else { if (__next != end()) std::copy(__next, end(), __position); pop_back(); } return begin() + __index; } template typename deque<_Tp, _Alloc>::iterator deque<_Tp, _Alloc>:: _M_erase(iterator __first, iterator __last) { if (__first == __last) return __first; else if (__first == begin() && __last == end()) { clear(); return end(); } else { const difference_type __n = __last - __first; const difference_type __elems_before = __first - begin(); if (static_cast(__elems_before) <= (size() - __n) / 2) { if (__first != begin()) std::copy_backward(begin(), __first, __last); _M_erase_at_begin(begin() + __n); } else { if (__last != end()) std::copy(__last, end(), __first); _M_erase_at_end(end() - __n); } return begin() + __elems_before; } } template template void deque<_Tp, _Alloc>:: _M_assign_aux(_InputIterator __first, _InputIterator __last, std::input_iterator_tag) { iterator __cur = begin(); for (; __first != __last && __cur != end(); ++__cur, ++__first) *__cur = *__first; if (__first == __last) _M_erase_at_end(__cur); else insert(end(), __first, __last); } template void deque<_Tp, _Alloc>:: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x) { if (__pos._M_cur == this->_M_impl._M_start._M_cur) { iterator __new_start = _M_reserve_elements_at_front(__n); try { std::__uninitialized_fill_a(__new_start, this->_M_impl._M_start, __x, _M_get_Tp_allocator()); this->_M_impl._M_start = __new_start; } catch(...) { _M_destroy_nodes(__new_start._M_node, this->_M_impl._M_start._M_node); throw; } } else if (__pos._M_cur == this->_M_impl._M_finish._M_cur) { iterator __new_finish = _M_reserve_elements_at_back(__n); try { std::__uninitialized_fill_a(this->_M_impl._M_finish, __new_finish, __x, _M_get_Tp_allocator()); this->_M_impl._M_finish = __new_finish; } catch(...) { _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, __new_finish._M_node + 1); throw; } } else _M_insert_aux(__pos, __n, __x); } # 372 "/usr/include/c++/5.0.0/bits/deque.tcc" 3 template void deque<_Tp, _Alloc>:: _M_fill_initialize(const value_type& __value) { _Map_pointer __cur; try { for (__cur = this->_M_impl._M_start._M_node; __cur < this->_M_impl._M_finish._M_node; ++__cur) std::__uninitialized_fill_a(*__cur, *__cur + _S_buffer_size(), __value, _M_get_Tp_allocator()); std::__uninitialized_fill_a(this->_M_impl._M_finish._M_first, this->_M_impl._M_finish._M_cur, __value, _M_get_Tp_allocator()); } catch(...) { std::_Destroy(this->_M_impl._M_start, iterator(*__cur, __cur), _M_get_Tp_allocator()); throw; } } template template void deque<_Tp, _Alloc>:: _M_range_initialize(_InputIterator __first, _InputIterator __last, std::input_iterator_tag) { this->_M_initialize_map(0); try { for (; __first != __last; ++__first) push_back(*__first); } catch(...) { clear(); throw; } } template template void deque<_Tp, _Alloc>:: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, std::forward_iterator_tag) { const size_type __n = std::distance(__first, __last); this->_M_initialize_map(__n); _Map_pointer __cur_node; try { for (__cur_node = this->_M_impl._M_start._M_node; __cur_node < this->_M_impl._M_finish._M_node; ++__cur_node) { _ForwardIterator __mid = __first; std::advance(__mid, _S_buffer_size()); std::__uninitialized_copy_a(__first, __mid, *__cur_node, _M_get_Tp_allocator()); __first = __mid; } std::__uninitialized_copy_a(__first, __last, this->_M_impl._M_finish._M_first, _M_get_Tp_allocator()); } catch(...) { std::_Destroy(this->_M_impl._M_start, iterator(*__cur_node, __cur_node), _M_get_Tp_allocator()); throw; } } template void deque<_Tp, _Alloc>:: _M_push_back_aux(const value_type& __t) { _M_reserve_map_at_back(); *(this->_M_impl._M_finish._M_node + 1) = this->_M_allocate_node(); try { this->_M_impl.construct(this->_M_impl._M_finish._M_cur, __t); this->_M_impl._M_finish._M_set_node(this->_M_impl._M_finish._M_node + 1); this->_M_impl._M_finish._M_cur = this->_M_impl._M_finish._M_first; } catch(...) { _M_deallocate_node(*(this->_M_impl._M_finish._M_node + 1)); throw; } } template void deque<_Tp, _Alloc>:: _M_push_front_aux(const value_type& __t) { _M_reserve_map_at_front(); *(this->_M_impl._M_start._M_node - 1) = this->_M_allocate_node(); try { this->_M_impl._M_start._M_set_node(this->_M_impl._M_start._M_node - 1); this->_M_impl._M_start._M_cur = this->_M_impl._M_start._M_last - 1; this->_M_impl.construct(this->_M_impl._M_start._M_cur, __t); } catch(...) { ++this->_M_impl._M_start; _M_deallocate_node(*(this->_M_impl._M_start._M_node - 1)); throw; } } template void deque<_Tp, _Alloc>:: _M_pop_back_aux() { _M_deallocate_node(this->_M_impl._M_finish._M_first); this->_M_impl._M_finish._M_set_node(this->_M_impl._M_finish._M_node - 1); this->_M_impl._M_finish._M_cur = this->_M_impl._M_finish._M_last - 1; _Alloc_traits::destroy(_M_get_Tp_allocator(), this->_M_impl._M_finish._M_cur); } template void deque<_Tp, _Alloc>:: _M_pop_front_aux() { _Alloc_traits::destroy(_M_get_Tp_allocator(), this->_M_impl._M_start._M_cur); _M_deallocate_node(this->_M_impl._M_start._M_first); this->_M_impl._M_start._M_set_node(this->_M_impl._M_start._M_node + 1); this->_M_impl._M_start._M_cur = this->_M_impl._M_start._M_first; } template template void deque<_Tp, _Alloc>:: _M_range_insert_aux(iterator __pos, _InputIterator __first, _InputIterator __last, std::input_iterator_tag) { std::copy(__first, __last, std::inserter(*this, __pos)); } template template void deque<_Tp, _Alloc>:: _M_range_insert_aux(iterator __pos, _ForwardIterator __first, _ForwardIterator __last, std::forward_iterator_tag) { const size_type __n = std::distance(__first, __last); if (__pos._M_cur == this->_M_impl._M_start._M_cur) { iterator __new_start = _M_reserve_elements_at_front(__n); try { std::__uninitialized_copy_a(__first, __last, __new_start, _M_get_Tp_allocator()); this->_M_impl._M_start = __new_start; } catch(...) { _M_destroy_nodes(__new_start._M_node, this->_M_impl._M_start._M_node); throw; } } else if (__pos._M_cur == this->_M_impl._M_finish._M_cur) { iterator __new_finish = _M_reserve_elements_at_back(__n); try { std::__uninitialized_copy_a(__first, __last, this->_M_impl._M_finish, _M_get_Tp_allocator()); this->_M_impl._M_finish = __new_finish; } catch(...) { _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, __new_finish._M_node + 1); throw; } } else _M_insert_aux(__pos, __first, __last, __n); } template # 620 "/usr/include/c++/5.0.0/bits/deque.tcc" 3 typename deque<_Tp, _Alloc>::iterator deque<_Tp, _Alloc>:: _M_insert_aux(iterator __pos, const value_type& __x) { value_type __x_copy = __x; difference_type __index = __pos - this->_M_impl._M_start; if (static_cast(__index) < size() / 2) { push_front((front())); iterator __front1 = this->_M_impl._M_start; ++__front1; iterator __front2 = __front1; ++__front2; __pos = this->_M_impl._M_start + __index; iterator __pos1 = __pos; ++__pos1; std::copy(__front2, __pos1, __front1); } else { push_back((back())); iterator __back1 = this->_M_impl._M_finish; --__back1; iterator __back2 = __back1; --__back2; __pos = this->_M_impl._M_start + __index; std::copy_backward(__pos, __back2, __back1); } *__pos = (__x_copy); return __pos; } template void deque<_Tp, _Alloc>:: _M_insert_aux(iterator __pos, size_type __n, const value_type& __x) { const difference_type __elems_before = __pos - this->_M_impl._M_start; const size_type __length = this->size(); value_type __x_copy = __x; if (__elems_before < difference_type(__length / 2)) { iterator __new_start = _M_reserve_elements_at_front(__n); iterator __old_start = this->_M_impl._M_start; __pos = this->_M_impl._M_start + __elems_before; try { if (__elems_before >= difference_type(__n)) { iterator __start_n = (this->_M_impl._M_start + difference_type(__n)); std::__uninitialized_move_a(this->_M_impl._M_start, __start_n, __new_start, _M_get_Tp_allocator()); this->_M_impl._M_start = __new_start; std::copy(__start_n, __pos, __old_start); std::fill(__pos - difference_type(__n), __pos, __x_copy); } else { std::__uninitialized_move_fill(this->_M_impl._M_start, __pos, __new_start, this->_M_impl._M_start, __x_copy, _M_get_Tp_allocator()); this->_M_impl._M_start = __new_start; std::fill(__old_start, __pos, __x_copy); } } catch(...) { _M_destroy_nodes(__new_start._M_node, this->_M_impl._M_start._M_node); throw; } } else { iterator __new_finish = _M_reserve_elements_at_back(__n); iterator __old_finish = this->_M_impl._M_finish; const difference_type __elems_after = difference_type(__length) - __elems_before; __pos = this->_M_impl._M_finish - __elems_after; try { if (__elems_after > difference_type(__n)) { iterator __finish_n = (this->_M_impl._M_finish - difference_type(__n)); std::__uninitialized_move_a(__finish_n, this->_M_impl._M_finish, this->_M_impl._M_finish, _M_get_Tp_allocator()); this->_M_impl._M_finish = __new_finish; std::copy_backward(__pos, __finish_n, __old_finish); std::fill(__pos, __pos + difference_type(__n), __x_copy); } else { std::__uninitialized_fill_move(this->_M_impl._M_finish, __pos + difference_type(__n), __x_copy, __pos, this->_M_impl._M_finish, _M_get_Tp_allocator()); this->_M_impl._M_finish = __new_finish; std::fill(__pos, __old_finish, __x_copy); } } catch(...) { _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, __new_finish._M_node + 1); throw; } } } template template void deque<_Tp, _Alloc>:: _M_insert_aux(iterator __pos, _ForwardIterator __first, _ForwardIterator __last, size_type __n) { const difference_type __elemsbefore = __pos - this->_M_impl._M_start; const size_type __length = size(); if (static_cast(__elemsbefore) < __length / 2) { iterator __new_start = _M_reserve_elements_at_front(__n); iterator __old_start = this->_M_impl._M_start; __pos = this->_M_impl._M_start + __elemsbefore; try { if (__elemsbefore >= difference_type(__n)) { iterator __start_n = (this->_M_impl._M_start + difference_type(__n)); std::__uninitialized_move_a(this->_M_impl._M_start, __start_n, __new_start, _M_get_Tp_allocator()); this->_M_impl._M_start = __new_start; std::copy(__start_n, __pos, __old_start); std::copy(__first, __last, __pos - difference_type(__n)); } else { _ForwardIterator __mid = __first; std::advance(__mid, difference_type(__n) - __elemsbefore); std::__uninitialized_move_copy(this->_M_impl._M_start, __pos, __first, __mid, __new_start, _M_get_Tp_allocator()); this->_M_impl._M_start = __new_start; std::copy(__mid, __last, __old_start); } } catch(...) { _M_destroy_nodes(__new_start._M_node, this->_M_impl._M_start._M_node); throw; } } else { iterator __new_finish = _M_reserve_elements_at_back(__n); iterator __old_finish = this->_M_impl._M_finish; const difference_type __elemsafter = difference_type(__length) - __elemsbefore; __pos = this->_M_impl._M_finish - __elemsafter; try { if (__elemsafter > difference_type(__n)) { iterator __finish_n = (this->_M_impl._M_finish - difference_type(__n)); std::__uninitialized_move_a(__finish_n, this->_M_impl._M_finish, this->_M_impl._M_finish, _M_get_Tp_allocator()); this->_M_impl._M_finish = __new_finish; std::copy_backward(__pos, __finish_n, __old_finish); std::copy(__first, __last, __pos); } else { _ForwardIterator __mid = __first; std::advance(__mid, __elemsafter); std::__uninitialized_copy_move(__mid, __last, __pos, this->_M_impl._M_finish, this->_M_impl._M_finish, _M_get_Tp_allocator()); this->_M_impl._M_finish = __new_finish; std::copy(__first, __mid, __pos); } } catch(...) { _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, __new_finish._M_node + 1); throw; } } } template void deque<_Tp, _Alloc>:: _M_destroy_data_aux(iterator __first, iterator __last) { for (_Map_pointer __node = __first._M_node + 1; __node < __last._M_node; ++__node) std::_Destroy(*__node, *__node + _S_buffer_size(), _M_get_Tp_allocator()); if (__first._M_node != __last._M_node) { std::_Destroy(__first._M_cur, __first._M_last, _M_get_Tp_allocator()); std::_Destroy(__last._M_first, __last._M_cur, _M_get_Tp_allocator()); } else std::_Destroy(__first._M_cur, __last._M_cur, _M_get_Tp_allocator()); } template void deque<_Tp, _Alloc>:: _M_new_elements_at_front(size_type __new_elems) { if (this->max_size() - this->size() < __new_elems) __throw_length_error(("deque::_M_new_elements_at_front")); const size_type __new_nodes = ((__new_elems + _S_buffer_size() - 1) / _S_buffer_size()); _M_reserve_map_at_front(__new_nodes); size_type __i; try { for (__i = 1; __i <= __new_nodes; ++__i) *(this->_M_impl._M_start._M_node - __i) = this->_M_allocate_node(); } catch(...) { for (size_type __j = 1; __j < __i; ++__j) _M_deallocate_node(*(this->_M_impl._M_start._M_node - __j)); throw; } } template void deque<_Tp, _Alloc>:: _M_new_elements_at_back(size_type __new_elems) { if (this->max_size() - this->size() < __new_elems) __throw_length_error(("deque::_M_new_elements_at_back")); const size_type __new_nodes = ((__new_elems + _S_buffer_size() - 1) / _S_buffer_size()); _M_reserve_map_at_back(__new_nodes); size_type __i; try { for (__i = 1; __i <= __new_nodes; ++__i) *(this->_M_impl._M_finish._M_node + __i) = this->_M_allocate_node(); } catch(...) { for (size_type __j = 1; __j < __i; ++__j) _M_deallocate_node(*(this->_M_impl._M_finish._M_node + __j)); throw; } } template void deque<_Tp, _Alloc>:: _M_reallocate_map(size_type __nodes_to_add, bool __add_at_front) { const size_type __old_num_nodes = this->_M_impl._M_finish._M_node - this->_M_impl._M_start._M_node + 1; const size_type __new_num_nodes = __old_num_nodes + __nodes_to_add; _Map_pointer __new_nstart; if (this->_M_impl._M_map_size > 2 * __new_num_nodes) { __new_nstart = this->_M_impl._M_map + (this->_M_impl._M_map_size - __new_num_nodes) / 2 + (__add_at_front ? __nodes_to_add : 0); if (__new_nstart < this->_M_impl._M_start._M_node) std::copy(this->_M_impl._M_start._M_node, this->_M_impl._M_finish._M_node + 1, __new_nstart); else std::copy_backward(this->_M_impl._M_start._M_node, this->_M_impl._M_finish._M_node + 1, __new_nstart + __old_num_nodes); } else { size_type __new_map_size = this->_M_impl._M_map_size + std::max(this->_M_impl._M_map_size, __nodes_to_add) + 2; _Map_pointer __new_map = this->_M_allocate_map(__new_map_size); __new_nstart = __new_map + (__new_map_size - __new_num_nodes) / 2 + (__add_at_front ? __nodes_to_add : 0); std::copy(this->_M_impl._M_start._M_node, this->_M_impl._M_finish._M_node + 1, __new_nstart); _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); this->_M_impl._M_map = __new_map; this->_M_impl._M_map_size = __new_map_size; } this->_M_impl._M_start._M_set_node(__new_nstart); this->_M_impl._M_finish._M_set_node(__new_nstart + __old_num_nodes - 1); } template void fill(const _Deque_iterator<_Tp, _Tp&, _Tp*>& __first, const _Deque_iterator<_Tp, _Tp&, _Tp*>& __last, const _Tp& __value) { typedef typename _Deque_iterator<_Tp, _Tp&, _Tp*>::_Self _Self; for (typename _Self::_Map_pointer __node = __first._M_node + 1; __node < __last._M_node; ++__node) std::fill(*__node, *__node + _Self::_S_buffer_size(), __value); if (__first._M_node != __last._M_node) { std::fill(__first._M_cur, __first._M_last, __value); std::fill(__last._M_first, __last._M_cur, __value); } else std::fill(__first._M_cur, __last._M_cur, __value); } template _Deque_iterator<_Tp, _Tp&, _Tp*> copy(_Deque_iterator<_Tp, const _Tp&, const _Tp*> __first, _Deque_iterator<_Tp, const _Tp&, const _Tp*> __last, _Deque_iterator<_Tp, _Tp&, _Tp*> __result) { typedef typename _Deque_iterator<_Tp, _Tp&, _Tp*>::_Self _Self; typedef typename _Self::difference_type difference_type; difference_type __len = __last - __first; while (__len > 0) { const difference_type __clen = std::min(__len, std::min(__first._M_last - __first._M_cur, __result._M_last - __result._M_cur)); std::copy(__first._M_cur, __first._M_cur + __clen, __result._M_cur); __first += __clen; __result += __clen; __len -= __clen; } return __result; } template _Deque_iterator<_Tp, _Tp&, _Tp*> copy_backward(_Deque_iterator<_Tp, const _Tp&, const _Tp*> __first, _Deque_iterator<_Tp, const _Tp&, const _Tp*> __last, _Deque_iterator<_Tp, _Tp&, _Tp*> __result) { typedef typename _Deque_iterator<_Tp, _Tp&, _Tp*>::_Self _Self; typedef typename _Self::difference_type difference_type; difference_type __len = __last - __first; while (__len > 0) { difference_type __llen = __last._M_cur - __last._M_first; _Tp* __lend = __last._M_cur; difference_type __rlen = __result._M_cur - __result._M_first; _Tp* __rend = __result._M_cur; if (!__llen) { __llen = _Self::_S_buffer_size(); __lend = *(__last._M_node - 1) + __llen; } if (!__rlen) { __rlen = _Self::_S_buffer_size(); __rend = *(__result._M_node - 1) + __rlen; } const difference_type __clen = std::min(__len, std::min(__llen, __rlen)); std::copy_backward(__lend - __clen, __lend, __rend); __last -= __clen; __result -= __clen; __len -= __clen; } return __result; } # 1093 "/usr/include/c++/5.0.0/bits/deque.tcc" 3 } # 67 "/usr/include/c++/5.0.0/deque" 2 3 # 15 "/usr/include/boost/algorithm/string/find_format.hpp" 2 3 4 # 23 "/usr/include/boost/algorithm/string/find_format.hpp" 3 4 # 1 "/usr/include/boost/algorithm/string/detail/find_format.hpp" 1 3 4 # 18 "/usr/include/boost/algorithm/string/detail/find_format.hpp" 3 4 # 1 "/usr/include/boost/algorithm/string/detail/find_format_store.hpp" 1 3 4 # 17 "/usr/include/boost/algorithm/string/detail/find_format_store.hpp" 3 4 namespace boost { namespace algorithm { namespace detail { template< typename ForwardIteratorT, typename FormatterT, typename FormatResultT > class find_format_store : public iterator_range { public: typedef iterator_range base_type; typedef FormatterT formatter_type; typedef FormatResultT format_result_type; public: find_format_store( const base_type& FindResult, const format_result_type& FormatResult, const formatter_type& Formatter ) : base_type(FindResult), m_FormatResult(FormatResult), m_Formatter(Formatter) {} template< typename FindResultT > find_format_store& operator=( FindResultT FindResult ) { iterator_range::operator=(FindResult); if( !this->empty() ) { m_FormatResult=m_Formatter(FindResult); } return *this; } const format_result_type& format_result() { return m_FormatResult; } private: format_result_type m_FormatResult; const formatter_type& m_Formatter; }; template bool check_find_result(InputT&, FindResultT& FindResult) { typedef typename range_const_iterator::type input_iterator_type; iterator_range ResultRange(FindResult); return !ResultRange.empty(); } } } } # 19 "/usr/include/boost/algorithm/string/detail/find_format.hpp" 2 3 4 # 1 "/usr/include/boost/algorithm/string/detail/replace_storage.hpp" 1 3 4 # 20 "/usr/include/boost/algorithm/string/detail/replace_storage.hpp" 3 4 namespace boost { namespace algorithm { namespace detail { template< typename StorageT, typename OutputIteratorT > inline OutputIteratorT move_from_storage( StorageT& Storage, OutputIteratorT DestBegin, OutputIteratorT DestEnd ) { OutputIteratorT OutputIt=DestBegin; while( !Storage.empty() && OutputIt!=DestEnd ) { *OutputIt=Storage.front(); Storage.pop_front(); ++OutputIt; } return OutputIt; } template< typename StorageT, typename WhatT > inline void copy_to_storage( StorageT& Storage, const WhatT& What ) { Storage.insert( Storage.end(), ::boost::begin(What), ::boost::end(What) ); } template< bool HasStableIterators > struct process_segment_helper { template< typename StorageT, typename InputT, typename ForwardIteratorT > ForwardIteratorT operator()( StorageT& Storage, InputT& , ForwardIteratorT InsertIt, ForwardIteratorT SegmentBegin, ForwardIteratorT SegmentEnd ) { ForwardIteratorT It=::boost::algorithm::detail::move_from_storage( Storage, InsertIt, SegmentBegin ); if( Storage.empty() ) { if( It==SegmentBegin ) { return SegmentEnd; } else { return std::copy( SegmentBegin, SegmentEnd, It ); } } else { while( It!=SegmentEnd ) { Storage.push_back( *It ); *It=Storage.front(); Storage.pop_front(); ++It; } return It; } } }; template<> struct process_segment_helper< true > { template< typename StorageT, typename InputT, typename ForwardIteratorT > ForwardIteratorT operator()( StorageT& Storage, InputT& Input, ForwardIteratorT InsertIt, ForwardIteratorT SegmentBegin, ForwardIteratorT SegmentEnd ) { ::boost::algorithm::detail::replace( Input, InsertIt, SegmentBegin, Storage ); Storage.clear(); return SegmentEnd; } }; template< typename StorageT, typename InputT, typename ForwardIteratorT > inline ForwardIteratorT process_segment( StorageT& Storage, InputT& Input, ForwardIteratorT InsertIt, ForwardIteratorT SegmentBegin, ForwardIteratorT SegmentEnd ) { return process_segment_helper< has_stable_iterators::value>()( Storage, Input, InsertIt, SegmentBegin, SegmentEnd ); } } } } # 20 "/usr/include/boost/algorithm/string/detail/find_format.hpp" 2 3 4 namespace boost { namespace algorithm { namespace detail { template< typename OutputIteratorT, typename InputT, typename FormatterT, typename FindResultT, typename FormatResultT > inline OutputIteratorT find_format_copy_impl2( OutputIteratorT Output, const InputT& Input, FormatterT Formatter, const FindResultT& FindResult, const FormatResultT& FormatResult ) { typedef find_format_store< typename range_const_iterator::type, FormatterT, FormatResultT > store_type; store_type M( FindResult, FormatResult, Formatter ); if ( !M ) { Output = std::copy( ::boost::begin(Input), ::boost::end(Input), Output ); return Output; } Output = std::copy( ::boost::begin(Input), ::boost::begin(M), Output ); Output = std::copy( ::boost::begin(M.format_result()), ::boost::end(M.format_result()), Output ); Output = std::copy( M.end(), ::boost::end(Input), Output ); return Output; } template< typename OutputIteratorT, typename InputT, typename FormatterT, typename FindResultT > inline OutputIteratorT find_format_copy_impl( OutputIteratorT Output, const InputT& Input, FormatterT Formatter, const FindResultT& FindResult ) { if( ::boost::algorithm::detail::check_find_result(Input, FindResult) ) { return ::boost::algorithm::detail::find_format_copy_impl2( Output, Input, Formatter, FindResult, Formatter(FindResult) ); } else { return std::copy( ::boost::begin(Input), ::boost::end(Input), Output ); } } template< typename InputT, typename FormatterT, typename FindResultT, typename FormatResultT > inline InputT find_format_copy_impl2( const InputT& Input, FormatterT Formatter, const FindResultT& FindResult, const FormatResultT& FormatResult) { typedef find_format_store< typename range_const_iterator::type, FormatterT, FormatResultT > store_type; store_type M( FindResult, FormatResult, Formatter ); if ( !M ) { return InputT( Input ); } InputT Output; boost::algorithm::detail::insert( Output, ::boost::end(Output), ::boost::begin(Input), M.begin() ); boost::algorithm::detail::insert( Output, ::boost::end(Output), M.format_result() ); boost::algorithm::detail::insert( Output, ::boost::end(Output), M.end(), ::boost::end(Input) ); return Output; } template< typename InputT, typename FormatterT, typename FindResultT > inline InputT find_format_copy_impl( const InputT& Input, FormatterT Formatter, const FindResultT& FindResult) { if( ::boost::algorithm::detail::check_find_result(Input, FindResult) ) { return ::boost::algorithm::detail::find_format_copy_impl2( Input, Formatter, FindResult, Formatter(FindResult) ); } else { return Input; } } template< typename InputT, typename FormatterT, typename FindResultT, typename FormatResultT > inline void find_format_impl2( InputT& Input, FormatterT Formatter, const FindResultT& FindResult, const FormatResultT& FormatResult) { typedef find_format_store< typename range_iterator::type, FormatterT, FormatResultT > store_type; store_type M( FindResult, FormatResult, Formatter ); if ( !M ) { return; } ::boost::algorithm::detail::replace( Input, M.begin(), M.end(), M.format_result() ); } template< typename InputT, typename FormatterT, typename FindResultT > inline void find_format_impl( InputT& Input, FormatterT Formatter, const FindResultT& FindResult) { if( ::boost::algorithm::detail::check_find_result(Input, FindResult) ) { ::boost::algorithm::detail::find_format_impl2( Input, Formatter, FindResult, Formatter(FindResult) ); } } } } } # 24 "/usr/include/boost/algorithm/string/find_format.hpp" 2 3 4 # 1 "/usr/include/boost/algorithm/string/detail/find_format_all.hpp" 1 3 4 # 21 "/usr/include/boost/algorithm/string/detail/find_format_all.hpp" 3 4 namespace boost { namespace algorithm { namespace detail { template< typename OutputIteratorT, typename InputT, typename FinderT, typename FormatterT, typename FindResultT, typename FormatResultT > inline OutputIteratorT find_format_all_copy_impl2( OutputIteratorT Output, const InputT& Input, FinderT Finder, FormatterT Formatter, const FindResultT& FindResult, const FormatResultT& FormatResult ) { typedef typename range_const_iterator::type input_iterator_type; typedef find_format_store< input_iterator_type, FormatterT, FormatResultT > store_type; store_type M( FindResult, FormatResult, Formatter ); input_iterator_type LastMatch=::boost::begin(Input); while( M ) { Output = std::copy( LastMatch, M.begin(), Output ); Output = std::copy( ::boost::begin(M.format_result()), ::boost::end(M.format_result()), Output ); LastMatch=M.end(); M=Finder( LastMatch, ::boost::end(Input) ); } Output = std::copy( LastMatch, ::boost::end(Input), Output ); return Output; } template< typename OutputIteratorT, typename InputT, typename FinderT, typename FormatterT, typename FindResultT > inline OutputIteratorT find_format_all_copy_impl( OutputIteratorT Output, const InputT& Input, FinderT Finder, FormatterT Formatter, const FindResultT& FindResult ) { if( ::boost::algorithm::detail::check_find_result(Input, FindResult) ) { return ::boost::algorithm::detail::find_format_all_copy_impl2( Output, Input, Finder, Formatter, FindResult, Formatter(FindResult) ); } else { return std::copy( ::boost::begin(Input), ::boost::end(Input), Output ); } } template< typename InputT, typename FinderT, typename FormatterT, typename FindResultT, typename FormatResultT > inline InputT find_format_all_copy_impl2( const InputT& Input, FinderT Finder, FormatterT Formatter, const FindResultT& FindResult, const FormatResultT& FormatResult) { typedef typename range_const_iterator::type input_iterator_type; typedef find_format_store< input_iterator_type, FormatterT, FormatResultT > store_type; store_type M( FindResult, FormatResult, Formatter ); input_iterator_type LastMatch=::boost::begin(Input); InputT Output; while( M ) { boost::algorithm::detail::insert( Output, ::boost::end(Output), LastMatch, M.begin() ); boost::algorithm::detail::insert( Output, ::boost::end(Output), M.format_result() ); LastMatch=M.end(); M=Finder( LastMatch, ::boost::end(Input) ); } ::boost::algorithm::detail::insert( Output, ::boost::end(Output), LastMatch, ::boost::end(Input) ); return Output; } template< typename InputT, typename FinderT, typename FormatterT, typename FindResultT > inline InputT find_format_all_copy_impl( const InputT& Input, FinderT Finder, FormatterT Formatter, const FindResultT& FindResult) { if( ::boost::algorithm::detail::check_find_result(Input, FindResult) ) { return ::boost::algorithm::detail::find_format_all_copy_impl2( Input, Finder, Formatter, FindResult, Formatter(FindResult) ); } else { return Input; } } template< typename InputT, typename FinderT, typename FormatterT, typename FindResultT, typename FormatResultT > inline void find_format_all_impl2( InputT& Input, FinderT Finder, FormatterT Formatter, FindResultT FindResult, FormatResultT FormatResult) { typedef typename range_iterator::type input_iterator_type; typedef find_format_store< input_iterator_type, FormatterT, FormatResultT > store_type; store_type M( FindResult, FormatResult, Formatter ); std::deque< typename range_value::type> Storage; input_iterator_type InsertIt=::boost::begin(Input); input_iterator_type SearchIt=::boost::begin(Input); while( M ) { InsertIt=process_segment( Storage, Input, InsertIt, SearchIt, M.begin() ); SearchIt=M.end(); ::boost::algorithm::detail::copy_to_storage( Storage, M.format_result() ); M=Finder( SearchIt, ::boost::end(Input) ); } InsertIt=::boost::algorithm::detail::process_segment( Storage, Input, InsertIt, SearchIt, ::boost::end(Input) ); if ( Storage.empty() ) { ::boost::algorithm::detail::erase( Input, InsertIt, ::boost::end(Input) ); } else { ::boost::algorithm::detail::insert( Input, ::boost::end(Input), Storage.begin(), Storage.end() ); } } template< typename InputT, typename FinderT, typename FormatterT, typename FindResultT > inline void find_format_all_impl( InputT& Input, FinderT Finder, FormatterT Formatter, FindResultT FindResult) { if( ::boost::algorithm::detail::check_find_result(Input, FindResult) ) { ::boost::algorithm::detail::find_format_all_impl2( Input, Finder, Formatter, FindResult, Formatter(FindResult) ); } } } } } # 25 "/usr/include/boost/algorithm/string/find_format.hpp" 2 3 4 namespace boost { namespace algorithm { # 53 "/usr/include/boost/algorithm/string/find_format.hpp" 3 4 template< typename OutputIteratorT, typename RangeT, typename FinderT, typename FormatterT> inline OutputIteratorT find_format_copy( OutputIteratorT Output, const RangeT& Input, FinderT Finder, FormatterT Formatter ) { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_::type> )>::failed> boost_concept_check69 __attribute__((unused)) ; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_::type> )>::failed> boost_concept_check74 __attribute__((unused)) ; iterator_range::type> lit_input(::boost::as_literal(Input)); return detail::find_format_copy_impl( Output, lit_input, Formatter, Finder( ::boost::begin(lit_input), ::boost::end(lit_input) ) ); } template< typename SequenceT, typename FinderT, typename FormatterT> inline SequenceT find_format_copy( const SequenceT& Input, FinderT Finder, FormatterT Formatter ) { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_::type> )>::failed> boost_concept_check103 __attribute__((unused)) ; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_::type> )>::failed> boost_concept_check108 __attribute__((unused)) ; return detail::find_format_copy_impl( Input, Formatter, Finder(::boost::begin(Input), ::boost::end(Input))); } # 125 "/usr/include/boost/algorithm/string/find_format.hpp" 3 4 template< typename SequenceT, typename FinderT, typename FormatterT> inline void find_format( SequenceT& Input, FinderT Finder, FormatterT Formatter) { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_::type> )>::failed> boost_concept_check139 __attribute__((unused)) ; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_::type> )>::failed> boost_concept_check144 __attribute__((unused)) ; detail::find_format_impl( Input, Formatter, Finder(::boost::begin(Input), ::boost::end(Input))); } # 172 "/usr/include/boost/algorithm/string/find_format.hpp" 3 4 template< typename OutputIteratorT, typename RangeT, typename FinderT, typename FormatterT> inline OutputIteratorT find_format_all_copy( OutputIteratorT Output, const RangeT& Input, FinderT Finder, FormatterT Formatter) { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_::type> )>::failed> boost_concept_check188 __attribute__((unused)) ; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_::type> )>::failed> boost_concept_check193 __attribute__((unused)) ; iterator_range::type> lit_input(::boost::as_literal(Input)); return detail::find_format_all_copy_impl( Output, lit_input, Finder, Formatter, Finder(::boost::begin(lit_input), ::boost::end(lit_input))); } template< typename SequenceT, typename FinderT, typename FormatterT > inline SequenceT find_format_all_copy( const SequenceT& Input, FinderT Finder, FormatterT Formatter ) { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_::type> )>::failed> boost_concept_check223 __attribute__((unused)) ; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_::type> )>::failed> boost_concept_check228 __attribute__((unused)) ; return detail::find_format_all_copy_impl( Input, Finder, Formatter, Finder( ::boost::begin(Input), ::boost::end(Input) ) ); } # 247 "/usr/include/boost/algorithm/string/find_format.hpp" 3 4 template< typename SequenceT, typename FinderT, typename FormatterT > inline void find_format_all( SequenceT& Input, FinderT Finder, FormatterT Formatter ) { typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_::type> )>::failed> boost_concept_check261 __attribute__((unused)) ; typedef ::boost::concepts::detail::instantiate< &::boost::concepts::requirement_::type> )>::failed> boost_concept_check266 __attribute__((unused)) ; detail::find_format_all_impl( Input, Finder, Formatter, Finder(::boost::begin(Input), ::boost::end(Input))); } } using algorithm::find_format_copy; using algorithm::find_format; using algorithm::find_format_all_copy; using algorithm::find_format_all; } # 23 "/usr/include/boost/algorithm/string/replace.hpp" 2 3 4 # 1 "/usr/include/boost/algorithm/string/formatter.hpp" 1 3 4 # 19 "/usr/include/boost/algorithm/string/formatter.hpp" 3 4 # 1 "/usr/include/boost/algorithm/string/detail/formatter.hpp" 1 3 4 # 24 "/usr/include/boost/algorithm/string/detail/formatter.hpp" 3 4 namespace boost { namespace algorithm { namespace detail { template struct const_formatF { private: typedef typename range_const_iterator::type format_iterator; typedef iterator_range result_type; public: const_formatF(const RangeT& Format) : m_Format(::boost::begin(Format), ::boost::end(Format)) {} # 53 "/usr/include/boost/algorithm/string/detail/formatter.hpp" 3 4 template const result_type& operator()(const Range2T&) const { return m_Format; } private: result_type m_Format; }; template struct identity_formatF { template< typename Range2T > const RangeT& operator()(const Range2T& Replace) const { return RangeT(::boost::begin(Replace), ::boost::end(Replace)); } }; template< typename CharT > struct empty_formatF { template< typename ReplaceT > empty_container operator()(const ReplaceT&) const { return empty_container(); } }; template struct dissect_formatF { public: dissect_formatF(FinderT Finder) : m_Finder(Finder) {} template inline iterator_range< typename range_const_iterator::type> operator()(const RangeT& Replace) const { return m_Finder(::boost::begin(Replace), ::boost::end(Replace)); } private: FinderT m_Finder; }; } } } # 20 "/usr/include/boost/algorithm/string/formatter.hpp" 2 3 4 # 32 "/usr/include/boost/algorithm/string/formatter.hpp" 3 4 namespace boost { namespace algorithm { # 45 "/usr/include/boost/algorithm/string/formatter.hpp" 3 4 template inline detail::const_formatF< iterator_range< typename range_const_iterator::type> > const_formatter(const RangeT& Format) { return detail::const_formatF< iterator_range< typename range_const_iterator::type> >(::boost::as_literal(Format)); } # 63 "/usr/include/boost/algorithm/string/formatter.hpp" 3 4 template inline detail::identity_formatF< iterator_range< typename range_const_iterator::type> > identity_formatter() { return detail::identity_formatF< iterator_range< typename range_const_iterator::type> >(); } # 83 "/usr/include/boost/algorithm/string/formatter.hpp" 3 4 template inline detail::empty_formatF< typename range_value::type> empty_formatter(const RangeT&) { return detail::empty_formatF< typename range_value::type>(); } # 101 "/usr/include/boost/algorithm/string/formatter.hpp" 3 4 template inline detail::dissect_formatF< FinderT > dissect_formatter(const FinderT& Finder) { return detail::dissect_formatF(Finder); } } using algorithm::const_formatter; using algorithm::identity_formatter; using algorithm::empty_formatter; using algorithm::dissect_formatter; } # 25 "/usr/include/boost/algorithm/string/replace.hpp" 2 3 4 namespace boost { namespace algorithm { # 52 "/usr/include/boost/algorithm/string/replace.hpp" 3 4 template< typename OutputIteratorT, typename Range1T, typename Range2T> inline OutputIteratorT replace_range_copy( OutputIteratorT Output, const Range1T& Input, const iterator_range< typename range_const_iterator::type>& SearchRange, const Range2T& Format) { return ::boost::algorithm::find_format_copy( Output, Input, ::boost::algorithm::range_finder(SearchRange), ::boost::algorithm::const_formatter(Format)); } template inline SequenceT replace_range_copy( const SequenceT& Input, const iterator_range< typename range_const_iterator::type>& SearchRange, const RangeT& Format) { return ::boost::algorithm::find_format_copy( Input, ::boost::algorithm::range_finder(SearchRange), ::boost::algorithm::const_formatter(Format)); } # 98 "/usr/include/boost/algorithm/string/replace.hpp" 3 4 template inline void replace_range( SequenceT& Input, const iterator_range< typename range_iterator::type>& SearchRange, const RangeT& Format) { ::boost::algorithm::find_format( Input, ::boost::algorithm::range_finder(SearchRange), ::boost::algorithm::const_formatter(Format)); } # 130 "/usr/include/boost/algorithm/string/replace.hpp" 3 4 template< typename OutputIteratorT, typename Range1T, typename Range2T, typename Range3T> inline OutputIteratorT replace_first_copy( OutputIteratorT Output, const Range1T& Input, const Range2T& Search, const Range3T& Format) { return ::boost::algorithm::find_format_copy( Output, Input, ::boost::algorithm::first_finder(Search), ::boost::algorithm::const_formatter(Format) ); } template inline SequenceT replace_first_copy( const SequenceT& Input, const Range1T& Search, const Range2T& Format ) { return ::boost::algorithm::find_format_copy( Input, ::boost::algorithm::first_finder(Search), ::boost::algorithm::const_formatter(Format) ); } # 173 "/usr/include/boost/algorithm/string/replace.hpp" 3 4 template inline void replace_first( SequenceT& Input, const Range1T& Search, const Range2T& Format ) { ::boost::algorithm::find_format( Input, ::boost::algorithm::first_finder(Search), ::boost::algorithm::const_formatter(Format) ); } # 205 "/usr/include/boost/algorithm/string/replace.hpp" 3 4 template< typename OutputIteratorT, typename Range1T, typename Range2T, typename Range3T> inline OutputIteratorT ireplace_first_copy( OutputIteratorT Output, const Range1T& Input, const Range2T& Search, const Range3T& Format, const std::locale& Loc=std::locale() ) { return ::boost::algorithm::find_format_copy( Output, Input, ::boost::algorithm::first_finder(Search, is_iequal(Loc)), ::boost::algorithm::const_formatter(Format) ); } template inline SequenceT ireplace_first_copy( const SequenceT& Input, const Range2T& Search, const Range1T& Format, const std::locale& Loc=std::locale() ) { return ::boost::algorithm::find_format_copy( Input, ::boost::algorithm::first_finder(Search, is_iequal(Loc)), ::boost::algorithm::const_formatter(Format) ); } # 252 "/usr/include/boost/algorithm/string/replace.hpp" 3 4 template inline void ireplace_first( SequenceT& Input, const Range1T& Search, const Range2T& Format, const std::locale& Loc=std::locale() ) { ::boost::algorithm::find_format( Input, ::boost::algorithm::first_finder(Search, is_iequal(Loc)), ::boost::algorithm::const_formatter(Format) ); } # 283 "/usr/include/boost/algorithm/string/replace.hpp" 3 4 template< typename OutputIteratorT, typename Range1T, typename Range2T, typename Range3T> inline OutputIteratorT replace_last_copy( OutputIteratorT Output, const Range1T& Input, const Range2T& Search, const Range3T& Format ) { return ::boost::algorithm::find_format_copy( Output, Input, ::boost::algorithm::last_finder(Search), ::boost::algorithm::const_formatter(Format) ); } template inline SequenceT replace_last_copy( const SequenceT& Input, const Range1T& Search, const Range2T& Format ) { return ::boost::algorithm::find_format_copy( Input, ::boost::algorithm::last_finder(Search), ::boost::algorithm::const_formatter(Format) ); } # 326 "/usr/include/boost/algorithm/string/replace.hpp" 3 4 template inline void replace_last( SequenceT& Input, const Range1T& Search, const Range2T& Format ) { ::boost::algorithm::find_format( Input, ::boost::algorithm::last_finder(Search), ::boost::algorithm::const_formatter(Format) ); } # 358 "/usr/include/boost/algorithm/string/replace.hpp" 3 4 template< typename OutputIteratorT, typename Range1T, typename Range2T, typename Range3T> inline OutputIteratorT ireplace_last_copy( OutputIteratorT Output, const Range1T& Input, const Range2T& Search, const Range3T& Format, const std::locale& Loc=std::locale() ) { return ::boost::algorithm::find_format_copy( Output, Input, ::boost::algorithm::last_finder(Search, is_iequal(Loc)), ::boost::algorithm::const_formatter(Format) ); } template inline SequenceT ireplace_last_copy( const SequenceT& Input, const Range1T& Search, const Range2T& Format, const std::locale& Loc=std::locale() ) { return ::boost::algorithm::find_format_copy( Input, ::boost::algorithm::last_finder(Search, is_iequal(Loc)), ::boost::algorithm::const_formatter(Format) ); } # 406 "/usr/include/boost/algorithm/string/replace.hpp" 3 4 template inline void ireplace_last( SequenceT& Input, const Range1T& Search, const Range2T& Format, const std::locale& Loc=std::locale() ) { ::boost::algorithm::find_format( Input, ::boost::algorithm::last_finder(Search, is_iequal(Loc)), ::boost::algorithm::const_formatter(Format) ); } # 439 "/usr/include/boost/algorithm/string/replace.hpp" 3 4 template< typename OutputIteratorT, typename Range1T, typename Range2T, typename Range3T> inline OutputIteratorT replace_nth_copy( OutputIteratorT Output, const Range1T& Input, const Range2T& Search, int Nth, const Range3T& Format ) { return ::boost::algorithm::find_format_copy( Output, Input, ::boost::algorithm::nth_finder(Search, Nth), ::boost::algorithm::const_formatter(Format) ); } template inline SequenceT replace_nth_copy( const SequenceT& Input, const Range1T& Search, int Nth, const Range2T& Format ) { return ::boost::algorithm::find_format_copy( Input, ::boost::algorithm::nth_finder(Search, Nth), ::boost::algorithm::const_formatter(Format) ); } # 486 "/usr/include/boost/algorithm/string/replace.hpp" 3 4 template inline void replace_nth( SequenceT& Input, const Range1T& Search, int Nth, const Range2T& Format ) { ::boost::algorithm::find_format( Input, ::boost::algorithm::nth_finder(Search, Nth), ::boost::algorithm::const_formatter(Format) ); } # 521 "/usr/include/boost/algorithm/string/replace.hpp" 3 4 template< typename OutputIteratorT, typename Range1T, typename Range2T, typename Range3T> inline OutputIteratorT ireplace_nth_copy( OutputIteratorT Output, const Range1T& Input, const Range2T& Search, int Nth, const Range3T& Format, const std::locale& Loc=std::locale() ) { return ::boost::algorithm::find_format_copy( Output, Input, ::boost::algorithm::nth_finder(Search, Nth, is_iequal(Loc) ), ::boost::algorithm::const_formatter(Format) ); } template inline SequenceT ireplace_nth_copy( const SequenceT& Input, const Range1T& Search, int Nth, const Range2T& Format, const std::locale& Loc=std::locale() ) { return ::boost::algorithm::find_format_copy( Input, ::boost::algorithm::nth_finder(Search, Nth, is_iequal(Loc)), ::boost::algorithm::const_formatter(Format) ); } # 572 "/usr/include/boost/algorithm/string/replace.hpp" 3 4 template inline void ireplace_nth( SequenceT& Input, const Range1T& Search, int Nth, const Range2T& Format, const std::locale& Loc=std::locale() ) { ::boost::algorithm::find_format( Input, ::boost::algorithm::nth_finder(Search, Nth, is_iequal(Loc)), ::boost::algorithm::const_formatter(Format) ); } # 604 "/usr/include/boost/algorithm/string/replace.hpp" 3 4 template< typename OutputIteratorT, typename Range1T, typename Range2T, typename Range3T> inline OutputIteratorT replace_all_copy( OutputIteratorT Output, const Range1T& Input, const Range2T& Search, const Range3T& Format ) { return ::boost::algorithm::find_format_all_copy( Output, Input, ::boost::algorithm::first_finder(Search), ::boost::algorithm::const_formatter(Format) ); } template inline SequenceT replace_all_copy( const SequenceT& Input, const Range1T& Search, const Range2T& Format ) { return ::boost::algorithm::find_format_all_copy( Input, ::boost::algorithm::first_finder(Search), ::boost::algorithm::const_formatter(Format) ); } # 648 "/usr/include/boost/algorithm/string/replace.hpp" 3 4 template inline void replace_all( SequenceT& Input, const Range1T& Search, const Range2T& Format ) { ::boost::algorithm::find_format_all( Input, ::boost::algorithm::first_finder(Search), ::boost::algorithm::const_formatter(Format) ); } # 680 "/usr/include/boost/algorithm/string/replace.hpp" 3 4 template< typename OutputIteratorT, typename Range1T, typename Range2T, typename Range3T> inline OutputIteratorT ireplace_all_copy( OutputIteratorT Output, const Range1T& Input, const Range2T& Search, const Range3T& Format, const std::locale& Loc=std::locale() ) { return ::boost::algorithm::find_format_all_copy( Output, Input, ::boost::algorithm::first_finder(Search, is_iequal(Loc)), ::boost::algorithm::const_formatter(Format) ); } template inline SequenceT ireplace_all_copy( const SequenceT& Input, const Range1T& Search, const Range2T& Format, const std::locale& Loc=std::locale() ) { return ::boost::algorithm::find_format_all_copy( Input, ::boost::algorithm::first_finder(Search, is_iequal(Loc)), ::boost::algorithm::const_formatter(Format) ); } # 727 "/usr/include/boost/algorithm/string/replace.hpp" 3 4 template inline void ireplace_all( SequenceT& Input, const Range1T& Search, const Range2T& Format, const std::locale& Loc=std::locale() ) { ::boost::algorithm::find_format_all( Input, ::boost::algorithm::first_finder(Search, is_iequal(Loc)), ::boost::algorithm::const_formatter(Format) ); } # 762 "/usr/include/boost/algorithm/string/replace.hpp" 3 4 template< typename OutputIteratorT, typename Range1T, typename Range2T> inline OutputIteratorT replace_head_copy( OutputIteratorT Output, const Range1T& Input, int N, const Range2T& Format ) { return ::boost::algorithm::find_format_copy( Output, Input, ::boost::algorithm::head_finder(N), ::boost::algorithm::const_formatter(Format) ); } template inline SequenceT replace_head_copy( const SequenceT& Input, int N, const RangeT& Format ) { return ::boost::algorithm::find_format_copy( Input, ::boost::algorithm::head_finder(N), ::boost::algorithm::const_formatter(Format) ); } # 808 "/usr/include/boost/algorithm/string/replace.hpp" 3 4 template inline void replace_head( SequenceT& Input, int N, const RangeT& Format ) { ::boost::algorithm::find_format( Input, ::boost::algorithm::head_finder(N), ::boost::algorithm::const_formatter(Format) ); } # 842 "/usr/include/boost/algorithm/string/replace.hpp" 3 4 template< typename OutputIteratorT, typename Range1T, typename Range2T> inline OutputIteratorT replace_tail_copy( OutputIteratorT Output, const Range1T& Input, int N, const Range2T& Format ) { return ::boost::algorithm::find_format_copy( Output, Input, ::boost::algorithm::tail_finder(N), ::boost::algorithm::const_formatter(Format) ); } template inline SequenceT replace_tail_copy( const SequenceT& Input, int N, const RangeT& Format ) { return ::boost::algorithm::find_format_copy( Input, ::boost::algorithm::tail_finder(N), ::boost::algorithm::const_formatter(Format) ); } # 888 "/usr/include/boost/algorithm/string/replace.hpp" 3 4 template inline void replace_tail( SequenceT& Input, int N, const RangeT& Format ) { ::boost::algorithm::find_format( Input, ::boost::algorithm::tail_finder(N), ::boost::algorithm::const_formatter(Format) ); } } using algorithm::replace_range_copy; using algorithm::replace_range; using algorithm::replace_first_copy; using algorithm::replace_first; using algorithm::ireplace_first_copy; using algorithm::ireplace_first; using algorithm::replace_last_copy; using algorithm::replace_last; using algorithm::ireplace_last_copy; using algorithm::ireplace_last; using algorithm::replace_nth_copy; using algorithm::replace_nth; using algorithm::ireplace_nth_copy; using algorithm::ireplace_nth; using algorithm::replace_all_copy; using algorithm::replace_all; using algorithm::ireplace_all_copy; using algorithm::ireplace_all; using algorithm::replace_head_copy; using algorithm::replace_head; using algorithm::replace_tail_copy; using algorithm::replace_tail; } # 26 "/usr/include/boost/algorithm/string.hpp" 2 3 4 # 1 "/usr/include/boost/algorithm/string/erase.hpp" 1 3 4 # 31 "/usr/include/boost/algorithm/string/erase.hpp" 3 4 namespace boost { namespace algorithm { # 49 "/usr/include/boost/algorithm/string/erase.hpp" 3 4 template inline OutputIteratorT erase_range_copy( OutputIteratorT Output, const RangeT& Input, const iterator_range< typename range_const_iterator::type>& SearchRange ) { return ::boost::algorithm::find_format_copy( Output, Input, ::boost::algorithm::range_finder(SearchRange), ::boost::algorithm::empty_formatter(Input) ); } template inline SequenceT erase_range_copy( const SequenceT& Input, const iterator_range< typename range_const_iterator::type>& SearchRange ) { return ::boost::algorithm::find_format_copy( Input, ::boost::algorithm::range_finder(SearchRange), ::boost::algorithm::empty_formatter(Input) ); } # 89 "/usr/include/boost/algorithm/string/erase.hpp" 3 4 template inline void erase_range( SequenceT& Input, const iterator_range< typename range_iterator::type>& SearchRange ) { ::boost::algorithm::find_format( Input, ::boost::algorithm::range_finder(SearchRange), ::boost::algorithm::empty_formatter(Input) ); } # 118 "/usr/include/boost/algorithm/string/erase.hpp" 3 4 template< typename OutputIteratorT, typename Range1T, typename Range2T> inline OutputIteratorT erase_first_copy( OutputIteratorT Output, const Range1T& Input, const Range2T& Search ) { return ::boost::algorithm::find_format_copy( Output, Input, ::boost::algorithm::first_finder(Search), ::boost::algorithm::empty_formatter(Input) ); } template inline SequenceT erase_first_copy( const SequenceT& Input, const RangeT& Search ) { return ::boost::algorithm::find_format_copy( Input, ::boost::algorithm::first_finder(Search), ::boost::algorithm::empty_formatter(Input) ); } # 157 "/usr/include/boost/algorithm/string/erase.hpp" 3 4 template inline void erase_first( SequenceT& Input, const RangeT& Search ) { ::boost::algorithm::find_format( Input, ::boost::algorithm::first_finder(Search), ::boost::algorithm::empty_formatter(Input) ); } # 186 "/usr/include/boost/algorithm/string/erase.hpp" 3 4 template< typename OutputIteratorT, typename Range1T, typename Range2T> inline OutputIteratorT ierase_first_copy( OutputIteratorT Output, const Range1T& Input, const Range2T& Search, const std::locale& Loc=std::locale() ) { return ::boost::algorithm::find_format_copy( Output, Input, ::boost::algorithm::first_finder(Search, is_iequal(Loc)), ::boost::algorithm::empty_formatter(Input) ); } template inline SequenceT ierase_first_copy( const SequenceT& Input, const RangeT& Search, const std::locale& Loc=std::locale() ) { return ::boost::algorithm::find_format_copy( Input, ::boost::algorithm::first_finder(Search, is_iequal(Loc)), ::boost::algorithm::empty_formatter(Input) ); } # 228 "/usr/include/boost/algorithm/string/erase.hpp" 3 4 template inline void ierase_first( SequenceT& Input, const RangeT& Search, const std::locale& Loc=std::locale() ) { ::boost::algorithm::find_format( Input, ::boost::algorithm::first_finder(Search, is_iequal(Loc)), ::boost::algorithm::empty_formatter(Input) ); } # 256 "/usr/include/boost/algorithm/string/erase.hpp" 3 4 template< typename OutputIteratorT, typename Range1T, typename Range2T> inline OutputIteratorT erase_last_copy( OutputIteratorT Output, const Range1T& Input, const Range2T& Search ) { return ::boost::algorithm::find_format_copy( Output, Input, ::boost::algorithm::last_finder(Search), ::boost::algorithm::empty_formatter(Input) ); } template inline SequenceT erase_last_copy( const SequenceT& Input, const RangeT& Search ) { return ::boost::algorithm::find_format_copy( Input, ::boost::algorithm::last_finder(Search), ::boost::algorithm::empty_formatter(Input) ); } # 295 "/usr/include/boost/algorithm/string/erase.hpp" 3 4 template inline void erase_last( SequenceT& Input, const RangeT& Search ) { ::boost::algorithm::find_format( Input, ::boost::algorithm::last_finder(Search), ::boost::algorithm::empty_formatter(Input) ); } # 324 "/usr/include/boost/algorithm/string/erase.hpp" 3 4 template< typename OutputIteratorT, typename Range1T, typename Range2T> inline OutputIteratorT ierase_last_copy( OutputIteratorT Output, const Range1T& Input, const Range2T& Search, const std::locale& Loc=std::locale() ) { return ::boost::algorithm::find_format_copy( Output, Input, ::boost::algorithm::last_finder(Search, is_iequal(Loc)), ::boost::algorithm::empty_formatter(Input) ); } template inline SequenceT ierase_last_copy( const SequenceT& Input, const RangeT& Search, const std::locale& Loc=std::locale() ) { return ::boost::algorithm::find_format_copy( Input, ::boost::algorithm::last_finder(Search, is_iequal(Loc)), ::boost::algorithm::empty_formatter(Input) ); } # 366 "/usr/include/boost/algorithm/string/erase.hpp" 3 4 template inline void ierase_last( SequenceT& Input, const RangeT& Search, const std::locale& Loc=std::locale() ) { ::boost::algorithm::find_format( Input, ::boost::algorithm::last_finder(Search, is_iequal(Loc)), ::boost::algorithm::empty_formatter(Input) ); } # 397 "/usr/include/boost/algorithm/string/erase.hpp" 3 4 template< typename OutputIteratorT, typename Range1T, typename Range2T> inline OutputIteratorT erase_nth_copy( OutputIteratorT Output, const Range1T& Input, const Range2T& Search, int Nth ) { return ::boost::algorithm::find_format_copy( Output, Input, ::boost::algorithm::nth_finder(Search, Nth), ::boost::algorithm::empty_formatter(Input) ); } template inline SequenceT erase_nth_copy( const SequenceT& Input, const RangeT& Search, int Nth ) { return ::boost::algorithm::find_format_copy( Input, ::boost::algorithm::nth_finder(Search, Nth), ::boost::algorithm::empty_formatter(Input) ); } # 440 "/usr/include/boost/algorithm/string/erase.hpp" 3 4 template inline void erase_nth( SequenceT& Input, const RangeT& Search, int Nth ) { ::boost::algorithm::find_format( Input, ::boost::algorithm::nth_finder(Search, Nth), ::boost::algorithm::empty_formatter(Input) ); } # 472 "/usr/include/boost/algorithm/string/erase.hpp" 3 4 template< typename OutputIteratorT, typename Range1T, typename Range2T> inline OutputIteratorT ierase_nth_copy( OutputIteratorT Output, const Range1T& Input, const Range2T& Search, int Nth, const std::locale& Loc=std::locale() ) { return ::boost::algorithm::find_format_copy( Output, Input, ::boost::algorithm::nth_finder(Search, Nth, is_iequal(Loc)), ::boost::algorithm::empty_formatter(Input) ); } template inline SequenceT ierase_nth_copy( const SequenceT& Input, const RangeT& Search, int Nth, const std::locale& Loc=std::locale() ) { return ::boost::algorithm::find_format_copy( Input, ::boost::algorithm::nth_finder(Search, Nth, is_iequal(Loc)), empty_formatter(Input) ); } # 518 "/usr/include/boost/algorithm/string/erase.hpp" 3 4 template inline void ierase_nth( SequenceT& Input, const RangeT& Search, int Nth, const std::locale& Loc=std::locale() ) { ::boost::algorithm::find_format( Input, ::boost::algorithm::nth_finder(Search, Nth, is_iequal(Loc)), ::boost::algorithm::empty_formatter(Input) ); } # 549 "/usr/include/boost/algorithm/string/erase.hpp" 3 4 template< typename OutputIteratorT, typename Range1T, typename Range2T> inline OutputIteratorT erase_all_copy( OutputIteratorT Output, const Range1T& Input, const Range2T& Search ) { return ::boost::algorithm::find_format_all_copy( Output, Input, ::boost::algorithm::first_finder(Search), ::boost::algorithm::empty_formatter(Input) ); } template inline SequenceT erase_all_copy( const SequenceT& Input, const RangeT& Search ) { return ::boost::algorithm::find_format_all_copy( Input, ::boost::algorithm::first_finder(Search), ::boost::algorithm::empty_formatter(Input) ); } # 588 "/usr/include/boost/algorithm/string/erase.hpp" 3 4 template inline void erase_all( SequenceT& Input, const RangeT& Search ) { ::boost::algorithm::find_format_all( Input, ::boost::algorithm::first_finder(Search), ::boost::algorithm::empty_formatter(Input) ); } # 617 "/usr/include/boost/algorithm/string/erase.hpp" 3 4 template< typename OutputIteratorT, typename Range1T, typename Range2T> inline OutputIteratorT ierase_all_copy( OutputIteratorT Output, const Range1T& Input, const Range2T& Search, const std::locale& Loc=std::locale() ) { return ::boost::algorithm::find_format_all_copy( Output, Input, ::boost::algorithm::first_finder(Search, is_iequal(Loc)), ::boost::algorithm::empty_formatter(Input) ); } template inline SequenceT ierase_all_copy( const SequenceT& Input, const RangeT& Search, const std::locale& Loc=std::locale() ) { return ::boost::algorithm::find_format_all_copy( Input, ::boost::algorithm::first_finder(Search, is_iequal(Loc)), ::boost::algorithm::empty_formatter(Input) ); } # 659 "/usr/include/boost/algorithm/string/erase.hpp" 3 4 template inline void ierase_all( SequenceT& Input, const RangeT& Search, const std::locale& Loc=std::locale() ) { ::boost::algorithm::find_format_all( Input, ::boost::algorithm::first_finder(Search, is_iequal(Loc)), ::boost::algorithm::empty_formatter(Input) ); } # 691 "/usr/include/boost/algorithm/string/erase.hpp" 3 4 template< typename OutputIteratorT, typename RangeT> inline OutputIteratorT erase_head_copy( OutputIteratorT Output, const RangeT& Input, int N ) { return ::boost::algorithm::find_format_copy( Output, Input, ::boost::algorithm::head_finder(N), ::boost::algorithm::empty_formatter( Input ) ); } template inline SequenceT erase_head_copy( const SequenceT& Input, int N ) { return ::boost::algorithm::find_format_copy( Input, ::boost::algorithm::head_finder(N), ::boost::algorithm::empty_formatter( Input ) ); } # 732 "/usr/include/boost/algorithm/string/erase.hpp" 3 4 template inline void erase_head( SequenceT& Input, int N ) { ::boost::algorithm::find_format( Input, ::boost::algorithm::head_finder(N), ::boost::algorithm::empty_formatter( Input ) ); } # 763 "/usr/include/boost/algorithm/string/erase.hpp" 3 4 template< typename OutputIteratorT, typename RangeT> inline OutputIteratorT erase_tail_copy( OutputIteratorT Output, const RangeT& Input, int N ) { return ::boost::algorithm::find_format_copy( Output, Input, ::boost::algorithm::tail_finder(N), ::boost::algorithm::empty_formatter( Input ) ); } template inline SequenceT erase_tail_copy( const SequenceT& Input, int N ) { return ::boost::algorithm::find_format_copy( Input, ::boost::algorithm::tail_finder(N), ::boost::algorithm::empty_formatter( Input ) ); } # 804 "/usr/include/boost/algorithm/string/erase.hpp" 3 4 template inline void erase_tail( SequenceT& Input, int N ) { ::boost::algorithm::find_format( Input, ::boost::algorithm::tail_finder(N), ::boost::algorithm::empty_formatter( Input ) ); } } using algorithm::erase_range_copy; using algorithm::erase_range; using algorithm::erase_first_copy; using algorithm::erase_first; using algorithm::ierase_first_copy; using algorithm::ierase_first; using algorithm::erase_last_copy; using algorithm::erase_last; using algorithm::ierase_last_copy; using algorithm::ierase_last; using algorithm::erase_nth_copy; using algorithm::erase_nth; using algorithm::ierase_nth_copy; using algorithm::ierase_nth; using algorithm::erase_all_copy; using algorithm::erase_all; using algorithm::ierase_all_copy; using algorithm::ierase_all; using algorithm::erase_head_copy; using algorithm::erase_head; using algorithm::erase_tail_copy; using algorithm::erase_tail; } # 27 "/usr/include/boost/algorithm/string.hpp" 2 3 4 # 13 "namespaces.hh" 2 # 1 "/usr/include/c++/5.0.0/map" 1 3 # 58 "/usr/include/c++/5.0.0/map" 3 # 59 "/usr/include/c++/5.0.0/map" 3 # 1 "/usr/include/c++/5.0.0/bits/stl_tree.h" 1 3 # 61 "/usr/include/c++/5.0.0/bits/stl_tree.h" 3 # 62 "/usr/include/c++/5.0.0/bits/stl_tree.h" 3 # 72 "/usr/include/c++/5.0.0/bits/stl_tree.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 92 "/usr/include/c++/5.0.0/bits/stl_tree.h" 3 enum _Rb_tree_color { _S_red = false, _S_black = true }; struct _Rb_tree_node_base { typedef _Rb_tree_node_base* _Base_ptr; typedef const _Rb_tree_node_base* _Const_Base_ptr; _Rb_tree_color _M_color; _Base_ptr _M_parent; _Base_ptr _M_left; _Base_ptr _M_right; static _Base_ptr _S_minimum(_Base_ptr __x) { while (__x->_M_left != 0) __x = __x->_M_left; return __x; } static _Const_Base_ptr _S_minimum(_Const_Base_ptr __x) { while (__x->_M_left != 0) __x = __x->_M_left; return __x; } static _Base_ptr _S_maximum(_Base_ptr __x) { while (__x->_M_right != 0) __x = __x->_M_right; return __x; } static _Const_Base_ptr _S_maximum(_Const_Base_ptr __x) { while (__x->_M_right != 0) __x = __x->_M_right; return __x; } }; template struct _Rb_tree_node : public _Rb_tree_node_base { typedef _Rb_tree_node<_Val>* _Link_type; _Val _M_value_field; _Val* _M_valptr() { return std::__addressof(_M_value_field); } const _Val* _M_valptr() const { return std::__addressof(_M_value_field); } # 159 "/usr/include/c++/5.0.0/bits/stl_tree.h" 3 }; __attribute__ ((__pure__)) _Rb_tree_node_base* _Rb_tree_increment(_Rb_tree_node_base* __x) throw (); __attribute__ ((__pure__)) const _Rb_tree_node_base* _Rb_tree_increment(const _Rb_tree_node_base* __x) throw (); __attribute__ ((__pure__)) _Rb_tree_node_base* _Rb_tree_decrement(_Rb_tree_node_base* __x) throw (); __attribute__ ((__pure__)) const _Rb_tree_node_base* _Rb_tree_decrement(const _Rb_tree_node_base* __x) throw (); template struct _Rb_tree_iterator { typedef _Tp value_type; typedef _Tp& reference; typedef _Tp* pointer; typedef bidirectional_iterator_tag iterator_category; typedef ptrdiff_t difference_type; typedef _Rb_tree_iterator<_Tp> _Self; typedef _Rb_tree_node_base::_Base_ptr _Base_ptr; typedef _Rb_tree_node<_Tp>* _Link_type; _Rb_tree_iterator() : _M_node() { } explicit _Rb_tree_iterator(_Link_type __x) : _M_node(__x) { } reference operator*() const { return *static_cast<_Link_type>(_M_node)->_M_valptr(); } pointer operator->() const { return static_cast<_Link_type> (_M_node)->_M_valptr(); } _Self& operator++() { _M_node = _Rb_tree_increment(_M_node); return *this; } _Self operator++(int) { _Self __tmp = *this; _M_node = _Rb_tree_increment(_M_node); return __tmp; } _Self& operator--() { _M_node = _Rb_tree_decrement(_M_node); return *this; } _Self operator--(int) { _Self __tmp = *this; _M_node = _Rb_tree_decrement(_M_node); return __tmp; } bool operator==(const _Self& __x) const { return _M_node == __x._M_node; } bool operator!=(const _Self& __x) const { return _M_node != __x._M_node; } _Base_ptr _M_node; }; template struct _Rb_tree_const_iterator { typedef _Tp value_type; typedef const _Tp& reference; typedef const _Tp* pointer; typedef _Rb_tree_iterator<_Tp> iterator; typedef bidirectional_iterator_tag iterator_category; typedef ptrdiff_t difference_type; typedef _Rb_tree_const_iterator<_Tp> _Self; typedef _Rb_tree_node_base::_Const_Base_ptr _Base_ptr; typedef const _Rb_tree_node<_Tp>* _Link_type; _Rb_tree_const_iterator() : _M_node() { } explicit _Rb_tree_const_iterator(_Link_type __x) : _M_node(__x) { } _Rb_tree_const_iterator(const iterator& __it) : _M_node(__it._M_node) { } iterator _M_const_cast() const { return iterator(static_cast (const_cast(_M_node))); } reference operator*() const { return *static_cast<_Link_type>(_M_node)->_M_valptr(); } pointer operator->() const { return static_cast<_Link_type>(_M_node)->_M_valptr(); } _Self& operator++() { _M_node = _Rb_tree_increment(_M_node); return *this; } _Self operator++(int) { _Self __tmp = *this; _M_node = _Rb_tree_increment(_M_node); return __tmp; } _Self& operator--() { _M_node = _Rb_tree_decrement(_M_node); return *this; } _Self operator--(int) { _Self __tmp = *this; _M_node = _Rb_tree_decrement(_M_node); return __tmp; } bool operator==(const _Self& __x) const { return _M_node == __x._M_node; } bool operator!=(const _Self& __x) const { return _M_node != __x._M_node; } _Base_ptr _M_node; }; template inline bool operator==(const _Rb_tree_iterator<_Val>& __x, const _Rb_tree_const_iterator<_Val>& __y) { return __x._M_node == __y._M_node; } template inline bool operator!=(const _Rb_tree_iterator<_Val>& __x, const _Rb_tree_const_iterator<_Val>& __y) { return __x._M_node != __y._M_node; } void _Rb_tree_insert_and_rebalance(const bool __insert_left, _Rb_tree_node_base* __x, _Rb_tree_node_base* __p, _Rb_tree_node_base& __header) throw (); _Rb_tree_node_base* _Rb_tree_rebalance_for_erase(_Rb_tree_node_base* const __z, _Rb_tree_node_base& __header) throw (); template > class _Rb_tree { typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template rebind<_Rb_tree_node<_Val> >::other _Node_allocator; typedef __gnu_cxx::__alloc_traits<_Node_allocator> _Alloc_traits; protected: typedef _Rb_tree_node_base* _Base_ptr; typedef const _Rb_tree_node_base* _Const_Base_ptr; typedef _Rb_tree_node<_Val>* _Link_type; typedef const _Rb_tree_node<_Val>* _Const_Link_type; private: struct _Reuse_or_alloc_node { _Reuse_or_alloc_node(_Rb_tree& __t) : _M_root(__t._M_root()), _M_nodes(__t._M_rightmost()), _M_t(__t) { if (_M_root) { _M_root->_M_parent = 0; if (_M_nodes->_M_left) _M_nodes = _M_nodes->_M_left; } else _M_nodes = 0; } ~_Reuse_or_alloc_node() { _M_t._M_erase(static_cast<_Link_type>(_M_root)); } template _Link_type operator()(const _Arg& __arg) { _Link_type __node = static_cast<_Link_type>(_M_extract()); if (__node) { _M_t._M_destroy_node(__node); _M_t._M_construct_node(__node, (__arg)); return __node; } return _M_t._M_create_node((__arg)); } private: _Base_ptr _M_extract() { if (!_M_nodes) return _M_nodes; _Base_ptr __node = _M_nodes; _M_nodes = _M_nodes->_M_parent; if (_M_nodes) { if (_M_nodes->_M_right == __node) { _M_nodes->_M_right = 0; if (_M_nodes->_M_left) { _M_nodes = _M_nodes->_M_left; while (_M_nodes->_M_right) _M_nodes = _M_nodes->_M_right; if (_M_nodes->_M_left) _M_nodes = _M_nodes->_M_left; } } else _M_nodes->_M_left = 0; } else _M_root = 0; return __node; } _Base_ptr _M_root; _Base_ptr _M_nodes; _Rb_tree& _M_t; }; struct _Alloc_node { _Alloc_node(_Rb_tree& __t) : _M_t(__t) { } template _Link_type operator()(const _Arg& __arg) const { return _M_t._M_create_node((__arg)); } private: _Rb_tree& _M_t; }; public: typedef _Key key_type; typedef _Val value_type; typedef value_type* pointer; typedef const value_type* const_pointer; typedef value_type& reference; typedef const value_type& const_reference; typedef size_t size_type; typedef ptrdiff_t difference_type; typedef _Alloc allocator_type; _Node_allocator& _M_get_Node_allocator() { return *static_cast<_Node_allocator*>(&this->_M_impl); } const _Node_allocator& _M_get_Node_allocator() const { return *static_cast(&this->_M_impl); } allocator_type get_allocator() const { return allocator_type(_M_get_Node_allocator()); } protected: _Link_type _M_get_node() { return _Alloc_traits::allocate(_M_get_Node_allocator(), 1); } void _M_put_node(_Link_type __p) { _Alloc_traits::deallocate(_M_get_Node_allocator(), __p, 1); } void _M_construct_node(_Link_type __node, const value_type& __x) { try { get_allocator().construct(__node->_M_valptr(), __x); } catch(...) { _M_put_node(__node); throw; } } _Link_type _M_create_node(const value_type& __x) { _Link_type __tmp = _M_get_node(); _M_construct_node(__tmp, __x); return __tmp; } void _M_destroy_node(_Link_type __p) { get_allocator().destroy(__p->_M_valptr()); } # 559 "/usr/include/c++/5.0.0/bits/stl_tree.h" 3 void _M_drop_node(_Link_type __p) { _M_destroy_node(__p); _M_put_node(__p); } template _Link_type _M_clone_node(_Const_Link_type __x, _NodeGen& __node_gen) { _Link_type __tmp = __node_gen(*__x->_M_valptr()); __tmp->_M_color = __x->_M_color; __tmp->_M_left = 0; __tmp->_M_right = 0; return __tmp; } protected: template struct _Rb_tree_impl : public _Node_allocator { _Key_compare _M_key_compare; _Rb_tree_node_base _M_header; size_type _M_node_count; _Rb_tree_impl() : _Node_allocator(), _M_key_compare(), _M_header(), _M_node_count(0) { _M_initialize(); } _Rb_tree_impl(const _Key_compare& __comp, const _Node_allocator& __a) : _Node_allocator(__a), _M_key_compare(__comp), _M_header(), _M_node_count(0) { _M_initialize(); } # 604 "/usr/include/c++/5.0.0/bits/stl_tree.h" 3 void _M_reset() { this->_M_header._M_parent = 0; this->_M_header._M_left = &this->_M_header; this->_M_header._M_right = &this->_M_header; this->_M_node_count = 0; } private: void _M_initialize() { this->_M_header._M_color = _S_red; this->_M_header._M_parent = 0; this->_M_header._M_left = &this->_M_header; this->_M_header._M_right = &this->_M_header; } }; _Rb_tree_impl<_Compare> _M_impl; protected: _Base_ptr& _M_root() { return this->_M_impl._M_header._M_parent; } _Const_Base_ptr _M_root() const { return this->_M_impl._M_header._M_parent; } _Base_ptr& _M_leftmost() { return this->_M_impl._M_header._M_left; } _Const_Base_ptr _M_leftmost() const { return this->_M_impl._M_header._M_left; } _Base_ptr& _M_rightmost() { return this->_M_impl._M_header._M_right; } _Const_Base_ptr _M_rightmost() const { return this->_M_impl._M_header._M_right; } _Link_type _M_begin() { return static_cast<_Link_type>(this->_M_impl._M_header._M_parent); } _Const_Link_type _M_begin() const { return static_cast<_Const_Link_type> (this->_M_impl._M_header._M_parent); } _Link_type _M_end() { return reinterpret_cast<_Link_type>(&this->_M_impl._M_header); } _Const_Link_type _M_end() const { return reinterpret_cast<_Const_Link_type>(&this->_M_impl._M_header); } static const_reference _S_value(_Const_Link_type __x) { return *__x->_M_valptr(); } static const _Key& _S_key(_Const_Link_type __x) { return _KeyOfValue()(_S_value(__x)); } static _Link_type _S_left(_Base_ptr __x) { return static_cast<_Link_type>(__x->_M_left); } static _Const_Link_type _S_left(_Const_Base_ptr __x) { return static_cast<_Const_Link_type>(__x->_M_left); } static _Link_type _S_right(_Base_ptr __x) { return static_cast<_Link_type>(__x->_M_right); } static _Const_Link_type _S_right(_Const_Base_ptr __x) { return static_cast<_Const_Link_type>(__x->_M_right); } static const_reference _S_value(_Const_Base_ptr __x) { return *static_cast<_Const_Link_type>(__x)->_M_valptr(); } static const _Key& _S_key(_Const_Base_ptr __x) { return _KeyOfValue()(_S_value(__x)); } static _Base_ptr _S_minimum(_Base_ptr __x) { return _Rb_tree_node_base::_S_minimum(__x); } static _Const_Base_ptr _S_minimum(_Const_Base_ptr __x) { return _Rb_tree_node_base::_S_minimum(__x); } static _Base_ptr _S_maximum(_Base_ptr __x) { return _Rb_tree_node_base::_S_maximum(__x); } static _Const_Base_ptr _S_maximum(_Const_Base_ptr __x) { return _Rb_tree_node_base::_S_maximum(__x); } public: typedef _Rb_tree_iterator iterator; typedef _Rb_tree_const_iterator const_iterator; typedef std::reverse_iterator reverse_iterator; typedef std::reverse_iterator const_reverse_iterator; private: pair<_Base_ptr, _Base_ptr> _M_get_insert_unique_pos(const key_type& __k); pair<_Base_ptr, _Base_ptr> _M_get_insert_equal_pos(const key_type& __k); pair<_Base_ptr, _Base_ptr> _M_get_insert_hint_unique_pos(const_iterator __pos, const key_type& __k); pair<_Base_ptr, _Base_ptr> _M_get_insert_hint_equal_pos(const_iterator __pos, const key_type& __k); # 762 "/usr/include/c++/5.0.0/bits/stl_tree.h" 3 template iterator _M_insert_(_Base_ptr __x, _Base_ptr __y, const value_type& __v, _NodeGen&); iterator _M_insert_lower(_Base_ptr __y, const value_type& __v); iterator _M_insert_equal_lower(const value_type& __x); template _Link_type _M_copy(_Const_Link_type __x, _Link_type __p, _NodeGen&); _Link_type _M_copy(_Const_Link_type __x, _Link_type __p) { _Alloc_node __an(*this); return _M_copy(__x, __p, __an); } void _M_erase(_Link_type __x); iterator _M_lower_bound(_Link_type __x, _Link_type __y, const _Key& __k); const_iterator _M_lower_bound(_Const_Link_type __x, _Const_Link_type __y, const _Key& __k) const; iterator _M_upper_bound(_Link_type __x, _Link_type __y, const _Key& __k); const_iterator _M_upper_bound(_Const_Link_type __x, _Const_Link_type __y, const _Key& __k) const; public: _Rb_tree() { } _Rb_tree(const _Compare& __comp, const allocator_type& __a = allocator_type()) : _M_impl(__comp, _Node_allocator(__a)) { } _Rb_tree(const _Rb_tree& __x) : _M_impl(__x._M_impl._M_key_compare, _Alloc_traits::_S_select_on_copy(__x._M_get_Node_allocator())) { if (__x._M_root() != 0) { _M_root() = _M_copy(__x._M_begin(), _M_end()); _M_leftmost() = _S_minimum(_M_root()); _M_rightmost() = _S_maximum(_M_root()); _M_impl._M_node_count = __x._M_impl._M_node_count; } } # 858 "/usr/include/c++/5.0.0/bits/stl_tree.h" 3 ~_Rb_tree() { _M_erase(_M_begin()); } _Rb_tree& operator=(const _Rb_tree& __x); _Compare key_comp() const { return _M_impl._M_key_compare; } iterator begin() { return iterator(static_cast<_Link_type> (this->_M_impl._M_header._M_left)); } const_iterator begin() const { return const_iterator(static_cast<_Const_Link_type> (this->_M_impl._M_header._M_left)); } iterator end() { return iterator(static_cast<_Link_type>(&this->_M_impl._M_header)); } const_iterator end() const { return const_iterator(static_cast<_Const_Link_type> (&this->_M_impl._M_header)); } reverse_iterator rbegin() { return reverse_iterator(end()); } const_reverse_iterator rbegin() const { return const_reverse_iterator(end()); } reverse_iterator rend() { return reverse_iterator(begin()); } const_reverse_iterator rend() const { return const_reverse_iterator(begin()); } bool empty() const { return _M_impl._M_node_count == 0; } size_type size() const { return _M_impl._M_node_count; } size_type max_size() const { return _Alloc_traits::max_size(_M_get_Node_allocator()); } void swap(_Rb_tree& __t); # 979 "/usr/include/c++/5.0.0/bits/stl_tree.h" 3 pair _M_insert_unique(const value_type& __x); iterator _M_insert_equal(const value_type& __x); template iterator _M_insert_unique_(const_iterator __pos, const value_type& __x, _NodeGen&); iterator _M_insert_unique_(const_iterator __pos, const value_type& __x) { _Alloc_node __an(*this); return _M_insert_unique_(__pos, __x, __an); } template iterator _M_insert_equal_(const_iterator __pos, const value_type& __x, _NodeGen&); iterator _M_insert_equal_(const_iterator __pos, const value_type& __x) { _Alloc_node __an(*this); return _M_insert_equal_(__pos, __x, __an); } template void _M_insert_unique(_InputIterator __first, _InputIterator __last); template void _M_insert_equal(_InputIterator __first, _InputIterator __last); private: void _M_erase_aux(const_iterator __position); void _M_erase_aux(const_iterator __first, const_iterator __last); public: # 1049 "/usr/include/c++/5.0.0/bits/stl_tree.h" 3 void erase(iterator __position) { _M_erase_aux(__position); } void erase(const_iterator __position) { _M_erase_aux(__position); } size_type erase(const key_type& __x); # 1071 "/usr/include/c++/5.0.0/bits/stl_tree.h" 3 void erase(iterator __first, iterator __last) { _M_erase_aux(__first, __last); } void erase(const_iterator __first, const_iterator __last) { _M_erase_aux(__first, __last); } void erase(const key_type* __first, const key_type* __last); void clear() { _M_erase(_M_begin()); _M_impl._M_reset(); } iterator find(const key_type& __k); const_iterator find(const key_type& __k) const; size_type count(const key_type& __k) const; iterator lower_bound(const key_type& __k) { return _M_lower_bound(_M_begin(), _M_end(), __k); } const_iterator lower_bound(const key_type& __k) const { return _M_lower_bound(_M_begin(), _M_end(), __k); } iterator upper_bound(const key_type& __k) { return _M_upper_bound(_M_begin(), _M_end(), __k); } const_iterator upper_bound(const key_type& __k) const { return _M_upper_bound(_M_begin(), _M_end(), __k); } pair equal_range(const key_type& __k); pair equal_range(const key_type& __k) const; # 1253 "/usr/include/c++/5.0.0/bits/stl_tree.h" 3 bool __rb_verify() const; # 1278 "/usr/include/c++/5.0.0/bits/stl_tree.h" 3 }; template inline bool operator==(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y) { return __x.size() == __y.size() && std::equal(__x.begin(), __x.end(), __y.begin()); } template inline bool operator<(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y) { return std::lexicographical_compare(__x.begin(), __x.end(), __y.begin(), __y.end()); } template inline bool operator!=(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y) { return !(__x == __y); } template inline bool operator>(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y) { return __y < __x; } template inline bool operator<=(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y) { return !(__y < __x); } template inline bool operator>=(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y) { return !(__x < __y); } template inline void swap(_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y) { __x.swap(__y); } # 1458 "/usr/include/c++/5.0.0/bits/stl_tree.h" 3 template _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: operator=(const _Rb_tree& __x) { if (this != &__x) { # 1483 "/usr/include/c++/5.0.0/bits/stl_tree.h" 3 _Reuse_or_alloc_node __roan(*this); _M_impl._M_reset(); _M_impl._M_key_compare = __x._M_impl._M_key_compare; if (__x._M_root() != 0) { _M_root() = _M_copy(__x._M_begin(), _M_end(), __roan); _M_leftmost() = _S_minimum(_M_root()); _M_rightmost() = _S_maximum(_M_root()); _M_impl._M_node_count = __x._M_impl._M_node_count; } } return *this; } template template typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_insert_(_Base_ptr __x, _Base_ptr __p, const _Val& __v, _NodeGen& __node_gen) { bool __insert_left = (__x != 0 || __p == _M_end() || _M_impl._M_key_compare(_KeyOfValue()(__v), _S_key(__p))); _Link_type __z = __node_gen((__v)); _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, this->_M_impl._M_header); ++_M_impl._M_node_count; return iterator(__z); } template typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_insert_lower(_Base_ptr __p, const _Val& __v) { bool __insert_left = (__p == _M_end() || !_M_impl._M_key_compare(_S_key(__p), _KeyOfValue()(__v))); _Link_type __z = _M_create_node((__v)); _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, this->_M_impl._M_header); ++_M_impl._M_node_count; return iterator(__z); } template typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_insert_equal_lower(const _Val& __v) { _Link_type __x = _M_begin(); _Link_type __y = _M_end(); while (__x != 0) { __y = __x; __x = !_M_impl._M_key_compare(_S_key(__x), _KeyOfValue()(__v)) ? _S_left(__x) : _S_right(__x); } return _M_insert_lower(__y, (__v)); } template template typename _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>::_Link_type _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>:: _M_copy(_Const_Link_type __x, _Link_type __p, _NodeGen& __node_gen) { _Link_type __top = _M_clone_node(__x, __node_gen); __top->_M_parent = __p; try { if (__x->_M_right) __top->_M_right = _M_copy(_S_right(__x), __top, __node_gen); __p = __top; __x = _S_left(__x); while (__x != 0) { _Link_type __y = _M_clone_node(__x, __node_gen); __p->_M_left = __y; __y->_M_parent = __p; if (__x->_M_right) __y->_M_right = _M_copy(_S_right(__x), __y, __node_gen); __p = __y; __x = _S_left(__x); } } catch(...) { _M_erase(__top); throw; } return __top; } template void _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_erase(_Link_type __x) { while (__x != 0) { _M_erase(_S_right(__x)); _Link_type __y = _S_left(__x); _M_drop_node(__x); __x = __y; } } template typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_lower_bound(_Link_type __x, _Link_type __y, const _Key& __k) { while (__x != 0) if (!_M_impl._M_key_compare(_S_key(__x), __k)) __y = __x, __x = _S_left(__x); else __x = _S_right(__x); return iterator(__y); } template typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_lower_bound(_Const_Link_type __x, _Const_Link_type __y, const _Key& __k) const { while (__x != 0) if (!_M_impl._M_key_compare(_S_key(__x), __k)) __y = __x, __x = _S_left(__x); else __x = _S_right(__x); return const_iterator(__y); } template typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_upper_bound(_Link_type __x, _Link_type __y, const _Key& __k) { while (__x != 0) if (_M_impl._M_key_compare(__k, _S_key(__x))) __y = __x, __x = _S_left(__x); else __x = _S_right(__x); return iterator(__y); } template typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_upper_bound(_Const_Link_type __x, _Const_Link_type __y, const _Key& __k) const { while (__x != 0) if (_M_impl._M_key_compare(__k, _S_key(__x))) __y = __x, __x = _S_left(__x); else __x = _S_right(__x); return const_iterator(__y); } template pair::iterator, typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator> _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: equal_range(const _Key& __k) { _Link_type __x = _M_begin(); _Link_type __y = _M_end(); while (__x != 0) { if (_M_impl._M_key_compare(_S_key(__x), __k)) __x = _S_right(__x); else if (_M_impl._M_key_compare(__k, _S_key(__x))) __y = __x, __x = _S_left(__x); else { _Link_type __xu(__x), __yu(__y); __y = __x, __x = _S_left(__x); __xu = _S_right(__xu); return pair(_M_lower_bound(__x, __y, __k), _M_upper_bound(__xu, __yu, __k)); } } return pair(iterator(__y), iterator(__y)); } template pair::const_iterator, typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator> _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: equal_range(const _Key& __k) const { _Const_Link_type __x = _M_begin(); _Const_Link_type __y = _M_end(); while (__x != 0) { if (_M_impl._M_key_compare(_S_key(__x), __k)) __x = _S_right(__x); else if (_M_impl._M_key_compare(__k, _S_key(__x))) __y = __x, __x = _S_left(__x); else { _Const_Link_type __xu(__x), __yu(__y); __y = __x, __x = _S_left(__x); __xu = _S_right(__xu); return pair(_M_lower_bound(__x, __y, __k), _M_upper_bound(__xu, __yu, __k)); } } return pair(const_iterator(__y), const_iterator(__y)); } template void _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: swap(_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __t) { if (_M_root() == 0) { if (__t._M_root() != 0) { _M_root() = __t._M_root(); _M_leftmost() = __t._M_leftmost(); _M_rightmost() = __t._M_rightmost(); _M_root()->_M_parent = _M_end(); _M_impl._M_node_count = __t._M_impl._M_node_count; __t._M_impl._M_reset(); } } else if (__t._M_root() == 0) { __t._M_root() = _M_root(); __t._M_leftmost() = _M_leftmost(); __t._M_rightmost() = _M_rightmost(); __t._M_root()->_M_parent = __t._M_end(); __t._M_impl._M_node_count = _M_impl._M_node_count; _M_impl._M_reset(); } else { std::swap(_M_root(),__t._M_root()); std::swap(_M_leftmost(),__t._M_leftmost()); std::swap(_M_rightmost(),__t._M_rightmost()); _M_root()->_M_parent = _M_end(); __t._M_root()->_M_parent = __t._M_end(); std::swap(this->_M_impl._M_node_count, __t._M_impl._M_node_count); } std::swap(this->_M_impl._M_key_compare, __t._M_impl._M_key_compare); _Alloc_traits::_S_on_swap(_M_get_Node_allocator(), __t._M_get_Node_allocator()); } template pair::_Base_ptr, typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr> _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_get_insert_unique_pos(const key_type& __k) { typedef pair<_Base_ptr, _Base_ptr> _Res; _Link_type __x = _M_begin(); _Link_type __y = _M_end(); bool __comp = true; while (__x != 0) { __y = __x; __comp = _M_impl._M_key_compare(__k, _S_key(__x)); __x = __comp ? _S_left(__x) : _S_right(__x); } iterator __j = iterator(__y); if (__comp) { if (__j == begin()) return _Res(__x, __y); else --__j; } if (_M_impl._M_key_compare(_S_key(__j._M_node), __k)) return _Res(__x, __y); return _Res(__j._M_node, 0); } template pair::_Base_ptr, typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr> _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_get_insert_equal_pos(const key_type& __k) { typedef pair<_Base_ptr, _Base_ptr> _Res; _Link_type __x = _M_begin(); _Link_type __y = _M_end(); while (__x != 0) { __y = __x; __x = _M_impl._M_key_compare(__k, _S_key(__x)) ? _S_left(__x) : _S_right(__x); } return _Res(__x, __y); } template pair::iterator, bool> _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_insert_unique(const _Val& __v) { typedef pair _Res; pair<_Base_ptr, _Base_ptr> __res = _M_get_insert_unique_pos(_KeyOfValue()(__v)); if (__res.second) { _Alloc_node __an(*this); return _Res(_M_insert_(__res.first, __res.second, (__v), __an), true); } return _Res(iterator(static_cast<_Link_type>(__res.first)), false); } template typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_insert_equal(const _Val& __v) { pair<_Base_ptr, _Base_ptr> __res = _M_get_insert_equal_pos(_KeyOfValue()(__v)); _Alloc_node __an(*this); return _M_insert_(__res.first, __res.second, (__v), __an); } template pair::_Base_ptr, typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr> _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_get_insert_hint_unique_pos(const_iterator __position, const key_type& __k) { iterator __pos = __position._M_const_cast(); typedef pair<_Base_ptr, _Base_ptr> _Res; if (__pos._M_node == _M_end()) { if (size() > 0 && _M_impl._M_key_compare(_S_key(_M_rightmost()), __k)) return _Res(0, _M_rightmost()); else return _M_get_insert_unique_pos(__k); } else if (_M_impl._M_key_compare(__k, _S_key(__pos._M_node))) { iterator __before = __pos; if (__pos._M_node == _M_leftmost()) return _Res(_M_leftmost(), _M_leftmost()); else if (_M_impl._M_key_compare(_S_key((--__before)._M_node), __k)) { if (_S_right(__before._M_node) == 0) return _Res(0, __before._M_node); else return _Res(__pos._M_node, __pos._M_node); } else return _M_get_insert_unique_pos(__k); } else if (_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) { iterator __after = __pos; if (__pos._M_node == _M_rightmost()) return _Res(0, _M_rightmost()); else if (_M_impl._M_key_compare(__k, _S_key((++__after)._M_node))) { if (_S_right(__pos._M_node) == 0) return _Res(0, __pos._M_node); else return _Res(__after._M_node, __after._M_node); } else return _M_get_insert_unique_pos(__k); } else return _Res(__pos._M_node, 0); } template template typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_insert_unique_(const_iterator __position, const _Val& __v, _NodeGen& __node_gen) { pair<_Base_ptr, _Base_ptr> __res = _M_get_insert_hint_unique_pos(__position, _KeyOfValue()(__v)); if (__res.second) return _M_insert_(__res.first, __res.second, (__v), __node_gen); return iterator(static_cast<_Link_type>(__res.first)); } template pair::_Base_ptr, typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr> _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_get_insert_hint_equal_pos(const_iterator __position, const key_type& __k) { iterator __pos = __position._M_const_cast(); typedef pair<_Base_ptr, _Base_ptr> _Res; if (__pos._M_node == _M_end()) { if (size() > 0 && !_M_impl._M_key_compare(__k, _S_key(_M_rightmost()))) return _Res(0, _M_rightmost()); else return _M_get_insert_equal_pos(__k); } else if (!_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) { iterator __before = __pos; if (__pos._M_node == _M_leftmost()) return _Res(_M_leftmost(), _M_leftmost()); else if (!_M_impl._M_key_compare(__k, _S_key((--__before)._M_node))) { if (_S_right(__before._M_node) == 0) return _Res(0, __before._M_node); else return _Res(__pos._M_node, __pos._M_node); } else return _M_get_insert_equal_pos(__k); } else { iterator __after = __pos; if (__pos._M_node == _M_rightmost()) return _Res(0, _M_rightmost()); else if (!_M_impl._M_key_compare(_S_key((++__after)._M_node), __k)) { if (_S_right(__pos._M_node) == 0) return _Res(0, __pos._M_node); else return _Res(__after._M_node, __after._M_node); } else return _Res(0, 0); } } template template typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_insert_equal_(const_iterator __position, const _Val& __v, _NodeGen& __node_gen) { pair<_Base_ptr, _Base_ptr> __res = _M_get_insert_hint_equal_pos(__position, _KeyOfValue()(__v)); if (__res.second) return _M_insert_(__res.first, __res.second, (__v), __node_gen); return _M_insert_equal_lower((__v)); } # 2225 "/usr/include/c++/5.0.0/bits/stl_tree.h" 3 template template void _Rb_tree<_Key, _Val, _KoV, _Cmp, _Alloc>:: _M_insert_unique(_II __first, _II __last) { _Alloc_node __an(*this); for (; __first != __last; ++__first) _M_insert_unique_(end(), *__first, __an); } template template void _Rb_tree<_Key, _Val, _KoV, _Cmp, _Alloc>:: _M_insert_equal(_II __first, _II __last) { _Alloc_node __an(*this); for (; __first != __last; ++__first) _M_insert_equal_(end(), *__first, __an); } template void _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_erase_aux(const_iterator __position) { _Link_type __y = static_cast<_Link_type>(_Rb_tree_rebalance_for_erase (const_cast<_Base_ptr>(__position._M_node), this->_M_impl._M_header)); _M_drop_node(__y); --_M_impl._M_node_count; } template void _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_erase_aux(const_iterator __first, const_iterator __last) { if (__first == begin() && __last == end()) clear(); else while (__first != __last) erase(__first++); } template typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: erase(const _Key& __x) { pair __p = equal_range(__x); const size_type __old_size = size(); erase(__p.first, __p.second); return __old_size - size(); } template void _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: erase(const _Key* __first, const _Key* __last) { while (__first != __last) erase(*__first++); } template typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: find(const _Key& __k) { iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); return (__j == end() || _M_impl._M_key_compare(__k, _S_key(__j._M_node))) ? end() : __j; } template typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: find(const _Key& __k) const { const_iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); return (__j == end() || _M_impl._M_key_compare(__k, _S_key(__j._M_node))) ? end() : __j; } template typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: count(const _Key& __k) const { pair __p = equal_range(__k); const size_type __n = std::distance(__p.first, __p.second); return __n; } __attribute__ ((__pure__)) unsigned int _Rb_tree_black_count(const _Rb_tree_node_base* __node, const _Rb_tree_node_base* __root) throw (); template bool _Rb_tree<_Key,_Val,_KeyOfValue,_Compare,_Alloc>::__rb_verify() const { if (_M_impl._M_node_count == 0 || begin() == end()) return _M_impl._M_node_count == 0 && begin() == end() && this->_M_impl._M_header._M_left == _M_end() && this->_M_impl._M_header._M_right == _M_end(); unsigned int __len = _Rb_tree_black_count(_M_leftmost(), _M_root()); for (const_iterator __it = begin(); __it != end(); ++__it) { _Const_Link_type __x = static_cast<_Const_Link_type>(__it._M_node); _Const_Link_type __L = _S_left(__x); _Const_Link_type __R = _S_right(__x); if (__x->_M_color == _S_red) if ((__L && __L->_M_color == _S_red) || (__R && __R->_M_color == _S_red)) return false; if (__L && _M_impl._M_key_compare(_S_key(__x), _S_key(__L))) return false; if (__R && _M_impl._M_key_compare(_S_key(__R), _S_key(__x))) return false; if (!__L && !__R && _Rb_tree_black_count(__x, _M_root()) != __len) return false; } if (_M_leftmost() != _Rb_tree_node_base::_S_minimum(_M_root())) return false; if (_M_rightmost() != _Rb_tree_node_base::_S_maximum(_M_root())) return false; return true; } } # 61 "/usr/include/c++/5.0.0/map" 2 3 # 1 "/usr/include/c++/5.0.0/bits/stl_map.h" 1 3 # 66 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 94 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 template , typename _Alloc = std::allocator > > class map { public: typedef _Key key_type; typedef _Tp mapped_type; typedef std::pair value_type; typedef _Compare key_compare; typedef _Alloc allocator_type; private: typedef typename _Alloc::value_type _Alloc_value_type; public: class value_compare : public std::binary_function { friend class map<_Key, _Tp, _Compare, _Alloc>; protected: _Compare comp; value_compare(_Compare __c) : comp(__c) { } public: bool operator()(const value_type& __x, const value_type& __y) const { return comp(__x.first, __y.first); } }; private: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template rebind::other _Pair_alloc_type; typedef _Rb_tree, key_compare, _Pair_alloc_type> _Rep_type; _Rep_type _M_t; typedef __gnu_cxx::__alloc_traits<_Pair_alloc_type> _Alloc_traits; public: typedef typename _Alloc_traits::pointer pointer; typedef typename _Alloc_traits::const_pointer const_pointer; typedef typename _Alloc_traits::reference reference; typedef typename _Alloc_traits::const_reference const_reference; typedef typename _Rep_type::iterator iterator; typedef typename _Rep_type::const_iterator const_iterator; typedef typename _Rep_type::size_type size_type; typedef typename _Rep_type::difference_type difference_type; typedef typename _Rep_type::reverse_iterator reverse_iterator; typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; map() : _M_t() { } explicit map(const _Compare& __comp, const allocator_type& __a = allocator_type()) : _M_t(__comp, _Pair_alloc_type(__a)) { } # 182 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 map(const map& __x) : _M_t(__x._M_t) { } # 252 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 template map(_InputIterator __first, _InputIterator __last) : _M_t() { _M_t._M_insert_unique(__first, __last); } # 269 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 template map(_InputIterator __first, _InputIterator __last, const _Compare& __comp, const allocator_type& __a = allocator_type()) : _M_t(__comp, _Pair_alloc_type(__a)) { _M_t._M_insert_unique(__first, __last); } # 292 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 map& operator=(const map& __x) { _M_t = __x._M_t; return *this; } # 324 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 allocator_type get_allocator() const { return allocator_type(_M_t.get_allocator()); } iterator begin() { return _M_t.begin(); } const_iterator begin() const { return _M_t.begin(); } iterator end() { return _M_t.end(); } const_iterator end() const { return _M_t.end(); } reverse_iterator rbegin() { return _M_t.rbegin(); } const_reverse_iterator rbegin() const { return _M_t.rbegin(); } reverse_iterator rend() { return _M_t.rend(); } const_reverse_iterator rend() const { return _M_t.rend(); } # 443 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 bool empty() const { return _M_t.empty(); } size_type size() const { return _M_t.size(); } size_type max_size() const { return _M_t.max_size(); } # 470 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 mapped_type& operator[](const key_type& __k) { iterator __i = lower_bound(__k); if (__i == end() || key_comp()(__k, (*__i).first)) __i = insert(__i, value_type(__k, mapped_type())); return (*__i).second; } # 515 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 mapped_type& at(const key_type& __k) { iterator __i = lower_bound(__k); if (__i == end() || key_comp()(__k, (*__i).first)) __throw_out_of_range(("map::at")); return (*__i).second; } const mapped_type& at(const key_type& __k) const { const_iterator __i = lower_bound(__k); if (__i == end() || key_comp()(__k, (*__i).first)) __throw_out_of_range(("map::at")); return (*__i).second; } # 608 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 std::pair insert(const value_type& __x) { return _M_t._M_insert_unique(__x); } # 657 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 iterator insert(iterator __position, const value_type& __x) { return _M_t._M_insert_unique_(__position, __x); } # 683 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 template void insert(_InputIterator __first, _InputIterator __last) { _M_t._M_insert_unique(__first, __last); } # 724 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 void erase(iterator __position) { _M_t.erase(__position); } # 740 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 size_type erase(const key_type& __x) { return _M_t.erase(__x); } # 776 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 void erase(iterator __first, iterator __last) { _M_t.erase(__first, __last); } # 792 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 void swap(map& __x) { _M_t.swap(__x._M_t); } void clear() { _M_t.clear(); } key_compare key_comp() const { return _M_t.key_comp(); } value_compare value_comp() const { return value_compare(_M_t.key_comp()); } # 841 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 iterator find(const key_type& __x) { return _M_t.find(__x); } # 866 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 const_iterator find(const key_type& __x) const { return _M_t.find(__x); } # 887 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 size_type count(const key_type& __x) const { return _M_t.find(__x) == _M_t.end() ? 0 : 1; } # 911 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 iterator lower_bound(const key_type& __x) { return _M_t.lower_bound(__x); } # 936 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 const_iterator lower_bound(const key_type& __x) const { return _M_t.lower_bound(__x); } # 956 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 iterator upper_bound(const key_type& __x) { return _M_t.upper_bound(__x); } # 976 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 const_iterator upper_bound(const key_type& __x) const { return _M_t.upper_bound(__x); } # 1005 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 std::pair equal_range(const key_type& __x) { return _M_t.equal_range(__x); } # 1034 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 std::pair equal_range(const key_type& __x) const { return _M_t.equal_range(__x); } # 1047 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 template friend bool operator==(const map<_K1, _T1, _C1, _A1>&, const map<_K1, _T1, _C1, _A1>&); template friend bool operator<(const map<_K1, _T1, _C1, _A1>&, const map<_K1, _T1, _C1, _A1>&); }; # 1068 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 template inline bool operator==(const map<_Key, _Tp, _Compare, _Alloc>& __x, const map<_Key, _Tp, _Compare, _Alloc>& __y) { return __x._M_t == __y._M_t; } # 1085 "/usr/include/c++/5.0.0/bits/stl_map.h" 3 template inline bool operator<(const map<_Key, _Tp, _Compare, _Alloc>& __x, const map<_Key, _Tp, _Compare, _Alloc>& __y) { return __x._M_t < __y._M_t; } template inline bool operator!=(const map<_Key, _Tp, _Compare, _Alloc>& __x, const map<_Key, _Tp, _Compare, _Alloc>& __y) { return !(__x == __y); } template inline bool operator>(const map<_Key, _Tp, _Compare, _Alloc>& __x, const map<_Key, _Tp, _Compare, _Alloc>& __y) { return __y < __x; } template inline bool operator<=(const map<_Key, _Tp, _Compare, _Alloc>& __x, const map<_Key, _Tp, _Compare, _Alloc>& __y) { return !(__y < __x); } template inline bool operator>=(const map<_Key, _Tp, _Compare, _Alloc>& __x, const map<_Key, _Tp, _Compare, _Alloc>& __y) { return !(__x < __y); } template inline void swap(map<_Key, _Tp, _Compare, _Alloc>& __x, map<_Key, _Tp, _Compare, _Alloc>& __y) { __x.swap(__y); } } # 62 "/usr/include/c++/5.0.0/map" 2 3 # 1 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 1 3 # 64 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 92 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 3 template , typename _Alloc = std::allocator > > class multimap { public: typedef _Key key_type; typedef _Tp mapped_type; typedef std::pair value_type; typedef _Compare key_compare; typedef _Alloc allocator_type; private: typedef typename _Alloc::value_type _Alloc_value_type; public: class value_compare : public std::binary_function { friend class multimap<_Key, _Tp, _Compare, _Alloc>; protected: _Compare comp; value_compare(_Compare __c) : comp(__c) { } public: bool operator()(const value_type& __x, const value_type& __y) const { return comp(__x.first, __y.first); } }; private: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template rebind::other _Pair_alloc_type; typedef _Rb_tree, key_compare, _Pair_alloc_type> _Rep_type; _Rep_type _M_t; typedef __gnu_cxx::__alloc_traits<_Pair_alloc_type> _Alloc_traits; public: typedef typename _Alloc_traits::pointer pointer; typedef typename _Alloc_traits::const_pointer const_pointer; typedef typename _Alloc_traits::reference reference; typedef typename _Alloc_traits::const_reference const_reference; typedef typename _Rep_type::iterator iterator; typedef typename _Rep_type::const_iterator const_iterator; typedef typename _Rep_type::size_type size_type; typedef typename _Rep_type::difference_type difference_type; typedef typename _Rep_type::reverse_iterator reverse_iterator; typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; multimap() : _M_t() { } explicit multimap(const _Compare& __comp, const allocator_type& __a = allocator_type()) : _M_t(__comp, _Pair_alloc_type(__a)) { } # 180 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 3 multimap(const multimap& __x) : _M_t(__x._M_t) { } # 248 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 3 template multimap(_InputIterator __first, _InputIterator __last) : _M_t() { _M_t._M_insert_equal(__first, __last); } # 264 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 3 template multimap(_InputIterator __first, _InputIterator __last, const _Compare& __comp, const allocator_type& __a = allocator_type()) : _M_t(__comp, _Pair_alloc_type(__a)) { _M_t._M_insert_equal(__first, __last); } # 287 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 3 multimap& operator=(const multimap& __x) { _M_t = __x._M_t; return *this; } # 319 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 3 allocator_type get_allocator() const { return allocator_type(_M_t.get_allocator()); } iterator begin() { return _M_t.begin(); } const_iterator begin() const { return _M_t.begin(); } iterator end() { return _M_t.end(); } const_iterator end() const { return _M_t.end(); } reverse_iterator rbegin() { return _M_t.rbegin(); } const_reverse_iterator rbegin() const { return _M_t.rbegin(); } reverse_iterator rend() { return _M_t.rend(); } const_reverse_iterator rend() const { return _M_t.rend(); } # 436 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 3 bool empty() const { return _M_t.empty(); } size_type size() const { return _M_t.size(); } size_type max_size() const { return _M_t.max_size(); } # 516 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 3 iterator insert(const value_type& __x) { return _M_t._M_insert_equal(__x); } # 549 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 3 iterator insert(iterator __position, const value_type& __x) { return _M_t._M_insert_equal_(__position, __x); } # 576 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 3 template void insert(_InputIterator __first, _InputIterator __last) { _M_t._M_insert_equal(__first, __last); } # 630 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 3 void erase(iterator __position) { _M_t.erase(__position); } # 646 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 3 size_type erase(const key_type& __x) { return _M_t.erase(__x); } # 686 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 3 void erase(iterator __first, iterator __last) { _M_t.erase(__first, __last); } # 702 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 3 void swap(multimap& __x) { _M_t.swap(__x._M_t); } void clear() { _M_t.clear(); } key_compare key_comp() const { return _M_t.key_comp(); } value_compare value_comp() const { return value_compare(_M_t.key_comp()); } # 750 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 3 iterator find(const key_type& __x) { return _M_t.find(__x); } # 774 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 3 const_iterator find(const key_type& __x) const { return _M_t.find(__x); } # 792 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 3 size_type count(const key_type& __x) const { return _M_t.count(__x); } # 816 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 3 iterator lower_bound(const key_type& __x) { return _M_t.lower_bound(__x); } # 841 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 3 const_iterator lower_bound(const key_type& __x) const { return _M_t.lower_bound(__x); } # 861 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 3 iterator upper_bound(const key_type& __x) { return _M_t.upper_bound(__x); } # 881 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 3 const_iterator upper_bound(const key_type& __x) const { return _M_t.upper_bound(__x); } # 908 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 3 std::pair equal_range(const key_type& __x) { return _M_t.equal_range(__x); } # 935 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 3 std::pair equal_range(const key_type& __x) const { return _M_t.equal_range(__x); } # 948 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 3 template friend bool operator==(const multimap<_K1, _T1, _C1, _A1>&, const multimap<_K1, _T1, _C1, _A1>&); template friend bool operator<(const multimap<_K1, _T1, _C1, _A1>&, const multimap<_K1, _T1, _C1, _A1>&); }; # 969 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 3 template inline bool operator==(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, const multimap<_Key, _Tp, _Compare, _Alloc>& __y) { return __x._M_t == __y._M_t; } # 986 "/usr/include/c++/5.0.0/bits/stl_multimap.h" 3 template inline bool operator<(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, const multimap<_Key, _Tp, _Compare, _Alloc>& __y) { return __x._M_t < __y._M_t; } template inline bool operator!=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, const multimap<_Key, _Tp, _Compare, _Alloc>& __y) { return !(__x == __y); } template inline bool operator>(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, const multimap<_Key, _Tp, _Compare, _Alloc>& __y) { return __y < __x; } template inline bool operator<=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, const multimap<_Key, _Tp, _Compare, _Alloc>& __y) { return !(__y < __x); } template inline bool operator>=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, const multimap<_Key, _Tp, _Compare, _Alloc>& __y) { return !(__x < __y); } template inline void swap(multimap<_Key, _Tp, _Compare, _Alloc>& __x, multimap<_Key, _Tp, _Compare, _Alloc>& __y) { __x.swap(__y); } } # 63 "/usr/include/c++/5.0.0/map" 2 3 # 15 "namespaces.hh" 2 # 1 "/usr/include/c++/5.0.0/set" 1 3 # 58 "/usr/include/c++/5.0.0/set" 3 # 59 "/usr/include/c++/5.0.0/set" 3 # 1 "/usr/include/c++/5.0.0/bits/stl_set.h" 1 3 # 64 "/usr/include/c++/5.0.0/bits/stl_set.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 88 "/usr/include/c++/5.0.0/bits/stl_set.h" 3 template, typename _Alloc = std::allocator<_Key> > class set { typedef typename _Alloc::value_type _Alloc_value_type; public: typedef _Key key_type; typedef _Key value_type; typedef _Compare key_compare; typedef _Compare value_compare; typedef _Alloc allocator_type; private: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template rebind<_Key>::other _Key_alloc_type; typedef _Rb_tree, key_compare, _Key_alloc_type> _Rep_type; _Rep_type _M_t; typedef __gnu_cxx::__alloc_traits<_Key_alloc_type> _Alloc_traits; public: typedef typename _Alloc_traits::pointer pointer; typedef typename _Alloc_traits::const_pointer const_pointer; typedef typename _Alloc_traits::reference reference; typedef typename _Alloc_traits::const_reference const_reference; typedef typename _Rep_type::const_iterator iterator; typedef typename _Rep_type::const_iterator const_iterator; typedef typename _Rep_type::const_reverse_iterator reverse_iterator; typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; typedef typename _Rep_type::size_type size_type; typedef typename _Rep_type::difference_type difference_type; set() : _M_t() { } explicit set(const _Compare& __comp, const allocator_type& __a = allocator_type()) : _M_t(__comp, _Key_alloc_type(__a)) { } # 165 "/usr/include/c++/5.0.0/bits/stl_set.h" 3 template set(_InputIterator __first, _InputIterator __last) : _M_t() { _M_t._M_insert_unique(__first, __last); } # 182 "/usr/include/c++/5.0.0/bits/stl_set.h" 3 template set(_InputIterator __first, _InputIterator __last, const _Compare& __comp, const allocator_type& __a = allocator_type()) : _M_t(__comp, _Key_alloc_type(__a)) { _M_t._M_insert_unique(__first, __last); } # 196 "/usr/include/c++/5.0.0/bits/stl_set.h" 3 set(const set& __x) : _M_t(__x._M_t) { } # 262 "/usr/include/c++/5.0.0/bits/stl_set.h" 3 set& operator=(const set& __x) { _M_t = __x._M_t; return *this; } # 296 "/usr/include/c++/5.0.0/bits/stl_set.h" 3 key_compare key_comp() const { return _M_t.key_comp(); } value_compare value_comp() const { return _M_t.key_comp(); } allocator_type get_allocator() const { return allocator_type(_M_t.get_allocator()); } iterator begin() const { return _M_t.begin(); } iterator end() const { return _M_t.end(); } reverse_iterator rbegin() const { return _M_t.rbegin(); } reverse_iterator rend() const { return _M_t.rend(); } # 383 "/usr/include/c++/5.0.0/bits/stl_set.h" 3 bool empty() const { return _M_t.empty(); } size_type size() const { return _M_t.size(); } size_type max_size() const { return _M_t.max_size(); } # 408 "/usr/include/c++/5.0.0/bits/stl_set.h" 3 void swap(set& __x) { _M_t.swap(__x._M_t); } # 478 "/usr/include/c++/5.0.0/bits/stl_set.h" 3 std::pair insert(const value_type& __x) { std::pair __p = _M_t._M_insert_unique(__x); return std::pair(__p.first, __p.second); } # 515 "/usr/include/c++/5.0.0/bits/stl_set.h" 3 iterator insert(const_iterator __position, const value_type& __x) { return _M_t._M_insert_unique_(__position, __x); } # 534 "/usr/include/c++/5.0.0/bits/stl_set.h" 3 template void insert(_InputIterator __first, _InputIterator __last) { _M_t._M_insert_unique(__first, __last); } # 583 "/usr/include/c++/5.0.0/bits/stl_set.h" 3 void erase(iterator __position) { _M_t.erase(__position); } # 599 "/usr/include/c++/5.0.0/bits/stl_set.h" 3 size_type erase(const key_type& __x) { return _M_t.erase(__x); } # 637 "/usr/include/c++/5.0.0/bits/stl_set.h" 3 void erase(iterator __first, iterator __last) { _M_t.erase(__first, __last); } # 648 "/usr/include/c++/5.0.0/bits/stl_set.h" 3 void clear() { _M_t.clear(); } # 663 "/usr/include/c++/5.0.0/bits/stl_set.h" 3 size_type count(const key_type& __x) const { return _M_t.find(__x) == _M_t.end() ? 0 : 1; } # 690 "/usr/include/c++/5.0.0/bits/stl_set.h" 3 iterator find(const key_type& __x) { return _M_t.find(__x); } const_iterator find(const key_type& __x) const { return _M_t.find(__x); } # 723 "/usr/include/c++/5.0.0/bits/stl_set.h" 3 iterator lower_bound(const key_type& __x) { return _M_t.lower_bound(__x); } const_iterator lower_bound(const key_type& __x) const { return _M_t.lower_bound(__x); } # 753 "/usr/include/c++/5.0.0/bits/stl_set.h" 3 iterator upper_bound(const key_type& __x) { return _M_t.upper_bound(__x); } const_iterator upper_bound(const key_type& __x) const { return _M_t.upper_bound(__x); } # 792 "/usr/include/c++/5.0.0/bits/stl_set.h" 3 std::pair equal_range(const key_type& __x) { return _M_t.equal_range(__x); } std::pair equal_range(const key_type& __x) const { return _M_t.equal_range(__x); } # 815 "/usr/include/c++/5.0.0/bits/stl_set.h" 3 template friend bool operator==(const set<_K1, _C1, _A1>&, const set<_K1, _C1, _A1>&); template friend bool operator<(const set<_K1, _C1, _A1>&, const set<_K1, _C1, _A1>&); }; # 835 "/usr/include/c++/5.0.0/bits/stl_set.h" 3 template inline bool operator==(const set<_Key, _Compare, _Alloc>& __x, const set<_Key, _Compare, _Alloc>& __y) { return __x._M_t == __y._M_t; } # 852 "/usr/include/c++/5.0.0/bits/stl_set.h" 3 template inline bool operator<(const set<_Key, _Compare, _Alloc>& __x, const set<_Key, _Compare, _Alloc>& __y) { return __x._M_t < __y._M_t; } template inline bool operator!=(const set<_Key, _Compare, _Alloc>& __x, const set<_Key, _Compare, _Alloc>& __y) { return !(__x == __y); } template inline bool operator>(const set<_Key, _Compare, _Alloc>& __x, const set<_Key, _Compare, _Alloc>& __y) { return __y < __x; } template inline bool operator<=(const set<_Key, _Compare, _Alloc>& __x, const set<_Key, _Compare, _Alloc>& __y) { return !(__y < __x); } template inline bool operator>=(const set<_Key, _Compare, _Alloc>& __x, const set<_Key, _Compare, _Alloc>& __y) { return !(__x < __y); } template inline void swap(set<_Key, _Compare, _Alloc>& __x, set<_Key, _Compare, _Alloc>& __y) { __x.swap(__y); } } # 62 "/usr/include/c++/5.0.0/set" 2 3 # 1 "/usr/include/c++/5.0.0/bits/stl_multiset.h" 1 3 # 64 "/usr/include/c++/5.0.0/bits/stl_multiset.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 90 "/usr/include/c++/5.0.0/bits/stl_multiset.h" 3 template , typename _Alloc = std::allocator<_Key> > class multiset { typedef typename _Alloc::value_type _Alloc_value_type; public: typedef _Key key_type; typedef _Key value_type; typedef _Compare key_compare; typedef _Compare value_compare; typedef _Alloc allocator_type; private: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template rebind<_Key>::other _Key_alloc_type; typedef _Rb_tree, key_compare, _Key_alloc_type> _Rep_type; _Rep_type _M_t; typedef __gnu_cxx::__alloc_traits<_Key_alloc_type> _Alloc_traits; public: typedef typename _Alloc_traits::pointer pointer; typedef typename _Alloc_traits::const_pointer const_pointer; typedef typename _Alloc_traits::reference reference; typedef typename _Alloc_traits::const_reference const_reference; typedef typename _Rep_type::const_iterator iterator; typedef typename _Rep_type::const_iterator const_iterator; typedef typename _Rep_type::const_reverse_iterator reverse_iterator; typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; typedef typename _Rep_type::size_type size_type; typedef typename _Rep_type::difference_type difference_type; multiset() : _M_t() { } explicit multiset(const _Compare& __comp, const allocator_type& __a = allocator_type()) : _M_t(__comp, _Key_alloc_type(__a)) { } # 162 "/usr/include/c++/5.0.0/bits/stl_multiset.h" 3 template multiset(_InputIterator __first, _InputIterator __last) : _M_t() { _M_t._M_insert_equal(__first, __last); } # 178 "/usr/include/c++/5.0.0/bits/stl_multiset.h" 3 template multiset(_InputIterator __first, _InputIterator __last, const _Compare& __comp, const allocator_type& __a = allocator_type()) : _M_t(__comp, _Key_alloc_type(__a)) { _M_t._M_insert_equal(__first, __last); } # 192 "/usr/include/c++/5.0.0/bits/stl_multiset.h" 3 multiset(const multiset& __x) : _M_t(__x._M_t) { } # 258 "/usr/include/c++/5.0.0/bits/stl_multiset.h" 3 multiset& operator=(const multiset& __x) { _M_t = __x._M_t; return *this; } # 292 "/usr/include/c++/5.0.0/bits/stl_multiset.h" 3 key_compare key_comp() const { return _M_t.key_comp(); } value_compare value_comp() const { return _M_t.key_comp(); } allocator_type get_allocator() const { return allocator_type(_M_t.get_allocator()); } iterator begin() const { return _M_t.begin(); } iterator end() const { return _M_t.end(); } reverse_iterator rbegin() const { return _M_t.rbegin(); } reverse_iterator rend() const { return _M_t.rend(); } # 379 "/usr/include/c++/5.0.0/bits/stl_multiset.h" 3 bool empty() const { return _M_t.empty(); } size_type size() const { return _M_t.size(); } size_type max_size() const { return _M_t.max_size(); } # 404 "/usr/include/c++/5.0.0/bits/stl_multiset.h" 3 void swap(multiset& __x) { _M_t.swap(__x._M_t); } # 471 "/usr/include/c++/5.0.0/bits/stl_multiset.h" 3 iterator insert(const value_type& __x) { return _M_t._M_insert_equal(__x); } # 501 "/usr/include/c++/5.0.0/bits/stl_multiset.h" 3 iterator insert(const_iterator __position, const value_type& __x) { return _M_t._M_insert_equal_(__position, __x); } # 519 "/usr/include/c++/5.0.0/bits/stl_multiset.h" 3 template void insert(_InputIterator __first, _InputIterator __last) { _M_t._M_insert_equal(__first, __last); } # 568 "/usr/include/c++/5.0.0/bits/stl_multiset.h" 3 void erase(iterator __position) { _M_t.erase(__position); } # 584 "/usr/include/c++/5.0.0/bits/stl_multiset.h" 3 size_type erase(const key_type& __x) { return _M_t.erase(__x); } # 622 "/usr/include/c++/5.0.0/bits/stl_multiset.h" 3 void erase(iterator __first, iterator __last) { _M_t.erase(__first, __last); } # 633 "/usr/include/c++/5.0.0/bits/stl_multiset.h" 3 void clear() { _M_t.clear(); } # 645 "/usr/include/c++/5.0.0/bits/stl_multiset.h" 3 size_type count(const key_type& __x) const { return _M_t.count(__x); } # 671 "/usr/include/c++/5.0.0/bits/stl_multiset.h" 3 iterator find(const key_type& __x) { return _M_t.find(__x); } const_iterator find(const key_type& __x) const { return _M_t.find(__x); } # 704 "/usr/include/c++/5.0.0/bits/stl_multiset.h" 3 iterator lower_bound(const key_type& __x) { return _M_t.lower_bound(__x); } const_iterator lower_bound(const key_type& __x) const { return _M_t.lower_bound(__x); } # 734 "/usr/include/c++/5.0.0/bits/stl_multiset.h" 3 iterator upper_bound(const key_type& __x) { return _M_t.upper_bound(__x); } const_iterator upper_bound(const key_type& __x) const { return _M_t.upper_bound(__x); } # 773 "/usr/include/c++/5.0.0/bits/stl_multiset.h" 3 std::pair equal_range(const key_type& __x) { return _M_t.equal_range(__x); } std::pair equal_range(const key_type& __x) const { return _M_t.equal_range(__x); } # 796 "/usr/include/c++/5.0.0/bits/stl_multiset.h" 3 template friend bool operator==(const multiset<_K1, _C1, _A1>&, const multiset<_K1, _C1, _A1>&); template friend bool operator< (const multiset<_K1, _C1, _A1>&, const multiset<_K1, _C1, _A1>&); }; # 818 "/usr/include/c++/5.0.0/bits/stl_multiset.h" 3 template inline bool operator==(const multiset<_Key, _Compare, _Alloc>& __x, const multiset<_Key, _Compare, _Alloc>& __y) { return __x._M_t == __y._M_t; } # 835 "/usr/include/c++/5.0.0/bits/stl_multiset.h" 3 template inline bool operator<(const multiset<_Key, _Compare, _Alloc>& __x, const multiset<_Key, _Compare, _Alloc>& __y) { return __x._M_t < __y._M_t; } template inline bool operator!=(const multiset<_Key, _Compare, _Alloc>& __x, const multiset<_Key, _Compare, _Alloc>& __y) { return !(__x == __y); } template inline bool operator>(const multiset<_Key,_Compare,_Alloc>& __x, const multiset<_Key,_Compare,_Alloc>& __y) { return __y < __x; } template inline bool operator<=(const multiset<_Key, _Compare, _Alloc>& __x, const multiset<_Key, _Compare, _Alloc>& __y) { return !(__y < __x); } template inline bool operator>=(const multiset<_Key, _Compare, _Alloc>& __x, const multiset<_Key, _Compare, _Alloc>& __y) { return !(__x < __y); } template inline void swap(multiset<_Key, _Compare, _Alloc>& __x, multiset<_Key, _Compare, _Alloc>& __y) { __x.swap(__y); } } # 63 "/usr/include/c++/5.0.0/set" 2 3 # 16 "namespaces.hh" 2 # 1 "/usr/include/c++/5.0.0/iostream" 1 3 # 36 "/usr/include/c++/5.0.0/iostream" 3 # 37 "/usr/include/c++/5.0.0/iostream" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 60 "/usr/include/c++/5.0.0/iostream" 3 extern istream cin; extern ostream cout; extern ostream cerr; extern ostream clog; extern wistream wcin; extern wostream wcout; extern wostream wcerr; extern wostream wclog; static ios_base::Init __ioinit; } # 19 "namespaces.hh" 2 # 20 "namespaces.hh" using std::vector; using std::map; using std::pair; using std::make_pair; using std::runtime_error; using std::ostringstream; using std::set; using std::deque; using std::cerr; using std::cout; using std::clog; using std::endl; using std::ifstream; using std::ofstream; using std::ostream; using std::min; using std::max; namespace pdns { typedef std::string string; }; typedef pdns::string string; using boost::lexical_cast; using boost::tie; using boost::shared_ptr; using boost::shared_array; using boost::scoped_array; using boost::tuple; using boost::format; using boost::make_tuple; using boost::optional; using boost::any_cast; using boost::any; using boost::function; using boost::trim; using boost::trim_left; using boost::trim_right; using boost::is_any_of; using boost::trim_right_copy_if; using boost::equals; using boost::ends_with; using boost::iends_with; # 24 "ws-recursor.hh" 2 # 1 "mplexer.hh" 1 # 1 "/usr/include/boost/function.hpp" 1 3 4 # 64 "/usr/include/boost/function.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 1 3 4 # 24 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 1 3 4 # 12 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/slot/detail/shared.hpp" 1 3 4 # 13 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 2 3 4 # 25 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 1 3 4 # 12 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/slot/detail/shared.hpp" 1 3 4 # 13 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 2 3 4 # 27 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 47 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 48 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 53 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 58 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 63 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 68 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 73 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 78 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 83 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 88 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 93 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 98 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 65 "/usr/include/boost/function.hpp" 2 3 4 # 4 "mplexer.hh" 2 # 1 "/usr/include/boost/tuple/tuple_comparison.hpp" 1 3 4 # 35 "/usr/include/boost/tuple/tuple_comparison.hpp" 3 4 # 35 "/usr/include/boost/tuple/tuple_comparison.hpp" 3 4 namespace boost { namespace tuples { inline bool operator==(const null_type&, const null_type&) { return true; } inline bool operator>=(const null_type&, const null_type&) { return true; } inline bool operator<=(const null_type&, const null_type&) { return true; } inline bool operator!=(const null_type&, const null_type&) { return false; } inline bool operator<(const null_type&, const null_type&) { return false; } inline bool operator>(const null_type&, const null_type&) { return false; } namespace detail { template inline bool eq(const T1& lhs, const T2& rhs) { return lhs.get_head() == rhs.get_head() && eq(lhs.get_tail(), rhs.get_tail()); } template<> inline bool eq(const null_type&, const null_type&) { return true; } template inline bool neq(const T1& lhs, const T2& rhs) { return lhs.get_head() != rhs.get_head() || neq(lhs.get_tail(), rhs.get_tail()); } template<> inline bool neq(const null_type&, const null_type&) { return false; } template inline bool lt(const T1& lhs, const T2& rhs) { return lhs.get_head() < rhs.get_head() || ( !(rhs.get_head() < lhs.get_head()) && lt(lhs.get_tail(), rhs.get_tail())); } template<> inline bool lt(const null_type&, const null_type&) { return false; } template inline bool gt(const T1& lhs, const T2& rhs) { return lhs.get_head() > rhs.get_head() || ( !(rhs.get_head() > lhs.get_head()) && gt(lhs.get_tail(), rhs.get_tail())); } template<> inline bool gt(const null_type&, const null_type&) { return false; } template inline bool lte(const T1& lhs, const T2& rhs) { return lhs.get_head() <= rhs.get_head() && ( !(rhs.get_head() <= lhs.get_head()) || lte(lhs.get_tail(), rhs.get_tail())); } template<> inline bool lte(const null_type&, const null_type&) { return true; } template inline bool gte(const T1& lhs, const T2& rhs) { return lhs.get_head() >= rhs.get_head() && ( !(rhs.get_head() >= lhs.get_head()) || gte(lhs.get_tail(), rhs.get_tail())); } template<> inline bool gte(const null_type&, const null_type&) { return true; } } template inline bool operator==(const cons& lhs, const cons& rhs) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((length::value == length::value) == 0 ? false : true) >)> boost_static_assert_typedef_114 __attribute__((unused)); return detail::eq(lhs, rhs); } template inline bool operator!=(const cons& lhs, const cons& rhs) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((length::value == length::value) == 0 ? false : true) >)> boost_static_assert_typedef_126 __attribute__((unused)); return detail::neq(lhs, rhs); } template inline bool operator<(const cons& lhs, const cons& rhs) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((length::value == length::value) == 0 ? false : true) >)> boost_static_assert_typedef_136 __attribute__((unused)); return detail::lt(lhs, rhs); } template inline bool operator>(const cons& lhs, const cons& rhs) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((length::value == length::value) == 0 ? false : true) >)> boost_static_assert_typedef_146 __attribute__((unused)); return detail::gt(lhs, rhs); } template inline bool operator<=(const cons& lhs, const cons& rhs) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((length::value == length::value) == 0 ? false : true) >)> boost_static_assert_typedef_156 __attribute__((unused)); return detail::lte(lhs, rhs); } template inline bool operator>=(const cons& lhs, const cons& rhs) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((length::value == length::value) == 0 ? false : true) >)> boost_static_assert_typedef_166 __attribute__((unused)); return detail::gte(lhs, rhs); } } } # 8 "mplexer.hh" 2 # 1 "utility.hh" 1 # 34 "utility.hh" # 1 "/usr/include/arpa/inet.h" 1 3 4 # 30 "/usr/include/arpa/inet.h" 3 4 extern "C" { extern in_addr_t inet_addr (const char *__cp) throw (); extern in_addr_t inet_lnaof (struct in_addr __in) throw (); extern struct in_addr inet_makeaddr (in_addr_t __net, in_addr_t __host) throw (); extern in_addr_t inet_netof (struct in_addr __in) throw (); extern in_addr_t inet_network (const char *__cp) throw (); extern char *inet_ntoa (struct in_addr __in) throw (); extern int inet_pton (int __af, const char *__restrict __cp, void *__restrict __buf) throw (); extern const char *inet_ntop (int __af, const void *__restrict __cp, char *__restrict __buf, socklen_t __len) throw (); extern int inet_aton (const char *__cp, struct in_addr *__inp) throw (); extern char *inet_neta (in_addr_t __net, char *__buf, size_t __len) throw (); extern char *inet_net_ntop (int __af, const void *__cp, int __bits, char *__buf, size_t __len) throw (); extern int inet_net_pton (int __af, const char *__cp, void *__buf, size_t __len) throw (); extern unsigned int inet_nsap_addr (const char *__cp, unsigned char *__buf, int __len) throw (); extern char *inet_nsap_ntoa (int __len, const unsigned char *__cp, char *__buf) throw (); } # 35 "utility.hh" 2 # 1 "/usr/include/sys/time.h" 1 3 4 # 27 "/usr/include/sys/time.h" 3 4 # 1 "/usr/include/bits/time.h" 1 3 4 # 28 "/usr/include/sys/time.h" 2 3 4 # 37 "/usr/include/sys/time.h" 3 4 extern "C" { # 55 "/usr/include/sys/time.h" 3 4 struct timezone { int tz_minuteswest; int tz_dsttime; }; typedef struct timezone *__restrict __timezone_ptr_t; # 71 "/usr/include/sys/time.h" 3 4 extern int gettimeofday (struct timeval *__restrict __tv, __timezone_ptr_t __tz) throw () __attribute__ ((__nonnull__ (1))); extern int settimeofday (const struct timeval *__tv, const struct timezone *__tz) throw (); extern int adjtime (const struct timeval *__delta, struct timeval *__olddelta) throw (); enum __itimer_which { ITIMER_REAL = 0, ITIMER_VIRTUAL = 1, ITIMER_PROF = 2 }; struct itimerval { struct timeval it_interval; struct timeval it_value; }; typedef int __itimer_which_t; extern int getitimer (__itimer_which_t __which, struct itimerval *__value) throw (); extern int setitimer (__itimer_which_t __which, const struct itimerval *__restrict __new, struct itimerval *__restrict __old) throw (); extern int utimes (const char *__file, const struct timeval __tvp[2]) throw () __attribute__ ((__nonnull__ (1))); extern int lutimes (const char *__file, const struct timeval __tvp[2]) throw () __attribute__ ((__nonnull__ (1))); extern int futimes (int __fd, const struct timeval __tvp[2]) throw (); extern int futimesat (int __fd, const char *__file, const struct timeval __tvp[2]) throw (); # 189 "/usr/include/sys/time.h" 3 4 } # 38 "utility.hh" 2 # 1 "/usr/include/signal.h" 1 3 4 # 30 "/usr/include/signal.h" 3 4 extern "C" { # 1 "/usr/include/bits/sigset.h" 1 3 4 # 102 "/usr/include/bits/sigset.h" 3 4 extern int __sigismember (const __sigset_t *, int); extern int __sigaddset (__sigset_t *, int); extern int __sigdelset (__sigset_t *, int); # 116 "/usr/include/bits/sigset.h" 3 4 extern __inline __attribute__ ((__gnu_inline__)) int __sigismember (const __sigset_t *__set, int __sig) { unsigned long int __mask = (((unsigned long int) 1) << (((__sig) - 1) % (8 * sizeof (unsigned long int)))); unsigned long int __word = (((__sig) - 1) / (8 * sizeof (unsigned long int))); return (__set->__val[__word] & __mask) ? 1 : 0; } extern __inline __attribute__ ((__gnu_inline__)) int __sigaddset ( __sigset_t *__set, int __sig) { unsigned long int __mask = (((unsigned long int) 1) << (((__sig) - 1) % (8 * sizeof (unsigned long int)))); unsigned long int __word = (((__sig) - 1) / (8 * sizeof (unsigned long int))); return ((__set->__val[__word] |= __mask), 0); } extern __inline __attribute__ ((__gnu_inline__)) int __sigdelset ( __sigset_t *__set, int __sig) { unsigned long int __mask = (((unsigned long int) 1) << (((__sig) - 1) % (8 * sizeof (unsigned long int)))); unsigned long int __word = (((__sig) - 1) / (8 * sizeof (unsigned long int))); return ((__set->__val[__word] &= ~__mask), 0); } # 33 "/usr/include/signal.h" 2 3 4 typedef __sig_atomic_t sig_atomic_t; # 57 "/usr/include/signal.h" 3 4 # 1 "/usr/include/bits/signum.h" 1 3 4 # 58 "/usr/include/signal.h" 2 3 4 # 80 "/usr/include/signal.h" 3 4 # 1 "/usr/include/bits/siginfo.h" 1 3 4 # 24 "/usr/include/bits/siginfo.h" 3 4 # 1 "/usr/include/bits/wordsize.h" 1 3 4 # 25 "/usr/include/bits/siginfo.h" 2 3 4 # 58 "/usr/include/bits/siginfo.h" 3 4 typedef __clock_t __sigchld_clock_t; typedef struct { int si_signo; int si_errno; int si_code; union { int _pad[((128 / sizeof (int)) - 4)]; struct { __pid_t si_pid; __uid_t si_uid; } _kill; struct { int si_tid; int si_overrun; sigval_t si_sigval; } _timer; struct { __pid_t si_pid; __uid_t si_uid; sigval_t si_sigval; } _rt; struct { __pid_t si_pid; __uid_t si_uid; int si_status; __sigchld_clock_t si_utime; __sigchld_clock_t si_stime; } _sigchld; struct { void *si_addr; short int si_addr_lsb; } _sigfault; struct { long int si_band; int si_fd; } _sigpoll; struct { void *_call_addr; int _syscall; unsigned int _arch; } _sigsys; } _sifields; } siginfo_t ; # 153 "/usr/include/bits/siginfo.h" 3 4 enum { SI_ASYNCNL = -60, SI_TKILL = -6, SI_SIGIO, SI_ASYNCIO, SI_MESGQ, SI_TIMER, SI_QUEUE, SI_USER, SI_KERNEL = 0x80 }; enum { ILL_ILLOPC = 1, ILL_ILLOPN, ILL_ILLADR, ILL_ILLTRP, ILL_PRVOPC, ILL_PRVREG, ILL_COPROC, ILL_BADSTK }; enum { FPE_INTDIV = 1, FPE_INTOVF, FPE_FLTDIV, FPE_FLTOVF, FPE_FLTUND, FPE_FLTRES, FPE_FLTINV, FPE_FLTSUB }; enum { SEGV_MAPERR = 1, SEGV_ACCERR }; enum { BUS_ADRALN = 1, BUS_ADRERR, BUS_OBJERR, BUS_MCEERR_AR, BUS_MCEERR_AO }; enum { TRAP_BRKPT = 1, TRAP_TRACE }; enum { CLD_EXITED = 1, CLD_KILLED, CLD_DUMPED, CLD_TRAPPED, CLD_STOPPED, CLD_CONTINUED }; enum { POLL_IN = 1, POLL_OUT, POLL_MSG, POLL_ERR, POLL_PRI, POLL_HUP }; # 81 "/usr/include/signal.h" 2 3 4 typedef void (*__sighandler_t) (int); extern __sighandler_t __sysv_signal (int __sig, __sighandler_t __handler) throw (); extern __sighandler_t sysv_signal (int __sig, __sighandler_t __handler) throw (); extern __sighandler_t signal (int __sig, __sighandler_t __handler) throw (); # 114 "/usr/include/signal.h" 3 4 extern __sighandler_t bsd_signal (int __sig, __sighandler_t __handler) throw (); extern int kill (__pid_t __pid, int __sig) throw (); extern int killpg (__pid_t __pgrp, int __sig) throw (); extern int raise (int __sig) throw (); extern __sighandler_t ssignal (int __sig, __sighandler_t __handler) throw (); extern int gsignal (int __sig) throw (); extern void psignal (int __sig, const char *__s); extern void psiginfo (const siginfo_t *__pinfo, const char *__s); # 170 "/usr/include/signal.h" 3 4 extern int sigpause (int __sig) __asm__ ("__xpg_sigpause"); # 189 "/usr/include/signal.h" 3 4 extern int sigblock (int __mask) throw () __attribute__ ((__deprecated__)); extern int sigsetmask (int __mask) throw () __attribute__ ((__deprecated__)); extern int siggetmask (void) throw () __attribute__ ((__deprecated__)); # 204 "/usr/include/signal.h" 3 4 typedef __sighandler_t sighandler_t; typedef __sighandler_t sig_t; extern int sigemptyset (sigset_t *__set) throw () __attribute__ ((__nonnull__ (1))); extern int sigfillset (sigset_t *__set) throw () __attribute__ ((__nonnull__ (1))); extern int sigaddset (sigset_t *__set, int __signo) throw () __attribute__ ((__nonnull__ (1))); extern int sigdelset (sigset_t *__set, int __signo) throw () __attribute__ ((__nonnull__ (1))); extern int sigismember (const sigset_t *__set, int __signo) throw () __attribute__ ((__nonnull__ (1))); extern int sigisemptyset (const sigset_t *__set) throw () __attribute__ ((__nonnull__ (1))); extern int sigandset (sigset_t *__set, const sigset_t *__left, const sigset_t *__right) throw () __attribute__ ((__nonnull__ (1, 2, 3))); extern int sigorset (sigset_t *__set, const sigset_t *__left, const sigset_t *__right) throw () __attribute__ ((__nonnull__ (1, 2, 3))); # 1 "/usr/include/bits/sigaction.h" 1 3 4 # 24 "/usr/include/bits/sigaction.h" 3 4 struct sigaction { union { __sighandler_t sa_handler; void (*sa_sigaction) (int, siginfo_t *, void *); } __sigaction_handler; __sigset_t sa_mask; int sa_flags; void (*sa_restorer) (void); }; # 246 "/usr/include/signal.h" 2 3 4 extern int sigprocmask (int __how, const sigset_t *__restrict __set, sigset_t *__restrict __oset) throw (); extern int sigsuspend (const sigset_t *__set) __attribute__ ((__nonnull__ (1))); extern int sigaction (int __sig, const struct sigaction *__restrict __act, struct sigaction *__restrict __oact) throw (); extern int sigpending (sigset_t *__set) throw () __attribute__ ((__nonnull__ (1))); extern int sigwait (const sigset_t *__restrict __set, int *__restrict __sig) __attribute__ ((__nonnull__ (1, 2))); extern int sigwaitinfo (const sigset_t *__restrict __set, siginfo_t *__restrict __info) __attribute__ ((__nonnull__ (1))); extern int sigtimedwait (const sigset_t *__restrict __set, siginfo_t *__restrict __info, const struct timespec *__restrict __timeout) __attribute__ ((__nonnull__ (1))); extern int sigqueue (__pid_t __pid, int __sig, const union sigval __val) throw (); # 303 "/usr/include/signal.h" 3 4 extern const char *const _sys_siglist[65]; extern const char *const sys_siglist[65]; # 1 "/usr/include/bits/sigcontext.h" 1 3 4 # 29 "/usr/include/bits/sigcontext.h" 3 4 struct _fpx_sw_bytes { __uint32_t magic1; __uint32_t extended_size; __uint64_t xstate_bv; __uint32_t xstate_size; __uint32_t padding[7]; }; struct _fpreg { unsigned short significand[4]; unsigned short exponent; }; struct _fpxreg { unsigned short significand[4]; unsigned short exponent; unsigned short padding[3]; }; struct _xmmreg { __uint32_t element[4]; }; # 121 "/usr/include/bits/sigcontext.h" 3 4 struct _fpstate { __uint16_t cwd; __uint16_t swd; __uint16_t ftw; __uint16_t fop; __uint64_t rip; __uint64_t rdp; __uint32_t mxcsr; __uint32_t mxcr_mask; struct _fpxreg _st[8]; struct _xmmreg _xmm[16]; __uint32_t padding[24]; }; struct sigcontext { __uint64_t r8; __uint64_t r9; __uint64_t r10; __uint64_t r11; __uint64_t r12; __uint64_t r13; __uint64_t r14; __uint64_t r15; __uint64_t rdi; __uint64_t rsi; __uint64_t rbp; __uint64_t rbx; __uint64_t rdx; __uint64_t rax; __uint64_t rcx; __uint64_t rsp; __uint64_t rip; __uint64_t eflags; unsigned short cs; unsigned short gs; unsigned short fs; unsigned short __pad0; __uint64_t err; __uint64_t trapno; __uint64_t oldmask; __uint64_t cr2; __extension__ union { struct _fpstate * fpstate; __uint64_t __fpstate_word; }; __uint64_t __reserved1 [8]; }; struct _xsave_hdr { __uint64_t xstate_bv; __uint64_t reserved1[2]; __uint64_t reserved2[5]; }; struct _ymmh_state { __uint32_t ymmh_space[64]; }; struct _xstate { struct _fpstate fpstate; struct _xsave_hdr xstate_hdr; struct _ymmh_state ymmh; }; # 309 "/usr/include/signal.h" 2 3 4 extern int sigreturn (struct sigcontext *__scp) throw (); # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stddef.h" 1 3 4 # 319 "/usr/include/signal.h" 2 3 4 extern int siginterrupt (int __sig, int __interrupt) throw (); # 1 "/usr/include/bits/sigstack.h" 1 3 4 # 25 "/usr/include/bits/sigstack.h" 3 4 struct sigstack { void *ss_sp; int ss_onstack; }; enum { SS_ONSTACK = 1, SS_DISABLE }; # 49 "/usr/include/bits/sigstack.h" 3 4 typedef struct sigaltstack { void *ss_sp; int ss_flags; size_t ss_size; } stack_t; # 326 "/usr/include/signal.h" 2 3 4 # 1 "/usr/include/sys/ucontext.h" 1 3 4 # 22 "/usr/include/sys/ucontext.h" 3 4 # 1 "/usr/include/signal.h" 1 3 4 # 23 "/usr/include/sys/ucontext.h" 2 3 4 # 31 "/usr/include/sys/ucontext.h" 3 4 __extension__ typedef long long int greg_t; typedef greg_t gregset_t[23]; enum { REG_R8 = 0, REG_R9, REG_R10, REG_R11, REG_R12, REG_R13, REG_R14, REG_R15, REG_RDI, REG_RSI, REG_RBP, REG_RBX, REG_RDX, REG_RAX, REG_RCX, REG_RSP, REG_RIP, REG_EFL, REG_CSGSFS, REG_ERR, REG_TRAPNO, REG_OLDMASK, REG_CR2 }; struct _libc_fpxreg { unsigned short int significand[4]; unsigned short int exponent; unsigned short int padding[3]; }; struct _libc_xmmreg { __uint32_t element[4]; }; struct _libc_fpstate { __uint16_t cwd; __uint16_t swd; __uint16_t ftw; __uint16_t fop; __uint64_t rip; __uint64_t rdp; __uint32_t mxcsr; __uint32_t mxcr_mask; struct _libc_fpxreg _st[8]; struct _libc_xmmreg _xmm[16]; __uint32_t padding[24]; }; typedef struct _libc_fpstate *fpregset_t; typedef struct { gregset_t gregs; fpregset_t fpregs; __extension__ unsigned long long __reserved1 [8]; } mcontext_t; typedef struct ucontext { unsigned long int uc_flags; struct ucontext *uc_link; stack_t uc_stack; mcontext_t uc_mcontext; __sigset_t uc_sigmask; struct _libc_fpstate __fpregs_mem; } ucontext_t; # 329 "/usr/include/signal.h" 2 3 4 extern int sigstack (struct sigstack *__ss, struct sigstack *__oss) throw () __attribute__ ((__deprecated__)); extern int sigaltstack (const struct sigaltstack *__restrict __ss, struct sigaltstack *__restrict __oss) throw (); extern int sighold (int __sig) throw (); extern int sigrelse (int __sig) throw (); extern int sigignore (int __sig) throw (); extern __sighandler_t sigset (int __sig, __sighandler_t __disp) throw (); # 1 "/usr/include/bits/sigthread.h" 1 3 4 # 30 "/usr/include/bits/sigthread.h" 3 4 extern int pthread_sigmask (int __how, const __sigset_t *__restrict __newmask, __sigset_t *__restrict __oldmask)throw (); extern int pthread_kill (pthread_t __threadid, int __signo) throw (); extern int pthread_sigqueue (pthread_t __threadid, int __signo, const union sigval __value) throw (); # 365 "/usr/include/signal.h" 2 3 4 extern int __libc_current_sigrtmin (void) throw (); extern int __libc_current_sigrtmax (void) throw (); } # 40 "utility.hh" 2 # 1 "/usr/include/semaphore.h" 1 3 4 # 29 "/usr/include/semaphore.h" 3 4 # 1 "/usr/include/bits/semaphore.h" 1 3 4 # 23 "/usr/include/bits/semaphore.h" 3 4 # 1 "/usr/include/bits/wordsize.h" 1 3 4 # 24 "/usr/include/bits/semaphore.h" 2 3 4 # 36 "/usr/include/bits/semaphore.h" 3 4 typedef union { char __size[32]; long int __align; } sem_t; # 30 "/usr/include/semaphore.h" 2 3 4 extern "C" { extern int sem_init (sem_t *__sem, int __pshared, unsigned int __value) throw (); extern int sem_destroy (sem_t *__sem) throw (); extern sem_t *sem_open (const char *__name, int __oflag, ...) throw (); extern int sem_close (sem_t *__sem) throw (); extern int sem_unlink (const char *__name) throw (); extern int sem_wait (sem_t *__sem); extern int sem_timedwait (sem_t *__restrict __sem, const struct timespec *__restrict __abstime); extern int sem_trywait (sem_t *__sem) throw (); extern int sem_post (sem_t *__sem) throw (); extern int sem_getvalue (sem_t *__restrict __sem, int *__restrict __sval) throw (); } # 42 "utility.hh" 2 # 1 "/usr/include/errno.h" 1 3 4 # 31 "/usr/include/errno.h" 3 4 extern "C" { # 1 "/usr/include/bits/errno.h" 1 3 4 # 24 "/usr/include/bits/errno.h" 3 4 # 1 "/usr/include/linux/errno.h" 1 3 4 # 1 "/usr/include/asm/errno.h" 1 3 4 # 1 "/usr/include/asm-generic/errno.h" 1 3 4 # 1 "/usr/include/asm-generic/errno-base.h" 1 3 4 # 5 "/usr/include/asm-generic/errno.h" 2 3 4 # 1 "/usr/include/asm/errno.h" 2 3 4 # 1 "/usr/include/linux/errno.h" 2 3 4 # 25 "/usr/include/bits/errno.h" 2 3 4 # 50 "/usr/include/bits/errno.h" 3 4 extern int *__errno_location (void) throw () __attribute__ ((__const__)); # 36 "/usr/include/errno.h" 2 3 4 # 54 "/usr/include/errno.h" 3 4 extern char *program_invocation_name, *program_invocation_short_name; } # 68 "/usr/include/errno.h" 3 4 typedef int error_t; # 44 "utility.hh" 2 # 50 "utility.hh" class Semaphore { private: typedef int sem_value_t; # 62 "utility.hh" sem_t *m_pSemaphore; protected: public: Semaphore( unsigned int value = 0 ); ~Semaphore( void ); int post( void ); int wait( void ); int tryWait( void ); int getValue( Semaphore::sem_value_t *sval ); }; class Utility { public: typedef ::iovec iovec; typedef ::pid_t pid_t; typedef int sock_t; typedef ::socklen_t socklen_t; static int closesocket( sock_t socket ); static int timed_connect(sock_t sock, const sockaddr *addr, socklen_t sockaddr_size, int timeout_sec, int timeout_usec); static pid_t getpid( void ); static int gettimeofday( struct timeval *tv, void *tz = # 113 "utility.hh" 3 4 __null # 113 "utility.hh" ); static int inet_aton( const char *cp, struct in_addr *inp ); static int inet_pton( int af, const char *src, void *dst ); static const char *inet_ntop( int af, const char *src, char *dst, size_t size ); static int makeGidNumeric( const string & group ); static int makeUidNumeric( const string & username ); static int writev( Utility::sock_t socket, const iovec *vector, size_t count ); static long int random( void ); static void srandom( unsigned int seed ); static void dropGroupPrivs( int uid, int gid ); static void dropUserPrivs( int uid ); static bool setBlocking( Utility::sock_t socket ); static bool setNonBlocking( Utility::sock_t socket ); static bool setCloseOnExec ( Utility::sock_t socket ); static unsigned int sleep( unsigned int seconds ); static void usleep( unsigned long usec ); static time_t timegm(struct tm *tm); static void gmtime_r(const time_t *timer, struct tm *tmbuf); }; # 14 "mplexer.hh" 2 class FDMultiplexerException : public std::runtime_error { public: FDMultiplexerException(const std::string& str) : std::runtime_error(str) {} }; # 30 "mplexer.hh" class FDMultiplexer { public: typedef boost::any funcparam_t; protected: typedef boost::function< void(int, funcparam_t&) > callbackfunc_t; struct Callback { callbackfunc_t d_callback; funcparam_t d_parameter; struct timeval d_ttd; }; public: FDMultiplexer() : d_inrun(false) {} virtual ~FDMultiplexer() {} virtual int run(struct timeval* tv) = 0; virtual void addReadFD(int fd, callbackfunc_t toDo, const funcparam_t& parameter=funcparam_t()) { this->addFD(d_readCallbacks, fd, toDo, parameter); } virtual void addWriteFD(int fd, callbackfunc_t toDo, const funcparam_t& parameter=funcparam_t()) { this->addFD(d_writeCallbacks, fd, toDo, parameter); } virtual void removeReadFD(int fd) { this->removeFD(d_readCallbacks, fd); } virtual void removeWriteFD(int fd) { this->removeFD(d_writeCallbacks, fd); } virtual void setReadTTD(int fd, struct timeval tv, int timeout) { if(!d_readCallbacks.count(fd)) throw FDMultiplexerException("attempt to timestamp fd not in the multiplexer"); tv.tv_sec += timeout; d_readCallbacks[fd].d_ttd=tv; } virtual funcparam_t& getReadParameter(int fd) { if(!d_readCallbacks.count(fd)) throw FDMultiplexerException("attempt to look up data in multiplexer for unlisted fd "+boost::lexical_cast(fd)); return d_readCallbacks[fd].d_parameter; } virtual std::vector > getTimeouts(const struct timeval& tv) { std::vector > ret; for(callbackmap_t::iterator i=d_readCallbacks.begin(); i!=d_readCallbacks.end(); ++i) if(i->second.d_ttd.tv_sec && boost::tie(tv.tv_sec, tv.tv_usec) > boost::tie(i->second.d_ttd.tv_sec, i->second.d_ttd.tv_usec)) ret.push_back(std::make_pair(i->first, i->second.d_parameter)); return ret; } typedef FDMultiplexer* getMultiplexer_t(); typedef std::multimap FDMultiplexermap_t; static FDMultiplexermap_t& getMultiplexerMap() { static FDMultiplexermap_t theMap; return theMap; } virtual std::string getName() = 0; protected: typedef std::map callbackmap_t; callbackmap_t d_readCallbacks, d_writeCallbacks; virtual void addFD(callbackmap_t& cbmap, int fd, callbackfunc_t toDo, const funcparam_t& parameter)=0; virtual void removeFD(callbackmap_t& cbmap, int fd)=0; bool d_inrun; callbackmap_t::iterator d_iter; void accountingAddFD(callbackmap_t& cbmap, int fd, callbackfunc_t toDo, const funcparam_t& parameter) { Callback cb; cb.d_callback=toDo; cb.d_parameter=parameter; memset(&cb.d_ttd, 0, sizeof(cb.d_ttd)); if(cbmap.count(fd)) throw FDMultiplexerException("Tried to add fd "+boost::lexical_cast(fd)+ " to multiplexer twice"); cbmap[fd]=cb; } void accountingRemoveFD(callbackmap_t& cbmap, int fd) { if(!cbmap.erase(fd)) throw FDMultiplexerException("Tried to remove unlisted fd "+boost::lexical_cast(fd)+ " from multiplexer"); } }; class SelectFDMultiplexer : public FDMultiplexer { public: SelectFDMultiplexer() {} virtual ~SelectFDMultiplexer() {} virtual int run(struct timeval* tv); virtual void addFD(callbackmap_t& cbmap, int fd, callbackfunc_t toDo, const funcparam_t& parameter); virtual void removeFD(callbackmap_t& cbmap, int fd); std::string getName() { return "select"; } }; # 25 "ws-recursor.hh" 2 # 1 "webserver.hh" 1 # 28 "webserver.hh" # 1 "ext/yahttp/yahttp/yahttp.hpp" 1 # 1 "/usr/include/c++/5.0.0/cstdio" 1 3 # 39 "/usr/include/c++/5.0.0/cstdio" 3 # 40 "/usr/include/c++/5.0.0/cstdio" 3 # 7 "ext/yahttp/yahttp/yahttp.hpp" 2 # 1 "/usr/include/c++/5.0.0/iomanip" 1 3 # 36 "/usr/include/c++/5.0.0/iomanip" 3 # 37 "/usr/include/c++/5.0.0/iomanip" 3 # 49 "/usr/include/c++/5.0.0/iomanip" 3 # 49 "/usr/include/c++/5.0.0/iomanip" 3 namespace std __attribute__ ((__visibility__ ("default"))) { struct _Resetiosflags { ios_base::fmtflags _M_mask; }; # 65 "/usr/include/c++/5.0.0/iomanip" 3 inline _Resetiosflags resetiosflags(ios_base::fmtflags __mask) { return { __mask }; } template inline basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f) { __is.setf(ios_base::fmtflags(0), __f._M_mask); return __is; } template inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, _Resetiosflags __f) { __os.setf(ios_base::fmtflags(0), __f._M_mask); return __os; } struct _Setiosflags { ios_base::fmtflags _M_mask; }; # 95 "/usr/include/c++/5.0.0/iomanip" 3 inline _Setiosflags setiosflags(ios_base::fmtflags __mask) { return { __mask }; } template inline basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f) { __is.setf(__f._M_mask); return __is; } template inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, _Setiosflags __f) { __os.setf(__f._M_mask); return __os; } struct _Setbase { int _M_base; }; # 126 "/usr/include/c++/5.0.0/iomanip" 3 inline _Setbase setbase(int __base) { return { __base }; } template inline basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f) { __is.setf(__f._M_base == 8 ? ios_base::oct : __f._M_base == 10 ? ios_base::dec : __f._M_base == 16 ? ios_base::hex : ios_base::fmtflags(0), ios_base::basefield); return __is; } template inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, _Setbase __f) { __os.setf(__f._M_base == 8 ? ios_base::oct : __f._M_base == 10 ? ios_base::dec : __f._M_base == 16 ? ios_base::hex : ios_base::fmtflags(0), ios_base::basefield); return __os; } template struct _Setfill { _CharT _M_c; }; # 163 "/usr/include/c++/5.0.0/iomanip" 3 template inline _Setfill<_CharT> setfill(_CharT __c) { return { __c }; } template inline basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f) { __is.fill(__f._M_c); return __is; } template inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, _Setfill<_CharT> __f) { __os.fill(__f._M_c); return __os; } struct _Setprecision { int _M_n; }; # 194 "/usr/include/c++/5.0.0/iomanip" 3 inline _Setprecision setprecision(int __n) { return { __n }; } template inline basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __is, _Setprecision __f) { __is.precision(__f._M_n); return __is; } template inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, _Setprecision __f) { __os.precision(__f._M_n); return __os; } struct _Setw { int _M_n; }; # 224 "/usr/include/c++/5.0.0/iomanip" 3 inline _Setw setw(int __n) { return { __n }; } template inline basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __is, _Setw __f) { __is.width(__f._M_n); return __is; } template inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, _Setw __f) { __os.width(__f._M_n); return __os; } # 617 "/usr/include/c++/5.0.0/iomanip" 3 extern template ostream& operator<<(ostream&, _Setfill); extern template ostream& operator<<(ostream&, _Setiosflags); extern template ostream& operator<<(ostream&, _Resetiosflags); extern template ostream& operator<<(ostream&, _Setbase); extern template ostream& operator<<(ostream&, _Setprecision); extern template ostream& operator<<(ostream&, _Setw); extern template istream& operator>>(istream&, _Setfill); extern template istream& operator>>(istream&, _Setiosflags); extern template istream& operator>>(istream&, _Resetiosflags); extern template istream& operator>>(istream&, _Setbase); extern template istream& operator>>(istream&, _Setprecision); extern template istream& operator>>(istream&, _Setw); extern template wostream& operator<<(wostream&, _Setfill); extern template wostream& operator<<(wostream&, _Setiosflags); extern template wostream& operator<<(wostream&, _Resetiosflags); extern template wostream& operator<<(wostream&, _Setbase); extern template wostream& operator<<(wostream&, _Setprecision); extern template wostream& operator<<(wostream&, _Setw); extern template wistream& operator>>(wistream&, _Setfill); extern template wistream& operator>>(wistream&, _Setiosflags); extern template wistream& operator>>(wistream&, _Resetiosflags); extern template wistream& operator>>(wistream&, _Setbase); extern template wistream& operator>>(wistream&, _Setprecision); extern template wistream& operator>>(wistream&, _Setw); } # 9 "ext/yahttp/yahttp/yahttp.hpp" 2 # 1 "ext/yahttp/yahttp/yahttp-config.h" 1 # 1 "ext/yahttp/yahttp/../../../config.h" 1 # 1 "ext/yahttp/yahttp/yahttp-config.h" 2 # 13 "ext/yahttp/yahttp/yahttp.hpp" 2 # 1 "ext/yahttp/yahttp/url.hpp" 1 # 1 "ext/yahttp/yahttp/utility.hpp" 1 # 4 "ext/yahttp/yahttp/utility.hpp" namespace YaHTTP { static const char *MONTHS[] = {0,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",0}; static const char *DAYS[] = {"Sun","Mon","Tue","Wed","Thu","Fri","Sat",0}; struct ASCIICINullSafeComparator { bool operator() (const std::string& lhs, const std::string& rhs) const { char v; std::string::const_iterator lhi = lhs.begin(); std::string::const_iterator rhi = rhs.begin(); for(;lhi != lhs.end() && rhi != rhs.end(); lhi++, rhi++) if ((v = ::tolower(*lhi) - ::tolower(*rhi)) != 0) return v<0; if (lhi == lhs.end() && rhi != rhs.end()) return true; if (lhi != lhs.end() && rhi == rhs.end()) return false; return false; } }; typedef std::map strstr_map_t; class DateTime { public: bool isSet; int year; int month; int day; int wday; int hours; int minutes; int seconds; int utc_offset; DateTime() { initialize(); }; void initialize() { isSet = false; year = month = day = wday = hours = minutes = seconds = utc_offset = 0; month = 1; }; void setLocal() { fromLocaltime(time((time_t*) # 52 "ext/yahttp/yahttp/utility.hpp" 3 4 __null # 52 "ext/yahttp/yahttp/utility.hpp" )); }; void setGm() { fromGmtime(time((time_t*) # 56 "ext/yahttp/yahttp/utility.hpp" 3 4 __null # 56 "ext/yahttp/yahttp/utility.hpp" )); }; void fromLocaltime(time_t t) { struct tm *tm; tm = localtime(&t); fromTm(tm); time_t t2; tm = gmtime(&t); t2 = mktime(tm); this->utc_offset = ((t2-t)/10)*10; }; void fromGmtime(time_t t) { struct tm *tm; tm = gmtime(&t); fromTm(tm); this->utc_offset = 0; }; void fromTm(const struct tm *tm) { year = tm->tm_year + 1900; month = tm->tm_mon + 1; day = tm->tm_mday; hours = tm->tm_hour; minutes = tm->tm_min; seconds = tm->tm_sec; wday = tm->tm_wday; isSet = true; }; void validate() const { if (wday < 0 || wday > 6) throw "Invalid date"; if (month < 1 || month > 12) throw "Invalid date"; if (year < 0) throw "Invalid date"; if (hours < 0 || hours > 23 || minutes < 0 || minutes > 59 || seconds < 0 || seconds > 60) throw "Invalid date"; }; std::string rfc_str() const { std::ostringstream oss; validate(); oss << DAYS[wday] << ", " << std::setfill('0') << std::setw(2) << day << " " << MONTHS[month] << " " << std::setfill('0') << std::setw(2) << year << " " << std::setfill('0') << std::setw(2) << hours << ":" << std::setfill('0') << std::setw(2) << minutes << ":" << std::setfill('0') << std::setw(2) << seconds << " "; if (utc_offset>=0) oss << "+"; else oss << "-"; int tmp_off = ( utc_offset < 0 ? utc_offset*-1 : utc_offset ); oss << std::setfill('0') << std::setw(2) << (tmp_off/3600); oss << std::setfill('0') << std::setw(2) << (tmp_off%3600)/60; return oss.str(); }; std::string cookie_str() const { std::ostringstream oss; validate(); oss << std::setfill('0') << std::setw(2) << day << "-" << MONTHS[month] << "-" << year << " " << std::setfill('0') << std::setw(2) << hours << ":" << std::setfill('0') << std::setw(2) << minutes << ":" << std::setfill('0') << std::setw(2) << seconds << " GMT"; return oss.str(); }; void parse822(const std::string &rfc822_date) { struct tm tm; const char *ptr; if ( (ptr = strptime(rfc822_date.c_str(), "%a, %d %b %Y %T", &tm)) != # 153 "ext/yahttp/yahttp/utility.hpp" 3 4 __null # 153 "ext/yahttp/yahttp/utility.hpp" ) { int sign; while(*ptr && ::isspace(*ptr)) ptr++; if (*ptr == '+') sign = 0; else if (*ptr == '-') sign = -1; else throw "Unparseable date"; ptr++; utc_offset = ::atoi(ptr) * sign; while(*ptr && ::isdigit(*ptr)) ptr++; while(*ptr && ::isspace(*ptr)) ptr++; if (*ptr) throw "Unparseable date"; fromTm(&tm); } else { throw "Unparseable date"; } }; void parseCookie(const std::string &cookie_date) { struct tm tm; const char *ptr; if ( (ptr = strptime(cookie_date.c_str(), "%d-%b-%Y %T", &tm)) != # 175 "ext/yahttp/yahttp/utility.hpp" 3 4 __null # 175 "ext/yahttp/yahttp/utility.hpp" ) { while(*ptr && ( ::isspace(*ptr) || ::isalnum(*ptr) )) ptr++; if (*ptr) throw "Unparseable date (non-final)"; fromTm(&tm); this->utc_offset = 0; } else { throw "Unparseable date (did not match pattern cookie)"; } }; time_t unixtime() const { struct tm tm; tm.tm_year = year-1900; tm.tm_mon = month-1; tm.tm_mday = day; tm.tm_hour = hours; tm.tm_min = minutes; tm.tm_sec = seconds; tm.tm_isdst = 0; return mktime(&tm); }; }; class Utility { public: static std::string decodeURL(const std::string& component) { std::string result = component; size_t pos1,pos2; pos2 = 0; while((pos1 = result.find_first_of("%", pos2))!=std::string::npos) { std::string code; char a,b,c; if (pos1 + 2 > result.length()) return result; code = result.substr(pos1+1, 2); a = std::tolower(code[0]); b = std::tolower(code[1]); if ((( '0' > a || a > '9') && ('a' > a || a > 'f')) || (( '0' > b || b > '9') && ('a' > b || b > 'f'))) { pos2 = pos1+3; continue; } if ('0' <= a && a <= '9') a = a - '0'; if ('a' <= a && a <= 'f') a = a - 'a' + 0x0a; if ('0' <= b && b <= '9') b = b - '0'; if ('a' <= b && b <= 'f') b = b - 'a' + 0x0a; c = (a<<4)+b; result = result.replace(pos1,3,1,c); pos2=pos1; } return result; }; static std::string encodeURL(const std::string& component, bool asUrl = true) { std::string result = component; std::string skip = "+-.:,&;_#%[]?/@(){}="; char repl[3]; size_t pos; for(std::string::iterator iter = result.begin(); iter != result.end(); iter++) { if (!std::isalnum(*iter) && (!asUrl || skip.find(*iter) == std::string::npos)) { pos = std::distance(result.begin(), iter); ::snprintf(repl,3,"%02x", static_cast(*iter)); result = result.replace(pos, 1, "%", 1).insert(pos+1, repl, 2); iter = result.begin() + pos + 2; } } return result; }; static std::string encodeURL(const std::wstring& component, bool asUrl = true) { unsigned char const *p = reinterpret_cast(&component[0]); std::size_t s = component.size() * sizeof((*component.begin())); std::vector vec(p, p+s); std::ostringstream result; std::string skip = "+-.,&;_#%[]?/@(){}="; for(std::vector::iterator iter = vec.begin(); iter != vec.end(); iter++) { if (!std::isalnum((char)*iter) && (!asUrl || skip.find((char)*iter) == std::string::npos)) { result << "%" << std::hex << std::setw(2) << std::setfill('0') << static_cast(*iter); } else result << (char)*iter; } return result.str(); }; static std::string status2text(int status) { switch(status) { case 200: return "OK"; case 201: return "Created"; case 202: return "Accepted"; case 203: return "Non-Authoritative Information"; case 204: return "No Content"; case 205: return "Reset Content"; case 206: return "Partial Content"; case 300: return "Multiple Choices"; case 301: return "Moved Permanently"; case 302: return "Found"; case 303: return "See Other"; case 304: return "Not Modified"; case 305: return "Use Proxy"; case 307: return "Temporary Redirect"; case 400: return "Bad Request"; case 401: return "Unauthorized"; case 402: return "Payment Required"; case 403: return "Forbidden"; case 404: return "Not Found"; case 405: return "Method Not Allowed"; case 406: return "Not Acceptable"; case 407: return "Proxy Authentication Required"; case 408: return "Request Time-out"; case 409: return "Conflict"; case 410: return "Gone"; case 411: return "Length Required"; case 412: return "Precondition Failed"; case 413: return "Request Entity Too Large"; case 414: return "Request-URI Too Large"; case 415: return "Unsupported Media Type"; case 416: return "Requested range not satisfiable"; case 417: return "Expectation Failed"; case 500: return "Internal Server Error"; case 501: return "Not Implemented"; case 502: return "Bad Gateway"; case 503: return "Service Unavailable"; case 504: return "Gateway Time-out"; case 505: return "HTTP Version not supported"; default: return "Unknown Status"; } }; static strstr_map_t parseUrlParameters(std::string parameters) { std::string::size_type pos = 0; strstr_map_t parameter_map; while (pos != std::string::npos) { std::string::size_type nextpos = parameters.find("&", pos); std::string::size_type delim = parameters.find("=", pos); if (delim > nextpos) { delim = nextpos; } std::string key; std::string value; if (delim == std::string::npos) { key = parameters.substr(pos); } else { key = parameters.substr(pos, delim-pos); if (nextpos == std::string::npos) { value = parameters.substr(delim+1); } else { value = parameters.substr(delim+1, nextpos-delim-1); } } if (key.empty()) { break; } key = decodeURL(key); value = decodeURL(value); parameter_map[key] = value; if (nextpos == std::string::npos) { break; } pos = nextpos+1; } return parameter_map; }; static bool iequals(const std::string& a, const std::string& b, size_t length) { std::string::const_iterator ai, bi; size_t i; for(ai = a.begin(), bi = b.begin(), i = 0; ai != a.end() && bi != b.end() && i < length; ai++,bi++,i++) { if (::toupper(*ai) != ::toupper(*bi)) return false; } if (ai == a.end() && bi == b.end()) return true; if ((ai == a.end() && bi != b.end()) || (ai != a.end() && bi == b.end())) return false; return ::toupper(*ai) == ::toupper(*bi); }; static bool iequals(const std::string& a, const std::string& b) { if (a.size() != b.size()) return false; return iequals(a,b,a.size()); }; static void trimLeft(std::string &str) { const std::locale &loc = std::locale::classic(); std::string::iterator iter = str.begin(); while(iter != str.end() && std::isspace(*iter, loc)) iter++; str.erase(str.begin(), iter); }; static void trimRight(std::string &str) { const std::locale &loc = std::locale::classic(); std::string::reverse_iterator iter = str.rbegin(); while(iter != str.rend() && std::isspace(*iter, loc)) iter++; str.erase(iter.base(), str.end()); }; static void trim(std::string &str) { trimLeft(str); trimRight(str); }; static std::string camelizeHeader(const std::string &str) { std::string::const_iterator iter = str.begin(); std::string result; const std::locale &loc = std::locale::classic(); bool doNext = true; while(iter != str.end()) { if (doNext) result.insert(result.end(), std::toupper(*iter, loc)); else result.insert(result.end(), std::tolower(*iter, loc)); doNext = (*(iter++) == '-'); } return result; }; }; }; # 7 "ext/yahttp/yahttp/url.hpp" 2 namespace YaHTTP { class URL { private: bool parseSchema(const std::string& url, size_t &pos) { size_t pos1; if (pos >= url.size()) return false; if ( (pos1 = url.find_first_of(":",pos)) == std::string::npos ) return false; protocol = url.substr(pos, pos1-pos); if (protocol == "http") port = 80; if (protocol == "https") port = 443; pos = pos1+1; if (url.compare(pos, 2, "//") == 0) { pathless = false; pos += 2; } return true; }; bool parseHost(const std::string& url, size_t &pos) { size_t pos1; if (pos >= url.size()) return true; if ( (pos1 = url.find_first_of("/", pos)) == std::string::npos ) { host = url.substr(pos); path = "/"; pos = url.size(); } else { host = url.substr(pos, pos1-pos); pos = pos1; } if ( (pos1 = host.find_first_of(":")) != std::string::npos ) { std::istringstream tmp(host.substr(pos1+1)); tmp >> port; host = host.substr(0, pos1); } return true; }; bool parseUserPass(const std::string& url, size_t &pos) { size_t pos1,pos2; if (pos >= url.size()) return true; if ( (pos1 = url.find_first_of("@",pos)) == std::string::npos ) return true; pos2 = url.find_first_of(":",pos); if (pos2 != std::string::npos) { username = url.substr(pos, pos2 - pos); password = url.substr(pos2+1, pos1 - pos2 - 1); password = Utility::decodeURL(password); } else { username = url.substr(pos+1, pos1 - pos); } pos = pos1+1; username = Utility::decodeURL(username); return true; }; bool parsePath(const std::string& url, size_t &pos) { size_t pos1; if (pos >= url.size()) return true; if (url[pos] != '/') return false; if ( (pos1 = url.find_first_of("?", pos)) == std::string::npos ) { path = url.substr(pos); pos = url.size(); } else { path = url.substr(pos, pos1-pos); pos = pos1; } return true; }; bool parseParameters(const std::string& url, size_t &pos) { size_t pos1; if (pos >= url.size()) return true; if (url[pos] == '#') return true; if (url[pos] != '?') return false; if ( (pos1 = url.find_first_of("#", pos)) == std::string::npos ) { parameters = url.substr(pos+1);; pos = url.size(); } else { parameters = url.substr(pos+1, pos1-pos-1); pos = pos1; } if (parameters.size()>0 && *(parameters.end()-1) == '&') parameters.resize(parameters.size()-1); return true; }; bool parseAnchor(const std::string& url, size_t &pos) { if (pos >= url.size()) return true; if (url[pos] != '#') return false; anchor = url.substr(pos+1); return true; }; void initialize() { protocol = ""; host = ""; port = 0; username = ""; password = ""; path = ""; parameters = ""; anchor =""; pathless = true; }; public: std::string to_string() const { std::string tmp; std::ostringstream oss; if (protocol.empty() == false) { oss << protocol << ":"; if (host.empty() == false) { oss << "//"; } } if (username.empty() == false) { if (password.empty() == false) oss << Utility::encodeURL(username) << ":" << Utility::encodeURL(password) << "@"; else oss << Utility::encodeURL(username) << "@"; } if (host.empty() == false) oss << host; if (!(protocol == "http" && port == 80) && !(protocol == "https" && port == 443) && port > 0) oss << ":" << port; oss << path; if (parameters.empty() == false) { if (!pathless) oss << "?"; oss << parameters; } if (anchor.empty() == false) oss << "#" << anchor; return oss.str(); }; std::string protocol; std::string host; int port; std::string username; std::string password; std::string path; std::string parameters; std::string anchor; bool pathless; URL() { initialize(); }; URL(const std::string& url) { parse(url); }; URL(const char *url) { parse(std::string(url)); }; bool parse(const std::string& url) { initialize(); if (url.size() > 2048) return false; size_t pos = 0; if (*(url.begin()) != '/') { if (parseSchema(url, pos) == false) return false; if (pathless) { parameters = url.substr(pos); return true; } if (parseUserPass(url, pos) == false) return false; if (parseHost(url, pos) == false) return false; } if (parsePath(url, pos) == false) return false; if (parseParameters(url, pos) == false) return false; return parseAnchor(url, pos); }; friend std::ostream & operator<<(std::ostream& os, const URL& url) { os< cookies; CookieJar() {}; CookieJar(const CookieJar & rhs) { this->cookies = rhs.cookies; } void clear() { this->cookies.clear(); } void keyValuePair(const std::string &keyvalue, std::string &key, std::string &value) { size_t pos; pos = keyvalue.find("="); if (pos == std::string::npos) throw "Not a Key-Value pair (cookie)"; key = std::string(keyvalue.begin(), keyvalue.begin()+pos); value = std::string(keyvalue.begin()+pos+1, keyvalue.end()); } void parseCookieHeader(const std::string &cookiestr) { std::list cookies; int cstate = 0; size_t pos,npos; pos = 0; cstate = 0; while(pos < cookiestr.size()) { if (cookiestr.compare(pos, 7, "expires") ==0 || cookiestr.compare(pos, 6, "domain") ==0 || cookiestr.compare(pos, 4, "path") ==0) { cstate = 1; std::string key, value, s; npos = cookiestr.find("; ", pos); if (npos == std::string::npos) { s = std::string(cookiestr.begin() + pos + 1, cookiestr.end()); pos = cookiestr.size(); } else { s = std::string(cookiestr.begin() + pos + 1, cookiestr.begin() + npos - 1); pos = npos+2; } keyValuePair(s, key, value); if (s == "expires") { DateTime dt; dt.parseCookie(value); for(std::list::iterator i = cookies.begin(); i != cookies.end(); i++) i->expires = dt; } else if (s == "domain") { for(std::list::iterator i = cookies.begin(); i != cookies.end(); i++) i->domain = value; } else if (s == "path") { for(std::list::iterator i = cookies.begin(); i != cookies.end(); i++) i->path = value; } } else if (cookiestr.compare(pos, 8, "httpOnly")==0) { cstate = 1; for(std::list::iterator i = cookies.begin(); i != cookies.end(); i++) i->httponly = true; } else if (cookiestr.compare(pos, 6, "secure") ==0) { cstate = 1; for(std::list::iterator i = cookies.begin(); i != cookies.end(); i++) i->secure = true; } else if (cstate == 0) { Cookie c; std::string s; npos = cookiestr.find("; ", pos); if (npos == std::string::npos) { s = std::string(cookiestr.begin() + pos, cookiestr.end()); pos = cookiestr.size(); } else { s = std::string(cookiestr.begin() + pos, cookiestr.begin() + npos); pos = npos+2; } keyValuePair(s, c.name, c.value); c.name = YaHTTP::Utility::decodeURL(c.name); c.value = YaHTTP::Utility::decodeURL(c.value); cookies.push_back(c); } else if (cstate == 1) { break; } } for(std::list::iterator i = cookies.begin(); i != cookies.end(); i++) { this->cookies[i->name] = *i; } }; }; }; # 18 "ext/yahttp/yahttp/yahttp.hpp" 2 # 1 "ext/yahttp/yahttp/reqresp.hpp" 1 # 1 "/usr/include/boost/function.hpp" 1 3 4 # 64 "/usr/include/boost/function.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 1 3 4 # 24 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 1 3 4 # 12 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/slot/detail/shared.hpp" 1 3 4 # 13 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 2 3 4 # 25 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 1 3 4 # 12 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/slot/detail/shared.hpp" 1 3 4 # 13 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 2 3 4 # 27 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 47 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 48 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 53 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 58 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 63 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 68 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 73 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 78 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 83 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 88 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 93 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/function/detail/function_iterate.hpp" 1 3 4 # 14 "/usr/include/boost/function/detail/function_iterate.hpp" 3 4 # 1 "/usr/include/boost/function/detail/maybe_include.hpp" 1 3 4 # 15 "/usr/include/boost/function/detail/function_iterate.hpp" 2 3 4 # 98 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 65 "/usr/include/boost/function.hpp" 2 3 4 # 8 "ext/yahttp/yahttp/reqresp.hpp" 2 namespace funcptr = boost; # 1 "/usr/include/c++/5.0.0/fstream" 1 3 # 36 "/usr/include/c++/5.0.0/fstream" 3 # 37 "/usr/include/c++/5.0.0/fstream" 3 # 1 "/usr/include/c++/5.0.0/cstdio" 1 3 # 39 "/usr/include/c++/5.0.0/cstdio" 3 # 40 "/usr/include/c++/5.0.0/cstdio" 3 # 42 "/usr/include/c++/5.0.0/fstream" 2 3 # 1 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/basic_file.h" 1 3 # 37 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/basic_file.h" 3 # 38 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/basic_file.h" 3 # 1 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/c++io.h" 1 3 # 35 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/c++io.h" 3 # 1 "/usr/include/c++/5.0.0/cstdio" 1 3 # 39 "/usr/include/c++/5.0.0/cstdio" 3 # 40 "/usr/include/c++/5.0.0/cstdio" 3 # 36 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/c++io.h" 2 3 # 38 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/c++io.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { typedef __gthread_mutex_t __c_lock; typedef FILE __c_file; } # 41 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/basic_file.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template class __basic_file; template<> class __basic_file { __c_file* _M_cfile; bool _M_cfile_created; public: __basic_file(__c_lock* __lock = 0) throw (); # 84 "/usr/include/c++/5.0.0/x86_64-redhat-linux/bits/basic_file.h" 3 __basic_file* open(const char* __name, ios_base::openmode __mode, int __prot = 0664); __basic_file* sys_open(__c_file* __file, ios_base::openmode); __basic_file* sys_open(int __fd, ios_base::openmode __mode) throw (); __basic_file* close(); __attribute__ ((__pure__)) bool is_open() const throw (); __attribute__ ((__pure__)) int fd() throw (); __attribute__ ((__pure__)) __c_file* file() throw (); ~__basic_file(); streamsize xsputn(const char* __s, streamsize __n); streamsize xsputn_2(const char* __s1, streamsize __n1, const char* __s2, streamsize __n2); streamsize xsgetn(char* __s, streamsize __n); streamoff seekoff(streamoff __off, ios_base::seekdir __way) throw (); int sync(); streamsize showmanyc(); }; } # 43 "/usr/include/c++/5.0.0/fstream" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 71 "/usr/include/c++/5.0.0/fstream" 3 template class basic_filebuf : public basic_streambuf<_CharT, _Traits> { # 88 "/usr/include/c++/5.0.0/fstream" 3 public: typedef _CharT char_type; typedef _Traits traits_type; typedef typename traits_type::int_type int_type; typedef typename traits_type::pos_type pos_type; typedef typename traits_type::off_type off_type; typedef basic_streambuf __streambuf_type; typedef basic_filebuf __filebuf_type; typedef __basic_file __file_type; typedef typename traits_type::state_type __state_type; typedef codecvt __codecvt_type; friend class ios_base; protected: __c_lock _M_lock; __file_type _M_file; ios_base::openmode _M_mode; __state_type _M_state_beg; __state_type _M_state_cur; __state_type _M_state_last; char_type* _M_buf; size_t _M_buf_size; bool _M_buf_allocated; # 147 "/usr/include/c++/5.0.0/fstream" 3 bool _M_reading; bool _M_writing; char_type _M_pback; char_type* _M_pback_cur_save; char_type* _M_pback_end_save; bool _M_pback_init; const __codecvt_type* _M_codecvt; char* _M_ext_buf; streamsize _M_ext_buf_size; const char* _M_ext_next; char* _M_ext_end; void _M_create_pback() { if (!_M_pback_init) { _M_pback_cur_save = this->gptr(); _M_pback_end_save = this->egptr(); this->setg(&_M_pback, &_M_pback, &_M_pback + 1); _M_pback_init = true; } } void _M_destroy_pback() throw() { if (_M_pback_init) { _M_pback_cur_save += this->gptr() != this->eback(); this->setg(_M_buf, _M_pback_cur_save, _M_pback_end_save); _M_pback_init = false; } } public: basic_filebuf(); # 237 "/usr/include/c++/5.0.0/fstream" 3 virtual ~basic_filebuf() { this->close(); } # 251 "/usr/include/c++/5.0.0/fstream" 3 bool is_open() const throw() { return _M_file.is_open(); } # 296 "/usr/include/c++/5.0.0/fstream" 3 __filebuf_type* open(const char* __s, ios_base::openmode __mode); # 323 "/usr/include/c++/5.0.0/fstream" 3 __filebuf_type* close(); protected: void _M_allocate_internal_buffer(); void _M_destroy_internal_buffer() throw(); virtual streamsize showmanyc(); virtual int_type underflow(); virtual int_type pbackfail(int_type __c = _Traits::eof()); # 355 "/usr/include/c++/5.0.0/fstream" 3 virtual int_type overflow(int_type __c = _Traits::eof()); bool _M_convert_to_external(char_type*, streamsize); # 375 "/usr/include/c++/5.0.0/fstream" 3 virtual __streambuf_type* setbuf(char_type* __s, streamsize __n); virtual pos_type seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode __mode = ios_base::in | ios_base::out); virtual pos_type seekpos(pos_type __pos, ios_base::openmode __mode = ios_base::in | ios_base::out); pos_type _M_seek(off_type __off, ios_base::seekdir __way, __state_type __state); int _M_get_ext_pos(__state_type &__state); virtual int sync(); virtual void imbue(const locale& __loc); virtual streamsize xsgetn(char_type* __s, streamsize __n); virtual streamsize xsputn(const char_type* __s, streamsize __n); bool _M_terminate_output(); # 421 "/usr/include/c++/5.0.0/fstream" 3 void _M_set_buffer(streamsize __off) { const bool __testin = _M_mode & ios_base::in; const bool __testout = (_M_mode & ios_base::out || _M_mode & ios_base::app); if (__testin && __off > 0) this->setg(_M_buf, _M_buf, _M_buf + __off); else this->setg(_M_buf, _M_buf, _M_buf); if (__testout && __off == 0 && _M_buf_size > 1 ) this->setp(_M_buf, _M_buf + _M_buf_size - 1); else this->setp(0, 0); } }; # 454 "/usr/include/c++/5.0.0/fstream" 3 template class basic_ifstream : public basic_istream<_CharT, _Traits> { public: typedef _CharT char_type; typedef _Traits traits_type; typedef typename traits_type::int_type int_type; typedef typename traits_type::pos_type pos_type; typedef typename traits_type::off_type off_type; typedef basic_filebuf __filebuf_type; typedef basic_istream __istream_type; private: __filebuf_type _M_filebuf; public: # 481 "/usr/include/c++/5.0.0/fstream" 3 basic_ifstream() : __istream_type(), _M_filebuf() { this->init(&_M_filebuf); } # 494 "/usr/include/c++/5.0.0/fstream" 3 explicit basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in) : __istream_type(), _M_filebuf() { this->init(&_M_filebuf); this->open(__s, __mode); } # 533 "/usr/include/c++/5.0.0/fstream" 3 ~basic_ifstream() { } # 565 "/usr/include/c++/5.0.0/fstream" 3 __filebuf_type* rdbuf() const { return const_cast<__filebuf_type*>(&_M_filebuf); } bool is_open() { return _M_filebuf.is_open(); } bool is_open() const { return _M_filebuf.is_open(); } # 594 "/usr/include/c++/5.0.0/fstream" 3 void open(const char* __s, ios_base::openmode __mode = ios_base::in) { if (!_M_filebuf.open(__s, __mode | ios_base::in)) this->setstate(ios_base::failbit); else this->clear(); } # 632 "/usr/include/c++/5.0.0/fstream" 3 void close() { if (!_M_filebuf.close()) this->setstate(ios_base::failbit); } }; # 655 "/usr/include/c++/5.0.0/fstream" 3 template class basic_ofstream : public basic_ostream<_CharT,_Traits> { public: typedef _CharT char_type; typedef _Traits traits_type; typedef typename traits_type::int_type int_type; typedef typename traits_type::pos_type pos_type; typedef typename traits_type::off_type off_type; typedef basic_filebuf __filebuf_type; typedef basic_ostream __ostream_type; private: __filebuf_type _M_filebuf; public: # 682 "/usr/include/c++/5.0.0/fstream" 3 basic_ofstream(): __ostream_type(), _M_filebuf() { this->init(&_M_filebuf); } # 696 "/usr/include/c++/5.0.0/fstream" 3 explicit basic_ofstream(const char* __s, ios_base::openmode __mode = ios_base::out|ios_base::trunc) : __ostream_type(), _M_filebuf() { this->init(&_M_filebuf); this->open(__s, __mode); } # 737 "/usr/include/c++/5.0.0/fstream" 3 ~basic_ofstream() { } # 769 "/usr/include/c++/5.0.0/fstream" 3 __filebuf_type* rdbuf() const { return const_cast<__filebuf_type*>(&_M_filebuf); } bool is_open() { return _M_filebuf.is_open(); } bool is_open() const { return _M_filebuf.is_open(); } # 798 "/usr/include/c++/5.0.0/fstream" 3 void open(const char* __s, ios_base::openmode __mode = ios_base::out | ios_base::trunc) { if (!_M_filebuf.open(__s, __mode | ios_base::out)) this->setstate(ios_base::failbit); else this->clear(); } # 838 "/usr/include/c++/5.0.0/fstream" 3 void close() { if (!_M_filebuf.close()) this->setstate(ios_base::failbit); } }; # 861 "/usr/include/c++/5.0.0/fstream" 3 template class basic_fstream : public basic_iostream<_CharT, _Traits> { public: typedef _CharT char_type; typedef _Traits traits_type; typedef typename traits_type::int_type int_type; typedef typename traits_type::pos_type pos_type; typedef typename traits_type::off_type off_type; typedef basic_filebuf __filebuf_type; typedef basic_ios __ios_type; typedef basic_iostream __iostream_type; private: __filebuf_type _M_filebuf; public: # 889 "/usr/include/c++/5.0.0/fstream" 3 basic_fstream() : __iostream_type(), _M_filebuf() { this->init(&_M_filebuf); } # 901 "/usr/include/c++/5.0.0/fstream" 3 explicit basic_fstream(const char* __s, ios_base::openmode __mode = ios_base::in | ios_base::out) : __iostream_type(0), _M_filebuf() { this->init(&_M_filebuf); this->open(__s, __mode); } # 939 "/usr/include/c++/5.0.0/fstream" 3 ~basic_fstream() { } # 971 "/usr/include/c++/5.0.0/fstream" 3 __filebuf_type* rdbuf() const { return const_cast<__filebuf_type*>(&_M_filebuf); } bool is_open() { return _M_filebuf.is_open(); } bool is_open() const { return _M_filebuf.is_open(); } # 1000 "/usr/include/c++/5.0.0/fstream" 3 void open(const char* __s, ios_base::openmode __mode = ios_base::in | ios_base::out) { if (!_M_filebuf.open(__s, __mode)) this->setstate(ios_base::failbit); else this->clear(); } # 1040 "/usr/include/c++/5.0.0/fstream" 3 void close() { if (!_M_filebuf.close()) this->setstate(ios_base::failbit); } }; # 1078 "/usr/include/c++/5.0.0/fstream" 3 } # 1 "/usr/include/c++/5.0.0/bits/fstream.tcc" 1 3 # 37 "/usr/include/c++/5.0.0/bits/fstream.tcc" 3 # 38 "/usr/include/c++/5.0.0/bits/fstream.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template void basic_filebuf<_CharT, _Traits>:: _M_allocate_internal_buffer() { if (!_M_buf_allocated && !_M_buf) { _M_buf = new char_type[_M_buf_size]; _M_buf_allocated = true; } } template void basic_filebuf<_CharT, _Traits>:: _M_destroy_internal_buffer() throw() { if (_M_buf_allocated) { delete [] _M_buf; _M_buf = 0; _M_buf_allocated = false; } delete [] _M_ext_buf; _M_ext_buf = 0; _M_ext_buf_size = 0; _M_ext_next = 0; _M_ext_end = 0; } template basic_filebuf<_CharT, _Traits>:: basic_filebuf() : __streambuf_type(), _M_lock(), _M_file(&_M_lock), _M_mode(ios_base::openmode(0)), _M_state_beg(), _M_state_cur(), _M_state_last(), _M_buf(0), _M_buf_size(8192), _M_buf_allocated(false), _M_reading(false), _M_writing(false), _M_pback(), _M_pback_cur_save(0), _M_pback_end_save(0), _M_pback_init(false), _M_codecvt(0), _M_ext_buf(0), _M_ext_buf_size(0), _M_ext_next(0), _M_ext_end(0) { if (has_facet<__codecvt_type>(this->_M_buf_locale)) _M_codecvt = &use_facet<__codecvt_type>(this->_M_buf_locale); } # 176 "/usr/include/c++/5.0.0/bits/fstream.tcc" 3 template typename basic_filebuf<_CharT, _Traits>::__filebuf_type* basic_filebuf<_CharT, _Traits>:: open(const char* __s, ios_base::openmode __mode) { __filebuf_type *__ret = 0; if (!this->is_open()) { _M_file.open(__s, __mode); if (this->is_open()) { _M_allocate_internal_buffer(); _M_mode = __mode; _M_reading = false; _M_writing = false; _M_set_buffer(-1); _M_state_last = _M_state_cur = _M_state_beg; if ((__mode & ios_base::ate) && this->seekoff(0, ios_base::end, __mode) == pos_type(off_type(-1))) this->close(); else __ret = this; } } return __ret; } template typename basic_filebuf<_CharT, _Traits>::__filebuf_type* basic_filebuf<_CharT, _Traits>:: close() { if (!this->is_open()) return 0; bool __testfail = false; { struct __close_sentry { basic_filebuf *__fb; __close_sentry (basic_filebuf *__fbi): __fb(__fbi) { } ~__close_sentry () { __fb->_M_mode = ios_base::openmode(0); __fb->_M_pback_init = false; __fb->_M_destroy_internal_buffer(); __fb->_M_reading = false; __fb->_M_writing = false; __fb->_M_set_buffer(-1); __fb->_M_state_last = __fb->_M_state_cur = __fb->_M_state_beg; } } __cs (this); try { if (!_M_terminate_output()) __testfail = true; } catch(__cxxabiv1::__forced_unwind&) { _M_file.close(); throw; } catch(...) { __testfail = true; } } if (!_M_file.close()) __testfail = true; if (__testfail) return 0; else return this; } template streamsize basic_filebuf<_CharT, _Traits>:: showmanyc() { streamsize __ret = -1; const bool __testin = _M_mode & ios_base::in; if (__testin && this->is_open()) { __ret = this->egptr() - this->gptr(); if (__check_facet(_M_codecvt).encoding() >= 0) __ret += _M_file.showmanyc() / _M_codecvt->max_length(); } return __ret; } template typename basic_filebuf<_CharT, _Traits>::int_type basic_filebuf<_CharT, _Traits>:: underflow() { int_type __ret = traits_type::eof(); const bool __testin = _M_mode & ios_base::in; if (__testin) { if (_M_writing) { if (overflow() == traits_type::eof()) return __ret; _M_set_buffer(-1); _M_writing = false; } _M_destroy_pback(); if (this->gptr() < this->egptr()) return traits_type::to_int_type(*this->gptr()); const size_t __buflen = _M_buf_size > 1 ? _M_buf_size - 1 : 1; bool __got_eof = false; streamsize __ilen = 0; codecvt_base::result __r = codecvt_base::ok; if (__check_facet(_M_codecvt).always_noconv()) { __ilen = _M_file.xsgetn(reinterpret_cast(this->eback()), __buflen); if (__ilen == 0) __got_eof = true; } else { const int __enc = _M_codecvt->encoding(); streamsize __blen; streamsize __rlen; if (__enc > 0) __blen = __rlen = __buflen * __enc; else { __blen = __buflen + _M_codecvt->max_length() - 1; __rlen = __buflen; } const streamsize __remainder = _M_ext_end - _M_ext_next; __rlen = __rlen > __remainder ? __rlen - __remainder : 0; if (_M_reading && this->egptr() == this->eback() && __remainder) __rlen = 0; if (_M_ext_buf_size < __blen) { char* __buf = new char[__blen]; if (__remainder) __builtin_memcpy(__buf, _M_ext_next, __remainder); delete [] _M_ext_buf; _M_ext_buf = __buf; _M_ext_buf_size = __blen; } else if (__remainder) __builtin_memmove(_M_ext_buf, _M_ext_next, __remainder); _M_ext_next = _M_ext_buf; _M_ext_end = _M_ext_buf + __remainder; _M_state_last = _M_state_cur; do { if (__rlen > 0) { if (_M_ext_end - _M_ext_buf + __rlen > _M_ext_buf_size) { __throw_ios_failure(("basic_filebuf::underflow " "codecvt::max_length() " "is not valid") ); } streamsize __elen = _M_file.xsgetn(_M_ext_end, __rlen); if (__elen == 0) __got_eof = true; else if (__elen == -1) break; _M_ext_end += __elen; } char_type* __iend = this->eback(); if (_M_ext_next < _M_ext_end) __r = _M_codecvt->in(_M_state_cur, _M_ext_next, _M_ext_end, _M_ext_next, this->eback(), this->eback() + __buflen, __iend); if (__r == codecvt_base::noconv) { size_t __avail = _M_ext_end - _M_ext_buf; __ilen = std::min(__avail, __buflen); traits_type::copy(this->eback(), reinterpret_cast (_M_ext_buf), __ilen); _M_ext_next = _M_ext_buf + __ilen; } else __ilen = __iend - this->eback(); if (__r == codecvt_base::error) break; __rlen = 1; } while (__ilen == 0 && !__got_eof); } if (__ilen > 0) { _M_set_buffer(__ilen); _M_reading = true; __ret = traits_type::to_int_type(*this->gptr()); } else if (__got_eof) { _M_set_buffer(-1); _M_reading = false; if (__r == codecvt_base::partial) __throw_ios_failure(("basic_filebuf::underflow " "incomplete character in file") ); } else if (__r == codecvt_base::error) __throw_ios_failure(("basic_filebuf::underflow " "invalid byte sequence in file") ); else __throw_ios_failure(("basic_filebuf::underflow " "error reading the file") ); } return __ret; } template typename basic_filebuf<_CharT, _Traits>::int_type basic_filebuf<_CharT, _Traits>:: pbackfail(int_type __i) { int_type __ret = traits_type::eof(); const bool __testin = _M_mode & ios_base::in; if (__testin) { if (_M_writing) { if (overflow() == traits_type::eof()) return __ret; _M_set_buffer(-1); _M_writing = false; } const bool __testpb = _M_pback_init; const bool __testeof = traits_type::eq_int_type(__i, __ret); int_type __tmp; if (this->eback() < this->gptr()) { this->gbump(-1); __tmp = traits_type::to_int_type(*this->gptr()); } else if (this->seekoff(-1, ios_base::cur) != pos_type(off_type(-1))) { __tmp = this->underflow(); if (traits_type::eq_int_type(__tmp, __ret)) return __ret; } else { return __ret; } if (!__testeof && traits_type::eq_int_type(__i, __tmp)) __ret = __i; else if (__testeof) __ret = traits_type::not_eof(__i); else if (!__testpb) { _M_create_pback(); _M_reading = true; *this->gptr() = traits_type::to_char_type(__i); __ret = __i; } } return __ret; } template typename basic_filebuf<_CharT, _Traits>::int_type basic_filebuf<_CharT, _Traits>:: overflow(int_type __c) { int_type __ret = traits_type::eof(); const bool __testeof = traits_type::eq_int_type(__c, __ret); const bool __testout = (_M_mode & ios_base::out || _M_mode & ios_base::app); if (__testout) { if (_M_reading) { _M_destroy_pback(); const int __gptr_off = _M_get_ext_pos(_M_state_last); if (_M_seek(__gptr_off, ios_base::cur, _M_state_last) == pos_type(off_type(-1))) return __ret; } if (this->pbase() < this->pptr()) { if (!__testeof) { *this->pptr() = traits_type::to_char_type(__c); this->pbump(1); } if (_M_convert_to_external(this->pbase(), this->pptr() - this->pbase())) { _M_set_buffer(0); __ret = traits_type::not_eof(__c); } } else if (_M_buf_size > 1) { _M_set_buffer(0); _M_writing = true; if (!__testeof) { *this->pptr() = traits_type::to_char_type(__c); this->pbump(1); } __ret = traits_type::not_eof(__c); } else { char_type __conv = traits_type::to_char_type(__c); if (__testeof || _M_convert_to_external(&__conv, 1)) { _M_writing = true; __ret = traits_type::not_eof(__c); } } } return __ret; } template bool basic_filebuf<_CharT, _Traits>:: _M_convert_to_external(_CharT* __ibuf, streamsize __ilen) { streamsize __elen; streamsize __plen; if (__check_facet(_M_codecvt).always_noconv()) { __elen = _M_file.xsputn(reinterpret_cast(__ibuf), __ilen); __plen = __ilen; } else { streamsize __blen = __ilen * _M_codecvt->max_length(); char* __buf = static_cast(__builtin_alloca(__blen)); char* __bend; const char_type* __iend; codecvt_base::result __r; __r = _M_codecvt->out(_M_state_cur, __ibuf, __ibuf + __ilen, __iend, __buf, __buf + __blen, __bend); if (__r == codecvt_base::ok || __r == codecvt_base::partial) __blen = __bend - __buf; else if (__r == codecvt_base::noconv) { __buf = reinterpret_cast(__ibuf); __blen = __ilen; } else __throw_ios_failure(("basic_filebuf::_M_convert_to_external " "conversion error") ); __elen = _M_file.xsputn(__buf, __blen); __plen = __blen; if (__r == codecvt_base::partial && __elen == __plen) { const char_type* __iresume = __iend; streamsize __rlen = this->pptr() - __iend; __r = _M_codecvt->out(_M_state_cur, __iresume, __iresume + __rlen, __iend, __buf, __buf + __blen, __bend); if (__r != codecvt_base::error) { __rlen = __bend - __buf; __elen = _M_file.xsputn(__buf, __rlen); __plen = __rlen; } else __throw_ios_failure(("basic_filebuf::_M_convert_to_external " "conversion error") ); } } return __elen == __plen; } template streamsize basic_filebuf<_CharT, _Traits>:: xsgetn(_CharT* __s, streamsize __n) { streamsize __ret = 0; if (_M_pback_init) { if (__n > 0 && this->gptr() == this->eback()) { *__s++ = *this->gptr(); this->gbump(1); __ret = 1; --__n; } _M_destroy_pback(); } else if (_M_writing) { if (overflow() == traits_type::eof()) return __ret; _M_set_buffer(-1); _M_writing = false; } const bool __testin = _M_mode & ios_base::in; const streamsize __buflen = _M_buf_size > 1 ? _M_buf_size - 1 : 1; if (__n > __buflen && __check_facet(_M_codecvt).always_noconv() && __testin) { const streamsize __avail = this->egptr() - this->gptr(); if (__avail != 0) { traits_type::copy(__s, this->gptr(), __avail); __s += __avail; this->setg(this->eback(), this->gptr() + __avail, this->egptr()); __ret += __avail; __n -= __avail; } streamsize __len; for (;;) { __len = _M_file.xsgetn(reinterpret_cast(__s), __n); if (__len == -1) __throw_ios_failure(("basic_filebuf::xsgetn " "error reading the file") ); if (__len == 0) break; __n -= __len; __ret += __len; if (__n == 0) break; __s += __len; } if (__n == 0) { _M_set_buffer(0); _M_reading = true; } else if (__len == 0) { _M_set_buffer(-1); _M_reading = false; } } else __ret += __streambuf_type::xsgetn(__s, __n); return __ret; } template streamsize basic_filebuf<_CharT, _Traits>:: xsputn(const _CharT* __s, streamsize __n) { streamsize __ret = 0; const bool __testout = (_M_mode & ios_base::out || _M_mode & ios_base::app); if (__check_facet(_M_codecvt).always_noconv() && __testout && !_M_reading) { const streamsize __chunk = 1ul << 10; streamsize __bufavail = this->epptr() - this->pptr(); if (!_M_writing && _M_buf_size > 1) __bufavail = _M_buf_size - 1; const streamsize __limit = std::min(__chunk, __bufavail); if (__n >= __limit) { const streamsize __buffill = this->pptr() - this->pbase(); const char* __buf = reinterpret_cast(this->pbase()); __ret = _M_file.xsputn_2(__buf, __buffill, reinterpret_cast(__s), __n); if (__ret == __buffill + __n) { _M_set_buffer(0); _M_writing = true; } if (__ret > __buffill) __ret -= __buffill; else __ret = 0; } else __ret = __streambuf_type::xsputn(__s, __n); } else __ret = __streambuf_type::xsputn(__s, __n); return __ret; } template typename basic_filebuf<_CharT, _Traits>::__streambuf_type* basic_filebuf<_CharT, _Traits>:: setbuf(char_type* __s, streamsize __n) { if (!this->is_open()) { if (__s == 0 && __n == 0) _M_buf_size = 1; else if (__s && __n > 0) { # 787 "/usr/include/c++/5.0.0/bits/fstream.tcc" 3 _M_buf = __s; _M_buf_size = __n; } } return this; } template typename basic_filebuf<_CharT, _Traits>::pos_type basic_filebuf<_CharT, _Traits>:: seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode) { int __width = 0; if (_M_codecvt) __width = _M_codecvt->encoding(); if (__width < 0) __width = 0; pos_type __ret = pos_type(off_type(-1)); const bool __testfail = __off != 0 && __width <= 0; if (this->is_open() && !__testfail) { bool __no_movement = __way == ios_base::cur && __off == 0 && (!_M_writing || _M_codecvt->always_noconv()); if (!__no_movement) _M_destroy_pback(); __state_type __state = _M_state_beg; off_type __computed_off = __off * __width; if (_M_reading && __way == ios_base::cur) { __state = _M_state_last; __computed_off += _M_get_ext_pos(__state); } if (!__no_movement) __ret = _M_seek(__computed_off, __way, __state); else { if (_M_writing) __computed_off = this->pptr() - this->pbase(); off_type __file_off = _M_file.seekoff(0, ios_base::cur); if (__file_off != off_type(-1)) { __ret = __file_off + __computed_off; __ret.state(__state); } } } return __ret; } template typename basic_filebuf<_CharT, _Traits>::pos_type basic_filebuf<_CharT, _Traits>:: seekpos(pos_type __pos, ios_base::openmode) { pos_type __ret = pos_type(off_type(-1)); if (this->is_open()) { _M_destroy_pback(); __ret = _M_seek(off_type(__pos), ios_base::beg, __pos.state()); } return __ret; } template typename basic_filebuf<_CharT, _Traits>::pos_type basic_filebuf<_CharT, _Traits>:: _M_seek(off_type __off, ios_base::seekdir __way, __state_type __state) { pos_type __ret = pos_type(off_type(-1)); if (_M_terminate_output()) { off_type __file_off = _M_file.seekoff(__off, __way); if (__file_off != off_type(-1)) { _M_reading = false; _M_writing = false; _M_ext_next = _M_ext_end = _M_ext_buf; _M_set_buffer(-1); _M_state_cur = __state; __ret = __file_off; __ret.state(_M_state_cur); } } return __ret; } template int basic_filebuf<_CharT, _Traits>:: _M_get_ext_pos(__state_type& __state) { if (_M_codecvt->always_noconv()) return this->gptr() - this->egptr(); else { const int __gptr_off = _M_codecvt->length(__state, _M_ext_buf, _M_ext_next, this->gptr() - this->eback()); return _M_ext_buf + __gptr_off - _M_ext_end; } } template bool basic_filebuf<_CharT, _Traits>:: _M_terminate_output() { bool __testvalid = true; if (this->pbase() < this->pptr()) { const int_type __tmp = this->overflow(); if (traits_type::eq_int_type(__tmp, traits_type::eof())) __testvalid = false; } if (_M_writing && !__check_facet(_M_codecvt).always_noconv() && __testvalid) { const size_t __blen = 128; char __buf[__blen]; codecvt_base::result __r; streamsize __ilen = 0; do { char* __next; __r = _M_codecvt->unshift(_M_state_cur, __buf, __buf + __blen, __next); if (__r == codecvt_base::error) __testvalid = false; else if (__r == codecvt_base::ok || __r == codecvt_base::partial) { __ilen = __next - __buf; if (__ilen > 0) { const streamsize __elen = _M_file.xsputn(__buf, __ilen); if (__elen != __ilen) __testvalid = false; } } } while (__r == codecvt_base::partial && __ilen > 0 && __testvalid); if (__testvalid) { const int_type __tmp = this->overflow(); if (traits_type::eq_int_type(__tmp, traits_type::eof())) __testvalid = false; } } return __testvalid; } template int basic_filebuf<_CharT, _Traits>:: sync() { int __ret = 0; if (this->pbase() < this->pptr()) { const int_type __tmp = this->overflow(); if (traits_type::eq_int_type(__tmp, traits_type::eof())) __ret = -1; } return __ret; } template void basic_filebuf<_CharT, _Traits>:: imbue(const locale& __loc) { bool __testvalid = true; const __codecvt_type* _M_codecvt_tmp = 0; if (__builtin_expect(has_facet<__codecvt_type>(__loc), true)) _M_codecvt_tmp = &use_facet<__codecvt_type>(__loc); if (this->is_open()) { if ((_M_reading || _M_writing) && __check_facet(_M_codecvt).encoding() == -1) __testvalid = false; else { if (_M_reading) { if (__check_facet(_M_codecvt).always_noconv()) { if (_M_codecvt_tmp && !__check_facet(_M_codecvt_tmp).always_noconv()) __testvalid = this->seekoff(0, ios_base::cur, _M_mode) != pos_type(off_type(-1)); } else { _M_ext_next = _M_ext_buf + _M_codecvt->length(_M_state_last, _M_ext_buf, _M_ext_next, this->gptr() - this->eback()); const streamsize __remainder = _M_ext_end - _M_ext_next; if (__remainder) __builtin_memmove(_M_ext_buf, _M_ext_next, __remainder); _M_ext_next = _M_ext_buf; _M_ext_end = _M_ext_buf + __remainder; _M_set_buffer(-1); _M_state_last = _M_state_cur = _M_state_beg; } } else if (_M_writing && (__testvalid = _M_terminate_output())) _M_set_buffer(-1); } } if (__testvalid) _M_codecvt = _M_codecvt_tmp; else _M_codecvt = 0; } extern template class basic_filebuf; extern template class basic_ifstream; extern template class basic_ofstream; extern template class basic_fstream; extern template class basic_filebuf; extern template class basic_ifstream; extern template class basic_ofstream; extern template class basic_fstream; } # 1082 "/usr/include/c++/5.0.0/fstream" 2 3 # 14 "ext/yahttp/yahttp/reqresp.hpp" 2 # 1 "/usr/include/c++/5.0.0/cctype" 1 3 # 39 "/usr/include/c++/5.0.0/cctype" 3 # 40 "/usr/include/c++/5.0.0/cctype" 3 # 15 "ext/yahttp/yahttp/reqresp.hpp" 2 # 1 "/usr/include/c++/5.0.0/cstdio" 1 3 # 39 "/usr/include/c++/5.0.0/cstdio" 3 # 40 "/usr/include/c++/5.0.0/cstdio" 3 # 18 "ext/yahttp/yahttp/reqresp.hpp" 2 # 34 "ext/yahttp/yahttp/reqresp.hpp" # 34 "ext/yahttp/yahttp/reqresp.hpp" namespace YaHTTP { typedef std::map strcookie_map_t; typedef enum { urlencoded, multipart } postformat_t; class HTTPBase { public: class SendBodyRender { public: SendBodyRender() {}; size_t operator()(const HTTPBase *doc, std::ostream& os, bool chunked) const { if (chunked) { std::string::size_type i,cl; for(i=0;ibody.length();i+=1024) { cl = std::min(static_cast(1024), doc->body.length()-i); os << std::hex << cl << std::dec << "\r\n"; os << doc->body.substr(i, cl) << "\r\n"; } os << 0 << "\r\n\r\n"; } else { os << doc->body; } return doc->body.length(); }; }; class SendFileRender { public: SendFileRender(const std::string& path) { this->path = path; }; size_t operator()(const HTTPBase *doc __attribute__((unused)), std::ostream& os, bool chunked) const { char buf[4096]; size_t n,k; std::ifstream ifs(path.c_str(), std::ifstream::binary); n = 0; while(ifs && ifs.good()) { ifs.read(buf, sizeof buf); n += (k = ifs.gcount()); if (k) { if (chunked) os << std::hex << k << std::dec << "\r\n"; os.write(buf, k); if (chunked) os << "\r\n"; } } if (chunked) os << 0 << "\r\n\r\n"; return n; }; std::string path; }; HTTPBase() { initialize(); }; virtual void initialize() { kind = 0; status = 0; renderer = SendBodyRender(); max_request_size = 2097152; max_response_size = 2097152; url = ""; method = ""; statusText = ""; jar.clear(); headers.clear(); parameters.clear(); getvars.clear(); postvars.clear(); body = ""; routeName = ""; version = 11; } protected: HTTPBase(const HTTPBase& rhs) { this->url = rhs.url; this->kind = rhs.kind; this->status = rhs.status; this->statusText = rhs.statusText; this->method = rhs.method; this->headers = rhs.headers; this->jar = rhs.jar; this->postvars = rhs.postvars; this->parameters = rhs.parameters; this->getvars = rhs.getvars; this->body = rhs.body; this->max_request_size = rhs.max_request_size; this->max_response_size = rhs.max_response_size; this->version = rhs.version; this->renderer = rhs.renderer; }; HTTPBase& operator=(const HTTPBase& rhs) { this->url = rhs.url; this->kind = rhs.kind; this->status = rhs.status; this->statusText = rhs.statusText; this->method = rhs.method; this->headers = rhs.headers; this->jar = rhs.jar; this->postvars = rhs.postvars; this->parameters = rhs.parameters; this->getvars = rhs.getvars; this->body = rhs.body; this->max_request_size = rhs.max_request_size; this->max_response_size = rhs.max_response_size; this->version = rhs.version; this->renderer = rhs.renderer; return *this; }; public: URL url; int kind; int status; int version; std::string statusText; std::string method; strstr_map_t headers; CookieJar jar; strstr_map_t postvars; strstr_map_t getvars; strstr_map_t parameters; std::string routeName; std::string body; ssize_t max_request_size; ssize_t max_response_size; funcptr::function renderer; void write(std::ostream& os) const; strstr_map_t& GET() { return getvars; }; strstr_map_t& POST() { return postvars; }; strcookie_map_t& COOKIES() { return jar.cookies; }; std::string versionStr(int version) const { switch(version) { case 9: return "0.9"; case 10: return "1.0"; case 11: return "1.1"; default: throw YaHTTP::Error("Unsupported version"); } }; std::string str() const { std::ostringstream oss; write(oss); return oss.str(); }; }; class Response: public HTTPBase { public: Response() { initialize(); }; Response(const HTTPBase& rhs): HTTPBase(rhs) { this->kind = 2; }; Response& operator=(const HTTPBase& rhs) { HTTPBase::operator=(rhs); this->kind = 2; return *this; }; void initialize() { HTTPBase::initialize(); this->kind = 2; } friend std::ostream& operator<<(std::ostream& os, const Response &resp); friend std::istream& operator>>(std::istream& is, Response &resp); }; class Request: public HTTPBase { public: Request() { initialize(); }; Request(const HTTPBase& rhs): HTTPBase(rhs) { this->kind = 1; }; Request& operator=(const HTTPBase& rhs) { HTTPBase::operator=(rhs); this->kind = 1; return *this; }; void initialize() { HTTPBase::initialize(); this->kind = 1; } void setup(const std::string& method, const std::string& url) { this->url.parse(url); this->headers["host"] = this->url.host; this->method = method; std::transform(this->method.begin(), this->method.end(), this->method.begin(), ::toupper); this->headers["user-agent"] = "YaHTTP v1.0"; }; void preparePost(postformat_t format = urlencoded) { std::ostringstream postbuf; if (format == urlencoded) { for(strstr_map_t::const_iterator i = POST().begin(); i != POST().end(); i++) { postbuf << Utility::encodeURL(i->first, false) << "=" << Utility::encodeURL(i->second, false) << "&"; } if (postbuf.str().length()>0) body = postbuf.str().substr(0, postbuf.str().length()-1); else body = ""; headers["content-type"] = "application/x-www-form-urlencoded; charset=utf-8"; } else if (format == multipart) { headers["content-type"] = "multipart/form-data; boundary=YaHTTP-12ca543"; for(strstr_map_t::const_iterator i = POST().begin(); i != POST().end(); i++) { postbuf << "--YaHTTP-12ca543\r\nContent-Disposition: form-data; name=\"" << Utility::encodeURL(i->first, false) << "; charset=UTF-8\r\n\r\n" << Utility::encodeURL(i->second, false) << "\r\n"; } } postbuf.str(""); postbuf << body.length(); method = "POST"; headers["content-length"] = postbuf.str(); }; friend std::ostream& operator<<(std::ostream& os, const Request &resp); friend std::istream& operator>>(std::istream& is, Request &resp); }; template class AsyncLoader { public: T* target; int state; size_t pos; std::string buffer; bool chunked; int chunk_size; std::ostringstream bodybuf; size_t maxbody; size_t minbody; bool hasBody; void keyValuePair(const std::string &keyvalue, std::string &key, std::string &value); void initialize(T* target) { chunked = false; chunk_size = 0; bodybuf.str(""); maxbody = 0; pos = 0; state = 0; this->target = target; hasBody = false; buffer = ""; this->target->initialize(); }; int feed(const std::string& somedata); bool ready() { return (chunked == true && state == 3) || (chunked == false && state > 1 && (!hasBody || (bodybuf.str().size() <= maxbody && bodybuf.str().size() >= minbody) ) ); }; void finalize() { bodybuf.flush(); if (ready()) { strstr_map_t::iterator pos = target->headers.find("content-type"); if (pos != target->headers.end() && Utility::iequals(pos->second, "application/x-www-form-urlencoded", 32)) { target->postvars = Utility::parseUrlParameters(bodybuf.str()); } target->body = bodybuf.str(); } bodybuf.str(""); this->target = # 314 "ext/yahttp/yahttp/reqresp.hpp" 3 4 __null # 314 "ext/yahttp/yahttp/reqresp.hpp" ; }; }; class AsyncResponseLoader: public AsyncLoader { }; class AsyncRequestLoader: public AsyncLoader { }; }; # 19 "ext/yahttp/yahttp/yahttp.hpp" 2 # 29 "webserver.hh" 2 # 1 "ext/rapidjson/include/rapidjson/document.h" 1 # 1 "ext/rapidjson/include/rapidjson/reader.h" 1 # 1 "ext/rapidjson/include/rapidjson/rapidjson.h" 1 # 1 "/usr/include/c++/5.0.0/cstdlib" 1 3 # 39 "/usr/include/c++/5.0.0/cstdlib" 3 # 40 "/usr/include/c++/5.0.0/cstdlib" 3 # 8 "ext/rapidjson/include/rapidjson/rapidjson.h" 2 # 1 "/usr/include/c++/5.0.0/cstring" 1 3 # 39 "/usr/include/c++/5.0.0/cstring" 3 # 40 "/usr/include/c++/5.0.0/cstring" 3 # 9 "ext/rapidjson/include/rapidjson/rapidjson.h" 2 # 20 "ext/rapidjson/include/rapidjson/rapidjson.h" # 1 "/usr/include/inttypes.h" 1 3 4 # 266 "/usr/include/inttypes.h" 3 4 # 266 "/usr/include/inttypes.h" 3 4 extern "C" { typedef struct { long int quot; long int rem; } imaxdiv_t; # 290 "/usr/include/inttypes.h" 3 4 extern intmax_t imaxabs (intmax_t __n) throw () __attribute__ ((__const__)); extern imaxdiv_t imaxdiv (intmax_t __numer, intmax_t __denom) throw () __attribute__ ((__const__)); extern intmax_t strtoimax (const char *__restrict __nptr, char **__restrict __endptr, int __base) throw (); extern uintmax_t strtoumax (const char *__restrict __nptr, char ** __restrict __endptr, int __base) throw (); extern intmax_t wcstoimax (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) throw (); extern uintmax_t wcstoumax (const wchar_t *__restrict __nptr, wchar_t ** __restrict __endptr, int __base) throw (); extern long int __strtol_internal (const char *__restrict __nptr, char **__restrict __endptr, int __base, int __group) throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern __inline __attribute__ ((__gnu_inline__)) intmax_t __attribute__ ((__leaf__)) strtoimax (const char *__restrict nptr, char **__restrict endptr, int base) throw () { return __strtol_internal (nptr, endptr, base, 0); } extern unsigned long int __strtoul_internal (const char *__restrict __nptr, char ** __restrict __endptr, int __base, int __group) throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern __inline __attribute__ ((__gnu_inline__)) uintmax_t __attribute__ ((__leaf__)) strtoumax (const char *__restrict nptr, char **__restrict endptr, int base) throw () { return __strtoul_internal (nptr, endptr, base, 0); } extern long int __wcstol_internal (const wchar_t * __restrict __nptr, wchar_t **__restrict __endptr, int __base, int __group) throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern __inline __attribute__ ((__gnu_inline__)) intmax_t __attribute__ ((__leaf__)) wcstoimax (const wchar_t *__restrict nptr, wchar_t **__restrict endptr, int base) throw () { return __wcstol_internal (nptr, endptr, base, 0); } extern unsigned long int __wcstoul_internal (const wchar_t * __restrict __nptr, wchar_t ** __restrict __endptr, int __base, int __group) throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); extern __inline __attribute__ ((__gnu_inline__)) uintmax_t __attribute__ ((__leaf__)) wcstoumax (const wchar_t *__restrict nptr, wchar_t **__restrict endptr, int base) throw () { return __wcstoul_internal (nptr, endptr, base, 0); } # 432 "/usr/include/inttypes.h" 3 4 } # 21 "ext/rapidjson/include/rapidjson/rapidjson.h" 2 # 63 "ext/rapidjson/include/rapidjson/rapidjson.h" # 63 "ext/rapidjson/include/rapidjson/rapidjson.h" namespace rapidjson { typedef unsigned SizeType; } # 79 "ext/rapidjson/include/rapidjson/rapidjson.h" # 1 "/usr/include/c++/5.0.0/cassert" 1 3 # 41 "/usr/include/c++/5.0.0/cassert" 3 # 42 "/usr/include/c++/5.0.0/cassert" 3 # 1 "/usr/include/assert.h" 1 3 4 # 64 "/usr/include/assert.h" 3 4 # 64 "/usr/include/assert.h" 3 4 extern "C" { extern void __assert_fail (const char *__assertion, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert_perror_fail (int __errnum, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert (const char *__assertion, const char *__file, int __line) throw () __attribute__ ((__noreturn__)); } # 43 "/usr/include/c++/5.0.0/cassert" 2 3 # 80 "ext/rapidjson/include/rapidjson/rapidjson.h" 2 # 90 "ext/rapidjson/include/rapidjson/rapidjson.h" # 90 "ext/rapidjson/include/rapidjson/rapidjson.h" namespace rapidjson { # 132 "ext/rapidjson/include/rapidjson/rapidjson.h" class CrtAllocator { public: static const bool kNeedFree = true; void* Malloc(size_t size) { return malloc(size); } void* Realloc(void* originalPtr, size_t originalSize, size_t newSize) { (void)originalSize; return realloc(originalPtr, newSize); } static void Free(void *ptr) { free(ptr); } }; # 159 "ext/rapidjson/include/rapidjson/rapidjson.h" template class MemoryPoolAllocator { public: static const bool kNeedFree = false; MemoryPoolAllocator(size_t chunkSize = kDefaultChunkCapacity, BaseAllocator* baseAllocator = 0) : chunkHead_(0), chunk_capacity_(chunkSize), userBuffer_(0), baseAllocator_(baseAllocator), ownBaseAllocator_(0) { if (!baseAllocator_) ownBaseAllocator_ = baseAllocator_ = new BaseAllocator(); AddChunk(chunk_capacity_); } # 186 "ext/rapidjson/include/rapidjson/rapidjson.h" MemoryPoolAllocator(char *buffer, size_t size, size_t chunkSize = kDefaultChunkCapacity, BaseAllocator* baseAllocator = 0) : chunkHead_(0), chunk_capacity_(chunkSize), userBuffer_(buffer), baseAllocator_(baseAllocator), ownBaseAllocator_(0) { # 189 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 (( # 189 "ext/rapidjson/include/rapidjson/rapidjson.h" buffer != 0 # 189 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 189 "ext/rapidjson/include/rapidjson/rapidjson.h" "buffer != 0" # 189 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 , "ext/rapidjson/include/rapidjson/rapidjson.h", 189, __PRETTY_FUNCTION__)) # 189 "ext/rapidjson/include/rapidjson/rapidjson.h" ; # 190 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 (( # 190 "ext/rapidjson/include/rapidjson/rapidjson.h" size > sizeof(ChunkHeader) # 190 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 190 "ext/rapidjson/include/rapidjson/rapidjson.h" "size > sizeof(ChunkHeader)" # 190 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 , "ext/rapidjson/include/rapidjson/rapidjson.h", 190, __PRETTY_FUNCTION__)) # 190 "ext/rapidjson/include/rapidjson/rapidjson.h" ; chunkHead_ = (ChunkHeader*)buffer; chunkHead_->capacity = size - sizeof(ChunkHeader); chunkHead_->size = 0; chunkHead_->next = 0; } ~MemoryPoolAllocator() { Clear(); delete ownBaseAllocator_; } void Clear() { while(chunkHead_ != 0 && chunkHead_ != (ChunkHeader *)userBuffer_) { ChunkHeader* next = chunkHead_->next; baseAllocator_->Free(chunkHead_); chunkHead_ = next; } } size_t Capacity() { size_t capacity = 0; for (ChunkHeader* c = chunkHead_; c != 0; c = c->next) capacity += c->capacity; return capacity; } size_t Size() { size_t size = 0; for (ChunkHeader* c = chunkHead_; c != 0; c = c->next) size += c->size; return size; } void* Malloc(size_t size) { size = (size + 3) & ~3; if (chunkHead_->size + size > chunkHead_->capacity) AddChunk(chunk_capacity_ > size ? chunk_capacity_ : size); char *buffer = (char *)(chunkHead_ + 1) + chunkHead_->size; # 242 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 (( # 242 "ext/rapidjson/include/rapidjson/rapidjson.h" ((uintptr_t)buffer & 3) == 0 # 242 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 242 "ext/rapidjson/include/rapidjson/rapidjson.h" "((uintptr_t)buffer & 3) == 0" # 242 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 , "ext/rapidjson/include/rapidjson/rapidjson.h", 242, __PRETTY_FUNCTION__)) # 242 "ext/rapidjson/include/rapidjson/rapidjson.h" ; chunkHead_->size += size; return buffer; } void* Realloc(void* originalPtr, size_t originalSize, size_t newSize) { if (originalPtr == 0) return Malloc(newSize); if (originalSize >= newSize) return originalPtr; if (originalPtr == (char *)(chunkHead_ + 1) + chunkHead_->size - originalSize) { size_t increment = newSize - originalSize; increment = (increment + 3) & ~3; if (chunkHead_->size + increment <= chunkHead_->capacity) { chunkHead_->size += increment; # 263 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 (( # 263 "ext/rapidjson/include/rapidjson/rapidjson.h" ((uintptr_t)originalPtr & 3) == 0 # 263 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 263 "ext/rapidjson/include/rapidjson/rapidjson.h" "((uintptr_t)originalPtr & 3) == 0" # 263 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 , "ext/rapidjson/include/rapidjson/rapidjson.h", 263, __PRETTY_FUNCTION__)) # 263 "ext/rapidjson/include/rapidjson/rapidjson.h" ; return originalPtr; } } void* newBuffer = Malloc(newSize); # 270 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 (( # 270 "ext/rapidjson/include/rapidjson/rapidjson.h" newBuffer != 0 # 270 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 270 "ext/rapidjson/include/rapidjson/rapidjson.h" "newBuffer != 0" # 270 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 , "ext/rapidjson/include/rapidjson/rapidjson.h", 270, __PRETTY_FUNCTION__)) # 270 "ext/rapidjson/include/rapidjson/rapidjson.h" ; return memcpy(newBuffer, originalPtr, originalSize); } static void Free(void *) {} private: void AddChunk(size_t capacity) { ChunkHeader* chunk = (ChunkHeader*)baseAllocator_->Malloc(sizeof(ChunkHeader) + capacity); chunk->capacity = capacity; chunk->size = 0; chunk->next = chunkHead_; chunkHead_ = chunk; } static const int kDefaultChunkCapacity = 64 * 1024; struct ChunkHeader { size_t capacity; size_t size; ChunkHeader *next; }; ChunkHeader *chunkHead_; size_t chunk_capacity_; char *userBuffer_; BaseAllocator* baseAllocator_; BaseAllocator* ownBaseAllocator_; }; # 334 "ext/rapidjson/include/rapidjson/rapidjson.h" template struct UTF8 { typedef CharType Ch; static Ch* Encode(Ch *buffer, unsigned codepoint) { if (codepoint <= 0x7F) *buffer++ = codepoint & 0xFF; else if (codepoint <= 0x7FF) { *buffer++ = 0xC0 | ((codepoint >> 6) & 0xFF); *buffer++ = 0x80 | ((codepoint & 0x3F)); } else if (codepoint <= 0xFFFF) { *buffer++ = 0xE0 | ((codepoint >> 12) & 0xFF); *buffer++ = 0x80 | ((codepoint >> 6) & 0x3F); *buffer++ = 0x80 | (codepoint & 0x3F); } else { # 351 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 (( # 351 "ext/rapidjson/include/rapidjson/rapidjson.h" codepoint <= 0x10FFFF # 351 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 351 "ext/rapidjson/include/rapidjson/rapidjson.h" "codepoint <= 0x10FFFF" # 351 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 , "ext/rapidjson/include/rapidjson/rapidjson.h", 351, __PRETTY_FUNCTION__)) # 351 "ext/rapidjson/include/rapidjson/rapidjson.h" ; *buffer++ = 0xF0 | ((codepoint >> 18) & 0xFF); *buffer++ = 0x80 | ((codepoint >> 12) & 0x3F); *buffer++ = 0x80 | ((codepoint >> 6) & 0x3F); *buffer++ = 0x80 | (codepoint & 0x3F); } return buffer; } }; # 369 "ext/rapidjson/include/rapidjson/rapidjson.h" template struct UTF16 { typedef CharType Ch; static Ch* Encode(Ch* buffer, unsigned codepoint) { if (codepoint <= 0xFFFF) { # 375 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 (( # 375 "ext/rapidjson/include/rapidjson/rapidjson.h" codepoint < 0xD800 || codepoint > 0xDFFF # 375 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 375 "ext/rapidjson/include/rapidjson/rapidjson.h" "codepoint < 0xD800 || codepoint > 0xDFFF" # 375 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 , "ext/rapidjson/include/rapidjson/rapidjson.h", 375, __PRETTY_FUNCTION__)) # 375 "ext/rapidjson/include/rapidjson/rapidjson.h" ; *buffer++ = static_cast(codepoint); } else { # 379 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 (( # 379 "ext/rapidjson/include/rapidjson/rapidjson.h" codepoint <= 0x10FFFF # 379 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 379 "ext/rapidjson/include/rapidjson/rapidjson.h" "codepoint <= 0x10FFFF" # 379 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 , "ext/rapidjson/include/rapidjson/rapidjson.h", 379, __PRETTY_FUNCTION__)) # 379 "ext/rapidjson/include/rapidjson/rapidjson.h" ; unsigned v = codepoint - 0x10000; *buffer++ = static_cast((v >> 10) + 0xD800); *buffer++ = (v & 0x3FF) + 0xDC00; } return buffer; } }; # 396 "ext/rapidjson/include/rapidjson/rapidjson.h" template struct UTF32 { typedef CharType Ch; static Ch *Encode(Ch* buffer, unsigned codepoint) { # 401 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 (( # 401 "ext/rapidjson/include/rapidjson/rapidjson.h" codepoint <= 0x10FFFF # 401 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 401 "ext/rapidjson/include/rapidjson/rapidjson.h" "codepoint <= 0x10FFFF" # 401 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 , "ext/rapidjson/include/rapidjson/rapidjson.h", 401, __PRETTY_FUNCTION__)) # 401 "ext/rapidjson/include/rapidjson/rapidjson.h" ; *buffer++ = codepoint; return buffer; } }; # 447 "ext/rapidjson/include/rapidjson/rapidjson.h" template inline void PutN(Stream& stream, Ch c, size_t n) { for (size_t i = 0; i < n; i++) stream.Put(c); } template struct GenericStringStream { typedef typename Encoding::Ch Ch; GenericStringStream(const Ch *src) : src_(src), head_(src) {} Ch Peek() const { return *src_; } Ch Take() { return *src_++; } size_t Tell() const { return src_ - head_; } Ch* PutBegin() { # 469 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 (( # 469 "ext/rapidjson/include/rapidjson/rapidjson.h" false # 469 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 469 "ext/rapidjson/include/rapidjson/rapidjson.h" "false" # 469 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 , "ext/rapidjson/include/rapidjson/rapidjson.h", 469, __PRETTY_FUNCTION__)) # 469 "ext/rapidjson/include/rapidjson/rapidjson.h" ; return 0; } void Put(Ch) { # 470 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 (( # 470 "ext/rapidjson/include/rapidjson/rapidjson.h" false # 470 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 470 "ext/rapidjson/include/rapidjson/rapidjson.h" "false" # 470 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 , "ext/rapidjson/include/rapidjson/rapidjson.h", 470, __PRETTY_FUNCTION__)) # 470 "ext/rapidjson/include/rapidjson/rapidjson.h" ; } size_t PutEnd(Ch*) { # 471 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 (( # 471 "ext/rapidjson/include/rapidjson/rapidjson.h" false # 471 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 471 "ext/rapidjson/include/rapidjson/rapidjson.h" "false" # 471 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 , "ext/rapidjson/include/rapidjson/rapidjson.h", 471, __PRETTY_FUNCTION__)) # 471 "ext/rapidjson/include/rapidjson/rapidjson.h" ; return 0; } const Ch* src_; const Ch* head_; }; typedef GenericStringStream > StringStream; # 486 "ext/rapidjson/include/rapidjson/rapidjson.h" template struct GenericInsituStringStream { typedef typename Encoding::Ch Ch; GenericInsituStringStream(Ch *src) : src_(src), dst_(0), head_(src) {} Ch Peek() { return *src_; } Ch Take() { return *src_++; } size_t Tell() { return src_ - head_; } Ch* PutBegin() { return dst_ = src_; } void Put(Ch c) { # 499 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 (( # 499 "ext/rapidjson/include/rapidjson/rapidjson.h" dst_ != 0 # 499 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 499 "ext/rapidjson/include/rapidjson/rapidjson.h" "dst_ != 0" # 499 "ext/rapidjson/include/rapidjson/rapidjson.h" 3 4 , "ext/rapidjson/include/rapidjson/rapidjson.h", 499, __PRETTY_FUNCTION__)) # 499 "ext/rapidjson/include/rapidjson/rapidjson.h" ; *dst_++ = c; } size_t PutEnd(Ch* begin) { return dst_ - begin; } Ch* src_; Ch* dst_; Ch* head_; }; typedef GenericInsituStringStream > InsituStringStream; enum Type { kNullType = 0, kFalseType = 1, kTrueType = 2, kObjectType = 3, kArrayType = 4, kStringType = 5, kNumberType = 6, }; } # 8 "ext/rapidjson/include/rapidjson/reader.h" 2 # 1 "ext/rapidjson/include/rapidjson/internal/pow10.h" 1 namespace rapidjson { namespace internal { inline double Pow10(int n) { static const double e[] = { 1e-308,1e-307,1e-306,1e-305,1e-304,1e-303,1e-302,1e-301,1e-300, 1e-299,1e-298,1e-297,1e-296,1e-295,1e-294,1e-293,1e-292,1e-291,1e-290,1e-289,1e-288,1e-287,1e-286,1e-285,1e-284,1e-283,1e-282,1e-281,1e-280, 1e-279,1e-278,1e-277,1e-276,1e-275,1e-274,1e-273,1e-272,1e-271,1e-270,1e-269,1e-268,1e-267,1e-266,1e-265,1e-264,1e-263,1e-262,1e-261,1e-260, 1e-259,1e-258,1e-257,1e-256,1e-255,1e-254,1e-253,1e-252,1e-251,1e-250,1e-249,1e-248,1e-247,1e-246,1e-245,1e-244,1e-243,1e-242,1e-241,1e-240, 1e-239,1e-238,1e-237,1e-236,1e-235,1e-234,1e-233,1e-232,1e-231,1e-230,1e-229,1e-228,1e-227,1e-226,1e-225,1e-224,1e-223,1e-222,1e-221,1e-220, 1e-219,1e-218,1e-217,1e-216,1e-215,1e-214,1e-213,1e-212,1e-211,1e-210,1e-209,1e-208,1e-207,1e-206,1e-205,1e-204,1e-203,1e-202,1e-201,1e-200, 1e-199,1e-198,1e-197,1e-196,1e-195,1e-194,1e-193,1e-192,1e-191,1e-190,1e-189,1e-188,1e-187,1e-186,1e-185,1e-184,1e-183,1e-182,1e-181,1e-180, 1e-179,1e-178,1e-177,1e-176,1e-175,1e-174,1e-173,1e-172,1e-171,1e-170,1e-169,1e-168,1e-167,1e-166,1e-165,1e-164,1e-163,1e-162,1e-161,1e-160, 1e-159,1e-158,1e-157,1e-156,1e-155,1e-154,1e-153,1e-152,1e-151,1e-150,1e-149,1e-148,1e-147,1e-146,1e-145,1e-144,1e-143,1e-142,1e-141,1e-140, 1e-139,1e-138,1e-137,1e-136,1e-135,1e-134,1e-133,1e-132,1e-131,1e-130,1e-129,1e-128,1e-127,1e-126,1e-125,1e-124,1e-123,1e-122,1e-121,1e-120, 1e-119,1e-118,1e-117,1e-116,1e-115,1e-114,1e-113,1e-112,1e-111,1e-110,1e-109,1e-108,1e-107,1e-106,1e-105,1e-104,1e-103,1e-102,1e-101,1e-100, 1e-99, 1e-98, 1e-97, 1e-96, 1e-95, 1e-94, 1e-93, 1e-92, 1e-91, 1e-90, 1e-89, 1e-88, 1e-87, 1e-86, 1e-85, 1e-84, 1e-83, 1e-82, 1e-81, 1e-80, 1e-79, 1e-78, 1e-77, 1e-76, 1e-75, 1e-74, 1e-73, 1e-72, 1e-71, 1e-70, 1e-69, 1e-68, 1e-67, 1e-66, 1e-65, 1e-64, 1e-63, 1e-62, 1e-61, 1e-60, 1e-59, 1e-58, 1e-57, 1e-56, 1e-55, 1e-54, 1e-53, 1e-52, 1e-51, 1e-50, 1e-49, 1e-48, 1e-47, 1e-46, 1e-45, 1e-44, 1e-43, 1e-42, 1e-41, 1e-40, 1e-39, 1e-38, 1e-37, 1e-36, 1e-35, 1e-34, 1e-33, 1e-32, 1e-31, 1e-30, 1e-29, 1e-28, 1e-27, 1e-26, 1e-25, 1e-24, 1e-23, 1e-22, 1e-21, 1e-20, 1e-19, 1e-18, 1e-17, 1e-16, 1e-15, 1e-14, 1e-13, 1e-12, 1e-11, 1e-10, 1e-9, 1e-8, 1e-7, 1e-6, 1e-5, 1e-4, 1e-3, 1e-2, 1e-1, 1e+0, 1e+1, 1e+2, 1e+3, 1e+4, 1e+5, 1e+6, 1e+7, 1e+8, 1e+9, 1e+10, 1e+11, 1e+12, 1e+13, 1e+14, 1e+15, 1e+16, 1e+17, 1e+18, 1e+19, 1e+20, 1e+21, 1e+22, 1e+23, 1e+24, 1e+25, 1e+26, 1e+27, 1e+28, 1e+29, 1e+30, 1e+31, 1e+32, 1e+33, 1e+34, 1e+35, 1e+36, 1e+37, 1e+38, 1e+39, 1e+40, 1e+41, 1e+42, 1e+43, 1e+44, 1e+45, 1e+46, 1e+47, 1e+48, 1e+49, 1e+50, 1e+51, 1e+52, 1e+53, 1e+54, 1e+55, 1e+56, 1e+57, 1e+58, 1e+59, 1e+60, 1e+61, 1e+62, 1e+63, 1e+64, 1e+65, 1e+66, 1e+67, 1e+68, 1e+69, 1e+70, 1e+71, 1e+72, 1e+73, 1e+74, 1e+75, 1e+76, 1e+77, 1e+78, 1e+79, 1e+80, 1e+81, 1e+82, 1e+83, 1e+84, 1e+85, 1e+86, 1e+87, 1e+88, 1e+89, 1e+90, 1e+91, 1e+92, 1e+93, 1e+94, 1e+95, 1e+96, 1e+97, 1e+98, 1e+99, 1e+100, 1e+101,1e+102,1e+103,1e+104,1e+105,1e+106,1e+107,1e+108,1e+109,1e+110,1e+111,1e+112,1e+113,1e+114,1e+115,1e+116,1e+117,1e+118,1e+119,1e+120, 1e+121,1e+122,1e+123,1e+124,1e+125,1e+126,1e+127,1e+128,1e+129,1e+130,1e+131,1e+132,1e+133,1e+134,1e+135,1e+136,1e+137,1e+138,1e+139,1e+140, 1e+141,1e+142,1e+143,1e+144,1e+145,1e+146,1e+147,1e+148,1e+149,1e+150,1e+151,1e+152,1e+153,1e+154,1e+155,1e+156,1e+157,1e+158,1e+159,1e+160, 1e+161,1e+162,1e+163,1e+164,1e+165,1e+166,1e+167,1e+168,1e+169,1e+170,1e+171,1e+172,1e+173,1e+174,1e+175,1e+176,1e+177,1e+178,1e+179,1e+180, 1e+181,1e+182,1e+183,1e+184,1e+185,1e+186,1e+187,1e+188,1e+189,1e+190,1e+191,1e+192,1e+193,1e+194,1e+195,1e+196,1e+197,1e+198,1e+199,1e+200, 1e+201,1e+202,1e+203,1e+204,1e+205,1e+206,1e+207,1e+208,1e+209,1e+210,1e+211,1e+212,1e+213,1e+214,1e+215,1e+216,1e+217,1e+218,1e+219,1e+220, 1e+221,1e+222,1e+223,1e+224,1e+225,1e+226,1e+227,1e+228,1e+229,1e+230,1e+231,1e+232,1e+233,1e+234,1e+235,1e+236,1e+237,1e+238,1e+239,1e+240, 1e+241,1e+242,1e+243,1e+244,1e+245,1e+246,1e+247,1e+248,1e+249,1e+250,1e+251,1e+252,1e+253,1e+254,1e+255,1e+256,1e+257,1e+258,1e+259,1e+260, 1e+261,1e+262,1e+263,1e+264,1e+265,1e+266,1e+267,1e+268,1e+269,1e+270,1e+271,1e+272,1e+273,1e+274,1e+275,1e+276,1e+277,1e+278,1e+279,1e+280, 1e+281,1e+282,1e+283,1e+284,1e+285,1e+286,1e+287,1e+288,1e+289,1e+290,1e+291,1e+292,1e+293,1e+294,1e+295,1e+296,1e+297,1e+298,1e+299,1e+300, 1e+301,1e+302,1e+303,1e+304,1e+305,1e+306,1e+307,1e+308 }; # 47 "ext/rapidjson/include/rapidjson/internal/pow10.h" 3 4 (( # 47 "ext/rapidjson/include/rapidjson/internal/pow10.h" n <= 308 # 47 "ext/rapidjson/include/rapidjson/internal/pow10.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 47 "ext/rapidjson/include/rapidjson/internal/pow10.h" "n <= 308" # 47 "ext/rapidjson/include/rapidjson/internal/pow10.h" 3 4 , "ext/rapidjson/include/rapidjson/internal/pow10.h", 47, __PRETTY_FUNCTION__)) # 47 "ext/rapidjson/include/rapidjson/internal/pow10.h" ; return n < -308 ? 0.0 : e[n + 308]; } } } # 9 "ext/rapidjson/include/rapidjson/reader.h" 2 # 1 "ext/rapidjson/include/rapidjson/internal/stack.h" 1 namespace rapidjson { namespace internal { template class Stack { public: Stack(Allocator* allocator, size_t stack_capacity) : allocator_(allocator), own_allocator_(0), stack_(0), stack_top_(0), stack_end_(0), stack_capacity_(stack_capacity) { # 17 "ext/rapidjson/include/rapidjson/internal/stack.h" 3 4 (( # 17 "ext/rapidjson/include/rapidjson/internal/stack.h" stack_capacity_ > 0 # 17 "ext/rapidjson/include/rapidjson/internal/stack.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 17 "ext/rapidjson/include/rapidjson/internal/stack.h" "stack_capacity_ > 0" # 17 "ext/rapidjson/include/rapidjson/internal/stack.h" 3 4 , "ext/rapidjson/include/rapidjson/internal/stack.h", 17, __PRETTY_FUNCTION__)) # 17 "ext/rapidjson/include/rapidjson/internal/stack.h" ; if (!allocator_) own_allocator_ = allocator_ = new Allocator(); stack_top_ = stack_ = (char*)allocator_->Malloc(stack_capacity_); stack_end_ = stack_ + stack_capacity_; } ~Stack() { Allocator::Free(stack_); delete own_allocator_; } void Clear() { stack_top_ = stack_; } template T* Push(size_t count = 1) { if (stack_top_ + sizeof(T) * count >= stack_end_) { size_t new_capacity = stack_capacity_ * 2; size_t size = GetSize(); size_t new_size = GetSize() + sizeof(T) * count; if (new_capacity < new_size) new_capacity = new_size; stack_ = (char*)allocator_->Realloc(stack_, stack_capacity_, new_capacity); stack_capacity_ = new_capacity; stack_top_ = stack_ + size; stack_end_ = stack_ + stack_capacity_; } T* ret = (T*)stack_top_; stack_top_ += sizeof(T) * count; return ret; } template T* Pop(size_t count) { # 52 "ext/rapidjson/include/rapidjson/internal/stack.h" 3 4 (( # 52 "ext/rapidjson/include/rapidjson/internal/stack.h" GetSize() >= count * sizeof(T) # 52 "ext/rapidjson/include/rapidjson/internal/stack.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 52 "ext/rapidjson/include/rapidjson/internal/stack.h" "GetSize() >= count * sizeof(T)" # 52 "ext/rapidjson/include/rapidjson/internal/stack.h" 3 4 , "ext/rapidjson/include/rapidjson/internal/stack.h", 52, __PRETTY_FUNCTION__)) # 52 "ext/rapidjson/include/rapidjson/internal/stack.h" ; stack_top_ -= count * sizeof(T); return (T*)stack_top_; } template T* Top() { # 59 "ext/rapidjson/include/rapidjson/internal/stack.h" 3 4 (( # 59 "ext/rapidjson/include/rapidjson/internal/stack.h" GetSize() >= sizeof(T) # 59 "ext/rapidjson/include/rapidjson/internal/stack.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 59 "ext/rapidjson/include/rapidjson/internal/stack.h" "GetSize() >= sizeof(T)" # 59 "ext/rapidjson/include/rapidjson/internal/stack.h" 3 4 , "ext/rapidjson/include/rapidjson/internal/stack.h", 59, __PRETTY_FUNCTION__)) # 59 "ext/rapidjson/include/rapidjson/internal/stack.h" ; return (T*)(stack_top_ - sizeof(T)); } template T* Bottom() { return (T*)stack_; } Allocator& GetAllocator() { return *allocator_; } size_t GetSize() const { return stack_top_ - stack_; } size_t GetCapacity() const { return stack_capacity_; } private: Allocator* allocator_; Allocator* own_allocator_; char *stack_; char *stack_top_; char *stack_end_; size_t stack_capacity_; }; } } # 10 "ext/rapidjson/include/rapidjson/reader.h" 2 # 1 "/usr/include/c++/5.0.0/csetjmp" 1 3 # 39 "/usr/include/c++/5.0.0/csetjmp" 3 # 40 "/usr/include/c++/5.0.0/csetjmp" 3 # 1 "/usr/include/setjmp.h" 1 3 4 # 27 "/usr/include/setjmp.h" 3 4 # 27 "/usr/include/setjmp.h" 3 4 extern "C" { # 1 "/usr/include/bits/sigset.h" 1 3 4 # 31 "/usr/include/setjmp.h" 2 3 4 struct __jmp_buf_tag { __jmp_buf __jmpbuf; int __mask_was_saved; __sigset_t __saved_mask; }; typedef struct __jmp_buf_tag jmp_buf[1]; extern int setjmp (jmp_buf __env) throw (); extern int __sigsetjmp (struct __jmp_buf_tag __env[1], int __savemask) throw (); extern int _setjmp (struct __jmp_buf_tag __env[1]) throw (); extern void longjmp (struct __jmp_buf_tag __env[1], int __val) throw () __attribute__ ((__noreturn__)); extern void _longjmp (struct __jmp_buf_tag __env[1], int __val) throw () __attribute__ ((__noreturn__)); typedef struct __jmp_buf_tag sigjmp_buf[1]; # 102 "/usr/include/setjmp.h" 3 4 extern void siglongjmp (sigjmp_buf __env, int __val) throw () __attribute__ ((__noreturn__)); # 1 "/usr/include/bits/setjmp2.h" 1 3 4 # 25 "/usr/include/bits/setjmp2.h" 3 4 extern void longjmp (struct __jmp_buf_tag __env[1], int __val) throw () __asm__ ("" "__longjmp_chk") __attribute__ ((__noreturn__)); extern void _longjmp (struct __jmp_buf_tag __env[1], int __val) throw () __asm__ ("" "__longjmp_chk") __attribute__ ((__noreturn__)); extern void siglongjmp (struct __jmp_buf_tag __env[1], int __val) throw () __asm__ ("" "__longjmp_chk") __attribute__ ((__noreturn__)); # 110 "/usr/include/setjmp.h" 2 3 4 } # 43 "/usr/include/c++/5.0.0/csetjmp" 2 3 # 55 "/usr/include/c++/5.0.0/csetjmp" 3 namespace std { using ::jmp_buf; using ::longjmp; } # 11 "ext/rapidjson/include/rapidjson/reader.h" 2 # 32 "ext/rapidjson/include/rapidjson/reader.h" # 32 "ext/rapidjson/include/rapidjson/reader.h" namespace rapidjson { enum ParseFlag { kParseDefaultFlags = 0, kParseInsituFlag = 1 }; # 74 "ext/rapidjson/include/rapidjson/reader.h" template > struct BaseReaderHandler { typedef typename Encoding::Ch Ch; void Default() {} void Null() { Default(); } void Bool(bool) { Default(); } void Int(int) { Default(); } void Uint(unsigned) { Default(); } void Int64(int64_t) { Default(); } void Uint64(uint64_t) { Default(); } void Double(double) { Default(); } void String(const Ch*, SizeType, bool) { Default(); } void StartObject() { Default(); } void EndObject(SizeType) { Default(); } void StartArray() { Default(); } void EndArray(SizeType) { Default(); } }; # 100 "ext/rapidjson/include/rapidjson/reader.h" template void SkipWhitespace(Stream& stream) { Stream s = stream; while (s.Peek() == ' ' || s.Peek() == '\n' || s.Peek() == '\r' || s.Peek() == '\t') s.Take(); stream = s; } # 201 "ext/rapidjson/include/rapidjson/reader.h" template > class GenericReader { public: typedef typename Encoding::Ch Ch; GenericReader(Allocator* allocator = 0, size_t stackCapacity = kDefaultStackCapacity) : stack_(allocator, stackCapacity), parseError_(0), errorOffset_(0) {} # 220 "ext/rapidjson/include/rapidjson/reader.h" template bool Parse(Stream& stream, Handler& handler) { parseError_ = 0; errorOffset_ = 0; if ( # 229 "ext/rapidjson/include/rapidjson/reader.h" 3 4 _setjmp ( # 229 "ext/rapidjson/include/rapidjson/reader.h" jmpbuf_ # 229 "ext/rapidjson/include/rapidjson/reader.h" 3 4 ) # 229 "ext/rapidjson/include/rapidjson/reader.h" ) { stack_.Clear(); return false; } SkipWhitespace(stream); if (stream.Peek() == '\0') do { parseError_ = "Text only contains white space(s)"; errorOffset_ = stream.Tell(); longjmp(jmpbuf_, 1); } while((void)0, 0); else { switch (stream.Peek()) { case '{': ParseObject(stream, handler); break; case '[': ParseArray(stream, handler); break; default: do { parseError_ = "Expect either an object or array at root"; errorOffset_ = stream.Tell(); longjmp(jmpbuf_, 1); } while((void)0, 0); } SkipWhitespace(stream); if (stream.Peek() != '\0') do { parseError_ = "Nothing should follow the root object or array."; errorOffset_ = stream.Tell(); longjmp(jmpbuf_, 1); } while((void)0, 0); } return true; } bool HasParseError() const { return parseError_ != 0; } const char* GetParseError() const { return parseError_; } size_t GetErrorOffset() const { return errorOffset_; } private: template void ParseObject(Stream& stream, Handler& handler) { # 264 "ext/rapidjson/include/rapidjson/reader.h" 3 4 (( # 264 "ext/rapidjson/include/rapidjson/reader.h" stream.Peek() == '{' # 264 "ext/rapidjson/include/rapidjson/reader.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 264 "ext/rapidjson/include/rapidjson/reader.h" "stream.Peek() == '{'" # 264 "ext/rapidjson/include/rapidjson/reader.h" 3 4 , "ext/rapidjson/include/rapidjson/reader.h", 264, __PRETTY_FUNCTION__)) # 264 "ext/rapidjson/include/rapidjson/reader.h" ; stream.Take(); handler.StartObject(); SkipWhitespace(stream); if (stream.Peek() == '}') { stream.Take(); handler.EndObject(0); return; } for (SizeType memberCount = 0;;) { if (stream.Peek() != '"') { do { parseError_ = "Name of an object member must be a string"; errorOffset_ = stream.Tell(); longjmp(jmpbuf_, 1); } while((void)0, 0); break; } ParseString(stream, handler); SkipWhitespace(stream); if (stream.Take() != ':') { do { parseError_ = "There must be a colon after the name of object member"; errorOffset_ = stream.Tell(); longjmp(jmpbuf_, 1); } while((void)0, 0); break; } SkipWhitespace(stream); ParseValue(stream, handler); SkipWhitespace(stream); ++memberCount; switch(stream.Take()) { case ',': SkipWhitespace(stream); break; case '}': handler.EndObject(memberCount); return; default: do { parseError_ = "Must be a comma or '}' after an object member"; errorOffset_ = stream.Tell(); longjmp(jmpbuf_, 1); } while((void)0, 0); } } } template void ParseArray(Stream& stream, Handler& handler) { # 306 "ext/rapidjson/include/rapidjson/reader.h" 3 4 (( # 306 "ext/rapidjson/include/rapidjson/reader.h" stream.Peek() == '[' # 306 "ext/rapidjson/include/rapidjson/reader.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 306 "ext/rapidjson/include/rapidjson/reader.h" "stream.Peek() == '['" # 306 "ext/rapidjson/include/rapidjson/reader.h" 3 4 , "ext/rapidjson/include/rapidjson/reader.h", 306, __PRETTY_FUNCTION__)) # 306 "ext/rapidjson/include/rapidjson/reader.h" ; stream.Take(); handler.StartArray(); SkipWhitespace(stream); if (stream.Peek() == ']') { stream.Take(); handler.EndArray(0); return; } for (SizeType elementCount = 0;;) { ParseValue(stream, handler); ++elementCount; SkipWhitespace(stream); switch (stream.Take()) { case ',': SkipWhitespace(stream); break; case ']': handler.EndArray(elementCount); return; default: do { parseError_ = "Must be a comma or ']' after an array element."; errorOffset_ = stream.Tell(); longjmp(jmpbuf_, 1); } while((void)0, 0); } } } template void ParseNull(Stream& stream, Handler& handler) { # 332 "ext/rapidjson/include/rapidjson/reader.h" 3 4 (( # 332 "ext/rapidjson/include/rapidjson/reader.h" stream.Peek() == 'n' # 332 "ext/rapidjson/include/rapidjson/reader.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 332 "ext/rapidjson/include/rapidjson/reader.h" "stream.Peek() == 'n'" # 332 "ext/rapidjson/include/rapidjson/reader.h" 3 4 , "ext/rapidjson/include/rapidjson/reader.h", 332, __PRETTY_FUNCTION__)) # 332 "ext/rapidjson/include/rapidjson/reader.h" ; stream.Take(); if (stream.Take() == 'u' && stream.Take() == 'l' && stream.Take() == 'l') handler.Null(); else do { parseError_ = "Invalid value"; errorOffset_ = stream.Tell() - 1; longjmp(jmpbuf_, 1); } while((void)0, 0); } template void ParseTrue(Stream& stream, Handler& handler) { # 343 "ext/rapidjson/include/rapidjson/reader.h" 3 4 (( # 343 "ext/rapidjson/include/rapidjson/reader.h" stream.Peek() == 't' # 343 "ext/rapidjson/include/rapidjson/reader.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 343 "ext/rapidjson/include/rapidjson/reader.h" "stream.Peek() == 't'" # 343 "ext/rapidjson/include/rapidjson/reader.h" 3 4 , "ext/rapidjson/include/rapidjson/reader.h", 343, __PRETTY_FUNCTION__)) # 343 "ext/rapidjson/include/rapidjson/reader.h" ; stream.Take(); if (stream.Take() == 'r' && stream.Take() == 'u' && stream.Take() == 'e') handler.Bool(true); else do { parseError_ = "Invalid value"; errorOffset_ = stream.Tell(); longjmp(jmpbuf_, 1); } while((void)0, 0); } template void ParseFalse(Stream& stream, Handler& handler) { # 354 "ext/rapidjson/include/rapidjson/reader.h" 3 4 (( # 354 "ext/rapidjson/include/rapidjson/reader.h" stream.Peek() == 'f' # 354 "ext/rapidjson/include/rapidjson/reader.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 354 "ext/rapidjson/include/rapidjson/reader.h" "stream.Peek() == 'f'" # 354 "ext/rapidjson/include/rapidjson/reader.h" 3 4 , "ext/rapidjson/include/rapidjson/reader.h", 354, __PRETTY_FUNCTION__)) # 354 "ext/rapidjson/include/rapidjson/reader.h" ; stream.Take(); if (stream.Take() == 'a' && stream.Take() == 'l' && stream.Take() == 's' && stream.Take() == 'e') handler.Bool(false); else do { parseError_ = "Invalid value"; errorOffset_ = stream.Tell() - 1; longjmp(jmpbuf_, 1); } while((void)0, 0); } template unsigned ParseHex4(Stream& stream) { Stream s = stream; unsigned codepoint = 0; for (int i = 0; i < 4; i++) { Ch c = s.Take(); codepoint <<= 4; codepoint += c; if (c >= '0' && c <= '9') codepoint -= '0'; else if (c >= 'A' && c <= 'F') codepoint -= 'A' - 10; else if (c >= 'a' && c <= 'f') codepoint -= 'a' - 10; else do { parseError_ = "Incorrect hex digit after \\u escape"; errorOffset_ = s.Tell() - 1; longjmp(jmpbuf_, 1); } while((void)0, 0); } stream = s; return codepoint; } template void ParseString(Stream& stream, Handler& handler) { static const Ch escape[256] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0, 0,'\"', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,'/', 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,'\\', 0, 0, 0, 0, 0,'\b', 0, 0, 0,'\f', 0, 0, 0, 0, 0, 0, 0,'\n', 0, 0, 0,'\r', 0,'\t', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }; Stream s = stream; # 399 "ext/rapidjson/include/rapidjson/reader.h" 3 4 (( # 399 "ext/rapidjson/include/rapidjson/reader.h" s.Peek() == '\"' # 399 "ext/rapidjson/include/rapidjson/reader.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 399 "ext/rapidjson/include/rapidjson/reader.h" "s.Peek() == '\\\"'" # 399 "ext/rapidjson/include/rapidjson/reader.h" 3 4 , "ext/rapidjson/include/rapidjson/reader.h", 399, __PRETTY_FUNCTION__)) # 399 "ext/rapidjson/include/rapidjson/reader.h" ; s.Take(); Ch *head; SizeType len; if (parseFlags & kParseInsituFlag) head = s.PutBegin(); else len = 0; # 418 "ext/rapidjson/include/rapidjson/reader.h" for (;;) { Ch c = s.Take(); if (c == '\\') { Ch e = s.Take(); if ((sizeof(Ch) == 1 || e < 256) && escape[(unsigned char)e]) do { if (parseFlags & kParseInsituFlag) s.Put(escape[(unsigned char)e]); else { *stack_.template Push() = escape[(unsigned char)e]; ++len; } } while(false); else if (e == 'u') { unsigned codepoint = ParseHex4(s); if (codepoint >= 0xD800 && codepoint <= 0xDBFF) { if (s.Take() != '\\' || s.Take() != 'u') { do { parseError_ = "Missing the second \\u in surrogate pair"; errorOffset_ = s.Tell() - 2; longjmp(jmpbuf_, 1); } while((void)0, 0); return; } unsigned codepoint2 = ParseHex4(s); if (codepoint2 < 0xDC00 || codepoint2 > 0xDFFF) { do { parseError_ = "The second \\u in surrogate pair is invalid"; errorOffset_ = s.Tell() - 2; longjmp(jmpbuf_, 1); } while((void)0, 0); return; } codepoint = (((codepoint - 0xD800) << 10) | (codepoint2 - 0xDC00)) + 0x10000; } Ch buffer[4]; SizeType count = SizeType(Encoding::Encode(buffer, codepoint) - &buffer[0]); if (parseFlags & kParseInsituFlag) for (SizeType i = 0; i < count; i++) s.Put(buffer[i]); else { memcpy(stack_.template Push(count), buffer, count * sizeof(Ch)); len += count; } } else { do { parseError_ = "Unknown escape character"; errorOffset_ = stream.Tell() - 1; longjmp(jmpbuf_, 1); } while((void)0, 0); return; } } else if (c == '"') { if (parseFlags & kParseInsituFlag) { size_t length = s.PutEnd(head); # 458 "ext/rapidjson/include/rapidjson/reader.h" 3 4 (( # 458 "ext/rapidjson/include/rapidjson/reader.h" length <= 0xFFFFFFFF # 458 "ext/rapidjson/include/rapidjson/reader.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 458 "ext/rapidjson/include/rapidjson/reader.h" "length <= 0xFFFFFFFF" # 458 "ext/rapidjson/include/rapidjson/reader.h" 3 4 , "ext/rapidjson/include/rapidjson/reader.h", 458, __PRETTY_FUNCTION__)) # 458 "ext/rapidjson/include/rapidjson/reader.h" ; do { if (parseFlags & kParseInsituFlag) s.Put('\0'); else { *stack_.template Push() = '\0'; ++len; } } while(false); handler.String(head, SizeType(length), false); } else { do { if (parseFlags & kParseInsituFlag) s.Put('\0'); else { *stack_.template Push() = '\0'; ++len; } } while(false); handler.String(stack_.template Pop(len), len - 1, true); } stream = s; return; } else if (c == '\0') { do { parseError_ = "lacks ending quotation before the end of string"; errorOffset_ = stream.Tell() - 1; longjmp(jmpbuf_, 1); } while((void)0, 0); return; } else if ((unsigned)c < 0x20) { do { parseError_ = "Incorrect unescaped character in string"; errorOffset_ = stream.Tell() - 1; longjmp(jmpbuf_, 1); } while((void)0, 0); return; } else do { if (parseFlags & kParseInsituFlag) s.Put(c); else { *stack_.template Push() = c; ++len; } } while(false); } } template void ParseNumber(Stream& stream, Handler& handler) { Stream s = stream; bool minus = false; if (s.Peek() == '-') { minus = true; s.Take(); } unsigned i; bool try64bit = false; if (s.Peek() == '0') { i = 0; s.Take(); } else if (s.Peek() >= '1' && s.Peek() <= '9') { i = s.Take() - '0'; if (minus) while (s.Peek() >= '0' && s.Peek() <= '9') { if (i >= 214748364) { if (i != 214748364 || s.Peek() > '8') { try64bit = true; break; } } i = i * 10 + (s.Take() - '0'); } else while (s.Peek() >= '0' && s.Peek() <= '9') { if (i >= 429496729) { if (i != 429496729 || s.Peek() > '5') { try64bit = true; break; } } i = i * 10 + (s.Take() - '0'); } } else { do { parseError_ = "Expect a value here."; errorOffset_ = stream.Tell(); longjmp(jmpbuf_, 1); } while((void)0, 0); return; } uint64_t i64 = 0; bool useDouble = false; if (try64bit) { i64 = i; if (minus) while (s.Peek() >= '0' && s.Peek() <= '9') { if (i64 >= 922337203685477580uLL) if (i64 != 922337203685477580uLL || s.Peek() > '8') { useDouble = true; break; } i64 = i64 * 10 + (s.Take() - '0'); } else while (s.Peek() >= '0' && s.Peek() <= '9') { if (i64 >= 1844674407370955161uLL) if (i64 != 1844674407370955161uLL || s.Peek() > '5') { useDouble = true; break; } i64 = i64 * 10 + (s.Take() - '0'); } } double d = 0.0; if (useDouble) { d = (double)i64; while (s.Peek() >= '0' && s.Peek() <= '9') { if (d >= 1E307) { do { parseError_ = "Number too big to store in double"; errorOffset_ = stream.Tell(); longjmp(jmpbuf_, 1); } while((void)0, 0); return; } d = d * 10 + (s.Take() - '0'); } } int expFrac = 0; if (s.Peek() == '.') { if (!useDouble) { d = try64bit ? (double)i64 : (double)i; useDouble = true; } s.Take(); if (s.Peek() >= '0' && s.Peek() <= '9') { d = d * 10 + (s.Take() - '0'); --expFrac; } else { do { parseError_ = "At least one digit in fraction part"; errorOffset_ = stream.Tell(); longjmp(jmpbuf_, 1); } while((void)0, 0); return; } while (s.Peek() >= '0' && s.Peek() <= '9') { if (expFrac > -16) { d = d * 10 + (s.Peek() - '0'); --expFrac; } s.Take(); } } int exp = 0; if (s.Peek() == 'e' || s.Peek() == 'E') { if (!useDouble) { d = try64bit ? (double)i64 : (double)i; useDouble = true; } s.Take(); bool expMinus = false; if (s.Peek() == '+') s.Take(); else if (s.Peek() == '-') { s.Take(); expMinus = true; } if (s.Peek() >= '0' && s.Peek() <= '9') { exp = s.Take() - '0'; while (s.Peek() >= '0' && s.Peek() <= '9') { exp = exp * 10 + (s.Take() - '0'); if (exp > 308) { do { parseError_ = "Number too big to store in double"; errorOffset_ = stream.Tell(); longjmp(jmpbuf_, 1); } while((void)0, 0); return; } } } else { do { parseError_ = "At least one digit in exponent"; errorOffset_ = s.Tell(); longjmp(jmpbuf_, 1); } while((void)0, 0); return; } if (expMinus) exp = -exp; } if (useDouble) { d *= internal::Pow10(exp + expFrac); handler.Double(minus ? -d : d); } else { if (try64bit) { if (minus) handler.Int64(-(int64_t)i64); else handler.Uint64(i64); } else { if (minus) handler.Int(-(int)i); else handler.Uint(i); } } stream = s; } template void ParseValue(Stream& stream, Handler& handler) { switch (stream.Peek()) { case 'n': ParseNull (stream, handler); break; case 't': ParseTrue (stream, handler); break; case 'f': ParseFalse (stream, handler); break; case '"': ParseString(stream, handler); break; case '{': ParseObject(stream, handler); break; case '[': ParseArray (stream, handler); break; default : ParseNumber(stream, handler); } } static const size_t kDefaultStackCapacity = 256; internal::Stack stack_; jmp_buf jmpbuf_; const char* parseError_; size_t errorOffset_; }; typedef GenericReader > Reader; } # 5 "ext/rapidjson/include/rapidjson/document.h" 2 # 1 "ext/rapidjson/include/rapidjson/internal/strfunc.h" 1 namespace rapidjson { namespace internal { template inline SizeType StrLen(const Ch* s) { const Ch* p = s; while (*p != '\0') ++p; return SizeType(p - s); } } } # 6 "ext/rapidjson/include/rapidjson/document.h" 2 namespace rapidjson { # 28 "ext/rapidjson/include/rapidjson/document.h" #pragma pack (push, 4) template > class GenericValue { public: struct Member { GenericValue name; GenericValue value; }; typedef Encoding EncodingType; typedef Allocator AllocatorType; typedef typename Encoding::Ch Ch; typedef Member* MemberIterator; typedef const Member* ConstMemberIterator; typedef GenericValue* ValueIterator; typedef const GenericValue* ConstValueIterator; GenericValue() : flags_(kNullFlag) {} private: GenericValue(const GenericValue& rhs); public: GenericValue(Type type) { static const unsigned defaultFlags[7] = { kNullFlag, kFalseFlag, kTrueFlag, kObjectFlag, kArrayFlag, kConstStringFlag, kNumberFlag | kIntFlag | kUintFlag | kInt64Flag | kUint64Flag | kDoubleFlag }; # 68 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 68 "ext/rapidjson/include/rapidjson/document.h" type <= kNumberType # 68 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 68 "ext/rapidjson/include/rapidjson/document.h" "type <= kNumberType" # 68 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 68, __PRETTY_FUNCTION__)) # 68 "ext/rapidjson/include/rapidjson/document.h" ; flags_ = defaultFlags[type]; memset(&data_, 0, sizeof(data_)); } GenericValue(bool b) : flags_(b ? kTrueFlag : kFalseFlag) {} GenericValue(int i) : flags_(kNumberIntFlag) { data_.n.i64 = i; if (i >= 0) flags_ |= kUintFlag | kUint64Flag; } GenericValue(unsigned u) : flags_(kNumberUintFlag) { data_.n.u64 = u; if (!(u & 0x80000000)) flags_ |= kIntFlag | kInt64Flag; } GenericValue(int64_t i64) : flags_(kNumberInt64Flag) { data_.n.i64 = i64; if (i64 >= 0) { flags_ |= kNumberUint64Flag; if (!(i64 & 0xFFFFFFFF00000000LL)) flags_ |= kUintFlag; if (!(i64 & 0xFFFFFFFF80000000LL)) flags_ |= kIntFlag; } else if (i64 >= -2147483648LL) flags_ |= kIntFlag; } GenericValue(uint64_t u64) : flags_(kNumberUint64Flag) { data_.n.u64 = u64; if (!(u64 & 0x8000000000000000ULL)) flags_ |= kInt64Flag; if (!(u64 & 0xFFFFFFFF00000000ULL)) flags_ |= kUintFlag; if (!(u64 & 0xFFFFFFFF80000000ULL)) flags_ |= kIntFlag; } GenericValue(double d) : flags_(kNumberDoubleFlag) { data_.n.d = d; } GenericValue(const Ch* s, SizeType length) { # 120 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 120 "ext/rapidjson/include/rapidjson/document.h" s != # 120 "ext/rapidjson/include/rapidjson/document.h" 3 4 __null) ? static_cast (0) : __assert_fail ( # 120 "ext/rapidjson/include/rapidjson/document.h" "s != __null" # 120 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 120, __PRETTY_FUNCTION__)) # 120 "ext/rapidjson/include/rapidjson/document.h" ; flags_ = kConstStringFlag; data_.s.str = s; data_.s.length = length; } GenericValue(const Ch* s) { SetStringRaw(s, internal::StrLen(s)); } GenericValue(const Ch* s, SizeType length, Allocator& allocator) { SetStringRaw(s, length, allocator); } GenericValue(const Ch*s, Allocator& allocator) { SetStringRaw(s, internal::StrLen(s), allocator); } ~GenericValue() { if (Allocator::kNeedFree) { switch(flags_) { case kArrayFlag: for (GenericValue* v = data_.a.elements; v != data_.a.elements + data_.a.size; ++v) v->~GenericValue(); Allocator::Free(data_.a.elements); break; case kObjectFlag: for (Member* m = data_.o.members; m != data_.o.members + data_.o.size; ++m) { m->name.~GenericValue(); m->value.~GenericValue(); } Allocator::Free(data_.o.members); break; case kCopyStringFlag: Allocator::Free(const_cast(data_.s.str)); break; } } } # 170 "ext/rapidjson/include/rapidjson/document.h" GenericValue& operator=(GenericValue& rhs) { # 171 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 171 "ext/rapidjson/include/rapidjson/document.h" this != &rhs # 171 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 171 "ext/rapidjson/include/rapidjson/document.h" "this != &rhs" # 171 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 171, __PRETTY_FUNCTION__)) # 171 "ext/rapidjson/include/rapidjson/document.h" ; this->~GenericValue(); memcpy(this, &rhs, sizeof(GenericValue)); rhs.flags_ = kNullFlag; return *this; } template GenericValue& operator=(T value) { this->~GenericValue(); new (this) GenericValue(value); return *this; } Type GetType() const { return static_cast(flags_ & kTypeMask); } bool IsNull() const { return flags_ == kNullFlag; } bool IsFalse() const { return flags_ == kFalseFlag; } bool IsTrue() const { return flags_ == kTrueFlag; } bool IsBool() const { return (flags_ & kBoolFlag) != 0; } bool IsObject() const { return flags_ == kObjectFlag; } bool IsArray() const { return flags_ == kArrayFlag; } bool IsNumber() const { return (flags_ & kNumberFlag) != 0; } bool IsInt() const { return (flags_ & kIntFlag) != 0; } bool IsUint() const { return (flags_ & kUintFlag) != 0; } bool IsInt64() const { return (flags_ & kInt64Flag) != 0; } bool IsUint64() const { return (flags_ & kUint64Flag) != 0; } bool IsDouble() const { return (flags_ & kDoubleFlag) != 0; } bool IsString() const { return (flags_ & kStringFlag) != 0; } GenericValue& SetNull() { this->~GenericValue(); new (this) GenericValue(); return *this; } bool GetBool() const { # 220 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 220 "ext/rapidjson/include/rapidjson/document.h" IsBool() # 220 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 220 "ext/rapidjson/include/rapidjson/document.h" "IsBool()" # 220 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 220, __PRETTY_FUNCTION__)) # 220 "ext/rapidjson/include/rapidjson/document.h" ; return flags_ == kTrueFlag; } GenericValue& SetBool(bool b) { this->~GenericValue(); new (this) GenericValue(b); return *this; } GenericValue& SetObject() { this->~GenericValue(); new (this) GenericValue(kObjectType); return *this; } GenericValue& operator[](const Ch* name) { if (Member* member = FindMember(name)) return member->value; else { static GenericValue NullValue; return NullValue; } } const GenericValue& operator[](const Ch* name) const { return const_cast(*this)[name]; } ConstMemberIterator MemberBegin() const { # 243 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 243 "ext/rapidjson/include/rapidjson/document.h" IsObject() # 243 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 243 "ext/rapidjson/include/rapidjson/document.h" "IsObject()" # 243 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 243, __PRETTY_FUNCTION__)) # 243 "ext/rapidjson/include/rapidjson/document.h" ; return data_.o.members; } ConstMemberIterator MemberEnd() const { # 244 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 244 "ext/rapidjson/include/rapidjson/document.h" IsObject() # 244 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 244 "ext/rapidjson/include/rapidjson/document.h" "IsObject()" # 244 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 244, __PRETTY_FUNCTION__)) # 244 "ext/rapidjson/include/rapidjson/document.h" ; return data_.o.members + data_.o.size; } MemberIterator MemberBegin() { # 245 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 245 "ext/rapidjson/include/rapidjson/document.h" IsObject() # 245 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 245 "ext/rapidjson/include/rapidjson/document.h" "IsObject()" # 245 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 245, __PRETTY_FUNCTION__)) # 245 "ext/rapidjson/include/rapidjson/document.h" ; return data_.o.members; } MemberIterator MemberEnd() { # 246 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 246 "ext/rapidjson/include/rapidjson/document.h" IsObject() # 246 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 246 "ext/rapidjson/include/rapidjson/document.h" "IsObject()" # 246 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 246, __PRETTY_FUNCTION__)) # 246 "ext/rapidjson/include/rapidjson/document.h" ; return data_.o.members + data_.o.size; } bool HasMember(const Ch* name) const { return FindMember(name) != 0; } # 258 "ext/rapidjson/include/rapidjson/document.h" GenericValue& AddMember(GenericValue& name, GenericValue& value, Allocator& allocator) { # 259 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 259 "ext/rapidjson/include/rapidjson/document.h" IsObject() # 259 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 259 "ext/rapidjson/include/rapidjson/document.h" "IsObject()" # 259 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 259, __PRETTY_FUNCTION__)) # 259 "ext/rapidjson/include/rapidjson/document.h" ; # 260 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 260 "ext/rapidjson/include/rapidjson/document.h" name.IsString() # 260 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 260 "ext/rapidjson/include/rapidjson/document.h" "name.IsString()" # 260 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 260, __PRETTY_FUNCTION__)) # 260 "ext/rapidjson/include/rapidjson/document.h" ; Object& o = data_.o; if (o.size >= o.capacity) { if (o.capacity == 0) { o.capacity = kDefaultObjectCapacity; o.members = (Member*)allocator.Malloc(o.capacity * sizeof(Member)); } else { SizeType oldCapacity = o.capacity; o.capacity *= 2; o.members = (Member*)allocator.Realloc(o.members, oldCapacity * sizeof(Member), o.capacity * sizeof(Member)); } } o.members[o.size].name.RawAssign(name); o.members[o.size].value.RawAssign(value); o.size++; return *this; } GenericValue& AddMember(const Ch* name, Allocator& nameAllocator, GenericValue& value, Allocator& allocator) { GenericValue n(name, internal::StrLen(name), nameAllocator); return AddMember(n, value, allocator); } GenericValue& AddMember(const Ch* name, GenericValue& value, Allocator& allocator) { GenericValue n(name, internal::StrLen(name)); return AddMember(n, value, allocator); } template GenericValue& AddMember(const Ch* name, T value, Allocator& allocator) { GenericValue n(name, internal::StrLen(name)); GenericValue v(value); return AddMember(n, v, allocator); } bool RemoveMember(const Ch* name) { # 302 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 302 "ext/rapidjson/include/rapidjson/document.h" IsObject() # 302 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 302 "ext/rapidjson/include/rapidjson/document.h" "IsObject()" # 302 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 302, __PRETTY_FUNCTION__)) # 302 "ext/rapidjson/include/rapidjson/document.h" ; if (Member* m = FindMember(name)) { # 304 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 304 "ext/rapidjson/include/rapidjson/document.h" data_.o.size > 0 # 304 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 304 "ext/rapidjson/include/rapidjson/document.h" "data_.o.size > 0" # 304 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 304, __PRETTY_FUNCTION__)) # 304 "ext/rapidjson/include/rapidjson/document.h" ; # 305 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 305 "ext/rapidjson/include/rapidjson/document.h" data_.o.members != 0 # 305 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 305 "ext/rapidjson/include/rapidjson/document.h" "data_.o.members != 0" # 305 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 305, __PRETTY_FUNCTION__)) # 305 "ext/rapidjson/include/rapidjson/document.h" ; Member* last = data_.o.members + (data_.o.size - 1); if (data_.o.size > 1 && m != last) { m->name = last->name; m->value = last->value; } else { m->name.~GenericValue(); m->value.~GenericValue(); } --data_.o.size; return true; } return false; } GenericValue& SetArray() { this->~GenericValue(); new (this) GenericValue(kArrayType); return *this; } SizeType Size() const { # 333 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 333 "ext/rapidjson/include/rapidjson/document.h" IsArray() # 333 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 333 "ext/rapidjson/include/rapidjson/document.h" "IsArray()" # 333 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 333, __PRETTY_FUNCTION__)) # 333 "ext/rapidjson/include/rapidjson/document.h" ; return data_.a.size; } SizeType Capacity() const { # 336 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 336 "ext/rapidjson/include/rapidjson/document.h" IsArray() # 336 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 336 "ext/rapidjson/include/rapidjson/document.h" "IsArray()" # 336 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 336, __PRETTY_FUNCTION__)) # 336 "ext/rapidjson/include/rapidjson/document.h" ; return data_.a.capacity; } bool Empty() const { # 339 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 339 "ext/rapidjson/include/rapidjson/document.h" IsArray() # 339 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 339 "ext/rapidjson/include/rapidjson/document.h" "IsArray()" # 339 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 339, __PRETTY_FUNCTION__)) # 339 "ext/rapidjson/include/rapidjson/document.h" ; return data_.a.size == 0; } void Clear() { # 345 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 345 "ext/rapidjson/include/rapidjson/document.h" IsArray() # 345 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 345 "ext/rapidjson/include/rapidjson/document.h" "IsArray()" # 345 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 345, __PRETTY_FUNCTION__)) # 345 "ext/rapidjson/include/rapidjson/document.h" ; for (SizeType i = 0; i < data_.a.size; ++i) data_.a.elements[i].~GenericValue(); data_.a.size = 0; } # 362 "ext/rapidjson/include/rapidjson/document.h" GenericValue& operator[](SizeType index) { # 363 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 363 "ext/rapidjson/include/rapidjson/document.h" IsArray() # 363 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 363 "ext/rapidjson/include/rapidjson/document.h" "IsArray()" # 363 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 363, __PRETTY_FUNCTION__)) # 363 "ext/rapidjson/include/rapidjson/document.h" ; # 364 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 364 "ext/rapidjson/include/rapidjson/document.h" index < data_.a.size # 364 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 364 "ext/rapidjson/include/rapidjson/document.h" "index < data_.a.size" # 364 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 364, __PRETTY_FUNCTION__)) # 364 "ext/rapidjson/include/rapidjson/document.h" ; return data_.a.elements[index]; } const GenericValue& operator[](SizeType index) const { return const_cast(*this)[index]; } ValueIterator Begin() { # 370 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 370 "ext/rapidjson/include/rapidjson/document.h" IsArray() # 370 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 370 "ext/rapidjson/include/rapidjson/document.h" "IsArray()" # 370 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 370, __PRETTY_FUNCTION__)) # 370 "ext/rapidjson/include/rapidjson/document.h" ; return data_.a.elements; } ValueIterator End() { # 371 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 371 "ext/rapidjson/include/rapidjson/document.h" IsArray() # 371 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 371 "ext/rapidjson/include/rapidjson/document.h" "IsArray()" # 371 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 371, __PRETTY_FUNCTION__)) # 371 "ext/rapidjson/include/rapidjson/document.h" ; return data_.a.elements + data_.a.size; } ConstValueIterator Begin() const { return const_cast(*this).Begin(); } ConstValueIterator End() const { return const_cast(*this).End(); } GenericValue& Reserve(SizeType newCapacity, Allocator &allocator) { # 381 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 381 "ext/rapidjson/include/rapidjson/document.h" IsArray() # 381 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 381 "ext/rapidjson/include/rapidjson/document.h" "IsArray()" # 381 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 381, __PRETTY_FUNCTION__)) # 381 "ext/rapidjson/include/rapidjson/document.h" ; if (newCapacity > data_.a.capacity) { data_.a.elements = (GenericValue*)allocator.Realloc(data_.a.elements, data_.a.capacity * sizeof(GenericValue), newCapacity * sizeof(GenericValue)); data_.a.capacity = newCapacity; } return *this; } # 396 "ext/rapidjson/include/rapidjson/document.h" GenericValue& PushBack(GenericValue& value, Allocator& allocator) { # 397 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 397 "ext/rapidjson/include/rapidjson/document.h" IsArray() # 397 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 397 "ext/rapidjson/include/rapidjson/document.h" "IsArray()" # 397 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 397, __PRETTY_FUNCTION__)) # 397 "ext/rapidjson/include/rapidjson/document.h" ; if (data_.a.size >= data_.a.capacity) Reserve(data_.a.capacity == 0 ? kDefaultArrayCapacity : data_.a.capacity * 2, allocator); data_.a.elements[data_.a.size++].RawAssign(value); return *this; } template GenericValue& PushBack(T value, Allocator& allocator) { GenericValue v(value); return PushBack(v, allocator); } GenericValue& PopBack() { # 412 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 412 "ext/rapidjson/include/rapidjson/document.h" IsArray() # 412 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 412 "ext/rapidjson/include/rapidjson/document.h" "IsArray()" # 412 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 412, __PRETTY_FUNCTION__)) # 412 "ext/rapidjson/include/rapidjson/document.h" ; # 413 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 413 "ext/rapidjson/include/rapidjson/document.h" !Empty() # 413 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 413 "ext/rapidjson/include/rapidjson/document.h" "!Empty()" # 413 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 413, __PRETTY_FUNCTION__)) # 413 "ext/rapidjson/include/rapidjson/document.h" ; data_.a.elements[--data_.a.size].~GenericValue(); return *this; } int GetInt() const { # 422 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 422 "ext/rapidjson/include/rapidjson/document.h" flags_ & kIntFlag # 422 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 422 "ext/rapidjson/include/rapidjson/document.h" "flags_ & kIntFlag" # 422 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 422, __PRETTY_FUNCTION__)) # 422 "ext/rapidjson/include/rapidjson/document.h" ; return data_.n.i.i; } unsigned GetUint() const { # 423 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 423 "ext/rapidjson/include/rapidjson/document.h" flags_ & kUintFlag # 423 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 423 "ext/rapidjson/include/rapidjson/document.h" "flags_ & kUintFlag" # 423 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 423, __PRETTY_FUNCTION__)) # 423 "ext/rapidjson/include/rapidjson/document.h" ; return data_.n.u.u; } int64_t GetInt64() const { # 424 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 424 "ext/rapidjson/include/rapidjson/document.h" flags_ & kInt64Flag # 424 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 424 "ext/rapidjson/include/rapidjson/document.h" "flags_ & kInt64Flag" # 424 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 424, __PRETTY_FUNCTION__)) # 424 "ext/rapidjson/include/rapidjson/document.h" ; return data_.n.i64; } uint64_t GetUint64() const { # 425 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 425 "ext/rapidjson/include/rapidjson/document.h" flags_ & kUint64Flag # 425 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 425 "ext/rapidjson/include/rapidjson/document.h" "flags_ & kUint64Flag" # 425 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 425, __PRETTY_FUNCTION__)) # 425 "ext/rapidjson/include/rapidjson/document.h" ; return data_.n.u64; } double GetDouble() const { # 428 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 428 "ext/rapidjson/include/rapidjson/document.h" IsNumber() # 428 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 428 "ext/rapidjson/include/rapidjson/document.h" "IsNumber()" # 428 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 428, __PRETTY_FUNCTION__)) # 428 "ext/rapidjson/include/rapidjson/document.h" ; if ((flags_ & kDoubleFlag) != 0) return data_.n.d; if ((flags_ & kIntFlag) != 0) return data_.n.i.i; if ((flags_ & kUintFlag) != 0) return data_.n.u.u; if ((flags_ & kInt64Flag) != 0) return (double)data_.n.i64; # 433 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 433 "ext/rapidjson/include/rapidjson/document.h" (flags_ & kUint64Flag) != 0 # 433 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 433 "ext/rapidjson/include/rapidjson/document.h" "(flags_ & kUint64Flag) != 0" # 433 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 433, __PRETTY_FUNCTION__)) # 433 "ext/rapidjson/include/rapidjson/document.h" ; return (double)data_.n.u64; } GenericValue& SetInt(int i) { this->~GenericValue(); new (this) GenericValue(i); return *this; } GenericValue& SetUint(unsigned u) { this->~GenericValue(); new (this) GenericValue(u); return *this; } GenericValue& SetInt64(int64_t i64) { this->~GenericValue(); new (this) GenericValue(i64); return *this; } GenericValue& SetUint64(uint64_t u64) { this->~GenericValue(); new (this) GenericValue(u64); return *this; } GenericValue& SetDouble(double d) { this->~GenericValue(); new (this) GenericValue(d); return *this; } const Ch* GetString() const { # 447 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 447 "ext/rapidjson/include/rapidjson/document.h" IsString() # 447 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 447 "ext/rapidjson/include/rapidjson/document.h" "IsString()" # 447 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 447, __PRETTY_FUNCTION__)) # 447 "ext/rapidjson/include/rapidjson/document.h" ; return data_.s.str; } SizeType GetStringLength() const { # 452 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 452 "ext/rapidjson/include/rapidjson/document.h" IsString() # 452 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 452 "ext/rapidjson/include/rapidjson/document.h" "IsString()" # 452 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 452, __PRETTY_FUNCTION__)) # 452 "ext/rapidjson/include/rapidjson/document.h" ; return data_.s.length; } GenericValue& SetString(const Ch* s, SizeType length) { this->~GenericValue(); SetStringRaw(s, length); return *this; } GenericValue& SetString(const Ch* s) { return SetString(s, internal::StrLen(s)); } # 475 "ext/rapidjson/include/rapidjson/document.h" GenericValue& SetString(const Ch* s, SizeType length, Allocator& allocator) { this->~GenericValue(); SetStringRaw(s, length, allocator); return *this; } GenericValue& SetString(const Ch* s, Allocator& allocator) { SetString(s, internal::StrLen(s), allocator); return *this; } # 493 "ext/rapidjson/include/rapidjson/document.h" template const GenericValue& Accept(Handler& handler) const { switch(GetType()) { case kNullType: handler.Null(); break; case kFalseType: handler.Bool(false); break; case kTrueType: handler.Bool(true); break; case kObjectType: handler.StartObject(); for (Member* m = data_.o.members; m != data_.o.members + data_.o.size; ++m) { handler.String(m->name.data_.s.str, m->name.data_.s.length, false); m->value.Accept(handler); } handler.EndObject(data_.o.size); break; case kArrayType: handler.StartArray(); for (GenericValue* v = data_.a.elements; v != data_.a.elements + data_.a.size; ++v) v->Accept(handler); handler.EndArray(data_.a.size); break; case kStringType: handler.String(data_.s.str, data_.s.length, false); break; case kNumberType: if (IsInt()) handler.Int(data_.n.i.i); else if (IsUint()) handler.Uint(data_.n.u.u); else if (IsInt64()) handler.Int64(data_.n.i64); else if (IsUint64()) handler.Uint64(data_.n.u64); else handler.Double(data_.n.d); break; } return *this; } private: template friend class GenericDocument; enum { kBoolFlag = 0x100, kNumberFlag = 0x200, kIntFlag = 0x400, kUintFlag = 0x800, kInt64Flag = 0x1000, kUint64Flag = 0x2000, kDoubleFlag = 0x4000, kStringFlag = 0x100000, kCopyFlag = 0x200000, kNullFlag = kNullType, kTrueFlag = kTrueType | kBoolFlag, kFalseFlag = kFalseType | kBoolFlag, kNumberIntFlag = kNumberType | kNumberFlag | kIntFlag | kInt64Flag, kNumberUintFlag = kNumberType | kNumberFlag | kUintFlag | kUint64Flag | kInt64Flag, kNumberInt64Flag = kNumberType | kNumberFlag | kInt64Flag, kNumberUint64Flag = kNumberType | kNumberFlag | kUint64Flag, kNumberDoubleFlag = kNumberType | kNumberFlag | kDoubleFlag, kConstStringFlag = kStringType | kStringFlag, kCopyStringFlag = kStringType | kStringFlag | kCopyFlag, kObjectFlag = kObjectType, kArrayFlag = kArrayType, kTypeMask = 0xFF }; static const SizeType kDefaultArrayCapacity = 16; static const SizeType kDefaultObjectCapacity = 16; struct String { const Ch* str; SizeType length; unsigned hashcode; }; union Number { struct I { int i; char padding[4]; }i; struct U { unsigned u; char padding2[4]; }u; # 593 "ext/rapidjson/include/rapidjson/document.h" int64_t i64; uint64_t u64; double d; }; struct Object { Member* members; SizeType size; SizeType capacity; }; struct Array { GenericValue* elements; SizeType size; SizeType capacity; }; union Data { String s; Number n; Object o; Array a; }; Member* FindMember(const Ch* name) { # 619 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 619 "ext/rapidjson/include/rapidjson/document.h" name # 619 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 619 "ext/rapidjson/include/rapidjson/document.h" "name" # 619 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 619, __PRETTY_FUNCTION__)) # 619 "ext/rapidjson/include/rapidjson/document.h" ; # 620 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 620 "ext/rapidjson/include/rapidjson/document.h" IsObject() # 620 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 620 "ext/rapidjson/include/rapidjson/document.h" "IsObject()" # 620 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 620, __PRETTY_FUNCTION__)) # 620 "ext/rapidjson/include/rapidjson/document.h" ; SizeType length = internal::StrLen(name); Object& o = data_.o; for (Member* member = o.members; member != data_.o.members + data_.o.size; ++member) if (length == member->name.data_.s.length && memcmp(member->name.data_.s.str, name, length * sizeof(Ch)) == 0) return member; return 0; } const Member* FindMember(const Ch* name) const { return const_cast(*this).FindMember(name); } void SetArrayRaw(GenericValue* values, SizeType count, Allocator& alloctaor) { flags_ = kArrayFlag; data_.a.elements = (GenericValue*)alloctaor.Malloc(count * sizeof(GenericValue)); memcpy(data_.a.elements, values, count * sizeof(GenericValue)); data_.a.size = data_.a.capacity = count; } void SetObjectRaw(Member* members, SizeType count, Allocator& alloctaor) { flags_ = kObjectFlag; data_.o.members = (Member*)alloctaor.Malloc(count * sizeof(Member)); memcpy(data_.o.members, members, count * sizeof(Member)); data_.o.size = data_.o.capacity = count; } void SetStringRaw(const Ch* s, SizeType length) { # 651 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 651 "ext/rapidjson/include/rapidjson/document.h" s != # 651 "ext/rapidjson/include/rapidjson/document.h" 3 4 __null) ? static_cast (0) : __assert_fail ( # 651 "ext/rapidjson/include/rapidjson/document.h" "s != __null" # 651 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 651, __PRETTY_FUNCTION__)) # 651 "ext/rapidjson/include/rapidjson/document.h" ; flags_ = kConstStringFlag; data_.s.str = s; data_.s.length = length; } void SetStringRaw(const Ch* s, SizeType length, Allocator& allocator) { # 659 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 659 "ext/rapidjson/include/rapidjson/document.h" s != # 659 "ext/rapidjson/include/rapidjson/document.h" 3 4 __null) ? static_cast (0) : __assert_fail ( # 659 "ext/rapidjson/include/rapidjson/document.h" "s != __null" # 659 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 659, __PRETTY_FUNCTION__)) # 659 "ext/rapidjson/include/rapidjson/document.h" ; flags_ = kCopyStringFlag; data_.s.str = (Ch *)allocator.Malloc((length + 1) * sizeof(Ch)); data_.s.length = length; memcpy(const_cast(data_.s.str), s, length * sizeof(Ch)); const_cast(data_.s.str)[length] = '\0'; } void RawAssign(GenericValue& rhs) { memcpy(this, &rhs, sizeof(GenericValue)); rhs.flags_ = kNullFlag; } Data data_; unsigned flags_; }; #pragma pack (pop) typedef GenericValue > Value; # 690 "ext/rapidjson/include/rapidjson/document.h" template > class GenericDocument : public GenericValue { public: typedef typename Encoding::Ch Ch; typedef GenericValue ValueType; typedef Allocator AllocatorType; GenericDocument(Allocator* allocator = 0, size_t stackCapacity = kDefaultStackCapacity) : stack_(allocator, stackCapacity), parseError_(0), errorOffset_(0) {} template GenericDocument& ParseStream(Stream& stream) { ValueType::SetNull(); GenericReader reader; if (reader.template Parse(stream, *this)) { # 713 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 713 "ext/rapidjson/include/rapidjson/document.h" stack_.GetSize() == sizeof(ValueType) # 713 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 713 "ext/rapidjson/include/rapidjson/document.h" "stack_.GetSize() == sizeof(ValueType)" # 713 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 713, __PRETTY_FUNCTION__)) # 713 "ext/rapidjson/include/rapidjson/document.h" ; this->RawAssign(*stack_.template Pop(1)); parseError_ = 0; errorOffset_ = 0; } else { parseError_ = reader.GetParseError(); errorOffset_ = reader.GetErrorOffset(); ClearStack(); } return *this; } template GenericDocument& ParseInsitu(Ch* str) { GenericInsituStringStream s(str); return ParseStream(s); } template GenericDocument& Parse(const Ch* str) { # 743 "ext/rapidjson/include/rapidjson/document.h" 3 4 (( # 743 "ext/rapidjson/include/rapidjson/document.h" !(parseFlags & kParseInsituFlag) # 743 "ext/rapidjson/include/rapidjson/document.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 743 "ext/rapidjson/include/rapidjson/document.h" "!(parseFlags & kParseInsituFlag)" # 743 "ext/rapidjson/include/rapidjson/document.h" 3 4 , "ext/rapidjson/include/rapidjson/document.h", 743, __PRETTY_FUNCTION__)) # 743 "ext/rapidjson/include/rapidjson/document.h" ; GenericStringStream s(str); return ParseStream(s); } bool HasParseError() const { return parseError_ != 0; } const char* GetParseError() const { return parseError_; } size_t GetErrorOffset() const { return errorOffset_; } Allocator& GetAllocator() { return stack_.GetAllocator(); } size_t GetStackCapacity() const { return stack_.GetCapacity(); } private: GenericDocument& operator=(const GenericDocument&); friend class GenericReader; void Null() { new (stack_.template Push()) ValueType(); } void Bool(bool b) { new (stack_.template Push()) ValueType(b); } void Int(int i) { new (stack_.template Push()) ValueType(i); } void Uint(unsigned i) { new (stack_.template Push()) ValueType(i); } void Int64(int64_t i) { new (stack_.template Push()) ValueType(i); } void Uint64(uint64_t i) { new (stack_.template Push()) ValueType(i); } void Double(double d) { new (stack_.template Push()) ValueType(d); } void String(const Ch* str, SizeType length, bool copy) { if (copy) new (stack_.template Push()) ValueType(str, length, GetAllocator()); else new (stack_.template Push()) ValueType(str, length); } void StartObject() { new (stack_.template Push()) ValueType(kObjectType); } void EndObject(SizeType memberCount) { typename ValueType::Member* members = stack_.template Pop(memberCount); stack_.template Top()->SetObjectRaw(members, (SizeType)memberCount, GetAllocator()); } void StartArray() { new (stack_.template Push()) ValueType(kArrayType); } void EndArray(SizeType elementCount) { ValueType* elements = stack_.template Pop(elementCount); stack_.template Top()->SetArrayRaw(elements, elementCount, GetAllocator()); } void ClearStack() { if (Allocator::kNeedFree) while (stack_.GetSize() > 0) (stack_.template Pop(1))->~ValueType(); else stack_.Clear(); } static const size_t kDefaultStackCapacity = 1024; internal::Stack stack_; const char* parseError_; size_t errorOffset_; }; typedef GenericDocument > Document; } # 30 "webserver.hh" 2 # 1 "ext/rapidjson/include/rapidjson/stringbuffer.h" 1 namespace rapidjson { template struct GenericStringBuffer { typedef typename Encoding::Ch Ch; GenericStringBuffer(Allocator* allocator = 0, size_t capacity = kDefaultCapacity) : stack_(allocator, capacity) {} void Put(Ch c) { *stack_.template Push() = c; } void Clear() { stack_.Clear(); } const char* GetString() const { *stack_.template Push() = '\0'; stack_.template Pop(1); return stack_.template Bottom(); } size_t Size() const { return stack_.GetSize(); } static const size_t kDefaultCapacity = 256; mutable internal::Stack stack_; }; typedef GenericStringBuffer > StringBuffer; template<> inline void PutN(GenericStringBuffer >& stream, char c, size_t n) { memset(stream.stack_.Push(n), c, n * sizeof(c)); } } # 31 "webserver.hh" 2 # 1 "ext/rapidjson/include/rapidjson/writer.h" 1 # 1 "/usr/include/c++/5.0.0/cstdio" 1 3 # 39 "/usr/include/c++/5.0.0/cstdio" 3 # 40 "/usr/include/c++/5.0.0/cstdio" 3 # 8 "ext/rapidjson/include/rapidjson/writer.h" 2 namespace rapidjson { # 31 "ext/rapidjson/include/rapidjson/writer.h" template, typename Allocator = MemoryPoolAllocator<> > class Writer { public: typedef typename Encoding::Ch Ch; Writer(Stream& stream, Allocator* allocator = 0, size_t levelDepth = kDefaultLevelDepth) : stream_(stream), level_stack_(allocator, levelDepth * sizeof(Level)) {} Writer& Null() { Prefix(kNullType); WriteNull(); return *this; } Writer& Bool(bool b) { Prefix(b ? kTrueType : kFalseType); WriteBool(b); return *this; } Writer& Int(int i) { Prefix(kNumberType); WriteInt(i); return *this; } Writer& Uint(unsigned u) { Prefix(kNumberType); WriteUint(u); return *this; } Writer& Int64(int64_t i64) { Prefix(kNumberType); WriteInt64(i64); return *this; } Writer& Uint64(uint64_t u64) { Prefix(kNumberType); WriteUint64(u64); return *this; } Writer& Double(double d) { Prefix(kNumberType); WriteDouble(d); return *this; } Writer& String(const Ch* str, SizeType length, bool copy = false) { (void)copy; Prefix(kStringType); WriteString(str, length); return *this; } Writer& StartObject() { Prefix(kObjectType); new (level_stack_.template Push()) Level(false); WriteStartObject(); return *this; } Writer& EndObject(SizeType memberCount = 0) { (void)memberCount; # 65 "ext/rapidjson/include/rapidjson/writer.h" 3 4 (( # 65 "ext/rapidjson/include/rapidjson/writer.h" level_stack_.GetSize() >= sizeof(Level) # 65 "ext/rapidjson/include/rapidjson/writer.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 65 "ext/rapidjson/include/rapidjson/writer.h" "level_stack_.GetSize() >= sizeof(Level)" # 65 "ext/rapidjson/include/rapidjson/writer.h" 3 4 , "ext/rapidjson/include/rapidjson/writer.h", 65, __PRETTY_FUNCTION__)) # 65 "ext/rapidjson/include/rapidjson/writer.h" ; # 66 "ext/rapidjson/include/rapidjson/writer.h" 3 4 (( # 66 "ext/rapidjson/include/rapidjson/writer.h" !level_stack_.template Top()->inArray # 66 "ext/rapidjson/include/rapidjson/writer.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 66 "ext/rapidjson/include/rapidjson/writer.h" "!level_stack_.template Top()->inArray" # 66 "ext/rapidjson/include/rapidjson/writer.h" 3 4 , "ext/rapidjson/include/rapidjson/writer.h", 66, __PRETTY_FUNCTION__)) # 66 "ext/rapidjson/include/rapidjson/writer.h" ; level_stack_.template Pop(1); WriteEndObject(); return *this; } Writer& StartArray() { Prefix(kArrayType); new (level_stack_.template Push()) Level(true); WriteStartArray(); return *this; } Writer& EndArray(SizeType elementCount = 0) { (void)elementCount; # 81 "ext/rapidjson/include/rapidjson/writer.h" 3 4 (( # 81 "ext/rapidjson/include/rapidjson/writer.h" level_stack_.GetSize() >= sizeof(Level) # 81 "ext/rapidjson/include/rapidjson/writer.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 81 "ext/rapidjson/include/rapidjson/writer.h" "level_stack_.GetSize() >= sizeof(Level)" # 81 "ext/rapidjson/include/rapidjson/writer.h" 3 4 , "ext/rapidjson/include/rapidjson/writer.h", 81, __PRETTY_FUNCTION__)) # 81 "ext/rapidjson/include/rapidjson/writer.h" ; # 82 "ext/rapidjson/include/rapidjson/writer.h" 3 4 (( # 82 "ext/rapidjson/include/rapidjson/writer.h" level_stack_.template Top()->inArray # 82 "ext/rapidjson/include/rapidjson/writer.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 82 "ext/rapidjson/include/rapidjson/writer.h" "level_stack_.template Top()->inArray" # 82 "ext/rapidjson/include/rapidjson/writer.h" 3 4 , "ext/rapidjson/include/rapidjson/writer.h", 82, __PRETTY_FUNCTION__)) # 82 "ext/rapidjson/include/rapidjson/writer.h" ; level_stack_.template Pop(1); WriteEndArray(); return *this; } Writer& String(const Ch* str) { return String(str, internal::StrLen(str)); } protected: struct Level { Level(bool inArray_) : inArray(inArray_), valueCount(0) {} bool inArray; size_t valueCount; }; static const size_t kDefaultLevelDepth = 32; void WriteNull() { stream_.Put('n'); stream_.Put('u'); stream_.Put('l'); stream_.Put('l'); } void WriteBool(bool b) { if (b) { stream_.Put('t'); stream_.Put('r'); stream_.Put('u'); stream_.Put('e'); } else { stream_.Put('f'); stream_.Put('a'); stream_.Put('l'); stream_.Put('s'); stream_.Put('e'); } } void WriteInt(int i) { if (i < 0) { stream_.Put('-'); i = -i; } WriteUint((unsigned)i); } void WriteUint(unsigned u) { char buffer[10]; char *p = buffer; do { *p++ = (u % 10) + '0'; u /= 10; } while (u > 0); do { --p; stream_.Put(*p); } while (p != buffer); } void WriteInt64(int64_t i64) { if (i64 < 0) { stream_.Put('-'); i64 = -i64; } WriteUint64((uint64_t)i64); } void WriteUint64(uint64_t u64) { char buffer[20]; char *p = buffer; do { *p++ = char(u64 % 10) + '0'; u64 /= 10; } while (u64 > 0); do { --p; stream_.Put(*p); } while (p != buffer); } void WriteDouble(double d) { char buffer[100]; int ret = snprintf(buffer, sizeof(buffer), "%g", d); # 167 "ext/rapidjson/include/rapidjson/writer.h" 3 4 (( # 167 "ext/rapidjson/include/rapidjson/writer.h" ret >= 1 # 167 "ext/rapidjson/include/rapidjson/writer.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 167 "ext/rapidjson/include/rapidjson/writer.h" "ret >= 1" # 167 "ext/rapidjson/include/rapidjson/writer.h" 3 4 , "ext/rapidjson/include/rapidjson/writer.h", 167, __PRETTY_FUNCTION__)) # 167 "ext/rapidjson/include/rapidjson/writer.h" ; for (int i = 0; i < ret; i++) stream_.Put(buffer[i]); } void WriteString(const Ch* str, SizeType length) { static const char hexDigits[] = "0123456789ABCDEF"; static const char escape[256] = { 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'b', 't', 'n', 'u', 'f', 'r', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 0, 0, '"', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,'\\', 0, 0, 0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }; stream_.Put('\"'); for (const Ch* p = str; p != str + length; ++p) { if ((sizeof(Ch) == 1 || *p < 256) && escape[(unsigned char)*p]) { stream_.Put('\\'); stream_.Put(escape[(unsigned char)*p]); if (escape[(unsigned char)*p] == 'u') { stream_.Put('0'); stream_.Put('0'); stream_.Put(hexDigits[(*p) >> 4]); stream_.Put(hexDigits[(*p) & 0xF]); } } else stream_.Put(*p); } stream_.Put('\"'); } void WriteStartObject() { stream_.Put('{'); } void WriteEndObject() { stream_.Put('}'); } void WriteStartArray() { stream_.Put('['); } void WriteEndArray() { stream_.Put(']'); } void Prefix(Type type) { (void)type; if (level_stack_.GetSize() != 0) { Level* level = level_stack_.template Top(); if (level->valueCount > 0) { if (level->inArray) stream_.Put(','); else stream_.Put((level->valueCount % 2 == 0) ? ',' : ':'); } if (!level->inArray && level->valueCount % 2 == 0) # 220 "ext/rapidjson/include/rapidjson/writer.h" 3 4 (( # 220 "ext/rapidjson/include/rapidjson/writer.h" type == kStringType # 220 "ext/rapidjson/include/rapidjson/writer.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 220 "ext/rapidjson/include/rapidjson/writer.h" "type == kStringType" # 220 "ext/rapidjson/include/rapidjson/writer.h" 3 4 , "ext/rapidjson/include/rapidjson/writer.h", 220, __PRETTY_FUNCTION__)) # 220 "ext/rapidjson/include/rapidjson/writer.h" ; level->valueCount++; } else # 224 "ext/rapidjson/include/rapidjson/writer.h" 3 4 (( # 224 "ext/rapidjson/include/rapidjson/writer.h" type == kObjectType || type == kArrayType # 224 "ext/rapidjson/include/rapidjson/writer.h" 3 4 ) ? static_cast (0) : __assert_fail ( # 224 "ext/rapidjson/include/rapidjson/writer.h" "type == kObjectType || type == kArrayType" # 224 "ext/rapidjson/include/rapidjson/writer.h" 3 4 , "ext/rapidjson/include/rapidjson/writer.h", 224, __PRETTY_FUNCTION__)) # 224 "ext/rapidjson/include/rapidjson/writer.h" ; } Stream& stream_; internal::Stack level_stack_; private: Writer& operator=(const Writer& w); }; } # 32 "webserver.hh" 2 # 1 "sstuff.hh" 1 # 1 "iputils.hh" 1 # 32 "iputils.hh" # 1 "pdnsexception.hh" 1 # 31 "pdnsexception.hh" class PDNSException { public: PDNSException(){reason="Unspecified";}; PDNSException(string r){reason=r;}; string reason; }; class TimeoutException : public PDNSException { public: TimeoutException() : PDNSException() {} TimeoutException(string r) : PDNSException(r) {} }; # 33 "iputils.hh" 2 # 1 "misc.hh" 1 # 25 "misc.hh" # 1 "/usr/include/c++/5.0.0/cstring" 1 3 # 39 "/usr/include/c++/5.0.0/cstring" 3 # 40 "/usr/include/c++/5.0.0/cstring" 3 # 26 "misc.hh" 2 # 1 "/usr/include/c++/5.0.0/cstdio" 1 3 # 39 "/usr/include/c++/5.0.0/cstdio" 3 # 40 "/usr/include/c++/5.0.0/cstdio" 3 # 27 "misc.hh" 2 # 1 "/usr/include/regex.h" 1 3 4 # 27 "/usr/include/regex.h" 3 4 # 27 "/usr/include/regex.h" 3 4 extern "C" { typedef long int s_reg_t; typedef unsigned long int active_reg_t; typedef unsigned long int reg_syntax_t; # 181 "/usr/include/regex.h" 3 4 extern reg_syntax_t re_syntax_options; # 308 "/usr/include/regex.h" 3 4 typedef enum { REG_ENOSYS = -1, REG_NOERROR = 0, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE, REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN, REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND, REG_ESIZE, REG_ERPAREN } reg_errcode_t; # 357 "/usr/include/regex.h" 3 4 struct re_pattern_buffer { unsigned char *buffer; unsigned long int allocated; unsigned long int used; reg_syntax_t syntax; char *fastmap; unsigned char * translate; size_t re_nsub; unsigned can_be_null : 1; # 402 "/usr/include/regex.h" 3 4 unsigned regs_allocated : 2; unsigned fastmap_accurate : 1; unsigned no_sub : 1; unsigned not_bol : 1; unsigned not_eol : 1; unsigned newline_anchor : 1; }; typedef struct re_pattern_buffer regex_t; typedef int regoff_t; struct re_registers { unsigned num_regs; regoff_t *start; regoff_t *end; }; # 452 "/usr/include/regex.h" 3 4 typedef struct { regoff_t rm_so; regoff_t rm_eo; } regmatch_t; extern reg_syntax_t re_set_syntax (reg_syntax_t __syntax); # 473 "/usr/include/regex.h" 3 4 extern const char *re_compile_pattern (const char *__pattern, size_t __length, struct re_pattern_buffer *__buffer); extern int re_compile_fastmap (struct re_pattern_buffer *__buffer); extern int re_search (struct re_pattern_buffer *__buffer, const char *__string, int __length, int __start, int __range, struct re_registers *__regs); extern int re_search_2 (struct re_pattern_buffer *__buffer, const char *__string1, int __length1, const char *__string2, int __length2, int __start, int __range, struct re_registers *__regs, int __stop); extern int re_match (struct re_pattern_buffer *__buffer, const char *__string, int __length, int __start, struct re_registers *__regs); extern int re_match_2 (struct re_pattern_buffer *__buffer, const char *__string1, int __length1, const char *__string2, int __length2, int __start, struct re_registers *__regs, int __stop); # 526 "/usr/include/regex.h" 3 4 extern void re_set_registers (struct re_pattern_buffer *__buffer, struct re_registers *__regs, unsigned int __num_regs, regoff_t *__starts, regoff_t *__ends); # 562 "/usr/include/regex.h" 3 4 extern int regcomp (regex_t *__restrict __preg, const char *__restrict __pattern, int __cflags); extern int regexec (const regex_t *__restrict __preg, const char *__restrict __string, size_t __nmatch, regmatch_t __pmatch[], int __eflags); extern size_t regerror (int __errcode, const regex_t *__restrict __preg, char *__restrict __errbuf, size_t __errbuf_size); extern void regfree (regex_t *__preg); } # 28 "misc.hh" 2 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/limits.h" 1 3 4 # 29 "misc.hh" 2 # 1 "/usr/include/boost/multi_index_container.hpp" 1 3 4 # 20 "/usr/include/boost/multi_index_container.hpp" 3 4 # 1 "/usr/include/boost/detail/allocator_utilities.hpp" 1 3 4 # 20 "/usr/include/boost/detail/allocator_utilities.hpp" 3 4 namespace boost{ namespace detail{ namespace allocator{ template class partial_std_allocator_wrapper:public std::allocator { public: typedef Type value_type; partial_std_allocator_wrapper(){}; template partial_std_allocator_wrapper(const partial_std_allocator_wrapper&){} partial_std_allocator_wrapper(const std::allocator& x): std::allocator(x) { }; # 69 "/usr/include/boost/detail/allocator_utilities.hpp" 3 4 }; # 100 "/usr/include/boost/detail/allocator_utilities.hpp" 3 4 template struct is_partial_std_allocator { static const bool value=false; }; template struct partial_std_allocator_rebind_to { typedef partial_std_allocator_wrapper type; }; template struct rebinder { template struct result { typedef typename Allocator::template rebind::other other; }; }; template struct compliant_allocator_rebind_to { typedef typename rebinder:: template result::other type; }; template struct rebind_to: mpl::eval_if_c< is_partial_std_allocator::value, partial_std_allocator_rebind_to, compliant_allocator_rebind_to > { }; template void construct(void* p,const Type& t) { new (p) Type(t); } # 165 "/usr/include/boost/detail/allocator_utilities.hpp" 3 4 template void destroy(const Type* p) { p->~Type(); } } } } # 21 "/usr/include/boost/multi_index_container.hpp" 2 3 4 # 31 "/usr/include/boost/multi_index_container.hpp" 3 4 # 1 "/usr/include/boost/multi_index_container_fwd.hpp" 1 3 4 # 17 "/usr/include/boost/multi_index_container_fwd.hpp" 3 4 # 1 "/usr/include/boost/multi_index/identity.hpp" 1 3 4 # 18 "/usr/include/boost/multi_index/identity.hpp" 3 4 # 1 "/usr/include/boost/multi_index/identity_fwd.hpp" 1 3 4 # 16 "/usr/include/boost/multi_index/identity_fwd.hpp" 3 4 namespace boost{ namespace multi_index{ template struct identity; } } # 19 "/usr/include/boost/multi_index/identity.hpp" 2 3 4 # 27 "/usr/include/boost/multi_index/identity.hpp" 3 4 namespace boost{ template class reference_wrapper; namespace multi_index{ namespace detail{ # 45 "/usr/include/boost/multi_index/identity.hpp" 3 4 template struct const_identity_base { typedef Type result_type; template typename disable_if,Type&>::type operator()(const ChainedPtr& x)const { return operator()(*x); } Type& operator()(Type& x)const { return x; } Type& operator()(const reference_wrapper& x)const { return x.get(); } Type& operator()( const reference_wrapper::type>& x)const { return x.get(); } }; template struct non_const_identity_base { typedef Type result_type; template typename disable_if< is_convertible,Type&>::type operator()(const ChainedPtr& x)const { return operator()(*x); } const Type& operator()(const Type& x)const { return x; } Type& operator()(Type& x)const { return x; } const Type& operator()(const reference_wrapper& x)const { return x.get(); } Type& operator()(const reference_wrapper& x)const { return x.get(); } }; } template struct identity: mpl::if_c< is_const::value, detail::const_identity_base,detail::non_const_identity_base >::type { }; } } # 18 "/usr/include/boost/multi_index_container_fwd.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/indexed_by.hpp" 1 3 4 # 19 "/usr/include/boost/multi_index/indexed_by.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/control/expr_if.hpp" 1 3 4 # 20 "/usr/include/boost/multi_index/indexed_by.hpp" 2 3 4 # 47 "/usr/include/boost/multi_index/indexed_by.hpp" 3 4 namespace boost{ namespace multi_index{ template< typename T0 , typename T1 =mpl::na , typename T2 =mpl::na , typename T3 =mpl::na , typename T4 =mpl::na , typename T5 =mpl::na , typename T6 =mpl::na , typename T7 =mpl::na , typename T8 =mpl::na , typename T9 =mpl::na , typename T10 =mpl::na , typename T11 =mpl::na , typename T12 =mpl::na , typename T13 =mpl::na , typename T14 =mpl::na , typename T15 =mpl::na , typename T16 =mpl::na , typename T17 =mpl::na , typename T18 =mpl::na , typename T19 =mpl::na > struct indexed_by: mpl::vector< T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19> { }; } } # 19 "/usr/include/boost/multi_index_container_fwd.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/ordered_index_fwd.hpp" 1 3 4 # 16 "/usr/include/boost/multi_index/ordered_index_fwd.hpp" 3 4 # 1 "/usr/include/boost/multi_index/detail/ord_index_args.hpp" 1 3 4 # 21 "/usr/include/boost/multi_index/detail/ord_index_args.hpp" 3 4 # 1 "/usr/include/boost/multi_index/tag.hpp" 1 3 4 # 17 "/usr/include/boost/multi_index/tag.hpp" 3 4 # 1 "/usr/include/boost/multi_index/detail/no_duplicate_tags.hpp" 1 3 4 # 18 "/usr/include/boost/multi_index/detail/no_duplicate_tags.hpp" 3 4 # 1 "/usr/include/boost/mpl/set/set0.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/set/set0.hpp" 3 4 # 1 "/usr/include/boost/mpl/set/aux_/at_impl.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/set/aux_/at_impl.hpp" 3 4 # 1 "/usr/include/boost/mpl/set/aux_/has_key_impl.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/set/aux_/has_key_impl.hpp" 3 4 # 1 "/usr/include/boost/mpl/set/aux_/tag.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/set/aux_/tag.hpp" 3 4 namespace boost { namespace mpl { namespace aux { struct set_tag; }}} # 19 "/usr/include/boost/mpl/set/aux_/has_key_impl.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/has_key_fwd.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/has_key_fwd.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag > struct has_key_impl; template< typename AssociativeSequence, typename Key > struct has_key; }} # 20 "/usr/include/boost/mpl/set/aux_/has_key_impl.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/overload_names.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/aux_/overload_names.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/ptr_to_ref.hpp" 1 3 4 # 40 "/usr/include/boost/mpl/aux_/ptr_to_ref.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< typename T > static T const& ptr_to_ref(T*); }}} # 18 "/usr/include/boost/mpl/aux_/overload_names.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/config/operators.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/aux_/overload_names.hpp" 2 3 4 # 22 "/usr/include/boost/mpl/set/aux_/has_key_impl.hpp" 2 3 4 namespace boost { namespace mpl { template<> struct has_key_impl< aux::set_tag > { template< typename Set, typename T > struct apply # 47 "/usr/include/boost/mpl/set/aux_/has_key_impl.hpp" 3 4 : bool_< ( sizeof( Set::is_masked_( aux::ptr_to_ref(static_cast(0)), static_cast*>(0) ) ) == sizeof(aux::no_tag) ) > { }; }; }} # 19 "/usr/include/boost/mpl/set/aux_/at_impl.hpp" 2 3 4 namespace boost { namespace mpl { template<> struct at_impl< aux::set_tag > { template< typename Set, typename T > struct apply { typedef typename if_< has_key_impl::apply , T , void_ >::type type; }; }; }} # 19 "/usr/include/boost/mpl/set/set0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/set/aux_/clear_impl.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/set/aux_/clear_impl.hpp" 3 4 # 1 "/usr/include/boost/mpl/set/aux_/set0.hpp" 1 3 4 # 28 "/usr/include/boost/mpl/set/aux_/set0.hpp" 3 4 namespace boost { namespace mpl { # 53 "/usr/include/boost/mpl/set/aux_/set0.hpp" 3 4 template< typename Dummy = na > struct set0 { typedef set0<> item_; typedef item_ type; typedef aux::set_tag tag; typedef void_ last_masked_; typedef void_ item_type_; typedef long_<0> size; typedef long_<1> order; static aux::no_tag order_by_key_(set0<> const&, void const volatile*); static aux::yes_tag is_masked_(set0<> const&, void const volatile*); }; }} # 20 "/usr/include/boost/mpl/set/aux_/clear_impl.hpp" 2 3 4 namespace boost { namespace mpl { template<> struct clear_impl< aux::set_tag > { template< typename Set > struct apply { typedef set0<> type; }; }; }} # 20 "/usr/include/boost/mpl/set/set0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/set/aux_/size_impl.hpp" 1 3 4 # 20 "/usr/include/boost/mpl/set/aux_/size_impl.hpp" 3 4 namespace boost { namespace mpl { template<> struct size_impl< aux::set_tag > { template< typename Set > struct apply : Set::size { }; }; }} # 22 "/usr/include/boost/mpl/set/set0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/set/aux_/empty_impl.hpp" 1 3 4 # 21 "/usr/include/boost/mpl/set/aux_/empty_impl.hpp" 3 4 namespace boost { namespace mpl { template<> struct empty_impl< aux::set_tag > { template< typename Set > struct apply : not_< typename Set::size > { }; }; }} # 23 "/usr/include/boost/mpl/set/set0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/set/aux_/insert_impl.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/set/aux_/insert_impl.hpp" 3 4 # 1 "/usr/include/boost/mpl/insert_fwd.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/insert_fwd.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag > struct insert_impl; template< typename Sequence, typename Pos_or_T, typename T > struct insert; }} # 19 "/usr/include/boost/mpl/set/aux_/insert_impl.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/set/aux_/item.hpp" 1 3 4 # 26 "/usr/include/boost/mpl/set/aux_/item.hpp" 3 4 namespace boost { namespace mpl { template< typename T, typename Base > struct s_item : Base { typedef s_item item_; typedef void_ last_masked_; typedef T item_type_; typedef typename Base::item_ base; typedef typename next< typename Base::size >::type size; typedef typename next< typename Base::order >::type order; typedef char (&order_tag_)[order::value]; static order_tag_ order_by_key_(s_item const&, aux::type_wrapper*); using Base::order_by_key_; static aux::no_tag is_masked_(s_item const&, aux::type_wrapper*); using Base::is_masked_; }; template< typename T, typename Base > struct s_mask : Base { typedef s_mask item_; typedef T last_masked_; typedef void_ item_type_; typedef typename Base::item_ base; typedef typename prior< typename Base::size >::type size; static aux::yes_tag is_masked_(s_mask const&, aux::type_wrapper*); using Base::is_masked_; }; template< typename T, typename Base > struct s_unmask : Base { typedef s_unmask item_; typedef void_ last_masked_; typedef T item_type_; typedef typename Base::item_ base; typedef typename next< typename Base::size >::type size; static aux::no_tag is_masked_(s_unmask const&, aux::type_wrapper*); using Base::is_masked_; }; }} # 21 "/usr/include/boost/mpl/set/aux_/insert_impl.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/base.hpp" 1 3 4 # 20 "/usr/include/boost/mpl/base.hpp" 3 4 namespace boost { namespace mpl { template< typename T = na > struct base { typedef typename T::base type; }; template<> struct base< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : base< T1 > { }; }; template< typename Tag > struct lambda< base< na > , Tag , int_<-1> > { typedef false_ is_le; typedef base< na > result_; typedef base< na > type; }; namespace aux { template< typename T1 > struct template_arity< base< T1 > > : int_<1> { }; template<> struct template_arity< base< na > > : int_<-1> { }; } }} # 24 "/usr/include/boost/mpl/set/aux_/insert_impl.hpp" 2 3 4 namespace boost { namespace mpl { namespace aux { template< typename Set, typename T > struct set_insert_impl : eval_if< has_key_impl::apply , identity , eval_if< is_same< T,typename Set::last_masked_ > , base , identity< s_item > > > { }; } template<> struct insert_impl< aux::set_tag > { template< typename Set , typename PosOrKey , typename KeyOrNA > struct apply : aux::set_insert_impl< Set , typename if_na::type > { }; }; }} # 24 "/usr/include/boost/mpl/set/set0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/set/aux_/erase_impl.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/set/aux_/erase_impl.hpp" 3 4 # 1 "/usr/include/boost/mpl/erase_fwd.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/erase_fwd.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag > struct erase_impl; template< typename Sequence, typename First, typename Last > struct erase; }} # 19 "/usr/include/boost/mpl/set/aux_/erase_impl.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/set/aux_/erase_key_impl.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/set/aux_/erase_key_impl.hpp" 3 4 # 1 "/usr/include/boost/mpl/erase_key_fwd.hpp" 1 3 4 # 17 "/usr/include/boost/mpl/erase_key_fwd.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag > struct erase_key_impl; template< typename Sequence, typename Key > struct erase_key; }} # 19 "/usr/include/boost/mpl/set/aux_/erase_key_impl.hpp" 2 3 4 # 28 "/usr/include/boost/mpl/set/aux_/erase_key_impl.hpp" 3 4 namespace boost { namespace mpl { template<> struct erase_key_impl< aux::set_tag > { template< typename Set , typename T > struct apply : eval_if< has_key_impl::apply , eval_if< is_same< T,typename Set::item_type_ > , base , identity< s_mask > > , identity > { }; }; }} # 20 "/usr/include/boost/mpl/set/aux_/erase_impl.hpp" 2 3 4 namespace boost { namespace mpl { template<> struct erase_impl< aux::set_tag > { template< typename Set , typename Pos , typename unused_ > struct apply : erase_key_impl ::apply { }; }; }} # 25 "/usr/include/boost/mpl/set/set0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/set/aux_/key_type_impl.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/set/aux_/key_type_impl.hpp" 3 4 # 1 "/usr/include/boost/mpl/key_type_fwd.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/key_type_fwd.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag > struct key_type_impl; template< typename AssociativeSequence, typename T > struct key_type; }} # 19 "/usr/include/boost/mpl/set/aux_/key_type_impl.hpp" 2 3 4 namespace boost { namespace mpl { template<> struct key_type_impl< aux::set_tag > { template< typename Set, typename T > struct apply { typedef T type; }; }; }} # 28 "/usr/include/boost/mpl/set/set0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/set/aux_/value_type_impl.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/set/aux_/value_type_impl.hpp" 3 4 # 1 "/usr/include/boost/mpl/value_type_fwd.hpp" 1 3 4 # 18 "/usr/include/boost/mpl/value_type_fwd.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag > struct value_type_impl; template< typename AssociativeSequence, typename T > struct value_type; }} # 19 "/usr/include/boost/mpl/set/aux_/value_type_impl.hpp" 2 3 4 namespace boost { namespace mpl { template<> struct value_type_impl< aux::set_tag > { template< typename Set, typename T > struct apply { typedef T type; }; }; }} # 29 "/usr/include/boost/mpl/set/set0.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/set/aux_/begin_end_impl.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/set/aux_/begin_end_impl.hpp" 3 4 # 1 "/usr/include/boost/mpl/set/aux_/iterator.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/set/aux_/iterator.hpp" 3 4 # 1 "/usr/include/boost/mpl/has_key.hpp" 1 3 4 # 20 "/usr/include/boost/mpl/has_key.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/has_key_impl.hpp" 1 3 4 # 21 "/usr/include/boost/mpl/aux_/has_key_impl.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag > struct has_key_impl { template< typename AssociativeSequence, typename Key > struct apply; }; template<> struct has_key_impl {}; }} # 21 "/usr/include/boost/mpl/has_key.hpp" 2 3 4 namespace boost { namespace mpl { template< typename AssociativeSequence = na , typename Key = na > struct has_key : has_key_impl< typename sequence_tag::type > ::template apply { }; template<> struct has_key< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : has_key< T1 , T2 > { }; }; template< typename Tag > struct lambda< has_key< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef has_key< na , na > result_; typedef has_key< na , na > type; }; namespace aux { template< typename T1 , typename T2 > struct template_arity< has_key< T1 , T2 > > : int_<2> { }; template<> struct template_arity< has_key< na , na > > : int_<-1> { }; } }} # 20 "/usr/include/boost/mpl/set/aux_/iterator.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Set, typename Tail > struct s_iter; template< typename Set, typename Tail > struct s_iter_get : eval_if< has_key< Set,typename Tail::item_type_ > , identity< s_iter > , next< s_iter > > { }; template< typename Set, typename Tail > struct s_iter_impl { typedef Tail tail_; typedef forward_iterator_tag category; typedef typename Tail::item_type_ type; }; template< typename Set, typename Tail > struct next< s_iter > : s_iter_get< Set,typename Tail::base > { }; template< typename Set > struct next< s_iter > > { typedef s_iter > type; }; template< typename Set, typename Tail > struct s_iter : s_iter_impl { }; template< typename Set > struct s_iter > { typedef forward_iterator_tag category; }; # 96 "/usr/include/boost/mpl/set/aux_/iterator.hpp" 3 4 }} # 20 "/usr/include/boost/mpl/set/aux_/begin_end_impl.hpp" 2 3 4 namespace boost { namespace mpl { template<> struct begin_impl< aux::set_tag > { template< typename Set > struct apply : s_iter_get { }; }; template<> struct end_impl< aux::set_tag > { template< typename Set > struct apply { typedef s_iter< Set,set0<> > type; }; }; }} # 30 "/usr/include/boost/mpl/set/set0.hpp" 2 3 4 # 19 "/usr/include/boost/multi_index/detail/no_duplicate_tags.hpp" 2 3 4 namespace boost{ namespace multi_index{ namespace detail{ # 36 "/usr/include/boost/multi_index/detail/no_duplicate_tags.hpp" 3 4 struct duplicate_tag_mark{}; struct duplicate_tag_marker { template struct apply { typedef mpl::s_item< typename mpl::if_,duplicate_tag_mark,Tag>::type, MplSet > type; }; }; template struct no_duplicate_tags { typedef typename mpl::fold< TagList, mpl::set0<>, duplicate_tag_marker >::type aux; static const bool value=!(mpl::has_key::value) ; }; struct duplicate_tag_list_marker { template struct apply:mpl::fold< typename Index::tag_list, MplSet, duplicate_tag_marker> { }; }; template struct no_duplicate_tags_in_index_list { typedef typename mpl::fold< IndexList, mpl::set0<>, duplicate_tag_list_marker >::type aux; static const bool value=!(mpl::has_key::value) ; }; } } } # 18 "/usr/include/boost/multi_index/tag.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/transform.hpp" 1 3 4 # 20 "/usr/include/boost/mpl/transform.hpp" 3 4 # 1 "/usr/include/boost/mpl/pair_view.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/pair_view.hpp" 3 4 # 1 "/usr/include/boost/mpl/iterator_category.hpp" 1 3 4 # 20 "/usr/include/boost/mpl/iterator_category.hpp" 3 4 namespace boost { namespace mpl { template< typename Iterator = na > struct iterator_category { typedef typename Iterator::category type; }; template<> struct iterator_category< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : iterator_category< T1 > { }; }; template< typename Tag > struct lambda< iterator_category< na > , Tag , int_<-1> > { typedef false_ is_le; typedef iterator_category< na > result_; typedef iterator_category< na > type; }; namespace aux { template< typename T1 > struct template_arity< iterator_category< T1 > > : int_<1> { }; template<> struct template_arity< iterator_category< na > > : int_<-1> { }; } }} # 20 "/usr/include/boost/mpl/pair_view.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/min_max.hpp" 1 3 4 # 21 "/usr/include/boost/mpl/min_max.hpp" 3 4 namespace boost { namespace mpl { template< typename N1 = na , typename N2 = na > struct min : if_< less,N1,N2 > { }; template< typename N1 = na , typename N2 = na > struct max : if_< less,N2,N1 > { }; template<> struct min< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : min< T1 , T2 > { }; }; template< typename Tag > struct lambda< min< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef min< na , na > result_; typedef min< na , na > type; }; namespace aux { template< typename T1 , typename T2 > struct template_arity< min< T1 , T2 > > : int_<2> { }; template<> struct template_arity< min< na , na > > : int_<-1> { }; } template<> struct max< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : max< T1 , T2 > { }; }; template< typename Tag > struct lambda< max< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef max< na , na > result_; typedef max< na , na > type; }; namespace aux { template< typename T1 , typename T2 > struct template_arity< max< T1 , T2 > > : int_<2> { }; template<> struct template_arity< max< na , na > > : int_<-1> { }; } }} # 25 "/usr/include/boost/mpl/pair_view.hpp" 2 3 4 namespace boost { namespace mpl { namespace aux { struct pair_iter_tag; # 59 "/usr/include/boost/mpl/pair_view.hpp" 3 4 } template< typename Iter1 , typename Iter2 , typename Category > struct pair_iter { typedef aux::pair_iter_tag tag; typedef Category category; typedef Iter1 first; typedef Iter2 second; # 85 "/usr/include/boost/mpl/pair_view.hpp" 3 4 }; template< typename Iter1, typename Iter2, typename C > struct deref< pair_iter > { typedef pair< typename deref::type , typename deref::type > type; }; template< typename Iter1, typename Iter2, typename C > struct next< pair_iter > { typedef typename mpl::next::type i1_; typedef typename mpl::next::type i2_; typedef pair_iter type; }; template< typename Iter1, typename Iter2, typename C > struct prior< pair_iter > { typedef typename mpl::prior::type i1_; typedef typename mpl::prior::type i2_; typedef pair_iter type; }; template<> struct advance_impl { template< typename Iter, typename D > struct apply { typedef typename mpl::advance< typename Iter::first,D >::type i1_; typedef typename mpl::advance< typename Iter::second,D >::type i2_; typedef pair_iter type; }; }; template<> struct distance_impl { template< typename Iter1, typename Iter2 > struct apply { typedef typename mpl::distance< typename first::type , typename first::type >::type type; }; }; template< typename Sequence1 = na , typename Sequence2 = na > struct pair_view { typedef nested_begin_end_tag tag; typedef typename begin::type iter1_; typedef typename begin::type iter2_; typedef typename min< typename iterator_category::type , typename iterator_category::type >::type category_; typedef pair_iter begin; typedef pair_iter< typename end::type , typename end::type , category_ > end; }; template<> struct pair_view< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : pair_view< T1 , T2 > { }; }; template< typename Tag > struct lambda< pair_view< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef pair_view< na , na > result_; typedef pair_view< na , na > type; }; namespace aux { template< typename T1 , typename T2 > struct template_arity< pair_view< T1 , T2 > > : int_<2> { }; template<> struct template_arity< pair_view< na , na > > : int_<-1> { }; } }} # 21 "/usr/include/boost/mpl/transform.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/is_sequence.hpp" 1 3 4 # 40 "/usr/include/boost/mpl/is_sequence.hpp" 3 4 namespace boost { namespace mpl { # 90 "/usr/include/boost/mpl/is_sequence.hpp" 3 4 template< typename T = na > struct is_sequence : not_< is_same< typename begin::type, void_ > > { }; # 108 "/usr/include/boost/mpl/is_sequence.hpp" 3 4 template<> struct is_sequence< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : is_sequence< T1 > { }; }; template< typename Tag > struct lambda< is_sequence< na > , Tag , int_<-1> > { typedef false_ is_le; typedef is_sequence< na > result_; typedef is_sequence< na > type; }; namespace aux { template< typename T1 > struct template_arity< is_sequence< T1 > > : int_<1> { }; template<> struct template_arity< is_sequence< na > > : int_<-1> { }; } }} # 22 "/usr/include/boost/mpl/transform.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/bind.hpp" 1 3 4 # 25 "/usr/include/boost/mpl/transform.hpp" 2 3 4 namespace boost { namespace mpl { namespace aux { template< typename Seq , typename Op , typename In > struct transform1_impl : fold< Seq , typename In::state , bind2< typename lambda< typename In::operation >::type , _1 , bind1< typename lambda::type, _2> > > { }; template< typename Seq , typename Op , typename In > struct reverse_transform1_impl : reverse_fold< Seq , typename In::state , bind2< typename lambda< typename In::operation >::type , _1 , bind1< typename lambda::type, _2> > > { }; template< typename Seq1 , typename Seq2 , typename Op , typename In > struct transform2_impl : fold< pair_view , typename In::state , bind2< typename lambda< typename In::operation >::type , _1 , bind2< typename lambda::type , bind1,_2> , bind1,_2> > > > { }; template< typename Seq1 , typename Seq2 , typename Op , typename In > struct reverse_transform2_impl : reverse_fold< pair_view , typename In::state , bind2< typename lambda< typename In::operation >::type , _1 , bind2< typename lambda< Op >::type , bind1,_2> , bind1,_2> > > > { }; } template< typename P1 = na , typename P2 = na , typename P3 = na > struct transform1 : aux::transform1_impl< P1 , P2 , P3> { }; template< typename P1 , typename P2 > struct transform1< P1 , P2,na > : if_< has_push_back< typename clear::type> , aux::transform1_impl< P1 , P2 , back_inserter< typename clear::type > > , aux::reverse_transform1_impl< P1 , P2 , front_inserter< typename clear::type > > >::type { }; template< typename P1 = na , typename P2 = na , typename P3 = na > struct reverse_transform1 : aux::reverse_transform1_impl< P1 , P2 , P3> { }; template< typename P1 , typename P2 > struct reverse_transform1< P1 , P2,na > : if_< has_push_back , aux::reverse_transform1_impl< P1 , P2 , back_inserter< typename clear::type > > , aux::transform1_impl< P1 , P2 , front_inserter< typename clear::type > > >::type { }; template<> struct transform1< na , na , na > { template< typename T1 , typename T2 , typename T3 , typename T4 =na , typename T5 =na > struct apply : transform1< T1 , T2 , T3 > { }; }; template< typename Tag > struct lambda< transform1< na , na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef transform1< na , na , na > result_; typedef transform1< na , na , na > type; }; namespace aux { template< typename T1 , typename T2 , typename T3 > struct template_arity< transform1< T1 , T2 , T3 > > : int_<3> { }; template<> struct template_arity< transform1< na , na , na > > : int_<-1> { }; } template<> struct reverse_transform1< na , na , na > { template< typename T1 , typename T2 , typename T3 , typename T4 =na , typename T5 =na > struct apply : reverse_transform1< T1 , T2 , T3 > { }; }; template< typename Tag > struct lambda< reverse_transform1< na , na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef reverse_transform1< na , na , na > result_; typedef reverse_transform1< na , na , na > type; }; namespace aux { template< typename T1 , typename T2 , typename T3 > struct template_arity< reverse_transform1< T1 , T2 , T3 > > : int_<3> { }; template<> struct template_arity< reverse_transform1< na , na , na > > : int_<-1> { }; } template< typename P1 = na , typename P2 = na , typename P3 = na , typename P4 = na > struct transform2 : aux::transform2_impl< P1 , P2 , P3 , P4> { }; template< typename P1 , typename P2 , typename P3 > struct transform2< P1 , P2 , P3,na > : if_< has_push_back< typename clear::type> , aux::transform2_impl< P1 , P2 , P3 , back_inserter< typename clear::type > > , aux::reverse_transform2_impl< P1 , P2 , P3 , front_inserter< typename clear::type > > >::type { }; template< typename P1 = na , typename P2 = na , typename P3 = na , typename P4 = na > struct reverse_transform2 : aux::reverse_transform2_impl< P1 , P2 , P3 , P4> { }; template< typename P1 , typename P2 , typename P3 > struct reverse_transform2< P1 , P2 , P3,na > : if_< has_push_back , aux::reverse_transform2_impl< P1 , P2 , P3 , back_inserter< typename clear::type > > , aux::transform2_impl< P1 , P2 , P3 , front_inserter< typename clear::type > > >::type { }; template<> struct transform2< na , na , na , na > { template< typename T1 , typename T2 , typename T3 , typename T4 , typename T5 =na > struct apply : transform2< T1 , T2 , T3 , T4 > { }; }; template< typename Tag > struct lambda< transform2< na , na , na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef transform2< na , na , na , na > result_; typedef transform2< na , na , na , na > type; }; namespace aux { template< typename T1 , typename T2 , typename T3 , typename T4 > struct template_arity< transform2< T1 , T2 , T3 , T4 > > : int_<4> { }; template<> struct template_arity< transform2< na , na , na , na > > : int_<-1> { }; } template<> struct reverse_transform2< na , na , na , na > { template< typename T1 , typename T2 , typename T3 , typename T4 , typename T5 =na > struct apply : reverse_transform2< T1 , T2 , T3 , T4 > { }; }; template< typename Tag > struct lambda< reverse_transform2< na , na , na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef reverse_transform2< na , na , na , na > result_; typedef reverse_transform2< na , na , na , na > type; }; namespace aux { template< typename T1 , typename T2 , typename T3 , typename T4 > struct template_arity< reverse_transform2< T1 , T2 , T3 , T4 > > : int_<4> { }; template<> struct template_arity< reverse_transform2< na , na , na , na > > : int_<-1> { }; } # 138 "/usr/include/boost/mpl/transform.hpp" 3 4 template< typename Seq1 = na , typename Seq2OrOperation = na , typename OperationOrInserter = na , typename Inserter = na > struct transform { typedef typename eval_if< or_< is_na , is_lambda_expression< Seq2OrOperation > , not_< is_sequence > > , transform1 , transform2 >::type type; }; template<> struct transform< na , na , na , na > { template< typename T1 , typename T2 , typename T3 , typename T4 , typename T5 =na > struct apply : transform< T1 , T2 , T3 , T4 > { }; }; template< typename Tag > struct lambda< transform< na , na , na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef transform< na , na , na , na > result_; typedef transform< na , na , na , na > type; }; namespace aux { template< typename T1 , typename T2 , typename T3 , typename T4 > struct template_arity< transform< T1 , T2 , T3 , T4 > > : int_<4> { }; template<> struct template_arity< transform< na , na , na , na > > : int_<-1> { }; } template< typename Seq1 = na , typename Seq2OrOperation = na , typename OperationOrInserter = na , typename Inserter = na > struct reverse_transform { typedef typename eval_if< or_< is_na , is_lambda_expression< Seq2OrOperation > , not_< is_sequence > > , reverse_transform1 , reverse_transform2 >::type type; }; template<> struct reverse_transform< na , na , na , na > { template< typename T1 , typename T2 , typename T3 , typename T4 , typename T5 =na > struct apply : reverse_transform< T1 , T2 , T3 , T4 > { }; }; template< typename Tag > struct lambda< reverse_transform< na , na , na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef reverse_transform< na , na , na , na > result_; typedef reverse_transform< na , na , na , na > type; }; namespace aux { template< typename T1 , typename T2 , typename T3 , typename T4 > struct template_arity< reverse_transform< T1 , T2 , T3 , T4 > > : int_<4> { }; template<> struct template_arity< reverse_transform< na , na , na , na > > : int_<-1> { }; } }} # 20 "/usr/include/boost/multi_index/tag.hpp" 2 3 4 # 46 "/usr/include/boost/multi_index/tag.hpp" 3 4 namespace boost{ namespace multi_index{ namespace detail{ struct tag_marker{}; template struct is_tag { static const bool value=(is_base_and_derived::value); }; } template< typename T0 =mpl::na , typename T1 =mpl::na , typename T2 =mpl::na , typename T3 =mpl::na , typename T4 =mpl::na , typename T5 =mpl::na , typename T6 =mpl::na , typename T7 =mpl::na , typename T8 =mpl::na , typename T9 =mpl::na , typename T10 =mpl::na , typename T11 =mpl::na , typename T12 =mpl::na , typename T13 =mpl::na , typename T14 =mpl::na , typename T15 =mpl::na , typename T16 =mpl::na , typename T17 =mpl::na , typename T18 =mpl::na , typename T19 =mpl::na > struct tag:private detail::tag_marker { typedef typename mpl::transform< mpl::vector< T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19>, mpl::identity >::type type; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((detail::no_duplicate_tags::value) == 0 ? false : true) >)> boost_static_assert_typedef_79 __attribute__((unused)); }; } } # 22 "/usr/include/boost/multi_index/detail/ord_index_args.hpp" 2 3 4 namespace boost{ namespace multi_index{ namespace detail{ # 43 "/usr/include/boost/multi_index/detail/ord_index_args.hpp" 3 4 template struct index_args_default_compare { typedef std::less type; }; template struct ordered_index_args { typedef is_tag full_form; typedef typename mpl::if_< full_form, Arg1, tag< > >::type tag_list_type; typedef typename mpl::if_< full_form, Arg2, Arg1>::type key_from_value_type; typedef typename mpl::if_< full_form, Arg3, Arg2>::type supplied_compare_type; typedef typename mpl::eval_if< mpl::is_na, index_args_default_compare, mpl::identity >::type compare_type; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((is_tag::value) == 0 ? false : true) >)> boost_static_assert_typedef_72 __attribute__((unused)); typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((!mpl::is_na::value) == 0 ? false : true) >)> boost_static_assert_typedef_73 __attribute__((unused)); typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((!mpl::is_na::value) == 0 ? false : true) >)> boost_static_assert_typedef_74 __attribute__((unused)); }; } } } # 17 "/usr/include/boost/multi_index/ordered_index_fwd.hpp" 2 3 4 namespace boost{ namespace multi_index{ namespace detail{ template< typename KeyFromValue,typename Compare, typename SuperMeta,typename TagList,typename Category > class ordered_index; template< typename KeyFromValue1,typename Compare1, typename SuperMeta1,typename TagList1,typename Category1, typename KeyFromValue2,typename Compare2, typename SuperMeta2,typename TagList2,typename Category2 > bool operator==( const ordered_index< KeyFromValue1,Compare1,SuperMeta1,TagList1,Category1>& x, const ordered_index< KeyFromValue2,Compare2,SuperMeta2,TagList2,Category2>& y); template< typename KeyFromValue1,typename Compare1, typename SuperMeta1,typename TagList1,typename Category1, typename KeyFromValue2,typename Compare2, typename SuperMeta2,typename TagList2,typename Category2 > bool operator<( const ordered_index< KeyFromValue1,Compare1,SuperMeta1,TagList1,Category1>& x, const ordered_index< KeyFromValue2,Compare2,SuperMeta2,TagList2,Category2>& y); template< typename KeyFromValue1,typename Compare1, typename SuperMeta1,typename TagList1,typename Category1, typename KeyFromValue2,typename Compare2, typename SuperMeta2,typename TagList2,typename Category2 > bool operator!=( const ordered_index< KeyFromValue1,Compare1,SuperMeta1,TagList1,Category1>& x, const ordered_index< KeyFromValue2,Compare2,SuperMeta2,TagList2,Category2>& y); template< typename KeyFromValue1,typename Compare1, typename SuperMeta1,typename TagList1,typename Category1, typename KeyFromValue2,typename Compare2, typename SuperMeta2,typename TagList2,typename Category2 > bool operator>( const ordered_index< KeyFromValue1,Compare1,SuperMeta1,TagList1,Category1>& x, const ordered_index< KeyFromValue2,Compare2,SuperMeta2,TagList2,Category2>& y); template< typename KeyFromValue1,typename Compare1, typename SuperMeta1,typename TagList1,typename Category1, typename KeyFromValue2,typename Compare2, typename SuperMeta2,typename TagList2,typename Category2 > bool operator>=( const ordered_index< KeyFromValue1,Compare1,SuperMeta1,TagList1,Category1>& x, const ordered_index< KeyFromValue2,Compare2,SuperMeta2,TagList2,Category2>& y); template< typename KeyFromValue1,typename Compare1, typename SuperMeta1,typename TagList1,typename Category1, typename KeyFromValue2,typename Compare2, typename SuperMeta2,typename TagList2,typename Category2 > bool operator<=( const ordered_index< KeyFromValue1,Compare1,SuperMeta1,TagList1,Category1>& x, const ordered_index< KeyFromValue2,Compare2,SuperMeta2,TagList2,Category2>& y); template< typename KeyFromValue,typename Compare, typename SuperMeta,typename TagList,typename Category > void swap( ordered_index& x, ordered_index& y); } template struct ordered_unique; template struct ordered_non_unique; } } # 20 "/usr/include/boost/multi_index_container_fwd.hpp" 2 3 4 namespace boost{ namespace multi_index{ template< typename Value, typename IndexSpecifierList=indexed_by > >, typename Allocator=std::allocator > class multi_index_container; template struct nth_index; template struct index; template struct nth_index_iterator; template struct nth_index_const_iterator; template struct index_iterator; template struct index_const_iterator; template< typename Value1,typename IndexSpecifierList1,typename Allocator1, typename Value2,typename IndexSpecifierList2,typename Allocator2 > bool operator==( const multi_index_container& x, const multi_index_container& y); template< typename Value1,typename IndexSpecifierList1,typename Allocator1, typename Value2,typename IndexSpecifierList2,typename Allocator2 > bool operator<( const multi_index_container& x, const multi_index_container& y); template< typename Value1,typename IndexSpecifierList1,typename Allocator1, typename Value2,typename IndexSpecifierList2,typename Allocator2 > bool operator!=( const multi_index_container& x, const multi_index_container& y); template< typename Value1,typename IndexSpecifierList1,typename Allocator1, typename Value2,typename IndexSpecifierList2,typename Allocator2 > bool operator>( const multi_index_container& x, const multi_index_container& y); template< typename Value1,typename IndexSpecifierList1,typename Allocator1, typename Value2,typename IndexSpecifierList2,typename Allocator2 > bool operator>=( const multi_index_container& x, const multi_index_container& y); template< typename Value1,typename IndexSpecifierList1,typename Allocator1, typename Value2,typename IndexSpecifierList2,typename Allocator2 > bool operator<=( const multi_index_container& x, const multi_index_container& y); template void swap( multi_index_container& x, multi_index_container& y); } using multi_index::multi_index_container; } # 32 "/usr/include/boost/multi_index_container.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/detail/access_specifier.hpp" 1 3 4 # 33 "/usr/include/boost/multi_index_container.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/detail/adl_swap.hpp" 1 3 4 # 19 "/usr/include/boost/multi_index/detail/adl_swap.hpp" 3 4 namespace boost{ namespace multi_index{ namespace detail{ template void adl_swap(T& x,T& y) { using std::swap; swap(x,y); } } } } # 34 "/usr/include/boost/multi_index_container.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/detail/base_type.hpp" 1 3 4 # 19 "/usr/include/boost/multi_index/detail/base_type.hpp" 3 4 # 1 "/usr/include/boost/mpl/apply.hpp" 1 3 4 # 20 "/usr/include/boost/multi_index/detail/base_type.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/detail/index_base.hpp" 1 3 4 # 23 "/usr/include/boost/multi_index/detail/index_base.hpp" 3 4 # 1 "/usr/include/boost/multi_index/detail/copy_map.hpp" 1 3 4 # 19 "/usr/include/boost/multi_index/detail/copy_map.hpp" 3 4 # 1 "/usr/include/boost/multi_index/detail/auto_space.hpp" 1 3 4 # 23 "/usr/include/boost/multi_index/detail/auto_space.hpp" 3 4 namespace boost{ namespace multi_index{ namespace detail{ # 45 "/usr/include/boost/multi_index/detail/auto_space.hpp" 3 4 template > struct auto_space:private noncopyable { typedef typename boost::detail::allocator::rebind_to< Allocator,T >::type::pointer pointer; explicit auto_space(const Allocator& al=Allocator(),std::size_t n=1): al_(al),n_(n),data_(n_?al_.allocate(n_):pointer(0)) {} ~auto_space() { if(n_)al_.deallocate(data_,n_); } Allocator get_allocator()const{return al_;} pointer data()const{return data_;} void swap(auto_space& x) { if(al_!=x.al_)adl_swap(al_,x.al_); std::swap(n_,x.n_); std::swap(data_,x.data_); } private: typename boost::detail::allocator::rebind_to< Allocator,T>::type al_; std::size_t n_; pointer data_; }; template void swap(auto_space& x,auto_space& y) { x.swap(y); } } } } # 20 "/usr/include/boost/multi_index/detail/copy_map.hpp" 2 3 4 namespace boost{ namespace multi_index{ namespace detail{ # 42 "/usr/include/boost/multi_index/detail/copy_map.hpp" 3 4 template struct copy_map_entry { copy_map_entry(Node* f,Node* s):first(f),second(s){} Node* first; Node* second; bool operator<(const copy_map_entry& x)const { return std::less()(first,x.first); } }; template class copy_map:private noncopyable { public: typedef const copy_map_entry* const_iterator; copy_map( const Allocator& al,std::size_t size,Node* header_org,Node* header_cpy): al_(al),size_(size),spc(al_,size_),n(0), header_org_(header_org),header_cpy_(header_cpy),released(false) {} ~copy_map() { if(!released){ for(std::size_t i=0;isecond->value()); deallocate((spc.data()+i)->second); } } } const_iterator begin()const{return &*spc.data();} const_iterator end()const{return &*(spc.data()+n);} void clone(Node* node) { (spc.data()+n)->first=node; (spc.data()+n)->second=&*al_.allocate(1); { try{ boost::detail::allocator::construct( &(spc.data()+n)->second->value(),node->value()); } catch(...){ deallocate((spc.data()+n)->second); throw;; } } ++n; if(n==size_)std::sort(&*spc.data(),&*spc.data()+size_); } Node* find(Node* node)const { if(node==header_org_)return header_cpy_; return std::lower_bound( begin(),end(),copy_map_entry(node,0))->second; } void release() { released=true; } private: typedef typename boost::detail::allocator::rebind_to< Allocator,Node >::type allocator_type; typedef typename allocator_type::pointer allocator_pointer; allocator_type al_; std::size_t size_; auto_space,Allocator> spc; std::size_t n; Node* header_org_; Node* header_cpy_; bool released; void deallocate(Node* node) { al_.deallocate(static_cast(node),1); } }; } } } # 24 "/usr/include/boost/multi_index/detail/index_base.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/detail/do_not_copy_elements_tag.hpp" 1 3 4 # 16 "/usr/include/boost/multi_index/detail/do_not_copy_elements_tag.hpp" 3 4 namespace boost{ namespace multi_index{ namespace detail{ struct do_not_copy_elements_tag{}; } } } # 25 "/usr/include/boost/multi_index/detail/index_base.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/detail/node_type.hpp" 1 3 4 # 18 "/usr/include/boost/multi_index/detail/node_type.hpp" 3 4 # 1 "/usr/include/boost/mpl/bind.hpp" 1 3 4 # 19 "/usr/include/boost/multi_index/detail/node_type.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/reverse_iter_fold.hpp" 1 3 4 # 20 "/usr/include/boost/mpl/reverse_iter_fold.hpp" 3 4 # 1 "/usr/include/boost/mpl/arg.hpp" 1 3 4 # 21 "/usr/include/boost/mpl/reverse_iter_fold.hpp" 2 3 4 # 1 "/usr/include/boost/mpl/aux_/reverse_iter_fold_impl.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/aux_/reverse_iter_fold_impl.hpp" 3 4 # 1 "/usr/include/boost/mpl/apply.hpp" 1 3 4 # 20 "/usr/include/boost/mpl/aux_/reverse_iter_fold_impl.hpp" 2 3 4 # 34 "/usr/include/boost/mpl/aux_/reverse_iter_fold_impl.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/preprocessed/gcc/reverse_iter_fold_impl.hpp" 1 3 4 # 12 "/usr/include/boost/mpl/aux_/preprocessed/gcc/reverse_iter_fold_impl.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< long N , typename First , typename Last , typename State , typename BackwardOp , typename ForwardOp > struct reverse_iter_fold_impl; template< typename First , typename Last , typename State , typename BackwardOp , typename ForwardOp > struct reverse_iter_fold_impl< 0,First,Last,State,BackwardOp,ForwardOp > { typedef First iter0; typedef State fwd_state0; typedef fwd_state0 bkwd_state0; typedef bkwd_state0 state; typedef iter0 iterator; }; template< typename First , typename Last , typename State , typename BackwardOp , typename ForwardOp > struct reverse_iter_fold_impl< 1,First,Last,State,BackwardOp,ForwardOp > { typedef First iter0; typedef State fwd_state0; typedef typename apply2< ForwardOp,fwd_state0,iter0 >::type fwd_state1; typedef typename mpl::next::type iter1; typedef fwd_state1 bkwd_state1; typedef typename apply2< BackwardOp,bkwd_state1,iter0 >::type bkwd_state0; typedef bkwd_state0 state; typedef iter1 iterator; }; template< typename First , typename Last , typename State , typename BackwardOp , typename ForwardOp > struct reverse_iter_fold_impl< 2,First,Last,State,BackwardOp,ForwardOp > { typedef First iter0; typedef State fwd_state0; typedef typename apply2< ForwardOp,fwd_state0,iter0 >::type fwd_state1; typedef typename mpl::next::type iter1; typedef typename apply2< ForwardOp,fwd_state1,iter1 >::type fwd_state2; typedef typename mpl::next::type iter2; typedef fwd_state2 bkwd_state2; typedef typename apply2< BackwardOp,bkwd_state2,iter1 >::type bkwd_state1; typedef typename apply2< BackwardOp,bkwd_state1,iter0 >::type bkwd_state0; typedef bkwd_state0 state; typedef iter2 iterator; }; template< typename First , typename Last , typename State , typename BackwardOp , typename ForwardOp > struct reverse_iter_fold_impl< 3,First,Last,State,BackwardOp,ForwardOp > { typedef First iter0; typedef State fwd_state0; typedef typename apply2< ForwardOp,fwd_state0,iter0 >::type fwd_state1; typedef typename mpl::next::type iter1; typedef typename apply2< ForwardOp,fwd_state1,iter1 >::type fwd_state2; typedef typename mpl::next::type iter2; typedef typename apply2< ForwardOp,fwd_state2,iter2 >::type fwd_state3; typedef typename mpl::next::type iter3; typedef fwd_state3 bkwd_state3; typedef typename apply2< BackwardOp,bkwd_state3,iter2 >::type bkwd_state2; typedef typename apply2< BackwardOp,bkwd_state2,iter1 >::type bkwd_state1; typedef typename apply2< BackwardOp,bkwd_state1,iter0 >::type bkwd_state0; typedef bkwd_state0 state; typedef iter3 iterator; }; template< typename First , typename Last , typename State , typename BackwardOp , typename ForwardOp > struct reverse_iter_fold_impl< 4,First,Last,State,BackwardOp,ForwardOp > { typedef First iter0; typedef State fwd_state0; typedef typename apply2< ForwardOp,fwd_state0,iter0 >::type fwd_state1; typedef typename mpl::next::type iter1; typedef typename apply2< ForwardOp,fwd_state1,iter1 >::type fwd_state2; typedef typename mpl::next::type iter2; typedef typename apply2< ForwardOp,fwd_state2,iter2 >::type fwd_state3; typedef typename mpl::next::type iter3; typedef typename apply2< ForwardOp,fwd_state3,iter3 >::type fwd_state4; typedef typename mpl::next::type iter4; typedef fwd_state4 bkwd_state4; typedef typename apply2< BackwardOp,bkwd_state4,iter3 >::type bkwd_state3; typedef typename apply2< BackwardOp,bkwd_state3,iter2 >::type bkwd_state2; typedef typename apply2< BackwardOp,bkwd_state2,iter1 >::type bkwd_state1; typedef typename apply2< BackwardOp,bkwd_state1,iter0 >::type bkwd_state0; typedef bkwd_state0 state; typedef iter4 iterator; }; template< long N , typename First , typename Last , typename State , typename BackwardOp , typename ForwardOp > struct reverse_iter_fold_impl { typedef First iter0; typedef State fwd_state0; typedef typename apply2< ForwardOp,fwd_state0,iter0 >::type fwd_state1; typedef typename mpl::next::type iter1; typedef typename apply2< ForwardOp,fwd_state1,iter1 >::type fwd_state2; typedef typename mpl::next::type iter2; typedef typename apply2< ForwardOp,fwd_state2,iter2 >::type fwd_state3; typedef typename mpl::next::type iter3; typedef typename apply2< ForwardOp,fwd_state3,iter3 >::type fwd_state4; typedef typename mpl::next::type iter4; typedef reverse_iter_fold_impl< ( (N - 4) < 0 ? 0 : N - 4 ) , iter4 , Last , fwd_state4 , BackwardOp , ForwardOp > nested_chunk; typedef typename nested_chunk::state bkwd_state4; typedef typename apply2< BackwardOp,bkwd_state4,iter3 >::type bkwd_state3; typedef typename apply2< BackwardOp,bkwd_state3,iter2 >::type bkwd_state2; typedef typename apply2< BackwardOp,bkwd_state2,iter1 >::type bkwd_state1; typedef typename apply2< BackwardOp,bkwd_state1,iter0 >::type bkwd_state0; typedef bkwd_state0 state; typedef typename nested_chunk::iterator iterator; }; template< typename First , typename Last , typename State , typename BackwardOp , typename ForwardOp > struct reverse_iter_fold_impl< -1,First,Last,State,BackwardOp,ForwardOp > { typedef reverse_iter_fold_impl< -1 , typename mpl::next::type , Last , typename apply2< ForwardOp,State,First >::type , BackwardOp , ForwardOp > nested_step; typedef typename apply2< BackwardOp , typename nested_step::state , First >::type state; typedef typename nested_step::iterator iterator; }; template< typename Last , typename State , typename BackwardOp , typename ForwardOp > struct reverse_iter_fold_impl< -1,Last,Last,State,BackwardOp,ForwardOp > { typedef State state; typedef Last iterator; }; }}} # 38 "/usr/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 35 "/usr/include/boost/mpl/aux_/reverse_iter_fold_impl.hpp" 2 3 4 # 23 "/usr/include/boost/mpl/reverse_iter_fold.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Sequence = na , typename State = na , typename BackwardOp = na , typename ForwardOp = arg<1> > struct reverse_iter_fold { typedef typename aux::reverse_iter_fold_impl< ::boost::mpl::O1_size::value , typename begin::type , typename end::type , State , typename lambda::type , typename lambda::type >::state type; }; template<> struct reverse_iter_fold< na , na , na > { template< typename T1 , typename T2 , typename T3 , typename T4 =na , typename T5 =na > struct apply : reverse_iter_fold< T1 , T2 , T3 > { }; }; template< typename Tag > struct lambda< reverse_iter_fold< na , na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef reverse_iter_fold< na , na , na > result_; typedef reverse_iter_fold< na , na , na > type; }; namespace aux { template< typename T1 , typename T2 , typename T3 > struct template_arity< reverse_iter_fold< T1 , T2 , T3 > > : int_<3> { }; template<> struct template_arity< reverse_iter_fold< na , na , na > > : int_<-1> { }; } }} # 20 "/usr/include/boost/multi_index/detail/node_type.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/detail/header_holder.hpp" 1 3 4 # 18 "/usr/include/boost/multi_index/detail/header_holder.hpp" 3 4 namespace boost{ namespace multi_index{ namespace detail{ # 32 "/usr/include/boost/multi_index/detail/header_holder.hpp" 3 4 template struct header_holder:private noncopyable { header_holder():member(final().allocate_node()){} ~header_holder(){final().deallocate_node(&*member);} NodeTypePtr member; private: Final& final(){return *static_cast(this);} }; } } } # 23 "/usr/include/boost/multi_index/detail/node_type.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/detail/index_node_base.hpp" 1 3 4 # 17 "/usr/include/boost/multi_index/detail/index_node_base.hpp" 3 4 # 1 "/usr/include/boost/type_traits/aligned_storage.hpp" 1 3 4 # 18 "/usr/include/boost/multi_index/detail/index_node_base.hpp" 2 3 4 # 1 "/usr/include/boost/archive/archive_exception.hpp" 1 3 4 # 20 "/usr/include/boost/archive/archive_exception.hpp" 3 4 # 1 "/usr/include/boost/assert.hpp" 1 3 4 # 54 "/usr/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 64 "/usr/include/assert.h" 3 4 extern "C" { extern void __assert_fail (const char *__assertion, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert_perror_fail (int __errnum, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert (const char *__assertion, const char *__file, int __line) throw () __attribute__ ((__noreturn__)); } # 55 "/usr/include/boost/assert.hpp" 2 3 4 # 21 "/usr/include/boost/archive/archive_exception.hpp" 2 3 4 # 1 "/usr/include/boost/archive/detail/decl.hpp" 1 3 4 # 26 "/usr/include/boost/archive/archive_exception.hpp" 2 3 4 # 35 "/usr/include/boost/archive/archive_exception.hpp" 3 4 # 1 "/usr/include/boost/archive/detail/abi_prefix.hpp" 1 3 4 # 11 "/usr/include/boost/archive/detail/abi_prefix.hpp" 3 4 # 1 "/usr/include/boost/config/abi_prefix.hpp" 1 3 4 # 12 "/usr/include/boost/archive/detail/abi_prefix.hpp" 2 3 4 # 36 "/usr/include/boost/archive/archive_exception.hpp" 2 3 4 namespace boost { namespace archive { class archive_exception : public virtual std::exception { protected: char m_buffer[128]; public: typedef enum { no_exception, other_exception, unregistered_class, invalid_signature, unsupported_version, pointer_conflict, incompatible_native_format, array_size_too_short, input_stream_error, invalid_class_name, unregistered_cast, unsupported_class_version, multiple_code_instantiation, output_stream_error } exception_code; public: exception_code code; archive_exception( exception_code c, const char * e1 = __null, const char * e2 = __null ); virtual ~archive_exception() throw(); virtual const char *what() const throw(); protected: unsigned int append(unsigned int l, const char * a); archive_exception(); }; } } # 1 "/usr/include/boost/archive/detail/abi_suffix.hpp" 1 3 4 # 14 "/usr/include/boost/archive/detail/abi_suffix.hpp" 3 4 # 1 "/usr/include/boost/config/abi_suffix.hpp" 1 3 4 # 15 "/usr/include/boost/archive/detail/abi_suffix.hpp" 2 3 4 # 98 "/usr/include/boost/archive/archive_exception.hpp" 2 3 4 # 22 "/usr/include/boost/multi_index/detail/index_node_base.hpp" 2 3 4 # 1 "/usr/include/boost/serialization/access.hpp" 1 3 4 # 21 "/usr/include/boost/serialization/access.hpp" 3 4 # 1 "/usr/include/boost/serialization/pfto.hpp" 1 3 4 # 43 "/usr/include/boost/serialization/pfto.hpp" 3 4 namespace boost { namespace serialization { template struct pfto_wrapper { const T & t; operator const T & (){ return t; } pfto_wrapper (const T & rhs) : t(rhs) {} }; template pfto_wrapper< T > make_pfto_wrapper(const T & t, int){ return pfto_wrapper< T >(t); } template pfto_wrapper< T > make_pfto_wrapper(const pfto_wrapper< T > & t, int){ return t; } } } # 22 "/usr/include/boost/serialization/access.hpp" 2 3 4 namespace boost { namespace archive { namespace detail { template class iserializer; template class oserializer; } } namespace serialization { template inline void serialize_adl(Archive &, T &, const unsigned int); namespace detail { template struct member_saver; template struct member_loader; } class access { public: template friend struct detail::member_saver; template friend struct detail::member_loader; template friend class archive::detail::iserializer; template friend class archive::detail::oserializer; template friend inline void serialize( Archive & ar, T & t, const unsigned int file_version ); template friend inline void save_construct_data( Archive & ar, const T * t, const unsigned int file_version ); template friend inline void load_construct_data( Archive & ar, T * t, const unsigned int file_version ); template static void member_save( Archive & ar, T & t, const unsigned int file_version ){ t.save(ar, file_version); } template static void member_load( Archive & ar, T & t, const unsigned int file_version ){ t.load(ar, file_version); } template static void serialize( Archive & ar, T & t, const unsigned int file_version ){ # 118 "/usr/include/boost/serialization/access.hpp" 3 4 t.serialize(ar, file_version); } template static void destroy( const T * t) { delete const_cast(t); } template static void construct(T * t){ ::new(t)T; } template static T & cast_reference(U & u){ return static_cast(u); } template static T * cast_pointer(U * u){ return static_cast(u); } }; } } # 23 "/usr/include/boost/multi_index/detail/index_node_base.hpp" 2 3 4 namespace boost{ namespace multi_index{ namespace detail{ template struct pod_value_holder { typename aligned_storage< sizeof(Value), alignment_of::value >::type space; }; template struct index_node_base:private pod_value_holder { typedef index_node_base base_type; typedef Value value_type; typedef Allocator allocator_type; value_type& value() { return *static_cast( static_cast(&this->space)); } const value_type& value()const { return *static_cast( static_cast(&this->space)); } static index_node_base* from_value(const value_type* p) { return static_cast( reinterpret_cast*>( const_cast(p))); } private: friend class boost::serialization::access; template void serialize(Archive&,const unsigned int) { } }; template Node* node_from_value(const Value* p) { typedef typename Node::allocator_type allocator_type; return static_cast( index_node_base::from_value(p)); } } } # 109 "/usr/include/boost/multi_index/detail/index_node_base.hpp" 3 4 namespace multi_index{ namespace detail{ template inline void load_construct_data( Archive&,boost::multi_index::detail::index_node_base*, const unsigned int) { throw_exception( archive::archive_exception(archive::archive_exception::other_exception)); } } } } # 24 "/usr/include/boost/multi_index/detail/node_type.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/detail/is_index_list.hpp" 1 3 4 # 17 "/usr/include/boost/multi_index/detail/is_index_list.hpp" 3 4 # 1 "/usr/include/boost/mpl/empty.hpp" 1 3 4 # 19 "/usr/include/boost/mpl/empty.hpp" 3 4 # 1 "/usr/include/boost/mpl/aux_/empty_impl.hpp" 1 3 4 # 22 "/usr/include/boost/mpl/aux_/empty_impl.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag > struct empty_impl { template< typename Sequence > struct apply : is_same< typename begin::type , typename end::type > { }; }; template<> struct empty_impl {}; }} # 20 "/usr/include/boost/mpl/empty.hpp" 2 3 4 namespace boost { namespace mpl { template< typename Sequence = na > struct empty : empty_impl< typename sequence_tag::type > ::template apply< Sequence > { }; template<> struct empty< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : empty< T1 > { }; }; template< typename Tag > struct lambda< empty< na > , Tag , int_<-1> > { typedef false_ is_le; typedef empty< na > result_; typedef empty< na > type; }; namespace aux { template< typename T1 > struct template_arity< empty< T1 > > : int_<1> { }; template<> struct template_arity< empty< na > > : int_<-1> { }; } }} # 18 "/usr/include/boost/multi_index/detail/is_index_list.hpp" 2 3 4 namespace boost{ namespace multi_index{ namespace detail{ template struct is_index_list { static const bool mpl_sequence=mpl::is_sequence::value; static const bool non_empty=!mpl::empty::value; static const bool value=mpl_sequence&&non_empty; }; } } } # 25 "/usr/include/boost/multi_index/detail/node_type.hpp" 2 3 4 namespace boost{ namespace multi_index{ namespace detail{ struct index_node_applier { template struct apply { typedef typename mpl::deref::type index_specifier; typedef typename index_specifier:: template node_class::type type; }; }; template struct multi_index_node_type { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((detail::is_index_list::value) == 0 ? false : true) >)> boost_static_assert_typedef_51 __attribute__((unused)); typedef typename mpl::reverse_iter_fold< IndexSpecifierList, index_node_base, mpl::bind2 >::type type; }; } } } # 26 "/usr/include/boost/multi_index/detail/index_base.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/detail/vartempl_support.hpp" 1 3 4 # 87 "/usr/include/boost/multi_index/detail/vartempl_support.hpp" 3 4 namespace boost{namespace multi_index{namespace detail{ struct noarg{}; }}} # 159 "/usr/include/boost/multi_index/detail/vartempl_support.hpp" 3 4 namespace boost{ namespace multi_index{ namespace detail{ # 191 "/usr/include/boost/multi_index/detail/vartempl_support.hpp" 3 4 template< typename Value > Value* vartempl_placement_new( Value* x , const noarg & , const noarg & , const noarg & , const noarg & , const noarg & ) { return new(x) Value( ); } template< typename Value , typename T0 > Value* vartempl_placement_new( Value* x , const T0 & t0 , const noarg & , const noarg & , const noarg & , const noarg & ) { return new(x) Value( boost::forward(t0)); } template< typename Value , typename T0 , typename T1 > Value* vartempl_placement_new( Value* x , const T0 & t0 , const T1 & t1 , const noarg & , const noarg & , const noarg & ) { return new(x) Value( boost::forward(t0) , boost::forward(t1)); } template< typename Value , typename T0 , typename T1 , typename T2 > Value* vartempl_placement_new( Value* x , const T0 & t0 , const T1 & t1 , const T2 & t2 , const noarg & , const noarg & ) { return new(x) Value( boost::forward(t0) , boost::forward(t1) , boost::forward(t2)); } template< typename Value , typename T0 , typename T1 , typename T2 , typename T3 > Value* vartempl_placement_new( Value* x , const T0 & t0 , const T1 & t1 , const T2 & t2 , const T3 & t3 , const noarg & ) { return new(x) Value( boost::forward(t0) , boost::forward(t1) , boost::forward(t2) , boost::forward(t3)); } template< typename Value , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 > Value* vartempl_placement_new( Value* x , const T0 & t0 , const T1 & t1 , const T2 & t2 , const T3 & t3 , const T4 & t4 ) { return new(x) Value( boost::forward(t0) , boost::forward(t1) , boost::forward(t2) , boost::forward(t3) , boost::forward(t4)); } } } } # 27 "/usr/include/boost/multi_index/detail/index_base.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/detail/index_loader.hpp" 1 3 4 # 21 "/usr/include/boost/multi_index/detail/index_loader.hpp" 3 4 # 1 "/usr/include/boost/serialization/nvp.hpp" 1 3 4 # 27 "/usr/include/boost/serialization/nvp.hpp" 3 4 # 1 "/usr/include/boost/serialization/level.hpp" 1 3 4 # 33 "/usr/include/boost/serialization/level.hpp" 3 4 # 1 "/usr/include/boost/serialization/level_enum.hpp" 1 3 4 # 19 "/usr/include/boost/serialization/level_enum.hpp" 3 4 namespace boost { namespace serialization { enum level_type { not_serializable = 0, primitive_type = 1, object_serializable = 2, object_class_info = 3 }; } } # 34 "/usr/include/boost/serialization/level.hpp" 2 3 4 namespace boost { namespace serialization { struct basic_traits; template struct implementation_level_impl { template struct traits_class_level { typedef typename U::level type; }; typedef mpl::integral_c_tag tag; typedef typename mpl::eval_if< is_base_and_derived, traits_class_level< T >, typename mpl::eval_if< is_fundamental< T >, mpl::int_, typename mpl::eval_if< is_class< T >, mpl::int_, typename mpl::eval_if< is_array< T >, mpl::int_, typename mpl::eval_if< is_enum< T >, mpl::int_, mpl::int_ > > > > >::type type; static const int value = type::value; }; template struct implementation_level : public implementation_level_impl { }; template inline bool operator>=(implementation_level< T > t, enum level_type l) { return t.value >= (int)l; } } } # 28 "/usr/include/boost/serialization/nvp.hpp" 2 3 4 # 1 "/usr/include/boost/serialization/tracking.hpp" 1 3 4 # 31 "/usr/include/boost/serialization/tracking.hpp" 3 4 # 1 "/usr/include/boost/serialization/tracking_enum.hpp" 1 3 4 # 19 "/usr/include/boost/serialization/tracking_enum.hpp" 3 4 namespace boost { namespace serialization { enum tracking_type { track_never = 0, track_selectively = 1, track_always = 2 }; } } # 32 "/usr/include/boost/serialization/tracking.hpp" 2 3 4 # 1 "/usr/include/boost/serialization/type_info_implementation.hpp" 1 3 4 # 27 "/usr/include/boost/serialization/type_info_implementation.hpp" 3 4 # 1 "/usr/include/boost/serialization/traits.hpp" 1 3 4 # 35 "/usr/include/boost/serialization/traits.hpp" 3 4 namespace boost { namespace serialization { struct basic_traits {}; template struct extended_type_info_impl; template< class T, int Level, int Tracking, unsigned int Version = 0, class ETII = extended_type_info_impl< T >, class Wrapper = mpl::false_ > struct traits : public basic_traits { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((Version == 0 || Level >= object_class_info) == 0 ? false : true) >)> boost_static_assert_typedef_53 __attribute__((unused)); typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((Tracking == track_never || Level >= object_serializable) == 0 ? false : true) >)> boost_static_assert_typedef_54 __attribute__((unused)); typedef typename mpl::int_ level; typedef typename mpl::int_ tracking; typedef typename mpl::int_ version; typedef ETII type_info_implementation; typedef Wrapper is_wrapper; }; } } # 28 "/usr/include/boost/serialization/type_info_implementation.hpp" 2 3 4 namespace boost { namespace serialization { template struct type_info_implementation { template struct traits_class_typeinfo_implementation { typedef typename U::type_info_implementation::type type; }; typedef typename mpl::eval_if< is_base_and_derived, traits_class_typeinfo_implementation< T >, mpl::identity< typename extended_type_info_impl< T >::type > >::type type; }; } } # 33 "/usr/include/boost/serialization/tracking.hpp" 2 3 4 namespace boost { namespace serialization { struct basic_traits; template struct tracking_level_impl { template struct traits_class_tracking { typedef typename U::tracking type; }; typedef mpl::integral_c_tag tag; typedef typename mpl::eval_if< is_base_and_derived, traits_class_tracking< T >, typename mpl::eval_if< is_pointer< T >, mpl::int_, typename mpl::eval_if< typename mpl::equal_to< implementation_level< T >, mpl::int_ >, mpl::int_, mpl::int_ > > >::type type; static const int value = type::value; }; template struct tracking_level : public tracking_level_impl { }; template inline bool operator>=(tracking_level< T > t, enum tracking_type l) { return t.value >= (int)l; } } } # 29 "/usr/include/boost/serialization/nvp.hpp" 2 3 4 # 1 "/usr/include/boost/serialization/split_member.hpp" 1 3 4 # 25 "/usr/include/boost/serialization/split_member.hpp" 3 4 namespace boost { namespace archive { namespace detail { template class interface_oarchive; template class interface_iarchive; } } namespace serialization { namespace detail { template struct member_saver { static void invoke( Archive & ar, const T & t, const unsigned int file_version ){ access::member_save(ar, t, file_version); } }; template struct member_loader { static void invoke( Archive & ar, T & t, const unsigned int file_version ){ access::member_load(ar, t, file_version); } }; } template inline void split_member( Archive & ar, T & t, const unsigned int file_version ){ typedef typename mpl::eval_if< typename Archive::is_saving, mpl::identity >, mpl::identity > >::type typex; typex::invoke(ar, t, file_version); } } } # 30 "/usr/include/boost/serialization/nvp.hpp" 2 3 4 # 1 "/usr/include/boost/serialization/base_object.hpp" 1 3 4 # 34 "/usr/include/boost/serialization/base_object.hpp" 3 4 # 1 "/usr/include/boost/type_traits/is_polymorphic.hpp" 1 3 4 # 17 "/usr/include/boost/type_traits/is_polymorphic.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 1 3 4 # 14 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 3 4 # 1 "/usr/include/boost/type_traits/detail/template_arity_spec.hpp" 1 3 4 # 15 "/usr/include/boost/type_traits/detail/bool_trait_def.hpp" 2 3 4 # 18 "/usr/include/boost/type_traits/is_polymorphic.hpp" 2 3 4 namespace boost{ # 111 "/usr/include/boost/type_traits/is_polymorphic.hpp" 3 4 template< typename T > struct is_polymorphic : public ::boost::integral_constant { public: }; } # 1 "/usr/include/boost/type_traits/detail/bool_trait_undef.hpp" 1 3 4 # 118 "/usr/include/boost/type_traits/is_polymorphic.hpp" 2 3 4 # 35 "/usr/include/boost/serialization/base_object.hpp" 2 3 4 # 1 "/usr/include/boost/serialization/force_include.hpp" 1 3 4 # 39 "/usr/include/boost/serialization/base_object.hpp" 2 3 4 # 1 "/usr/include/boost/serialization/void_cast_fwd.hpp" 1 3 4 # 23 "/usr/include/boost/serialization/void_cast_fwd.hpp" 3 4 namespace boost { namespace serialization { namespace void_cast_detail{ class void_caster; } template inline const void_cast_detail::void_caster & void_cast_register( const Derived * dnull = __null, const Base * bnull = __null ) __attribute__ ((__used__)); } } # 40 "/usr/include/boost/serialization/base_object.hpp" 2 3 4 namespace boost { namespace serialization { namespace detail { template struct base_cast { typedef typename mpl::if_< is_const, const B, B >::type type; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((is_const::value == is_const::value) == 0 ? false : true) >)> boost_static_assert_typedef_57 __attribute__((unused)); }; template struct base_register { struct polymorphic { static void const * invoke(){ Base const * const b = 0; Derived const * const d = 0; return & void_cast_register(d, b); } }; struct non_polymorphic { static void const * invoke(){ return 0; } }; static void const * invoke(){ typedef typename mpl::eval_if< is_polymorphic, mpl::identity, mpl::identity >::type type; return type::invoke(); } }; } # 97 "/usr/include/boost/serialization/base_object.hpp" 3 4 template typename detail::base_cast::type & base_object(Derived &d) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((( is_base_and_derived::value)) == 0 ? false : true) >)> boost_static_assert_typedef_101 __attribute__((unused)); typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((! is_pointer::value) == 0 ? false : true) >)> boost_static_assert_typedef_102 __attribute__((unused)); typedef typename detail::base_cast::type type; detail::base_register::invoke(); return access::cast_reference(d); } } } # 31 "/usr/include/boost/serialization/nvp.hpp" 2 3 4 # 1 "/usr/include/boost/serialization/wrapper.hpp" 1 3 4 # 14 "/usr/include/boost/serialization/wrapper.hpp" 3 4 namespace boost { namespace serialization { template< class T, int Level = object_serializable, int Tracking = track_never, unsigned int Version = 0, class ETII = extended_type_info_impl< T > > struct wrapper_traits : public traits {}; template struct is_wrapper_impl : boost::mpl::eval_if< boost::is_base_and_derived, boost::mpl::true_, boost::mpl::false_ >::type {}; template struct is_wrapper { typedef typename is_wrapper_impl::type type; }; } } # 33 "/usr/include/boost/serialization/nvp.hpp" 2 3 4 namespace boost { namespace serialization { template struct nvp : public std::pair, public wrapper_traits > { explicit nvp(const char * name_, T & t) : std::pair(name_, (T*)(& t)) {} nvp(const nvp & rhs) : std::pair(rhs.first, (T*)rhs.second) {} const char * name() const { return this->first; } T & value() const { return *(this->second); } const T & const_value() const { return *(this->second); } template void save( Archivex & ar, const unsigned int ) const { ar.operator<<(const_value()); } template void load( Archivex & ar, const unsigned int ){ ar.operator>>(value()); } template void serialize( Archive &ar, const unsigned int file_version ){ boost::serialization::split_member(ar, *this, file_version); } }; template inline const nvp< T > make_nvp(const char * name, T & t){ return nvp< T >(name, t); } # 104 "/usr/include/boost/serialization/nvp.hpp" 3 4 template struct implementation_level > { typedef mpl::integral_c_tag tag; typedef mpl::int_ type; static const int value = implementation_level::type::value; }; template struct tracking_level > { typedef mpl::integral_c_tag tag; typedef mpl::int_ type; static const int value = tracking_level::type::value; }; } } # 22 "/usr/include/boost/multi_index/detail/index_loader.hpp" 2 3 4 namespace boost{ namespace multi_index{ namespace detail{ template class index_loader:private noncopyable { public: index_loader(const Allocator& al,std::size_t size): spc(al,size),size_(size),n(0),sorted(false) { } template void add(Node* node,Archive& ar,const unsigned int) { ar>>serialization::make_nvp("position",*node); entries()[n++]=node; } template void add_track(Node* node,Archive& ar,const unsigned int) { ar>>serialization::make_nvp("position",*node); } template void load(Rearranger r,Archive& ar,const unsigned int)const { FinalNode* prev=unchecked_load_node(ar); if(!prev)return; if(!sorted){ std::sort(entries(),entries()+size_); sorted=true; } check_node(prev); for(;;){ for(;;){ FinalNode* node=load_node(ar); if(!node)break; if(node==prev)prev=0; r(prev,node); prev=node; } prev=load_node(ar); if(!prev)break; } } private: Node** entries()const{return &*spc.data();} template FinalNode* unchecked_load_node(Archive& ar)const { Node* node=0; ar>>serialization::make_nvp("pointer",node); return static_cast(node); } template FinalNode* load_node(Archive& ar)const { Node* node=0; ar>>serialization::make_nvp("pointer",node); check_node(node); return static_cast(node); } void check_node(Node* node)const { if(node!=0&&!std::binary_search(entries(),entries()+size_,node)){ throw_exception( archive::archive_exception( archive::archive_exception::other_exception)); } } auto_space spc; std::size_t size_; std::size_t n; mutable bool sorted; }; } } } # 33 "/usr/include/boost/multi_index/detail/index_base.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/detail/index_saver.hpp" 1 3 4 # 17 "/usr/include/boost/multi_index/detail/index_saver.hpp" 3 4 # 1 "/usr/include/boost/multi_index/detail/index_matcher.hpp" 1 3 4 # 23 "/usr/include/boost/multi_index/detail/index_matcher.hpp" 3 4 namespace boost{ namespace multi_index{ namespace detail{ # 58 "/usr/include/boost/multi_index/detail/index_matcher.hpp" 3 4 namespace index_matcher{ # 67 "/usr/include/boost/multi_index/detail/index_matcher.hpp" 3 4 struct entry { entry(void* node_,std::size_t pos_=0):node(node_),pos(pos_){} void* node; std::size_t pos; entry* previous; bool ordered; struct less_by_node { bool operator()( const entry& x,const entry& y)const { return std::less()(x.node,y.node); } }; std::size_t pile_top; entry* pile_top_entry; struct less_by_pile_top { bool operator()( const entry& x,const entry& y)const { return x.pile_top class algorithm_base:private noncopyable { protected: algorithm_base(const Allocator& al,std::size_t size): spc(al,size),size_(size),n_(0),sorted(false) { } void add(void* node) { entries()[n_]=entry(node,n_); ++n_; } void begin_algorithm()const { if(!sorted){ std::sort(entries(),entries()+size_,entry::less_by_node()); sorted=true; } num_piles=0; } void add_node_to_algorithm(void* node)const { entry* ent= std::lower_bound( entries(),entries()+size_, entry(node),entry::less_by_node()); ent->ordered=false; std::size_t n=ent->pos; entry dummy(0); dummy.pile_top=n; entry* pile_ent= std::lower_bound( entries(),entries()+num_piles, dummy,entry::less_by_pile_top()); pile_ent->pile_top=n; pile_ent->pile_top_entry=ent; if(pile_ent>&entries()[0]){ ent->previous=(pile_ent-1)->pile_top_entry; } if(pile_ent==&entries()[num_piles]){ ++num_piles; } } void finish_algorithm()const { if(num_piles>0){ entry* ent=entries()[num_piles-1].pile_top_entry; for(std::size_t n=num_piles;n--;){ ent->ordered=true; ent=ent->previous; } } } bool is_ordered(void * node)const { return std::lower_bound( entries(),entries()+size_, entry(node),entry::less_by_node())->ordered; } private: entry* entries()const{return &*spc.data();} auto_space spc; std::size_t size_; std::size_t n_; mutable bool sorted; mutable std::size_t num_piles; }; template class algorithm:private algorithm_base { typedef algorithm_base super; public: algorithm(const Allocator& al,std::size_t size):super(al,size){} void add(Node* node) { super::add(node); } template void execute(IndexIterator first,IndexIterator last)const { super::begin_algorithm(); for(IndexIterator it=first;it!=last;++it){ add_node_to_algorithm(get_node(it)); } super::finish_algorithm(); } bool is_ordered(Node* node)const { return super::is_ordered(node); } private: void add_node_to_algorithm(Node* node)const { super::add_node_to_algorithm(node); } template static Node* get_node(IndexIterator it) { return static_cast(it.get_node()); } }; } } } } # 18 "/usr/include/boost/multi_index/detail/index_saver.hpp" 2 3 4 namespace boost{ namespace multi_index{ namespace detail{ # 37 "/usr/include/boost/multi_index/detail/index_saver.hpp" 3 4 template class index_saver:private noncopyable { public: index_saver(const Allocator& al,std::size_t size):alg(al,size){} template void add(Node* node,Archive& ar,const unsigned int) { ar< void add_track(Node* node,Archive& ar,const unsigned int) { ar< void save( IndexIterator first,IndexIterator last,Archive& ar, const unsigned int)const { alg.execute(first,last); # 95 "/usr/include/boost/multi_index/detail/index_saver.hpp" 3 4 std::size_t last_saved=3; for(IndexIterator it=first,prev=first;it!=last;prev=it++,++last_saved){ if(!alg.is_ordered(get_node(it))){ if(last_saved>1)save_node(get_node(prev),ar); save_node(get_node(it),ar); last_saved=0; } else if(last_saved==2)save_node(null_node(),ar); } if(last_saved<=2)save_node(null_node(),ar); save_node(null_node(),ar); } private: template static Node* get_node(IndexIterator it) { return it.get_node(); } static Node* null_node(){return 0;} template static void save_node(Node* node,Archive& ar) { ar< alg; }; } } } # 34 "/usr/include/boost/multi_index/detail/index_base.hpp" 2 3 4 namespace boost{ namespace multi_index{ namespace detail{ # 50 "/usr/include/boost/multi_index/detail/index_base.hpp" 3 4 struct lvalue_tag{}; struct rvalue_tag{}; struct emplaced_tag{}; template class index_base { protected: typedef index_node_base node_type; typedef typename multi_index_node_type< Value,IndexSpecifierList,Allocator>::type final_node_type; typedef multi_index_container< Value,IndexSpecifierList,Allocator> final_type; typedef tuples::null_type ctor_args_list; typedef typename boost::detail::allocator::rebind_to< Allocator, typename Allocator::value_type >::type final_allocator_type; typedef mpl::vector0<> index_type_list; typedef mpl::vector0<> iterator_type_list; typedef mpl::vector0<> const_iterator_type_list; typedef copy_map< final_node_type, final_allocator_type> copy_map_type; typedef index_saver< node_type, final_allocator_type> index_saver_type; typedef index_loader< node_type, final_node_type, final_allocator_type> index_loader_type; private: typedef Value value_type; protected: explicit index_base(const ctor_args_list&,const Allocator&){} index_base( const index_base&, do_not_copy_elements_tag) {} void copy_( const index_base&,const copy_map_type&) {} final_node_type* insert_(const value_type& v,final_node_type*& x,lvalue_tag) { x=final().allocate_node(); { try{ boost::detail::allocator::construct(&x->value(),v); } catch(...){ final().deallocate_node(x); throw;; } } return x; } final_node_type* insert_(const value_type& v,final_node_type*& x,rvalue_tag) { x=final().allocate_node(); { try{ new (&x->value()) value_type(boost::move(const_cast(v))); } catch(...){ final().deallocate_node(x); throw;; } } return x; } final_node_type* insert_(const value_type&,final_node_type*& x,emplaced_tag) { return x; } final_node_type* insert_( const value_type& v,node_type*,final_node_type*& x,lvalue_tag) { return insert_(v,x,lvalue_tag()); } final_node_type* insert_( const value_type& v,node_type*,final_node_type*& x,rvalue_tag) { return insert_(v,x,rvalue_tag()); } final_node_type* insert_( const value_type&,node_type*,final_node_type*& x,emplaced_tag) { return x; } void erase_(node_type* x) { boost::detail::allocator::destroy(&x->value()); } void delete_node_(node_type* x) { boost::detail::allocator::destroy(&x->value()); } void clear_(){} void swap_(index_base&){} void swap_elements_(index_base&){} bool replace_(const value_type& v,node_type* x,lvalue_tag) { x->value()=v; return true; } bool replace_(const value_type& v,node_type* x,rvalue_tag) { x->value()=boost::move(const_cast(v)); return true; } bool modify_(node_type*){return true;} bool modify_rollback_(node_type*){return true;} template void save_(Archive&,const unsigned int,const index_saver_type&)const{} template void load_(Archive&,const unsigned int,const index_loader_type&){} # 209 "/usr/include/boost/multi_index/detail/index_base.hpp" 3 4 final_type& final(){return *static_cast(this);} const final_type& final()const{return *static_cast(this);} final_node_type* final_header()const{return final().header();} bool final_empty_()const{return final().empty_();} std::size_t final_size_()const{return final().size_();} std::size_t final_max_size_()const{return final().max_size_();} std::pair final_insert_(const value_type& x) {return final().insert_(x);} std::pair final_insert_rv_(const value_type& x) {return final().insert_rv_(x);} template std::pair final_insert_ref_(const T& t) {return final().insert_ref_(t);} template std::pair final_insert_ref_(T& t) {return final().insert_ref_(t);} template< typename T0 , typename T1 , typename T2 , typename T3 , typename T4> std::pair final_emplace_( const T0 & t0 , const T1 & t1 , const T2 & t2 , const T3 & t3 , const T4 & t4) { return final().emplace_( boost::forward(t0) , boost::forward(t1) , boost::forward(t2) , boost::forward(t3) , boost::forward(t4)); } std::pair final_insert_( const value_type& x,final_node_type* position) {return final().insert_(x,position);} std::pair final_insert_rv_( const value_type& x,final_node_type* position) {return final().insert_rv_(x,position);} template std::pair final_insert_ref_( const T& t,final_node_type* position) {return final().insert_ref_(t,position);} template std::pair final_insert_ref_( T& t,final_node_type* position) {return final().insert_ref_(t,position);} template< typename T0 , typename T1 , typename T2 , typename T3 , typename T4> std::pair final_emplace_hint_( final_node_type* position, const T0 & t0 , const T1 & t1 , const T2 & t2 , const T3 & t3 , const T4 & t4) { return final().emplace_hint_( position, boost::forward(t0) , boost::forward(t1) , boost::forward(t2) , boost::forward(t3) , boost::forward(t4)); } void final_erase_(final_node_type* x){final().erase_(x);} void final_delete_node_(final_node_type* x){final().delete_node_(x);} void final_delete_all_nodes_(){final().delete_all_nodes_();} void final_clear_(){final().clear_();} void final_swap_(final_type& x){final().swap_(x);} bool final_replace_( const value_type& k,final_node_type* x) {return final().replace_(k,x);} bool final_replace_rv_( const value_type& k,final_node_type* x) {return final().replace_rv_(k,x);} template bool final_modify_(Modifier& mod,final_node_type* x) {return final().modify_(mod,x);} template bool final_modify_(Modifier& mod,Rollback& back,final_node_type* x) {return final().modify_(mod,back,x);} }; } } } # 22 "/usr/include/boost/multi_index/detail/base_type.hpp" 2 3 4 namespace boost{ namespace multi_index{ namespace detail{ struct index_applier { template struct apply { typedef typename IndexSpecifierMeta::type index_specifier; typedef typename index_specifier:: template index_class::type type; }; }; template struct nth_layer { static const int length=mpl::size::value; typedef typename mpl::eval_if_c< N==length, mpl::identity >, mpl::apply2< index_applier, mpl::at_c, nth_layer > >::type type; }; template struct multi_index_base_type:nth_layer<0,Value,IndexSpecifierList,Allocator> { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((detail::is_index_list::value) == 0 ? false : true) >)> boost_static_assert_typedef_65 __attribute__((unused)); }; } } } # 35 "/usr/include/boost/multi_index_container.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/detail/converter.hpp" 1 3 4 # 16 "/usr/include/boost/multi_index/detail/converter.hpp" 3 4 namespace boost{ namespace multi_index{ namespace detail{ template struct converter { static const Index& index(const MultiIndexContainer& x){return x;} static Index& index(MultiIndexContainer& x){return x;} static typename Index::const_iterator const_iterator( const MultiIndexContainer& x,typename MultiIndexContainer::node_type* node) { return x.Index::make_iterator(node); } static typename Index::iterator iterator( MultiIndexContainer& x,typename MultiIndexContainer::node_type* node) { return x.Index::make_iterator(node); } }; } } } # 37 "/usr/include/boost/multi_index_container.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/detail/has_tag.hpp" 1 3 4 # 19 "/usr/include/boost/multi_index/detail/has_tag.hpp" 3 4 namespace boost{ namespace multi_index{ namespace detail{ template struct has_tag { template struct apply:mpl::contains { }; }; } } } # 39 "/usr/include/boost/multi_index_container.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/detail/safe_mode.hpp" 1 3 4 # 41 "/usr/include/boost/multi_index_container.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/detail/scope_guard.hpp" 1 3 4 # 19 "/usr/include/boost/multi_index/detail/scope_guard.hpp" 3 4 namespace boost{ namespace multi_index{ namespace detail{ # 60 "/usr/include/boost/multi_index/detail/scope_guard.hpp" 3 4 class scope_guard_impl_base { public: scope_guard_impl_base():dismissed_(false){} void dismiss()const{dismissed_=true;} void touch()const{} protected: ~scope_guard_impl_base(){} scope_guard_impl_base(const scope_guard_impl_base& other): dismissed_(other.dismissed_) { other.dismiss(); } template static void safe_execute(J& j){ { try{ if(!j.dismissed_)j.execute(); } catch(...){} } } mutable bool dismissed_; private: scope_guard_impl_base& operator=(const scope_guard_impl_base&); }; typedef const scope_guard_impl_base& scope_guard; struct null_guard : public scope_guard_impl_base { template< class T1 > null_guard( const T1& ) { } template< class T1, class T2 > null_guard( const T1&, const T2& ) { } template< class T1, class T2, class T3 > null_guard( const T1&, const T2&, const T3& ) { } template< class T1, class T2, class T3, class T4 > null_guard( const T1&, const T2&, const T3&, const T4& ) { } template< class T1, class T2, class T3, class T4, class T5 > null_guard( const T1&, const T2&, const T3&, const T4&, const T5& ) { } }; template< bool cond, class T > struct null_guard_return { typedef typename boost::mpl::if_c::type type; }; template class scope_guard_impl0:public scope_guard_impl_base { public: scope_guard_impl0(F fun):fun_(fun){} ~scope_guard_impl0(){scope_guard_impl_base::safe_execute(*this);} void execute(){fun_();} protected: F fun_; }; template inline scope_guard_impl0 make_guard(F fun) { return scope_guard_impl0(fun); } template inline typename null_guard_return >::type make_guard_if_c(F fun) { return typename null_guard_return >::type(fun); } template inline typename null_guard_return >::type make_guard_if(F fun) { return make_guard_if(fun); } template class scope_guard_impl1:public scope_guard_impl_base { public: scope_guard_impl1(F fun,P1 p1):fun_(fun),p1_(p1){} ~scope_guard_impl1(){scope_guard_impl_base::safe_execute(*this);} void execute(){fun_(p1_);} protected: F fun_; const P1 p1_; }; template inline scope_guard_impl1 make_guard(F fun,P1 p1) { return scope_guard_impl1(fun,p1); } template inline typename null_guard_return >::type make_guard_if_c(F fun,P1 p1) { return typename null_guard_return >::type(fun,p1); } template inline typename null_guard_return >::type make_guard_if(F fun,P1 p1) { return make_guard_if_c(fun,p1); } template class scope_guard_impl2:public scope_guard_impl_base { public: scope_guard_impl2(F fun,P1 p1,P2 p2):fun_(fun),p1_(p1),p2_(p2){} ~scope_guard_impl2(){scope_guard_impl_base::safe_execute(*this);} void execute(){fun_(p1_,p2_);} protected: F fun_; const P1 p1_; const P2 p2_; }; template inline scope_guard_impl2 make_guard(F fun,P1 p1,P2 p2) { return scope_guard_impl2(fun,p1,p2); } template inline typename null_guard_return >::type make_guard_if_c(F fun,P1 p1,P2 p2) { return typename null_guard_return >::type(fun,p1,p2); } template inline typename null_guard_return >::type make_guard_if(F fun,P1 p1,P2 p2) { return make_guard_if_c(fun,p1,p2); } template class scope_guard_impl3:public scope_guard_impl_base { public: scope_guard_impl3(F fun,P1 p1,P2 p2,P3 p3):fun_(fun),p1_(p1),p2_(p2),p3_(p3){} ~scope_guard_impl3(){scope_guard_impl_base::safe_execute(*this);} void execute(){fun_(p1_,p2_,p3_);} protected: F fun_; const P1 p1_; const P2 p2_; const P3 p3_; }; template inline scope_guard_impl3 make_guard(F fun,P1 p1,P2 p2,P3 p3) { return scope_guard_impl3(fun,p1,p2,p3); } template inline typename null_guard_return >::type make_guard_if_c(F fun,P1 p1,P2 p2,P3 p3) { return typename null_guard_return >::type(fun,p1,p2,p3); } template inline typename null_guard_return< C::value,scope_guard_impl3 >::type make_guard_if(F fun,P1 p1,P2 p2,P3 p3) { return make_guard_if_c(fun,p1,p2,p3); } template class scope_guard_impl4:public scope_guard_impl_base { public: scope_guard_impl4(F fun,P1 p1,P2 p2,P3 p3,P4 p4): fun_(fun),p1_(p1),p2_(p2),p3_(p3),p4_(p4){} ~scope_guard_impl4(){scope_guard_impl_base::safe_execute(*this);} void execute(){fun_(p1_,p2_,p3_,p4_);} protected: F fun_; const P1 p1_; const P2 p2_; const P3 p3_; const P4 p4_; }; template inline scope_guard_impl4 make_guard( F fun,P1 p1,P2 p2,P3 p3,P4 p4) { return scope_guard_impl4(fun,p1,p2,p3,p4); } template inline typename null_guard_return >::type make_guard_if_c( F fun,P1 p1,P2 p2,P3 p3,P4 p4) { return typename null_guard_return >::type(fun,p1,p2,p3,p4); } template inline typename null_guard_return >::type make_guard_if( F fun,P1 p1,P2 p2,P3 p3,P4 p4) { return make_guard_if_c(fun,p1,p2,p3,p4); } template class obj_scope_guard_impl0:public scope_guard_impl_base { public: obj_scope_guard_impl0(Obj& obj,MemFun mem_fun):obj_(obj),mem_fun_(mem_fun){} ~obj_scope_guard_impl0(){scope_guard_impl_base::safe_execute(*this);} void execute(){(obj_.*mem_fun_)();} protected: Obj& obj_; MemFun mem_fun_; }; template inline obj_scope_guard_impl0 make_obj_guard(Obj& obj,MemFun mem_fun) { return obj_scope_guard_impl0(obj,mem_fun); } template inline typename null_guard_return >::type make_obj_guard_if_c(Obj& obj,MemFun mem_fun) { return typename null_guard_return >::type(obj,mem_fun); } template inline typename null_guard_return >::type make_obj_guard_if(Obj& obj,MemFun mem_fun) { return make_obj_guard_if_c(obj,mem_fun); } template class obj_scope_guard_impl1:public scope_guard_impl_base { public: obj_scope_guard_impl1(Obj& obj,MemFun mem_fun,P1 p1): obj_(obj),mem_fun_(mem_fun),p1_(p1){} ~obj_scope_guard_impl1(){scope_guard_impl_base::safe_execute(*this);} void execute(){(obj_.*mem_fun_)(p1_);} protected: Obj& obj_; MemFun mem_fun_; const P1 p1_; }; template inline obj_scope_guard_impl1 make_obj_guard( Obj& obj,MemFun mem_fun,P1 p1) { return obj_scope_guard_impl1(obj,mem_fun,p1); } template inline typename null_guard_return >::type make_obj_guard_if_c( Obj& obj,MemFun mem_fun,P1 p1) { return typename null_guard_return >::type(obj,mem_fun,p1); } template inline typename null_guard_return >::type make_obj_guard_if( Obj& obj,MemFun mem_fun,P1 p1) { return make_obj_guard_if_c(obj,mem_fun,p1); } template class obj_scope_guard_impl2:public scope_guard_impl_base { public: obj_scope_guard_impl2(Obj& obj,MemFun mem_fun,P1 p1,P2 p2): obj_(obj),mem_fun_(mem_fun),p1_(p1),p2_(p2) {} ~obj_scope_guard_impl2(){scope_guard_impl_base::safe_execute(*this);} void execute(){(obj_.*mem_fun_)(p1_,p2_);} protected: Obj& obj_; MemFun mem_fun_; const P1 p1_; const P2 p2_; }; template inline obj_scope_guard_impl2 make_obj_guard(Obj& obj,MemFun mem_fun,P1 p1,P2 p2) { return obj_scope_guard_impl2(obj,mem_fun,p1,p2); } template inline typename null_guard_return >::type make_obj_guard_if_c(Obj& obj,MemFun mem_fun,P1 p1,P2 p2) { return typename null_guard_return >::type(obj,mem_fun,p1,p2); } template inline typename null_guard_return >::type make_obj_guard_if(Obj& obj,MemFun mem_fun,P1 p1,P2 p2) { return make_obj_guard_if_c(obj,mem_fun,p1,p2); } template class obj_scope_guard_impl3:public scope_guard_impl_base { public: obj_scope_guard_impl3(Obj& obj,MemFun mem_fun,P1 p1,P2 p2,P3 p3): obj_(obj),mem_fun_(mem_fun),p1_(p1),p2_(p2),p3_(p3) {} ~obj_scope_guard_impl3(){scope_guard_impl_base::safe_execute(*this);} void execute(){(obj_.*mem_fun_)(p1_,p2_,p3_);} protected: Obj& obj_; MemFun mem_fun_; const P1 p1_; const P2 p2_; const P3 p3_; }; template inline obj_scope_guard_impl3 make_obj_guard(Obj& obj,MemFun mem_fun,P1 p1,P2 p2,P3 p3) { return obj_scope_guard_impl3(obj,mem_fun,p1,p2,p3); } template inline typename null_guard_return >::type make_obj_guard_if_c(Obj& obj,MemFun mem_fun,P1 p1,P2 p2,P3 p3) { return typename null_guard_return >::type(obj,mem_fun,p1,p2,p3); } template inline typename null_guard_return >::type make_obj_guard_if(Obj& obj,MemFun mem_fun,P1 p1,P2 p2,P3 p3) { return make_obj_guard_if_c(obj,mem_fun,p1,p2,p3); } } } } # 42 "/usr/include/boost/multi_index_container.hpp" 2 3 4 # 52 "/usr/include/boost/multi_index_container.hpp" 3 4 # 1 "/usr/include/boost/multi_index/detail/archive_constructed.hpp" 1 3 4 # 19 "/usr/include/boost/multi_index/detail/archive_constructed.hpp" 3 4 # 1 "/usr/include/boost/serialization/serialization.hpp" 1 3 4 # 14 "/usr/include/boost/serialization/serialization.hpp" 3 4 # 1 "/usr/include/boost/serialization/strong_typedef.hpp" 1 3 4 # 26 "/usr/include/boost/serialization/strong_typedef.hpp" 3 4 # 1 "/usr/include/boost/operators.hpp" 1 3 4 # 97 "/usr/include/boost/operators.hpp" 3 4 namespace boost { namespace detail { template class empty_base {}; } } # 113 "/usr/include/boost/operators.hpp" 3 4 namespace boost { template > struct less_than_comparable2 : B { friend bool operator<=(const T& x, const U& y) { return !static_cast(x > y); } friend bool operator>=(const T& x, const U& y) { return !static_cast(x < y); } friend bool operator>(const U& x, const T& y) { return y < x; } friend bool operator<(const U& x, const T& y) { return y > x; } friend bool operator<=(const U& x, const T& y) { return !static_cast(y < x); } friend bool operator>=(const U& x, const T& y) { return !static_cast(y > x); } }; template > struct less_than_comparable1 : B { friend bool operator>(const T& x, const T& y) { return y < x; } friend bool operator<=(const T& x, const T& y) { return !static_cast(y < x); } friend bool operator>=(const T& x, const T& y) { return !static_cast(x < y); } }; template > struct equality_comparable2 : B { friend bool operator==(const U& y, const T& x) { return x == y; } friend bool operator!=(const U& y, const T& x) { return !static_cast(x == y); } friend bool operator!=(const T& y, const U& x) { return !static_cast(y == x); } }; template > struct equality_comparable1 : B { friend bool operator!=(const T& x, const T& y) { return !static_cast(x == y); } }; # 249 "/usr/include/boost/operators.hpp" 3 4 template > struct multipliable2 : B { friend T operator *( const T& lhs, const U& rhs ) { T nrv( lhs ); nrv *= rhs; return nrv; } friend T operator *( const U& lhs, const T& rhs ) { T nrv( rhs ); nrv *= lhs; return nrv; } }; template > struct multipliable1 : B { friend T operator *( const T& lhs, const T& rhs ) { T nrv( lhs ); nrv *= rhs; return nrv; } }; template > struct addable2 : B { friend T operator +( const T& lhs, const U& rhs ) { T nrv( lhs ); nrv += rhs; return nrv; } friend T operator +( const U& lhs, const T& rhs ) { T nrv( rhs ); nrv += lhs; return nrv; } }; template > struct addable1 : B { friend T operator +( const T& lhs, const T& rhs ) { T nrv( lhs ); nrv += rhs; return nrv; } }; template > struct subtractable2 : B { friend T operator -( const T& lhs, const U& rhs ) { T nrv( lhs ); nrv -= rhs; return nrv; } }; template > struct subtractable2_left : B { friend T operator -( const U& lhs, const T& rhs ) { T nrv( lhs ); nrv -= rhs; return nrv; } }; template > struct subtractable1 : B { friend T operator -( const T& lhs, const T& rhs ) { T nrv( lhs ); nrv -= rhs; return nrv; } }; template > struct dividable2 : B { friend T operator /( const T& lhs, const U& rhs ) { T nrv( lhs ); nrv /= rhs; return nrv; } }; template > struct dividable2_left : B { friend T operator /( const U& lhs, const T& rhs ) { T nrv( lhs ); nrv /= rhs; return nrv; } }; template > struct dividable1 : B { friend T operator /( const T& lhs, const T& rhs ) { T nrv( lhs ); nrv /= rhs; return nrv; } }; template > struct modable2 : B { friend T operator %( const T& lhs, const U& rhs ) { T nrv( lhs ); nrv %= rhs; return nrv; } }; template > struct modable2_left : B { friend T operator %( const U& lhs, const T& rhs ) { T nrv( lhs ); nrv %= rhs; return nrv; } }; template > struct modable1 : B { friend T operator %( const T& lhs, const T& rhs ) { T nrv( lhs ); nrv %= rhs; return nrv; } }; template > struct xorable2 : B { friend T operator ^( const T& lhs, const U& rhs ) { T nrv( lhs ); nrv ^= rhs; return nrv; } friend T operator ^( const U& lhs, const T& rhs ) { T nrv( rhs ); nrv ^= lhs; return nrv; } }; template > struct xorable1 : B { friend T operator ^( const T& lhs, const T& rhs ) { T nrv( lhs ); nrv ^= rhs; return nrv; } }; template > struct andable2 : B { friend T operator &( const T& lhs, const U& rhs ) { T nrv( lhs ); nrv &= rhs; return nrv; } friend T operator &( const U& lhs, const T& rhs ) { T nrv( rhs ); nrv &= lhs; return nrv; } }; template > struct andable1 : B { friend T operator &( const T& lhs, const T& rhs ) { T nrv( lhs ); nrv &= rhs; return nrv; } }; template > struct orable2 : B { friend T operator |( const T& lhs, const U& rhs ) { T nrv( lhs ); nrv |= rhs; return nrv; } friend T operator |( const U& lhs, const T& rhs ) { T nrv( rhs ); nrv |= lhs; return nrv; } }; template > struct orable1 : B { friend T operator |( const T& lhs, const T& rhs ) { T nrv( lhs ); nrv |= rhs; return nrv; } }; template > struct incrementable : B { friend T operator++(T& x, int) { incrementable_type nrv(x); ++x; return nrv; } private: typedef T incrementable_type; }; template > struct decrementable : B { friend T operator--(T& x, int) { decrementable_type nrv(x); --x; return nrv; } private: typedef T decrementable_type; }; template > struct dereferenceable : B { P operator->() const { return &*static_cast(*this); } }; template > struct indexable : B { R operator[](I n) const { return *(static_cast(*this) + n); } }; # 347 "/usr/include/boost/operators.hpp" 3 4 template > struct left_shiftable2 : B { friend T operator <<( const T& lhs, const U& rhs ) { T nrv( lhs ); nrv <<= rhs; return nrv; } }; template > struct left_shiftable1 : B { friend T operator <<( const T& lhs, const T& rhs ) { T nrv( lhs ); nrv <<= rhs; return nrv; } }; template > struct right_shiftable2 : B { friend T operator >>( const T& lhs, const U& rhs ) { T nrv( lhs ); nrv >>= rhs; return nrv; } }; template > struct right_shiftable1 : B { friend T operator >>( const T& lhs, const T& rhs ) { T nrv( lhs ); nrv >>= rhs; return nrv; } }; template > struct equivalent2 : B { friend bool operator==(const T& x, const U& y) { return !static_cast(x < y) && !static_cast(x > y); } }; template > struct equivalent1 : B { friend bool operator==(const T&x, const T&y) { return !static_cast(x < y) && !static_cast(y < x); } }; template > struct partially_ordered2 : B { friend bool operator<=(const T& x, const U& y) { return static_cast(x < y) || static_cast(x == y); } friend bool operator>=(const T& x, const U& y) { return static_cast(x > y) || static_cast(x == y); } friend bool operator>(const U& x, const T& y) { return y < x; } friend bool operator<(const U& x, const T& y) { return y > x; } friend bool operator<=(const U& x, const T& y) { return static_cast(y > x) || static_cast(y == x); } friend bool operator>=(const U& x, const T& y) { return static_cast(y < x) || static_cast(y == x); } }; template > struct partially_ordered1 : B { friend bool operator>(const T& x, const T& y) { return y < x; } friend bool operator<=(const T& x, const T& y) { return static_cast(x < y) || static_cast(x == y); } friend bool operator>=(const T& x, const T& y) { return static_cast(y < x) || static_cast(x == y); } }; template > struct totally_ordered2 : less_than_comparable2 > {}; template > struct totally_ordered1 : less_than_comparable1 > {}; template > struct additive2 : addable2 > {}; template > struct additive1 : addable1 > {}; template > struct multiplicative2 : multipliable2 > {}; template > struct multiplicative1 : multipliable1 > {}; template > struct integer_multiplicative2 : multiplicative2 > {}; template > struct integer_multiplicative1 : multiplicative1 > {}; template > struct arithmetic2 : additive2 > {}; template > struct arithmetic1 : additive1 > {}; template > struct integer_arithmetic2 : additive2 > {}; template > struct integer_arithmetic1 : additive1 > {}; template > struct bitwise2 : xorable2 > > {}; template > struct bitwise1 : xorable1 > > {}; template > struct unit_steppable : incrementable > {}; template > struct shiftable2 : left_shiftable2 > {}; template > struct shiftable1 : left_shiftable1 > {}; template > struct ring_operators2 : additive2 > > {}; template > struct ring_operators1 : additive1 > {}; template > struct ordered_ring_operators2 : ring_operators2 > {}; template > struct ordered_ring_operators1 : ring_operators1 > {}; template > struct field_operators2 : ring_operators2 > > {}; template > struct field_operators1 : ring_operators1 > {}; template > struct ordered_field_operators2 : field_operators2 > {}; template > struct ordered_field_operators1 : field_operators1 > {}; template > struct euclidian_ring_operators2 : ring_operators2 > > > > {}; template > struct euclidian_ring_operators1 : ring_operators1 > > {}; template > struct ordered_euclidian_ring_operators2 : totally_ordered2 > {}; template > struct ordered_euclidian_ring_operators1 : totally_ordered1 > {}; template > struct euclidean_ring_operators2 : ring_operators2 > > > > {}; template > struct euclidean_ring_operators1 : ring_operators1 > > {}; template > struct ordered_euclidean_ring_operators2 : totally_ordered2 > {}; template > struct ordered_euclidean_ring_operators1 : totally_ordered1 > {}; template > struct input_iteratable : equality_comparable1 > > {}; template > struct output_iteratable : incrementable {}; template > struct forward_iteratable : input_iteratable {}; template > struct bidirectional_iteratable : forward_iteratable > {}; template > struct random_access_iteratable : bidirectional_iteratable > > > {}; } # 712 "/usr/include/boost/operators.hpp" 3 4 namespace boost { namespace detail { struct true_t {}; struct false_t {}; } template struct is_chained_base { typedef ::boost::detail::false_t value; }; } # 805 "/usr/include/boost/operators.hpp" 3 4 namespace boost { template ,class O = typename is_chained_base::value > struct less_than_comparable : less_than_comparable2 {}; template struct less_than_comparable : less_than_comparable1 {}; template struct less_than_comparable : less_than_comparable1 {}; template struct is_chained_base< ::boost::less_than_comparable > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::less_than_comparable2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::less_than_comparable1 > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct equality_comparable : equality_comparable2 {}; template struct equality_comparable : equality_comparable1 {}; template struct equality_comparable : equality_comparable1 {}; template struct is_chained_base< ::boost::equality_comparable > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::equality_comparable2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::equality_comparable1 > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct multipliable : multipliable2 {}; template struct multipliable : multipliable1 {}; template struct multipliable : multipliable1 {}; template struct is_chained_base< ::boost::multipliable > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::multipliable2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::multipliable1 > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct addable : addable2 {}; template struct addable : addable1 {}; template struct addable : addable1 {}; template struct is_chained_base< ::boost::addable > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::addable2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::addable1 > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct subtractable : subtractable2 {}; template struct subtractable : subtractable1 {}; template struct subtractable : subtractable1 {}; template struct is_chained_base< ::boost::subtractable > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::subtractable2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::subtractable1 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::subtractable2_left > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct dividable : dividable2 {}; template struct dividable : dividable1 {}; template struct dividable : dividable1 {}; template struct is_chained_base< ::boost::dividable > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::dividable2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::dividable1 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::dividable2_left > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct modable : modable2 {}; template struct modable : modable1 {}; template struct modable : modable1 {}; template struct is_chained_base< ::boost::modable > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::modable2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::modable1 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::modable2_left > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct xorable : xorable2 {}; template struct xorable : xorable1 {}; template struct xorable : xorable1 {}; template struct is_chained_base< ::boost::xorable > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::xorable2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::xorable1 > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct andable : andable2 {}; template struct andable : andable1 {}; template struct andable : andable1 {}; template struct is_chained_base< ::boost::andable > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::andable2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::andable1 > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct orable : orable2 {}; template struct orable : orable1 {}; template struct orable : orable1 {}; template struct is_chained_base< ::boost::orable > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::orable2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::orable1 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::incrementable > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::decrementable > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::dereferenceable > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::indexable > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct left_shiftable : left_shiftable2 {}; template struct left_shiftable : left_shiftable1 {}; template struct left_shiftable : left_shiftable1 {}; template struct is_chained_base< ::boost::left_shiftable > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::left_shiftable2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::left_shiftable1 > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct right_shiftable : right_shiftable2 {}; template struct right_shiftable : right_shiftable1 {}; template struct right_shiftable : right_shiftable1 {}; template struct is_chained_base< ::boost::right_shiftable > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::right_shiftable2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::right_shiftable1 > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct equivalent : equivalent2 {}; template struct equivalent : equivalent1 {}; template struct equivalent : equivalent1 {}; template struct is_chained_base< ::boost::equivalent > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::equivalent2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::equivalent1 > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct partially_ordered : partially_ordered2 {}; template struct partially_ordered : partially_ordered1 {}; template struct partially_ordered : partially_ordered1 {}; template struct is_chained_base< ::boost::partially_ordered > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::partially_ordered2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::partially_ordered1 > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct totally_ordered : totally_ordered2 {}; template struct totally_ordered : totally_ordered1 {}; template struct totally_ordered : totally_ordered1 {}; template struct is_chained_base< ::boost::totally_ordered > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::totally_ordered2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::totally_ordered1 > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct additive : additive2 {}; template struct additive : additive1 {}; template struct additive : additive1 {}; template struct is_chained_base< ::boost::additive > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::additive2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::additive1 > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct multiplicative : multiplicative2 {}; template struct multiplicative : multiplicative1 {}; template struct multiplicative : multiplicative1 {}; template struct is_chained_base< ::boost::multiplicative > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::multiplicative2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::multiplicative1 > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct integer_multiplicative : integer_multiplicative2 {}; template struct integer_multiplicative : integer_multiplicative1 {}; template struct integer_multiplicative : integer_multiplicative1 {}; template struct is_chained_base< ::boost::integer_multiplicative > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::integer_multiplicative2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::integer_multiplicative1 > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct arithmetic : arithmetic2 {}; template struct arithmetic : arithmetic1 {}; template struct arithmetic : arithmetic1 {}; template struct is_chained_base< ::boost::arithmetic > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::arithmetic2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::arithmetic1 > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct integer_arithmetic : integer_arithmetic2 {}; template struct integer_arithmetic : integer_arithmetic1 {}; template struct integer_arithmetic : integer_arithmetic1 {}; template struct is_chained_base< ::boost::integer_arithmetic > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::integer_arithmetic2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::integer_arithmetic1 > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct bitwise : bitwise2 {}; template struct bitwise : bitwise1 {}; template struct bitwise : bitwise1 {}; template struct is_chained_base< ::boost::bitwise > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::bitwise2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::bitwise1 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::unit_steppable > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct shiftable : shiftable2 {}; template struct shiftable : shiftable1 {}; template struct shiftable : shiftable1 {}; template struct is_chained_base< ::boost::shiftable > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::shiftable2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::shiftable1 > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct ring_operators : ring_operators2 {}; template struct ring_operators : ring_operators1 {}; template struct ring_operators : ring_operators1 {}; template struct is_chained_base< ::boost::ring_operators > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::ring_operators2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::ring_operators1 > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct ordered_ring_operators : ordered_ring_operators2 {}; template struct ordered_ring_operators : ordered_ring_operators1 {}; template struct ordered_ring_operators : ordered_ring_operators1 {}; template struct is_chained_base< ::boost::ordered_ring_operators > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::ordered_ring_operators2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::ordered_ring_operators1 > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct field_operators : field_operators2 {}; template struct field_operators : field_operators1 {}; template struct field_operators : field_operators1 {}; template struct is_chained_base< ::boost::field_operators > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::field_operators2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::field_operators1 > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct ordered_field_operators : ordered_field_operators2 {}; template struct ordered_field_operators : ordered_field_operators1 {}; template struct ordered_field_operators : ordered_field_operators1 {}; template struct is_chained_base< ::boost::ordered_field_operators > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::ordered_field_operators2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::ordered_field_operators1 > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct euclidian_ring_operators : euclidian_ring_operators2 {}; template struct euclidian_ring_operators : euclidian_ring_operators1 {}; template struct euclidian_ring_operators : euclidian_ring_operators1 {}; template struct is_chained_base< ::boost::euclidian_ring_operators > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::euclidian_ring_operators2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::euclidian_ring_operators1 > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct ordered_euclidian_ring_operators : ordered_euclidian_ring_operators2 {}; template struct ordered_euclidian_ring_operators : ordered_euclidian_ring_operators1 {}; template struct ordered_euclidian_ring_operators : ordered_euclidian_ring_operators1 {}; template struct is_chained_base< ::boost::ordered_euclidian_ring_operators > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::ordered_euclidian_ring_operators2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::ordered_euclidian_ring_operators1 > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct euclidean_ring_operators : euclidean_ring_operators2 {}; template struct euclidean_ring_operators : euclidean_ring_operators1 {}; template struct euclidean_ring_operators : euclidean_ring_operators1 {}; template struct is_chained_base< ::boost::euclidean_ring_operators > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::euclidean_ring_operators2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::euclidean_ring_operators1 > { typedef ::boost::detail::true_t value; }; template ,class O = typename is_chained_base::value > struct ordered_euclidean_ring_operators : ordered_euclidean_ring_operators2 {}; template struct ordered_euclidean_ring_operators : ordered_euclidean_ring_operators1 {}; template struct ordered_euclidean_ring_operators : ordered_euclidean_ring_operators1 {}; template struct is_chained_base< ::boost::ordered_euclidean_ring_operators > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::ordered_euclidean_ring_operators2 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::ordered_euclidean_ring_operators1 > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::input_iteratable > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::output_iteratable > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::forward_iteratable > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::bidirectional_iteratable > { typedef ::boost::detail::true_t value; }; template struct is_chained_base< ::boost::random_access_iteratable > { typedef ::boost::detail::true_t value; }; # 867 "/usr/include/boost/operators.hpp" 3 4 template struct operators2 : totally_ordered2 > > {}; template struct operators : operators2 {}; template struct operators : totally_ordered > > > {}; template struct input_iterator_helper : input_iteratable > {}; template struct output_iterator_helper : output_iteratable > { T& operator*() { return static_cast(*this); } T& operator++() { return static_cast(*this); } }; template struct forward_iterator_helper : forward_iteratable > {}; template struct bidirectional_iterator_helper : bidirectional_iteratable > {}; template struct random_access_iterator_helper : random_access_iteratable > { friend D requires_difference_operator(const T& x, const T& y) { return x - y; } }; } # 27 "/usr/include/boost/serialization/strong_typedef.hpp" 2 3 4 # 15 "/usr/include/boost/serialization/serialization.hpp" 2 3 4 # 59 "/usr/include/boost/serialization/serialization.hpp" 3 4 namespace boost { namespace serialization { struct version_type : boost::totally_ordered1< version_type , boost::totally_ordered2< version_type, unsigned int > > { unsigned int t; explicit version_type(const unsigned int t_) : t(t_) {}; version_type(): t() {}; version_type(const version_type & t_) : t(t_.t){} version_type & operator=(const version_type & rhs) { t = rhs.t; return *this;} version_type & operator=(const unsigned int & rhs) { t = rhs; return *this;} operator const unsigned int & () const {return t; } operator unsigned int & () { return t; } bool operator==(const version_type & rhs) const { return t == rhs.t; } bool operator<(const version_type & rhs) const { return t < rhs.t; } }; template inline void serialize( Archive & ar, T & t, const unsigned int file_version ){ access::serialize(ar, t, static_cast(file_version)); } template inline void save_construct_data( Archive & , const T * , const unsigned int ){ } template inline void load_construct_data( Archive & , T * t, const unsigned int ){ access::construct(t); } # 112 "/usr/include/boost/serialization/serialization.hpp" 3 4 template inline void serialize_adl( Archive & ar, T & t, const unsigned int file_version ){ # 127 "/usr/include/boost/serialization/serialization.hpp" 3 4 const version_type v(file_version); serialize(ar, t, v); } template inline void save_construct_data_adl( Archive & ar, const T * t, const unsigned int file_version ){ const version_type v(file_version); save_construct_data(ar, t, v); } template inline void load_construct_data_adl( Archive & ar, T * t, const unsigned int file_version ){ const version_type v(file_version); load_construct_data(ar, t, v); } } } # 20 "/usr/include/boost/multi_index/detail/archive_constructed.hpp" 2 3 4 namespace boost{ namespace multi_index{ namespace detail{ template struct archive_constructed:private noncopyable { template archive_constructed(Archive& ar,const unsigned int version) { serialization::load_construct_data_adl(ar,&get(),version); { try{ ar>>get(); } catch(...){ (&get())->~T(); throw;; } } } template archive_constructed(const char* name,Archive& ar,const unsigned int version) { serialization::load_construct_data_adl(ar,&get(),version); { try{ ar>>serialization::make_nvp(name,get()); } catch(...){ (&get())->~T(); throw;; } } } ~archive_constructed() { (&get())->~T(); } T& get(){return *static_cast(static_cast(&space));} private: typename aligned_storage::value>::type space; }; } } } # 53 "/usr/include/boost/multi_index_container.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/detail/serialization_version.hpp" 1 3 4 # 18 "/usr/include/boost/multi_index/detail/serialization_version.hpp" 3 4 # 1 "/usr/include/boost/serialization/version.hpp" 1 3 4 # 28 "/usr/include/boost/serialization/version.hpp" 3 4 namespace boost { namespace serialization { struct basic_traits; template struct version { template struct traits_class_version { typedef typename U::version type; }; typedef mpl::integral_c_tag tag; typedef typename mpl::eval_if< is_base_and_derived, traits_class_version< T >, mpl::int_<0> >::type type; static const int value = version::type::value; }; template const int version::value; } } # 19 "/usr/include/boost/multi_index/detail/serialization_version.hpp" 2 3 4 namespace boost{ namespace multi_index{ namespace detail{ template struct serialization_version { serialization_version(): value(boost::serialization::version::value){} serialization_version& operator=(unsigned int x){value=x;return *this;}; operator unsigned int()const{return value;} private: friend class boost::serialization::access; template void serialize( Archive &ar, const unsigned int file_version ){ boost::serialization::split_member(ar, *this, file_version); } template void save(Archive&,const unsigned int)const{} template void load(Archive&,const unsigned int version) { this->value=version; } unsigned int value; }; } } namespace serialization { template struct version > { static const int value=version::value; }; } } # 54 "/usr/include/boost/multi_index_container.hpp" 2 3 4 # 1 "/usr/include/boost/serialization/collection_size_type.hpp" 1 3 4 # 12 "/usr/include/boost/serialization/collection_size_type.hpp" 3 4 # 1 "/usr/include/boost/serialization/split_free.hpp" 1 3 4 # 24 "/usr/include/boost/serialization/split_free.hpp" 3 4 namespace boost { namespace archive { namespace detail { template class interface_oarchive; template class interface_iarchive; } } namespace serialization { template struct free_saver { static void invoke( Archive & ar, const T & t, const unsigned int file_version ){ const version_type v(file_version); save(ar, t, v); } }; template struct free_loader { static void invoke( Archive & ar, T & t, const unsigned int file_version ){ const version_type v(file_version); load(ar, t, v); } }; template inline void split_free( Archive & ar, T & t, const unsigned int file_version ){ typedef typename mpl::eval_if< typename Archive::is_saving, mpl::identity< free_saver >, mpl::identity< free_loader > >::type typex; typex::invoke(ar, t, file_version); } } } # 13 "/usr/include/boost/serialization/collection_size_type.hpp" 2 3 4 # 1 "/usr/include/boost/serialization/is_bitwise_serializable.hpp" 1 3 4 # 27 "/usr/include/boost/serialization/is_bitwise_serializable.hpp" 3 4 namespace boost { namespace serialization { template struct is_bitwise_serializable : public is_arithmetic< T > {}; } } # 14 "/usr/include/boost/serialization/collection_size_type.hpp" 2 3 4 namespace boost { namespace serialization { class collection_size_type { private: typedef std::size_t base_type; base_type t; public: collection_size_type(): t(0) {}; explicit collection_size_type(const std::size_t & t_) : t(t_) {} collection_size_type(const collection_size_type & t_) : t(t_.t) {} collection_size_type & operator=(const collection_size_type & rhs){ t = rhs.t; return *this; } collection_size_type & operator=(const unsigned int & rhs){ t = rhs; return *this; } operator base_type () const { return t; } operator base_type & () { return t; } bool operator==(const collection_size_type & rhs) const { return t == rhs.t; } bool operator<(const collection_size_type & rhs) const { return t < rhs.t; } }; } } namespace boost { namespace serialization { template <> struct implementation_level_impl< const collection_size_type > { typedef mpl::integral_c_tag tag; typedef mpl::int_< primitive_type > type; static const int value = implementation_level_impl::type::value; }; } } namespace boost { namespace serialization { template<> struct is_bitwise_serializable< collection_size_type > : mpl::true_ {}; }} # 55 "/usr/include/boost/multi_index_container.hpp" 2 3 4 # 74 "/usr/include/boost/multi_index_container.hpp" 3 4 namespace boost{ namespace multi_index{ template class multi_index_container: private ::boost::base_from_member< typename boost::detail::allocator::rebind_to< Allocator, typename detail::multi_index_node_type< Value,IndexSpecifierList,Allocator>::type >::type>, private detail::header_holder< typename boost::detail::allocator::rebind_to< Allocator, typename detail::multi_index_node_type< Value,IndexSpecifierList,Allocator>::type >::type::pointer, multi_index_container >, public detail::multi_index_base_type< Value,IndexSpecifierList,Allocator>::type { # 111 "/usr/include/boost/multi_index_container.hpp" 3 4 private: public: multi_index_container& operator=(multi_index_container &t) { this->operator=(static_cast &>(const_cast(t))); return *this;} public: operator ::boost::rv&() { return *static_cast< ::boost::rv* >(this); } operator const ::boost::rv&() const { return *static_cast* >(this); } private: template friend class detail::index_base; template friend struct detail::header_holder; template friend struct detail::converter; typedef typename detail::multi_index_base_type< Value,IndexSpecifierList,Allocator>::type super; typedef typename boost::detail::allocator::rebind_to< Allocator, typename super::node_type >::type node_allocator; typedef ::boost::base_from_member< node_allocator> bfm_allocator; typedef detail::header_holder< typename node_allocator::pointer, multi_index_container> bfm_header; public: typedef typename super::ctor_args_list ctor_args_list; typedef IndexSpecifierList index_specifier_type_list; typedef typename super::index_type_list index_type_list; typedef typename super::iterator_type_list iterator_type_list; typedef typename super::const_iterator_type_list const_iterator_type_list; typedef typename super::value_type value_type; typedef typename super::final_allocator_type allocator_type; typedef typename super::iterator iterator; typedef typename super::const_iterator const_iterator; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((detail::no_duplicate_tags_in_index_list::value) == 0 ? false : true) >)> boost_static_assert_typedef_152 __attribute__((unused)) ; typedef typename super::node_type node_type; explicit multi_index_container( # 174 "/usr/include/boost/multi_index_container.hpp" 3 4 const ctor_args_list& args_list=ctor_args_list(), const allocator_type& al=allocator_type()): bfm_allocator(al), super(args_list,bfm_allocator::member), node_count(0) { ; } explicit multi_index_container(const allocator_type& al): bfm_allocator(al), super(ctor_args_list(),bfm_allocator::member), node_count(0) { ; } template multi_index_container( InputIterator first,InputIterator last, # 209 "/usr/include/boost/multi_index_container.hpp" 3 4 const ctor_args_list& args_list=ctor_args_list(), const allocator_type& al=allocator_type()): bfm_allocator(al), super(args_list,bfm_allocator::member), node_count(0) { ; { try{ iterator hint=super::end(); for(;first!=last;++first){ hint=super::make_iterator( insert_ref_(*first,hint.get_node()).first); ++hint; } } catch(...){ clear_(); throw;; } } } # 261 "/usr/include/boost/multi_index_container.hpp" 3 4 multi_index_container( const multi_index_container& x): bfm_allocator(x.bfm_allocator::member), bfm_header(), super(x), node_count(0) { copy_map_type map(bfm_allocator::member,x.size(),x.header(),header()); for(const_iterator it=x.begin(),it_end=x.end();it!=it_end;++it){ map.clone(it.get_node()); } super::copy_(x,map); map.release(); node_count=x.size(); ; } multi_index_container(::boost::rv< multi_index_container >& x): bfm_allocator(x.bfm_allocator::member), bfm_header(), super(x,detail::do_not_copy_elements_tag()), node_count(0) { ; ; swap_elements_(x); } ~multi_index_container() { delete_all_nodes_(); } multi_index_container& operator=( const multi_index_container& x) { multi_index_container y(x); this->swap(y); return *this; } multi_index_container& operator=( const ::boost::rv< multi_index_container >& x) { multi_index_container y(x); this->swap(y); return *this; } multi_index_container& operator=( ::boost::rv< multi_index_container >& x) { this->swap(x); return *this; } # 347 "/usr/include/boost/multi_index_container.hpp" 3 4 allocator_type get_allocator()const { return allocator_type(bfm_allocator::member); } template struct nth_index { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((N>=0&&N::type::value) == 0 ? false : true) >)> boost_static_assert_typedef_358 __attribute__((unused)); typedef typename mpl::at_c::type type; }; template typename nth_index::type& get() { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((N>=0&&N::type::value) == 0 ? false : true) >)> boost_static_assert_typedef_365 __attribute__((unused)); return *this; } template const typename nth_index::type& get()const { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((N>=0&&N::type::value) == 0 ? false : true) >)> boost_static_assert_typedef_372 __attribute__((unused)); return *this; } template struct index { typedef typename mpl::find_if< index_type_list, detail::has_tag >::type iter; static const bool index_found=!(is_same::type >::value) ; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((index_found) == 0 ? false : true) >)> boost_static_assert_typedef_390 __attribute__((unused)); typedef typename mpl::deref::type type; }; template typename index::type& get() { return *this; } template const typename index::type& get()const { return *this; } template struct nth_index_iterator { typedef typename nth_index::type::iterator type; }; template struct nth_index_const_iterator { typedef typename nth_index::type::const_iterator type; }; template typename nth_index_iterator::type project(IteratorType it) { typedef typename nth_index::type index_type; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< (((mpl::contains::value)) == 0 ? false : true) >)> boost_static_assert_typedef_430 __attribute__((unused)) ; ((void)0);; ((void)0); ; return index_type::make_iterator(static_cast(it.get_node())); } template typename nth_index_const_iterator::type project(IteratorType it)const { typedef typename nth_index::type index_type; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((( mpl::contains::value|| mpl::contains::value)) == 0 ? false : true) >)> boost_static_assert_typedef_448 __attribute__((unused)) ; ((void)0);; ((void)0); ; return index_type::make_iterator(static_cast(it.get_node())); } template struct index_iterator { typedef typename index::type::iterator type; }; template struct index_const_iterator { typedef typename index::type::const_iterator type; }; template typename index_iterator::type project(IteratorType it) { typedef typename index::type index_type; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< (((mpl::contains::value)) == 0 ? false : true) >)> boost_static_assert_typedef_480 __attribute__((unused)) ; ((void)0);; ((void)0); ; return index_type::make_iterator(static_cast(it.get_node())); } template typename index_const_iterator::type project(IteratorType it)const { typedef typename index::type index_type; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((( mpl::contains::value|| mpl::contains::value)) == 0 ? false : true) >)> boost_static_assert_typedef_497 __attribute__((unused)) ; ((void)0);; ((void)0); ; return index_type::make_iterator(static_cast(it.get_node())); } protected: typedef typename super::copy_map_type copy_map_type; # 523 "/usr/include/boost/multi_index_container.hpp" 3 4 node_type* header()const { return &*bfm_header::member; } node_type* allocate_node() { return &*bfm_allocator::member.allocate(1); } void deallocate_node(node_type* x) { typedef typename node_allocator::pointer node_pointer; bfm_allocator::member.deallocate(static_cast(x),1); } bool empty_()const { return node_count==0; } std::size_t size_()const { return node_count; } std::size_t max_size_()const { return static_cast(-1); } template std::pair insert_(const Value& v,Variant variant) { node_type* x=0; node_type* res=super::insert_(v,x,variant); if(res==x){ ++node_count; return std::pair(res,true); } else{ return std::pair(res,false); } } std::pair insert_(const Value& v) { return insert_(v,detail::lvalue_tag()); } std::pair insert_rv_(const Value& v) { return insert_(v,detail::rvalue_tag()); } template std::pair insert_ref_(T& t) { node_type* x=allocate_node(); { try{ new(&x->value()) value_type(t); { try{ node_type* res=super::insert_(x->value(),x,detail::emplaced_tag()); if(res==x){ ++node_count; return std::pair(res,true); } else{ boost::detail::allocator::destroy(&x->value()); deallocate_node(x); return std::pair(res,false); } } catch(...){ boost::detail::allocator::destroy(&x->value()); throw;; } } } catch(...){ deallocate_node(x); throw;; } } } std::pair insert_ref_(const value_type& x) { return insert_(x); } std::pair insert_ref_(value_type& x) { return insert_(x); } template< typename T0 , typename T1 , typename T2 , typename T3 , typename T4> std::pair emplace_( const T0 & t0 , const T1 & t1 , const T2 & t2 , const T3 & t3 , const T4 & t4) { node_type* x=allocate_node(); { try{ detail::vartempl_placement_new( &x->value(), boost::forward(t0) , boost::forward(t1) , boost::forward(t2) , boost::forward(t3) , boost::forward(t4)); { try{ node_type* res=super::insert_(x->value(),x,detail::emplaced_tag()); if(res==x){ ++node_count; return std::pair(res,true); } else{ boost::detail::allocator::destroy(&x->value()); deallocate_node(x); return std::pair(res,false); } } catch(...){ boost::detail::allocator::destroy(&x->value()); throw;; } } } catch(...){ deallocate_node(x); throw;; } } } template std::pair insert_( const Value& v,node_type* position,Variant variant) { node_type* x=0; node_type* res=super::insert_(v,position,x,variant); if(res==x){ ++node_count; return std::pair(res,true); } else{ return std::pair(res,false); } } std::pair insert_(const Value& v,node_type* position) { return insert_(v,position,detail::lvalue_tag()); } std::pair insert_rv_(const Value& v,node_type* position) { return insert_(v,position,detail::rvalue_tag()); } template std::pair insert_ref_( T& t,node_type* position) { node_type* x=allocate_node(); { try{ new(&x->value()) value_type(t); { try{ node_type* res=super::insert_( x->value(),position,x,detail::emplaced_tag()); if(res==x){ ++node_count; return std::pair(res,true); } else{ boost::detail::allocator::destroy(&x->value()); deallocate_node(x); return std::pair(res,false); } } catch(...){ boost::detail::allocator::destroy(&x->value()); throw;; } } } catch(...){ deallocate_node(x); throw;; } } } std::pair insert_ref_( const value_type& x,node_type* position) { return insert_(x,position); } std::pair insert_ref_( value_type& x,node_type* position) { return insert_(x,position); } template< typename T0 , typename T1 , typename T2 , typename T3 , typename T4> std::pair emplace_hint_( node_type* position, const T0 & t0 , const T1 & t1 , const T2 & t2 , const T3 & t3 , const T4 & t4) { node_type* x=allocate_node(); { try{ detail::vartempl_placement_new( &x->value(), boost::forward(t0) , boost::forward(t1) , boost::forward(t2) , boost::forward(t3) , boost::forward(t4)); { try{ node_type* res=super::insert_( x->value(),position,x,detail::emplaced_tag()); if(res==x){ ++node_count; return std::pair(res,true); } else{ boost::detail::allocator::destroy(&x->value()); deallocate_node(x); return std::pair(res,false); } } catch(...){ boost::detail::allocator::destroy(&x->value()); throw;; } } } catch(...){ deallocate_node(x); throw;; } } } void erase_(node_type* x) { --node_count; super::erase_(x); deallocate_node(x); } void delete_node_(node_type* x) { super::delete_node_(x); deallocate_node(x); } void delete_all_nodes_() { super::delete_all_nodes_(); } void clear_() { delete_all_nodes_(); super::clear_(); node_count=0; } void swap_(multi_index_container& x) { if(bfm_allocator::member!=x.bfm_allocator::member){ detail::adl_swap(bfm_allocator::member,x.bfm_allocator::member); } std::swap(bfm_header::member,x.bfm_header::member); super::swap_(x); std::swap(node_count,x.node_count); } void swap_elements_( multi_index_container& x) { std::swap(bfm_header::member,x.bfm_header::member); super::swap_elements_(x); std::swap(node_count,x.node_count); } bool replace_(const Value& k,node_type* x) { return super::replace_(k,x,detail::lvalue_tag()); } bool replace_rv_(const Value& k,node_type* x) { return super::replace_(k,x,detail::rvalue_tag()); } template bool modify_(Modifier& mod,node_type* x) { mod(const_cast(x->value())); { try{ if(!super::modify_(x)){ deallocate_node(x); --node_count; return false; } else return true; } catch(...){ deallocate_node(x); --node_count; throw;; } } } template bool modify_(Modifier& mod,Rollback& back_,node_type* x) { mod(const_cast(x->value())); bool b; { try{ b=super::modify_rollback_(x); } catch(...){ { try{ back_(const_cast(x->value())); throw;; } catch(...){ this->erase_(x); throw;; } } } } { try{ if(!b){ back_(const_cast(x->value())); return false; } else return true; } catch(...){ this->erase_(x); throw;; } } } friend class boost::serialization::access; template void serialize( Archive &ar, const unsigned int file_version ){ boost::serialization::split_member(ar, *this, file_version); } typedef typename super::index_saver_type index_saver_type; typedef typename super::index_loader_type index_loader_type; template void save(Archive& ar,const unsigned int version)const { const serialization::collection_size_type s(size_()); const detail::serialization_version value_version; ar< void load(Archive& ar,const unsigned int version) { ; clear_(); serialization::collection_size_type s; detail::serialization_version value_version; if(version<1){ std::size_t sz; ar>>serialization::make_nvp("count",sz); s=static_cast(sz); } else{ ar>>serialization::make_nvp("count",s); } if(version<2){ value_version=0; } else{ ar>>serialization::make_nvp("value_version",value_version); } index_loader_type lm(bfm_allocator::member,s); for(std::size_t n=0;n value("item",ar,value_version); std::pair p=insert_( value.get(),super::end().get_node()); if(!p.second)throw_exception( archive::archive_exception( archive::archive_exception::other_exception)); ar.reset_object_address(&p.first->value(),&value.get()); lm.add(p.first,ar,version); } lm.add_track(header(),ar,version); super::load_(ar,version,lm); } # 952 "/usr/include/boost/multi_index_container.hpp" 3 4 private: std::size_t node_count; }; template struct nth_index { static const int M=mpl::size::type::value ; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((N>=0&&N)> boost_static_assert_typedef_973 __attribute__((unused)); typedef typename mpl::at_c< typename MultiIndexContainer::index_type_list,N>::type type; }; template typename nth_index< multi_index_container,N>::type& get( multi_index_container& m) { typedef multi_index_container< Value,IndexSpecifierList,Allocator> multi_index_type; typedef typename nth_index< multi_index_container< Value,IndexSpecifierList,Allocator>, N >::type index_type; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((N>=0&& N< mpl::size< typename multi_index_type::index_type_list >::type::value) == 0 ? false : true) >)> boost_static_assert_typedef_996 __attribute__((unused)) ; return detail::converter::index(m); } template const typename nth_index< multi_index_container,N>::type& get( const multi_index_container& m ) { typedef multi_index_container< Value,IndexSpecifierList,Allocator> multi_index_type; typedef typename nth_index< multi_index_container< Value,IndexSpecifierList,Allocator>, N >::type index_type; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((N>=0&& N< mpl::size< typename multi_index_type::index_type_list >::type::value) == 0 ? false : true) >)> boost_static_assert_typedef_1020 __attribute__((unused)) ; return detail::converter::index(m); } template struct index { typedef typename MultiIndexContainer::index_type_list index_type_list; typedef typename mpl::find_if< index_type_list, detail::has_tag >::type iter; static const bool index_found=!(is_same::type >::value) ; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((index_found) == 0 ? false : true) >)> boost_static_assert_typedef_1039 __attribute__((unused)); typedef typename mpl::deref::type type; }; template< typename Tag,typename Value,typename IndexSpecifierList,typename Allocator > typename ::boost::multi_index::index< multi_index_container,Tag>::type& get( multi_index_container& m) { typedef multi_index_container< Value,IndexSpecifierList,Allocator> multi_index_type; typedef typename ::boost::multi_index::index< multi_index_container< Value,IndexSpecifierList,Allocator>, Tag >::type index_type; return detail::converter::index(m); } template< typename Tag,typename Value,typename IndexSpecifierList,typename Allocator > const typename ::boost::multi_index::index< multi_index_container,Tag>::type& get( const multi_index_container& m ) { typedef multi_index_container< Value,IndexSpecifierList,Allocator> multi_index_type; typedef typename ::boost::multi_index::index< multi_index_container< Value,IndexSpecifierList,Allocator>, Tag >::type index_type; return detail::converter::index(m); } template struct nth_index_iterator { typedef typename nth_index::type::iterator type; }; template struct nth_index_const_iterator { typedef typename nth_index::type::const_iterator type; }; template< int N,typename IteratorType, typename Value,typename IndexSpecifierList,typename Allocator> typename nth_index_iterator< multi_index_container,N>::type project( multi_index_container& m, IteratorType it) { typedef multi_index_container< Value,IndexSpecifierList,Allocator> multi_index_type; typedef typename nth_index::type index_type; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((( mpl::contains< typename multi_index_type::iterator_type_list, IteratorType>::value)) == 0 ? false : true) >)> boost_static_assert_typedef_1114 __attribute__((unused)) ; ((void)0);; # 1126 "/usr/include/boost/multi_index_container.hpp" 3 4 return detail::converter::iterator( m,static_cast(it.get_node())); } template< int N,typename IteratorType, typename Value,typename IndexSpecifierList,typename Allocator> typename nth_index_const_iterator< multi_index_container,N>::type project( const multi_index_container& m, IteratorType it) { typedef multi_index_container< Value,IndexSpecifierList,Allocator> multi_index_type; typedef typename nth_index::type index_type; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((( mpl::contains< typename multi_index_type::iterator_type_list, IteratorType>::value|| mpl::contains< typename multi_index_type::const_iterator_type_list, IteratorType>::value)) == 0 ? false : true) >)> boost_static_assert_typedef_1150 __attribute__((unused)) ; ((void)0);; # 1162 "/usr/include/boost/multi_index_container.hpp" 3 4 return detail::converter::const_iterator( m,static_cast(it.get_node())); } template struct index_iterator { typedef typename ::boost::multi_index::index< MultiIndexContainer,Tag>::type::iterator type; }; template struct index_const_iterator { typedef typename ::boost::multi_index::index< MultiIndexContainer,Tag>::type::const_iterator type; }; template< typename Tag,typename IteratorType, typename Value,typename IndexSpecifierList,typename Allocator> typename index_iterator< multi_index_container,Tag>::type project( multi_index_container& m, IteratorType it) { typedef multi_index_container< Value,IndexSpecifierList,Allocator> multi_index_type; typedef typename ::boost::multi_index::index< multi_index_type,Tag>::type index_type; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((( mpl::contains< typename multi_index_type::iterator_type_list, IteratorType>::value)) == 0 ? false : true) >)> boost_static_assert_typedef_1200 __attribute__((unused)) ; ((void)0);; # 1212 "/usr/include/boost/multi_index_container.hpp" 3 4 return detail::converter::iterator( m,static_cast(it.get_node())); } template< typename Tag,typename IteratorType, typename Value,typename IndexSpecifierList,typename Allocator> typename index_const_iterator< multi_index_container,Tag>::type project( const multi_index_container& m, IteratorType it) { typedef multi_index_container< Value,IndexSpecifierList,Allocator> multi_index_type; typedef typename ::boost::multi_index::index< multi_index_type,Tag>::type index_type; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((( mpl::contains< typename multi_index_type::iterator_type_list, IteratorType>::value|| mpl::contains< typename multi_index_type::const_iterator_type_list, IteratorType>::value)) == 0 ? false : true) >)> boost_static_assert_typedef_1237 __attribute__((unused)) ; ((void)0);; # 1249 "/usr/include/boost/multi_index_container.hpp" 3 4 return detail::converter::const_iterator( m,static_cast(it.get_node())); } template< typename Value1,typename IndexSpecifierList1,typename Allocator1, typename Value2,typename IndexSpecifierList2,typename Allocator2 > bool operator==( const multi_index_container& x, const multi_index_container& y) { return get<0>(x)==get<0>(y); } template< typename Value1,typename IndexSpecifierList1,typename Allocator1, typename Value2,typename IndexSpecifierList2,typename Allocator2 > bool operator<( const multi_index_container& x, const multi_index_container& y) { return get<0>(x)(y); } template< typename Value1,typename IndexSpecifierList1,typename Allocator1, typename Value2,typename IndexSpecifierList2,typename Allocator2 > bool operator!=( const multi_index_container& x, const multi_index_container& y) { return get<0>(x)!=get<0>(y); } template< typename Value1,typename IndexSpecifierList1,typename Allocator1, typename Value2,typename IndexSpecifierList2,typename Allocator2 > bool operator>( const multi_index_container& x, const multi_index_container& y) { return get<0>(x)>get<0>(y); } template< typename Value1,typename IndexSpecifierList1,typename Allocator1, typename Value2,typename IndexSpecifierList2,typename Allocator2 > bool operator>=( const multi_index_container& x, const multi_index_container& y) { return get<0>(x)>=get<0>(y); } template< typename Value1,typename IndexSpecifierList1,typename Allocator1, typename Value2,typename IndexSpecifierList2,typename Allocator2 > bool operator<=( const multi_index_container& x, const multi_index_container& y) { return get<0>(x)<=get<0>(y); } template void swap( multi_index_container& x, multi_index_container& y) { x.swap(y); } } namespace serialization { template struct version< boost::multi_index_container > { static const int value=2; }; } using multi_index::get; using multi_index::project; } # 31 "misc.hh" 2 # 1 "/usr/include/boost/multi_index/ordered_index.hpp" 1 3 4 # 45 "/usr/include/boost/multi_index/ordered_index.hpp" 3 4 # 1 "/usr/include/boost/call_traits.hpp" 1 3 4 # 18 "/usr/include/boost/call_traits.hpp" 3 4 # 1 "/usr/include/boost/detail/call_traits.hpp" 1 3 4 # 31 "/usr/include/boost/detail/call_traits.hpp" 3 4 namespace boost{ namespace detail{ template struct ct_imp2 { typedef const T& param_type; }; template struct ct_imp2 { typedef const T param_type; }; template struct ct_imp { typedef const T& param_type; }; template struct ct_imp { typedef typename ct_imp2::param_type param_type; }; template struct ct_imp { typedef typename ct_imp2::param_type param_type; }; template struct ct_imp { typedef const T param_type; }; } template struct call_traits { public: typedef T value_type; typedef T& reference; typedef const T& const_reference; typedef typename boost::detail::ct_imp< T, ::boost::is_pointer::value, ::boost::is_arithmetic::value, ::boost::is_enum::value >::param_type param_type; }; template struct call_traits { typedef T& value_type; typedef T& reference; typedef const T& const_reference; typedef T& param_type; }; # 143 "/usr/include/boost/detail/call_traits.hpp" 3 4 template struct call_traits { private: typedef T array_type[N]; public: typedef const T* value_type; typedef array_type& reference; typedef const array_type& const_reference; typedef const T* const param_type; }; template struct call_traits { private: typedef const T array_type[N]; public: typedef const T* value_type; typedef array_type& reference; typedef const array_type& const_reference; typedef const T* const param_type; }; } # 19 "/usr/include/boost/call_traits.hpp" 2 3 4 # 46 "/usr/include/boost/multi_index/ordered_index.hpp" 2 3 4 # 55 "/usr/include/boost/multi_index/ordered_index.hpp" 3 4 # 1 "/usr/include/boost/multi_index/detail/bidir_node_iterator.hpp" 1 3 4 # 24 "/usr/include/boost/multi_index/detail/bidir_node_iterator.hpp" 3 4 namespace boost{ namespace multi_index{ namespace detail{ template class bidir_node_iterator: public bidirectional_iterator_helper< bidir_node_iterator, typename Node::value_type, std::ptrdiff_t, const typename Node::value_type*, const typename Node::value_type&> { public: bidir_node_iterator(){} explicit bidir_node_iterator(Node* node_):node(node_){} const typename Node::value_type& operator*()const { return node->value(); } bidir_node_iterator& operator++() { Node::increment(node); return *this; } bidir_node_iterator& operator--() { Node::decrement(node); return *this; } template void serialize( Archive &ar, const unsigned int file_version ){ boost::serialization::split_member(ar, *this, file_version); } typedef typename Node::base_type node_base_type; template void save(Archive& ar,const unsigned int)const { node_base_type* bnode=node; ar< void load(Archive& ar,const unsigned int) { node_base_type* bnode; ar>>serialization::make_nvp("pointer",bnode); node=static_cast(bnode); } typedef Node node_type; Node* get_node()const{return node;} private: Node* node; }; template bool operator==( const bidir_node_iterator& x, const bidir_node_iterator& y) { return x.get_node()==y.get_node(); } } } } # 56 "/usr/include/boost/multi_index/ordered_index.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/detail/modify_key_adaptor.hpp" 1 3 4 # 16 "/usr/include/boost/multi_index/detail/modify_key_adaptor.hpp" 3 4 namespace boost{ namespace multi_index{ namespace detail{ template struct modify_key_adaptor { modify_key_adaptor(Fun f_,KeyFromValue kfv_):f(f_),kfv(kfv_){} void operator()(Value& x) { f(kfv(x)); } private: Fun f; KeyFromValue kfv; }; } } } # 59 "/usr/include/boost/multi_index/ordered_index.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/detail/ord_index_node.hpp" 1 3 4 # 50 "/usr/include/boost/multi_index/detail/ord_index_node.hpp" 3 4 # 1 "/usr/include/boost/multi_index/detail/uintptr_type.hpp" 1 3 4 # 19 "/usr/include/boost/multi_index/detail/uintptr_type.hpp" 3 4 namespace boost{ namespace multi_index{ namespace detail{ # 35 "/usr/include/boost/multi_index/detail/uintptr_type.hpp" 3 4 templatestruct uintptr_candidates; template<>struct uintptr_candidates<-1>{typedef unsigned int type;}; template<>struct uintptr_candidates<0> {typedef unsigned int type;}; template<>struct uintptr_candidates<1> {typedef unsigned short type;}; template<>struct uintptr_candidates<2> {typedef unsigned long type;}; template<>struct uintptr_candidates<3> {typedef boost::ulong_long_type type;}; template<>struct uintptr_candidates<4> {typedef unsigned int type;}; struct uintptr_aux { static const int index= sizeof(void*)==sizeof(uintptr_candidates<0>::type)?0: sizeof(void*)==sizeof(uintptr_candidates<1>::type)?1: sizeof(void*)==sizeof(uintptr_candidates<2>::type)?2: sizeof(void*)==sizeof(uintptr_candidates<3>::type)?3: sizeof(void*)==sizeof(uintptr_candidates<4>::type)?4:-1 ; static const bool has_uintptr_type=(index>=0); typedef uintptr_candidates::type type; }; typedef mpl::bool_ has_uintptr_type; typedef uintptr_aux::type uintptr_type; } } } # 51 "/usr/include/boost/multi_index/detail/ord_index_node.hpp" 2 3 4 namespace boost{ namespace multi_index{ namespace detail{ enum ordered_index_color{red=false,black=true}; enum ordered_index_side{to_left=false,to_right=true}; template struct ordered_index_node_impl; template struct ordered_index_node_std_base { typedef typename boost::detail::allocator::rebind_to< Allocator, ordered_index_node_impl >::type::pointer pointer; typedef typename boost::detail::allocator::rebind_to< Allocator, ordered_index_node_impl >::type::const_pointer const_pointer; typedef ordered_index_color& color_ref; typedef pointer& parent_ref; ordered_index_color& color(){return color_;} ordered_index_color color()const{return color_;} pointer& parent(){return parent_;} pointer parent()const{return parent_;} pointer& left(){return left_;} pointer left()const{return left_;} pointer& right(){return right_;} pointer right()const{return right_;} private: ordered_index_color color_; pointer parent_; pointer left_; pointer right_; }; # 119 "/usr/include/boost/multi_index/detail/ord_index_node.hpp" 3 4 template struct ordered_index_node_compressed_base { typedef ordered_index_node_impl* pointer; typedef const ordered_index_node_impl* const_pointer; struct color_ref { color_ref(uintptr_type* r_):r(r_){} operator ordered_index_color()const { return ordered_index_color(*r&uintptr_type(1)); } color_ref& operator=(ordered_index_color c) { *r&=~uintptr_type(1); *r|=uintptr_type(c); return *this; } color_ref& operator=(const color_ref& x) { return operator=(x.operator ordered_index_color()); } private: uintptr_type* r; }; struct parent_ref { parent_ref(uintptr_type* r_):r(r_){} operator pointer()const { return (pointer)(void*)(*r&~uintptr_type(1)); } parent_ref& operator=(pointer p) { *r=((uintptr_type)(void*)p)|(*r&uintptr_type(1)); return *this; } parent_ref& operator=(const parent_ref& x) { return operator=(x.operator pointer()); } pointer operator->()const { return operator pointer(); } private: uintptr_type* r; }; color_ref color(){return color_ref(&parentcolor_);} ordered_index_color color()const { return ordered_index_color(parentcolor_&std::size_t(1ul)); } parent_ref parent(){return parent_ref(&parentcolor_);} pointer parent()const { return (pointer)(void*)(parentcolor_&~uintptr_type(1)); } pointer& left(){return left_;} pointer left()const{return left_;} pointer& right(){return right_;} pointer right()const{return right_;} private: uintptr_type parentcolor_; pointer left_; pointer right_; }; template struct ordered_index_node_impl_base: mpl::if_c< !(has_uintptr_type::value)|| (alignment_of >::value%2)|| !(is_same< typename boost::detail::allocator::rebind_to< Allocator, ordered_index_node_impl >::type::pointer, ordered_index_node_impl*>::value), ordered_index_node_std_base, ordered_index_node_compressed_base >::type {}; template struct ordered_index_node_impl:ordered_index_node_impl_base { private: typedef ordered_index_node_impl_base super; public: typedef typename super::color_ref color_ref; typedef typename super::parent_ref parent_ref; typedef typename super::pointer pointer; typedef typename super::const_pointer const_pointer; static void increment(pointer& x) { if(x->right()!=pointer(0)){ x=x->right(); while(x->left()!=pointer(0))x=x->left(); } else{ pointer y=x->parent(); while(x==y->right()){ x=y; y=y->parent(); } if(x->right()!=y)x=y; } } static void decrement(pointer& x) { if(x->color()==red&&x->parent()->parent()==x){ x=x->right(); } else if(x->left()!=pointer(0)){ pointer y=x->left(); while(y->right()!=pointer(0))y=y->right(); x=y; }else{ pointer y=x->parent(); while(x==y->left()){ x=y; y=y->parent(); } x=y; } } static void rotate_left(pointer x,parent_ref root) { pointer y=x->right(); x->right()=y->left(); if(y->left()!=pointer(0))y->left()->parent()=x; y->parent()=x->parent(); if(x==root) root=y; else if(x==x->parent()->left())x->parent()->left()=y; else x->parent()->right()=y; y->left()=x; x->parent()=y; } static pointer minimum(pointer x) { while(x->left()!=pointer(0))x=x->left(); return x; } static pointer maximum(pointer x) { while(x->right()!=pointer(0))x=x->right(); return x; } static void rotate_right(pointer x,parent_ref root) { pointer y=x->left(); x->left()=y->right(); if(y->right()!=pointer(0))y->right()->parent()=x; y->parent()=x->parent(); if(x==root) root=y; else if(x==x->parent()->right())x->parent()->right()=y; else x->parent()->left()=y; y->right()=x; x->parent()=y; } static void rebalance(pointer x,parent_ref root) { x->color()=red; while(x!=root&&x->parent()->color()==red){ if(x->parent()==x->parent()->parent()->left()){ pointer y=x->parent()->parent()->right(); if(y!=pointer(0)&&y->color()==red){ x->parent()->color()=black; y->color()=black; x->parent()->parent()->color()=red; x=x->parent()->parent(); } else{ if(x==x->parent()->right()){ x=x->parent(); rotate_left(x,root); } x->parent()->color()=black; x->parent()->parent()->color()=red; rotate_right(x->parent()->parent(),root); } } else{ pointer y=x->parent()->parent()->left(); if(y!=pointer(0)&&y->color()==red){ x->parent()->color()=black; y->color()=black; x->parent()->parent()->color()=red; x=x->parent()->parent(); } else{ if(x==x->parent()->left()){ x=x->parent(); rotate_right(x,root); } x->parent()->color()=black; x->parent()->parent()->color()=red; rotate_left(x->parent()->parent(),root); } } } root->color()=black; } static void link( pointer x,ordered_index_side side,pointer position,pointer header) { if(side==to_left){ position->left()=x; if(position==header){ header->parent()=x; header->right()=x; } else if(position==header->left()){ header->left()=x; } } else{ position->right()=x; if(position==header->right()){ header->right()=x; } } x->parent()=position; x->left()=pointer(0); x->right()=pointer(0); ordered_index_node_impl::rebalance(x,header->parent()); } static pointer rebalance_for_erase( pointer z,parent_ref root,pointer& leftmost,pointer& rightmost) { pointer y=z; pointer x=pointer(0); pointer x_parent=pointer(0); if(y->left()==pointer(0)){ x=y->right(); } else{ if(y->right()==pointer(0)){ x=y->left(); } else{ y=y->right(); while(y->left()!=pointer(0))y=y->left(); x=y->right(); } } if(y!=z){ z->left()->parent()=y; y->left()=z->left(); if(y!=z->right()){ x_parent=y->parent(); if(x!=pointer(0))x->parent()=y->parent(); y->parent()->left()=x; y->right()=z->right(); z->right()->parent()=y; } else{ x_parent=y; } if(root==z) root=y; else if(z->parent()->left()==z)z->parent()->left()=y; else z->parent()->right()=y; y->parent()=z->parent(); ordered_index_color c=y->color(); y->color()=z->color(); z->color()=c; y=z; } else{ x_parent=y->parent(); if(x!=pointer(0))x->parent()=y->parent(); if(root==z){ root=x; } else{ if(z->parent()->left()==z)z->parent()->left()=x; else z->parent()->right()=x; } if(leftmost==z){ if(z->right()==pointer(0)){ leftmost=z->parent(); } else{ leftmost=minimum(x); } } if(rightmost==z){ if(z->left()==pointer(0)){ rightmost=z->parent(); } else{ rightmost=maximum(x); } } } if(y->color()!=red){ while(x!=root&&(x==pointer(0)|| x->color()==black)){ if(x==x_parent->left()){ pointer w=x_parent->right(); if(w->color()==red){ w->color()=black; x_parent->color()=red; rotate_left(x_parent,root); w=x_parent->right(); } if((w->left()==pointer(0)||w->left()->color()==black) && (w->right()==pointer(0)||w->right()->color()==black)){ w->color()=red; x=x_parent; x_parent=x_parent->parent(); } else{ if(w->right()==pointer(0 ) || w->right()->color()==black){ if(w->left()!=pointer(0)) w->left()->color()=black; w->color()=red; rotate_right(w,root); w=x_parent->right(); } w->color()=x_parent->color(); x_parent->color()=black; if(w->right()!=pointer(0))w->right()->color()=black; rotate_left(x_parent,root); break; } } else{ pointer w=x_parent->left(); if(w->color()==red){ w->color()=black; x_parent->color()=red; rotate_right(x_parent,root); w=x_parent->left(); } if((w->right()==pointer(0)||w->right()->color()==black) && (w->left()==pointer(0)||w->left()->color()==black)){ w->color()=red; x=x_parent; x_parent=x_parent->parent(); } else{ if(w->left()==pointer(0)||w->left()->color()==black){ if(w->right()!=pointer(0))w->right()->color()=black; w->color()=red; rotate_left(w,root); w=x_parent->left(); } w->color()=x_parent->color(); x_parent->color()=black; if(w->left()!=pointer(0))w->left()->color()=black; rotate_right(x_parent,root); break; } } } if(x!=pointer(0))x->color()=black; } return y; } static void restore(pointer x,pointer position,pointer header) { if(position->left()==pointer(0)||position->left()==header){ link(x,to_left,position,header); } else{ decrement(position); link(x,to_right,position,header); } } # 548 "/usr/include/boost/multi_index/detail/ord_index_node.hpp" 3 4 }; template struct ordered_index_node_trampoline: ordered_index_node_impl< typename boost::detail::allocator::rebind_to< typename Super::allocator_type, char >::type > { typedef ordered_index_node_impl< typename boost::detail::allocator::rebind_to< typename Super::allocator_type, char >::type > impl_type; }; template struct ordered_index_node:Super,ordered_index_node_trampoline { private: typedef ordered_index_node_trampoline trampoline; public: typedef typename trampoline::impl_type impl_type; typedef typename trampoline::color_ref impl_color_ref; typedef typename trampoline::parent_ref impl_parent_ref; typedef typename trampoline::pointer impl_pointer; typedef typename trampoline::const_pointer const_impl_pointer; impl_color_ref color(){return trampoline::color();} ordered_index_color color()const{return trampoline::color();} impl_parent_ref parent(){return trampoline::parent();} impl_pointer parent()const{return trampoline::parent();} impl_pointer& left(){return trampoline::left();} impl_pointer left()const{return trampoline::left();} impl_pointer& right(){return trampoline::right();} impl_pointer right()const{return trampoline::right();} impl_pointer impl() { return static_cast( static_cast(static_cast(this))); } const_impl_pointer impl()const { return static_cast( static_cast(static_cast(this))); } static ordered_index_node* from_impl(impl_pointer x) { return static_cast( static_cast(&*x)); } static const ordered_index_node* from_impl(const_impl_pointer x) { return static_cast( static_cast(&*x)); } static void increment(ordered_index_node*& x) { impl_pointer xi=x->impl(); trampoline::increment(xi); x=from_impl(xi); } static void decrement(ordered_index_node*& x) { impl_pointer xi=x->impl(); trampoline::decrement(xi); x=from_impl(xi); } }; } } } # 60 "/usr/include/boost/multi_index/ordered_index.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/detail/ord_index_ops.hpp" 1 3 4 # 46 "/usr/include/boost/multi_index/detail/ord_index_ops.hpp" 3 4 namespace boost{ namespace multi_index{ namespace detail{ template< typename Node,typename KeyFromValue, typename CompatibleKey,typename CompatibleCompare > inline Node* ordered_index_find( Node* top,Node* y,const KeyFromValue& key,const CompatibleKey& x, const CompatibleCompare& comp) { Node* y0=y; while (top){ if(!comp(key(top->value()),x)){ y=top; top=Node::from_impl(top->left()); } else top=Node::from_impl(top->right()); } return (y==y0||comp(x,key(y->value())))?y0:y; } template< typename Node,typename KeyFromValue, typename CompatibleKey,typename CompatibleCompare > inline Node* ordered_index_lower_bound( Node* top,Node* y,const KeyFromValue& key,const CompatibleKey& x, const CompatibleCompare& comp) { while(top){ if(!comp(key(top->value()),x)){ y=top; top=Node::from_impl(top->left()); } else top=Node::from_impl(top->right()); } return y; } template< typename Node,typename KeyFromValue, typename CompatibleKey,typename CompatibleCompare > inline Node* ordered_index_upper_bound( Node* top,Node* y,const KeyFromValue& key,const CompatibleKey& x, const CompatibleCompare& comp) { while(top){ if(comp(x,key(top->value()))){ y=top; top=Node::from_impl(top->left()); } else top=Node::from_impl(top->right()); } return y; } template< typename Node,typename KeyFromValue, typename CompatibleKey,typename CompatibleCompare > inline std::pair ordered_index_equal_range( Node* top,Node* y,const KeyFromValue& key,const CompatibleKey& x, const CompatibleCompare& comp) { while(top){ if(comp(key(top->value()),x)){ top=Node::from_impl(top->right()); } else if(comp(x,key(top->value()))){ y=top; top=Node::from_impl(top->left()); } else{ return std::pair( ordered_index_lower_bound(Node::from_impl(top->left()),top,key,x,comp), ordered_index_upper_bound(Node::from_impl(top->right()),y,key,x,comp)); } } return std::pair(y,y); } } } } # 61 "/usr/include/boost/multi_index/ordered_index.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/detail/unbounded.hpp" 1 3 4 # 19 "/usr/include/boost/multi_index/detail/unbounded.hpp" 3 4 namespace boost{ namespace multi_index{ namespace detail{class unbounded_helper;} detail::unbounded_helper unbounded(detail::unbounded_helper); namespace detail{ class unbounded_helper { unbounded_helper(){} unbounded_helper(const unbounded_helper&){} friend unbounded_helper multi_index::unbounded(unbounded_helper); }; typedef unbounded_helper (*unbounded_type)(unbounded_helper); } inline detail::unbounded_helper unbounded(detail::unbounded_helper) { return detail::unbounded_helper(); } namespace detail{ struct none_unbounded_tag{}; struct lower_unbounded_tag{}; struct upper_unbounded_tag{}; struct both_unbounded_tag{}; } } } # 64 "/usr/include/boost/multi_index/ordered_index.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/detail/value_compare.hpp" 1 3 4 # 20 "/usr/include/boost/multi_index/detail/value_compare.hpp" 3 4 namespace boost{ namespace multi_index{ namespace detail{ template struct value_comparison:std::binary_function { value_comparison( const KeyFromValue& key_=KeyFromValue(),const Compare& comp_=Compare()): key(key_),comp(comp_) { } bool operator()( typename call_traits::param_type x, typename call_traits::param_type y)const { return comp(key(x),key(y)); } private: KeyFromValue key; Compare comp; }; } } } # 65 "/usr/include/boost/multi_index/ordered_index.hpp" 2 3 4 # 78 "/usr/include/boost/multi_index/ordered_index.hpp" 3 4 # 1 "/usr/include/boost/bind.hpp" 1 3 4 # 22 "/usr/include/boost/bind.hpp" 3 4 # 1 "/usr/include/boost/bind/bind.hpp" 1 3 4 # 28 "/usr/include/boost/bind/bind.hpp" 3 4 # 1 "/usr/include/boost/is_placeholder.hpp" 1 3 4 # 21 "/usr/include/boost/is_placeholder.hpp" 3 4 namespace boost { template< class T > struct is_placeholder { enum _vt { value = 0 }; }; } # 29 "/usr/include/boost/bind/bind.hpp" 2 3 4 # 1 "/usr/include/boost/bind/arg.hpp" 1 3 4 # 26 "/usr/include/boost/bind/arg.hpp" 3 4 namespace boost { template< int I > struct arg { arg() { } template< class T > arg( T const & ) { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((I == is_placeholder::value) == 0 ? false : true) >)> boost_static_assert_typedef_37 __attribute__((unused)); } }; template< int I > bool operator==( arg const &, arg const & ) { return true; } template< int I > struct is_placeholder< arg > { enum _vt { value = I }; }; template< int I > struct is_placeholder< arg (*) () > { enum _vt { value = I }; }; } # 30 "/usr/include/boost/bind/bind.hpp" 2 3 4 # 1 "/usr/include/boost/visit_each.hpp" 1 3 4 # 13 "/usr/include/boost/visit_each.hpp" 3 4 namespace boost { template inline void visit_each(Visitor& visitor, const T& t, long) { visitor(t); } template inline void visit_each(Visitor& visitor, const T& t) { visit_each(visitor, t, 0); } } # 32 "/usr/include/boost/bind/bind.hpp" 2 3 4 # 41 "/usr/include/boost/bind/bind.hpp" 3 4 # 1 "/usr/include/boost/bind/storage.hpp" 1 3 4 # 32 "/usr/include/boost/bind/storage.hpp" 3 4 namespace boost { namespace _bi { template struct storage1 { explicit storage1( A1 a1 ): a1_( a1 ) {} template void accept(V & v) const { visit_each(v, a1_, 0); } A1 a1_; }; template struct storage1< boost::arg > { explicit storage1( boost::arg ) {} template void accept(V &) const { } static boost::arg a1_() { return boost::arg(); } }; template struct storage1< boost::arg (*) () > { explicit storage1( boost::arg (*) () ) {} template void accept(V &) const { } static boost::arg a1_() { return boost::arg(); } }; template struct storage2: public storage1 { typedef storage1 inherited; storage2( A1 a1, A2 a2 ): storage1( a1 ), a2_( a2 ) {} template void accept(V & v) const { inherited::accept(v); visit_each(v, a2_, 0); } A2 a2_; }; template struct storage2< A1, boost::arg >: public storage1 { typedef storage1 inherited; storage2( A1 a1, boost::arg ): storage1( a1 ) {} template void accept(V & v) const { inherited::accept(v); } static boost::arg a2_() { return boost::arg(); } }; template struct storage2< A1, boost::arg (*) () >: public storage1 { typedef storage1 inherited; storage2( A1 a1, boost::arg (*) () ): storage1( a1 ) {} template void accept(V & v) const { inherited::accept(v); } static boost::arg a2_() { return boost::arg(); } }; template struct storage3: public storage2< A1, A2 > { typedef storage2 inherited; storage3( A1 a1, A2 a2, A3 a3 ): storage2( a1, a2 ), a3_( a3 ) {} template void accept(V & v) const { inherited::accept(v); visit_each(v, a3_, 0); } A3 a3_; }; template struct storage3< A1, A2, boost::arg >: public storage2< A1, A2 > { typedef storage2 inherited; storage3( A1 a1, A2 a2, boost::arg ): storage2( a1, a2 ) {} template void accept(V & v) const { inherited::accept(v); } static boost::arg a3_() { return boost::arg(); } }; template struct storage3< A1, A2, boost::arg (*) () >: public storage2< A1, A2 > { typedef storage2 inherited; storage3( A1 a1, A2 a2, boost::arg (*) () ): storage2( a1, a2 ) {} template void accept(V & v) const { inherited::accept(v); } static boost::arg a3_() { return boost::arg(); } }; template struct storage4: public storage3< A1, A2, A3 > { typedef storage3 inherited; storage4( A1 a1, A2 a2, A3 a3, A4 a4 ): storage3( a1, a2, a3 ), a4_( a4 ) {} template void accept(V & v) const { inherited::accept(v); visit_each(v, a4_, 0); } A4 a4_; }; template struct storage4< A1, A2, A3, boost::arg >: public storage3< A1, A2, A3 > { typedef storage3 inherited; storage4( A1 a1, A2 a2, A3 a3, boost::arg ): storage3( a1, a2, a3 ) {} template void accept(V & v) const { inherited::accept(v); } static boost::arg a4_() { return boost::arg(); } }; template struct storage4< A1, A2, A3, boost::arg (*) () >: public storage3< A1, A2, A3 > { typedef storage3 inherited; storage4( A1 a1, A2 a2, A3 a3, boost::arg (*) () ): storage3( a1, a2, a3 ) {} template void accept(V & v) const { inherited::accept(v); } static boost::arg a4_() { return boost::arg(); } }; template struct storage5: public storage4< A1, A2, A3, A4 > { typedef storage4 inherited; storage5( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5 ): storage4( a1, a2, a3, a4 ), a5_( a5 ) {} template void accept(V & v) const { inherited::accept(v); visit_each(v, a5_, 0); } A5 a5_; }; template struct storage5< A1, A2, A3, A4, boost::arg >: public storage4< A1, A2, A3, A4 > { typedef storage4 inherited; storage5( A1 a1, A2 a2, A3 a3, A4 a4, boost::arg ): storage4( a1, a2, a3, a4 ) {} template void accept(V & v) const { inherited::accept(v); } static boost::arg a5_() { return boost::arg(); } }; template struct storage5< A1, A2, A3, A4, boost::arg (*) () >: public storage4< A1, A2, A3, A4 > { typedef storage4 inherited; storage5( A1 a1, A2 a2, A3 a3, A4 a4, boost::arg (*) () ): storage4( a1, a2, a3, a4 ) {} template void accept(V & v) const { inherited::accept(v); } static boost::arg a5_() { return boost::arg(); } }; template struct storage6: public storage5< A1, A2, A3, A4, A5 > { typedef storage5 inherited; storage6( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6 ): storage5( a1, a2, a3, a4, a5 ), a6_( a6 ) {} template void accept(V & v) const { inherited::accept(v); visit_each(v, a6_, 0); } A6 a6_; }; template struct storage6< A1, A2, A3, A4, A5, boost::arg >: public storage5< A1, A2, A3, A4, A5 > { typedef storage5 inherited; storage6( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, boost::arg ): storage5( a1, a2, a3, a4, a5 ) {} template void accept(V & v) const { inherited::accept(v); } static boost::arg a6_() { return boost::arg(); } }; template struct storage6< A1, A2, A3, A4, A5, boost::arg (*) () >: public storage5< A1, A2, A3, A4, A5 > { typedef storage5 inherited; storage6( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, boost::arg (*) () ): storage5( a1, a2, a3, a4, a5 ) {} template void accept(V & v) const { inherited::accept(v); } static boost::arg a6_() { return boost::arg(); } }; template struct storage7: public storage6< A1, A2, A3, A4, A5, A6 > { typedef storage6 inherited; storage7( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7 ): storage6( a1, a2, a3, a4, a5, a6 ), a7_( a7 ) {} template void accept(V & v) const { inherited::accept(v); visit_each(v, a7_, 0); } A7 a7_; }; template struct storage7< A1, A2, A3, A4, A5, A6, boost::arg >: public storage6< A1, A2, A3, A4, A5, A6 > { typedef storage6 inherited; storage7( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, boost::arg ): storage6( a1, a2, a3, a4, a5, a6 ) {} template void accept(V & v) const { inherited::accept(v); } static boost::arg a7_() { return boost::arg(); } }; template struct storage7< A1, A2, A3, A4, A5, A6, boost::arg (*) () >: public storage6< A1, A2, A3, A4, A5, A6 > { typedef storage6 inherited; storage7( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, boost::arg (*) () ): storage6( a1, a2, a3, a4, a5, a6 ) {} template void accept(V & v) const { inherited::accept(v); } static boost::arg a7_() { return boost::arg(); } }; template struct storage8: public storage7< A1, A2, A3, A4, A5, A6, A7 > { typedef storage7 inherited; storage8( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8 ): storage7( a1, a2, a3, a4, a5, a6, a7 ), a8_( a8 ) {} template void accept(V & v) const { inherited::accept(v); visit_each(v, a8_, 0); } A8 a8_; }; template struct storage8< A1, A2, A3, A4, A5, A6, A7, boost::arg >: public storage7< A1, A2, A3, A4, A5, A6, A7 > { typedef storage7 inherited; storage8( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, boost::arg ): storage7( a1, a2, a3, a4, a5, a6, a7 ) {} template void accept(V & v) const { inherited::accept(v); } static boost::arg a8_() { return boost::arg(); } }; template struct storage8< A1, A2, A3, A4, A5, A6, A7, boost::arg (*) () >: public storage7< A1, A2, A3, A4, A5, A6, A7 > { typedef storage7 inherited; storage8( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, boost::arg (*) () ): storage7( a1, a2, a3, a4, a5, a6, a7 ) {} template void accept(V & v) const { inherited::accept(v); } static boost::arg a8_() { return boost::arg(); } }; template struct storage9: public storage8< A1, A2, A3, A4, A5, A6, A7, A8 > { typedef storage8 inherited; storage9( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9 ): storage8( a1, a2, a3, a4, a5, a6, a7, a8 ), a9_( a9 ) {} template void accept(V & v) const { inherited::accept(v); visit_each(v, a9_, 0); } A9 a9_; }; template struct storage9< A1, A2, A3, A4, A5, A6, A7, A8, boost::arg >: public storage8< A1, A2, A3, A4, A5, A6, A7, A8 > { typedef storage8 inherited; storage9( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, boost::arg ): storage8( a1, a2, a3, a4, a5, a6, a7, a8 ) {} template void accept(V & v) const { inherited::accept(v); } static boost::arg a9_() { return boost::arg(); } }; template struct storage9< A1, A2, A3, A4, A5, A6, A7, A8, boost::arg (*) () >: public storage8< A1, A2, A3, A4, A5, A6, A7, A8 > { typedef storage8 inherited; storage9( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, boost::arg (*) () ): storage8( a1, a2, a3, a4, a5, a6, a7, a8 ) {} template void accept(V & v) const { inherited::accept(v); } static boost::arg a9_() { return boost::arg(); } }; } } # 42 "/usr/include/boost/bind/bind.hpp" 2 3 4 namespace boost { template class weak_ptr; namespace _bi { template struct result_traits { typedef R type; }; struct unspecified {}; template struct result_traits { typedef typename F::result_type type; }; template struct result_traits< unspecified, reference_wrapper > { typedef typename F::result_type type; }; template bool ref_compare( T const & a, T const & b, long ) { return a == b; } template bool ref_compare( arg const &, arg const &, int ) { return true; } template bool ref_compare( arg (*) (), arg (*) (), int ) { return true; } template bool ref_compare( reference_wrapper const & a, reference_wrapper const & b, int ) { return a.get_pointer() == b.get_pointer(); } template class bind_t; template bool ref_compare( bind_t const & a, bind_t const & b, int ) { return a.compare( b ); } template class value { public: value(T const & t): t_(t) {} T & get() { return t_; } T const & get() const { return t_; } bool operator==(value const & rhs) const { return t_ == rhs.t_; } private: T t_; }; template bool ref_compare( value< weak_ptr > const & a, value< weak_ptr > const & b, int ) { return !(a.get() < b.get()) && !(b.get() < a.get()); } template class type {}; template struct unwrapper { static inline F & unwrap( F & f, long ) { return f; } template static inline F2 & unwrap( reference_wrapper rf, int ) { return rf.get(); } template static inline _mfi::dm unwrap( R T::* pm, int ) { return _mfi::dm( pm ); } }; class list0 { public: list0() {} template T & operator[] (_bi::value & v) const { return v.get(); } template T const & operator[] (_bi::value const & v) const { return v.get(); } template T & operator[] (reference_wrapper const & v) const { return v.get(); } template typename result_traits::type operator[] (bind_t & b) const { return b.eval(*this); } template typename result_traits::type operator[] (bind_t const & b) const { return b.eval(*this); } template R operator()(type, F & f, A &, long) { return unwrapper::unwrap(f, 0)(); } template R operator()(type, F const & f, A &, long) const { return unwrapper::unwrap(f, 0)(); } template void operator()(type, F & f, A &, int) { unwrapper::unwrap(f, 0)(); } template void operator()(type, F const & f, A &, int) const { unwrapper::unwrap(f, 0)(); } template void accept(V &) const { } bool operator==(list0 const &) const { return true; } }; # 217 "/usr/include/boost/bind/bind.hpp" 3 4 template< class A1 > class list1: private storage1< A1 > { private: typedef storage1< A1 > base_type; public: explicit list1( A1 a1 ): base_type( a1 ) {} A1 operator[] (boost::arg<1>) const { return base_type::a1_; } A1 operator[] (boost::arg<1> (*) ()) const { return base_type::a1_; } template T & operator[] ( _bi::value & v ) const { return v.get(); } template T const & operator[] ( _bi::value const & v ) const { return v.get(); } template T & operator[] (reference_wrapper const & v) const { return v.get(); } template typename result_traits::type operator[] (bind_t & b) const { return b.eval(*this); } template typename result_traits::type operator[] (bind_t const & b) const { return b.eval(*this); } template R operator()(type, F & f, A & a, long) { return unwrapper::unwrap(f, 0)(a[base_type::a1_]); } template R operator()(type, F const & f, A & a, long) const { return unwrapper::unwrap(f, 0)(a[base_type::a1_]); } template void operator()(type, F & f, A & a, int) { unwrapper::unwrap(f, 0)(a[base_type::a1_]); } template void operator()(type, F const & f, A & a, int) const { unwrapper::unwrap(f, 0)(a[base_type::a1_]); } template void accept(V & v) const { base_type::accept(v); } bool operator==(list1 const & rhs) const { return ref_compare(base_type::a1_, rhs.a1_, 0); } }; struct logical_and; struct logical_or; template< class A1, class A2 > class list2: private storage2< A1, A2 > { private: typedef storage2< A1, A2 > base_type; public: list2( A1 a1, A2 a2 ): base_type( a1, a2 ) {} A1 operator[] (boost::arg<1>) const { return base_type::a1_; } A2 operator[] (boost::arg<2>) const { return base_type::a2_; } A1 operator[] (boost::arg<1> (*) ()) const { return base_type::a1_; } A2 operator[] (boost::arg<2> (*) ()) const { return base_type::a2_; } template T & operator[] (_bi::value & v) const { return v.get(); } template T const & operator[] (_bi::value const & v) const { return v.get(); } template T & operator[] (reference_wrapper const & v) const { return v.get(); } template typename result_traits::type operator[] (bind_t & b) const { return b.eval(*this); } template typename result_traits::type operator[] (bind_t const & b) const { return b.eval(*this); } template R operator()(type, F & f, A & a, long) { return unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_]); } template R operator()(type, F const & f, A & a, long) const { return unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_]); } template void operator()(type, F & f, A & a, int) { unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_]); } template void operator()(type, F const & f, A & a, int) const { unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_]); } template bool operator()( type, logical_and & , A & a, int ) { return a[ base_type::a1_ ] && a[ base_type::a2_ ]; } template bool operator()( type, logical_and const & , A & a, int ) const { return a[ base_type::a1_ ] && a[ base_type::a2_ ]; } template bool operator()( type, logical_or & , A & a, int ) { return a[ base_type::a1_ ] || a[ base_type::a2_ ]; } template bool operator()( type, logical_or const & , A & a, int ) const { return a[ base_type::a1_ ] || a[ base_type::a2_ ]; } template void accept(V & v) const { base_type::accept(v); } bool operator==(list2 const & rhs) const { return ref_compare(base_type::a1_, rhs.a1_, 0) && ref_compare(base_type::a2_, rhs.a2_, 0); } }; template< class A1, class A2, class A3 > class list3: private storage3< A1, A2, A3 > { private: typedef storage3< A1, A2, A3 > base_type; public: list3( A1 a1, A2 a2, A3 a3 ): base_type( a1, a2, a3 ) {} A1 operator[] (boost::arg<1>) const { return base_type::a1_; } A2 operator[] (boost::arg<2>) const { return base_type::a2_; } A3 operator[] (boost::arg<3>) const { return base_type::a3_; } A1 operator[] (boost::arg<1> (*) ()) const { return base_type::a1_; } A2 operator[] (boost::arg<2> (*) ()) const { return base_type::a2_; } A3 operator[] (boost::arg<3> (*) ()) const { return base_type::a3_; } template T & operator[] (_bi::value & v) const { return v.get(); } template T const & operator[] (_bi::value const & v) const { return v.get(); } template T & operator[] (reference_wrapper const & v) const { return v.get(); } template typename result_traits::type operator[] (bind_t & b) const { return b.eval(*this); } template typename result_traits::type operator[] (bind_t const & b) const { return b.eval(*this); } template R operator()(type, F & f, A & a, long) { return unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_]); } template R operator()(type, F const & f, A & a, long) const { return unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_]); } template void operator()(type, F & f, A & a, int) { unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_]); } template void operator()(type, F const & f, A & a, int) const { unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_]); } template void accept(V & v) const { base_type::accept(v); } bool operator==(list3 const & rhs) const { return ref_compare( base_type::a1_, rhs.a1_, 0 ) && ref_compare( base_type::a2_, rhs.a2_, 0 ) && ref_compare( base_type::a3_, rhs.a3_, 0 ); } }; template< class A1, class A2, class A3, class A4 > class list4: private storage4< A1, A2, A3, A4 > { private: typedef storage4< A1, A2, A3, A4 > base_type; public: list4( A1 a1, A2 a2, A3 a3, A4 a4 ): base_type( a1, a2, a3, a4 ) {} A1 operator[] (boost::arg<1>) const { return base_type::a1_; } A2 operator[] (boost::arg<2>) const { return base_type::a2_; } A3 operator[] (boost::arg<3>) const { return base_type::a3_; } A4 operator[] (boost::arg<4>) const { return base_type::a4_; } A1 operator[] (boost::arg<1> (*) ()) const { return base_type::a1_; } A2 operator[] (boost::arg<2> (*) ()) const { return base_type::a2_; } A3 operator[] (boost::arg<3> (*) ()) const { return base_type::a3_; } A4 operator[] (boost::arg<4> (*) ()) const { return base_type::a4_; } template T & operator[] (_bi::value & v) const { return v.get(); } template T const & operator[] (_bi::value const & v) const { return v.get(); } template T & operator[] (reference_wrapper const & v) const { return v.get(); } template typename result_traits::type operator[] (bind_t & b) const { return b.eval(*this); } template typename result_traits::type operator[] (bind_t const & b) const { return b.eval(*this); } template R operator()(type, F & f, A & a, long) { return unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_]); } template R operator()(type, F const & f, A & a, long) const { return unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_]); } template void operator()(type, F & f, A & a, int) { unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_]); } template void operator()(type, F const & f, A & a, int) const { unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_]); } template void accept(V & v) const { base_type::accept(v); } bool operator==(list4 const & rhs) const { return ref_compare( base_type::a1_, rhs.a1_, 0 ) && ref_compare( base_type::a2_, rhs.a2_, 0 ) && ref_compare( base_type::a3_, rhs.a3_, 0 ) && ref_compare( base_type::a4_, rhs.a4_, 0 ); } }; template< class A1, class A2, class A3, class A4, class A5 > class list5: private storage5< A1, A2, A3, A4, A5 > { private: typedef storage5< A1, A2, A3, A4, A5 > base_type; public: list5( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5 ): base_type( a1, a2, a3, a4, a5 ) {} A1 operator[] (boost::arg<1>) const { return base_type::a1_; } A2 operator[] (boost::arg<2>) const { return base_type::a2_; } A3 operator[] (boost::arg<3>) const { return base_type::a3_; } A4 operator[] (boost::arg<4>) const { return base_type::a4_; } A5 operator[] (boost::arg<5>) const { return base_type::a5_; } A1 operator[] (boost::arg<1> (*) ()) const { return base_type::a1_; } A2 operator[] (boost::arg<2> (*) ()) const { return base_type::a2_; } A3 operator[] (boost::arg<3> (*) ()) const { return base_type::a3_; } A4 operator[] (boost::arg<4> (*) ()) const { return base_type::a4_; } A5 operator[] (boost::arg<5> (*) ()) const { return base_type::a5_; } template T & operator[] (_bi::value & v) const { return v.get(); } template T const & operator[] (_bi::value const & v) const { return v.get(); } template T & operator[] (reference_wrapper const & v) const { return v.get(); } template typename result_traits::type operator[] (bind_t & b) const { return b.eval(*this); } template typename result_traits::type operator[] (bind_t const & b) const { return b.eval(*this); } template R operator()(type, F & f, A & a, long) { return unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_]); } template R operator()(type, F const & f, A & a, long) const { return unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_]); } template void operator()(type, F & f, A & a, int) { unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_]); } template void operator()(type, F const & f, A & a, int) const { unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_]); } template void accept(V & v) const { base_type::accept(v); } bool operator==(list5 const & rhs) const { return ref_compare( base_type::a1_, rhs.a1_, 0 ) && ref_compare( base_type::a2_, rhs.a2_, 0 ) && ref_compare( base_type::a3_, rhs.a3_, 0 ) && ref_compare( base_type::a4_, rhs.a4_, 0 ) && ref_compare( base_type::a5_, rhs.a5_, 0 ); } }; template class list6: private storage6< A1, A2, A3, A4, A5, A6 > { private: typedef storage6< A1, A2, A3, A4, A5, A6 > base_type; public: list6( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6 ): base_type( a1, a2, a3, a4, a5, a6 ) {} A1 operator[] (boost::arg<1>) const { return base_type::a1_; } A2 operator[] (boost::arg<2>) const { return base_type::a2_; } A3 operator[] (boost::arg<3>) const { return base_type::a3_; } A4 operator[] (boost::arg<4>) const { return base_type::a4_; } A5 operator[] (boost::arg<5>) const { return base_type::a5_; } A6 operator[] (boost::arg<6>) const { return base_type::a6_; } A1 operator[] (boost::arg<1> (*) ()) const { return base_type::a1_; } A2 operator[] (boost::arg<2> (*) ()) const { return base_type::a2_; } A3 operator[] (boost::arg<3> (*) ()) const { return base_type::a3_; } A4 operator[] (boost::arg<4> (*) ()) const { return base_type::a4_; } A5 operator[] (boost::arg<5> (*) ()) const { return base_type::a5_; } A6 operator[] (boost::arg<6> (*) ()) const { return base_type::a6_; } template T & operator[] (_bi::value & v) const { return v.get(); } template T const & operator[] (_bi::value const & v) const { return v.get(); } template T & operator[] (reference_wrapper const & v) const { return v.get(); } template typename result_traits::type operator[] (bind_t & b) const { return b.eval(*this); } template typename result_traits::type operator[] (bind_t const & b) const { return b.eval(*this); } template R operator()(type, F & f, A & a, long) { return unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_]); } template R operator()(type, F const & f, A & a, long) const { return unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_]); } template void operator()(type, F & f, A & a, int) { unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_]); } template void operator()(type, F const & f, A & a, int) const { unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_]); } template void accept(V & v) const { base_type::accept(v); } bool operator==(list6 const & rhs) const { return ref_compare( base_type::a1_, rhs.a1_, 0 ) && ref_compare( base_type::a2_, rhs.a2_, 0 ) && ref_compare( base_type::a3_, rhs.a3_, 0 ) && ref_compare( base_type::a4_, rhs.a4_, 0 ) && ref_compare( base_type::a5_, rhs.a5_, 0 ) && ref_compare( base_type::a6_, rhs.a6_, 0 ); } }; template class list7: private storage7< A1, A2, A3, A4, A5, A6, A7 > { private: typedef storage7< A1, A2, A3, A4, A5, A6, A7 > base_type; public: list7( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7 ): base_type( a1, a2, a3, a4, a5, a6, a7 ) {} A1 operator[] (boost::arg<1>) const { return base_type::a1_; } A2 operator[] (boost::arg<2>) const { return base_type::a2_; } A3 operator[] (boost::arg<3>) const { return base_type::a3_; } A4 operator[] (boost::arg<4>) const { return base_type::a4_; } A5 operator[] (boost::arg<5>) const { return base_type::a5_; } A6 operator[] (boost::arg<6>) const { return base_type::a6_; } A7 operator[] (boost::arg<7>) const { return base_type::a7_; } A1 operator[] (boost::arg<1> (*) ()) const { return base_type::a1_; } A2 operator[] (boost::arg<2> (*) ()) const { return base_type::a2_; } A3 operator[] (boost::arg<3> (*) ()) const { return base_type::a3_; } A4 operator[] (boost::arg<4> (*) ()) const { return base_type::a4_; } A5 operator[] (boost::arg<5> (*) ()) const { return base_type::a5_; } A6 operator[] (boost::arg<6> (*) ()) const { return base_type::a6_; } A7 operator[] (boost::arg<7> (*) ()) const { return base_type::a7_; } template T & operator[] (_bi::value & v) const { return v.get(); } template T const & operator[] (_bi::value const & v) const { return v.get(); } template T & operator[] (reference_wrapper const & v) const { return v.get(); } template typename result_traits::type operator[] (bind_t & b) const { return b.eval(*this); } template typename result_traits::type operator[] (bind_t const & b) const { return b.eval(*this); } template R operator()(type, F & f, A & a, long) { return unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_], a[base_type::a7_]); } template R operator()(type, F const & f, A & a, long) const { return unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_], a[base_type::a7_]); } template void operator()(type, F & f, A & a, int) { unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_], a[base_type::a7_]); } template void operator()(type, F const & f, A & a, int) const { unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_], a[base_type::a7_]); } template void accept(V & v) const { base_type::accept(v); } bool operator==(list7 const & rhs) const { return ref_compare( base_type::a1_, rhs.a1_, 0 ) && ref_compare( base_type::a2_, rhs.a2_, 0 ) && ref_compare( base_type::a3_, rhs.a3_, 0 ) && ref_compare( base_type::a4_, rhs.a4_, 0 ) && ref_compare( base_type::a5_, rhs.a5_, 0 ) && ref_compare( base_type::a6_, rhs.a6_, 0 ) && ref_compare( base_type::a7_, rhs.a7_, 0 ); } }; template< class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8 > class list8: private storage8< A1, A2, A3, A4, A5, A6, A7, A8 > { private: typedef storage8< A1, A2, A3, A4, A5, A6, A7, A8 > base_type; public: list8( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8 ): base_type( a1, a2, a3, a4, a5, a6, a7, a8 ) {} A1 operator[] (boost::arg<1>) const { return base_type::a1_; } A2 operator[] (boost::arg<2>) const { return base_type::a2_; } A3 operator[] (boost::arg<3>) const { return base_type::a3_; } A4 operator[] (boost::arg<4>) const { return base_type::a4_; } A5 operator[] (boost::arg<5>) const { return base_type::a5_; } A6 operator[] (boost::arg<6>) const { return base_type::a6_; } A7 operator[] (boost::arg<7>) const { return base_type::a7_; } A8 operator[] (boost::arg<8>) const { return base_type::a8_; } A1 operator[] (boost::arg<1> (*) ()) const { return base_type::a1_; } A2 operator[] (boost::arg<2> (*) ()) const { return base_type::a2_; } A3 operator[] (boost::arg<3> (*) ()) const { return base_type::a3_; } A4 operator[] (boost::arg<4> (*) ()) const { return base_type::a4_; } A5 operator[] (boost::arg<5> (*) ()) const { return base_type::a5_; } A6 operator[] (boost::arg<6> (*) ()) const { return base_type::a6_; } A7 operator[] (boost::arg<7> (*) ()) const { return base_type::a7_; } A8 operator[] (boost::arg<8> (*) ()) const { return base_type::a8_; } template T & operator[] (_bi::value & v) const { return v.get(); } template T const & operator[] (_bi::value const & v) const { return v.get(); } template T & operator[] (reference_wrapper const & v) const { return v.get(); } template typename result_traits::type operator[] (bind_t & b) const { return b.eval(*this); } template typename result_traits::type operator[] (bind_t const & b) const { return b.eval(*this); } template R operator()(type, F & f, A & a, long) { return unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_], a[base_type::a7_], a[base_type::a8_]); } template R operator()(type, F const & f, A & a, long) const { return unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_], a[base_type::a7_], a[base_type::a8_]); } template void operator()(type, F & f, A & a, int) { unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_], a[base_type::a7_], a[base_type::a8_]); } template void operator()(type, F const & f, A & a, int) const { unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_], a[base_type::a7_], a[base_type::a8_]); } template void accept(V & v) const { base_type::accept(v); } bool operator==(list8 const & rhs) const { return ref_compare( base_type::a1_, rhs.a1_, 0 ) && ref_compare( base_type::a2_, rhs.a2_, 0 ) && ref_compare( base_type::a3_, rhs.a3_, 0 ) && ref_compare( base_type::a4_, rhs.a4_, 0 ) && ref_compare( base_type::a5_, rhs.a5_, 0 ) && ref_compare( base_type::a6_, rhs.a6_, 0 ) && ref_compare( base_type::a7_, rhs.a7_, 0 ) && ref_compare( base_type::a8_, rhs.a8_, 0 ); } }; template class list9: private storage9< A1, A2, A3, A4, A5, A6, A7, A8, A9 > { private: typedef storage9< A1, A2, A3, A4, A5, A6, A7, A8, A9 > base_type; public: list9( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9 ): base_type( a1, a2, a3, a4, a5, a6, a7, a8, a9 ) {} A1 operator[] (boost::arg<1>) const { return base_type::a1_; } A2 operator[] (boost::arg<2>) const { return base_type::a2_; } A3 operator[] (boost::arg<3>) const { return base_type::a3_; } A4 operator[] (boost::arg<4>) const { return base_type::a4_; } A5 operator[] (boost::arg<5>) const { return base_type::a5_; } A6 operator[] (boost::arg<6>) const { return base_type::a6_; } A7 operator[] (boost::arg<7>) const { return base_type::a7_; } A8 operator[] (boost::arg<8>) const { return base_type::a8_; } A9 operator[] (boost::arg<9>) const { return base_type::a9_; } A1 operator[] (boost::arg<1> (*) ()) const { return base_type::a1_; } A2 operator[] (boost::arg<2> (*) ()) const { return base_type::a2_; } A3 operator[] (boost::arg<3> (*) ()) const { return base_type::a3_; } A4 operator[] (boost::arg<4> (*) ()) const { return base_type::a4_; } A5 operator[] (boost::arg<5> (*) ()) const { return base_type::a5_; } A6 operator[] (boost::arg<6> (*) ()) const { return base_type::a6_; } A7 operator[] (boost::arg<7> (*) ()) const { return base_type::a7_; } A8 operator[] (boost::arg<8> (*) ()) const { return base_type::a8_; } A9 operator[] (boost::arg<9> (*) ()) const { return base_type::a9_; } template T & operator[] (_bi::value & v) const { return v.get(); } template T const & operator[] (_bi::value const & v) const { return v.get(); } template T & operator[] (reference_wrapper const & v) const { return v.get(); } template typename result_traits::type operator[] (bind_t & b) const { return b.eval(*this); } template typename result_traits::type operator[] (bind_t const & b) const { return b.eval(*this); } template R operator()(type, F & f, A & a, long) { return unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_], a[base_type::a7_], a[base_type::a8_], a[base_type::a9_]); } template R operator()(type, F const & f, A & a, long) const { return unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_], a[base_type::a7_], a[base_type::a8_], a[base_type::a9_]); } template void operator()(type, F & f, A & a, int) { unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_], a[base_type::a7_], a[base_type::a8_], a[base_type::a9_]); } template void operator()(type, F const & f, A & a, int) const { unwrapper::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_], a[base_type::a7_], a[base_type::a8_], a[base_type::a9_]); } template void accept(V & v) const { base_type::accept(v); } bool operator==(list9 const & rhs) const { return ref_compare( base_type::a1_, rhs.a1_, 0 ) && ref_compare( base_type::a2_, rhs.a2_, 0 ) && ref_compare( base_type::a3_, rhs.a3_, 0 ) && ref_compare( base_type::a4_, rhs.a4_, 0 ) && ref_compare( base_type::a5_, rhs.a5_, 0 ) && ref_compare( base_type::a6_, rhs.a6_, 0 ) && ref_compare( base_type::a7_, rhs.a7_, 0 ) && ref_compare( base_type::a8_, rhs.a8_, 0 ) && ref_compare( base_type::a9_, rhs.a9_, 0 ); } }; # 864 "/usr/include/boost/bind/bind.hpp" 3 4 template class bind_t { public: typedef bind_t this_type; bind_t(F f, L const & l): f_(f), l_(l) {} # 1 "/usr/include/boost/bind/bind_template.hpp" 1 3 4 # 15 "/usr/include/boost/bind/bind_template.hpp" 3 4 typedef typename result_traits::type result_type; result_type operator()() { list0 a; return l_(type(), f_, a, 0); } result_type operator()() const { list0 a; return l_(type(), f_, a, 0); } template result_type operator()(A1 & a1) { list1 a(a1); return l_(type(), f_, a, 0); } template result_type operator()(A1 & a1) const { list1 a(a1); return l_(type(), f_, a, 0); } template result_type operator()(A1 const & a1) { list1 a(a1); return l_(type(), f_, a, 0); } template result_type operator()(A1 const & a1) const { list1 a(a1); return l_(type(), f_, a, 0); } template result_type operator()(A1 & a1, A2 & a2) { list2 a(a1, a2); return l_(type(), f_, a, 0); } template result_type operator()(A1 & a1, A2 & a2) const { list2 a(a1, a2); return l_(type(), f_, a, 0); } template result_type operator()(A1 const & a1, A2 & a2) { list2 a(a1, a2); return l_(type(), f_, a, 0); } template result_type operator()(A1 const & a1, A2 & a2) const { list2 a(a1, a2); return l_(type(), f_, a, 0); } template result_type operator()(A1 & a1, A2 const & a2) { list2 a(a1, a2); return l_(type(), f_, a, 0); } template result_type operator()(A1 & a1, A2 const & a2) const { list2 a(a1, a2); return l_(type(), f_, a, 0); } template result_type operator()(A1 const & a1, A2 const & a2) { list2 a(a1, a2); return l_(type(), f_, a, 0); } template result_type operator()(A1 const & a1, A2 const & a2) const { list2 a(a1, a2); return l_(type(), f_, a, 0); } template result_type operator()(A1 & a1, A2 & a2, A3 & a3) { list3 a(a1, a2, a3); return l_(type(), f_, a, 0); } template result_type operator()(A1 & a1, A2 & a2, A3 & a3) const { list3 a(a1, a2, a3); return l_(type(), f_, a, 0); } template result_type operator()(A1 const & a1, A2 const & a2, A3 const & a3) { list3 a(a1, a2, a3); return l_(type(), f_, a, 0); } template result_type operator()(A1 const & a1, A2 const & a2, A3 const & a3) const { list3 a(a1, a2, a3); return l_(type(), f_, a, 0); } template result_type operator()(A1 & a1, A2 & a2, A3 & a3, A4 & a4) { list4 a(a1, a2, a3, a4); return l_(type(), f_, a, 0); } template result_type operator()(A1 & a1, A2 & a2, A3 & a3, A4 & a4) const { list4 a(a1, a2, a3, a4); return l_(type(), f_, a, 0); } template result_type operator()(A1 const & a1, A2 const & a2, A3 const & a3, A4 const & a4) { list4 a(a1, a2, a3, a4); return l_(type(), f_, a, 0); } template result_type operator()(A1 const & a1, A2 const & a2, A3 const & a3, A4 const & a4) const { list4 a(a1, a2, a3, a4); return l_(type(), f_, a, 0); } template result_type operator()(A1 & a1, A2 & a2, A3 & a3, A4 & a4, A5 & a5) { list5 a(a1, a2, a3, a4, a5); return l_(type(), f_, a, 0); } template result_type operator()(A1 & a1, A2 & a2, A3 & a3, A4 & a4, A5 & a5) const { list5 a(a1, a2, a3, a4, a5); return l_(type(), f_, a, 0); } template result_type operator()(A1 const & a1, A2 const & a2, A3 const & a3, A4 const & a4, A5 const & a5) { list5 a(a1, a2, a3, a4, a5); return l_(type(), f_, a, 0); } template result_type operator()(A1 const & a1, A2 const & a2, A3 const & a3, A4 const & a4, A5 const & a5) const { list5 a(a1, a2, a3, a4, a5); return l_(type(), f_, a, 0); } template result_type operator()(A1 & a1, A2 & a2, A3 & a3, A4 & a4, A5 & a5, A6 & a6) { list6 a(a1, a2, a3, a4, a5, a6); return l_(type(), f_, a, 0); } template result_type operator()(A1 & a1, A2 & a2, A3 & a3, A4 & a4, A5 & a5, A6 & a6) const { list6 a(a1, a2, a3, a4, a5, a6); return l_(type(), f_, a, 0); } template result_type operator()(A1 const & a1, A2 const & a2, A3 const & a3, A4 const & a4, A5 const & a5, A6 const & a6) { list6 a(a1, a2, a3, a4, a5, a6); return l_(type(), f_, a, 0); } template result_type operator()(A1 const & a1, A2 const & a2, A3 const & a3, A4 const & a4, A5 const & a5, A6 const & a6) const { list6 a(a1, a2, a3, a4, a5, a6); return l_(type(), f_, a, 0); } template result_type operator()(A1 & a1, A2 & a2, A3 & a3, A4 & a4, A5 & a5, A6 & a6, A7 & a7) { list7 a(a1, a2, a3, a4, a5, a6, a7); return l_(type(), f_, a, 0); } template result_type operator()(A1 & a1, A2 & a2, A3 & a3, A4 & a4, A5 & a5, A6 & a6, A7 & a7) const { list7 a(a1, a2, a3, a4, a5, a6, a7); return l_(type(), f_, a, 0); } template result_type operator()(A1 const & a1, A2 const & a2, A3 const & a3, A4 const & a4, A5 const & a5, A6 const & a6, A7 const & a7) { list7 a(a1, a2, a3, a4, a5, a6, a7); return l_(type(), f_, a, 0); } template result_type operator()(A1 const & a1, A2 const & a2, A3 const & a3, A4 const & a4, A5 const & a5, A6 const & a6, A7 const & a7) const { list7 a(a1, a2, a3, a4, a5, a6, a7); return l_(type(), f_, a, 0); } template result_type operator()(A1 & a1, A2 & a2, A3 & a3, A4 & a4, A5 & a5, A6 & a6, A7 & a7, A8 & a8) { list8 a(a1, a2, a3, a4, a5, a6, a7, a8); return l_(type(), f_, a, 0); } template result_type operator()(A1 & a1, A2 & a2, A3 & a3, A4 & a4, A5 & a5, A6 & a6, A7 & a7, A8 & a8) const { list8 a(a1, a2, a3, a4, a5, a6, a7, a8); return l_(type(), f_, a, 0); } template result_type operator()(A1 const & a1, A2 const & a2, A3 const & a3, A4 const & a4, A5 const & a5, A6 const & a6, A7 const & a7, A8 const & a8) { list8 a(a1, a2, a3, a4, a5, a6, a7, a8); return l_(type(), f_, a, 0); } template result_type operator()(A1 const & a1, A2 const & a2, A3 const & a3, A4 const & a4, A5 const & a5, A6 const & a6, A7 const & a7, A8 const & a8) const { list8 a(a1, a2, a3, a4, a5, a6, a7, a8); return l_(type(), f_, a, 0); } template result_type operator()(A1 & a1, A2 & a2, A3 & a3, A4 & a4, A5 & a5, A6 & a6, A7 & a7, A8 & a8, A9 & a9) { list9 a(a1, a2, a3, a4, a5, a6, a7, a8, a9); return l_(type(), f_, a, 0); } template result_type operator()(A1 & a1, A2 & a2, A3 & a3, A4 & a4, A5 & a5, A6 & a6, A7 & a7, A8 & a8, A9 & a9) const { list9 a(a1, a2, a3, a4, a5, a6, a7, a8, a9); return l_(type(), f_, a, 0); } template result_type operator()(A1 const & a1, A2 const & a2, A3 const & a3, A4 const & a4, A5 const & a5, A6 const & a6, A7 const & a7, A8 const & a8, A9 const & a9) { list9 a(a1, a2, a3, a4, a5, a6, a7, a8, a9); return l_(type(), f_, a, 0); } template result_type operator()(A1 const & a1, A2 const & a2, A3 const & a3, A4 const & a4, A5 const & a5, A6 const & a6, A7 const & a7, A8 const & a8, A9 const & a9) const { list9 a(a1, a2, a3, a4, a5, a6, a7, a8, a9); return l_(type(), f_, a, 0); } template result_type eval(A & a) { return l_(type(), f_, a, 0); } template result_type eval(A & a) const { return l_(type(), f_, a, 0); } template void accept(V & v) const { using boost::visit_each; visit_each(v, f_, 0); l_.accept(v); } bool compare(this_type const & rhs) const { return ref_compare(f_, rhs.f_, 0) && l_ == rhs.l_; } private: F f_; L l_; # 874 "/usr/include/boost/bind/bind.hpp" 2 3 4 }; # 940 "/usr/include/boost/bind/bind.hpp" 3 4 template bool function_equal( bind_t const & a, bind_t const & b ) { return a.compare(b); } # 994 "/usr/include/boost/bind/bind.hpp" 3 4 template< class T, int I > struct add_value_2 { typedef boost::arg type; }; template< class T > struct add_value_2< T, 0 > { typedef _bi::value< T > type; }; template struct add_value { typedef typename add_value_2< T, boost::is_placeholder< T >::value >::type type; }; template struct add_value< value > { typedef _bi::value type; }; template struct add_value< reference_wrapper > { typedef reference_wrapper type; }; template struct add_value< arg > { typedef boost::arg type; }; template struct add_value< arg (*) () > { typedef boost::arg (*type) (); }; template struct add_value< bind_t > { typedef bind_t type; }; # 1077 "/usr/include/boost/bind/bind.hpp" 3 4 template struct list_av_1 { typedef typename add_value::type B1; typedef list1 type; }; template struct list_av_2 { typedef typename add_value::type B1; typedef typename add_value::type B2; typedef list2 type; }; template struct list_av_3 { typedef typename add_value::type B1; typedef typename add_value::type B2; typedef typename add_value::type B3; typedef list3 type; }; template struct list_av_4 { typedef typename add_value::type B1; typedef typename add_value::type B2; typedef typename add_value::type B3; typedef typename add_value::type B4; typedef list4 type; }; template struct list_av_5 { typedef typename add_value::type B1; typedef typename add_value::type B2; typedef typename add_value::type B3; typedef typename add_value::type B4; typedef typename add_value::type B5; typedef list5 type; }; template struct list_av_6 { typedef typename add_value::type B1; typedef typename add_value::type B2; typedef typename add_value::type B3; typedef typename add_value::type B4; typedef typename add_value::type B5; typedef typename add_value::type B6; typedef list6 type; }; template struct list_av_7 { typedef typename add_value::type B1; typedef typename add_value::type B2; typedef typename add_value::type B3; typedef typename add_value::type B4; typedef typename add_value::type B5; typedef typename add_value::type B6; typedef typename add_value::type B7; typedef list7 type; }; template struct list_av_8 { typedef typename add_value::type B1; typedef typename add_value::type B2; typedef typename add_value::type B3; typedef typename add_value::type B4; typedef typename add_value::type B5; typedef typename add_value::type B6; typedef typename add_value::type B7; typedef typename add_value::type B8; typedef list8 type; }; template struct list_av_9 { typedef typename add_value::type B1; typedef typename add_value::type B2; typedef typename add_value::type B3; typedef typename add_value::type B4; typedef typename add_value::type B5; typedef typename add_value::type B6; typedef typename add_value::type B7; typedef typename add_value::type B8; typedef typename add_value::type B9; typedef list9 type; }; struct logical_not { template bool operator()(V const & v) const { return !v; } }; template bind_t< bool, logical_not, list1< bind_t > > operator! (bind_t const & f) { typedef list1< bind_t > list_type; return bind_t ( logical_not(), list_type(f) ); } # 1200 "/usr/include/boost/bind/bind.hpp" 3 4 struct equal { template bool operator()(V const & v, W const & w) const { return v == w; } }; template bind_t< bool, equal, list2< bind_t, typename add_value::type > > operator == (bind_t const & f, A2 a2) { typedef typename add_value::type B2; typedef list2< bind_t, B2> list_type; return bind_t ( equal(), list_type(f, a2) ); } struct not_equal { template bool operator()(V const & v, W const & w) const { return v != w; } }; template bind_t< bool, not_equal, list2< bind_t, typename add_value::type > > operator != (bind_t const & f, A2 a2) { typedef typename add_value::type B2; typedef list2< bind_t, B2> list_type; return bind_t ( not_equal(), list_type(f, a2) ); } struct less { template bool operator()(V const & v, W const & w) const { return v < w; } }; template bind_t< bool, less, list2< bind_t, typename add_value::type > > operator < (bind_t const & f, A2 a2) { typedef typename add_value::type B2; typedef list2< bind_t, B2> list_type; return bind_t ( less(), list_type(f, a2) ); } struct less_equal { template bool operator()(V const & v, W const & w) const { return v <= w; } }; template bind_t< bool, less_equal, list2< bind_t, typename add_value::type > > operator <= (bind_t const & f, A2 a2) { typedef typename add_value::type B2; typedef list2< bind_t, B2> list_type; return bind_t ( less_equal(), list_type(f, a2) ); } struct greater { template bool operator()(V const & v, W const & w) const { return v > w; } }; template bind_t< bool, greater, list2< bind_t, typename add_value::type > > operator > (bind_t const & f, A2 a2) { typedef typename add_value::type B2; typedef list2< bind_t, B2> list_type; return bind_t ( greater(), list_type(f, a2) ); } struct greater_equal { template bool operator()(V const & v, W const & w) const { return v >= w; } }; template bind_t< bool, greater_equal, list2< bind_t, typename add_value::type > > operator >= (bind_t const & f, A2 a2) { typedef typename add_value::type B2; typedef list2< bind_t, B2> list_type; return bind_t ( greater_equal(), list_type(f, a2) ); } struct logical_and { template bool operator()(V const & v, W const & w) const { return v && w; } }; template bind_t< bool, logical_and, list2< bind_t, typename add_value::type > > operator && (bind_t const & f, A2 a2) { typedef typename add_value::type B2; typedef list2< bind_t, B2> list_type; return bind_t ( logical_and(), list_type(f, a2) ); } struct logical_or { template bool operator()(V const & v, W const & w) const { return v || w; } }; template bind_t< bool, logical_or, list2< bind_t, typename add_value::type > > operator || (bind_t const & f, A2 a2) { typedef typename add_value::type B2; typedef list2< bind_t, B2> list_type; return bind_t ( logical_or(), list_type(f, a2) ); } # 1240 "/usr/include/boost/bind/bind.hpp" 3 4 template void visit_each( V & v, value const & t, int ) { using boost::visit_each; visit_each( v, t.get(), 0 ); } template void visit_each( V & v, bind_t const & t, int ) { t.accept( v ); } } # 1274 "/usr/include/boost/bind/bind.hpp" 3 4 template< class T > struct is_bind_expression { enum _vt { value = 0 }; }; template< class R, class F, class L > struct is_bind_expression< _bi::bind_t< R, F, L > > { enum _vt { value = 1 }; }; # 1296 "/usr/include/boost/bind/bind.hpp" 3 4 template _bi::bind_t bind(F f) { typedef _bi::list0 list_type; return _bi::bind_t (f, list_type()); } template _bi::bind_t::type> bind(F f, A1 a1) { typedef typename _bi::list_av_1::type list_type; return _bi::bind_t (f, list_type(a1)); } template _bi::bind_t::type> bind(F f, A1 a1, A2 a2) { typedef typename _bi::list_av_2::type list_type; return _bi::bind_t (f, list_type(a1, a2)); } template _bi::bind_t::type> bind(F f, A1 a1, A2 a2, A3 a3) { typedef typename _bi::list_av_3::type list_type; return _bi::bind_t(f, list_type(a1, a2, a3)); } template _bi::bind_t::type> bind(F f, A1 a1, A2 a2, A3 a3, A4 a4) { typedef typename _bi::list_av_4::type list_type; return _bi::bind_t(f, list_type(a1, a2, a3, a4)); } template _bi::bind_t::type> bind(F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) { typedef typename _bi::list_av_5::type list_type; return _bi::bind_t(f, list_type(a1, a2, a3, a4, a5)); } template _bi::bind_t::type> bind(F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) { typedef typename _bi::list_av_6::type list_type; return _bi::bind_t(f, list_type(a1, a2, a3, a4, a5, a6)); } template _bi::bind_t::type> bind(F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7) { typedef typename _bi::list_av_7::type list_type; return _bi::bind_t(f, list_type(a1, a2, a3, a4, a5, a6, a7)); } template _bi::bind_t::type> bind(F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8) { typedef typename _bi::list_av_8::type list_type; return _bi::bind_t(f, list_type(a1, a2, a3, a4, a5, a6, a7, a8)); } template _bi::bind_t::type> bind(F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9) { typedef typename _bi::list_av_9::type list_type; return _bi::bind_t(f, list_type(a1, a2, a3, a4, a5, a6, a7, a8, a9)); } template _bi::bind_t bind(boost::type, F f) { typedef _bi::list0 list_type; return _bi::bind_t (f, list_type()); } template _bi::bind_t::type> bind(boost::type, F f, A1 a1) { typedef typename _bi::list_av_1::type list_type; return _bi::bind_t (f, list_type(a1)); } template _bi::bind_t::type> bind(boost::type, F f, A1 a1, A2 a2) { typedef typename _bi::list_av_2::type list_type; return _bi::bind_t (f, list_type(a1, a2)); } template _bi::bind_t::type> bind(boost::type, F f, A1 a1, A2 a2, A3 a3) { typedef typename _bi::list_av_3::type list_type; return _bi::bind_t(f, list_type(a1, a2, a3)); } template _bi::bind_t::type> bind(boost::type, F f, A1 a1, A2 a2, A3 a3, A4 a4) { typedef typename _bi::list_av_4::type list_type; return _bi::bind_t(f, list_type(a1, a2, a3, a4)); } template _bi::bind_t::type> bind(boost::type, F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) { typedef typename _bi::list_av_5::type list_type; return _bi::bind_t(f, list_type(a1, a2, a3, a4, a5)); } template _bi::bind_t::type> bind(boost::type, F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) { typedef typename _bi::list_av_6::type list_type; return _bi::bind_t(f, list_type(a1, a2, a3, a4, a5, a6)); } template _bi::bind_t::type> bind(boost::type, F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7) { typedef typename _bi::list_av_7::type list_type; return _bi::bind_t(f, list_type(a1, a2, a3, a4, a5, a6, a7)); } template _bi::bind_t::type> bind(boost::type, F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8) { typedef typename _bi::list_av_8::type list_type; return _bi::bind_t(f, list_type(a1, a2, a3, a4, a5, a6, a7, a8)); } template _bi::bind_t::type> bind(boost::type, F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9) { typedef typename _bi::list_av_9::type list_type; return _bi::bind_t(f, list_type(a1, a2, a3, a4, a5, a6, a7, a8, a9)); } template _bi::bind_t<_bi::unspecified, F, _bi::list0> bind(F f) { typedef _bi::list0 list_type; return _bi::bind_t<_bi::unspecified, F, list_type> (f, list_type()); } template _bi::bind_t<_bi::unspecified, F, typename _bi::list_av_1::type> bind(F f, A1 a1) { typedef typename _bi::list_av_1::type list_type; return _bi::bind_t<_bi::unspecified, F, list_type> (f, list_type(a1)); } template _bi::bind_t<_bi::unspecified, F, typename _bi::list_av_2::type> bind(F f, A1 a1, A2 a2) { typedef typename _bi::list_av_2::type list_type; return _bi::bind_t<_bi::unspecified, F, list_type> (f, list_type(a1, a2)); } template _bi::bind_t<_bi::unspecified, F, typename _bi::list_av_3::type> bind(F f, A1 a1, A2 a2, A3 a3) { typedef typename _bi::list_av_3::type list_type; return _bi::bind_t<_bi::unspecified, F, list_type>(f, list_type(a1, a2, a3)); } template _bi::bind_t<_bi::unspecified, F, typename _bi::list_av_4::type> bind(F f, A1 a1, A2 a2, A3 a3, A4 a4) { typedef typename _bi::list_av_4::type list_type; return _bi::bind_t<_bi::unspecified, F, list_type>(f, list_type(a1, a2, a3, a4)); } template _bi::bind_t<_bi::unspecified, F, typename _bi::list_av_5::type> bind(F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) { typedef typename _bi::list_av_5::type list_type; return _bi::bind_t<_bi::unspecified, F, list_type>(f, list_type(a1, a2, a3, a4, a5)); } template _bi::bind_t<_bi::unspecified, F, typename _bi::list_av_6::type> bind(F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) { typedef typename _bi::list_av_6::type list_type; return _bi::bind_t<_bi::unspecified, F, list_type>(f, list_type(a1, a2, a3, a4, a5, a6)); } template _bi::bind_t<_bi::unspecified, F, typename _bi::list_av_7::type> bind(F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7) { typedef typename _bi::list_av_7::type list_type; return _bi::bind_t<_bi::unspecified, F, list_type>(f, list_type(a1, a2, a3, a4, a5, a6, a7)); } template _bi::bind_t<_bi::unspecified, F, typename _bi::list_av_8::type> bind(F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8) { typedef typename _bi::list_av_8::type list_type; return _bi::bind_t<_bi::unspecified, F, list_type>(f, list_type(a1, a2, a3, a4, a5, a6, a7, a8)); } template _bi::bind_t<_bi::unspecified, F, typename _bi::list_av_9::type> bind(F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9) { typedef typename _bi::list_av_9::type list_type; return _bi::bind_t<_bi::unspecified, F, list_type>(f, list_type(a1, a2, a3, a4, a5, a6, a7, a8, a9)); } # 1549 "/usr/include/boost/bind/bind.hpp" 3 4 # 1 "/usr/include/boost/bind/bind_cc.hpp" 1 3 4 # 15 "/usr/include/boost/bind/bind_cc.hpp" 3 4 template _bi::bind_t bind( R ( *f) ()) { typedef R ( *F) (); typedef _bi::list0 list_type; return _bi::bind_t (f, list_type()); } template _bi::bind_t::type> bind( R ( *f) (B1), A1 a1) { typedef R ( *F) (B1); typedef typename _bi::list_av_1::type list_type; return _bi::bind_t (f, list_type(a1)); } template _bi::bind_t::type> bind( R ( *f) (B1, B2), A1 a1, A2 a2) { typedef R ( *F) (B1, B2); typedef typename _bi::list_av_2::type list_type; return _bi::bind_t (f, list_type(a1, a2)); } template _bi::bind_t::type> bind( R ( *f) (B1, B2, B3), A1 a1, A2 a2, A3 a3) { typedef R ( *F) (B1, B2, B3); typedef typename _bi::list_av_3::type list_type; return _bi::bind_t(f, list_type(a1, a2, a3)); } template _bi::bind_t::type> bind( R ( *f) (B1, B2, B3, B4), A1 a1, A2 a2, A3 a3, A4 a4) { typedef R ( *F) (B1, B2, B3, B4); typedef typename _bi::list_av_4::type list_type; return _bi::bind_t(f, list_type(a1, a2, a3, a4)); } template _bi::bind_t::type> bind( R ( *f) (B1, B2, B3, B4, B5), A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) { typedef R ( *F) (B1, B2, B3, B4, B5); typedef typename _bi::list_av_5::type list_type; return _bi::bind_t(f, list_type(a1, a2, a3, a4, a5)); } template _bi::bind_t::type> bind( R ( *f) (B1, B2, B3, B4, B5, B6), A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) { typedef R ( *F) (B1, B2, B3, B4, B5, B6); typedef typename _bi::list_av_6::type list_type; return _bi::bind_t(f, list_type(a1, a2, a3, a4, a5, a6)); } template _bi::bind_t::type> bind( R ( *f) (B1, B2, B3, B4, B5, B6, B7), A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7) { typedef R ( *F) (B1, B2, B3, B4, B5, B6, B7); typedef typename _bi::list_av_7::type list_type; return _bi::bind_t(f, list_type(a1, a2, a3, a4, a5, a6, a7)); } template _bi::bind_t::type> bind( R ( *f) (B1, B2, B3, B4, B5, B6, B7, B8), A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8) { typedef R ( *F) (B1, B2, B3, B4, B5, B6, B7, B8); typedef typename _bi::list_av_8::type list_type; return _bi::bind_t(f, list_type(a1, a2, a3, a4, a5, a6, a7, a8)); } template _bi::bind_t::type> bind( R ( *f) (B1, B2, B3, B4, B5, B6, B7, B8, B9), A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9) { typedef R ( *F) (B1, B2, B3, B4, B5, B6, B7, B8, B9); typedef typename _bi::list_av_9::type list_type; return _bi::bind_t(f, list_type(a1, a2, a3, a4, a5, a6, a7, a8, a9)); } # 1550 "/usr/include/boost/bind/bind.hpp" 2 3 4 # 1595 "/usr/include/boost/bind/bind.hpp" 3 4 # 1 "/usr/include/boost/bind/bind_mf_cc.hpp" 1 3 4 # 17 "/usr/include/boost/bind/bind_mf_cc.hpp" 3 4 template _bi::bind_t, typename _bi::list_av_1::type> bind(R ( T::*f) (), A1 a1) { typedef _mfi::mf0 F; typedef typename _bi::list_av_1::type list_type; return _bi::bind_t(F(f), list_type(a1)); } template _bi::bind_t, typename _bi::list_av_1::type> bind(R ( T::*f) () const, A1 a1) { typedef _mfi::cmf0 F; typedef typename _bi::list_av_1::type list_type; return _bi::bind_t(F(f), list_type(a1)); } template _bi::bind_t, typename _bi::list_av_2::type> bind(R ( T::*f) (B1), A1 a1, A2 a2) { typedef _mfi::mf1 F; typedef typename _bi::list_av_2::type list_type; return _bi::bind_t(F(f), list_type(a1, a2)); } template _bi::bind_t, typename _bi::list_av_2::type> bind(R ( T::*f) (B1) const, A1 a1, A2 a2) { typedef _mfi::cmf1 F; typedef typename _bi::list_av_2::type list_type; return _bi::bind_t(F(f), list_type(a1, a2)); } template _bi::bind_t, typename _bi::list_av_3::type> bind(R ( T::*f) (B1, B2), A1 a1, A2 a2, A3 a3) { typedef _mfi::mf2 F; typedef typename _bi::list_av_3::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3)); } template _bi::bind_t, typename _bi::list_av_3::type> bind(R ( T::*f) (B1, B2) const, A1 a1, A2 a2, A3 a3) { typedef _mfi::cmf2 F; typedef typename _bi::list_av_3::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3)); } template _bi::bind_t, typename _bi::list_av_4::type> bind(R ( T::*f) (B1, B2, B3), A1 a1, A2 a2, A3 a3, A4 a4) { typedef _mfi::mf3 F; typedef typename _bi::list_av_4::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3, a4)); } template _bi::bind_t, typename _bi::list_av_4::type> bind(R ( T::*f) (B1, B2, B3) const, A1 a1, A2 a2, A3 a3, A4 a4) { typedef _mfi::cmf3 F; typedef typename _bi::list_av_4::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3, a4)); } template _bi::bind_t, typename _bi::list_av_5::type> bind(R ( T::*f) (B1, B2, B3, B4), A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) { typedef _mfi::mf4 F; typedef typename _bi::list_av_5::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3, a4, a5)); } template _bi::bind_t, typename _bi::list_av_5::type> bind(R ( T::*f) (B1, B2, B3, B4) const, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) { typedef _mfi::cmf4 F; typedef typename _bi::list_av_5::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3, a4, a5)); } template _bi::bind_t, typename _bi::list_av_6::type> bind(R ( T::*f) (B1, B2, B3, B4, B5), A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) { typedef _mfi::mf5 F; typedef typename _bi::list_av_6::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3, a4, a5, a6)); } template _bi::bind_t, typename _bi::list_av_6::type> bind(R ( T::*f) (B1, B2, B3, B4, B5) const, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) { typedef _mfi::cmf5 F; typedef typename _bi::list_av_6::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3, a4, a5, a6)); } template _bi::bind_t, typename _bi::list_av_7::type> bind(R ( T::*f) (B1, B2, B3, B4, B5, B6), A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7) { typedef _mfi::mf6 F; typedef typename _bi::list_av_7::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3, a4, a5, a6, a7)); } template _bi::bind_t, typename _bi::list_av_7::type> bind(R ( T::*f) (B1, B2, B3, B4, B5, B6) const, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7) { typedef _mfi::cmf6 F; typedef typename _bi::list_av_7::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3, a4, a5, a6, a7)); } template _bi::bind_t, typename _bi::list_av_8::type> bind(R ( T::*f) (B1, B2, B3, B4, B5, B6, B7), A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8) { typedef _mfi::mf7 F; typedef typename _bi::list_av_8::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3, a4, a5, a6, a7, a8)); } template _bi::bind_t, typename _bi::list_av_8::type> bind(R ( T::*f) (B1, B2, B3, B4, B5, B6, B7) const, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8) { typedef _mfi::cmf7 F; typedef typename _bi::list_av_8::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3, a4, a5, a6, a7, a8)); } template _bi::bind_t, typename _bi::list_av_9::type> bind(R ( T::*f) (B1, B2, B3, B4, B5, B6, B7, B8), A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9) { typedef _mfi::mf8 F; typedef typename _bi::list_av_9::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3, a4, a5, a6, a7, a8, a9)); } template _bi::bind_t, typename _bi::list_av_9::type> bind(R ( T::*f) (B1, B2, B3, B4, B5, B6, B7, B8) const, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9) { typedef _mfi::cmf8 F; typedef typename _bi::list_av_9::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3, a4, a5, a6, a7, a8, a9)); } # 1596 "/usr/include/boost/bind/bind.hpp" 2 3 4 # 1 "/usr/include/boost/bind/bind_mf2_cc.hpp" 1 3 4 # 18 "/usr/include/boost/bind/bind_mf2_cc.hpp" 3 4 template _bi::bind_t, typename _bi::list_av_1::type> bind(boost::type, R ( T::*f) (), A1 a1) { typedef _mfi::mf0 F; typedef typename _bi::list_av_1::type list_type; return _bi::bind_t(F(f), list_type(a1)); } template _bi::bind_t, typename _bi::list_av_1::type> bind(boost::type, R ( T::*f) () const, A1 a1) { typedef _mfi::cmf0 F; typedef typename _bi::list_av_1::type list_type; return _bi::bind_t(F(f), list_type(a1)); } template _bi::bind_t, typename _bi::list_av_2::type> bind(boost::type, R ( T::*f) (B1), A1 a1, A2 a2) { typedef _mfi::mf1 F; typedef typename _bi::list_av_2::type list_type; return _bi::bind_t(F(f), list_type(a1, a2)); } template _bi::bind_t, typename _bi::list_av_2::type> bind(boost::type, R ( T::*f) (B1) const, A1 a1, A2 a2) { typedef _mfi::cmf1 F; typedef typename _bi::list_av_2::type list_type; return _bi::bind_t(F(f), list_type(a1, a2)); } template _bi::bind_t, typename _bi::list_av_3::type> bind(boost::type, R ( T::*f) (B1, B2), A1 a1, A2 a2, A3 a3) { typedef _mfi::mf2 F; typedef typename _bi::list_av_3::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3)); } template _bi::bind_t, typename _bi::list_av_3::type> bind(boost::type, R ( T::*f) (B1, B2) const, A1 a1, A2 a2, A3 a3) { typedef _mfi::cmf2 F; typedef typename _bi::list_av_3::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3)); } template _bi::bind_t, typename _bi::list_av_4::type> bind(boost::type, R ( T::*f) (B1, B2, B3), A1 a1, A2 a2, A3 a3, A4 a4) { typedef _mfi::mf3 F; typedef typename _bi::list_av_4::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3, a4)); } template _bi::bind_t, typename _bi::list_av_4::type> bind(boost::type, R ( T::*f) (B1, B2, B3) const, A1 a1, A2 a2, A3 a3, A4 a4) { typedef _mfi::cmf3 F; typedef typename _bi::list_av_4::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3, a4)); } template _bi::bind_t, typename _bi::list_av_5::type> bind(boost::type, R ( T::*f) (B1, B2, B3, B4), A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) { typedef _mfi::mf4 F; typedef typename _bi::list_av_5::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3, a4, a5)); } template _bi::bind_t, typename _bi::list_av_5::type> bind(boost::type, R ( T::*f) (B1, B2, B3, B4) const, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) { typedef _mfi::cmf4 F; typedef typename _bi::list_av_5::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3, a4, a5)); } template _bi::bind_t, typename _bi::list_av_6::type> bind(boost::type, R ( T::*f) (B1, B2, B3, B4, B5), A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) { typedef _mfi::mf5 F; typedef typename _bi::list_av_6::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3, a4, a5, a6)); } template _bi::bind_t, typename _bi::list_av_6::type> bind(boost::type, R ( T::*f) (B1, B2, B3, B4, B5) const, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) { typedef _mfi::cmf5 F; typedef typename _bi::list_av_6::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3, a4, a5, a6)); } template _bi::bind_t, typename _bi::list_av_7::type> bind(boost::type, R ( T::*f) (B1, B2, B3, B4, B5, B6), A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7) { typedef _mfi::mf6 F; typedef typename _bi::list_av_7::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3, a4, a5, a6, a7)); } template _bi::bind_t, typename _bi::list_av_7::type> bind(boost::type, R ( T::*f) (B1, B2, B3, B4, B5, B6) const, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7) { typedef _mfi::cmf6 F; typedef typename _bi::list_av_7::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3, a4, a5, a6, a7)); } template _bi::bind_t, typename _bi::list_av_8::type> bind(boost::type, R ( T::*f) (B1, B2, B3, B4, B5, B6, B7), A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8) { typedef _mfi::mf7 F; typedef typename _bi::list_av_8::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3, a4, a5, a6, a7, a8)); } template _bi::bind_t, typename _bi::list_av_8::type> bind(boost::type, R ( T::*f) (B1, B2, B3, B4, B5, B6, B7) const, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8) { typedef _mfi::cmf7 F; typedef typename _bi::list_av_8::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3, a4, a5, a6, a7, a8)); } template _bi::bind_t, typename _bi::list_av_9::type> bind(boost::type, R ( T::*f) (B1, B2, B3, B4, B5, B6, B7, B8), A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9) { typedef _mfi::mf8 F; typedef typename _bi::list_av_9::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3, a4, a5, a6, a7, a8, a9)); } template _bi::bind_t, typename _bi::list_av_9::type> bind(boost::type, R ( T::*f) (B1, B2, B3, B4, B5, B6, B7, B8) const, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9) { typedef _mfi::cmf8 F; typedef typename _bi::list_av_9::type list_type; return _bi::bind_t(F(f), list_type(a1, a2, a3, a4, a5, a6, a7, a8, a9)); } # 1597 "/usr/include/boost/bind/bind.hpp" 2 3 4 # 1656 "/usr/include/boost/bind/bind.hpp" 3 4 namespace _bi { template< class Pm, int I > struct add_cref; template< class M, class T > struct add_cref< M T::*, 0 > { typedef M type; }; template< class M, class T > struct add_cref< M T::*, 1 > { typedef M const & type; }; template< class R, class T > struct add_cref< R (T::*) (), 1 > { typedef void type; }; template< class R, class T > struct add_cref< R (T::*) () const, 1 > { typedef void type; }; template struct isref { enum value_type { value = 0 }; }; template struct isref< R& > { enum value_type { value = 1 }; }; template struct isref< R* > { enum value_type { value = 1 }; }; template struct dm_result { typedef typename add_cref< Pm, 1 >::type type; }; template struct dm_result< Pm, bind_t > { typedef typename bind_t::result_type result_type; typedef typename add_cref< Pm, isref< result_type >::value >::type type; }; } template< class A1, class M, class T > _bi::bind_t< typename _bi::dm_result< M T::*, A1 >::type, _mfi::dm, typename _bi::list_av_1::type > bind( M T::*f, A1 a1 ) { typedef typename _bi::dm_result< M T::*, A1 >::type result_type; typedef _mfi::dm F; typedef typename _bi::list_av_1::type list_type; return _bi::bind_t< result_type, F, list_type >( F( f ), list_type( a1 ) ); } } # 1 "/usr/include/boost/bind/placeholders.hpp" 1 3 4 # 25 "/usr/include/boost/bind/placeholders.hpp" 3 4 namespace { # 55 "/usr/include/boost/bind/placeholders.hpp" 3 4 boost::arg<1> _1; boost::arg<2> _2; boost::arg<3> _3; boost::arg<4> _4; boost::arg<5> _5; boost::arg<6> _6; boost::arg<7> _7; boost::arg<8> _8; boost::arg<9> _9; } # 1743 "/usr/include/boost/bind/bind.hpp" 2 3 4 # 23 "/usr/include/boost/bind.hpp" 2 3 4 # 79 "/usr/include/boost/multi_index/ordered_index.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/detail/duplicates_iterator.hpp" 1 3 4 # 20 "/usr/include/boost/multi_index/detail/duplicates_iterator.hpp" 3 4 namespace boost{ namespace multi_index{ namespace detail{ template class duplicates_iterator { public: typedef typename Node::value_type value_type; typedef std::ptrdiff_t difference_type; typedef const typename Node::value_type* pointer; typedef const typename Node::value_type& reference; typedef std::forward_iterator_tag iterator_category; duplicates_iterator(Node* node_,Node* end_,Predicate pred_): node(node_),begin_chunk(0),end(end_),pred(pred_) { advance(); } duplicates_iterator(Node* end_,Predicate pred_): node(end_),begin_chunk(end_),end(end_),pred(pred_) { } reference operator*()const { return node->value(); } pointer operator->()const { return &node->value(); } duplicates_iterator& operator++() { Node::increment(node); sync(); return *this; } duplicates_iterator operator++(int) { duplicates_iterator tmp(*this); ++(*this); return tmp; } Node* get_node()const{return node;} private: void sync() { if(node!=end&&pred(begin_chunk->value(),node->value()))advance(); } void advance() { for(Node* node2=node;node!=end;node=node2){ Node::increment(node2); if(node2!=end&&!pred(node->value(),node2->value()))break; } begin_chunk=node; } Node* node; Node* begin_chunk; Node* end; Predicate pred; }; template bool operator==( const duplicates_iterator& x, const duplicates_iterator& y) { return x.get_node()==y.get_node(); } template bool operator!=( const duplicates_iterator& x, const duplicates_iterator& y) { return !(x==y); } } } } # 80 "/usr/include/boost/multi_index/ordered_index.hpp" 2 3 4 # 95 "/usr/include/boost/multi_index/ordered_index.hpp" 3 4 namespace boost{ namespace multi_index{ namespace detail{ # 108 "/usr/include/boost/multi_index/ordered_index.hpp" 3 4 struct ordered_unique_tag{}; struct ordered_non_unique_tag{}; template< typename KeyFromValue,typename Compare, typename SuperMeta,typename TagList,typename Category > class ordered_index: protected SuperMeta::type { # 134 "/usr/include/boost/multi_index/ordered_index.hpp" 3 4 typedef typename SuperMeta::type super; protected: typedef ordered_index_node< typename super::node_type> node_type; private: typedef typename node_type::impl_type node_impl_type; typedef typename node_impl_type::pointer node_impl_pointer; public: typedef typename KeyFromValue::result_type key_type; typedef typename node_type::value_type value_type; typedef KeyFromValue key_from_value; typedef Compare key_compare; typedef value_comparison< value_type,KeyFromValue,Compare> value_compare; typedef tuple ctor_args; typedef typename super::final_allocator_type allocator_type; typedef typename allocator_type::reference reference; typedef typename allocator_type::const_reference const_reference; typedef bidir_node_iterator iterator; typedef iterator const_iterator; typedef std::size_t size_type; typedef std::ptrdiff_t difference_type; typedef typename allocator_type::pointer pointer; typedef typename allocator_type::const_pointer const_pointer; typedef typename boost::reverse_iterator reverse_iterator; typedef typename boost::reverse_iterator const_reverse_iterator; typedef TagList tag_list; protected: typedef typename super::final_node_type final_node_type; typedef tuples::cons< ctor_args, typename super::ctor_args_list> ctor_args_list; typedef typename mpl::push_front< typename super::index_type_list, ordered_index>::type index_type_list; typedef typename mpl::push_front< typename super::iterator_type_list, iterator>::type iterator_type_list; typedef typename mpl::push_front< typename super::const_iterator_type_list, const_iterator>::type const_iterator_type_list; typedef typename super::copy_map_type copy_map_type; typedef typename super::index_saver_type index_saver_type; typedef typename super::index_loader_type index_loader_type; private: typedef typename call_traits< value_type>::param_type value_param_type; typedef typename call_traits< key_type>::param_type key_param_type; typedef std::pair emplace_return_type; public: ordered_index& operator=( const ordered_index& x) { this->final()=x.final(); return *this; } # 238 "/usr/include/boost/multi_index/ordered_index.hpp" 3 4 allocator_type get_allocator()const { return this->final().get_allocator(); } iterator begin(){return make_iterator(leftmost());} const_iterator begin()const {return make_iterator(leftmost());} iterator end(){return make_iterator(header());} const_iterator end()const {return make_iterator(header());} reverse_iterator rbegin(){return boost::make_reverse_iterator(end());} const_reverse_iterator rbegin()const {return boost::make_reverse_iterator(end());} reverse_iterator rend(){return boost::make_reverse_iterator(begin());} const_reverse_iterator rend()const {return boost::make_reverse_iterator(begin());} const_iterator cbegin()const {return begin();} const_iterator cend()const {return end();} const_reverse_iterator crbegin()const {return rbegin();} const_reverse_iterator crend()const {return rend();} iterator iterator_to(const value_type& x) { return make_iterator(node_from_value(&x)); } const_iterator iterator_to(const value_type& x)const { return make_iterator(node_from_value(&x)); } bool empty()const {return this->final_empty_();} size_type size()const {return this->final_size_();} size_type max_size()const {return this->final_max_size_();} emplace_return_type emplace ( ) { return emplace_impl ( boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() ); } template< typename T0> emplace_return_type emplace ( const T0 & t0) { return emplace_impl ( boost::forward(t0) , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() ); } template< typename T0 , typename T1> emplace_return_type emplace ( const T0 & t0 , const T1 & t1) { return emplace_impl ( boost::forward(t0) , boost::forward(t1) , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() ); } template< typename T0 , typename T1 , typename T2> emplace_return_type emplace ( const T0 & t0 , const T1 & t1 , const T2 & t2) { return emplace_impl ( boost::forward(t0) , boost::forward(t1) , boost::forward(t2) , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() ); } template< typename T0 , typename T1 , typename T2 , typename T3> emplace_return_type emplace ( const T0 & t0 , const T1 & t1 , const T2 & t2 , const T3 & t3) { return emplace_impl ( boost::forward(t0) , boost::forward(t1) , boost::forward(t2) , boost::forward(t3) , boost::multi_index::detail::noarg() ); } template< typename T0 , typename T1 , typename T2 , typename T3 , typename T4> emplace_return_type emplace ( const T0 & t0 , const T1 & t1 , const T2 & t2 , const T3 & t3 , const T4 & t4) { return emplace_impl ( boost::forward(t0) , boost::forward(t1) , boost::forward(t2) , boost::forward(t3) , boost::forward(t4) ); } iterator emplace_hint ( iterator position ) { return emplace_hint_impl ( position , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() ); } template< typename T0> iterator emplace_hint ( iterator position , const T0 & t0) { return emplace_hint_impl ( position , boost::forward(t0) , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() ); } template< typename T0 , typename T1> iterator emplace_hint ( iterator position , const T0 & t0 , const T1 & t1) { return emplace_hint_impl ( position , boost::forward(t0) , boost::forward(t1) , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() ); } template< typename T0 , typename T1 , typename T2> iterator emplace_hint ( iterator position , const T0 & t0 , const T1 & t1 , const T2 & t2) { return emplace_hint_impl ( position , boost::forward(t0) , boost::forward(t1) , boost::forward(t2) , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() ); } template< typename T0 , typename T1 , typename T2 , typename T3> iterator emplace_hint ( iterator position , const T0 & t0 , const T1 & t1 , const T2 & t2 , const T3 & t3) { return emplace_hint_impl ( position , boost::forward(t0) , boost::forward(t1) , boost::forward(t2) , boost::forward(t3) , boost::multi_index::detail::noarg() ); } template< typename T0 , typename T1 , typename T2 , typename T3 , typename T4> iterator emplace_hint ( iterator position , const T0 & t0 , const T1 & t1 , const T2 & t2 , const T3 & t3 , const T4 & t4) { return emplace_hint_impl ( position , boost::forward(t0) , boost::forward(t1) , boost::forward(t2) , boost::forward(t3) , boost::forward(t4) ); } std::pair insert(const value_type& x) { ; std::pair p=this->final_insert_(x); return std::pair(make_iterator(p.first),p.second); } std::pair insert(::boost::rv< value_type >& x) { ; std::pair p=this->final_insert_rv_(x); return std::pair(make_iterator(p.first),p.second); } iterator insert(iterator position,const value_type& x) { ((void)0);; ((void)0);; ; std::pair p=this->final_insert_( x,static_cast(position.get_node())); return make_iterator(p.first); } iterator insert(iterator position,::boost::rv< value_type >& x) { ((void)0);; ((void)0);; ; std::pair p=this->final_insert_rv_( x,static_cast(position.get_node())); return make_iterator(p.first); } template void insert(InputIterator first,InputIterator last) { ; node_type* hint=header(); for(;first!=last;++first){ hint=this->final_insert_ref_( *first,static_cast(hint)).first; node_type::increment(hint); } } # 347 "/usr/include/boost/multi_index/ordered_index.hpp" 3 4 iterator erase(iterator position) { ((void)0);; ((void)0);; ((void)0);; ; this->final_erase_(static_cast(position++.get_node())); return position; } size_type erase(key_param_type x) { ; std::pair p=equal_range(x); size_type s=0; while(p.first!=p.second){ p.first=erase(p.first); ++s; } return s; } iterator erase(iterator first,iterator last) { ((void)0);; ((void)0);; ((void)0);; ((void)0);; ((void)0);; ; while(first!=last){ first=erase(first); } return first; } bool replace(iterator position,const value_type& x) { ((void)0);; ((void)0);; ((void)0);; ; return this->final_replace_( x,static_cast(position.get_node())); } bool replace(iterator position,::boost::rv< value_type >& x) { ((void)0);; ((void)0);; ((void)0);; ; return this->final_replace_rv_( x,static_cast(position.get_node())); } template bool modify(iterator position,Modifier mod) { ((void)0);; ((void)0);; ((void)0);; ; # 420 "/usr/include/boost/multi_index/ordered_index.hpp" 3 4 return this->final_modify_( mod,static_cast(position.get_node())); } template bool modify(iterator position,Modifier mod,Rollback back_) { ((void)0);; ((void)0);; ((void)0);; ; # 441 "/usr/include/boost/multi_index/ordered_index.hpp" 3 4 return this->final_modify_( mod,back_,static_cast(position.get_node())); } template bool modify_key(iterator position,Modifier mod) { ((void)0);; ((void)0);; ((void)0);; ; return modify( position,modify_key_adaptor(mod,key)); } template bool modify_key(iterator position,Modifier mod,Rollback back_) { ((void)0);; ((void)0);; ((void)0);; ; return modify( position, modify_key_adaptor(mod,key), modify_key_adaptor(back_,key)); } void swap(ordered_index& x) { ; ; this->final_swap_(x.final()); } void clear() { ; this->final_clear_(); } key_from_value key_extractor()const{return key;} key_compare key_comp()const{return comp_;} value_compare value_comp()const{return value_compare(key,comp_);} template iterator find(const CompatibleKey& x)const { return make_iterator(ordered_index_find(root(),header(),key,x,comp_)); } template iterator find( const CompatibleKey& x,const CompatibleCompare& comp)const { return make_iterator(ordered_index_find(root(),header(),key,x,comp)); } template size_type count(const CompatibleKey& x)const { return count(x,comp_); } template size_type count(const CompatibleKey& x,const CompatibleCompare& comp)const { std::pair p=equal_range(x,comp); size_type n=std::distance(p.first,p.second); return n; } template iterator lower_bound(const CompatibleKey& x)const { return make_iterator( ordered_index_lower_bound(root(),header(),key,x,comp_)); } template iterator lower_bound( const CompatibleKey& x,const CompatibleCompare& comp)const { return make_iterator( ordered_index_lower_bound(root(),header(),key,x,comp)); } template iterator upper_bound(const CompatibleKey& x)const { return make_iterator( ordered_index_upper_bound(root(),header(),key,x,comp_)); } template iterator upper_bound( const CompatibleKey& x,const CompatibleCompare& comp)const { return make_iterator( ordered_index_upper_bound(root(),header(),key,x,comp)); } template std::pair equal_range( const CompatibleKey& x)const { std::pair p= ordered_index_equal_range(root(),header(),key,x,comp_); return std::pair( make_iterator(p.first),make_iterator(p.second)); } template std::pair equal_range( const CompatibleKey& x,const CompatibleCompare& comp)const { std::pair p= ordered_index_equal_range(root(),header(),key,x,comp); return std::pair( make_iterator(p.first),make_iterator(p.second)); } template std::pair range(LowerBounder lower,UpperBounder upper)const { typedef typename mpl::if_< is_same, typename mpl::if_< is_same, both_unbounded_tag, lower_unbounded_tag >::type, typename mpl::if_< is_same, upper_unbounded_tag, none_unbounded_tag >::type >::type dispatch; return range(lower,upper,dispatch()); } protected: ordered_index(const ctor_args_list& args_list,const allocator_type& al): super(args_list.get_tail(),al), key(tuples::get<0>(args_list.get_head())), comp_(tuples::get<1>(args_list.get_head())) { empty_initialize(); } ordered_index( const ordered_index& x): super(x), key(x.key), comp_(x.comp_) { } ordered_index( const ordered_index& x, do_not_copy_elements_tag): super(x,do_not_copy_elements_tag()), key(x.key), comp_(x.comp_) { empty_initialize(); } ~ordered_index() { } iterator make_iterator(node_type* node){return iterator(node);} const_iterator make_iterator(node_type* node)const {return const_iterator(node);} void copy_( const ordered_index& x, const copy_map_type& map) { if(!x.root()){ empty_initialize(); } else{ header()->color()=x.header()->color(); node_type* root_cpy=map.find(static_cast(x.root())); header()->parent()=root_cpy->impl(); node_type* leftmost_cpy=map.find( static_cast(x.leftmost())); header()->left()=leftmost_cpy->impl(); node_type* rightmost_cpy=map.find( static_cast(x.rightmost())); header()->right()=rightmost_cpy->impl(); typedef typename copy_map_type::const_iterator copy_map_iterator; for(copy_map_iterator it=map.begin(),it_end=map.end();it!=it_end;++it){ node_type* org=it->first; node_type* cpy=it->second; cpy->color()=org->color(); node_impl_pointer parent_org=org->parent(); if(parent_org==node_impl_pointer(0))cpy->parent()=node_impl_pointer(0); else{ node_type* parent_cpy=map.find( static_cast(node_type::from_impl(parent_org))); cpy->parent()=parent_cpy->impl(); if(parent_org->left()==org->impl()){ parent_cpy->left()=cpy->impl(); } else if(parent_org->right()==org->impl()){ parent_cpy->right()=cpy->impl(); } } if(org->left()==node_impl_pointer(0)) cpy->left()=node_impl_pointer(0); if(org->right()==node_impl_pointer(0)) cpy->right()=node_impl_pointer(0); } } super::copy_(x,map); } template final_node_type* insert_( value_param_type v,final_node_type*& x,Variant variant) { link_info inf; if(!link_point(key(v),inf,Category())){ return static_cast(node_type::from_impl(inf.pos)); } final_node_type* res=super::insert_(v,x,variant); if(res==x){ node_impl_type::link( static_cast(x)->impl(),inf.side,inf.pos,header()->impl()); } return res; } template final_node_type* insert_( value_param_type v,node_type* position,final_node_type*& x,Variant variant) { link_info inf; if(!hinted_link_point(key(v),position,inf,Category())){ return static_cast(node_type::from_impl(inf.pos)); } final_node_type* res=super::insert_(v,position,x,variant); if(res==x){ node_impl_type::link( static_cast(x)->impl(),inf.side,inf.pos,header()->impl()); } return res; } void erase_(node_type* x) { node_impl_type::rebalance_for_erase( x->impl(),header()->parent(),header()->left(),header()->right()); super::erase_(x); } void delete_all_nodes_() { delete_all_nodes(root()); } void clear_() { super::clear_(); empty_initialize(); } void swap_(ordered_index& x) { std::swap(key,x.key); std::swap(comp_,x.comp_); super::swap_(x); } void swap_elements_( ordered_index& x) { super::swap_elements_(x); } template bool replace_(value_param_type v,node_type* x,Variant variant) { if(in_place(v,x,Category())){ return super::replace_(v,x,variant); } node_type* next=x; node_type::increment(next); node_impl_type::rebalance_for_erase( x->impl(),header()->parent(),header()->left(),header()->right()); { try{ link_info inf; if(link_point(key(v),inf,Category())&&super::replace_(v,x,variant)){ node_impl_type::link(x->impl(),inf.side,inf.pos,header()->impl()); return true; } node_impl_type::restore(x->impl(),next->impl(),header()->impl()); return false; } catch(...){ node_impl_type::restore(x->impl(),next->impl(),header()->impl()); throw;; } } } bool modify_(node_type* x) { bool b; { try{ b=in_place(x->value(),x,Category()); } catch(...){ erase_(x); throw;; } } if(!b){ node_impl_type::rebalance_for_erase( x->impl(),header()->parent(),header()->left(),header()->right()); { try{ link_info inf; if(!link_point(key(x->value()),inf,Category())){ super::erase_(x); return false; } node_impl_type::link(x->impl(),inf.side,inf.pos,header()->impl()); } catch(...){ super::erase_(x); throw;; } } } { try{ if(!super::modify_(x)){ node_impl_type::rebalance_for_erase( x->impl(),header()->parent(),header()->left(),header()->right()); return false; } else return true; } catch(...){ node_impl_type::rebalance_for_erase( x->impl(),header()->parent(),header()->left(),header()->right()); throw;; } } } bool modify_rollback_(node_type* x) { if(in_place(x->value(),x,Category())){ return super::modify_rollback_(x); } node_type* next=x; node_type::increment(next); node_impl_type::rebalance_for_erase( x->impl(),header()->parent(),header()->left(),header()->right()); { try{ link_info inf; if(link_point(key(x->value()),inf,Category())&& super::modify_rollback_(x)){ node_impl_type::link(x->impl(),inf.side,inf.pos,header()->impl()); return true; } node_impl_type::restore(x->impl(),next->impl(),header()->impl()); return false; } catch(...){ node_impl_type::restore(x->impl(),next->impl(),header()->impl()); throw;; } } } template void save_( Archive& ar,const unsigned int version,const index_saver_type& sm)const { save_(ar,version,sm,Category()); } template void load_(Archive& ar,const unsigned int version,const index_loader_type& lm) { load_(ar,version,lm,Category()); } # 972 "/usr/include/boost/multi_index/ordered_index.hpp" 3 4 private: node_type* header()const{return this->final_header();} node_type* root()const{return node_type::from_impl(header()->parent());} node_type* leftmost()const{return node_type::from_impl(header()->left());} node_type* rightmost()const{return node_type::from_impl(header()->right());} void empty_initialize() { header()->color()=red; header()->parent()=node_impl_pointer(0); header()->left()=header()->impl(); header()->right()=header()->impl(); } struct link_info { link_info():side(to_left){} ordered_index_side side; node_impl_pointer pos; }; bool link_point(key_param_type k,link_info& inf,ordered_unique_tag) { node_type* y=header(); node_type* x=root(); bool c=true; while(x){ y=x; c=comp_(k,key(x->value())); x=node_type::from_impl(c?x->left():x->right()); } node_type* yy=y; if(c){ if(yy==leftmost()){ inf.side=to_left; inf.pos=y->impl(); return true; } else node_type::decrement(yy); } if(comp_(key(yy->value()),k)){ inf.side=c?to_left:to_right; inf.pos=y->impl(); return true; } else{ inf.pos=yy->impl(); return false; } } bool link_point(key_param_type k,link_info& inf,ordered_non_unique_tag) { node_type* y=header(); node_type* x=root(); bool c=true; while (x){ y=x; c=comp_(k,key(x->value())); x=node_type::from_impl(c?x->left():x->right()); } inf.side=c?to_left:to_right; inf.pos=y->impl(); return true; } bool lower_link_point(key_param_type k,link_info& inf,ordered_non_unique_tag) { node_type* y=header(); node_type* x=root(); bool c=false; while (x){ y=x; c=comp_(key(x->value()),k); x=node_type::from_impl(c?x->right():x->left()); } inf.side=c?to_right:to_left; inf.pos=y->impl(); return true; } bool hinted_link_point( key_param_type k,node_type* position,link_info& inf,ordered_unique_tag) { if(position->impl()==header()->left()){ if(size()>0&&comp_(k,key(position->value()))){ inf.side=to_left; inf.pos=position->impl(); return true; } else return link_point(k,inf,ordered_unique_tag()); } else if(position==header()){ if(comp_(key(rightmost()->value()),k)){ inf.side=to_right; inf.pos=rightmost()->impl(); return true; } else return link_point(k,inf,ordered_unique_tag()); } else{ node_type* before=position; node_type::decrement(before); if(comp_(key(before->value()),k)&&comp_(k,key(position->value()))){ if(before->right()==node_impl_pointer(0)){ inf.side=to_right; inf.pos=before->impl(); return true; } else{ inf.side=to_left; inf.pos=position->impl(); return true; } } else return link_point(k,inf,ordered_unique_tag()); } } bool hinted_link_point( key_param_type k,node_type* position,link_info& inf,ordered_non_unique_tag) { if(position->impl()==header()->left()){ if(size()>0&&!comp_(key(position->value()),k)){ inf.side=to_left; inf.pos=position->impl(); return true; } else return lower_link_point(k,inf,ordered_non_unique_tag()); } else if(position==header()){ if(!comp_(k,key(rightmost()->value()))){ inf.side=to_right; inf.pos=rightmost()->impl(); return true; } else return link_point(k,inf,ordered_non_unique_tag()); } else{ node_type* before=position; node_type::decrement(before); if(!comp_(k,key(before->value()))){ if(!comp_(key(position->value()),k)){ if(before->right()==node_impl_pointer(0)){ inf.side=to_right; inf.pos=before->impl(); return true; } else{ inf.side=to_left; inf.pos=position->impl(); return true; } } else return lower_link_point(k,inf,ordered_non_unique_tag()); } else return link_point(k,inf,ordered_non_unique_tag()); } } void delete_all_nodes(node_type* x) { if(!x)return; delete_all_nodes(node_type::from_impl(x->left())); delete_all_nodes(node_type::from_impl(x->right())); this->final_delete_node_(static_cast(x)); } bool in_place(value_param_type v,node_type* x,ordered_unique_tag) { node_type* y; if(x!=leftmost()){ y=x; node_type::decrement(y); if(!comp_(key(y->value()),key(v)))return false; } y=x; node_type::increment(y); return y==header()||comp_(key(v),key(y->value())); } bool in_place(value_param_type v,node_type* x,ordered_non_unique_tag) { node_type* y; if(x!=leftmost()){ y=x; node_type::decrement(y); if(comp_(key(v),key(y->value())))return false; } y=x; node_type::increment(y); return y==header()||!comp_(key(y->value()),key(v)); } # 1181 "/usr/include/boost/multi_index/ordered_index.hpp" 3 4 template< typename T0 , typename T1 , typename T2 , typename T3 , typename T4> std::pair emplace_impl( const T0 & t0 , const T1 & t1 , const T2 & t2 , const T3 & t3 , const T4 & t4) { ; std::pairp= this->final_emplace_( boost::forward(t0) , boost::forward(t1) , boost::forward(t2) , boost::forward(t3) , boost::forward(t4)); return std::pair(make_iterator(p.first),p.second); } template< typename T0 , typename T1 , typename T2 , typename T3 , typename T4> iterator emplace_hint_impl( iterator position, const T0 & t0 , const T1 & t1 , const T2 & t2 , const T3 & t3 , const T4 & t4) { ((void)0);; ((void)0);; ; std::pairp= this->final_emplace_hint_( static_cast(position.get_node()), boost::forward(t0) , boost::forward(t1) , boost::forward(t2) , boost::forward(t3) , boost::forward(t4)); return make_iterator(p.first); } template std::pair range(LowerBounder lower,UpperBounder upper,none_unbounded_tag)const { node_type* y=header(); node_type* z=root(); while(z){ if(!lower(key(z->value()))){ z=node_type::from_impl(z->right()); } else if(!upper(key(z->value()))){ y=z; z=node_type::from_impl(z->left()); } else{ return std::pair( make_iterator( lower_range(node_type::from_impl(z->left()),z,lower)), make_iterator( upper_range(node_type::from_impl(z->right()),y,upper))); } } return std::pair(make_iterator(y),make_iterator(y)); } template std::pair range(LowerBounder,UpperBounder upper,lower_unbounded_tag)const { return std::pair( begin(), make_iterator(upper_range(root(),header(),upper))); } template std::pair range(LowerBounder lower,UpperBounder,upper_unbounded_tag)const { return std::pair( make_iterator(lower_range(root(),header(),lower)), end()); } template std::pair range(LowerBounder,UpperBounder,both_unbounded_tag)const { return std::pair(begin(),end()); } template node_type * lower_range(node_type* top,node_type* y,LowerBounder lower)const { while(top){ if(lower(key(top->value()))){ y=top; top=node_type::from_impl(top->left()); } else top=node_type::from_impl(top->right()); } return y; } template node_type * upper_range(node_type* top,node_type* y,UpperBounder upper)const { while(top){ if(!upper(key(top->value()))){ y=top; top=node_type::from_impl(top->left()); } else top=node_type::from_impl(top->right()); } return y; } template void save_( Archive& ar,const unsigned int version,const index_saver_type& sm, ordered_unique_tag)const { super::save_(ar,version,sm); } template void load_( Archive& ar,const unsigned int version,const index_loader_type& lm, ordered_unique_tag) { super::load_(ar,version,lm); } template void save_( Archive& ar,const unsigned int version,const index_saver_type& sm, ordered_non_unique_tag)const { typedef duplicates_iterator dup_iterator; sm.save( dup_iterator(begin().get_node(),end().get_node(),value_comp()), dup_iterator(end().get_node(),value_comp()), ar,version); super::save_(ar,version,sm); } template void load_( Archive& ar,const unsigned int version,const index_loader_type& lm, ordered_non_unique_tag) { lm.load( ::boost::bind( &ordered_index::rearranger,this,::boost::arg<1>(),::boost::arg<2>()), ar,version); super::load_(ar,version,lm); } void rearranger(node_type* position,node_type *x) { if(!position||comp_(key(position->value()),key(x->value()))){ position=lower_bound(key(x->value())).get_node(); } else if(comp_(key(x->value()),key(position->value()))){ throw_exception( archive::archive_exception( archive::archive_exception::other_exception)); } else node_type::increment(position); if(position!=x){ node_impl_type::rebalance_for_erase( x->impl(),header()->parent(),header()->left(),header()->right()); node_impl_type::restore( x->impl(),position->impl(),header()->impl()); } } key_from_value key; key_compare comp_; }; template< typename KeyFromValue1,typename Compare1, typename SuperMeta1,typename TagList1,typename Category1, typename KeyFromValue2,typename Compare2, typename SuperMeta2,typename TagList2,typename Category2 > bool operator==( const ordered_index& x, const ordered_index& y) { return x.size()==y.size()&&std::equal(x.begin(),x.end(),y.begin()); } template< typename KeyFromValue1,typename Compare1, typename SuperMeta1,typename TagList1,typename Category1, typename KeyFromValue2,typename Compare2, typename SuperMeta2,typename TagList2,typename Category2 > bool operator<( const ordered_index& x, const ordered_index& y) { return std::lexicographical_compare(x.begin(),x.end(),y.begin(),y.end()); } template< typename KeyFromValue1,typename Compare1, typename SuperMeta1,typename TagList1,typename Category1, typename KeyFromValue2,typename Compare2, typename SuperMeta2,typename TagList2,typename Category2 > bool operator!=( const ordered_index& x, const ordered_index& y) { return !(x==y); } template< typename KeyFromValue1,typename Compare1, typename SuperMeta1,typename TagList1,typename Category1, typename KeyFromValue2,typename Compare2, typename SuperMeta2,typename TagList2,typename Category2 > bool operator>( const ordered_index& x, const ordered_index& y) { return y bool operator>=( const ordered_index& x, const ordered_index& y) { return !(x bool operator<=( const ordered_index& x, const ordered_index& y) { return !(x>y); } template< typename KeyFromValue,typename Compare, typename SuperMeta,typename TagList,typename Category > void swap( ordered_index& x, ordered_index& y) { x.swap(y); } } template struct ordered_unique { typedef typename detail::ordered_index_args< Arg1,Arg2,Arg3> index_args; typedef typename index_args::tag_list_type::type tag_list_type; typedef typename index_args::key_from_value_type key_from_value_type; typedef typename index_args::compare_type compare_type; template struct node_class { typedef detail::ordered_index_node type; }; template struct index_class { typedef detail::ordered_index< key_from_value_type,compare_type, SuperMeta,tag_list_type,detail::ordered_unique_tag> type; }; }; template struct ordered_non_unique { typedef detail::ordered_index_args< Arg1,Arg2,Arg3> index_args; typedef typename index_args::tag_list_type::type tag_list_type; typedef typename index_args::key_from_value_type key_from_value_type; typedef typename index_args::compare_type compare_type; template struct node_class { typedef detail::ordered_index_node type; }; template struct index_class { typedef detail::ordered_index< key_from_value_type,compare_type, SuperMeta,tag_list_type,detail::ordered_non_unique_tag> type; }; }; } } template< typename KeyFromValue,typename Compare, typename SuperMeta,typename TagList,typename Category > inline boost::mpl::true_* boost_foreach_is_noncopyable( boost::multi_index::detail::ordered_index< KeyFromValue,Compare,SuperMeta,TagList,Category>*&, boost::foreach::tag) { return 0; } # 32 "misc.hh" 2 # 1 "/usr/include/boost/multi_index/key_extractors.hpp" 1 3 4 # 16 "/usr/include/boost/multi_index/key_extractors.hpp" 3 4 # 1 "/usr/include/boost/multi_index/composite_key.hpp" 1 3 4 # 25 "/usr/include/boost/multi_index/composite_key.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/list/at.hpp" 1 3 4 # 19 "/usr/include/boost/preprocessor/list/at.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/list/rest_n.hpp" 1 3 4 # 20 "/usr/include/boost/preprocessor/list/at.hpp" 2 3 4 # 26 "/usr/include/boost/multi_index/composite_key.hpp" 2 3 4 # 106 "/usr/include/boost/multi_index/composite_key.hpp" 3 4 namespace boost{ template class reference_wrapper; namespace multi_index{ namespace detail{ template struct nth_key_from_value { typedef typename CompositeKey::key_extractor_tuple key_extractor_tuple; typedef typename mpl::eval_if_c< N::value, tuples::element, mpl::identity >::type type; }; # 158 "/usr/include/boost/multi_index/composite_key.hpp" 3 4 template struct key_equal_to { typedef std::equal_to type; }; template<> struct key_equal_to { typedef tuples::null_type type; }; template struct nth_composite_key_equal_to { typedef typename nth_key_from_value::type key_from_value; typedef typename key_equal_to::type type; }; template struct key_less { typedef std::less type; }; template<> struct key_less { typedef tuples::null_type type; }; template struct nth_composite_key_less { typedef typename nth_key_from_value::type key_from_value; typedef typename key_less::type type; }; template struct key_greater { typedef std::greater type; }; template<> struct key_greater { typedef tuples::null_type type; }; template struct nth_composite_key_greater { typedef typename nth_key_from_value::type key_from_value; typedef typename key_greater::type type; }; template struct key_hash { typedef boost::hash type; }; template<> struct key_hash { typedef tuples::null_type type; }; template struct nth_composite_key_hash { typedef typename nth_key_from_value::type key_from_value; typedef typename key_hash::type type; }; struct generic_operator_equal { template bool operator()(const T& x,const Q& y)const{return x==y;} }; typedef tuple< detail::generic_operator_equal , detail::generic_operator_equal , detail::generic_operator_equal , detail::generic_operator_equal , detail::generic_operator_equal , detail::generic_operator_equal , detail::generic_operator_equal , detail::generic_operator_equal , detail::generic_operator_equal , detail::generic_operator_equal > generic_operator_equal_tuple; struct generic_operator_less { template bool operator()(const T& x,const Q& y)const{return x generic_operator_less_tuple; # 198 "/usr/include/boost/multi_index/composite_key.hpp" 3 4 template < typename KeyCons1,typename Value1, typename KeyCons2, typename Value2, typename EqualCons > struct equal_ckey_ckey; template < typename KeyCons1,typename Value1, typename KeyCons2, typename Value2, typename EqualCons > struct equal_ckey_ckey_terminal { static bool compare( const KeyCons1&,const Value1&, const KeyCons2&,const Value2&, const EqualCons&) { return true; } }; template < typename KeyCons1,typename Value1, typename KeyCons2, typename Value2, typename EqualCons > struct equal_ckey_ckey_normal { static bool compare( const KeyCons1& c0,const Value1& v0, const KeyCons2& c1,const Value2& v1, const EqualCons& eq) { if(!eq.get_head()(c0.get_head()(v0),c1.get_head()(v1)))return false; return equal_ckey_ckey< typename KeyCons1::tail_type,Value1, typename KeyCons2::tail_type,Value2, typename EqualCons::tail_type >::compare(c0.get_tail(),v0,c1.get_tail(),v1,eq.get_tail()); } }; template < typename KeyCons1,typename Value1, typename KeyCons2, typename Value2, typename EqualCons > struct equal_ckey_ckey: mpl::if_< mpl::or_< is_same, is_same >, equal_ckey_ckey_terminal, equal_ckey_ckey_normal >::type { }; template < typename KeyCons,typename Value, typename ValCons,typename EqualCons > struct equal_ckey_cval; template < typename KeyCons,typename Value, typename ValCons,typename EqualCons > struct equal_ckey_cval_terminal { static bool compare( const KeyCons&,const Value&,const ValCons&,const EqualCons&) { return true; } static bool compare( const ValCons&,const KeyCons&,const Value&,const EqualCons&) { return true; } }; template < typename KeyCons,typename Value, typename ValCons,typename EqualCons > struct equal_ckey_cval_normal { static bool compare( const KeyCons& c,const Value& v,const ValCons& vc, const EqualCons& eq) { if(!eq.get_head()(c.get_head()(v),vc.get_head()))return false; return equal_ckey_cval< typename KeyCons::tail_type,Value, typename ValCons::tail_type, typename EqualCons::tail_type >::compare(c.get_tail(),v,vc.get_tail(),eq.get_tail()); } static bool compare( const ValCons& vc,const KeyCons& c,const Value& v, const EqualCons& eq) { if(!eq.get_head()(vc.get_head(),c.get_head()(v)))return false; return equal_ckey_cval< typename KeyCons::tail_type,Value, typename ValCons::tail_type, typename EqualCons::tail_type >::compare(vc.get_tail(),c.get_tail(),v,eq.get_tail()); } }; template < typename KeyCons,typename Value, typename ValCons,typename EqualCons > struct equal_ckey_cval: mpl::if_< mpl::or_< is_same, is_same >, equal_ckey_cval_terminal, equal_ckey_cval_normal >::type { }; template < typename KeyCons1,typename Value1, typename KeyCons2, typename Value2, typename CompareCons > struct compare_ckey_ckey; template < typename KeyCons1,typename Value1, typename KeyCons2, typename Value2, typename CompareCons > struct compare_ckey_ckey_terminal { static bool compare( const KeyCons1&,const Value1&, const KeyCons2&,const Value2&, const CompareCons&) { return false; } }; template < typename KeyCons1,typename Value1, typename KeyCons2, typename Value2, typename CompareCons > struct compare_ckey_ckey_normal { static bool compare( const KeyCons1& c0,const Value1& v0, const KeyCons2& c1,const Value2& v1, const CompareCons& comp) { if(comp.get_head()(c0.get_head()(v0),c1.get_head()(v1)))return true; if(comp.get_head()(c1.get_head()(v1),c0.get_head()(v0)))return false; return compare_ckey_ckey< typename KeyCons1::tail_type,Value1, typename KeyCons2::tail_type,Value2, typename CompareCons::tail_type >::compare(c0.get_tail(),v0,c1.get_tail(),v1,comp.get_tail()); } }; template < typename KeyCons1,typename Value1, typename KeyCons2, typename Value2, typename CompareCons > struct compare_ckey_ckey: mpl::if_< mpl::or_< is_same, is_same >, compare_ckey_ckey_terminal, compare_ckey_ckey_normal >::type { }; template < typename KeyCons,typename Value, typename ValCons,typename CompareCons > struct compare_ckey_cval; template < typename KeyCons,typename Value, typename ValCons,typename CompareCons > struct compare_ckey_cval_terminal { static bool compare( const KeyCons&,const Value&,const ValCons&,const CompareCons&) { return false; } static bool compare( const ValCons&,const KeyCons&,const Value&,const CompareCons&) { return false; } }; template < typename KeyCons,typename Value, typename ValCons,typename CompareCons > struct compare_ckey_cval_normal { static bool compare( const KeyCons& c,const Value& v,const ValCons& vc, const CompareCons& comp) { if(comp.get_head()(c.get_head()(v),vc.get_head()))return true; if(comp.get_head()(vc.get_head(),c.get_head()(v)))return false; return compare_ckey_cval< typename KeyCons::tail_type,Value, typename ValCons::tail_type, typename CompareCons::tail_type >::compare(c.get_tail(),v,vc.get_tail(),comp.get_tail()); } static bool compare( const ValCons& vc,const KeyCons& c,const Value& v, const CompareCons& comp) { if(comp.get_head()(vc.get_head(),c.get_head()(v)))return true; if(comp.get_head()(c.get_head()(v),vc.get_head()))return false; return compare_ckey_cval< typename KeyCons::tail_type,Value, typename ValCons::tail_type, typename CompareCons::tail_type >::compare(vc.get_tail(),c.get_tail(),v,comp.get_tail()); } }; template < typename KeyCons,typename Value, typename ValCons,typename CompareCons > struct compare_ckey_cval: mpl::if_< mpl::or_< is_same, is_same >, compare_ckey_cval_terminal, compare_ckey_cval_normal >::type { }; template struct hash_ckey; template struct hash_ckey_terminal { static std::size_t hash( const KeyCons&,const Value&,const HashCons&,std::size_t carry) { return carry; } }; template struct hash_ckey_normal { static std::size_t hash( const KeyCons& c,const Value& v,const HashCons& h,std::size_t carry=0) { carry^=h.get_head()(c.get_head()(v))+0x9e3779b9+(carry<<6)+(carry>>2); return hash_ckey< typename KeyCons::tail_type,Value, typename HashCons::tail_type >::hash(c.get_tail(),v,h.get_tail(),carry); } }; template struct hash_ckey: mpl::if_< is_same, hash_ckey_terminal, hash_ckey_normal >::type { }; template struct hash_cval; template struct hash_cval_terminal { static std::size_t hash(const ValCons&,const HashCons&,std::size_t carry) { return carry; } }; template struct hash_cval_normal { static std::size_t hash( const ValCons& vc,const HashCons& h,std::size_t carry=0) { carry^=h.get_head()(vc.get_head())+0x9e3779b9+(carry<<6)+(carry>>2); return hash_cval< typename ValCons::tail_type, typename HashCons::tail_type >::hash(vc.get_tail(),h.get_tail(),carry); } }; template struct hash_cval: mpl::if_< is_same, hash_cval_terminal, hash_cval_normal >::type { }; } # 567 "/usr/include/boost/multi_index/composite_key.hpp" 3 4 template struct composite_key_result { typedef CompositeKey composite_key_type; typedef typename composite_key_type::value_type value_type; composite_key_result( const composite_key_type& composite_key_,const value_type& value_): composite_key(composite_key_),value(value_) {} const composite_key_type& composite_key; const value_type& value; }; template< typename Value, typename KeyFromValue0 , typename KeyFromValue1 =tuples::null_type , typename KeyFromValue2 =tuples::null_type , typename KeyFromValue3 =tuples::null_type , typename KeyFromValue4 =tuples::null_type , typename KeyFromValue5 =tuples::null_type , typename KeyFromValue6 =tuples::null_type , typename KeyFromValue7 =tuples::null_type , typename KeyFromValue8 =tuples::null_type , typename KeyFromValue9 =tuples::null_type > struct composite_key: private tuple< KeyFromValue0 , KeyFromValue1 , KeyFromValue2 , KeyFromValue3 , KeyFromValue4 , KeyFromValue5 , KeyFromValue6 , KeyFromValue7 , KeyFromValue8 , KeyFromValue9> { private: typedef tuple< KeyFromValue0 , KeyFromValue1 , KeyFromValue2 , KeyFromValue3 , KeyFromValue4 , KeyFromValue5 , KeyFromValue6 , KeyFromValue7 , KeyFromValue8 , KeyFromValue9> super; public: typedef super key_extractor_tuple; typedef Value value_type; typedef composite_key_result result_type; composite_key( const KeyFromValue0& k0 = KeyFromValue0() , const KeyFromValue1& k1 = KeyFromValue1() , const KeyFromValue2& k2 = KeyFromValue2() , const KeyFromValue3& k3 = KeyFromValue3() , const KeyFromValue4& k4 = KeyFromValue4() , const KeyFromValue5& k5 = KeyFromValue5() , const KeyFromValue6& k6 = KeyFromValue6() , const KeyFromValue7& k7 = KeyFromValue7() , const KeyFromValue8& k8 = KeyFromValue8() , const KeyFromValue9& k9 = KeyFromValue9()): super( k0 , k1 , k2 , k3 , k4 , k5 , k6 , k7 , k8 , k9) {} composite_key(const key_extractor_tuple& x):super(x){} const key_extractor_tuple& key_extractors()const{return *this;} key_extractor_tuple& key_extractors(){return *this;} template typename disable_if< is_convertible,result_type>::type operator()(const ChainedPtr& x)const { return operator()(*x); } result_type operator()(const value_type& x)const { return result_type(*this,x); } result_type operator()(const reference_wrapper& x)const { return result_type(*this,x.get()); } result_type operator()(const reference_wrapper& x)const { return result_type(*this,x.get()); } }; template inline bool operator==( const composite_key_result& x, const composite_key_result& y) { typedef typename CompositeKey1::key_extractor_tuple key_extractor_tuple1; typedef typename CompositeKey1::value_type value_type1; typedef typename CompositeKey2::key_extractor_tuple key_extractor_tuple2; typedef typename CompositeKey2::value_type value_type2; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((tuples::length::value== tuples::length::value) == 0 ? false : true) >)> boost_static_assert_typedef_659 __attribute__((unused)) ; return detail::equal_ckey_ckey< key_extractor_tuple1,value_type1, key_extractor_tuple2,value_type2, detail::generic_operator_equal_tuple >::compare( x.composite_key.key_extractors(),x.value, y.composite_key.key_extractors(),y.value, detail::generic_operator_equal_tuple()); } template< typename CompositeKey, typename Value0 , typename Value1 , typename Value2 , typename Value3 , typename Value4 , typename Value5 , typename Value6 , typename Value7 , typename Value8 , typename Value9 > inline bool operator==( const composite_key_result& x, const tuple< Value0 , Value1 , Value2 , Value3 , Value4 , Value5 , Value6 , Value7 , Value8 , Value9>& y) { typedef typename CompositeKey::key_extractor_tuple key_extractor_tuple; typedef typename CompositeKey::value_type value_type; typedef tuple< Value0 , Value1 , Value2 , Value3 , Value4 , Value5 , Value6 , Value7 , Value8 , Value9> key_tuple; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((tuples::length::value== tuples::length::value) == 0 ? false : true) >)> boost_static_assert_typedef_685 __attribute__((unused)) ; return detail::equal_ckey_cval< key_extractor_tuple,value_type, key_tuple,detail::generic_operator_equal_tuple >::compare( x.composite_key.key_extractors(),x.value, y,detail::generic_operator_equal_tuple()); } template < typename Value0 , typename Value1 , typename Value2 , typename Value3 , typename Value4 , typename Value5 , typename Value6 , typename Value7 , typename Value8 , typename Value9, typename CompositeKey > inline bool operator==( const tuple< Value0 , Value1 , Value2 , Value3 , Value4 , Value5 , Value6 , Value7 , Value8 , Value9>& x, const composite_key_result& y) { typedef typename CompositeKey::key_extractor_tuple key_extractor_tuple; typedef typename CompositeKey::value_type value_type; typedef tuple< Value0 , Value1 , Value2 , Value3 , Value4 , Value5 , Value6 , Value7 , Value8 , Value9> key_tuple; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((tuples::length::value== tuples::length::value) == 0 ? false : true) >)> boost_static_assert_typedef_710 __attribute__((unused)) ; return detail::equal_ckey_cval< key_extractor_tuple,value_type, key_tuple,detail::generic_operator_equal_tuple >::compare( x,y.composite_key.key_extractors(), y.value,detail::generic_operator_equal_tuple()); } # 771 "/usr/include/boost/multi_index/composite_key.hpp" 3 4 template inline bool operator<( const composite_key_result& x, const composite_key_result& y) { typedef typename CompositeKey1::key_extractor_tuple key_extractor_tuple1; typedef typename CompositeKey1::value_type value_type1; typedef typename CompositeKey2::key_extractor_tuple key_extractor_tuple2; typedef typename CompositeKey2::value_type value_type2; return detail::compare_ckey_ckey< key_extractor_tuple1,value_type1, key_extractor_tuple2,value_type2, detail::generic_operator_less_tuple >::compare( x.composite_key.key_extractors(),x.value, y.composite_key.key_extractors(),y.value, detail::generic_operator_less_tuple()); } template < typename CompositeKey, typename Value0 , typename Value1 , typename Value2 , typename Value3 , typename Value4 , typename Value5 , typename Value6 , typename Value7 , typename Value8 , typename Value9 > inline bool operator<( const composite_key_result& x, const tuple< Value0 , Value1 , Value2 , Value3 , Value4 , Value5 , Value6 , Value7 , Value8 , Value9>& y) { typedef typename CompositeKey::key_extractor_tuple key_extractor_tuple; typedef typename CompositeKey::value_type value_type; typedef tuple< Value0 , Value1 , Value2 , Value3 , Value4 , Value5 , Value6 , Value7 , Value8 , Value9> key_tuple; return detail::compare_ckey_cval< key_extractor_tuple,value_type, key_tuple,detail::generic_operator_less_tuple >::compare( x.composite_key.key_extractors(),x.value, y,detail::generic_operator_less_tuple()); } template < typename Value0 , typename Value1 , typename Value2 , typename Value3 , typename Value4 , typename Value5 , typename Value6 , typename Value7 , typename Value8 , typename Value9, typename CompositeKey > inline bool operator<( const tuple< Value0 , Value1 , Value2 , Value3 , Value4 , Value5 , Value6 , Value7 , Value8 , Value9>& x, const composite_key_result& y) { typedef typename CompositeKey::key_extractor_tuple key_extractor_tuple; typedef typename CompositeKey::value_type value_type; typedef tuple< Value0 , Value1 , Value2 , Value3 , Value4 , Value5 , Value6 , Value7 , Value8 , Value9> key_tuple; return detail::compare_ckey_cval< key_extractor_tuple,value_type, key_tuple,detail::generic_operator_less_tuple >::compare( x,y.composite_key.key_extractors(), y.value,detail::generic_operator_less_tuple()); } # 897 "/usr/include/boost/multi_index/composite_key.hpp" 3 4 template inline bool operator!=(const composite_key_result& x,const composite_key_result& y) { return !(x==y); } template inline bool operator>(const composite_key_result& x,const composite_key_result& y) { return y inline bool operator>=(const composite_key_result& x,const composite_key_result& y) { return !(x inline bool operator<=(const composite_key_result& x,const composite_key_result& y) { return !(y inline bool operator!=(const composite_key_result& x,const tuple< Value0 , Value1 , Value2 , Value3 , Value4 , Value5 , Value6 , Value7 , Value8 , Value9>& y) { return !(x==y); } template inline bool operator>(const composite_key_result& x,const tuple< Value0 , Value1 , Value2 , Value3 , Value4 , Value5 , Value6 , Value7 , Value8 , Value9>& y) { return y inline bool operator>=(const composite_key_result& x,const tuple< Value0 , Value1 , Value2 , Value3 , Value4 , Value5 , Value6 , Value7 , Value8 , Value9>& y) { return !(x inline bool operator<=(const composite_key_result& x,const tuple< Value0 , Value1 , Value2 , Value3 , Value4 , Value5 , Value6 , Value7 , Value8 , Value9>& y) { return !(y inline bool operator!=(const tuple< Value0 , Value1 , Value2 , Value3 , Value4 , Value5 , Value6 , Value7 , Value8 , Value9>& x,const composite_key_result& y) { return !(x==y); } template< typename Value0 , typename Value1 , typename Value2 , typename Value3 , typename Value4 , typename Value5 , typename Value6 , typename Value7 , typename Value8 , typename Value9,typename CompositeKey> inline bool operator>(const tuple< Value0 , Value1 , Value2 , Value3 , Value4 , Value5 , Value6 , Value7 , Value8 , Value9>& x,const composite_key_result& y) { return y inline bool operator>=(const tuple< Value0 , Value1 , Value2 , Value3 , Value4 , Value5 , Value6 , Value7 , Value8 , Value9>& x,const composite_key_result& y) { return !(x inline bool operator<=(const tuple< Value0 , Value1 , Value2 , Value3 , Value4 , Value5 , Value6 , Value7 , Value8 , Value9>& x,const composite_key_result& y) { return !(y struct composite_key_equal_to: private tuple< Pred0 , Pred1 , Pred2 , Pred3 , Pred4 , Pred5 , Pred6 , Pred7 , Pred8 , Pred9> { private: typedef tuple< Pred0 , Pred1 , Pred2 , Pred3 , Pred4 , Pred5 , Pred6 , Pred7 , Pred8 , Pred9> super; public: typedef super key_eq_tuple; composite_key_equal_to( const Pred0& k0 = Pred0() , const Pred1& k1 = Pred1() , const Pred2& k2 = Pred2() , const Pred3& k3 = Pred3() , const Pred4& k4 = Pred4() , const Pred5& k5 = Pred5() , const Pred6& k6 = Pred6() , const Pred7& k7 = Pred7() , const Pred8& k8 = Pred8() , const Pred9& k9 = Pred9()): super( k0 , k1 , k2 , k3 , k4 , k5 , k6 , k7 , k8 , k9) {} composite_key_equal_to(const key_eq_tuple& x):super(x){} const key_eq_tuple& key_eqs()const{return *this;} key_eq_tuple& key_eqs(){return *this;} template bool operator()( const composite_key_result & x, const composite_key_result & y)const { typedef typename CompositeKey1::key_extractor_tuple key_extractor_tuple1; typedef typename CompositeKey1::value_type value_type1; typedef typename CompositeKey2::key_extractor_tuple key_extractor_tuple2; typedef typename CompositeKey2::value_type value_type2; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((tuples::length::value<= tuples::length::value&& tuples::length::value== tuples::length::value) == 0 ? false : true) >)> boost_static_assert_typedef_974 __attribute__((unused)) ; return detail::equal_ckey_ckey< key_extractor_tuple1,value_type1, key_extractor_tuple2,value_type2, key_eq_tuple >::compare( x.composite_key.key_extractors(),x.value, y.composite_key.key_extractors(),y.value, key_eqs()); } template < typename CompositeKey, typename Value0 , typename Value1 , typename Value2 , typename Value3 , typename Value4 , typename Value5 , typename Value6 , typename Value7 , typename Value8 , typename Value9 > bool operator()( const composite_key_result& x, const tuple< Value0 , Value1 , Value2 , Value3 , Value4 , Value5 , Value6 , Value7 , Value8 , Value9>& y)const { typedef typename CompositeKey::key_extractor_tuple key_extractor_tuple; typedef typename CompositeKey::value_type value_type; typedef tuple< Value0 , Value1 , Value2 , Value3 , Value4 , Value5 , Value6 , Value7 , Value8 , Value9> key_tuple; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((tuples::length::value<= tuples::length::value&& tuples::length::value== tuples::length::value) == 0 ? false : true) >)> boost_static_assert_typedef_1003 __attribute__((unused)) ; return detail::equal_ckey_cval< key_extractor_tuple,value_type, key_tuple,key_eq_tuple >::compare(x.composite_key.key_extractors(),x.value,y,key_eqs()); } template < typename Value0 , typename Value1 , typename Value2 , typename Value3 , typename Value4 , typename Value5 , typename Value6 , typename Value7 , typename Value8 , typename Value9, typename CompositeKey > bool operator()( const tuple< Value0 , Value1 , Value2 , Value3 , Value4 , Value5 , Value6 , Value7 , Value8 , Value9>& x, const composite_key_result& y)const { typedef typename CompositeKey::key_extractor_tuple key_extractor_tuple; typedef typename CompositeKey::value_type value_type; typedef tuple< Value0 , Value1 , Value2 , Value3 , Value4 , Value5 , Value6 , Value7 , Value8 , Value9> key_tuple; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((tuples::length::value<= tuples::length::value&& tuples::length::value== tuples::length::value) == 0 ? false : true) >)> boost_static_assert_typedef_1028 __attribute__((unused)) ; return detail::equal_ckey_cval< key_extractor_tuple,value_type, key_tuple,key_eq_tuple >::compare(x,y.composite_key.key_extractors(),y.value,key_eqs()); } # 1088 "/usr/include/boost/multi_index/composite_key.hpp" 3 4 }; template < typename Compare0 , typename Compare1 =tuples::null_type , typename Compare2 =tuples::null_type , typename Compare3 =tuples::null_type , typename Compare4 =tuples::null_type , typename Compare5 =tuples::null_type , typename Compare6 =tuples::null_type , typename Compare7 =tuples::null_type , typename Compare8 =tuples::null_type , typename Compare9 =tuples::null_type > struct composite_key_compare: private tuple< Compare0 , Compare1 , Compare2 , Compare3 , Compare4 , Compare5 , Compare6 , Compare7 , Compare8 , Compare9> { private: typedef tuple< Compare0 , Compare1 , Compare2 , Compare3 , Compare4 , Compare5 , Compare6 , Compare7 , Compare8 , Compare9> super; public: typedef super key_comp_tuple; composite_key_compare( const Compare0& k0 = Compare0() , const Compare1& k1 = Compare1() , const Compare2& k2 = Compare2() , const Compare3& k3 = Compare3() , const Compare4& k4 = Compare4() , const Compare5& k5 = Compare5() , const Compare6& k6 = Compare6() , const Compare7& k7 = Compare7() , const Compare8& k8 = Compare8() , const Compare9& k9 = Compare9()): super( k0 , k1 , k2 , k3 , k4 , k5 , k6 , k7 , k8 , k9) {} composite_key_compare(const key_comp_tuple& x):super(x){} const key_comp_tuple& key_comps()const{return *this;} key_comp_tuple& key_comps(){return *this;} template bool operator()( const composite_key_result & x, const composite_key_result & y)const { typedef typename CompositeKey1::key_extractor_tuple key_extractor_tuple1; typedef typename CompositeKey1::value_type value_type1; typedef typename CompositeKey2::key_extractor_tuple key_extractor_tuple2; typedef typename CompositeKey2::value_type value_type2; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((tuples::length::value<= tuples::length::value|| tuples::length::value<= tuples::length::value) == 0 ? false : true) >)> boost_static_assert_typedef_1129 __attribute__((unused)) ; return detail::compare_ckey_ckey< key_extractor_tuple1,value_type1, key_extractor_tuple2,value_type2, key_comp_tuple >::compare( x.composite_key.key_extractors(),x.value, y.composite_key.key_extractors(),y.value, key_comps()); } template bool operator()( const composite_key_result& x, const Value& y)const { return operator()(x,boost::make_tuple(boost::cref(y))); } template < typename CompositeKey, typename Value0 , typename Value1 , typename Value2 , typename Value3 , typename Value4 , typename Value5 , typename Value6 , typename Value7 , typename Value8 , typename Value9 > bool operator()( const composite_key_result& x, const tuple< Value0 , Value1 , Value2 , Value3 , Value4 , Value5 , Value6 , Value7 , Value8 , Value9>& y)const { typedef typename CompositeKey::key_extractor_tuple key_extractor_tuple; typedef typename CompositeKey::value_type value_type; typedef tuple< Value0 , Value1 , Value2 , Value3 , Value4 , Value5 , Value6 , Value7 , Value8 , Value9> key_tuple; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((tuples::length::value<= tuples::length::value|| tuples::length::value<= tuples::length::value) == 0 ? false : true) >)> boost_static_assert_typedef_1168 __attribute__((unused)) ; return detail::compare_ckey_cval< key_extractor_tuple,value_type, key_tuple,key_comp_tuple >::compare(x.composite_key.key_extractors(),x.value,y,key_comps()); } template bool operator()( const Value& x, const composite_key_result& y)const { return operator()(boost::make_tuple(boost::cref(x)),y); } template < typename Value0 , typename Value1 , typename Value2 , typename Value3 , typename Value4 , typename Value5 , typename Value6 , typename Value7 , typename Value8 , typename Value9, typename CompositeKey > bool operator()( const tuple< Value0 , Value1 , Value2 , Value3 , Value4 , Value5 , Value6 , Value7 , Value8 , Value9>& x, const composite_key_result& y)const { typedef typename CompositeKey::key_extractor_tuple key_extractor_tuple; typedef typename CompositeKey::value_type value_type; typedef tuple< Value0 , Value1 , Value2 , Value3 , Value4 , Value5 , Value6 , Value7 , Value8 , Value9> key_tuple; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((tuples::length::value<= tuples::length::value|| tuples::length::value<= tuples::length::value) == 0 ? false : true) >)> boost_static_assert_typedef_1203 __attribute__((unused)) ; return detail::compare_ckey_cval< key_extractor_tuple,value_type, key_tuple,key_comp_tuple >::compare(x,y.composite_key.key_extractors(),y.value,key_comps()); } # 1263 "/usr/include/boost/multi_index/composite_key.hpp" 3 4 }; template < typename Hash0 , typename Hash1 =tuples::null_type , typename Hash2 =tuples::null_type , typename Hash3 =tuples::null_type , typename Hash4 =tuples::null_type , typename Hash5 =tuples::null_type , typename Hash6 =tuples::null_type , typename Hash7 =tuples::null_type , typename Hash8 =tuples::null_type , typename Hash9 =tuples::null_type > struct composite_key_hash: private tuple< Hash0 , Hash1 , Hash2 , Hash3 , Hash4 , Hash5 , Hash6 , Hash7 , Hash8 , Hash9> { private: typedef tuple< Hash0 , Hash1 , Hash2 , Hash3 , Hash4 , Hash5 , Hash6 , Hash7 , Hash8 , Hash9> super; public: typedef super key_hasher_tuple; composite_key_hash( const Hash0& k0 = Hash0() , const Hash1& k1 = Hash1() , const Hash2& k2 = Hash2() , const Hash3& k3 = Hash3() , const Hash4& k4 = Hash4() , const Hash5& k5 = Hash5() , const Hash6& k6 = Hash6() , const Hash7& k7 = Hash7() , const Hash8& k8 = Hash8() , const Hash9& k9 = Hash9()): super( k0 , k1 , k2 , k3 , k4 , k5 , k6 , k7 , k8 , k9) {} composite_key_hash(const key_hasher_tuple& x):super(x){} const key_hasher_tuple& key_hash_functions()const{return *this;} key_hasher_tuple& key_hash_functions(){return *this;} template std::size_t operator()(const composite_key_result & x)const { typedef typename CompositeKey::key_extractor_tuple key_extractor_tuple; typedef typename CompositeKey::value_type value_type; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((tuples::length::value== tuples::length::value) == 0 ? false : true) >)> boost_static_assert_typedef_1298 __attribute__((unused)) ; return detail::hash_ckey< key_extractor_tuple,value_type, key_hasher_tuple >::hash(x.composite_key.key_extractors(),x.value,key_hash_functions()); } template< typename Value0 , typename Value1 , typename Value2 , typename Value3 , typename Value4 , typename Value5 , typename Value6 , typename Value7 , typename Value8 , typename Value9> std::size_t operator()( const tuple< Value0 , Value1 , Value2 , Value3 , Value4 , Value5 , Value6 , Value7 , Value8 , Value9>& x)const { typedef tuple< Value0 , Value1 , Value2 , Value3 , Value4 , Value5 , Value6 , Value7 , Value8 , Value9> key_tuple; typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((tuples::length::value== tuples::length::value) == 0 ? false : true) >)> boost_static_assert_typedef_1314 __attribute__((unused)) ; return detail::hash_cval< key_tuple,key_hasher_tuple >::hash(x,key_hash_functions()); } # 1339 "/usr/include/boost/multi_index/composite_key.hpp" 3 4 }; # 1358 "/usr/include/boost/multi_index/composite_key.hpp" 3 4 template struct composite_key_result_equal_to: private composite_key_equal_to< typename detail::nth_composite_key_equal_to< typename CompositeKeyResult::composite_key_type,0 >::type , typename detail::nth_composite_key_equal_to< typename CompositeKeyResult::composite_key_type,1 >::type , typename detail::nth_composite_key_equal_to< typename CompositeKeyResult::composite_key_type,2 >::type , typename detail::nth_composite_key_equal_to< typename CompositeKeyResult::composite_key_type,3 >::type , typename detail::nth_composite_key_equal_to< typename CompositeKeyResult::composite_key_type,4 >::type , typename detail::nth_composite_key_equal_to< typename CompositeKeyResult::composite_key_type,5 >::type , typename detail::nth_composite_key_equal_to< typename CompositeKeyResult::composite_key_type,6 >::type , typename detail::nth_composite_key_equal_to< typename CompositeKeyResult::composite_key_type,7 >::type , typename detail::nth_composite_key_equal_to< typename CompositeKeyResult::composite_key_type,8 >::type , typename detail::nth_composite_key_equal_to< typename CompositeKeyResult::composite_key_type,9 >::type > { private: typedef composite_key_equal_to< typename detail::nth_composite_key_equal_to< typename CompositeKeyResult::composite_key_type,0 >::type , typename detail::nth_composite_key_equal_to< typename CompositeKeyResult::composite_key_type,1 >::type , typename detail::nth_composite_key_equal_to< typename CompositeKeyResult::composite_key_type,2 >::type , typename detail::nth_composite_key_equal_to< typename CompositeKeyResult::composite_key_type,3 >::type , typename detail::nth_composite_key_equal_to< typename CompositeKeyResult::composite_key_type,4 >::type , typename detail::nth_composite_key_equal_to< typename CompositeKeyResult::composite_key_type,5 >::type , typename detail::nth_composite_key_equal_to< typename CompositeKeyResult::composite_key_type,6 >::type , typename detail::nth_composite_key_equal_to< typename CompositeKeyResult::composite_key_type,7 >::type , typename detail::nth_composite_key_equal_to< typename CompositeKeyResult::composite_key_type,8 >::type , typename detail::nth_composite_key_equal_to< typename CompositeKeyResult::composite_key_type,9 >::type > super; public: typedef CompositeKeyResult first_argument_type; typedef first_argument_type second_argument_type; typedef bool result_type; using super::operator(); }; # 1384 "/usr/include/boost/multi_index/composite_key.hpp" 3 4 template struct composite_key_result_less: private composite_key_compare< typename detail::nth_composite_key_less< typename CompositeKeyResult::composite_key_type,0 >::type , typename detail::nth_composite_key_less< typename CompositeKeyResult::composite_key_type,1 >::type , typename detail::nth_composite_key_less< typename CompositeKeyResult::composite_key_type,2 >::type , typename detail::nth_composite_key_less< typename CompositeKeyResult::composite_key_type,3 >::type , typename detail::nth_composite_key_less< typename CompositeKeyResult::composite_key_type,4 >::type , typename detail::nth_composite_key_less< typename CompositeKeyResult::composite_key_type,5 >::type , typename detail::nth_composite_key_less< typename CompositeKeyResult::composite_key_type,6 >::type , typename detail::nth_composite_key_less< typename CompositeKeyResult::composite_key_type,7 >::type , typename detail::nth_composite_key_less< typename CompositeKeyResult::composite_key_type,8 >::type , typename detail::nth_composite_key_less< typename CompositeKeyResult::composite_key_type,9 >::type > { private: typedef composite_key_compare< typename detail::nth_composite_key_less< typename CompositeKeyResult::composite_key_type,0 >::type , typename detail::nth_composite_key_less< typename CompositeKeyResult::composite_key_type,1 >::type , typename detail::nth_composite_key_less< typename CompositeKeyResult::composite_key_type,2 >::type , typename detail::nth_composite_key_less< typename CompositeKeyResult::composite_key_type,3 >::type , typename detail::nth_composite_key_less< typename CompositeKeyResult::composite_key_type,4 >::type , typename detail::nth_composite_key_less< typename CompositeKeyResult::composite_key_type,5 >::type , typename detail::nth_composite_key_less< typename CompositeKeyResult::composite_key_type,6 >::type , typename detail::nth_composite_key_less< typename CompositeKeyResult::composite_key_type,7 >::type , typename detail::nth_composite_key_less< typename CompositeKeyResult::composite_key_type,8 >::type , typename detail::nth_composite_key_less< typename CompositeKeyResult::composite_key_type,9 >::type > super; public: typedef CompositeKeyResult first_argument_type; typedef first_argument_type second_argument_type; typedef bool result_type; using super::operator(); }; # 1410 "/usr/include/boost/multi_index/composite_key.hpp" 3 4 template struct composite_key_result_greater: private composite_key_compare< typename detail::nth_composite_key_greater< typename CompositeKeyResult::composite_key_type,0 >::type , typename detail::nth_composite_key_greater< typename CompositeKeyResult::composite_key_type,1 >::type , typename detail::nth_composite_key_greater< typename CompositeKeyResult::composite_key_type,2 >::type , typename detail::nth_composite_key_greater< typename CompositeKeyResult::composite_key_type,3 >::type , typename detail::nth_composite_key_greater< typename CompositeKeyResult::composite_key_type,4 >::type , typename detail::nth_composite_key_greater< typename CompositeKeyResult::composite_key_type,5 >::type , typename detail::nth_composite_key_greater< typename CompositeKeyResult::composite_key_type,6 >::type , typename detail::nth_composite_key_greater< typename CompositeKeyResult::composite_key_type,7 >::type , typename detail::nth_composite_key_greater< typename CompositeKeyResult::composite_key_type,8 >::type , typename detail::nth_composite_key_greater< typename CompositeKeyResult::composite_key_type,9 >::type > { private: typedef composite_key_compare< typename detail::nth_composite_key_greater< typename CompositeKeyResult::composite_key_type,0 >::type , typename detail::nth_composite_key_greater< typename CompositeKeyResult::composite_key_type,1 >::type , typename detail::nth_composite_key_greater< typename CompositeKeyResult::composite_key_type,2 >::type , typename detail::nth_composite_key_greater< typename CompositeKeyResult::composite_key_type,3 >::type , typename detail::nth_composite_key_greater< typename CompositeKeyResult::composite_key_type,4 >::type , typename detail::nth_composite_key_greater< typename CompositeKeyResult::composite_key_type,5 >::type , typename detail::nth_composite_key_greater< typename CompositeKeyResult::composite_key_type,6 >::type , typename detail::nth_composite_key_greater< typename CompositeKeyResult::composite_key_type,7 >::type , typename detail::nth_composite_key_greater< typename CompositeKeyResult::composite_key_type,8 >::type , typename detail::nth_composite_key_greater< typename CompositeKeyResult::composite_key_type,9 >::type > super; public: typedef CompositeKeyResult first_argument_type; typedef first_argument_type second_argument_type; typedef bool result_type; using super::operator(); }; # 1436 "/usr/include/boost/multi_index/composite_key.hpp" 3 4 template struct composite_key_result_hash: private composite_key_hash< typename detail::nth_composite_key_hash< typename CompositeKeyResult::composite_key_type,0 >::type , typename detail::nth_composite_key_hash< typename CompositeKeyResult::composite_key_type,1 >::type , typename detail::nth_composite_key_hash< typename CompositeKeyResult::composite_key_type,2 >::type , typename detail::nth_composite_key_hash< typename CompositeKeyResult::composite_key_type,3 >::type , typename detail::nth_composite_key_hash< typename CompositeKeyResult::composite_key_type,4 >::type , typename detail::nth_composite_key_hash< typename CompositeKeyResult::composite_key_type,5 >::type , typename detail::nth_composite_key_hash< typename CompositeKeyResult::composite_key_type,6 >::type , typename detail::nth_composite_key_hash< typename CompositeKeyResult::composite_key_type,7 >::type , typename detail::nth_composite_key_hash< typename CompositeKeyResult::composite_key_type,8 >::type , typename detail::nth_composite_key_hash< typename CompositeKeyResult::composite_key_type,9 >::type > { private: typedef composite_key_hash< typename detail::nth_composite_key_hash< typename CompositeKeyResult::composite_key_type,0 >::type , typename detail::nth_composite_key_hash< typename CompositeKeyResult::composite_key_type,1 >::type , typename detail::nth_composite_key_hash< typename CompositeKeyResult::composite_key_type,2 >::type , typename detail::nth_composite_key_hash< typename CompositeKeyResult::composite_key_type,3 >::type , typename detail::nth_composite_key_hash< typename CompositeKeyResult::composite_key_type,4 >::type , typename detail::nth_composite_key_hash< typename CompositeKeyResult::composite_key_type,5 >::type , typename detail::nth_composite_key_hash< typename CompositeKeyResult::composite_key_type,6 >::type , typename detail::nth_composite_key_hash< typename CompositeKeyResult::composite_key_type,7 >::type , typename detail::nth_composite_key_hash< typename CompositeKeyResult::composite_key_type,8 >::type , typename detail::nth_composite_key_hash< typename CompositeKeyResult::composite_key_type,9 >::type > super; public: typedef CompositeKeyResult argument_type; typedef std::size_t result_type; using super::operator(); }; } } namespace std{ template struct equal_to >: boost::multi_index::composite_key_result_equal_to< boost::multi_index::composite_key_result > { }; template struct less >: boost::multi_index::composite_key_result_less< boost::multi_index::composite_key_result > { }; template struct greater >: boost::multi_index::composite_key_result_greater< boost::multi_index::composite_key_result > { }; } namespace boost{ template struct hash >: boost::multi_index::composite_key_result_hash< boost::multi_index::composite_key_result > { }; } # 17 "/usr/include/boost/multi_index/key_extractors.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/global_fun.hpp" 1 3 4 # 28 "/usr/include/boost/multi_index/global_fun.hpp" 3 4 namespace boost{ template class reference_wrapper; namespace multi_index{ namespace detail{ # 49 "/usr/include/boost/multi_index/global_fun.hpp" 3 4 template struct const_ref_global_fun_base { typedef typename remove_reference::type result_type; template typename disable_if< is_convertible,Type>::type operator()(const ChainedPtr& x)const { return operator()(*x); } Type operator()(Value x)const { return PtrToFunction(x); } Type operator()( const reference_wrapper< typename remove_reference::type>& x)const { return operator()(x.get()); } Type operator()( const reference_wrapper< typename remove_const< typename remove_reference::type>::type>& x)const { return operator()(x.get()); } }; template struct non_const_ref_global_fun_base { typedef typename remove_reference::type result_type; template typename disable_if< is_convertible,Type>::type operator()(const ChainedPtr& x)const { return operator()(*x); } Type operator()(Value x)const { return PtrToFunction(x); } Type operator()( const reference_wrapper< typename remove_reference::type>& x)const { return operator()(x.get()); } }; template struct non_ref_global_fun_base { typedef typename remove_reference::type result_type; template typename disable_if< is_convertible,Type>::type operator()(const ChainedPtr& x)const { return operator()(*x); } Type operator()(const Value& x)const { return PtrToFunction(x); } Type operator()(const reference_wrapper& x)const { return operator()(x.get()); } Type operator()( const reference_wrapper::type>& x)const { return operator()(x.get()); } }; } template struct global_fun: mpl::if_c< is_reference::value, typename mpl::if_c< is_const::type>::value, detail::const_ref_global_fun_base, detail::non_const_ref_global_fun_base >::type, detail::non_ref_global_fun_base >::type { }; } } # 19 "/usr/include/boost/multi_index/key_extractors.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/member.hpp" 1 3 4 # 26 "/usr/include/boost/multi_index/member.hpp" 3 4 namespace boost{ template class reference_wrapper; namespace multi_index{ namespace detail{ # 44 "/usr/include/boost/multi_index/member.hpp" 3 4 template struct const_member_base { typedef Type result_type; template typename disable_if< is_convertible,Type&>::type operator()(const ChainedPtr& x)const { return operator()(*x); } Type& operator()(const Class& x)const { return x.*PtrToMember; } Type& operator()(const reference_wrapper& x)const { return operator()(x.get()); } Type& operator()(const reference_wrapper& x)const { return operator()(x.get()); } }; template struct non_const_member_base { typedef Type result_type; template typename disable_if< is_convertible,Type&>::type operator()(const ChainedPtr& x)const { return operator()(*x); } const Type& operator()(const Class& x)const { return x.*PtrToMember; } Type& operator()(Class& x)const { return x.*PtrToMember; } const Type& operator()(const reference_wrapper& x)const { return operator()(x.get()); } Type& operator()(const reference_wrapper& x)const { return operator()(x.get()); } }; } template struct member: mpl::if_c< is_const::value, detail::const_member_base, detail::non_const_member_base >::type { }; namespace detail{ # 150 "/usr/include/boost/multi_index/member.hpp" 3 4 template struct const_member_offset_base { typedef Type result_type; template typename disable_if< is_convertible,Type&>::type operator()(const ChainedPtr& x)const { return operator()(*x); } Type& operator()(const Class& x)const { return *static_cast( static_cast( static_cast( static_cast(&x))+OffsetOfMember)); } Type& operator()(const reference_wrapper& x)const { return operator()(x.get()); } Type& operator()(const reference_wrapper& x)const { return operator()(x.get()); } }; template struct non_const_member_offset_base { typedef Type result_type; template typename disable_if< is_convertible,Type&>::type operator()(const ChainedPtr& x)const { return operator()(*x); } const Type& operator()(const Class& x)const { return *static_cast( static_cast( static_cast( static_cast(&x))+OffsetOfMember)); } Type& operator()(Class& x)const { return *static_cast( static_cast( static_cast(static_cast(&x))+OffsetOfMember)); } const Type& operator()(const reference_wrapper& x)const { return operator()(x.get()); } Type& operator()(const reference_wrapper& x)const { return operator()(x.get()); } }; } template struct member_offset: mpl::if_c< is_const::value, detail::const_member_offset_base, detail::non_const_member_offset_base >::type { }; # 258 "/usr/include/boost/multi_index/member.hpp" 3 4 } } # 20 "/usr/include/boost/multi_index/key_extractors.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/mem_fun.hpp" 1 3 4 # 25 "/usr/include/boost/multi_index/mem_fun.hpp" 3 4 namespace boost{ template class reference_wrapper; namespace multi_index{ # 42 "/usr/include/boost/multi_index/mem_fun.hpp" 3 4 template struct const_mem_fun { typedef typename remove_reference::type result_type; template typename disable_if< is_convertible,Type>::type operator()(const ChainedPtr& x)const { return operator()(*x); } Type operator()(const Class& x)const { return (x.*PtrToMemberFunction)(); } Type operator()(const reference_wrapper& x)const { return operator()(x.get()); } Type operator()(const reference_wrapper& x)const { return operator()(x.get()); } }; template struct mem_fun { typedef typename remove_reference::type result_type; template typename disable_if< is_convertible,Type>::type operator()(const ChainedPtr& x)const { return operator()(*x); } Type operator()(Class& x)const { return (x.*PtrToMemberFunction)(); } Type operator()(const reference_wrapper& x)const { return operator()(x.get()); } }; # 120 "/usr/include/boost/multi_index/mem_fun.hpp" 3 4 template< class Class,typename Type, typename PtrToMemberFunctionType,PtrToMemberFunctionType PtrToMemberFunction> struct const_mem_fun_explicit { typedef typename remove_reference::type result_type; template typename disable_if< is_convertible,Type>::type operator()(const ChainedPtr& x)const { return operator()(*x); } Type operator()(const Class& x)const { return (x.*PtrToMemberFunction)(); } Type operator()(const reference_wrapper& x)const { return operator()(x.get()); } Type operator()(const reference_wrapper& x)const { return operator()(x.get()); } }; template< class Class,typename Type, typename PtrToMemberFunctionType,PtrToMemberFunctionType PtrToMemberFunction> struct mem_fun_explicit { typedef typename remove_reference::type result_type; template typename disable_if< is_convertible,Type>::type operator()(const ChainedPtr& x)const { return operator()(*x); } Type operator()(Class& x)const { return (x.*PtrToMemberFunction)(); } Type operator()(const reference_wrapper& x)const { return operator()(x.get()); } }; # 201 "/usr/include/boost/multi_index/mem_fun.hpp" 3 4 } } # 21 "/usr/include/boost/multi_index/key_extractors.hpp" 2 3 4 # 34 "misc.hh" 2 # 1 "/usr/include/boost/multi_index/sequenced_index.hpp" 1 3 4 # 34 "/usr/include/boost/multi_index/sequenced_index.hpp" 3 4 # 1 "/usr/include/boost/multi_index/detail/seq_index_node.hpp" 1 3 4 # 20 "/usr/include/boost/multi_index/detail/seq_index_node.hpp" 3 4 namespace boost{ namespace multi_index{ namespace detail{ template struct sequenced_index_node_impl { typedef typename boost::detail::allocator::rebind_to< Allocator,sequenced_index_node_impl >::type::pointer pointer; typedef typename boost::detail::allocator::rebind_to< Allocator,sequenced_index_node_impl >::type::const_pointer const_pointer; pointer& prior(){return prior_;} pointer prior()const{return prior_;} pointer& next(){return next_;} pointer next()const{return next_;} static void increment(pointer& x){x=x->next();} static void decrement(pointer& x){x=x->prior();} static void link(pointer x,pointer header) { x->prior()=header->prior(); x->next()=header; x->prior()->next()=x->next()->prior()=x; }; static void unlink(pointer x) { x->prior()->next()=x->next(); x->next()->prior()=x->prior(); } static void relink(pointer position,pointer x) { unlink(x); x->prior()=position->prior(); x->next()=position; x->prior()->next()=x->next()->prior()=x; } static void relink(pointer position,pointer x,pointer y) { if(x!=y){ pointer z=y->prior(); x->prior()->next()=y; y->prior()=x->prior(); x->prior()=position->prior(); z->next()=position; x->prior()->next()=x; z->next()->prior()=z; } } static void reverse(pointer header) { pointer x=header; do{ pointer y=x->next(); std::swap(x->prior(),x->next()); x=y; }while(x!=header); } static void swap(pointer x,pointer y) { if(x->next()!=x){ if(y->next()!=y){ std::swap(x->next(),y->next()); std::swap(x->prior(),y->prior()); x->next()->prior()=x->prior()->next()=x; y->next()->prior()=y->prior()->next()=y; } else{ y->next()=x->next(); y->prior()=x->prior(); x->next()=x->prior()=x; y->next()->prior()=y->prior()->next()=y; } } else if(y->next()!=y){ x->next()=y->next(); x->prior()=y->prior(); y->next()=y->prior()=y; x->next()->prior()=x->prior()->next()=x; } } private: pointer prior_; pointer next_; }; template struct sequenced_index_node_trampoline: sequenced_index_node_impl< typename boost::detail::allocator::rebind_to< typename Super::allocator_type, char >::type > { typedef sequenced_index_node_impl< typename boost::detail::allocator::rebind_to< typename Super::allocator_type, char >::type > impl_type; }; template struct sequenced_index_node:Super,sequenced_index_node_trampoline { private: typedef sequenced_index_node_trampoline trampoline; public: typedef typename trampoline::impl_type impl_type; typedef typename trampoline::pointer impl_pointer; typedef typename trampoline::const_pointer const_impl_pointer; impl_pointer& prior(){return trampoline::prior();} impl_pointer prior()const{return trampoline::prior();} impl_pointer& next(){return trampoline::next();} impl_pointer next()const{return trampoline::next();} impl_pointer impl() { return static_cast( static_cast(static_cast(this))); } const_impl_pointer impl()const { return static_cast( static_cast(static_cast(this))); } static sequenced_index_node* from_impl(impl_pointer x) { return static_cast( static_cast(&*x)); } static const sequenced_index_node* from_impl(const_impl_pointer x) { return static_cast( static_cast(&*x)); } static void increment(sequenced_index_node*& x) { impl_pointer xi=x->impl(); trampoline::increment(xi); x=from_impl(xi); } static void decrement(sequenced_index_node*& x) { impl_pointer xi=x->impl(); trampoline::decrement(xi); x=from_impl(xi); } }; } } } # 35 "/usr/include/boost/multi_index/sequenced_index.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/detail/seq_index_ops.hpp" 1 3 4 # 24 "/usr/include/boost/multi_index/detail/seq_index_ops.hpp" 3 4 namespace boost{ namespace multi_index{ namespace detail{ template void sequenced_index_remove(SequencedIndex& x,Predicate pred) { typedef typename SequencedIndex::iterator iterator; iterator first=x.begin(),last=x.end(); while(first!=last){ if(pred(*first))x.erase(first++); else ++first; } } template void sequenced_index_unique(SequencedIndex& x,BinaryPredicate binary_pred) { typedef typename SequencedIndex::iterator iterator; iterator first=x.begin(); iterator last=x.end(); if(first!=last){ for(iterator middle=first;++middle!=last;middle=first){ if(binary_pred(*middle,*first))x.erase(middle); else first=middle; } } } template void sequenced_index_merge(SequencedIndex& x,SequencedIndex& y,Compare comp) { typedef typename SequencedIndex::iterator iterator; if(&x!=&y){ iterator first0=x.begin(),last0=x.end(); iterator first1=y.begin(),last1=y.end(); while(first0!=last0&&first1!=last1){ if(comp(*first1,*first0))x.splice(first0,y,first1++); else ++first0; } x.splice(last0,y,first1,last1); } } template void sequenced_index_collate( typename Node::impl_type* x, typename Node::impl_type* y, Compare comp) { typedef typename Node::impl_type impl_type; typedef typename Node::impl_pointer impl_pointer; impl_pointer first0=x->next(); impl_pointer last0=x; impl_pointer first1=y->next(); impl_pointer last1=y; while(first0!=last0&&first1!=last1){ if(comp( Node::from_impl(first1)->value(),Node::from_impl(first0)->value())){ impl_pointer tmp=first1->next(); impl_type::relink(first0,first1); first1=tmp; } else first0=first0->next(); } impl_type::relink(last0,first1,last1); } static const std::size_t sequenced_index_sort_max_fill= (std::size_t)std::numeric_limits::digits+1 ; template void sequenced_index_sort(Node* header,Compare comp) { # 126 "/usr/include/boost/multi_index/detail/seq_index_ops.hpp" 3 4 if(header->next()==header->impl()|| header->next()->next()==header->impl())return; typedef typename Node::impl_type impl_type; typedef typename Node::impl_pointer impl_pointer; typedef typename aligned_storage< sizeof(impl_type), alignment_of::value >::type carry_spc_type; carry_spc_type carry_spc; impl_type& carry= *static_cast(static_cast(&carry_spc)); typedef typename aligned_storage< sizeof( impl_type [sequenced_index_sort_max_fill]), alignment_of< impl_type [sequenced_index_sort_max_fill] >::value >::type counter_spc_type; counter_spc_type counter_spc; impl_type* counter= static_cast(static_cast(&counter_spc)); std::size_t fill=0; carry.prior()=carry.next()=static_cast(&carry); counter[0].prior()=counter[0].next()=static_cast(&counter[0]); { try{ while(header->next()!=header->impl()){ impl_type::relink(carry.next(),header->next()); std::size_t i=0; while(i(&counter[i])){ sequenced_index_collate(&carry,&counter[i++],comp); } impl_type::swap( static_cast(&carry), static_cast(&counter[i])); if(i==fill){ ++fill; counter[fill].prior()=counter[fill].next()= static_cast(&counter[fill]); } } for(std::size_t i=1;i(&counter[i],&counter[i-1],comp); } impl_type::swap( header->impl(),static_cast(&counter[fill-1])); } catch(...) { impl_type::relink( header->impl(),carry.next(),static_cast(&carry)); for(std::size_t i=0;i<=fill;++i){ impl_type::relink( header->impl(),counter[i].next(), static_cast(&counter[i])); } throw;; } } } } } } # 36 "/usr/include/boost/multi_index/sequenced_index.hpp" 2 3 4 # 1 "/usr/include/boost/multi_index/sequenced_index_fwd.hpp" 1 3 4 # 18 "/usr/include/boost/multi_index/sequenced_index_fwd.hpp" 3 4 namespace boost{ namespace multi_index{ namespace detail{ template class sequenced_index; template< typename SuperMeta1,typename TagList1, typename SuperMeta2,typename TagList2 > bool operator==( const sequenced_index& x, const sequenced_index& y); template< typename SuperMeta1,typename TagList1, typename SuperMeta2,typename TagList2 > bool operator<( const sequenced_index& x, const sequenced_index& y); template< typename SuperMeta1,typename TagList1, typename SuperMeta2,typename TagList2 > bool operator!=( const sequenced_index& x, const sequenced_index& y); template< typename SuperMeta1,typename TagList1, typename SuperMeta2,typename TagList2 > bool operator>( const sequenced_index& x, const sequenced_index& y); template< typename SuperMeta1,typename TagList1, typename SuperMeta2,typename TagList2 > bool operator>=( const sequenced_index& x, const sequenced_index& y); template< typename SuperMeta1,typename TagList1, typename SuperMeta2,typename TagList2 > bool operator<=( const sequenced_index& x, const sequenced_index& y); template void swap( sequenced_index& x, sequenced_index& y); } template > struct sequenced; } } # 38 "/usr/include/boost/multi_index/sequenced_index.hpp" 2 3 4 # 64 "/usr/include/boost/multi_index/sequenced_index.hpp" 3 4 namespace boost{ namespace multi_index{ namespace detail{ template class sequenced_index: protected SuperMeta::type { # 92 "/usr/include/boost/multi_index/sequenced_index.hpp" 3 4 typedef typename SuperMeta::type super; protected: typedef sequenced_index_node< typename super::node_type> node_type; private: typedef typename node_type::impl_type node_impl_type; public: typedef typename node_type::value_type value_type; typedef tuples::null_type ctor_args; typedef typename super::final_allocator_type allocator_type; typedef typename allocator_type::reference reference; typedef typename allocator_type::const_reference const_reference; typedef bidir_node_iterator iterator; typedef iterator const_iterator; typedef std::size_t size_type; typedef std::ptrdiff_t difference_type; typedef typename allocator_type::pointer pointer; typedef typename allocator_type::const_pointer const_pointer; typedef typename boost::reverse_iterator reverse_iterator; typedef typename boost::reverse_iterator const_reverse_iterator; typedef TagList tag_list; protected: typedef typename super::final_node_type final_node_type; typedef tuples::cons< ctor_args, typename super::ctor_args_list> ctor_args_list; typedef typename mpl::push_front< typename super::index_type_list, sequenced_index>::type index_type_list; typedef typename mpl::push_front< typename super::iterator_type_list, iterator>::type iterator_type_list; typedef typename mpl::push_front< typename super::const_iterator_type_list, const_iterator>::type const_iterator_type_list; typedef typename super::copy_map_type copy_map_type; typedef typename super::index_saver_type index_saver_type; typedef typename super::index_loader_type index_loader_type; private: typedef typename call_traits::param_type value_param_type; typedef std::pair emplace_return_type; public: sequenced_index& operator=( const sequenced_index& x) { this->final()=x.final(); return *this; } # 188 "/usr/include/boost/multi_index/sequenced_index.hpp" 3 4 template void assign(InputIterator first,InputIterator last) { assign_iter(first,last,mpl::not_ >()); } # 201 "/usr/include/boost/multi_index/sequenced_index.hpp" 3 4 void assign(size_type n,value_param_type value) { ; clear(); for(size_type i=0;ifinal().get_allocator(); } iterator begin() {return make_iterator(node_type::from_impl(header()->next()));} const_iterator begin()const {return make_iterator(node_type::from_impl(header()->next()));} iterator end(){return make_iterator(header());} const_iterator end()const {return make_iterator(header());} reverse_iterator rbegin(){return boost::make_reverse_iterator(end());} const_reverse_iterator rbegin()const {return boost::make_reverse_iterator(end());} reverse_iterator rend(){return boost::make_reverse_iterator(begin());} const_reverse_iterator rend()const {return boost::make_reverse_iterator(begin());} const_iterator cbegin()const {return begin();} const_iterator cend()const {return end();} const_reverse_iterator crbegin()const {return rbegin();} const_reverse_iterator crend()const {return rend();} iterator iterator_to(const value_type& x) { return make_iterator(node_from_value(&x)); } const_iterator iterator_to(const value_type& x)const { return make_iterator(node_from_value(&x)); } bool empty()const {return this->final_empty_();} size_type size()const {return this->final_size_();} size_type max_size()const {return this->final_max_size_();} void resize(size_type n) { ; if(n>size()){ for(size_type m=n-size();m--;) this->final_emplace_( boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() ); } else if(nsize())insert(end(),n-size(),x); else if(n emplace_return_type emplace_front ( const T0 & t0) { return emplace_front_impl ( boost::forward(t0) , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() ); } template< typename T0 , typename T1> emplace_return_type emplace_front ( const T0 & t0 , const T1 & t1) { return emplace_front_impl ( boost::forward(t0) , boost::forward(t1) , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() ); } template< typename T0 , typename T1 , typename T2> emplace_return_type emplace_front ( const T0 & t0 , const T1 & t1 , const T2 & t2) { return emplace_front_impl ( boost::forward(t0) , boost::forward(t1) , boost::forward(t2) , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() ); } template< typename T0 , typename T1 , typename T2 , typename T3> emplace_return_type emplace_front ( const T0 & t0 , const T1 & t1 , const T2 & t2 , const T3 & t3) { return emplace_front_impl ( boost::forward(t0) , boost::forward(t1) , boost::forward(t2) , boost::forward(t3) , boost::multi_index::detail::noarg() ); } template< typename T0 , typename T1 , typename T2 , typename T3 , typename T4> emplace_return_type emplace_front ( const T0 & t0 , const T1 & t1 , const T2 & t2 , const T3 & t3 , const T4 & t4) { return emplace_front_impl ( boost::forward(t0) , boost::forward(t1) , boost::forward(t2) , boost::forward(t3) , boost::forward(t4) ); } std::pair push_front(const value_type& x) {return insert(begin(),x);} std::pair push_front(::boost::rv< value_type >& x) {return insert(begin(),boost::move(x));} void pop_front(){erase(begin());} emplace_return_type emplace_back ( ) { return emplace_back_impl ( boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() ); } template< typename T0> emplace_return_type emplace_back ( const T0 & t0) { return emplace_back_impl ( boost::forward(t0) , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() ); } template< typename T0 , typename T1> emplace_return_type emplace_back ( const T0 & t0 , const T1 & t1) { return emplace_back_impl ( boost::forward(t0) , boost::forward(t1) , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() ); } template< typename T0 , typename T1 , typename T2> emplace_return_type emplace_back ( const T0 & t0 , const T1 & t1 , const T2 & t2) { return emplace_back_impl ( boost::forward(t0) , boost::forward(t1) , boost::forward(t2) , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() ); } template< typename T0 , typename T1 , typename T2 , typename T3> emplace_return_type emplace_back ( const T0 & t0 , const T1 & t1 , const T2 & t2 , const T3 & t3) { return emplace_back_impl ( boost::forward(t0) , boost::forward(t1) , boost::forward(t2) , boost::forward(t3) , boost::multi_index::detail::noarg() ); } template< typename T0 , typename T1 , typename T2 , typename T3 , typename T4> emplace_return_type emplace_back ( const T0 & t0 , const T1 & t1 , const T2 & t2 , const T3 & t3 , const T4 & t4) { return emplace_back_impl ( boost::forward(t0) , boost::forward(t1) , boost::forward(t2) , boost::forward(t3) , boost::forward(t4) ); } std::pair push_back(const value_type& x) {return insert(end(),x);} std::pair push_back(::boost::rv< value_type >& x) {return insert(end(),boost::move(x));} void pop_back(){erase(--end());} emplace_return_type emplace ( iterator position ) { return emplace_impl ( position , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() ); } template< typename T0> emplace_return_type emplace ( iterator position , const T0 & t0) { return emplace_impl ( position , boost::forward(t0) , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() ); } template< typename T0 , typename T1> emplace_return_type emplace ( iterator position , const T0 & t0 , const T1 & t1) { return emplace_impl ( position , boost::forward(t0) , boost::forward(t1) , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() ); } template< typename T0 , typename T1 , typename T2> emplace_return_type emplace ( iterator position , const T0 & t0 , const T1 & t1 , const T2 & t2) { return emplace_impl ( position , boost::forward(t0) , boost::forward(t1) , boost::forward(t2) , boost::multi_index::detail::noarg() , boost::multi_index::detail::noarg() ); } template< typename T0 , typename T1 , typename T2 , typename T3> emplace_return_type emplace ( iterator position , const T0 & t0 , const T1 & t1 , const T2 & t2 , const T3 & t3) { return emplace_impl ( position , boost::forward(t0) , boost::forward(t1) , boost::forward(t2) , boost::forward(t3) , boost::multi_index::detail::noarg() ); } template< typename T0 , typename T1 , typename T2 , typename T3 , typename T4> emplace_return_type emplace ( iterator position , const T0 & t0 , const T1 & t1 , const T2 & t2 , const T3 & t3 , const T4 & t4) { return emplace_impl ( position , boost::forward(t0) , boost::forward(t1) , boost::forward(t2) , boost::forward(t3) , boost::forward(t4) ); } std::pair insert(iterator position,const value_type& x) { ((void)0);; ((void)0);; ; std::pair p=this->final_insert_(x); if(p.second&&position.get_node()!=header()){ relink(position.get_node(),p.first); } return std::pair(make_iterator(p.first),p.second); } std::pair insert(iterator position,::boost::rv< value_type >& x) { ((void)0);; ((void)0);; ; std::pair p=this->final_insert_rv_(x); if(p.second&&position.get_node()!=header()){ relink(position.get_node(),p.first); } return std::pair(make_iterator(p.first),p.second); } void insert(iterator position,size_type n,value_param_type x) { ((void)0);; ((void)0);; ; for(size_type i=0;i void insert(iterator position,InputIterator first,InputIterator last) { insert_iter(position,first,last,mpl::not_ >()); } # 348 "/usr/include/boost/multi_index/sequenced_index.hpp" 3 4 iterator erase(iterator position) { ((void)0);; ((void)0);; ((void)0);; ; this->final_erase_(static_cast(position++.get_node())); return position; } iterator erase(iterator first,iterator last) { ((void)0);; ((void)0);; ((void)0);; ((void)0);; ((void)0);; ; while(first!=last){ first=erase(first); } return first; } bool replace(iterator position,const value_type& x) { ((void)0);; ((void)0);; ((void)0);; ; return this->final_replace_( x,static_cast(position.get_node())); } bool replace(iterator position,::boost::rv< value_type >& x) { ((void)0);; ((void)0);; ((void)0);; ; return this->final_replace_rv_( x,static_cast(position.get_node())); } template bool modify(iterator position,Modifier mod) { ((void)0);; ((void)0);; ((void)0);; ; # 409 "/usr/include/boost/multi_index/sequenced_index.hpp" 3 4 return this->final_modify_( mod,static_cast(position.get_node())); } template bool modify(iterator position,Modifier mod,Rollback back_) { ((void)0);; ((void)0);; ((void)0);; ; # 430 "/usr/include/boost/multi_index/sequenced_index.hpp" 3 4 return this->final_modify_( mod,back_,static_cast(position.get_node())); } void swap(sequenced_index& x) { ; ; this->final_swap_(x.final()); } void clear() { ; this->final_clear_(); } void splice(iterator position,sequenced_index& x) { ((void)0);; ((void)0);; ((void)0);; ; iterator first=x.begin(),last=x.end(); while(first!=last){ if(insert(position,*first).second)first=x.erase(first); else ++first; } } void splice(iterator position,sequenced_index& x,iterator i) { ((void)0);; ((void)0);; ((void)0);; ((void)0);; ((void)0);; ; if(&x==this){ if(position!=i)relink(position.get_node(),i.get_node()); } else{ if(insert(position,*i).second){ # 484 "/usr/include/boost/multi_index/sequenced_index.hpp" 3 4 x.erase(i); } } } void splice( iterator position,sequenced_index& x, iterator first,iterator last) { ((void)0);; ((void)0);; ((void)0);; ((void)0);; ((void)0);; ((void)0);; ((void)0);; ; if(&x==this){ ((void)0);; if(position!=last)relink( position.get_node(),first.get_node(),last.get_node()); } else{ while(first!=last){ if(insert(position,*first).second)first=x.erase(first); else ++first; } } } void remove(value_param_type value) { sequenced_index_remove( *this,std::bind2nd(std::equal_to(),value)); } template void remove_if(Predicate pred) { sequenced_index_remove(*this,pred); } void unique() { sequenced_index_unique(*this,std::equal_to()); } template void unique(BinaryPredicate binary_pred) { sequenced_index_unique(*this,binary_pred); } void merge(sequenced_index& x) { sequenced_index_merge(*this,x,std::less()); } template void merge(sequenced_index& x,Compare comp) { sequenced_index_merge(*this,x,comp); } void sort() { ; sequenced_index_sort(header(),std::less()); } template void sort(Compare comp) { ; sequenced_index_sort(header(),comp); } void reverse() { ; node_impl_type::reverse(header()->impl()); } void relocate(iterator position,iterator i) { ((void)0);; ((void)0);; ((void)0);; ((void)0);; ((void)0);; ; if(position!=i)relink(position.get_node(),i.get_node()); } void relocate(iterator position,iterator first,iterator last) { ((void)0);; ((void)0);; ((void)0);; ((void)0);; ((void)0);; ((void)0);; ((void)0);; ((void)0);; ; if(position!=last)relink( position.get_node(),first.get_node(),last.get_node()); } template void rearrange(InputIterator first) { ; node_type* pos=header(); for(size_type s=size();s--;){ const value_type& v=*first++; relink(pos,node_from_value(&v)); } } protected: sequenced_index(const ctor_args_list& args_list,const allocator_type& al): super(args_list.get_tail(),al) { empty_initialize(); } sequenced_index(const sequenced_index& x): super(x) { } sequenced_index( const sequenced_index& x,do_not_copy_elements_tag): super(x,do_not_copy_elements_tag()) { empty_initialize(); } ~sequenced_index() { } iterator make_iterator(node_type* node){return iterator(node);} const_iterator make_iterator(node_type* node)const {return const_iterator(node);} void copy_( const sequenced_index& x,const copy_map_type& map) { node_type* org=x.header(); node_type* cpy=header(); do{ node_type* next_org=node_type::from_impl(org->next()); node_type* next_cpy=map.find(static_cast(next_org)); cpy->next()=next_cpy->impl(); next_cpy->prior()=cpy->impl(); org=next_org; cpy=next_cpy; }while(org!=x.header()); super::copy_(x,map); } template final_node_type* insert_( value_param_type v,final_node_type*& x,Variant variant) { final_node_type* res=super::insert_(v,x,variant); if(res==x)link(static_cast(x)); return res; } template final_node_type* insert_( value_param_type v,node_type* position,final_node_type*& x,Variant variant) { final_node_type* res=super::insert_(v,position,x,variant); if(res==x)link(static_cast(x)); return res; } void erase_(node_type* x) { unlink(x); super::erase_(x); } void delete_all_nodes_() { for(node_type* x=node_type::from_impl(header()->next());x!=header();){ node_type* y=node_type::from_impl(x->next()); this->final_delete_node_(static_cast(x)); x=y; } } void clear_() { super::clear_(); empty_initialize(); } void swap_(sequenced_index& x) { super::swap_(x); } void swap_elements_(sequenced_index& x) { super::swap_elements_(x); } template bool replace_(value_param_type v,node_type* x,Variant variant) { return super::replace_(v,x,variant); } bool modify_(node_type* x) { { try{ if(!super::modify_(x)){ unlink(x); return false; } else return true; } catch(...){ unlink(x); throw;; } } } bool modify_rollback_(node_type* x) { return super::modify_rollback_(x); } template void save_( Archive& ar,const unsigned int version,const index_saver_type& sm)const { sm.save(begin(),end(),ar,version); super::save_(ar,version,sm); } template void load_( Archive& ar,const unsigned int version,const index_loader_type& lm) { lm.load( ::boost::bind( &sequenced_index::rearranger,this,::boost::arg<1>(),::boost::arg<2>()), ar,version); super::load_(ar,version,lm); } # 824 "/usr/include/boost/multi_index/sequenced_index.hpp" 3 4 private: node_type* header()const{return this->final_header();} void empty_initialize() { header()->prior()=header()->next()=header()->impl(); } void link(node_type* x) { node_impl_type::link(x->impl(),header()->impl()); }; static void unlink(node_type* x) { node_impl_type::unlink(x->impl()); } static void relink(node_type* position,node_type* x) { node_impl_type::relink(position->impl(),x->impl()); } static void relink(node_type* position,node_type* first,node_type* last) { node_impl_type::relink( position->impl(),first->impl(),last->impl()); } void rearranger(node_type* position,node_type *x) { if(!position)position=header(); node_type::increment(position); if(position!=x)relink(position,x); } # 870 "/usr/include/boost/multi_index/sequenced_index.hpp" 3 4 template void assign_iter(InputIterator first,InputIterator last,mpl::true_) { ; clear(); for(;first!=last;++first)this->final_insert_ref_(*first); } void assign_iter(size_type n,value_param_type value,mpl::false_) { ; clear(); for(size_type i=0;i void insert_iter( iterator position,InputIterator first,InputIterator last,mpl::true_) { ; for(;first!=last;++first){ std::pair p= this->final_insert_ref_(*first); if(p.second&&position.get_node()!=header()){ relink(position.get_node(),p.first); } } } void insert_iter( iterator position,size_type n,value_param_type x,mpl::false_) { ((void)0);; ((void)0);; ; for(size_type i=0;i std::pair emplace_front_impl( const T0 & t0 , const T1 & t1 , const T2 & t2 , const T3 & t3 , const T4 & t4) { return emplace_impl(begin(), boost::forward(t0) , boost::forward(t1) , boost::forward(t2) , boost::forward(t3) , boost::forward(t4)); } template< typename T0 , typename T1 , typename T2 , typename T3 , typename T4> std::pair emplace_back_impl( const T0 & t0 , const T1 & t1 , const T2 & t2 , const T3 & t3 , const T4 & t4) { return emplace_impl(end(), boost::forward(t0) , boost::forward(t1) , boost::forward(t2) , boost::forward(t3) , boost::forward(t4)); } template< typename T0 , typename T1 , typename T2 , typename T3 , typename T4> std::pair emplace_impl( iterator position, const T0 & t0 , const T1 & t1 , const T2 & t2 , const T3 & t3 , const T4 & t4) { ((void)0);; ((void)0);; ; std::pair p= this->final_emplace_( boost::forward(t0) , boost::forward(t1) , boost::forward(t2) , boost::forward(t3) , boost::forward(t4)); if(p.second&&position.get_node()!=header()){ relink(position.get_node(),p.first); } return std::pair(make_iterator(p.first),p.second); } }; template< typename SuperMeta1,typename TagList1, typename SuperMeta2,typename TagList2 > bool operator==( const sequenced_index& x, const sequenced_index& y) { return x.size()==y.size()&&std::equal(x.begin(),x.end(),y.begin()); } template< typename SuperMeta1,typename TagList1, typename SuperMeta2,typename TagList2 > bool operator<( const sequenced_index& x, const sequenced_index& y) { return std::lexicographical_compare(x.begin(),x.end(),y.begin(),y.end()); } template< typename SuperMeta1,typename TagList1, typename SuperMeta2,typename TagList2 > bool operator!=( const sequenced_index& x, const sequenced_index& y) { return !(x==y); } template< typename SuperMeta1,typename TagList1, typename SuperMeta2,typename TagList2 > bool operator>( const sequenced_index& x, const sequenced_index& y) { return y bool operator>=( const sequenced_index& x, const sequenced_index& y) { return !(x bool operator<=( const sequenced_index& x, const sequenced_index& y) { return !(x>y); } template void swap( sequenced_index& x, sequenced_index& y) { x.swap(y); } } template struct sequenced { typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< ((detail::is_tag::value) == 0 ? false : true) >)> boost_static_assert_typedef_1028 __attribute__((unused)); template struct node_class { typedef detail::sequenced_index_node type; }; template struct index_class { typedef detail::sequenced_index type; }; }; } } template inline boost::mpl::true_* boost_foreach_is_noncopyable( boost::multi_index::detail::sequenced_index*&, boost::foreach::tag) { return 0; } # 35 "misc.hh" 2 # 35 "misc.hh" using namespace ::boost::multi_index; # 1 "dns.hh" 1 # 31 "dns.hh" # 1 "/usr/include/boost/serialization/string.hpp" 1 3 4 # 25 "/usr/include/boost/serialization/string.hpp" 3 4 # 25 "/usr/include/boost/serialization/string.hpp" 3 4 namespace boost { namespace serialization { template <> struct implementation_level_impl< const std::string > { typedef mpl::integral_c_tag tag; typedef mpl::int_< boost::serialization::primitive_type > type; static const int value = implementation_level_impl::type::value; }; } } namespace boost { namespace serialization { template <> struct implementation_level_impl< const std::wstring > { typedef mpl::integral_c_tag tag; typedef mpl::int_< boost::serialization::primitive_type > type; static const int value = implementation_level_impl::type::value; }; } } # 32 "dns.hh" 2 # 1 "qtype.hh" 1 # 47 "qtype.hh" # 47 "qtype.hh" class QType { public: QType(); explicit QType(uint16_t); QType(const QType& orig) : code(orig.code) { } QType &operator=(uint16_t); QType &operator=(const char *); QType &operator=(const string &); QType &operator=(const QType&rhs) { code=rhs.code; return *this; } bool operator<(const QType& rhs) const { return code < rhs.code; } template void serialize(Archive &ar, const unsigned int version) { ar & code; } const string getName() const; uint16_t getCode() const; bool isSupportedType(); bool isMetadataType(); static int chartocode(const char *p); enum typeenum {A=1, NS=2, CNAME=5, SOA=6, MR=9, WKS=11, PTR=12, HINFO=13, MINFO=14, MX=15, TXT=16, RP=17, AFSDB=18, SIG=24, KEY=25, AAAA=28, LOC=29, SRV=33, NAPTR=35, KX=36, CERT=37, A6=38, DNAME=39, OPT=41, DS=43, SSHFP=44, IPSECKEY=45, RRSIG=46, NSEC=47, DNSKEY=48, DHCID=49, NSEC3=50, NSEC3PARAM=51, TLSA=52, SPF=99, EUI48=108, EUI64=109, TSIG=250, IXFR=251, AXFR=252, MAILB=253, MAILA=254, ANY=255, URL=256, MBOXFW=257, CURL=258, ADDR=259, ALIAS=260, DLV=32769} types; typedef pair namenum; static vector names; inline bool operator==(const QType &comp) const { return(comp.code==code); } inline bool operator!=(const QType &comp) const { return(comp.code!=code); } inline bool operator==(QType::typeenum comp) const { return(comp==code); } inline bool operator!=(QType::typeenum comp) const { return(comp!=code); } inline bool operator==(uint16_t comp) const { return(comp==code); } inline bool operator!=(uint16_t comp) const { return(comp!=code); } private: static class init { public: void qtype_insert(const char* a, uint16_t num) { names.push_back(make_pair(string(a), num)); } init() { qtype_insert("A", 1); qtype_insert("NS", 2); qtype_insert("CNAME", 5); qtype_insert("SOA", 6); qtype_insert("MR", 9); qtype_insert("PTR", 12); qtype_insert("HINFO", 13); qtype_insert("MINFO", 14); qtype_insert("MX", 15); qtype_insert("TXT", 16); qtype_insert("RP", 17); qtype_insert("AFSDB", 18); qtype_insert("SIG", 24); qtype_insert("KEY", 25); qtype_insert("AAAA", 28); qtype_insert("LOC", 29); qtype_insert("SRV", 33); qtype_insert("NAPTR", 35); qtype_insert("KX", 36); qtype_insert("CERT", 37); qtype_insert("A6", 38); qtype_insert("DNAME", 39); qtype_insert("OPT", 41); qtype_insert("DS", 43); qtype_insert("SSHFP", 44); qtype_insert("IPSECKEY", 45); qtype_insert("RRSIG", 46); qtype_insert("NSEC", 47); qtype_insert("DNSKEY", 48); qtype_insert("DHCID", 49); qtype_insert("NSEC3", 50); qtype_insert("NSEC3PARAM", 51); qtype_insert("TLSA", 52); qtype_insert("SPF", 99); qtype_insert("EUI48", 108); qtype_insert("EUI64", 109); qtype_insert("IXFR", 251); qtype_insert("AXFR", 252); qtype_insert("MAILB", 253); qtype_insert("MAILA", 254); qtype_insert("ANY", 255); qtype_insert("URL", 256); qtype_insert("MBOXFW", 257); qtype_insert("CURL", 258); qtype_insert("ADDR", 259); qtype_insert("ALIAS", 260); qtype_insert("DLV", 32769); } } initializer; uint16_t code; }; struct QClass { enum QClassEnum {IN=1, CHAOS=3, NONE=254, ANY=255}; }; # 37 "dns.hh" 2 class DNSBackend; struct SOAData { SOAData() : db(0), scopeMask(0) {}; string qname; string nameserver; string hostmaster; uint32_t ttl; uint32_t serial; uint32_t refresh; uint32_t retry; uint32_t expire; uint32_t default_ttl; int domain_id; DNSBackend *db; uint8_t scopeMask; }; class RCode { public: enum rcodes_ { NoError=0, FormErr=1, ServFail=2, NXDomain=3, NotImp=4, Refused=5, YXDomain=6, YXRRSet=7, NXRRSet=8, NotAuth=9, NotZone=10}; static std::string to_s(unsigned short rcode); static std::vector rcodes_s; }; class Opcode { public: enum { Query=0, IQuery=1, Status=2, Notify=4, Update=5 }; }; class DNSResourceRecord { public: DNSResourceRecord() : qclass(1), signttl(0), last_modified(0), d_place(ANSWER), auth(1), disabled(0), scopeMask(0) {}; DNSResourceRecord(const struct DNSRecord&); ~DNSResourceRecord(){}; void setContent(const string& content); string getZoneRepresentation() const; QType qtype; uint16_t qclass; string qname; string wildcardname; string content; uint32_t ttl; uint32_t signttl; int domain_id; time_t last_modified; enum Place {QUESTION=0, ANSWER=1, AUTHORITY=2, ADDITIONAL=3}; Place d_place; bool auth; bool disabled; uint8_t scopeMask; template void serialize(Archive & ar, const unsigned int version) { ar & qtype; ar & qclass; ar & qname; ar & wildcardname; ar & content; ar & ttl; ar & domain_id; ar & last_modified; ar & d_place; ar & auth; ar & disabled; } bool operator==(const DNSResourceRecord& rhs); bool operator<(const DNSResourceRecord &b) const { if(qname < b.qname) return true; if(qname == b.qname) return(content < b.content); return false; } }; struct dnsrecordheader { uint16_t d_type; uint16_t d_class; uint32_t d_ttl; uint16_t d_clen; } __attribute__((packed)); struct EDNS0Record { uint8_t extRCode, version; uint16_t Z; } __attribute__((packed)); # 182 "dns.hh" struct dnsheader { unsigned id :16; # 199 "dns.hh" unsigned rd :1; unsigned tc :1; unsigned aa :1; unsigned opcode :4; unsigned qr :1; unsigned rcode :4; unsigned cd: 1; unsigned ad: 1; unsigned unused :1; unsigned ra :1; unsigned qdcount :16; unsigned ancount :16; unsigned nscount :16; unsigned arcount :16; }; extern time_t s_starttime; std::string questionExpand(const char* packet, uint16_t len, uint16_t& type); uint32_t hashQuestion(const char* packet, uint16_t len, uint32_t init); bool dnspacketLessThan(const std::string& a, const std::string& b); void fillSOAData(const string &content, SOAData &data); string serializeSOAData(const SOAData &data); string &attodot(string &str); # 39 "misc.hh" 2 # 1 "/usr/include/syslog.h" 1 3 4 # 1 "/usr/include/sys/syslog.h" 1 3 4 # 37 "/usr/include/sys/syslog.h" 3 4 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stdarg.h" 1 3 4 # 38 "/usr/include/sys/syslog.h" 2 3 4 # 1 "/usr/include/bits/syslog-path.h" 1 3 4 # 41 "/usr/include/sys/syslog.h" 2 3 4 # 169 "/usr/include/sys/syslog.h" 3 4 # 169 "/usr/include/sys/syslog.h" 3 4 extern "C" { extern void closelog (void); extern void openlog (const char *__ident, int __option, int __facility); extern int setlogmask (int __mask) throw (); extern void syslog (int __pri, const char *__fmt, ...) __attribute__ ((__format__ (__printf__, 2, 3))); # 200 "/usr/include/sys/syslog.h" 3 4 extern void vsyslog (int __pri, const char *__fmt, __gnuc_va_list __ap) __attribute__ ((__format__ (__printf__, 2, 0))); # 1 "/usr/include/bits/syslog.h" 1 3 4 # 24 "/usr/include/bits/syslog.h" 3 4 extern void __syslog_chk (int __pri, int __flag, const char *__fmt, ...) __attribute__ ((__format__ (__printf__, 3, 4))); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void syslog (int __pri, const char *__fmt, ...) { __syslog_chk (__pri, 2 - 1, __fmt, __builtin_va_arg_pack ()); } extern void __vsyslog_chk (int __pri, int __flag, const char *__fmt, __gnuc_va_list __ap) __attribute__ ((__format__ (__printf__, 3, 0))); extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void vsyslog (int __pri, const char *__fmt, __gnuc_va_list __ap) { __vsyslog_chk (__pri, 2 - 1, __fmt, __ap); } # 208 "/usr/include/sys/syslog.h" 2 3 4 } # 1 "/usr/include/syslog.h" 2 3 4 # 44 "misc.hh" 2 # 51 "misc.hh" bool chopOff(string &domain); bool chopOffDotted(string &domain); bool endsOn(const string &domain, const string &suffix); bool dottedEndsOn(const string &domain, const string &suffix); string nowTime(); const string unquotify(const string &item); string humanDuration(time_t passed); bool stripDomainSuffix(string *qname, const string &domain); void stripLine(string &line); string getHostname(); string urlEncode(const string &text); int waitForData(int fd, int seconds, int useconds=0); int waitFor2Data(int fd1, int fd2, int seconds, int useconds, int* fd); int waitForRWData(int fd, bool waitForRead, int seconds, int useconds); uint16_t getShort(const unsigned char *p); uint16_t getShort(const char *p); uint32_t getLong(const unsigned char *p); uint32_t getLong(const char *p); uint32_t pdns_strtoui(const char *nptr, char **endptr, int base); int logFacilityToLOG(unsigned int facility); struct ServiceTuple { string host; uint16_t port; }; void parseService(const string &descr, ServiceTuple &st); template void stringtok (Container &container, string const &in, const char * const delimiters = " \t\n") { const string::size_type len = in.length(); string::size_type i = 0; while (i bool rfc1982LessThan(T a, T b) { return ((signed)(a - b)) < 0; } template void vstringtok (Container &container, string const &in, const char * const delimiters = " \t\n") { const string::size_type len = in.length(); string::size_type i = 0; while (i='A' && c<='Z') c+='a'-'A'; return c; } inline const string toLower(const string &upper) { string reply(upper); char c; for(unsigned int i = 0; i < reply.length(); i++) { c = dns_tolower(upper[i]); if( c != upper[i]) reply[i] = c; } return reply; } inline const string toLowerCanonic(const string &upper) { string reply(upper); if(!upper.empty()) { unsigned int i, limit= ( unsigned int ) reply.length(); char c; for(i = 0; i < limit ; i++) { c = dns_tolower(upper[i]); if(c != upper[i]) reply[i] = c; } if(upper[i-1]=='.') reply.resize(i-1); } return reply; } inline string toUpper( const string& s ) { string r(s); for( unsigned int i = 0; i < s.length(); i++ ) { r[i] = toupper( r[i] ); } return r; } inline double getTime() { struct timeval now; Utility::gettimeofday(&now,0); return now.tv_sec+now.tv_usec/1000000.0; } inline void unixDie(const string &why) { throw runtime_error(why+": "+strerror( # 293 "misc.hh" 3 4 (*__errno_location ()) # 293 "misc.hh" )); } string makeHexDump(const string& str); void shuffle(vector& rrs); void orderAndShuffle(vector& rrs); void normalizeTV(struct timeval& tv); const struct timeval operator+(const struct timeval& lhs, const struct timeval& rhs); const struct timeval operator-(const struct timeval& lhs, const struct timeval& rhs); inline float makeFloat(const struct timeval& tv) { return tv.tv_sec + tv.tv_usec/1000000.0f; } inline bool operator<(const struct timeval& lhs, const struct timeval& rhs) { return make_pair(lhs.tv_sec, lhs.tv_usec) < make_pair(rhs.tv_sec, rhs.tv_usec); } inline bool pdns_ilexicographical_compare(const std::string& a, const std::string& b) __attribute__((pure)); inline bool pdns_ilexicographical_compare(const std::string& a, const std::string& b) { const unsigned char *aPtr = (const unsigned char*)a.c_str(), *bPtr = (const unsigned char*)b.c_str(); const unsigned char *aEptr = aPtr + a.length(), *bEptr = bPtr + b.length(); while(aPtr != aEptr && bPtr != bEptr) { if ((*aPtr != *bPtr) && (dns_tolower(*aPtr) - dns_tolower(*bPtr))) return (dns_tolower(*aPtr) - dns_tolower(*bPtr)) < 0; aPtr++; bPtr++; } if(aPtr == aEptr && bPtr == bEptr) return false; return aPtr == aEptr; } inline bool pdns_iequals(const std::string& a, const std::string& b) __attribute__((pure)); inline bool pdns_iequals(const std::string& a, const std::string& b) { if (a.length() != b.length()) return false; const char *aPtr = a.c_str(), *bPtr = b.c_str(); const char *aEptr = aPtr + a.length(); while(aPtr != aEptr) { if((*aPtr != *bPtr) && (dns_tolower(*aPtr) != dns_tolower(*bPtr))) return false; aPtr++; bPtr++; } return true; } inline bool pdns_iequals_ch(const char a, const char b) __attribute__((pure)); inline bool pdns_iequals_ch(const char a, const char b) { if ((a != b) && (dns_tolower(a) != dns_tolower(b))) return false; return true; } class AtomicCounter { public: typedef unsigned long native_t; explicit AtomicCounter( native_t v = 0) : value_( v ) {} native_t operator++() { return atomic_exchange_and_add( &value_, +1 ) + 1; } native_t operator++(int) { return atomic_exchange_and_add( &value_, +1 ); } native_t operator+=(native_t val) { return atomic_exchange_and_add( &value_, val ); } native_t operator-=(native_t val) { return atomic_exchange_and_add( &value_, -val ); } native_t operator--() { return atomic_exchange_and_add( &value_, -1 ) - 1; } operator native_t() const { return atomic_exchange_and_add( &value_, 0); } AtomicCounter(AtomicCounter const &rhs) : value_(rhs) { } private: mutable native_t value_; static native_t atomic_exchange_and_add( native_t * pw, native_t dv ) { native_t r; __asm__ __volatile__ ( "lock\n\t" "xadd %1, %0": "+m"( *pw ), "=r"( r ): "1"( dv ): "memory", "cc" ); return r; } }; struct CIStringCompare: public std::binary_function { bool operator()(const string& a, const string& b) const { return pdns_ilexicographical_compare(a, b); } }; struct CIStringComparePOSIX { bool operator() (const std::string& lhs, const std::string& rhs) { std::string::const_iterator a,b; const std::locale &loc = std::locale("POSIX"); a=lhs.begin();b=rhs.begin(); while(a!=lhs.end()) { if (b==rhs.end() || std::tolower(*b,loc), pair, bool> { bool operator()(const pair& a, const pair& b) const { if(pdns_ilexicographical_compare(a.first, b.first)) return true; if(pdns_ilexicographical_compare(b.first, a.first)) return false; return a.second < b.second; } }; inline size_t pdns_ci_find(const string& haystack, const string& needle) { string::const_iterator it = std::search(haystack.begin(), haystack.end(), needle.begin(), needle.end(), pdns_iequals_ch); if (it == haystack.end()) { return string::npos; } else { return it - haystack.begin(); } } pair splitField(const string& inp, char sepa); inline bool isCanonical(const string& dom) { if(dom.empty()) return false; return dom[dom.size()-1]=='.'; } inline string toCanonic(const string& zone, const string& domain) { if(domain.length()==1 && domain[0]=='@') return zone; if(isCanonical(domain)) return domain; string ret=domain; ret.append(1,'.'); if(!zone.empty() && zone[0]!='.') ret.append(zone); return ret; } string stripDot(const string& dom); void seedRandom(const string& source); string makeRelative(const std::string& fqdn, const std::string& zone); string labelReverse(const std::string& qname); std::string dotConcat(const std::string& a, const std::string &b); int makeIPv6sockaddr(const std::string& addr, struct sockaddr_in6* ret); int makeIPv4sockaddr(const std::string& str, struct sockaddr_in* ret); int makeUNsockaddr(const std::string& path, struct sockaddr_un* ret); bool stringfgets(FILE* fp, std::string& line); template std::pair replacing_insert(Index& i,const typename Index::value_type& x) { std::pair res=i.insert(x); if(!res.second)res.second=i.replace(res.first,x); return res; } class Regex { public: Regex(const string &expr); ~Regex() { regfree(&d_preg); } bool match(const string &line) { return regexec(&d_preg,line.c_str(),0,0,0)==0; } private: regex_t d_preg; }; union ComboAddress; void addCMsgSrcAddr(struct msghdr* msgh, void* cmsgbuf, const ComboAddress* source); unsigned int getFilenumLimit(bool hardOrSoft=0); void setFilenumLimit(unsigned int lim); bool readFileIfThere(const char* fname, std::string* line); uint32_t burtle(const unsigned char* k, uint32_t lengh, uint32_t init); void setSocketTimestamps(int fd); # 34 "iputils.hh" 2 # 43 "iputils.hh" union ComboAddress { struct sockaddr_in sin4; struct sockaddr_in6 sin6; bool operator==(const ComboAddress& rhs) const { if(boost::tie(sin4.sin_family, sin4.sin_port) != boost::tie(rhs.sin4.sin_family, rhs.sin4.sin_port)) return false; if(sin4.sin_family == # 51 "iputils.hh" 3 4 2 # 51 "iputils.hh" ) return sin4.sin_addr.s_addr == rhs.sin4.sin_addr.s_addr; else return memcmp(&sin6.sin6_addr. # 54 "iputils.hh" 3 4 __in6_u.__u6_addr8 # 54 "iputils.hh" , &rhs.sin6.sin6_addr. # 54 "iputils.hh" 3 4 __in6_u.__u6_addr8 # 54 "iputils.hh" , 16)==0; } bool operator<(const ComboAddress& rhs) const { if(boost::tie(sin4.sin_family, sin4.sin_port) < boost::tie(rhs.sin4.sin_family, rhs.sin4.sin_port)) return true; if(boost::tie(sin4.sin_family, sin4.sin_port) > boost::tie(rhs.sin4.sin_family, rhs.sin4.sin_port)) return false; if(sin4.sin_family == # 64 "iputils.hh" 3 4 2 # 64 "iputils.hh" ) return sin4.sin_addr.s_addr < rhs.sin4.sin_addr.s_addr; else return memcmp(&sin6.sin6_addr. # 67 "iputils.hh" 3 4 __in6_u.__u6_addr8 # 67 "iputils.hh" , &rhs.sin6.sin6_addr. # 67 "iputils.hh" 3 4 __in6_u.__u6_addr8 # 67 "iputils.hh" , 16) < 0; } bool operator>(const ComboAddress& rhs) const { if(boost::tie(sin4.sin_family, sin4.sin_port) > boost::tie(rhs.sin4.sin_family, rhs.sin4.sin_port)) return true; if(boost::tie(sin4.sin_family, sin4.sin_port) < boost::tie(rhs.sin4.sin_family, rhs.sin4.sin_port)) return false; if(sin4.sin_family == # 77 "iputils.hh" 3 4 2 # 77 "iputils.hh" ) return sin4.sin_addr.s_addr > rhs.sin4.sin_addr.s_addr; else return memcmp(&sin6.sin6_addr. # 80 "iputils.hh" 3 4 __in6_u.__u6_addr8 # 80 "iputils.hh" , &rhs.sin6.sin6_addr. # 80 "iputils.hh" 3 4 __in6_u.__u6_addr8 # 80 "iputils.hh" , 16) > 0; } struct addressOnlyLessThan: public std::binary_function { bool operator()(const ComboAddress& a, const ComboAddress& b) const { if(a.sin4.sin_family < b.sin4.sin_family) return true; if(a.sin4.sin_family > b.sin4.sin_family) return false; if(a.sin4.sin_family == # 91 "iputils.hh" 3 4 2 # 91 "iputils.hh" ) return a.sin4.sin_addr.s_addr < b.sin4.sin_addr.s_addr; else return memcmp(&a.sin6.sin6_addr. # 94 "iputils.hh" 3 4 __in6_u.__u6_addr8 # 94 "iputils.hh" , &b.sin6.sin6_addr. # 94 "iputils.hh" 3 4 __in6_u.__u6_addr8 # 94 "iputils.hh" , 16) < 0; } }; socklen_t getSocklen() const { if(sin4.sin_family == # 100 "iputils.hh" 3 4 2 # 100 "iputils.hh" ) return sizeof(sin4); else return sizeof(sin6); } ComboAddress() { sin4.sin_family= # 108 "iputils.hh" 3 4 2 # 108 "iputils.hh" ; sin4.sin_addr.s_addr=0; sin4.sin_port=0; } ComboAddress(const struct sockaddr *sa, socklen_t salen) { setSockaddr(sa, salen); }; ComboAddress(const struct sockaddr_in6 *sa) { setSockaddr((const struct sockaddr*)sa, sizeof(struct sockaddr_in6)); }; ComboAddress(const struct sockaddr_in *sa) { setSockaddr((const struct sockaddr*)sa, sizeof(struct sockaddr_in)); }; void setSockaddr(const struct sockaddr *sa, socklen_t salen) { if (salen > sizeof(struct sockaddr_in6)) throw PDNSException("ComboAddress can't handle other than sockaddr_in or sockaddr_in6"); memcpy(this, sa, salen); } explicit ComboAddress(const string& str, uint16_t port=0) { memset(&sin6, 0, sizeof(sin6)); sin4.sin_family = # 134 "iputils.hh" 3 4 2 # 134 "iputils.hh" ; sin4.sin_port = 0; if(makeIPv4sockaddr(str, &sin4)) { sin6.sin6_family = # 137 "iputils.hh" 3 4 10 # 137 "iputils.hh" ; if(makeIPv6sockaddr(str, &sin6) < 0) throw PDNSException("Unable to convert presentation address '"+ str +"'"); } if(!sin4.sin_port) sin4.sin_port= # 143 "iputils.hh" 3 4 (__extension__ ({ unsigned short int __v, __x = (unsigned short int) ( # 143 "iputils.hh" port # 143 "iputils.hh" 3 4 ); if (__builtin_constant_p (__x)) __v = ((unsigned short int) ((((__x) >> 8) & 0xff) | (((__x) & 0xff) << 8))); else __asm__ ("rorw $8, %w0" : "=r" (__v) : "0" (__x) : "cc"); __v; })) # 143 "iputils.hh" ; } bool isMappedIPv4() const { if(sin4.sin_family!= # 148 "iputils.hh" 3 4 10 # 148 "iputils.hh" ) return false; int n=0; const unsigned char*ptr = (unsigned char*) &sin6.sin6_addr. # 152 "iputils.hh" 3 4 __in6_u.__u6_addr8 # 152 "iputils.hh" ; for(n=0; n < 10; ++n) if(ptr[n]) return false; for(; n < 12; ++n) if(ptr[n]!=0xff) return false; return true; } ComboAddress mapToIPv4() const { if(!isMappedIPv4()) throw PDNSException("ComboAddress can't map non-mapped IPv6 address back to IPv4"); ComboAddress ret; ret.sin4.sin_family= # 169 "iputils.hh" 3 4 2 # 169 "iputils.hh" ; ret.sin4.sin_port=sin4.sin_port; const unsigned char*ptr = (unsigned char*) &sin6.sin6_addr. # 172 "iputils.hh" 3 4 __in6_u.__u6_addr8 # 172 "iputils.hh" ; ptr+=12; memcpy(&ret.sin4.sin_addr.s_addr, ptr, 4); return ret; } string toString() const { char host[1024]; getnameinfo((struct sockaddr*) this, getSocklen(), host, sizeof(host),0, 0, # 181 "iputils.hh" 3 4 1 # 181 "iputils.hh" ); return host; } string toStringWithPort() const { if(sin4.sin_family== # 188 "iputils.hh" 3 4 2 # 188 "iputils.hh" ) return toString() + ":" + boost::lexical_cast( # 189 "iputils.hh" 3 4 (__extension__ ({ unsigned short int __v, __x = (unsigned short int) ( # 189 "iputils.hh" sin4.sin_port # 189 "iputils.hh" 3 4 ); if (__builtin_constant_p (__x)) __v = ((unsigned short int) ((((__x) >> 8) & 0xff) | (((__x) & 0xff) << 8))); else __asm__ ("rorw $8, %w0" : "=r" (__v) : "0" (__x) : "cc"); __v; })) # 189 "iputils.hh" ); else return "["+toString() + "]:" + boost::lexical_cast( # 191 "iputils.hh" 3 4 (__extension__ ({ unsigned short int __v, __x = (unsigned short int) ( # 191 "iputils.hh" sin4.sin_port # 191 "iputils.hh" 3 4 ); if (__builtin_constant_p (__x)) __v = ((unsigned short int) ((((__x) >> 8) & 0xff) | (((__x) & 0xff) << 8))); else __asm__ ("rorw $8, %w0" : "=r" (__v) : "0" (__x) : "cc"); __v; })) # 191 "iputils.hh" ); } }; class NetmaskException: public PDNSException { public: NetmaskException(const string &a) : PDNSException(a) {} }; inline ComboAddress makeComboAddress(const string& str) { ComboAddress address; address.sin4.sin_family= # 205 "iputils.hh" 3 4 2 # 205 "iputils.hh" ; if(Utility::inet_pton( # 206 "iputils.hh" 3 4 2 # 206 "iputils.hh" , str.c_str(), &address.sin4.sin_addr) <= 0) { address.sin4.sin_family= # 207 "iputils.hh" 3 4 10 # 207 "iputils.hh" ; if(makeIPv6sockaddr(str, &address.sin6) < 0) throw NetmaskException("Unable to convert '"+str+"' to a netmask"); } return address; } class Netmask { public: Netmask() { d_network.sin4.sin_family=0; } Netmask(const ComboAddress& network, uint8_t bits=0xff) { d_network = network; if(bits == 0xff) bits = (network.sin4.sin_family == # 229 "iputils.hh" 3 4 2 # 229 "iputils.hh" ) ? 32 : 128; d_bits = bits; if(d_bits<32) d_mask=~(0xFFFFFFFF>>d_bits); else d_mask=0xFFFFFFFF; } Netmask(const string &mask) { pair split=splitField(mask,'/'); d_network=makeComboAddress(split.first); if(!split.second.empty()) { d_bits = lexical_cast(split.second); if(d_bits<32) d_mask=~(0xFFFFFFFF>>d_bits); else d_mask=0xFFFFFFFF; } else if(d_network.sin4.sin_family== # 251 "iputils.hh" 3 4 2 # 251 "iputils.hh" ) { d_bits = 32; d_mask = 0xFFFFFFFF; } else { d_bits=128; d_mask=0; } } bool match(const ComboAddress& ip) const { return match(&ip); } bool match(const ComboAddress *ip) const { if(d_network.sin4.sin_family != ip->sin4.sin_family) { return false; } if(d_network.sin4.sin_family == # 272 "iputils.hh" 3 4 2 # 272 "iputils.hh" ) { return match4( # 273 "iputils.hh" 3 4 __bswap_32 ( # 273 "iputils.hh" (unsigned int)ip->sin4.sin_addr.s_addr # 273 "iputils.hh" 3 4 ) # 273 "iputils.hh" ); } if(d_network.sin6.sin6_family == # 275 "iputils.hh" 3 4 10 # 275 "iputils.hh" ) { uint8_t bytes=d_bits/8, n; const uint8_t *us=(const uint8_t*) &d_network.sin6.sin6_addr. # 277 "iputils.hh" 3 4 __in6_u.__u6_addr8 # 277 "iputils.hh" ; const uint8_t *them=(const uint8_t*) &ip->sin6.sin6_addr. # 278 "iputils.hh" 3 4 __in6_u.__u6_addr8 # 278 "iputils.hh" ; for(n=0; n < bytes; ++n) { if(us[n]!=them[n]) { return false; } } uint8_t bits= d_bits % 8; uint8_t mask= ~(0xFF>>bits); return((us[n] & mask) == (them[n] & mask)); } return false; } bool match(const string &ip) const { ComboAddress address=makeComboAddress(ip); return match(&address); } bool match4(uint32_t ip) const { return (ip & d_mask) == ( # 304 "iputils.hh" 3 4 __bswap_32 ( # 304 "iputils.hh" d_network.sin4.sin_addr.s_addr # 304 "iputils.hh" 3 4 ) # 304 "iputils.hh" & d_mask); } string toString() const { return d_network.toString()+"/"+boost::lexical_cast((unsigned int)d_bits); } string toStringNoMask() const { return d_network.toString(); } const ComboAddress& getNetwork() const { return d_network; } int getBits() const { return d_bits; } bool isIpv6() const { return d_network.sin6.sin6_family == # 326 "iputils.hh" 3 4 10 # 326 "iputils.hh" ; } bool isIpv4() const { return d_network.sin4.sin_family == # 330 "iputils.hh" 3 4 2 # 330 "iputils.hh" ; } private: ComboAddress d_network; uint32_t d_mask; uint8_t d_bits; }; class NetmaskGroup { public: bool match(const ComboAddress *ip) { for(container_t::const_iterator i=d_masks.begin();i!=d_masks.end();++i) if(i->match(ip) || (ip->isMappedIPv4() && i->match(ip->mapToIPv4()) )) return true; return false; } bool match(const ComboAddress& ip) { return match(&ip); } void addMask(const string &ip) { d_masks.push_back(Netmask(ip)); } void clear() { d_masks.clear(); } bool empty() { return d_masks.empty(); } unsigned int size() { return (unsigned int)d_masks.size(); } string toString() const { ostringstream str; for(container_t::const_iterator iter = d_masks.begin(); iter != d_masks.end(); ++iter) { if(iter != d_masks.begin()) str <<", "; str<toString(); } return str.str(); } void toStringVector(vector* vec) const { for(container_t::const_iterator iter = d_masks.begin(); iter != d_masks.end(); ++iter) { vec->push_back(iter->toString()); } } void toMasks(const string &ips) { vector parts; stringtok(parts, ips, ", \t"); for (vector::const_iterator iter = parts.begin(); iter != parts.end(); ++iter) addMask(*iter); } private: typedef vector container_t; container_t d_masks; }; struct SComboAddress { SComboAddress(const ComboAddress& orig) : ca(orig) {} ComboAddress ca; bool operator<(const SComboAddress& rhs) const { return ComboAddress::addressOnlyLessThan()(ca, rhs.ca); } operator const ComboAddress&() { return ca; } }; int SSocket(int family, int type, int flags); int SConnect(int sockfd, const ComboAddress& remote); int SBind(int sockfd, const ComboAddress& local); int SAccept(int sockfd, ComboAddress& remote); int SListen(int sockfd, int limit); int SSetsockopt(int sockfd, int level, int opname, int value); bool IsAnyAddress(const ComboAddress& addr); bool HarvestDestinationAddress(struct msghdr* msgh, ComboAddress* destination); bool HarvestTimestamp(struct msghdr* msgh, struct timeval* tv); void fillMSGHdr(struct msghdr* msgh, struct iovec* iov, char* cbuf, size_t cbufsize, char* data, size_t datalen, ComboAddress* addr); # 8 "sstuff.hh" 2 # 1 "/usr/include/errno.h" 1 3 4 # 9 "sstuff.hh" 2 # 1 "/usr/include/fcntl.h" 1 3 4 # 28 "/usr/include/fcntl.h" 3 4 # 28 "/usr/include/fcntl.h" 3 4 extern "C" { # 1 "/usr/include/bits/fcntl.h" 1 3 4 # 35 "/usr/include/bits/fcntl.h" 3 4 struct flock { short int l_type; short int l_whence; __off_t l_start; __off_t l_len; __pid_t l_pid; }; struct flock64 { short int l_type; short int l_whence; __off64_t l_start; __off64_t l_len; __pid_t l_pid; }; # 1 "/usr/include/bits/fcntl-linux.h" 1 3 4 # 38 "/usr/include/bits/fcntl-linux.h" 3 4 # 1 "/usr/include/bits/uio.h" 1 3 4 # 39 "/usr/include/bits/fcntl-linux.h" 2 3 4 # 258 "/usr/include/bits/fcntl-linux.h" 3 4 enum __pid_type { F_OWNER_TID = 0, F_OWNER_PID, F_OWNER_PGRP, F_OWNER_GID = F_OWNER_PGRP }; struct f_owner_ex { enum __pid_type type; __pid_t pid; }; # 333 "/usr/include/bits/fcntl-linux.h" 3 4 struct file_handle { unsigned int handle_bytes; int handle_type; unsigned char f_handle[0]; }; extern "C" { extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) throw (); extern int sync_file_range (int __fd, __off64_t __offset, __off64_t __count, unsigned int __flags); extern ssize_t vmsplice (int __fdout, const struct iovec *__iov, size_t __count, unsigned int __flags); extern ssize_t splice (int __fdin, __off64_t *__offin, int __fdout, __off64_t *__offout, size_t __len, unsigned int __flags); extern ssize_t tee (int __fdin, int __fdout, size_t __len, unsigned int __flags); extern int fallocate (int __fd, int __mode, __off_t __offset, __off_t __len); # 400 "/usr/include/bits/fcntl-linux.h" 3 4 extern int fallocate64 (int __fd, int __mode, __off64_t __offset, __off64_t __len); extern int name_to_handle_at (int __dfd, const char *__name, struct file_handle *__handle, int *__mnt_id, int __flags) throw (); extern int open_by_handle_at (int __mountdirfd, struct file_handle *__handle, int __flags); } # 61 "/usr/include/bits/fcntl.h" 2 3 4 # 36 "/usr/include/fcntl.h" 2 3 4 # 68 "/usr/include/fcntl.h" 3 4 # 1 "/usr/include/bits/stat.h" 1 3 4 # 69 "/usr/include/fcntl.h" 2 3 4 # 160 "/usr/include/fcntl.h" 3 4 extern int fcntl (int __fd, int __cmd, ...); # 169 "/usr/include/fcntl.h" 3 4 extern int open (const char *__file, int __oflag, ...) __attribute__ ((__nonnull__ (1))); # 179 "/usr/include/fcntl.h" 3 4 extern int open64 (const char *__file, int __oflag, ...) __attribute__ ((__nonnull__ (1))); # 193 "/usr/include/fcntl.h" 3 4 extern int openat (int __fd, const char *__file, int __oflag, ...) __attribute__ ((__nonnull__ (2))); # 204 "/usr/include/fcntl.h" 3 4 extern int openat64 (int __fd, const char *__file, int __oflag, ...) __attribute__ ((__nonnull__ (2))); # 215 "/usr/include/fcntl.h" 3 4 extern int creat (const char *__file, mode_t __mode) __attribute__ ((__nonnull__ (1))); # 225 "/usr/include/fcntl.h" 3 4 extern int creat64 (const char *__file, mode_t __mode) __attribute__ ((__nonnull__ (1))); # 261 "/usr/include/fcntl.h" 3 4 extern int posix_fadvise (int __fd, off_t __offset, off_t __len, int __advise) throw (); # 273 "/usr/include/fcntl.h" 3 4 extern int posix_fadvise64 (int __fd, off64_t __offset, off64_t __len, int __advise) throw (); # 283 "/usr/include/fcntl.h" 3 4 extern int posix_fallocate (int __fd, off_t __offset, off_t __len); # 294 "/usr/include/fcntl.h" 3 4 extern int posix_fallocate64 (int __fd, off64_t __offset, off64_t __len); # 1 "/usr/include/bits/fcntl2.h" 1 3 4 # 26 "/usr/include/bits/fcntl2.h" 3 4 extern int __open_2 (const char *__path, int __oflag) __attribute__ ((__nonnull__ (1))); extern int __open_alias (const char *__path, int __oflag, ...) __asm__ ("" "open") __attribute__ ((__nonnull__ (1))); extern void __open_too_many_args (void) __attribute__((__error__ ("open can be called either with 2 or 3 arguments, not more"))) ; extern void __open_missing_mode (void) __attribute__((__error__ ("open with O_CREAT in second argument needs 3 arguments"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int open (const char *__path, int __oflag, ...) { if (__builtin_va_arg_pack_len () > 1) __open_too_many_args (); if (__builtin_constant_p (__oflag)) { if ((__oflag & 0100) != 0 && __builtin_va_arg_pack_len () < 1) { __open_missing_mode (); return __open_2 (__path, __oflag); } return __open_alias (__path, __oflag, __builtin_va_arg_pack ()); } if (__builtin_va_arg_pack_len () < 1) return __open_2 (__path, __oflag); return __open_alias (__path, __oflag, __builtin_va_arg_pack ()); } extern int __open64_2 (const char *__path, int __oflag) __attribute__ ((__nonnull__ (1))); extern int __open64_alias (const char *__path, int __oflag, ...) __asm__ ("" "open64") __attribute__ ((__nonnull__ (1))); extern void __open64_too_many_args (void) __attribute__((__error__ ("open64 can be called either with 2 or 3 arguments, not more"))) ; extern void __open64_missing_mode (void) __attribute__((__error__ ("open64 with O_CREAT in second argument needs 3 arguments"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int open64 (const char *__path, int __oflag, ...) { if (__builtin_va_arg_pack_len () > 1) __open64_too_many_args (); if (__builtin_constant_p (__oflag)) { if ((__oflag & 0100) != 0 && __builtin_va_arg_pack_len () < 1) { __open64_missing_mode (); return __open64_2 (__path, __oflag); } return __open64_alias (__path, __oflag, __builtin_va_arg_pack ()); } if (__builtin_va_arg_pack_len () < 1) return __open64_2 (__path, __oflag); return __open64_alias (__path, __oflag, __builtin_va_arg_pack ()); } extern int __openat_2 (int __fd, const char *__path, int __oflag) __attribute__ ((__nonnull__ (2))); extern int __openat_alias (int __fd, const char *__path, int __oflag, ...) __asm__ ("" "openat") __attribute__ ((__nonnull__ (2))); # 111 "/usr/include/bits/fcntl2.h" 3 4 extern void __openat_too_many_args (void) __attribute__((__error__ ("openat can be called either with 3 or 4 arguments, not more"))) ; extern void __openat_missing_mode (void) __attribute__((__error__ ("openat with O_CREAT in third argument needs 4 arguments"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int openat (int __fd, const char *__path, int __oflag, ...) { if (__builtin_va_arg_pack_len () > 1) __openat_too_many_args (); if (__builtin_constant_p (__oflag)) { if ((__oflag & 0100) != 0 && __builtin_va_arg_pack_len () < 1) { __openat_missing_mode (); return __openat_2 (__fd, __path, __oflag); } return __openat_alias (__fd, __path, __oflag, __builtin_va_arg_pack ()); } if (__builtin_va_arg_pack_len () < 1) return __openat_2 (__fd, __path, __oflag); return __openat_alias (__fd, __path, __oflag, __builtin_va_arg_pack ()); } extern int __openat64_2 (int __fd, const char *__path, int __oflag) __attribute__ ((__nonnull__ (2))); extern int __openat64_alias (int __fd, const char *__path, int __oflag, ...) __asm__ ("" "openat64") __attribute__ ((__nonnull__ (2))); extern void __openat64_too_many_args (void) __attribute__((__error__ ("openat64 can be called either with 3 or 4 arguments, not more"))) ; extern void __openat64_missing_mode (void) __attribute__((__error__ ("openat64 with O_CREAT in third argument needs 4 arguments"))) ; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int openat64 (int __fd, const char *__path, int __oflag, ...) { if (__builtin_va_arg_pack_len () > 1) __openat64_too_many_args (); if (__builtin_constant_p (__oflag)) { if ((__oflag & 0100) != 0 && __builtin_va_arg_pack_len () < 1) { __openat64_missing_mode (); return __openat64_2 (__fd, __path, __oflag); } return __openat64_alias (__fd, __path, __oflag, __builtin_va_arg_pack ()); } if (__builtin_va_arg_pack_len () < 1) return __openat64_2 (__fd, __path, __oflag); return __openat64_alias (__fd, __path, __oflag, __builtin_va_arg_pack ()); } # 303 "/usr/include/fcntl.h" 2 3 4 } # 16 "sstuff.hh" 2 # 1 "/usr/include/c++/5.0.0/csignal" 1 3 # 39 "/usr/include/c++/5.0.0/csignal" 3 # 40 "/usr/include/c++/5.0.0/csignal" 3 # 50 "/usr/include/c++/5.0.0/csignal" 3 namespace std { using ::sig_atomic_t; using ::signal; using ::raise; } # 20 "sstuff.hh" 2 # 24 "sstuff.hh" class NetworkError : public runtime_error { public: NetworkError(const string& why="Network Error") : runtime_error(why.c_str()) {} NetworkError(const char *why="Network Error") : runtime_error(why) {} }; typedef int ProtocolType; class Socket : public boost::noncopyable { Socket(int fd) { d_socket = fd; d_buflen=4096; d_buffer=new char[d_buflen]; } public: Socket(int af, int st, ProtocolType pt=0) { if((d_socket=(int)socket(af,st, pt))<0) throw NetworkError(strerror( # 51 "sstuff.hh" 3 4 (*__errno_location ()) # 51 "sstuff.hh" )); Utility::setCloseOnExec(d_socket); d_buflen=4096; d_buffer=new char[d_buflen]; } ~Socket() { Utility::closesocket(d_socket); delete[] d_buffer; } Socket *accept() { struct sockaddr_in remote; socklen_t remlen=sizeof(remote); memset(&remote, 0, sizeof(remote)); int s=(int)::accept(d_socket,(sockaddr *)&remote, &remlen); if(s<0) { if( # 72 "sstuff.hh" 3 4 (*__errno_location ()) # 72 "sstuff.hh" == # 72 "sstuff.hh" 3 4 11 # 72 "sstuff.hh" ) return 0; throw NetworkError("Accepting a connection: "+string(strerror( # 75 "sstuff.hh" 3 4 (*__errno_location ()) # 75 "sstuff.hh" ))); } return new Socket(s); } bool getRemote(ComboAddress &remote) { socklen_t remotelen=sizeof(remote); return (getpeername(d_socket, (struct sockaddr *)&remote, &remotelen) >= 0); } bool acl(NetmaskGroup &ng) { ComboAddress remote; if (getRemote(remote)) return ng.match((ComboAddress *) &remote); return false; } void setNonBlocking() { Utility::setNonBlocking(d_socket); } void setBlocking() { Utility::setBlocking(d_socket); } void setReuseAddr() { int tmp = 1; if (setsockopt(d_socket, # 111 "sstuff.hh" 3 4 1 # 111 "sstuff.hh" , # 111 "sstuff.hh" 3 4 2 # 111 "sstuff.hh" , (char*)&tmp, static_cast(sizeof tmp))<0) throw NetworkError(string("Setsockopt failed: ")+strerror( # 112 "sstuff.hh" 3 4 (*__errno_location ()) # 112 "sstuff.hh" )); } void bind(const ComboAddress &local) { int tmp=1; if(setsockopt(d_socket, # 119 "sstuff.hh" 3 4 1 # 119 "sstuff.hh" , # 119 "sstuff.hh" 3 4 2 # 119 "sstuff.hh" ,(char*)&tmp,sizeof tmp)<0) throw NetworkError(string("Setsockopt failed: ")+strerror( # 120 "sstuff.hh" 3 4 (*__errno_location ()) # 120 "sstuff.hh" )); if(::bind(d_socket,(struct sockaddr *)&local, local.getSocklen())<0) throw NetworkError(strerror( # 123 "sstuff.hh" 3 4 (*__errno_location ()) # 123 "sstuff.hh" )); } # 140 "sstuff.hh" void connect(const ComboAddress &ep) { if(::connect(d_socket,(struct sockaddr *)&ep, ep.getSocklen()) < 0 && # 142 "sstuff.hh" 3 4 (*__errno_location ()) # 142 "sstuff.hh" != # 142 "sstuff.hh" 3 4 115 # 142 "sstuff.hh" ) throw NetworkError(strerror( # 143 "sstuff.hh" 3 4 (*__errno_location ()) # 143 "sstuff.hh" )); } void recvFrom(string &dgram, ComboAddress &ep) { socklen_t remlen=sizeof(ep); int bytes; if((bytes=recvfrom(d_socket, d_buffer, d_buflen, 0, (sockaddr *)&ep , &remlen)) <0) throw NetworkError(strerror( # 156 "sstuff.hh" 3 4 (*__errno_location ()) # 156 "sstuff.hh" )); dgram.assign(d_buffer,bytes); } bool recvFromAsync(string &dgram, ComboAddress &ep) { struct sockaddr_in remote; socklen_t remlen=sizeof(remote); int bytes; if((bytes=recvfrom(d_socket, d_buffer, d_buflen, 0, (sockaddr *)&remote, &remlen))<0) { if( # 167 "sstuff.hh" 3 4 (*__errno_location ()) # 167 "sstuff.hh" != # 167 "sstuff.hh" 3 4 11 # 167 "sstuff.hh" ) { throw NetworkError(strerror( # 168 "sstuff.hh" 3 4 (*__errno_location ()) # 168 "sstuff.hh" )); } else { return false; } } dgram.assign(d_buffer,bytes); return true; } void sendTo(const char* msg, unsigned int len, const ComboAddress &ep) { if(sendto(d_socket, msg, len, 0, (sockaddr *)&ep, ep.getSocklen())<0) throw NetworkError(strerror( # 183 "sstuff.hh" 3 4 (*__errno_location ()) # 183 "sstuff.hh" )); } void sendTo(const string &dgram, const ComboAddress &ep) { sendTo(dgram.c_str(), dgram.length(), ep); } void writen(const string &data) { if(data.empty()) return; int toWrite=(int)data.length(); int res; const char *ptr=data.c_str(); do { res=::send(d_socket, ptr, toWrite, 0); if(res<0) throw NetworkError("Writing to a socket: "+string(strerror( # 208 "sstuff.hh" 3 4 (*__errno_location ()) # 208 "sstuff.hh" ))); if(!res) throw NetworkError("EOF on socket"); toWrite-=res; ptr+=res; }while(toWrite); } unsigned int tryWrite(const char *ptr, int toWrite) { int res; res=::send(d_socket,ptr,toWrite,0); if(res==0) throw NetworkError("EOF on writing to a socket"); if(res>0) return res; if( # 232 "sstuff.hh" 3 4 (*__errno_location ()) # 232 "sstuff.hh" == # 232 "sstuff.hh" 3 4 11 # 232 "sstuff.hh" ) return 0; throw NetworkError("Writing to a socket: "+string(strerror( # 235 "sstuff.hh" 3 4 (*__errno_location ()) # 235 "sstuff.hh" ))); } unsigned int write(const char *ptr, int toWrite) { int res; res=::send(d_socket,ptr,toWrite,0); if(res<0) { throw NetworkError("Writing to a socket: "+string(strerror( # 245 "sstuff.hh" 3 4 (*__errno_location ()) # 245 "sstuff.hh" ))); } return res; } void writenWithTimeout(const void *buffer, unsigned int n, int timeout) { unsigned int bytes=n; const char *ptr = (char*)buffer; int ret; while(bytes) { ret=::write(d_socket, ptr, bytes); if(ret < 0) { if( # 258 "sstuff.hh" 3 4 (*__errno_location ()) # 258 "sstuff.hh" == # 258 "sstuff.hh" 3 4 11 # 258 "sstuff.hh" ) { ret=waitForRWData(d_socket, false, timeout, 0); if(ret < 0) throw NetworkError("Waiting for data write"); if(!ret) throw NetworkError("Timeout writing data"); continue; } else throw NetworkError("Writing data: "+stringerror()); } if(!ret) { throw NetworkError("Did not fulfill TCP write due to EOF"); } ptr += ret; bytes -= ret; } } int getChar() { char c; int res=::recv(d_socket,&c,1,0); if(res) return c; return -1; } void getline(string &data) { data=""; int c; while((c=getChar())!=-1) { data+=(char)c; if(c=='\n') break; } } void read(string &data) { int res=::recv(d_socket,d_buffer,d_buflen,0); if(res<0) throw NetworkError("Reading from a socket: "+string(strerror( # 305 "sstuff.hh" 3 4 (*__errno_location ()) # 305 "sstuff.hh" ))); data.assign(d_buffer,res); } int read(char *buffer, int bytes) { int res=::recv(d_socket,buffer,bytes,0); if(res<0) throw NetworkError("Reading from a socket: "+string(strerror( # 314 "sstuff.hh" 3 4 (*__errno_location ()) # 314 "sstuff.hh" ))); return res; } int readWithTimeout(char* buffer, int n, int timeout) { int err = waitForRWData(d_socket, true, timeout, 0); if(err == 0) throw NetworkError("timeout reading"); if(err < 0) throw NetworkError("nonblocking read failed: "+string(strerror( # 325 "sstuff.hh" 3 4 (*__errno_location ()) # 325 "sstuff.hh" ))); return read(buffer, n); } void listen(unsigned int length=10) { if(::listen(d_socket,length)<0) throw NetworkError("Setting socket to listen: "+string(strerror( # 334 "sstuff.hh" 3 4 (*__errno_location ()) # 334 "sstuff.hh" ))); } int getHandle() const { return d_socket; } private: int d_socket; char *d_buffer; int d_buflen; }; # 34 "webserver.hh" 2 class WebServer; class HttpRequest : public YaHTTP::Request { public: HttpRequest() : YaHTTP::Request(), accept_json(false), accept_html(false), complete(false) { }; bool accept_json; bool accept_html; bool complete; void json(rapidjson::Document& document); bool compareAuthorization(const string &expected_password); bool compareHeader(const string &header_name, const string &expected_value); }; class HttpResponse: public YaHTTP::Response { public: HttpResponse() : YaHTTP::Response() { }; HttpResponse(const YaHTTP::Response &resp) : YaHTTP::Response(resp) { }; void setBody(rapidjson::Document& document); }; class HttpException { public: HttpException(int status) : d_response() { d_response.status = status; }; HttpResponse response() { return d_response; } protected: HttpResponse d_response; }; class HttpBadRequestException : public HttpException { public: HttpBadRequestException() : HttpException(400) { }; }; class HttpUnauthorizedException : public HttpException { public: HttpUnauthorizedException() : HttpException(401) { d_response.headers["WWW-Authenticate"] = "Basic realm=\"PowerDNS\""; } }; class HttpNotFoundException : public HttpException { public: HttpNotFoundException() : HttpException(404) { }; }; class HttpMethodNotAllowedException : public HttpException { public: HttpMethodNotAllowedException() : HttpException(405) { }; }; class HttpInternalServerErrorException : public HttpException { public: HttpInternalServerErrorException() : HttpException(500) { }; }; class ApiException : public runtime_error { public: ApiException(const string& what) : runtime_error(what) { } }; class Server { public: Server(const string &localaddress, int port) : d_local(localaddress.empty() ? "0.0.0.0" : localaddress, port), d_server_socket(d_local.sin4.sin_family, # 115 "webserver.hh" 3 4 SOCK_STREAM # 115 "webserver.hh" , 0) { d_server_socket.setReuseAddr(); d_server_socket.bind(d_local); d_server_socket.listen(); } ComboAddress d_local; Socket *accept() { return d_server_socket.accept(); } protected: Socket d_server_socket; }; class WebServer : public boost::noncopyable { public: WebServer(const string &listenaddress, int port); void bind(); void go(); void serveConnection(Socket *client); HttpResponse handleRequest(HttpRequest request); typedef boost::function HandlerFunction; void registerApiHandler(const string& url, HandlerFunction handler); void registerWebHandler(const string& url, HandlerFunction handler); protected: void registerBareHandler(const string& url, HandlerFunction handler); virtual Server* createServer() { return new Server(d_listenaddress, d_port); } string d_listenaddress; int d_port; string d_password; Server* d_server; }; # 26 "ws-recursor.hh" 2 class HttpRequest; class HttpResponse; class AsyncServer : public Server { public: AsyncServer(const string &localaddress, int port) : Server(localaddress, port) { }; friend void AsyncServerNewConnectionMT(void *p); typedef boost::function< void(Socket*) > newconnectioncb_t; void asyncWaitForConnections(FDMultiplexer* fdm, const newconnectioncb_t& callback); private: void newConnection(); newconnectioncb_t d_asyncNewConnectionCallback; }; class AsyncWebServer : public WebServer { public: AsyncWebServer(FDMultiplexer* fdm, const string &listenaddress, int port) : WebServer(listenaddress, port), d_fdm(fdm) { }; void go(); private: FDMultiplexer* d_fdm; void serveConnection(Socket *socket); protected: virtual Server* createServer() { return new AsyncServer(d_listenaddress, d_port); }; }; class RecursorWebServer : public boost::noncopyable { public: explicit RecursorWebServer(FDMultiplexer* fdm); void jsonstat(HttpRequest* req, HttpResponse *resp); private: AsyncWebServer* d_ws; }; # 28 "pdns_recursor.cc" 2 # 1 "recpacketcache.hh" 1 # 15 "recpacketcache.hh" using namespace ::boost::multi_index; class RecursorPacketCache { public: RecursorPacketCache(); bool getResponsePacket(const std::string& queryPacket, time_t now, std::string* responsePacket, uint32_t* age); void insertResponsePacket(const std::string& responsePacket, time_t now, uint32_t ttd); void doPruneTo(unsigned int maxSize=250000); int doWipePacketCache(const string& name, uint16_t qtype=0xffff); void prune(); uint64_t d_hits, d_misses; uint64_t size(); uint64_t bytes(); private: struct Entry { mutable uint32_t d_ttd; mutable uint32_t d_creation; mutable std::string d_packet; inline bool operator<(const struct Entry& rhs) const; uint32_t getTTD() const { return d_ttd; } }; typedef multi_index_container< Entry, indexed_by < ordered_unique >, sequenced<> > > packetCache_t; packetCache_t d_packetCache; }; inline bool RecursorPacketCache::Entry::operator<(const struct RecursorPacketCache::Entry &rhs) const { const struct dnsheader* dh=(const struct dnsheader*) d_packet.c_str(), *rhsdh=(const struct dnsheader*)rhs.d_packet.c_str(); if(boost::make_tuple(dh->opcode, dh->rd, dh->qdcount) < boost::make_tuple(rhsdh->opcode, rhsdh->rd, rhsdh->qdcount)) return true; return dnspacketLessThan(d_packet, rhs.d_packet); } # 30 "pdns_recursor.cc" 2 # 1 "dns_random.hh" 1 void dns_random_init(const char data[16]); unsigned int dns_random(unsigned int n); # 32 "pdns_recursor.cc" 2 # 1 "/usr/include/errno.h" 1 3 4 # 34 "pdns_recursor.cc" 2 # 1 "recursor_cache.hh" 1 # 17 "recursor_cache.hh" # 1 "/usr/include/boost/version.hpp" 1 3 4 # 18 "recursor_cache.hh" 2 using namespace ::boost::multi_index; class MemRecursorCache : public boost::noncopyable { public: MemRecursorCache() : d_cachecachevalid(false) { cacheHits = cacheMisses = 0; } unsigned int size(); unsigned int bytes(); int get(time_t, const string &qname, const QType& qt, set* res); int getDirect(time_t now, const char* qname, const QType& qt, uint32_t ttd[10], char* data[10], uint16_t len[10]); void replace(time_t, const string &qname, const QType& qt, const set& content, bool auth); void doPrune(void); void doSlash(int perc); uint64_t doDump(int fd); uint64_t doDumpNSSpeeds(int fd); int doWipeCache(const string& name, uint16_t qtype=0xffff); bool doAgeCache(time_t now, const string& name, uint16_t qtype, int32_t newTTL); uint64_t cacheHits, cacheMisses; private: struct StoredRecord { mutable uint32_t d_ttd; string d_string; bool operator<(const StoredRecord& rhs) const { return d_string < rhs.d_string; } unsigned int size() const { return sizeof(*this) + d_string.size(); } }; struct CacheEntry { CacheEntry(const boost::tuple& key, const vector& records, bool auth) : d_qname(key.get<0>()), d_qtype(key.get<1>()), d_auth(auth), d_records(records) {} typedef vector records_t; uint32_t getTTD() const { if(d_records.size()==1) return d_records.begin()->d_ttd; uint32_t earliest=std::numeric_limits::max(); for(records_t::const_iterator i=d_records.begin(); i != d_records.end(); ++i) earliest=min(earliest, i->d_ttd); return earliest; } string d_qname; uint16_t d_qtype; bool d_auth; records_t d_records; }; typedef multi_index_container< CacheEntry, indexed_by < ordered_unique< composite_key< CacheEntry, member, member >, composite_key_compare > >, sequenced<> > > cache_t; cache_t d_cache; pair d_cachecache; string d_cachedqname; bool d_cachecachevalid; bool attemptToRefreshNSTTL(const QType& qt, const set& content, const CacheEntry& stored); }; string DNSRR2String(const DNSResourceRecord& rr); DNSResourceRecord String2DNSRR(const string& qname, const QType& qt, const string& serial, uint32_t ttd); # 38 "pdns_recursor.cc" 2 # 1 "cachecleaner.hh" 1 template void pruneCollection(T& collection, unsigned int maxCached, unsigned int scanFraction=1000) { uint32_t now=(uint32_t)time(0); unsigned int toTrim=0; unsigned int cacheSize=collection.size(); if(cacheSize > maxCached) { toTrim = cacheSize - maxCached; } typedef typename T::template nth_index<1>::type sequence_t; sequence_t& sidx=collection.template get<1>(); unsigned int tried=0, lookAt, erased=0; if(toTrim) lookAt=5*toTrim; else lookAt=cacheSize/scanFraction; typename sequence_t::iterator iter=sidx.begin(), eiter; for(; iter != sidx.end() && tried < lookAt ; ++tried) { if(iter->getTTD() < now) { sidx.erase(iter++); erased++; } else ++iter; if(toTrim && erased > toTrim) break; } if(erased >= toTrim) return; toTrim -= erased; eiter=iter=sidx.begin(); std::advance(eiter, toTrim); sidx.erase(iter, eiter); } template void moveCacheItemToFrontOrBack(T& collection, typename T::iterator& iter, bool front) { typedef typename T::template nth_index<1>::type sequence_t; sequence_t& sidx=collection.template get<1>(); typename sequence_t::iterator si=collection.template project<1>(iter); if(front) sidx.relocate(sidx.begin(), si); else sidx.relocate(sidx.end(), si); } template void moveCacheItemToFront(T& collection, typename T::iterator& iter) { moveCacheItemToFrontOrBack(collection, iter, true); } template void moveCacheItemToBack(T& collection, typename T::iterator& iter) { moveCacheItemToFrontOrBack(collection, iter, false); } # 39 "pdns_recursor.cc" 2 # 1 "mtasker.hh" 1 # 26 "mtasker.hh" # 1 "/usr/include/ucontext.h" 1 3 4 # 28 "/usr/include/ucontext.h" 3 4 # 28 "/usr/include/ucontext.h" 3 4 extern "C" { extern int getcontext (ucontext_t *__ucp) throw (); extern int setcontext (const ucontext_t *__ucp) throw (); extern int swapcontext (ucontext_t *__restrict __oucp, const ucontext_t *__restrict __ucp) throw (); extern void makecontext (ucontext_t *__ucp, void (*__func) (void), int __argc, ...) throw (); } # 27 "mtasker.hh" 2 # 1 "/usr/include/c++/5.0.0/queue" 1 3 # 58 "/usr/include/c++/5.0.0/queue" 3 # 59 "/usr/include/c++/5.0.0/queue" 3 # 1 "/usr/include/c++/5.0.0/bits/stl_queue.h" 1 3 # 65 "/usr/include/c++/5.0.0/bits/stl_queue.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 95 "/usr/include/c++/5.0.0/bits/stl_queue.h" 3 template > class queue { typedef typename _Sequence::value_type _Sequence_value_type; template friend bool operator==(const queue<_Tp1, _Seq1>&, const queue<_Tp1, _Seq1>&); template friend bool operator<(const queue<_Tp1, _Seq1>&, const queue<_Tp1, _Seq1>&); public: typedef typename _Sequence::value_type value_type; typedef typename _Sequence::reference reference; typedef typename _Sequence::const_reference const_reference; typedef typename _Sequence::size_type size_type; typedef _Sequence container_type; protected: # 129 "/usr/include/c++/5.0.0/bits/stl_queue.h" 3 _Sequence c; public: explicit queue(const _Sequence& __c = _Sequence()) : c(__c) { } # 152 "/usr/include/c++/5.0.0/bits/stl_queue.h" 3 bool empty() const { return c.empty(); } size_type size() const { return c.size(); } reference front() { ; return c.front(); } const_reference front() const { ; return c.front(); } reference back() { ; return c.back(); } const_reference back() const { ; return c.back(); } # 214 "/usr/include/c++/5.0.0/bits/stl_queue.h" 3 void push(const value_type& __x) { c.push_back(__x); } # 240 "/usr/include/c++/5.0.0/bits/stl_queue.h" 3 void pop() { ; c.pop_front(); } # 256 "/usr/include/c++/5.0.0/bits/stl_queue.h" 3 }; # 269 "/usr/include/c++/5.0.0/bits/stl_queue.h" 3 template inline bool operator==(const queue<_Tp, _Seq>& __x, const queue<_Tp, _Seq>& __y) { return __x.c == __y.c; } # 287 "/usr/include/c++/5.0.0/bits/stl_queue.h" 3 template inline bool operator<(const queue<_Tp, _Seq>& __x, const queue<_Tp, _Seq>& __y) { return __x.c < __y.c; } template inline bool operator!=(const queue<_Tp, _Seq>& __x, const queue<_Tp, _Seq>& __y) { return !(__x == __y); } template inline bool operator>(const queue<_Tp, _Seq>& __x, const queue<_Tp, _Seq>& __y) { return __y < __x; } template inline bool operator<=(const queue<_Tp, _Seq>& __x, const queue<_Tp, _Seq>& __y) { return !(__y < __x); } template inline bool operator>=(const queue<_Tp, _Seq>& __x, const queue<_Tp, _Seq>& __y) { return !(__x < __y); } # 368 "/usr/include/c++/5.0.0/bits/stl_queue.h" 3 template, typename _Compare = less > class priority_queue { typedef typename _Sequence::value_type _Sequence_value_type; public: typedef typename _Sequence::value_type value_type; typedef typename _Sequence::reference reference; typedef typename _Sequence::const_reference const_reference; typedef typename _Sequence::size_type size_type; typedef _Sequence container_type; protected: _Sequence c; _Compare comp; public: explicit priority_queue(const _Compare& __x = _Compare(), const _Sequence& __s = _Sequence()) : c(__s), comp(__x) { std::make_heap(c.begin(), c.end(), comp); } # 433 "/usr/include/c++/5.0.0/bits/stl_queue.h" 3 template priority_queue(_InputIterator __first, _InputIterator __last, const _Compare& __x = _Compare(), const _Sequence& __s = _Sequence()) : c(__s), comp(__x) { ; c.insert(c.end(), __first, __last); std::make_heap(c.begin(), c.end(), comp); } # 470 "/usr/include/c++/5.0.0/bits/stl_queue.h" 3 bool empty() const { return c.empty(); } size_type size() const { return c.size(); } const_reference top() const { ; return c.front(); } # 498 "/usr/include/c++/5.0.0/bits/stl_queue.h" 3 void push(const value_type& __x) { c.push_back(__x); std::push_heap(c.begin(), c.end(), comp); } # 533 "/usr/include/c++/5.0.0/bits/stl_queue.h" 3 void pop() { ; std::pop_heap(c.begin(), c.end(), comp); c.pop_back(); } # 551 "/usr/include/c++/5.0.0/bits/stl_queue.h" 3 }; # 569 "/usr/include/c++/5.0.0/bits/stl_queue.h" 3 } # 65 "/usr/include/c++/5.0.0/queue" 2 3 # 28 "mtasker.hh" 2 # 36 "mtasker.hh" # 36 "mtasker.hh" using namespace ::boost::multi_index; struct KeyTag {}; template class MTasker { private: ucontext_t d_kernel; std::queue d_runQueue; std::queue d_zombiesQueue; struct ThreadInfo { ucontext_t* context; char* startOfStack; char* highestStackSeen; }; typedef std::map mthreads_t; mthreads_t d_threads; int d_tid; int d_maxtid; size_t d_stacksize; EventVal d_waitval; enum waitstatusenum {Error=-1,TimeOut=0,Answer} d_waitstatus; public: struct Waiter { EventKey key; ucontext_t *context; struct timeval ttd; int tid; }; typedef multi_index_container< Waiter, indexed_by < ordered_unique >, ordered_non_unique, member > > > waiters_t; waiters_t d_waiters; MTasker(size_t stacksize=8192) : d_stacksize(stacksize) { d_maxtid=0; } typedef void tfunc_t(void *); int waitEvent(EventKey &key, EventVal *val=0, unsigned int timeoutMsec=0, struct timeval* now=0); void yield(); int sendEvent(const EventKey& key, const EventVal* val=0); void getEvents(std::vector& events); void makeThread(tfunc_t *start, void* val); bool schedule(struct timeval* now=0); bool noProcesses(); unsigned int numProcesses(); int getTid(); unsigned int getMaxStackUsage(); unsigned int getUsec(); private: static void threadWrapper(uint32_t self1, uint32_t self2, tfunc_t *tf, int tid, uint32_t val1, uint32_t val2); EventKey d_eventkey; }; # 1 "mtasker.cc" 1 # 23 "mtasker.cc" # 1 "mtasker.hh" 1 # 24 "mtasker.cc" 2 # 168 "mtasker.cc" templateint MTasker::waitEvent(EventKey &key, EventVal *val, unsigned int timeoutMsec, struct timeval* now) { if(d_waiters.count(key)) { return -1; } Waiter w; w.context=new ucontext_t; w.ttd.tv_sec = 0; w.ttd.tv_usec = 0; if(timeoutMsec) { struct timeval increment; increment.tv_sec = timeoutMsec / 1000; increment.tv_usec = 1000 * (timeoutMsec % 1000); if(now) w.ttd = increment + *now; else { struct timeval realnow; gettimeofday(&realnow, 0); w.ttd = increment + realnow; } } w.tid=d_tid; w.key=key; d_waiters.insert(w); if(swapcontext(d_waiters.find(key)->context,&d_kernel)) { perror("swapcontext"); exit( # 200 "mtasker.cc" 3 4 1 # 200 "mtasker.cc" ); } if(val && d_waitstatus==Answer) *val=d_waitval; d_tid=w.tid; if((char*)&w < d_threads[d_tid].highestStackSeen) { d_threads[d_tid].highestStackSeen = (char*)&w; } key=d_eventkey; return d_waitstatus; } templatevoid MTasker::yield() { d_runQueue.push(d_tid); if(swapcontext(d_threads[d_tid].context ,&d_kernel) < 0) { perror("swapcontext in yield"); exit( # 223 "mtasker.cc" 3 4 1 # 223 "mtasker.cc" ); } } # 235 "mtasker.cc" templateint MTasker::sendEvent(const EventKey& key, const EventVal* val) { typename waiters_t::iterator waiter=d_waiters.find(key); if(waiter == d_waiters.end()) { return 0; } d_waitstatus=Answer; if(val) d_waitval=*val; ucontext_t *userspace=waiter->context; d_tid=waiter->tid; d_eventkey=waiter->key; d_waiters.erase(waiter); if(swapcontext(&d_kernel,userspace)) { perror("swapcontext in sendEvent"); exit( # 254 "mtasker.cc" 3 4 1 # 254 "mtasker.cc" ); } delete userspace; return 1; } inline pair splitPointer(void *ptr) { uint64_t ll = (uint64_t) ptr; return make_pair(ll >> 32, ll & 0xffffffff); } inline void* joinPtr(uint32_t val1, uint32_t val2) { return (void*)(((uint64_t)val1 << 32) | (uint64_t)val2); } templatevoid MTasker::makeThread(tfunc_t *start, void* val) { ucontext_t *uc=new ucontext_t; getcontext(uc); uc->uc_link = &d_kernel; uc->uc_stack.ss_sp = new char[d_stacksize]; uc->uc_stack.ss_size = d_stacksize; pair valpair = splitPointer(val); pair thispair = splitPointer(this); makecontext (uc, (void (*)(void))threadWrapper, 6, thispair.first, thispair.second, start, d_maxtid, valpair.first, valpair.second); d_threads[d_maxtid].context = uc; d_runQueue.push(d_maxtid++); } # 305 "mtasker.cc" templatebool MTasker::schedule(struct timeval* now) { if(!d_runQueue.empty()) { d_tid=d_runQueue.front(); if(swapcontext(&d_kernel, d_threads[d_tid].context)) { perror("swapcontext in schedule"); exit( # 314 "mtasker.cc" 3 4 1 # 314 "mtasker.cc" ); } d_runQueue.pop(); return true; } if(!d_zombiesQueue.empty()) { delete[] (char *)d_threads[d_zombiesQueue.front()].context->uc_stack.ss_sp; delete d_threads[d_zombiesQueue.front()].context; d_threads.erase(d_zombiesQueue.front()); d_zombiesQueue.pop(); return true; } if(!d_waiters.empty()) { struct timeval rnow; if(!now) gettimeofday(&rnow, 0); else rnow = *now; typedef typename waiters_t::template index::type waiters_by_ttd_index_t; waiters_by_ttd_index_t& ttdindex=boost::multi_index::get(d_waiters); for(typename waiters_by_ttd_index_t::iterator i=ttdindex.begin(); i != ttdindex.end(); ) { if(i->ttd.tv_sec && i->ttd < rnow) { d_waitstatus=TimeOut; d_eventkey=i->key; ucontext_t* uc = i->context; d_tid = i->tid; ttdindex.erase(i++); if(swapcontext(&d_kernel, uc)) { perror("swapcontext in schedule2"); exit( # 348 "mtasker.cc" 3 4 1 # 348 "mtasker.cc" ); } delete uc; } else if(i->ttd.tv_sec) break; } } return false; } templatebool MTasker::noProcesses() { return d_threads.empty(); } templateunsigned int MTasker::numProcesses() { return d_threads.size(); } # 384 "mtasker.cc" templatevoid MTasker::getEvents(std::vector& events) { events.clear(); for(typename waiters_t::const_iterator i=d_waiters.begin();i!=d_waiters.end();++i) { events.push_back(i->first); } } templatevoid MTasker::threadWrapper(uint32_t self1, uint32_t self2, tfunc_t *tf, int tid, uint32_t val1, uint32_t val2) { void* val = joinPtr(val1, val2); MTasker* self = (MTasker*) joinPtr(self1, self2); self->d_threads[self->d_tid].startOfStack = self->d_threads[self->d_tid].highestStackSeen = (char*)&val; (*tf)(val); self->d_zombiesQueue.push(tid); } templateint MTasker::getTid() { return d_tid; } templateunsigned int MTasker::getMaxStackUsage() { return d_threads[d_tid].startOfStack - d_threads[d_tid].highestStackSeen; } templateunsigned int MTasker::getUsec() { return 0; } # 122 "mtasker.hh" 2 # 44 "pdns_recursor.cc" 2 # 1 "arguments.hh" 1 # 34 "arguments.hh" # 1 "/usr/include/pwd.h" 1 3 4 # 27 "/usr/include/pwd.h" 3 4 # 27 "/usr/include/pwd.h" 3 4 extern "C" { # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stddef.h" 1 3 4 # 33 "/usr/include/pwd.h" 2 3 4 # 49 "/usr/include/pwd.h" 3 4 struct passwd { char *pw_name; char *pw_passwd; __uid_t pw_uid; __gid_t pw_gid; char *pw_gecos; char *pw_dir; char *pw_shell; }; # 72 "/usr/include/pwd.h" 3 4 extern void setpwent (void); extern void endpwent (void); extern struct passwd *getpwent (void); # 94 "/usr/include/pwd.h" 3 4 extern struct passwd *fgetpwent (FILE *__stream); extern int putpwent (const struct passwd *__restrict __p, FILE *__restrict __f); extern struct passwd *getpwuid (__uid_t __uid); extern struct passwd *getpwnam (const char *__name); # 139 "/usr/include/pwd.h" 3 4 extern int getpwent_r (struct passwd *__restrict __resultbuf, char *__restrict __buffer, size_t __buflen, struct passwd **__restrict __result); extern int getpwuid_r (__uid_t __uid, struct passwd *__restrict __resultbuf, char *__restrict __buffer, size_t __buflen, struct passwd **__restrict __result); extern int getpwnam_r (const char *__restrict __name, struct passwd *__restrict __resultbuf, char *__restrict __buffer, size_t __buflen, struct passwd **__restrict __result); # 163 "/usr/include/pwd.h" 3 4 extern int fgetpwent_r (FILE *__restrict __stream, struct passwd *__restrict __resultbuf, char *__restrict __buffer, size_t __buflen, struct passwd **__restrict __result); # 180 "/usr/include/pwd.h" 3 4 extern int getpw (__uid_t __uid, char *__buffer); } # 35 "arguments.hh" 2 # 1 "/usr/include/grp.h" 1 3 4 # 27 "/usr/include/grp.h" 3 4 extern "C" { # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stddef.h" 1 3 4 # 33 "/usr/include/grp.h" 2 3 4 # 42 "/usr/include/grp.h" 3 4 struct group { char *gr_name; char *gr_passwd; __gid_t gr_gid; char **gr_mem; }; # 62 "/usr/include/grp.h" 3 4 extern void setgrent (void); extern void endgrent (void); extern struct group *getgrent (void); # 86 "/usr/include/grp.h" 3 4 extern struct group *fgetgrent (FILE *__stream); # 96 "/usr/include/grp.h" 3 4 extern int putgrent (const struct group *__restrict __p, FILE *__restrict __f); extern struct group *getgrgid (__gid_t __gid); extern struct group *getgrnam (const char *__name); # 134 "/usr/include/grp.h" 3 4 extern int getgrent_r (struct group *__restrict __resultbuf, char *__restrict __buffer, size_t __buflen, struct group **__restrict __result); extern int getgrgid_r (__gid_t __gid, struct group *__restrict __resultbuf, char *__restrict __buffer, size_t __buflen, struct group **__restrict __result); extern int getgrnam_r (const char *__restrict __name, struct group *__restrict __resultbuf, char *__restrict __buffer, size_t __buflen, struct group **__restrict __result); # 164 "/usr/include/grp.h" 3 4 extern int fgetgrent_r (FILE *__restrict __stream, struct group *__restrict __resultbuf, char *__restrict __buffer, size_t __buflen, struct group **__restrict __result); # 176 "/usr/include/grp.h" 3 4 # 1 "/usr/lib/gcc/x86_64-redhat-linux/5.0.0/include/stddef.h" 1 3 4 # 177 "/usr/include/grp.h" 2 3 4 extern int setgroups (size_t __n, const __gid_t *__groups) throw (); # 189 "/usr/include/grp.h" 3 4 extern int getgrouplist (const char *__user, __gid_t __group, __gid_t *__groups, int *__ngroups); # 200 "/usr/include/grp.h" 3 4 extern int initgroups (const char *__user, __gid_t __group); } # 36 "arguments.hh" 2 # 39 "arguments.hh" typedef PDNSException ArgException; # 77 "arguments.hh" class ArgvMap { public: ArgvMap(); void parse(int &argc, char **argv, bool lax=false); void laxParse(int &argc, char **argv) { parse(argc,argv,true); } void preParse(int &argc, char **argv, const string &arg); bool preParseFile(const char *fname, const string &arg, const string& theDefault=""); bool file(const char *fname, bool lax=false); bool file(const char *fname, bool lax, bool included); bool laxFile(const char *fname) { return file(fname,true); } typedef map param_t; bool parmIsset(const string &var); bool mustDo(const string &var); int asNum(const string &var, int def=0); mode_t asMode(const string &var); uid_t asUid(const string &var); gid_t asGid(const string &var); double asDouble(const string &var); string &set(const string &); string &set(const string &, const string &); void setCmd(const string &, const string &); string &setSwitch(const string &, const string &); string helpstring(string prefix=""); string configstring(bool current=false); bool contains(const string &var, const string &val); bool isEmpty(const string &var); vectorlist(); string getHelp(const string &item); const param_t::const_iterator begin(); const param_t::const_iterator end(); const string &operator[](const string &); const vector&getCommands(); void gatherIncludes(std::vector &extraConfigs); private: void parseOne(const string &unparsed, const string &parseOnly="", bool lax=false); typedef map params_t; params_t params; map helpmap; map d_typeMap; vector d_cmds; std::set d_cleared; }; extern ArgvMap &arg(); # 46 "pdns_recursor.cc" 2 # 1 "syncres.hh" 1 # 9 "syncres.hh" # 1 "/usr/include/c++/5.0.0/cmath" 1 3 # 39 "/usr/include/c++/5.0.0/cmath" 3 # 40 "/usr/include/c++/5.0.0/cmath" 3 # 10 "syncres.hh" 2 # 1 "lwres.hh" 1 # 44 "lwres.hh" int asendto(const char *data, int len, int flags, const ComboAddress& ip, uint16_t id, const string& domain, uint16_t qtype, int* fd); int arecvfrom(char *data, int len, int flags, const ComboAddress& ip, int *d_len, uint16_t id, const string& domain, uint16_t, int fd, struct timeval* now); class LWResException : public PDNSException { public: LWResException(const string &reason) : PDNSException(reason){} }; class LWResult { public: LWResult() : d_usec(0) {} typedef vector res_t; vector d_result; int d_rcode; bool d_aabit, d_tcbit; uint32_t d_usec; bool d_pingCorrect; bool d_haveEDNS; }; int asyncresolve(const ComboAddress& ip, const string& domain, int type, bool doTCP, bool sendRDQuery, int EDNS0Level, struct timeval* now, LWResult* res); # 14 "syncres.hh" 2 # 1 "/usr/include/boost/circular_buffer.hpp" 1 3 4 # 18 "/usr/include/boost/circular_buffer.hpp" 3 4 # 1 "/usr/include/boost/circular_buffer_fwd.hpp" 1 3 4 # 25 "/usr/include/boost/circular_buffer_fwd.hpp" 3 4 # 25 "/usr/include/boost/circular_buffer_fwd.hpp" 3 4 namespace boost { template > class circular_buffer; template > class circular_buffer_space_optimized; } # 19 "/usr/include/boost/circular_buffer.hpp" 2 3 4 # 31 "/usr/include/boost/circular_buffer.hpp" 3 4 # 1 "/usr/include/boost/assert.hpp" 1 3 4 # 54 "/usr/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 64 "/usr/include/assert.h" 3 4 extern "C" { extern void __assert_fail (const char *__assertion, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert_perror_fail (int __errnum, const char *__file, unsigned int __line, const char *__function) throw () __attribute__ ((__noreturn__)); extern void __assert (const char *__assertion, const char *__file, int __line) throw () __attribute__ ((__noreturn__)); } # 55 "/usr/include/boost/assert.hpp" 2 3 4 # 32 "/usr/include/boost/circular_buffer.hpp" 2 3 4 # 55 "/usr/include/boost/circular_buffer.hpp" 3 4 # 1 "/usr/include/boost/circular_buffer/debug.hpp" 1 3 4 # 17 "/usr/include/boost/circular_buffer/debug.hpp" 3 4 # 1 "/usr/include/c++/5.0.0/cstring" 1 3 4 # 39 "/usr/include/c++/5.0.0/cstring" 3 4 # 40 "/usr/include/c++/5.0.0/cstring" 3 # 18 "/usr/include/boost/circular_buffer/debug.hpp" 2 3 4 # 26 "/usr/include/boost/circular_buffer/debug.hpp" 3 4 namespace boost { namespace cb_details { const int UNINITIALIZED = 0xcc; template inline void do_fill_uninitialized_memory(T* data, std::size_t size_in_bytes) { std::memset(static_cast(data), UNINITIALIZED, size_in_bytes); } template inline void do_fill_uninitialized_memory(T& , std::size_t ) { } class debug_iterator_registry; class debug_iterator_base { private: mutable const debug_iterator_registry* m_registry; mutable const debug_iterator_base* m_next; public: debug_iterator_base(); debug_iterator_base(const debug_iterator_registry* registry); debug_iterator_base(const debug_iterator_base& rhs); ~debug_iterator_base(); debug_iterator_base& operator = (const debug_iterator_base& rhs); bool is_valid(const debug_iterator_registry* registry) const; void invalidate() const; const debug_iterator_base* next() const; void set_next(const debug_iterator_base* it) const; private: void register_self(); void unregister_self(); }; class debug_iterator_registry { mutable const debug_iterator_base* m_iterators; public: debug_iterator_registry() : m_iterators(0) {} void register_iterator(const debug_iterator_base* it) const { it->set_next(m_iterators); m_iterators = it; } void unregister_iterator(const debug_iterator_base* it) const { const debug_iterator_base* previous = 0; for (const debug_iterator_base* p = m_iterators; p != it; previous = p, p = p->next()) {} remove(it, previous); } template void invalidate_iterators(const Iterator& it) { const debug_iterator_base* previous = 0; for (const debug_iterator_base* p = m_iterators; p != 0; p = p->next()) { if (((Iterator*)p)->m_it == it.m_it) { p->invalidate(); remove(p, previous); continue; } previous = p; } } template void invalidate_iterators_except(const Iterator& it) { const debug_iterator_base* previous = 0; for (const debug_iterator_base* p = m_iterators; p != 0; p = p->next()) { if (((Iterator*)p)->m_it != it.m_it) { p->invalidate(); remove(p, previous); continue; } previous = p; } } void invalidate_all_iterators() { for (const debug_iterator_base* p = m_iterators; p != 0; p = p->next()) p->invalidate(); m_iterators = 0; } private: void remove(const debug_iterator_base* current, const debug_iterator_base* previous) const { if (previous == 0) m_iterators = m_iterators->next(); else previous->set_next(current->next()); } }; inline debug_iterator_base::debug_iterator_base() : m_registry(0), m_next(0) {} inline debug_iterator_base::debug_iterator_base(const debug_iterator_registry* registry) : m_registry(registry), m_next(0) { register_self(); } inline debug_iterator_base::debug_iterator_base(const debug_iterator_base& rhs) : m_registry(rhs.m_registry), m_next(0) { register_self(); } inline debug_iterator_base::~debug_iterator_base() { unregister_self(); } inline debug_iterator_base& debug_iterator_base::operator = (const debug_iterator_base& rhs) { if (m_registry == rhs.m_registry) return *this; unregister_self(); m_registry = rhs.m_registry; register_self(); return *this; } inline bool debug_iterator_base::is_valid(const debug_iterator_registry* registry) const { return m_registry == registry; } inline void debug_iterator_base::invalidate() const { m_registry = 0; } inline const debug_iterator_base* debug_iterator_base::next() const { return m_next; } inline void debug_iterator_base::set_next(const debug_iterator_base* it) const { m_next = it; } inline void debug_iterator_base::register_self() { if (m_registry != 0) m_registry->register_iterator(this); } inline void debug_iterator_base::unregister_self() { if (m_registry != 0) m_registry->unregister_iterator(this); } } } # 56 "/usr/include/boost/circular_buffer.hpp" 2 3 4 # 1 "/usr/include/boost/circular_buffer/details.hpp" 1 3 4 # 19 "/usr/include/boost/circular_buffer/details.hpp" 3 4 # 1 "/usr/include/boost/container/allocator_traits.hpp" 1 3 4 # 24 "/usr/include/boost/container/allocator_traits.hpp" 3 4 # 1 "/usr/include/boost/container/detail/config_begin.hpp" 1 3 4 # 25 "/usr/include/boost/container/allocator_traits.hpp" 2 3 4 # 1 "/usr/include/boost/container/detail/workaround.hpp" 1 3 4 # 18 "/usr/include/boost/container/detail/workaround.hpp" 3 4 # 1 "/usr/include/boost/container/detail/config_begin.hpp" 1 3 4 # 19 "/usr/include/boost/container/detail/workaround.hpp" 2 3 4 # 70 "/usr/include/boost/container/detail/workaround.hpp" 3 4 # 1 "/usr/include/boost/container/detail/config_end.hpp" 1 3 4 # 71 "/usr/include/boost/container/detail/workaround.hpp" 2 3 4 # 26 "/usr/include/boost/container/allocator_traits.hpp" 2 3 4 # 1 "/usr/include/boost/intrusive/pointer_traits.hpp" 1 3 4 # 24 "/usr/include/boost/intrusive/pointer_traits.hpp" 3 4 # 1 "/usr/include/boost/intrusive/detail/config_begin.hpp" 1 3 4 # 25 "/usr/include/boost/intrusive/pointer_traits.hpp" 2 3 4 # 1 "/usr/include/boost/intrusive/intrusive_fwd.hpp" 1 3 4 # 58 "/usr/include/boost/intrusive/intrusive_fwd.hpp" 3 4 # 1 "/usr/include/boost/intrusive/link_mode.hpp" 1 3 4 # 20 "/usr/include/boost/intrusive/link_mode.hpp" 3 4 namespace boost { namespace intrusive { enum link_mode_type{ normal_link, safe_link, auto_unlink }; template struct is_safe_autounlink { static const bool value = (int)link_mode == (int)auto_unlink || (int)link_mode == (int)safe_link; }; } } # 59 "/usr/include/boost/intrusive/intrusive_fwd.hpp" 2 3 4 # 1 "/usr/include/boost/intrusive/detail/workaround.hpp" 1 3 4 # 60 "/usr/include/boost/intrusive/intrusive_fwd.hpp" 2 3 4 namespace boost { namespace intrusive { template class circular_list_algorithms; template class circular_slist_algorithms; template class linear_slist_algorithms; template class bstree_algorithms; template class rbtree_algorithms; template class avltree_algorithms; template class sgtree_algorithms; template class splaytree_algorithms; template class treap_algorithms; template < class T , class O1 = void , class O2 = void , class O3 = void , class O4 = void , class O5 = void , class O6 = void > class slist; template < class O1 = void , class O2 = void , class O3 = void > class slist_base_hook; template < class O1 = void , class O2 = void , class O3 = void > class slist_member_hook; template < class T , class O1 = void , class O2 = void , class O3 = void , class O4 = void > class list; template < class O1 = void , class O2 = void , class O3 = void > class list_base_hook; template < class O1 = void , class O2 = void , class O3 = void > class list_member_hook; template < class T , class O1 = void , class O2 = void , class O3 = void , class O4 = void , class O5 = void > class rbtree; template < class T , class O1 = void , class O2 = void , class O3 = void , class O4 = void , class O5 = void > class set; template < class T , class O1 = void , class O2 = void , class O3 = void , class O4 = void , class O5 = void > class multiset; template < class O1 = void , class O2 = void , class O3 = void , class O4 = void > class set_base_hook; template < class O1 = void , class O2 = void , class O3 = void , class O4 = void > class set_member_hook; template < class T , class O1 = void , class O2 = void , class O3 = void , class O4 = void , class O5 = void > class splaytree; template < class T , class O1 = void , class O2 = void , class O3 = void , class O4 = void , class O5 = void > class splay_set; template < class T , class O1 = void , class O2 = void , class O3 = void , class O4 = void , class O5 = void > class splay_multiset; template < class T , class O1 = void , class O2 = void , class O3 = void , class O4 = void , class O5 = void > class avltree; template < class T , class O1 = void , class O2 = void , class O3 = void , class O4 = void , class O5 = void > class avl_set; template < class T , class O1 = void , class O2 = void , class O3 = void , class O4 = void , class O5 = void > class avl_multiset; template < class O1 = void , class O2 = void , class O3 = void , class O4 = void > class avl_set_base_hook; template < class O1 = void , class O2 = void , class O3 = void , class O4 = void > class avl_set_member_hook; template < class T , class O1 = void , class O2 = void , class O3 = void , class O4 = void , class O5 = void > class treap; template < class T , class O1 = void , class O2 = void , class O3 = void , class O4 = void , class O5 = void > class treap_set; template < class T , class O1 = void , class O2 = void , class O3 = void , class O4 = void , class O5 = void > class treap_multiset; template < class T , class O1 = void , class O2 = void , class O3 = void , class O4 = void , class O5 = void > class sgtree; template < class T , class O1 = void , class O2 = void , class O3 = void , class O4 = void , class O5 = void > class sg_set; template < class T , class O1 = void , class O2 = void , class O3 = void , class O4 = void , class O5 = void > class sg_multiset; template < class T , class O1 = void , class O2 = void , class O3 = void , class O4 = void , class O5 = void > class bstree; template < class T , class O1 = void , class O2 = void , class O3 = void , class O4 = void , class O5 = void > class bs_set; template < class T , class O1 = void , class O2 = void , class O3 = void , class O4 = void , class O5 = void > class bs_multiset; template < class O1 = void , class O2 = void , class O3 = void > class bs_set_base_hook; template < class O1 = void , class O2 = void , class O3 = void > class bs_set_member_hook; template < class T , class O1 = void , class O2 = void , class O3 = void , class O4 = void , class O5 = void , class O6 = void , class O7 = void , class O8 = void , class O9 = void , class O10 = void > class hashtable; template < class T , class O1 = void , class O2 = void , class O3 = void , class O4 = void , class O5 = void , class O6 = void , class O7 = void , class O8 = void , class O9 = void , class O10 = void > class unordered_set; template < class T , class O1 = void , class O2 = void , class O3 = void , class O4 = void , class O5 = void , class O6 = void , class O7 = void , class O8 = void , class O9 = void , class O10 = void > class unordered_multiset; template < class O1 = void , class O2 = void , class O3 = void , class O4 = void > class unordered_set_base_hook; template < class O1 = void , class O2 = void , class O3 = void , class O4 = void > class unordered_set_member_hook; template < class O1 = void , class O2 = void , class O3 = void > class any_base_hook; template < class O1 = void , class O2 = void , class O3 = void > class any_member_hook; template struct constant_time_size; template struct size_type; template struct compare; template struct floating_point; template struct equal; template struct priority; template struct hash; template struct value_traits; template< typename Parent , typename MemberHook , MemberHook Parent::* PtrToMember> struct member_hook; template struct function_hook; template struct base_hook; template struct void_pointer; template struct tag; template struct link_mode; template struct optimize_size; template struct linear; template struct cache_last; template struct bucket_traits; template struct store_hash; template struct optimize_multikey; template struct power_2_buckets; template struct cache_begin; template struct compare_hash; template struct incremental; template struct value_traits; template< typename Parent , typename MemberHook , MemberHook Parent::* PtrToMember> struct member_hook; template< typename Functor> struct function_hook; template struct base_hook; template struct derivation_value_traits; template struct trivial_value_traits; template struct max_pointer_plus_bits; template struct max_pointer_plus_bits; template struct pointer_plus_bits; template struct pointer_plus_bits; template struct pointer_traits; template struct pointer_traits; } } # 26 "/usr/include/boost/intrusive/pointer_traits.hpp" 2 3 4 # 1 "/usr/include/boost/intrusive/detail/memory_util.hpp" 1 3 4 # 25 "/usr/include/boost/intrusive/detail/memory_util.hpp" 3 4 # 1 "/usr/include/boost/intrusive/detail/mpl.hpp" 1 3 4 # 21 "/usr/include/boost/intrusive/detail/mpl.hpp" 3 4 # 1 "/usr/include/boost/intrusive/detail/config_begin.hpp" 1 3 4 # 22 "/usr/include/boost/intrusive/detail/mpl.hpp" 2 3 4 namespace boost { namespace intrusive { namespace detail { template struct is_same { static const bool value = false; }; template struct is_same { static const bool value = true; }; template struct add_const { typedef const T type; }; template struct remove_const { typedef T type; }; template struct remove_const { typedef T type; }; template struct remove_cv { typedef T type; }; template struct remove_cv { typedef T type; }; template struct remove_cv { typedef T type; }; template struct remove_cv { typedef T type; }; template struct remove_reference { typedef T type; }; template struct remove_reference { typedef T type; }; template struct remove_pointer { typedef T type; }; template struct remove_pointer { typedef T type; }; template struct add_pointer { typedef T *type; }; typedef char one; struct two {one _[2];}; template< bool C_ > struct bool_ { static const bool value = C_; }; template< class Integer, Integer Value > struct integer { static const Integer value = Value; }; typedef bool_ true_; typedef bool_ false_; typedef true_ true_type; typedef false_ false_type; typedef char yes_type; struct no_type { char padding[8]; }; template struct enable_if_c { typedef T type; }; template struct enable_if_c {}; template struct enable_if : public enable_if_c{}; template struct apply { typedef typename F::template apply::type type; }; # 152 "/usr/include/boost/intrusive/detail/mpl.hpp" 3 4 template class is_convertible { typedef char true_t; class false_t { char dummy[2]; }; static false_t dispatch(...); static true_t dispatch(U); static typename remove_reference::type &trigger(); public: static const bool value = sizeof(dispatch(trigger())) == sizeof(true_t); }; template< bool C , typename T1 , typename T2 > struct if_c { typedef T1 type; }; template< typename T1 , typename T2 > struct if_c { typedef T2 type; }; template< typename C , typename T1 , typename T2 > struct if_ { typedef typename if_c<0 != C::value, T1, T2>::type type; }; template< bool C , typename F1 , typename F2 > struct eval_if_c : if_c::type {}; template< typename C , typename T1 , typename T2 > struct eval_if : if_::type {}; template struct identity { typedef T type; }; template struct add_const_if_c { typedef typename if_c < Add , typename add_const::type , T >::type type; }; template struct alignment_of; template struct alignment_of_hack { char c; T t; alignment_of_hack(); }; template struct alignment_logic { static const std::size_t value = A < S ? A : S; }; template< typename T > struct alignment_of { static const std::size_t value = alignment_logic < sizeof(alignment_of_hack) - sizeof(T) , sizeof(T) >::value; }; template class is_empty_class { template struct empty_helper_t1 : public T { empty_helper_t1(); int i[256]; }; struct empty_helper_t2 { int i[256]; }; public: static const bool value = sizeof(empty_helper_t1) == sizeof(empty_helper_t2); }; template struct ls_zeros { static const std::size_t value = (S & std::size_t(1)) ? 0 : (1 + ls_zeros<(S>>1u)>::value); }; template<> struct ls_zeros<0> { static const std::size_t value = 0; }; template<> struct ls_zeros<1> { static const std::size_t value = 0; }; template struct unvoid_ref { typedef T &type; }; template <> struct unvoid_ref { struct type_impl { }; typedef type_impl & type; }; template <> struct unvoid_ref { struct type_impl { }; typedef type_impl & type; }; # 370 "/usr/include/boost/intrusive/detail/mpl.hpp" 3 4 } } } # 1 "/usr/include/boost/intrusive/detail/config_end.hpp" 1 3 4 # 375 "/usr/include/boost/intrusive/detail/mpl.hpp" 2 3 4 # 26 "/usr/include/boost/intrusive/detail/memory_util.hpp" 2 3 4 # 1 "/usr/include/boost/intrusive/detail/preprocessor.hpp" 1 3 4 # 18 "/usr/include/boost/intrusive/detail/preprocessor.hpp" 3 4 # 1 "/usr/include/boost/intrusive/detail/config_begin.hpp" 1 3 4 # 19 "/usr/include/boost/intrusive/detail/preprocessor.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/repetition/enum_trailing.hpp" 1 3 4 # 18 "/usr/include/boost/preprocessor/repetition/enum_trailing.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/detail/auto_rec.hpp" 1 3 4 # 19 "/usr/include/boost/preprocessor/repetition/enum_trailing.hpp" 2 3 4 # 25 "/usr/include/boost/intrusive/detail/preprocessor.hpp" 2 3 4 # 40 "/usr/include/boost/intrusive/detail/preprocessor.hpp" 3 4 # 1 "/usr/include/boost/intrusive/detail/config_end.hpp" 1 3 4 # 41 "/usr/include/boost/intrusive/detail/preprocessor.hpp" 2 3 4 # 27 "/usr/include/boost/intrusive/detail/memory_util.hpp" 2 3 4 namespace boost { namespace intrusive { namespace detail { template inline T* addressof(T& obj) { return static_cast (static_cast (const_cast (&reinterpret_cast(obj)) ) ); } template struct LowPriorityConversion { LowPriorityConversion(const T&) { } }; }}} # 1 "/usr/include/boost/intrusive/detail/has_member_function_callable_with.hpp" 1 3 4 # 31 "/usr/include/boost/intrusive/detail/has_member_function_callable_with.hpp" 3 4 namespace boost_intrusive_has_member_function_callable_with { struct dont_care { dont_care(...); }; template struct make_dontcare { typedef boost_intrusive_has_member_function_callable_with::dont_care type; }; struct private_type { static private_type p; private_type const &operator,(int) const; }; typedef char yes_type; struct no_type{ char dummy[2]; }; template no_type is_private_type(T const &); yes_type is_private_type(private_type const &); } # 54 "/usr/include/boost/intrusive/detail/memory_util.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 1 3 4 # 24 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 1 3 4 # 12 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/slot/detail/shared.hpp" 1 3 4 # 13 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 2 3 4 # 25 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 1 3 4 # 12 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/slot/detail/shared.hpp" 1 3 4 # 13 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 2 3 4 # 27 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 52 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 3 4 # 1 "/usr/include/boost/intrusive/detail/has_member_function_callable_with.hpp" 1 3 4 # 85 "/usr/include/boost/intrusive/detail/has_member_function_callable_with.hpp" 3 4 namespace boost { namespace intrusive { namespace detail { template class has_member_function_named_pointer_to { struct BaseMixin { void pointer_to(); }; struct Base : public ::boost::intrusive::detail::remove_cv::type, public BaseMixin { Base(); }; template class Helper{}; template static boost_intrusive_has_member_function_callable_with::no_type deduce (U*, Helper* = 0); static boost_intrusive_has_member_function_callable_with::yes_type deduce(...); public: static const bool value = sizeof(boost_intrusive_has_member_function_callable_with::yes_type) == sizeof(deduce((Base*)(0))); }; template struct has_member_function_callable_with_pointer_to_impl; template struct has_member_function_callable_with_pointer_to_impl { static const bool value = false; }; # 219 "/usr/include/boost/intrusive/detail/has_member_function_callable_with.hpp" 3 4 }}} # 308 "/usr/include/boost/intrusive/detail/has_member_function_callable_with.hpp" 3 4 namespace boost { namespace intrusive { namespace detail { template struct has_member_function_callable_with_pointer_to_impl { struct FunWrap : Fun { FunWrap(); using Fun::pointer_to; boost_intrusive_has_member_function_callable_with::private_type pointer_to ( boost_intrusive_has_member_function_callable_with::dont_care ) const; }; static bool const value = (sizeof(boost_intrusive_has_member_function_callable_with::no_type) == sizeof(boost_intrusive_has_member_function_callable_with::is_private_type ( (boost::move_detail::declval(). pointer_to ( boost::move_detail::declval< P0 >() ), 0 ) ) ) ); }; }}} # 352 "/usr/include/boost/intrusive/detail/has_member_function_callable_with.hpp" 3 4 namespace boost { namespace intrusive { namespace detail { template struct has_member_function_callable_with_pointer_to : public has_member_function_callable_with_pointer_to_impl ::value , P0 > {}; }}} # 53 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 60 "/usr/include/boost/intrusive/detail/memory_util.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 1 3 4 # 24 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 1 3 4 # 12 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/slot/detail/shared.hpp" 1 3 4 # 13 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 2 3 4 # 25 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 1 3 4 # 12 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/slot/detail/shared.hpp" 1 3 4 # 13 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 2 3 4 # 27 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 52 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 3 4 # 1 "/usr/include/boost/intrusive/detail/has_member_function_callable_with.hpp" 1 3 4 # 85 "/usr/include/boost/intrusive/detail/has_member_function_callable_with.hpp" 3 4 namespace boost { namespace intrusive { namespace detail { template class has_member_function_named_static_cast_from { struct BaseMixin { void static_cast_from(); }; struct Base : public ::boost::intrusive::detail::remove_cv::type, public BaseMixin { Base(); }; template class Helper{}; template static boost_intrusive_has_member_function_callable_with::no_type deduce (U*, Helper* = 0); static boost_intrusive_has_member_function_callable_with::yes_type deduce(...); public: static const bool value = sizeof(boost_intrusive_has_member_function_callable_with::yes_type) == sizeof(deduce((Base*)(0))); }; template struct has_member_function_callable_with_static_cast_from_impl; template struct has_member_function_callable_with_static_cast_from_impl { static const bool value = false; }; # 219 "/usr/include/boost/intrusive/detail/has_member_function_callable_with.hpp" 3 4 }}} # 308 "/usr/include/boost/intrusive/detail/has_member_function_callable_with.hpp" 3 4 namespace boost { namespace intrusive { namespace detail { template struct has_member_function_callable_with_static_cast_from_impl { struct FunWrap : Fun { FunWrap(); using Fun::static_cast_from; boost_intrusive_has_member_function_callable_with::private_type static_cast_from ( boost_intrusive_has_member_function_callable_with::dont_care ) const; }; static bool const value = (sizeof(boost_intrusive_has_member_function_callable_with::no_type) == sizeof(boost_intrusive_has_member_function_callable_with::is_private_type ( (boost::move_detail::declval(). static_cast_from ( boost::move_detail::declval< P0 >() ), 0 ) ) ) ); }; }}} # 352 "/usr/include/boost/intrusive/detail/has_member_function_callable_with.hpp" 3 4 namespace boost { namespace intrusive { namespace detail { template struct has_member_function_callable_with_static_cast_from : public has_member_function_callable_with_static_cast_from_impl ::value , P0 > {}; }}} # 53 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 66 "/usr/include/boost/intrusive/detail/memory_util.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 1 3 4 # 24 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 1 3 4 # 12 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/slot/detail/shared.hpp" 1 3 4 # 13 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 2 3 4 # 25 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 1 3 4 # 12 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/slot/detail/shared.hpp" 1 3 4 # 13 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 2 3 4 # 27 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 52 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 3 4 # 1 "/usr/include/boost/intrusive/detail/has_member_function_callable_with.hpp" 1 3 4 # 85 "/usr/include/boost/intrusive/detail/has_member_function_callable_with.hpp" 3 4 namespace boost { namespace intrusive { namespace detail { template class has_member_function_named_const_cast_from { struct BaseMixin { void const_cast_from(); }; struct Base : public ::boost::intrusive::detail::remove_cv::type, public BaseMixin { Base(); }; template class Helper{}; template static boost_intrusive_has_member_function_callable_with::no_type deduce (U*, Helper* = 0); static boost_intrusive_has_member_function_callable_with::yes_type deduce(...); public: static const bool value = sizeof(boost_intrusive_has_member_function_callable_with::yes_type) == sizeof(deduce((Base*)(0))); }; template struct has_member_function_callable_with_const_cast_from_impl; template struct has_member_function_callable_with_const_cast_from_impl { static const bool value = false; }; # 219 "/usr/include/boost/intrusive/detail/has_member_function_callable_with.hpp" 3 4 }}} # 308 "/usr/include/boost/intrusive/detail/has_member_function_callable_with.hpp" 3 4 namespace boost { namespace intrusive { namespace detail { template struct has_member_function_callable_with_const_cast_from_impl { struct FunWrap : Fun { FunWrap(); using Fun::const_cast_from; boost_intrusive_has_member_function_callable_with::private_type const_cast_from ( boost_intrusive_has_member_function_callable_with::dont_care ) const; }; static bool const value = (sizeof(boost_intrusive_has_member_function_callable_with::no_type) == sizeof(boost_intrusive_has_member_function_callable_with::is_private_type ( (boost::move_detail::declval(). const_cast_from ( boost::move_detail::declval< P0 >() ), 0 ) ) ) ); }; }}} # 352 "/usr/include/boost/intrusive/detail/has_member_function_callable_with.hpp" 3 4 namespace boost { namespace intrusive { namespace detail { template struct has_member_function_callable_with_const_cast_from : public has_member_function_callable_with_const_cast_from_impl ::value , P0 > {}; }}} # 53 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 72 "/usr/include/boost/intrusive/detail/memory_util.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 1 3 4 # 24 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 1 3 4 # 12 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/slot/detail/shared.hpp" 1 3 4 # 13 "/usr/include/boost/preprocessor/iteration/detail/bounds/lower1.hpp" 2 3 4 # 25 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 1 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 1 3 4 # 12 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 3 4 # 1 "/usr/include/boost/preprocessor/slot/detail/shared.hpp" 1 3 4 # 13 "/usr/include/boost/preprocessor/iteration/detail/bounds/upper1.hpp" 2 3 4 # 27 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 52 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 3 4 # 1 "/usr/include/boost/intrusive/detail/has_member_function_callable_with.hpp" 1 3 4 # 85 "/usr/include/boost/intrusive/detail/has_member_function_callable_with.hpp" 3 4 namespace boost { namespace intrusive { namespace detail { template class has_member_function_named_dynamic_cast_from { struct BaseMixin { void dynamic_cast_from(); }; struct Base : public ::boost::intrusive::detail::remove_cv::type, public BaseMixin { Base(); }; template class Helper{}; template static boost_intrusive_has_member_function_callable_with::no_type deduce (U*, Helper* = 0); static boost_intrusive_has_member_function_callable_with::yes_type deduce(...); public: static const bool value = sizeof(boost_intrusive_has_member_function_callable_with::yes_type) == sizeof(deduce((Base*)(0))); }; template struct has_member_function_callable_with_dynamic_cast_from_impl; template struct has_member_function_callable_with_dynamic_cast_from_impl { static const bool value = false; }; # 219 "/usr/include/boost/intrusive/detail/has_member_function_callable_with.hpp" 3 4 }}} # 308 "/usr/include/boost/intrusive/detail/has_member_function_callable_with.hpp" 3 4 namespace boost { namespace intrusive { namespace detail { template struct has_member_function_callable_with_dynamic_cast_from_impl { struct FunWrap : Fun { FunWrap(); using Fun::dynamic_cast_from; boost_intrusive_has_member_function_callable_with::private_type dynamic_cast_from ( boost_intrusive_has_member_function_callable_with::dont_care ) const; }; static bool const value = (sizeof(boost_intrusive_has_member_function_callable_with::no_type) == sizeof(boost_intrusive_has_member_function_callable_with::is_private_type ( (boost::move_detail::declval(). dynamic_cast_from ( boost::move_detail::declval< P0 >() ), 0 ) ) ) ); }; }}} # 352 "/usr/include/boost/intrusive/detail/has_member_function_callable_with.hpp" 3 4 namespace boost { namespace intrusive { namespace detail { template struct has_member_function_callable_with_dynamic_cast_from : public has_member_function_callable_with_dynamic_cast_from_impl ::value , P0 > {}; }}} # 53 "/usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp" 2 3 4 # 78 "/usr/include/boost/intrusive/detail/memory_util.hpp" 2 3 4 namespace boost { namespace intrusive { namespace detail { template struct boost_intrusive_default_type_element_type { template static char test(int, typename X::element_type*); template static int test(...); struct DefaultWrap { typedef DefaultType element_type; }; static const bool value = (1 == sizeof(test(0, 0))); typedef typename ::boost::intrusive::detail::if_c ::type::element_type type; }; template struct boost_intrusive_eval_default_type_element_type { template static char test(int, typename X::element_type*); template static int test(...); struct DefaultWrap { typedef typename DefaultType::type element_type; }; static const bool value = (1 == sizeof(test(0, 0))); typedef typename ::boost::intrusive::detail::eval_if_c < value , ::boost::intrusive::detail::identity , ::boost::intrusive::detail::identity >::type::element_type type; }; template struct boost_intrusive_default_type_difference_type { template static char test(int, typename X::difference_type*); template static int test(...); struct DefaultWrap { typedef DefaultType difference_type; }; static const bool value = (1 == sizeof(test(0, 0))); typedef typename ::boost::intrusive::detail::if_c ::type::difference_type type; }; template struct boost_intrusive_eval_default_type_difference_type { template static char test(int, typename X::difference_type*); template static int test(...); struct DefaultWrap { typedef typename DefaultType::type difference_type; }; static const bool value = (1 == sizeof(test(0, 0))); typedef typename ::boost::intrusive::detail::eval_if_c < value , ::boost::intrusive::detail::identity , ::boost::intrusive::detail::identity >::type::difference_type type; }; template struct boost_intrusive_default_type_reference { template static char test(int, typename X::reference*); template static int test(...); struct DefaultWrap { typedef DefaultType reference; }; static const bool value = (1 == sizeof(test(0, 0))); typedef typename ::boost::intrusive::detail::if_c ::type::reference type; }; template struct boost_intrusive_eval_default_type_reference { template static char test(int, typename X::reference*); template static int test(...); struct DefaultWrap { typedef typename DefaultType::type reference; }; static const bool value = (1 == sizeof(test(0, 0))); typedef typename ::boost::intrusive::detail::eval_if_c < value , ::boost::intrusive::detail::identity , ::boost::intrusive::detail::identity >::type::reference type; }; template struct boost_intrusive_default_type_value_traits_ptr { template static char test(int, typename X::value_traits_ptr*); template static int test(...); struct DefaultWrap { typedef DefaultType value_traits_ptr; }; static const bool value = (1 == sizeof(test(0, 0))); typedef typename ::boost::intrusive::detail::if_c ::type::value_traits_ptr type; }; template struct boost_intrusive_eval_default_type_value_traits_ptr { template static char test(int, typename X::value_traits_ptr*); template static int test(...); struct DefaultWrap { typedef typename DefaultType::type value_traits_ptr; }; static const bool value = (1 == sizeof(test(0, 0))); typedef typename ::boost::intrusive::detail::eval_if_c < value , ::boost::intrusive::detail::identity , ::boost::intrusive::detail::identity >::type::value_traits_ptr type; }; } } } # 28 "/usr/include/boost/intrusive/pointer_traits.hpp" 2 3 4 # 1 "/usr/include/boost/intrusive/pointer_rebind.hpp" 1 3 4 # 20 "/usr/include/boost/intrusive/pointer_rebind.hpp" 3 4 namespace boost { namespace intrusive { template struct pointer_has_rebind { template struct any { any(const V&) { } }; template static char test(int, typename X::template rebind*); template static int test(any, void*); static const bool value = (1 == sizeof(test(0, 0))); }; template struct pointer_has_rebind_other { template struct any { any(const V&) { } }; template static char test(int, typename X::template rebind::other*); template static int test(any, void*); static const bool value = (1 == sizeof(test(0, 0))); }; template struct pointer_rebind_mode { static const unsigned int rebind = (unsigned int)pointer_has_rebind::value; static const unsigned int rebind_other = (unsigned int)pointer_has_rebind_other::value; static const unsigned int mode = rebind + rebind*rebind_other; }; template struct pointer_rebinder; template struct pointer_rebinder< Ptr, U, 2u > { typedef typename Ptr::template rebind::other type; }; template struct pointer_rebinder< Ptr, U, 1u > { typedef typename Ptr::template rebind type; }; # 108 "/usr/include/boost/intrusive/pointer_rebind.hpp" 3 4 template