https://launchpad.net/ubuntu/+source/hepmc3/3.1.2-2/+build/19104336 RUN: /usr/share/launchpad-buildd/bin/builder-prep Kernel version: Linux riscv64-qemu-lcy01-029 5.3.0-13-generic #14+riscv64.5-Ubuntu SMP Wed Nov 13 20:10:41 UTC 2019 riscv64 Buildd toolchain package versions: launchpad-buildd_188 python-lpbuildd_188 sbuild_0.79.0-1ubuntu1 git_1:2.25.1-1ubuntu1 dpkg-dev_1.19.7ubuntu2 python-debian_0.1.36build1. Syncing the system clock with the buildd NTP service... 9 Apr 16:18:08 ntpdate[30659]: adjust time server 10.211.37.1 offset -0.001245 sec RUN: /usr/share/launchpad-buildd/bin/in-target unpack-chroot --backend=chroot --series=focal --arch=riscv64 PACKAGEBUILD-19104336 --image-type chroot /home/buildd/filecache-default/88ad86cb2b525f1abddded96eadf8014548f7845 Creating target for build PACKAGEBUILD-19104336 RUN: /usr/share/launchpad-buildd/bin/in-target mount-chroot --backend=chroot --series=focal --arch=riscv64 PACKAGEBUILD-19104336 Starting target for build PACKAGEBUILD-19104336 RUN: /usr/share/launchpad-buildd/bin/in-target override-sources-list --backend=chroot --series=focal --arch=riscv64 PACKAGEBUILD-19104336 'deb http://ftpmaster.internal/ubuntu focal main universe' Overriding sources.list in build-PACKAGEBUILD-19104336 RUN: /usr/share/launchpad-buildd/bin/in-target update-debian-chroot --backend=chroot --series=focal --arch=riscv64 PACKAGEBUILD-19104336 Updating target for build PACKAGEBUILD-19104336 Ign:1 http://archive-team.internal/bootstrap/riscv64 focal InRelease Get:2 http://ftpmaster.internal/ubuntu focal InRelease [265 kB] Get:3 http://archive-team.internal/bootstrap/riscv64 focal Release [754 B] Ign:4 http://archive-team.internal/bootstrap/riscv64 focal Release.gpg Get:5 http://ftpmaster.internal/ubuntu focal-proposed InRelease [265 kB] Get:6 http://archive-team.internal/bootstrap/riscv64 focal/main riscv64 Packages [39.3 kB] Get:7 http://ftpmaster.internal/ubuntu focal/main riscv64 Packages [848 kB] Get:8 http://ftpmaster.internal/ubuntu focal/main Translation-en [502 kB] Get:9 http://ftpmaster.internal/ubuntu focal/universe riscv64 Packages [7379 kB] Get:10 http://ftpmaster.internal/ubuntu focal/universe Translation-en [5129 kB] Get:11 http://ftpmaster.internal/ubuntu focal-proposed/main riscv64 Packages [33.4 kB] Get:12 http://ftpmaster.internal/ubuntu focal-proposed/main Translation-en [31.9 kB] Get:13 http://ftpmaster.internal/ubuntu focal-proposed/restricted Translation-en [1496 B] Get:14 http://ftpmaster.internal/ubuntu focal-proposed/universe riscv64 Packages [110 kB] Get:15 http://ftpmaster.internal/ubuntu focal-proposed/universe Translation-en [99.3 kB] Get:16 http://ftpmaster.internal/ubuntu focal-proposed/multiverse riscv64 Packages [1140 B] Get:17 http://ftpmaster.internal/ubuntu focal-proposed/multiverse Translation-en [4424 B] Fetched 14.7 MB in 33s (447 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... Calculating upgrade... The following packages will be upgraded: apt binutils binutils-common binutils-riscv64-linux-gnu bsdutils coreutils cpp-9 g++-9 gcc-8-base gcc-9 gcc-9-base libapt-pkg6.0 libbinutils libblkid1 libc-bin libc-dev-bin libc6 libc6-dev libctf-nobfd0 libctf0 libgcc-9-dev libgnutls30 liblocale-gettext-perl libmount1 libperl5.30 libsmartcols1 libstdc++-9-dev libsystemd0 libtext-charwidth-perl libtext-iconv-perl libudev1 libuuid1 linux-libc-dev login mount passwd perl-base util-linux 38 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 44.2 MB of archives. After this operation, 312 kB disk space will be freed. Get:1 http://ftpmaster.internal/ubuntu focal/main riscv64 bsdutils riscv64 1:2.34-0.1ubuntu9 [57.0 kB] Get:2 http://ftpmaster.internal/ubuntu focal/main riscv64 coreutils riscv64 8.30-3ubuntu2 [1158 kB] Get:3 http://ftpmaster.internal/ubuntu focal/main riscv64 login riscv64 1:4.8.1-1ubuntu4 [216 kB] Get:4 http://ftpmaster.internal/ubuntu focal/main riscv64 perl-base riscv64 5.30.0-9build1 [1419 kB] Get:5 http://ftpmaster.internal/ubuntu focal/main riscv64 util-linux riscv64 2.34-0.1ubuntu9 [947 kB] Get:6 http://ftpmaster.internal/ubuntu focal/main riscv64 libc6-dev riscv64 2.31-0ubuntu7 [3659 kB] Get:7 http://ftpmaster.internal/ubuntu focal/main riscv64 libc-dev-bin riscv64 2.31-0ubuntu7 [62.5 kB] Get:8 http://ftpmaster.internal/ubuntu focal-proposed/main riscv64 linux-libc-dev riscv64 5.4.0-23.27 [1089 kB] Get:9 http://ftpmaster.internal/ubuntu focal/main riscv64 libc6 riscv64 2.31-0ubuntu7 [2272 kB] Get:10 http://ftpmaster.internal/ubuntu focal/main riscv64 libc-bin riscv64 2.31-0ubuntu7 [505 kB] Get:11 http://ftpmaster.internal/ubuntu focal/main riscv64 libsystemd0 riscv64 245.4-2ubuntu1 [242 kB] Get:12 http://ftpmaster.internal/ubuntu focal/main riscv64 libudev1 riscv64 245.4-2ubuntu1 [69.9 kB] Get:13 http://ftpmaster.internal/ubuntu focal/main riscv64 libapt-pkg6.0 riscv64 2.0.1ubuntu1 [797 kB] Get:14 http://ftpmaster.internal/ubuntu focal/main riscv64 libgnutls30 riscv64 3.6.13-2ubuntu1 [720 kB] Get:15 http://ftpmaster.internal/ubuntu focal/main riscv64 apt riscv64 2.0.1ubuntu1 [1231 kB] Get:16 http://ftpmaster.internal/ubuntu focal/main riscv64 mount riscv64 2.34-0.1ubuntu9 [107 kB] Get:17 http://ftpmaster.internal/ubuntu focal/main riscv64 liblocale-gettext-perl riscv64 1.07-4 [16.5 kB] Get:18 http://ftpmaster.internal/ubuntu focal/main riscv64 libblkid1 riscv64 2.34-0.1ubuntu9 [129 kB] Get:19 http://ftpmaster.internal/ubuntu focal/main riscv64 libmount1 riscv64 2.34-0.1ubuntu9 [135 kB] Get:20 http://ftpmaster.internal/ubuntu focal/main riscv64 libsmartcols1 riscv64 2.34-0.1ubuntu9 [90.4 kB] Get:21 http://ftpmaster.internal/ubuntu focal/main riscv64 libuuid1 riscv64 2.34-0.1ubuntu9 [22.2 kB] Get:22 http://ftpmaster.internal/ubuntu focal/main riscv64 passwd riscv64 1:4.8.1-1ubuntu4 [752 kB] Get:23 http://ftpmaster.internal/ubuntu focal/main riscv64 libtext-charwidth-perl riscv64 0.04-10 [9460 B] Get:24 http://ftpmaster.internal/ubuntu focal/main riscv64 libtext-iconv-perl riscv64 1.7-7 [13.2 kB] Get:25 http://ftpmaster.internal/ubuntu focal-proposed/main riscv64 libctf0 riscv64 2.34-6ubuntu1 [39.9 kB] Get:26 http://ftpmaster.internal/ubuntu focal-proposed/universe riscv64 binutils-riscv64-linux-gnu riscv64 2.34-6ubuntu1 [646 kB] Get:27 http://ftpmaster.internal/ubuntu focal-proposed/main riscv64 binutils-common riscv64 2.34-6ubuntu1 [199 kB] Get:28 http://ftpmaster.internal/ubuntu focal-proposed/main riscv64 binutils riscv64 2.34-6ubuntu1 [3292 B] Get:29 http://ftpmaster.internal/ubuntu focal-proposed/main riscv64 libbinutils riscv64 2.34-6ubuntu1 [279 kB] Get:30 http://ftpmaster.internal/ubuntu focal-proposed/main riscv64 libctf-nobfd0 riscv64 2.34-6ubuntu1 [40.6 kB] Get:31 http://ftpmaster.internal/ubuntu focal/main riscv64 g++-9 riscv64 9.3.0-10ubuntu1 [6926 kB] Get:32 http://ftpmaster.internal/ubuntu focal/main riscv64 gcc-9 riscv64 9.3.0-10ubuntu1 [6788 kB] Get:33 http://ftpmaster.internal/ubuntu focal/main riscv64 libstdc++-9-dev riscv64 9.3.0-10ubuntu1 [3649 kB] Get:34 http://ftpmaster.internal/ubuntu focal/main riscv64 libgcc-9-dev riscv64 9.3.0-10ubuntu1 [404 kB] Get:35 http://ftpmaster.internal/ubuntu focal/main riscv64 cpp-9 riscv64 9.3.0-10ubuntu1 [6046 kB] Get:36 http://ftpmaster.internal/ubuntu focal/main riscv64 gcc-9-base riscv64 9.3.0-10ubuntu1 [19.2 kB] Get:37 http://ftpmaster.internal/ubuntu focal/universe riscv64 gcc-8-base riscv64 8.4.0-3ubuntu2 [18.4 kB] Get:38 http://ftpmaster.internal/ubuntu focal/main riscv64 libperl5.30 riscv64 5.30.0-9build1 [3422 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 44.2 MB in 10s (4369 kB/s) (Reading database ... 9818 files and directories currently installed.) Preparing to unpack .../bsdutils_1%3a2.34-0.1ubuntu9_riscv64.deb ... Unpacking bsdutils (1:2.34-0.1ubuntu9) over (1:2.34-0.1ubuntu8) ... Setting up bsdutils (1:2.34-0.1ubuntu9) ... (Reading database ... 9818 files and directories currently installed.) Preparing to unpack .../coreutils_8.30-3ubuntu2_riscv64.deb ... Unpacking coreutils (8.30-3ubuntu2) over (8.30-3ubuntu2) ... Setting up coreutils (8.30-3ubuntu2) ... (Reading database ... 9818 files and directories currently installed.) Preparing to unpack .../login_1%3a4.8.1-1ubuntu4_riscv64.deb ... Unpacking login (1:4.8.1-1ubuntu4) over (1:4.8.1-1ubuntu3) ... Setting up login (1:4.8.1-1ubuntu4) ... (Reading database ... 9818 files and directories currently installed.) Preparing to unpack .../perl-base_5.30.0-9build1_riscv64.deb ... Unpacking perl-base (5.30.0-9build1) over (5.30.0-9build1) ... Setting up perl-base (5.30.0-9build1) ... (Reading database ... 9818 files and directories currently installed.) Preparing to unpack .../util-linux_2.34-0.1ubuntu9_riscv64.deb ... Unpacking util-linux (2.34-0.1ubuntu9) over (2.34-0.1ubuntu8) ... Setting up util-linux (2.34-0.1ubuntu9) ... (Reading database ... 9818 files and directories currently installed.) Preparing to unpack .../libc6-dev_2.31-0ubuntu7_riscv64.deb ... Unpacking libc6-dev:riscv64 (2.31-0ubuntu7) over (2.31-0ubuntu6~riscv64.1) ... Preparing to unpack .../libc-dev-bin_2.31-0ubuntu7_riscv64.deb ... Unpacking libc-dev-bin (2.31-0ubuntu7) over (2.31-0ubuntu6~riscv64.1) ... Preparing to unpack .../linux-libc-dev_5.4.0-23.27_riscv64.deb ... Unpacking linux-libc-dev:riscv64 (5.4.0-23.27) over (5.4.0-21.25) ... Preparing to unpack .../libc6_2.31-0ubuntu7_riscv64.deb ... Unpacking libc6:riscv64 (2.31-0ubuntu7) over (2.31-0ubuntu6~riscv64.1) ... Setting up libc6:riscv64 (2.31-0ubuntu7) ... (Reading database ... 9818 files and directories currently installed.) Preparing to unpack .../libc-bin_2.31-0ubuntu7_riscv64.deb ... Unpacking libc-bin (2.31-0ubuntu7) over (2.31-0ubuntu6~riscv64.1) ... Setting up libc-bin (2.31-0ubuntu7) ... (Reading database ... 9818 files and directories currently installed.) Preparing to unpack .../libsystemd0_245.4-2ubuntu1_riscv64.deb ... Unpacking libsystemd0:riscv64 (245.4-2ubuntu1) over (244.3-1ubuntu1) ... Setting up libsystemd0:riscv64 (245.4-2ubuntu1) ... (Reading database ... 9818 files and directories currently installed.) Preparing to unpack .../libudev1_245.4-2ubuntu1_riscv64.deb ... Unpacking libudev1:riscv64 (245.4-2ubuntu1) over (244.3-1ubuntu1) ... Setting up libudev1:riscv64 (245.4-2ubuntu1) ... (Reading database ... 9818 files and directories currently installed.) Preparing to unpack .../libapt-pkg6.0_2.0.1ubuntu1_riscv64.deb ... Unpacking libapt-pkg6.0:riscv64 (2.0.1ubuntu1) over (2.0.1) ... Setting up libapt-pkg6.0:riscv64 (2.0.1ubuntu1) ... (Reading database ... 9818 files and directories currently installed.) Preparing to unpack .../libgnutls30_3.6.13-2ubuntu1_riscv64.deb ... Unpacking libgnutls30:riscv64 (3.6.13-2ubuntu1) over (3.6.11.1-2ubuntu2) ... Setting up libgnutls30:riscv64 (3.6.13-2ubuntu1) ... (Reading database ... 9818 files and directories currently installed.) Preparing to unpack .../apt_2.0.1ubuntu1_riscv64.deb ... Unpacking apt (2.0.1ubuntu1) over (2.0.1) ... Setting up apt (2.0.1ubuntu1) ... (Reading database ... 9818 files and directories currently installed.) Preparing to unpack .../mount_2.34-0.1ubuntu9_riscv64.deb ... Unpacking mount (2.34-0.1ubuntu9) over (2.34-0.1ubuntu8) ... Preparing to unpack .../liblocale-gettext-perl_1.07-4_riscv64.deb ... Unpacking liblocale-gettext-perl (1.07-4) over (1.07-4) ... Preparing to unpack .../libblkid1_2.34-0.1ubuntu9_riscv64.deb ... Unpacking libblkid1:riscv64 (2.34-0.1ubuntu9) over (2.34-0.1ubuntu8) ... Setting up libblkid1:riscv64 (2.34-0.1ubuntu9) ... (Reading database ... 9818 files and directories currently installed.) Preparing to unpack .../libmount1_2.34-0.1ubuntu9_riscv64.deb ... Unpacking libmount1:riscv64 (2.34-0.1ubuntu9) over (2.34-0.1ubuntu8) ... Setting up libmount1:riscv64 (2.34-0.1ubuntu9) ... (Reading database ... 9818 files and directories currently installed.) Preparing to unpack .../libsmartcols1_2.34-0.1ubuntu9_riscv64.deb ... Unpacking libsmartcols1:riscv64 (2.34-0.1ubuntu9) over (2.34-0.1ubuntu8) ... Setting up libsmartcols1:riscv64 (2.34-0.1ubuntu9) ... (Reading database ... 9818 files and directories currently installed.) Preparing to unpack .../libuuid1_2.34-0.1ubuntu9_riscv64.deb ... Unpacking libuuid1:riscv64 (2.34-0.1ubuntu9) over (2.34-0.1ubuntu8) ... Setting up libuuid1:riscv64 (2.34-0.1ubuntu9) ... (Reading database ... 9818 files and directories currently installed.) Preparing to unpack .../passwd_1%3a4.8.1-1ubuntu4_riscv64.deb ... Unpacking passwd (1:4.8.1-1ubuntu4) over (1:4.8.1-1ubuntu3) ... Setting up passwd (1:4.8.1-1ubuntu4) ... (Reading database ... 9818 files and directories currently installed.) Preparing to unpack .../00-libtext-charwidth-perl_0.04-10_riscv64.deb ... Unpacking libtext-charwidth-perl (0.04-10) over (0.04-10) ... Preparing to unpack .../01-libtext-iconv-perl_1.7-7_riscv64.deb ... Unpacking libtext-iconv-perl (1.7-7) over (1.7-7) ... Preparing to unpack .../02-libctf0_2.34-6ubuntu1_riscv64.deb ... Unpacking libctf0:riscv64 (2.34-6ubuntu1) over (2.34-5ubuntu1) ... Preparing to unpack .../03-binutils-riscv64-linux-gnu_2.34-6ubuntu1_riscv64.deb ... Unpacking binutils-riscv64-linux-gnu (2.34-6ubuntu1) over (2.34-5ubuntu1) ... Preparing to unpack .../04-binutils-common_2.34-6ubuntu1_riscv64.deb ... Unpacking binutils-common:riscv64 (2.34-6ubuntu1) over (2.34-5ubuntu1) ... Preparing to unpack .../05-binutils_2.34-6ubuntu1_riscv64.deb ... Unpacking binutils (2.34-6ubuntu1) over (2.34-5ubuntu1) ... Preparing to unpack .../06-libbinutils_2.34-6ubuntu1_riscv64.deb ... Unpacking libbinutils:riscv64 (2.34-6ubuntu1) over (2.34-5ubuntu1) ... Preparing to unpack .../07-libctf-nobfd0_2.34-6ubuntu1_riscv64.deb ... Unpacking libctf-nobfd0:riscv64 (2.34-6ubuntu1) over (2.34-5ubuntu1) ... Preparing to unpack .../08-g++-9_9.3.0-10ubuntu1_riscv64.deb ... Unpacking g++-9 (9.3.0-10ubuntu1) over (9.3.0-8ubuntu1) ... Preparing to unpack .../09-gcc-9_9.3.0-10ubuntu1_riscv64.deb ... Unpacking gcc-9 (9.3.0-10ubuntu1) over (9.3.0-8ubuntu1) ... Preparing to unpack .../10-libstdc++-9-dev_9.3.0-10ubuntu1_riscv64.deb ... Unpacking libstdc++-9-dev:riscv64 (9.3.0-10ubuntu1) over (9.3.0-8ubuntu1) ... Preparing to unpack .../11-libgcc-9-dev_9.3.0-10ubuntu1_riscv64.deb ... Unpacking libgcc-9-dev:riscv64 (9.3.0-10ubuntu1) over (9.3.0-8ubuntu1) ... Preparing to unpack .../12-cpp-9_9.3.0-10ubuntu1_riscv64.deb ... Unpacking cpp-9 (9.3.0-10ubuntu1) over (9.3.0-8ubuntu1) ... Preparing to unpack .../13-gcc-9-base_9.3.0-10ubuntu1_riscv64.deb ... Unpacking gcc-9-base:riscv64 (9.3.0-10ubuntu1) over (9.3.0-8ubuntu1) ... Preparing to unpack .../14-gcc-8-base_8.4.0-3ubuntu2_riscv64.deb ... Unpacking gcc-8-base:riscv64 (8.4.0-3ubuntu2) over (8.4.0-3ubuntu1) ... Preparing to unpack .../15-libperl5.30_5.30.0-9build1_riscv64.deb ... Unpacking libperl5.30:riscv64 (5.30.0-9build1) over (5.30.0-9build1) ... Setting up libtext-iconv-perl (1.7-7) ... Setting up libtext-charwidth-perl (0.04-10) ... Setting up binutils-common:riscv64 (2.34-6ubuntu1) ... Setting up linux-libc-dev:riscv64 (5.4.0-23.27) ... Setting up libctf-nobfd0:riscv64 (2.34-6ubuntu1) ... Setting up gcc-8-base:riscv64 (8.4.0-3ubuntu2) ... Setting up mount (2.34-0.1ubuntu9) ... Setting up libperl5.30:riscv64 (5.30.0-9build1) ... Setting up libbinutils:riscv64 (2.34-6ubuntu1) ... Setting up libc-dev-bin (2.31-0ubuntu7) ... Setting up liblocale-gettext-perl (1.07-4) ... Setting up gcc-9-base:riscv64 (9.3.0-10ubuntu1) ... Setting up libctf0:riscv64 (2.34-6ubuntu1) ... Setting up binutils-riscv64-linux-gnu (2.34-6ubuntu1) ... Setting up binutils (2.34-6ubuntu1) ... Setting up libgcc-9-dev:riscv64 (9.3.0-10ubuntu1) ... Setting up cpp-9 (9.3.0-10ubuntu1) ... Setting up libc6-dev:riscv64 (2.31-0ubuntu7) ... Setting up gcc-9 (9.3.0-10ubuntu1) ... Setting up libstdc++-9-dev:riscv64 (9.3.0-10ubuntu1) ... Setting up g++-9 (9.3.0-10ubuntu1) ... Processing triggers for libc-bin (2.31-0ubuntu7) ... RUN: /usr/share/launchpad-buildd/bin/sbuild-package PACKAGEBUILD-19104336 riscv64 focal -c chroot:build-PACKAGEBUILD-19104336 --arch=riscv64 --dist=focal --nolog hepmc3_3.1.2-2.dsc Initiating build PACKAGEBUILD-19104336 with 4 jobs across 4 processor cores. Kernel reported to sbuild: 5.3.0-13-generic #14+riscv64.5-Ubuntu SMP Wed Nov 13 20:10:41 UTC 2019 riscv64 sbuild (Debian sbuild) 0.79.0 (05 February 2020) on riscv64-qemu-lcy01-029 +==============================================================================+ | hepmc3 3.1.2-2 (riscv64) Thu, 09 Apr 2020 16:23:13 +0000 | +==============================================================================+ Package: hepmc3 Version: 3.1.2-2 Source Version: 3.1.2-2 Distribution: focal Machine Architecture: riscv64 Host Architecture: riscv64 Build Architecture: riscv64 Build Type: any I: NOTICE: Log filtering will replace 'home/buildd/build-PACKAGEBUILD-19104336/chroot-autobuild' with '<>' I: NOTICE: Log filtering will replace 'build/hepmc3-fTiVwt/resolver-Sajvl0' with '<>' +------------------------------------------------------------------------------+ | Fetch source files | +------------------------------------------------------------------------------+ Local sources ------------- hepmc3_3.1.2-2.dsc exists in .; copying to chroot I: NOTICE: Log filtering will replace 'build/hepmc3-fTiVwt/hepmc3-3.1.2' with '<>' I: NOTICE: Log filtering will replace 'build/hepmc3-fTiVwt' with '<>' +------------------------------------------------------------------------------+ | Install package build dependencies | +------------------------------------------------------------------------------+ Setup apt archive ----------------- Merged Build-Depends: debhelper (>= 9~), cmake, doxygen, build-essential, fakeroot Filtered Build-Depends: debhelper (>= 9~), cmake, doxygen, build-essential, fakeroot dpkg-deb: building package 'sbuild-build-depends-main-dummy' in '/<>/apt_archive/sbuild-build-depends-main-dummy.deb'. Ign:1 copy:/<>/apt_archive ./ InRelease Get:2 copy:/<>/apt_archive ./ Release [957 B] Ign:3 copy:/<>/apt_archive ./ Release.gpg Get:4 copy:/<>/apt_archive ./ Sources [379 B] Get:5 copy:/<>/apt_archive ./ Packages [464 B] Fetched 1800 B in 0s (4223 B/s) Reading package lists... Reading package lists... Install main build dependencies (apt-based resolver) ---------------------------------------------------- Installing build dependencies Reading package lists... Building dependency tree... Reading state information... The following package was automatically installed and is no longer required: libgpm2 Use 'apt autoremove' to remove it. The following additional packages will be installed: autoconf automake autopoint autotools-dev bsdmainutils cmake cmake-data debhelper dh-autoreconf dh-strip-nondeterminism doxygen dwz file gettext gettext-base groff-base intltool-debian libarchive-zip-perl libarchive13 libasn1-8-heimdal libbrotli1 libbsd0 libcroco3 libcurl4 libdebhelper-perl libelf1 libexpat1 libfile-stripnondeterminism-perl libglib2.0-0 libgssapi-krb5-2 libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libicu66 libjsoncpp1 libk5crypto3 libkeyutils1 libkrb5-26-heimdal libkrb5-3 libkrb5support0 libldap-2.4-2 libldap-common libmagic-mgc libmagic1 libncurses6 libnghttp2-14 libpipeline1 libprocps8 libpsl5 librhash0 libroken18-heimdal librtmp1 libsasl2-2 libsasl2-modules-db libsigsegv2 libssh-4 libsub-override-perl libtool libuchardet0 libuv1 libwind0-heimdal libxapian30 libxml2 m4 man-db po-debconf procps tzdata Suggested packages: autoconf-archive gnu-standards autoconf-doc wamerican | wordlist whois vacation cmake-doc ninja-build dh-make doxygen-latex doxygen-doc doxygen-gui graphviz gettext-doc libasprintf-dev libgettextpo-dev groff lrzip krb5-doc krb5-user libtool-doc gfortran | fortran95-compiler gcj-jdk xapian-tools m4-doc apparmor less www-browser libmail-box-perl Recommended packages: curl | wget | lynx libarchive-cpio-perl libglib2.0-data shared-mime-info xdg-user-dirs krb5-locales publicsuffix libsasl2-modules libltdl-dev libmail-sendmail-perl psmisc The following NEW packages will be installed: autoconf automake autopoint autotools-dev bsdmainutils cmake cmake-data debhelper dh-autoreconf dh-strip-nondeterminism doxygen dwz file gettext gettext-base groff-base intltool-debian libarchive-zip-perl libarchive13 libasn1-8-heimdal libbrotli1 libbsd0 libcroco3 libcurl4 libdebhelper-perl libelf1 libexpat1 libfile-stripnondeterminism-perl libglib2.0-0 libgssapi-krb5-2 libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libicu66 libjsoncpp1 libk5crypto3 libkeyutils1 libkrb5-26-heimdal libkrb5-3 libkrb5support0 libldap-2.4-2 libldap-common libmagic-mgc libmagic1 libncurses6 libnghttp2-14 libpipeline1 libprocps8 libpsl5 librhash0 libroken18-heimdal librtmp1 libsasl2-2 libsasl2-modules-db libsigsegv2 libssh-4 libsub-override-perl libtool libuchardet0 libuv1 libwind0-heimdal libxapian30 libxml2 m4 man-db po-debconf procps sbuild-build-depends-main-dummy tzdata 0 upgraded, 71 newly installed, 0 to remove and 0 not upgraded. Need to get 30.1 MB of archives. After this operation, 119 MB of additional disk space will be used. Get:1 copy:/<>/apt_archive ./ sbuild-build-depends-main-dummy 0.invalid.0 [880 B] Get:2 http://ftpmaster.internal/ubuntu focal/main riscv64 libbsd0 riscv64 0.10.0-1 [42.0 kB] Get:3 http://ftpmaster.internal/ubuntu focal/main riscv64 bsdmainutils riscv64 11.1.2ubuntu3 [176 kB] Get:4 http://ftpmaster.internal/ubuntu focal/main riscv64 libuchardet0 riscv64 0.0.6-3build1 [64.9 kB] Get:5 http://ftpmaster.internal/ubuntu focal/main riscv64 groff-base riscv64 1.22.4-4build1 [816 kB] Get:6 http://ftpmaster.internal/ubuntu focal/main riscv64 libpipeline1 riscv64 1.5.2-2build1 [23.9 kB] Get:7 http://ftpmaster.internal/ubuntu focal/main riscv64 man-db riscv64 2.9.1-1 [1075 kB] Get:8 http://ftpmaster.internal/ubuntu focal/main riscv64 libncurses6 riscv64 6.2-0ubuntu2 [86.2 kB] Get:9 http://ftpmaster.internal/ubuntu focal/main riscv64 libprocps8 riscv64 2:3.3.16-1ubuntu2 [29.8 kB] Get:10 http://ftpmaster.internal/ubuntu focal/main riscv64 procps riscv64 2:3.3.16-1ubuntu2 [224 kB] Get:11 http://ftpmaster.internal/ubuntu focal/main riscv64 libmagic-mgc riscv64 1:5.38-4 [218 kB] Get:12 http://ftpmaster.internal/ubuntu focal/main riscv64 libmagic1 riscv64 1:5.38-4 [70.5 kB] Get:13 http://ftpmaster.internal/ubuntu focal/main riscv64 file riscv64 1:5.38-4 [22.5 kB] Get:14 http://ftpmaster.internal/ubuntu focal/main riscv64 libelf1 riscv64 0.176-1.1build1 [41.8 kB] Get:15 http://ftpmaster.internal/ubuntu focal/main riscv64 libexpat1 riscv64 2.2.9-1build1 [68.8 kB] Get:16 http://ftpmaster.internal/ubuntu focal/main riscv64 libglib2.0-0 riscv64 2.64.1-1 [1122 kB] Get:17 http://ftpmaster.internal/ubuntu focal/main riscv64 tzdata all 2019c-3ubuntu1 [294 kB] Get:18 http://ftpmaster.internal/ubuntu focal/main riscv64 libicu66 riscv64 66.1-2ubuntu2 [8406 kB] Get:19 http://ftpmaster.internal/ubuntu focal/main riscv64 libxml2 riscv64 2.9.10+dfsg-4build1 [558 kB] Get:20 http://ftpmaster.internal/ubuntu focal/main riscv64 gettext-base riscv64 0.19.8.1-10build1 [47.4 kB] Get:21 http://ftpmaster.internal/ubuntu focal/main riscv64 libkrb5support0 riscv64 1.17-6ubuntu4 [28.3 kB] Get:22 http://ftpmaster.internal/ubuntu focal/main riscv64 libk5crypto3 riscv64 1.17-6ubuntu4 [91.8 kB] Get:23 http://ftpmaster.internal/ubuntu focal/main riscv64 libkeyutils1 riscv64 1.6-6ubuntu1 [9316 B] Get:24 http://ftpmaster.internal/ubuntu focal/main riscv64 libkrb5-3 riscv64 1.17-6ubuntu4 [295 kB] Get:25 http://ftpmaster.internal/ubuntu focal/main riscv64 libgssapi-krb5-2 riscv64 1.17-6ubuntu4 [107 kB] Get:26 http://ftpmaster.internal/ubuntu focal/main riscv64 libpsl5 riscv64 0.21.0-1ubuntu1 [50.5 kB] Get:27 http://ftpmaster.internal/ubuntu focal/main riscv64 libsigsegv2 riscv64 2.12-2 [13.0 kB] Get:28 http://ftpmaster.internal/ubuntu focal/main riscv64 m4 riscv64 1.4.18-4 [188 kB] Get:29 http://ftpmaster.internal/ubuntu focal/main riscv64 autoconf all 2.69-11.1 [321 kB] Get:30 http://ftpmaster.internal/ubuntu focal/main riscv64 autotools-dev all 20180224.1 [39.6 kB] Get:31 http://ftpmaster.internal/ubuntu focal/main riscv64 automake all 1:1.16.1-4ubuntu6 [522 kB] Get:32 http://ftpmaster.internal/ubuntu focal/main riscv64 autopoint all 0.19.8.1-10build1 [412 kB] Get:33 http://ftpmaster.internal/ubuntu focal/main riscv64 cmake-data all 3.16.3-1ubuntu1 [1612 kB] Get:34 http://ftpmaster.internal/ubuntu focal/main riscv64 libarchive13 riscv64 3.4.0-2ubuntu1 [302 kB] Get:35 http://ftpmaster.internal/ubuntu focal/main riscv64 libbrotli1 riscv64 1.0.7-6build1 [279 kB] Get:36 http://ftpmaster.internal/ubuntu focal/main riscv64 libroken18-heimdal riscv64 7.7.0+dfsg-1ubuntu1 [36.5 kB] Get:37 http://ftpmaster.internal/ubuntu focal/main riscv64 libasn1-8-heimdal riscv64 7.7.0+dfsg-1ubuntu1 [145 kB] Get:38 http://ftpmaster.internal/ubuntu focal/main riscv64 libheimbase1-heimdal riscv64 7.7.0+dfsg-1ubuntu1 [24.7 kB] Get:39 http://ftpmaster.internal/ubuntu focal/main riscv64 libhcrypto4-heimdal riscv64 7.7.0+dfsg-1ubuntu1 [86.5 kB] Get:40 http://ftpmaster.internal/ubuntu focal/main riscv64 libwind0-heimdal riscv64 7.7.0+dfsg-1ubuntu1 [47.0 kB] Get:41 http://ftpmaster.internal/ubuntu focal/main riscv64 libhx509-5-heimdal riscv64 7.7.0+dfsg-1ubuntu1 [90.1 kB] Get:42 http://ftpmaster.internal/ubuntu focal/main riscv64 libkrb5-26-heimdal riscv64 7.7.0+dfsg-1ubuntu1 [175 kB] Get:43 http://ftpmaster.internal/ubuntu focal/main riscv64 libheimntlm0-heimdal riscv64 7.7.0+dfsg-1ubuntu1 [13.4 kB] Get:44 http://ftpmaster.internal/ubuntu focal/main riscv64 libgssapi3-heimdal riscv64 7.7.0+dfsg-1ubuntu1 [83.3 kB] Get:45 http://ftpmaster.internal/ubuntu focal/main riscv64 libsasl2-modules-db riscv64 2.1.27+dfsg-2 [13.7 kB] Get:46 http://ftpmaster.internal/ubuntu focal/main riscv64 libsasl2-2 riscv64 2.1.27+dfsg-2 [45.2 kB] Get:47 http://ftpmaster.internal/ubuntu focal/main riscv64 libldap-common all 2.4.49+dfsg-2ubuntu1 [17.3 kB] Get:48 http://ftpmaster.internal/ubuntu focal/main riscv64 libldap-2.4-2 riscv64 2.4.49+dfsg-2ubuntu1 [137 kB] Get:49 http://ftpmaster.internal/ubuntu focal/main riscv64 libnghttp2-14 riscv64 1.40.0-1build1 [70.9 kB] Get:50 http://ftpmaster.internal/ubuntu focal/main riscv64 librtmp1 riscv64 2.4+20151223.gitfa8646d.1-2build1 [50.8 kB] Get:51 http://ftpmaster.internal/ubuntu focal/main riscv64 libssh-4 riscv64 0.9.3-2ubuntu1 [147 kB] Get:52 http://ftpmaster.internal/ubuntu focal/main riscv64 libcurl4 riscv64 7.68.0-1ubuntu1 [208 kB] Get:53 http://ftpmaster.internal/ubuntu focal/main riscv64 libjsoncpp1 riscv64 1.7.4-3.1ubuntu2 [73.1 kB] Get:54 http://ftpmaster.internal/ubuntu focal/main riscv64 librhash0 riscv64 1.3.9-1 [125 kB] Get:55 http://ftpmaster.internal/ubuntu focal/main riscv64 libuv1 riscv64 1.34.2-1ubuntu1 [69.5 kB] Get:56 http://ftpmaster.internal/ubuntu focal/main riscv64 cmake riscv64 3.16.3-1ubuntu1 [3642 kB] Get:57 http://ftpmaster.internal/ubuntu focal/main riscv64 libtool all 2.4.6-14 [161 kB] Get:58 http://ftpmaster.internal/ubuntu focal/main riscv64 dh-autoreconf all 19 [16.1 kB] Get:59 http://ftpmaster.internal/ubuntu focal-proposed/main riscv64 libdebhelper-perl all 12.10ubuntu1 [62.1 kB] Get:60 http://ftpmaster.internal/ubuntu focal/main riscv64 libarchive-zip-perl all 1.67-2 [90.5 kB] Get:61 http://ftpmaster.internal/ubuntu focal/main riscv64 libsub-override-perl all 0.09-2 [9532 B] Get:62 http://ftpmaster.internal/ubuntu focal/main riscv64 libfile-stripnondeterminism-perl all 1.6.3-2 [16.0 kB] Get:63 http://ftpmaster.internal/ubuntu focal/main riscv64 dh-strip-nondeterminism all 1.6.3-2 [5228 B] Get:64 http://ftpmaster.internal/ubuntu focal/main riscv64 dwz riscv64 0.13-5 [147 kB] Get:65 http://ftpmaster.internal/ubuntu focal/main riscv64 libcroco3 riscv64 0.6.13-1 [71.1 kB] Get:66 http://ftpmaster.internal/ubuntu focal/main riscv64 gettext riscv64 0.19.8.1-10build1 [844 kB] Get:67 http://ftpmaster.internal/ubuntu focal/main riscv64 intltool-debian all 0.35.0+20060710.5 [24.9 kB] Get:68 http://ftpmaster.internal/ubuntu focal/main riscv64 po-debconf all 1.0.21 [233 kB] Get:69 http://ftpmaster.internal/ubuntu focal-proposed/main riscv64 debhelper all 12.10ubuntu1 [877 kB] Get:70 http://ftpmaster.internal/ubuntu focal/universe riscv64 libxapian30 riscv64 1.4.14-2 [631 kB] Get:71 http://ftpmaster.internal/ubuntu focal/universe riscv64 doxygen riscv64 1.8.17-0ubuntu2 [3906 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 30.1 MB in 8s (3995 kB/s) Selecting previously unselected package libbsd0:riscv64. (Reading database ... 9816 files and directories currently installed.) Preparing to unpack .../00-libbsd0_0.10.0-1_riscv64.deb ... Unpacking libbsd0:riscv64 (0.10.0-1) ... Selecting previously unselected package bsdmainutils. Preparing to unpack .../01-bsdmainutils_11.1.2ubuntu3_riscv64.deb ... Unpacking bsdmainutils (11.1.2ubuntu3) ... Selecting previously unselected package libuchardet0:riscv64. Preparing to unpack .../02-libuchardet0_0.0.6-3build1_riscv64.deb ... Unpacking libuchardet0:riscv64 (0.0.6-3build1) ... Selecting previously unselected package groff-base. Preparing to unpack .../03-groff-base_1.22.4-4build1_riscv64.deb ... Unpacking groff-base (1.22.4-4build1) ... Selecting previously unselected package libpipeline1:riscv64. Preparing to unpack .../04-libpipeline1_1.5.2-2build1_riscv64.deb ... Unpacking libpipeline1:riscv64 (1.5.2-2build1) ... Selecting previously unselected package man-db. Preparing to unpack .../05-man-db_2.9.1-1_riscv64.deb ... Unpacking man-db (2.9.1-1) ... Selecting previously unselected package libncurses6:riscv64. Preparing to unpack .../06-libncurses6_6.2-0ubuntu2_riscv64.deb ... Unpacking libncurses6:riscv64 (6.2-0ubuntu2) ... Selecting previously unselected package libprocps8:riscv64. Preparing to unpack .../07-libprocps8_2%3a3.3.16-1ubuntu2_riscv64.deb ... Unpacking libprocps8:riscv64 (2:3.3.16-1ubuntu2) ... Selecting previously unselected package procps. Preparing to unpack .../08-procps_2%3a3.3.16-1ubuntu2_riscv64.deb ... Unpacking procps (2:3.3.16-1ubuntu2) ... Selecting previously unselected package libmagic-mgc. Preparing to unpack .../09-libmagic-mgc_1%3a5.38-4_riscv64.deb ... Unpacking libmagic-mgc (1:5.38-4) ... Selecting previously unselected package libmagic1:riscv64. Preparing to unpack .../10-libmagic1_1%3a5.38-4_riscv64.deb ... Unpacking libmagic1:riscv64 (1:5.38-4) ... Selecting previously unselected package file. Preparing to unpack .../11-file_1%3a5.38-4_riscv64.deb ... Unpacking file (1:5.38-4) ... Selecting previously unselected package libelf1:riscv64. Preparing to unpack .../12-libelf1_0.176-1.1build1_riscv64.deb ... Unpacking libelf1:riscv64 (0.176-1.1build1) ... Selecting previously unselected package libexpat1:riscv64. Preparing to unpack .../13-libexpat1_2.2.9-1build1_riscv64.deb ... Unpacking libexpat1:riscv64 (2.2.9-1build1) ... Selecting previously unselected package libglib2.0-0:riscv64. Preparing to unpack .../14-libglib2.0-0_2.64.1-1_riscv64.deb ... Unpacking libglib2.0-0:riscv64 (2.64.1-1) ... Selecting previously unselected package tzdata. Preparing to unpack .../15-tzdata_2019c-3ubuntu1_all.deb ... Unpacking tzdata (2019c-3ubuntu1) ... Selecting previously unselected package libicu66:riscv64. Preparing to unpack .../16-libicu66_66.1-2ubuntu2_riscv64.deb ... Unpacking libicu66:riscv64 (66.1-2ubuntu2) ... Selecting previously unselected package libxml2:riscv64. Preparing to unpack .../17-libxml2_2.9.10+dfsg-4build1_riscv64.deb ... Unpacking libxml2:riscv64 (2.9.10+dfsg-4build1) ... Selecting previously unselected package gettext-base. Preparing to unpack .../18-gettext-base_0.19.8.1-10build1_riscv64.deb ... Unpacking gettext-base (0.19.8.1-10build1) ... Selecting previously unselected package libkrb5support0:riscv64. Preparing to unpack .../19-libkrb5support0_1.17-6ubuntu4_riscv64.deb ... Unpacking libkrb5support0:riscv64 (1.17-6ubuntu4) ... Selecting previously unselected package libk5crypto3:riscv64. Preparing to unpack .../20-libk5crypto3_1.17-6ubuntu4_riscv64.deb ... Unpacking libk5crypto3:riscv64 (1.17-6ubuntu4) ... Selecting previously unselected package libkeyutils1:riscv64. Preparing to unpack .../21-libkeyutils1_1.6-6ubuntu1_riscv64.deb ... Unpacking libkeyutils1:riscv64 (1.6-6ubuntu1) ... Selecting previously unselected package libkrb5-3:riscv64. Preparing to unpack .../22-libkrb5-3_1.17-6ubuntu4_riscv64.deb ... Unpacking libkrb5-3:riscv64 (1.17-6ubuntu4) ... Selecting previously unselected package libgssapi-krb5-2:riscv64. Preparing to unpack .../23-libgssapi-krb5-2_1.17-6ubuntu4_riscv64.deb ... Unpacking libgssapi-krb5-2:riscv64 (1.17-6ubuntu4) ... Selecting previously unselected package libpsl5:riscv64. Preparing to unpack .../24-libpsl5_0.21.0-1ubuntu1_riscv64.deb ... Unpacking libpsl5:riscv64 (0.21.0-1ubuntu1) ... Selecting previously unselected package libsigsegv2:riscv64. Preparing to unpack .../25-libsigsegv2_2.12-2_riscv64.deb ... Unpacking libsigsegv2:riscv64 (2.12-2) ... Selecting previously unselected package m4. Preparing to unpack .../26-m4_1.4.18-4_riscv64.deb ... Unpacking m4 (1.4.18-4) ... Selecting previously unselected package autoconf. Preparing to unpack .../27-autoconf_2.69-11.1_all.deb ... Unpacking autoconf (2.69-11.1) ... Selecting previously unselected package autotools-dev. Preparing to unpack .../28-autotools-dev_20180224.1_all.deb ... Unpacking autotools-dev (20180224.1) ... Selecting previously unselected package automake. Preparing to unpack .../29-automake_1%3a1.16.1-4ubuntu6_all.deb ... Unpacking automake (1:1.16.1-4ubuntu6) ... Selecting previously unselected package autopoint. Preparing to unpack .../30-autopoint_0.19.8.1-10build1_all.deb ... Unpacking autopoint (0.19.8.1-10build1) ... Selecting previously unselected package cmake-data. Preparing to unpack .../31-cmake-data_3.16.3-1ubuntu1_all.deb ... Unpacking cmake-data (3.16.3-1ubuntu1) ... Selecting previously unselected package libarchive13:riscv64. Preparing to unpack .../32-libarchive13_3.4.0-2ubuntu1_riscv64.deb ... Unpacking libarchive13:riscv64 (3.4.0-2ubuntu1) ... Selecting previously unselected package libbrotli1:riscv64. Preparing to unpack .../33-libbrotli1_1.0.7-6build1_riscv64.deb ... Unpacking libbrotli1:riscv64 (1.0.7-6build1) ... Selecting previously unselected package libroken18-heimdal:riscv64. Preparing to unpack .../34-libroken18-heimdal_7.7.0+dfsg-1ubuntu1_riscv64.deb ... Unpacking libroken18-heimdal:riscv64 (7.7.0+dfsg-1ubuntu1) ... Selecting previously unselected package libasn1-8-heimdal:riscv64. Preparing to unpack .../35-libasn1-8-heimdal_7.7.0+dfsg-1ubuntu1_riscv64.deb ... Unpacking libasn1-8-heimdal:riscv64 (7.7.0+dfsg-1ubuntu1) ... Selecting previously unselected package libheimbase1-heimdal:riscv64. Preparing to unpack .../36-libheimbase1-heimdal_7.7.0+dfsg-1ubuntu1_riscv64.deb ... Unpacking libheimbase1-heimdal:riscv64 (7.7.0+dfsg-1ubuntu1) ... Selecting previously unselected package libhcrypto4-heimdal:riscv64. Preparing to unpack .../37-libhcrypto4-heimdal_7.7.0+dfsg-1ubuntu1_riscv64.deb ... Unpacking libhcrypto4-heimdal:riscv64 (7.7.0+dfsg-1ubuntu1) ... Selecting previously unselected package libwind0-heimdal:riscv64. Preparing to unpack .../38-libwind0-heimdal_7.7.0+dfsg-1ubuntu1_riscv64.deb ... Unpacking libwind0-heimdal:riscv64 (7.7.0+dfsg-1ubuntu1) ... Selecting previously unselected package libhx509-5-heimdal:riscv64. Preparing to unpack .../39-libhx509-5-heimdal_7.7.0+dfsg-1ubuntu1_riscv64.deb ... Unpacking libhx509-5-heimdal:riscv64 (7.7.0+dfsg-1ubuntu1) ... Selecting previously unselected package libkrb5-26-heimdal:riscv64. Preparing to unpack .../40-libkrb5-26-heimdal_7.7.0+dfsg-1ubuntu1_riscv64.deb ... Unpacking libkrb5-26-heimdal:riscv64 (7.7.0+dfsg-1ubuntu1) ... Selecting previously unselected package libheimntlm0-heimdal:riscv64. Preparing to unpack .../41-libheimntlm0-heimdal_7.7.0+dfsg-1ubuntu1_riscv64.deb ... Unpacking libheimntlm0-heimdal:riscv64 (7.7.0+dfsg-1ubuntu1) ... Selecting previously unselected package libgssapi3-heimdal:riscv64. Preparing to unpack .../42-libgssapi3-heimdal_7.7.0+dfsg-1ubuntu1_riscv64.deb ... Unpacking libgssapi3-heimdal:riscv64 (7.7.0+dfsg-1ubuntu1) ... Selecting previously unselected package libsasl2-modules-db:riscv64. Preparing to unpack .../43-libsasl2-modules-db_2.1.27+dfsg-2_riscv64.deb ... Unpacking libsasl2-modules-db:riscv64 (2.1.27+dfsg-2) ... Selecting previously unselected package libsasl2-2:riscv64. Preparing to unpack .../44-libsasl2-2_2.1.27+dfsg-2_riscv64.deb ... Unpacking libsasl2-2:riscv64 (2.1.27+dfsg-2) ... Selecting previously unselected package libldap-common. Preparing to unpack .../45-libldap-common_2.4.49+dfsg-2ubuntu1_all.deb ... Unpacking libldap-common (2.4.49+dfsg-2ubuntu1) ... Selecting previously unselected package libldap-2.4-2:riscv64. Preparing to unpack .../46-libldap-2.4-2_2.4.49+dfsg-2ubuntu1_riscv64.deb ... Unpacking libldap-2.4-2:riscv64 (2.4.49+dfsg-2ubuntu1) ... Selecting previously unselected package libnghttp2-14:riscv64. Preparing to unpack .../47-libnghttp2-14_1.40.0-1build1_riscv64.deb ... Unpacking libnghttp2-14:riscv64 (1.40.0-1build1) ... Selecting previously unselected package librtmp1:riscv64. Preparing to unpack .../48-librtmp1_2.4+20151223.gitfa8646d.1-2build1_riscv64.deb ... Unpacking librtmp1:riscv64 (2.4+20151223.gitfa8646d.1-2build1) ... Selecting previously unselected package libssh-4:riscv64. Preparing to unpack .../49-libssh-4_0.9.3-2ubuntu1_riscv64.deb ... Unpacking libssh-4:riscv64 (0.9.3-2ubuntu1) ... Selecting previously unselected package libcurl4:riscv64. Preparing to unpack .../50-libcurl4_7.68.0-1ubuntu1_riscv64.deb ... Unpacking libcurl4:riscv64 (7.68.0-1ubuntu1) ... Selecting previously unselected package libjsoncpp1:riscv64. Preparing to unpack .../51-libjsoncpp1_1.7.4-3.1ubuntu2_riscv64.deb ... Unpacking libjsoncpp1:riscv64 (1.7.4-3.1ubuntu2) ... Selecting previously unselected package librhash0:riscv64. Preparing to unpack .../52-librhash0_1.3.9-1_riscv64.deb ... Unpacking librhash0:riscv64 (1.3.9-1) ... Selecting previously unselected package libuv1:riscv64. Preparing to unpack .../53-libuv1_1.34.2-1ubuntu1_riscv64.deb ... Unpacking libuv1:riscv64 (1.34.2-1ubuntu1) ... Selecting previously unselected package cmake. Preparing to unpack .../54-cmake_3.16.3-1ubuntu1_riscv64.deb ... Unpacking cmake (3.16.3-1ubuntu1) ... Selecting previously unselected package libtool. Preparing to unpack .../55-libtool_2.4.6-14_all.deb ... Unpacking libtool (2.4.6-14) ... Selecting previously unselected package dh-autoreconf. Preparing to unpack .../56-dh-autoreconf_19_all.deb ... Unpacking dh-autoreconf (19) ... Selecting previously unselected package libdebhelper-perl. Preparing to unpack .../57-libdebhelper-perl_12.10ubuntu1_all.deb ... Unpacking libdebhelper-perl (12.10ubuntu1) ... Selecting previously unselected package libarchive-zip-perl. Preparing to unpack .../58-libarchive-zip-perl_1.67-2_all.deb ... Unpacking libarchive-zip-perl (1.67-2) ... Selecting previously unselected package libsub-override-perl. Preparing to unpack .../59-libsub-override-perl_0.09-2_all.deb ... Unpacking libsub-override-perl (0.09-2) ... Selecting previously unselected package libfile-stripnondeterminism-perl. Preparing to unpack .../60-libfile-stripnondeterminism-perl_1.6.3-2_all.deb ... Unpacking libfile-stripnondeterminism-perl (1.6.3-2) ... Selecting previously unselected package dh-strip-nondeterminism. Preparing to unpack .../61-dh-strip-nondeterminism_1.6.3-2_all.deb ... Unpacking dh-strip-nondeterminism (1.6.3-2) ... Selecting previously unselected package dwz. Preparing to unpack .../62-dwz_0.13-5_riscv64.deb ... Unpacking dwz (0.13-5) ... Selecting previously unselected package libcroco3:riscv64. Preparing to unpack .../63-libcroco3_0.6.13-1_riscv64.deb ... Unpacking libcroco3:riscv64 (0.6.13-1) ... Selecting previously unselected package gettext. Preparing to unpack .../64-gettext_0.19.8.1-10build1_riscv64.deb ... Unpacking gettext (0.19.8.1-10build1) ... Selecting previously unselected package intltool-debian. Preparing to unpack .../65-intltool-debian_0.35.0+20060710.5_all.deb ... Unpacking intltool-debian (0.35.0+20060710.5) ... Selecting previously unselected package po-debconf. Preparing to unpack .../66-po-debconf_1.0.21_all.deb ... Unpacking po-debconf (1.0.21) ... Selecting previously unselected package debhelper. Preparing to unpack .../67-debhelper_12.10ubuntu1_all.deb ... Unpacking debhelper (12.10ubuntu1) ... Selecting previously unselected package libxapian30:riscv64. Preparing to unpack .../68-libxapian30_1.4.14-2_riscv64.deb ... Unpacking libxapian30:riscv64 (1.4.14-2) ... Selecting previously unselected package doxygen. Preparing to unpack .../69-doxygen_1.8.17-0ubuntu2_riscv64.deb ... Unpacking doxygen (1.8.17-0ubuntu2) ... Selecting previously unselected package sbuild-build-depends-main-dummy. Preparing to unpack .../70-sbuild-build-depends-main-dummy_0.invalid.0_riscv64.deb ... Unpacking sbuild-build-depends-main-dummy (0.invalid.0) ... Setting up libexpat1:riscv64 (2.2.9-1build1) ... Setting up libpipeline1:riscv64 (1.5.2-2build1) ... Setting up libxapian30:riscv64 (1.4.14-2) ... Setting up libkeyutils1:riscv64 (1.6-6ubuntu1) ... Setting up libpsl5:riscv64 (0.21.0-1ubuntu1) ... Setting up libmagic-mgc (1:5.38-4) ... Setting up libarchive-zip-perl (1.67-2) ... Setting up libglib2.0-0:riscv64 (2.64.1-1) ... No schema files found: doing nothing. Setting up libdebhelper-perl (12.10ubuntu1) ... Setting up libbrotli1:riscv64 (1.0.7-6build1) ... Setting up libnghttp2-14:riscv64 (1.40.0-1build1) ... Setting up libmagic1:riscv64 (1:5.38-4) ... Setting up gettext-base (0.19.8.1-10build1) ... Setting up file (1:5.38-4) ... Setting up libldap-common (2.4.49+dfsg-2ubuntu1) ... Setting up libkrb5support0:riscv64 (1.17-6ubuntu4) ... Setting up libsasl2-modules-db:riscv64 (2.1.27+dfsg-2) ... Setting up tzdata (2019c-3ubuntu1) ... Current default time zone: 'Etc/UTC' Local time is now: Thu Apr 9 16:26:16 UTC 2020. Universal Time is now: Thu Apr 9 16:26:16 UTC 2020. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up autotools-dev (20180224.1) ... Setting up doxygen (1.8.17-0ubuntu2) ... Setting up libuv1:riscv64 (1.34.2-1ubuntu1) ... Setting up librtmp1:riscv64 (2.4+20151223.gitfa8646d.1-2build1) ... Setting up libncurses6:riscv64 (6.2-0ubuntu2) ... Setting up libsigsegv2:riscv64 (2.12-2) ... Setting up autopoint (0.19.8.1-10build1) ... Setting up libk5crypto3:riscv64 (1.17-6ubuntu4) ... Setting up libsasl2-2:riscv64 (2.1.27+dfsg-2) ... Setting up libroken18-heimdal:riscv64 (7.7.0+dfsg-1ubuntu1) ... Setting up librhash0:riscv64 (1.3.9-1) ... Setting up libuchardet0:riscv64 (0.0.6-3build1) ... Setting up libsub-override-perl (0.09-2) ... Setting up cmake-data (3.16.3-1ubuntu1) ... Setting up libkrb5-3:riscv64 (1.17-6ubuntu4) ... Setting up libbsd0:riscv64 (0.10.0-1) ... Setting up libelf1:riscv64 (0.176-1.1build1) ... Setting up libprocps8:riscv64 (2:3.3.16-1ubuntu2) ... Setting up libjsoncpp1:riscv64 (1.7.4-3.1ubuntu2) ... Setting up libheimbase1-heimdal:riscv64 (7.7.0+dfsg-1ubuntu1) ... Setting up libfile-stripnondeterminism-perl (1.6.3-2) ... Setting up libtool (2.4.6-14) ... Setting up libicu66:riscv64 (66.1-2ubuntu2) ... Setting up libasn1-8-heimdal:riscv64 (7.7.0+dfsg-1ubuntu1) ... Setting up m4 (1.4.18-4) ... Setting up libhcrypto4-heimdal:riscv64 (7.7.0+dfsg-1ubuntu1) ... Setting up libwind0-heimdal:riscv64 (7.7.0+dfsg-1ubuntu1) ... Setting up bsdmainutils (11.1.2ubuntu3) ... update-alternatives: using /usr/bin/bsd-write to provide /usr/bin/write (write) in auto mode update-alternatives: using /usr/bin/bsd-from to provide /usr/bin/from (from) in auto mode Setting up libgssapi-krb5-2:riscv64 (1.17-6ubuntu4) ... Setting up libssh-4:riscv64 (0.9.3-2ubuntu1) ... Setting up autoconf (2.69-11.1) ... Setting up dh-strip-nondeterminism (1.6.3-2) ... Setting up dwz (0.13-5) ... Setting up groff-base (1.22.4-4build1) ... Setting up procps (2:3.3.16-1ubuntu2) ... update-alternatives: using /usr/bin/w.procps to provide /usr/bin/w (w) in auto mode Setting up libxml2:riscv64 (2.9.10+dfsg-4build1) ... Setting up automake (1:1.16.1-4ubuntu6) ... update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode Setting up libarchive13:riscv64 (3.4.0-2ubuntu1) ... Setting up libhx509-5-heimdal:riscv64 (7.7.0+dfsg-1ubuntu1) ... Setting up man-db (2.9.1-1) ... Not building database; man-db/auto-update is not 'true'. Setting up libcroco3:riscv64 (0.6.13-1) ... Setting up libkrb5-26-heimdal:riscv64 (7.7.0+dfsg-1ubuntu1) ... Setting up gettext (0.19.8.1-10build1) ... Setting up libheimntlm0-heimdal:riscv64 (7.7.0+dfsg-1ubuntu1) ... Setting up intltool-debian (0.35.0+20060710.5) ... Setting up libgssapi3-heimdal:riscv64 (7.7.0+dfsg-1ubuntu1) ... Setting up po-debconf (1.0.21) ... Setting up libldap-2.4-2:riscv64 (2.4.49+dfsg-2ubuntu1) ... Setting up libcurl4:riscv64 (7.68.0-1ubuntu1) ... Setting up cmake (3.16.3-1ubuntu1) ... Setting up debhelper (12.10ubuntu1) ... Setting up dh-autoreconf (19) ... Setting up sbuild-build-depends-main-dummy (0.invalid.0) ... Processing triggers for libc-bin (2.31-0ubuntu7) ... +------------------------------------------------------------------------------+ | Check architectures | +------------------------------------------------------------------------------+ Arch check ok (riscv64 included in any all) +------------------------------------------------------------------------------+ | Build environment | +------------------------------------------------------------------------------+ Kernel: Linux 5.3.0-13-generic #14+riscv64.5-Ubuntu SMP Wed Nov 13 20:10:41 UTC 2019 riscv64 (riscv64) Toolchain package versions: binutils_2.34-6ubuntu1 dpkg-dev_1.19.7ubuntu3 g++-9_9.3.0-10ubuntu1 gcc-9_9.3.0-10ubuntu1 libc6-dev_2.31-0ubuntu7 libstdc++-9-dev_9.3.0-10ubuntu1 libstdc++6_10-20200324-1ubuntu1 linux-libc-dev_5.4.0-23.27 Package versions: adduser_3.118ubuntu1 advancecomp_2.1-2.1build1 apt_2.0.1ubuntu1 autoconf_2.69-11.1 automake_1:1.16.1-4ubuntu6 autopoint_0.19.8.1-10build1 autotools-dev_20180224.1 base-files_11ubuntu4 base-passwd_3.5.47 bash_5.0-6ubuntu1 binutils_2.34-6ubuntu1 binutils-common_2.34-6ubuntu1 binutils-riscv64-linux-gnu_2.34-6ubuntu1 bsdmainutils_11.1.2ubuntu3 bsdutils_1:2.34-0.1ubuntu9 build-essential_12.8ubuntu1 bzip2_1.0.8-2 ca-certificates_20190110ubuntu1 cmake_3.16.3-1ubuntu1 cmake-data_3.16.3-1ubuntu1 coreutils_8.30-3ubuntu2 cpp_4:9.3.0-1ubuntu2 cpp-9_9.3.0-10ubuntu1 dash_0.5.10.2-6 debconf_1.5.73 debhelper_12.10ubuntu1 debianutils_4.9.1 dh-autoreconf_19 dh-strip-nondeterminism_1.6.3-2 diffutils_1:3.7-3 doxygen_1.8.17-0ubuntu2 dpkg_1.19.7ubuntu3 dpkg-dev_1.19.7ubuntu3 dwz_0.13-5 e2fsprogs_1.45.5-2ubuntu1 fakeroot_1.24-1 file_1:5.38-4 findutils_4.7.0-1ubuntu1 g++_4:9.3.0-1ubuntu2 g++-9_9.3.0-10ubuntu1 gcc_4:9.3.0-1ubuntu2 gcc-10-base_10-20200324-1ubuntu1 gcc-8-base_8.4.0-3ubuntu2 gcc-9_9.3.0-10ubuntu1 gcc-9-base_9.3.0-10ubuntu1 gettext_0.19.8.1-10build1 gettext-base_0.19.8.1-10build1 gpg_2.2.19-3ubuntu2 gpg-agent_2.2.19-3ubuntu2 gpgconf_2.2.19-3ubuntu2 gpgv_2.2.19-3ubuntu2 grep_3.4-1 groff-base_1.22.4-4build1 gzip_1.10-0ubuntu4 hostname_3.23 init-system-helpers_1.57 intltool-debian_0.35.0+20060710.5 libacl1_2.2.53-6 libapt-pkg6.0_2.0.1ubuntu1 libarchive-zip-perl_1.67-2 libarchive13_3.4.0-2ubuntu1 libasn1-8-heimdal_7.7.0+dfsg-1ubuntu1 libassuan0_2.5.3-7ubuntu2 libatomic1_10-20200324-1ubuntu1 libattr1_1:2.4.48-5 libaudit-common_1:2.8.5-2ubuntu6 libaudit1_1:2.8.5-2ubuntu6 libbinutils_2.34-6ubuntu1 libblkid1_2.34-0.1ubuntu9 libbrotli1_1.0.7-6build1 libbsd0_0.10.0-1 libbz2-1.0_1.0.8-2 libc-bin_2.31-0ubuntu7 libc-dev-bin_2.31-0ubuntu7 libc6_2.31-0ubuntu7 libc6-dev_2.31-0ubuntu7 libcap-ng0_0.7.9-2.1build1 libcc1-0_10-20200324-1ubuntu1 libcom-err2_1.45.5-2ubuntu1 libcroco3_0.6.13-1 libcrypt-dev_1:4.4.10-10ubuntu4 libcrypt1_1:4.4.10-10ubuntu4 libctf-nobfd0_2.34-6ubuntu1 libctf0_2.34-6ubuntu1 libcurl4_7.68.0-1ubuntu1 libdb5.3_5.3.28+dfsg1-0.6ubuntu2 libdebconfclient0_0.251ubuntu1 libdebhelper-perl_12.10ubuntu1 libdpkg-perl_1.19.7ubuntu3 libelf1_0.176-1.1build1 libexpat1_2.2.9-1build1 libext2fs2_1.45.5-2ubuntu1 libfakeroot_1.24-1 libffi7_3.3-4 libfile-stripnondeterminism-perl_1.6.3-2 libgcc-9-dev_9.3.0-10ubuntu1 libgcc-s1_10-20200324-1ubuntu1 libgcc1_1:10-20200324-1ubuntu1 libgcrypt20_1.8.5-5ubuntu1 libgdbm-compat4_1.18.1-5 libgdbm6_1.18.1-5 libglib2.0-0_2.64.1-1 libgmp10_2:6.2.0+dfsg-4 libgnutls30_3.6.13-2ubuntu1 libgomp1_10-20200324-1ubuntu1 libgpg-error0_1.37-1 libgpm2_1.20.7-5 libgssapi-krb5-2_1.17-6ubuntu4 libgssapi3-heimdal_7.7.0+dfsg-1ubuntu1 libhcrypto4-heimdal_7.7.0+dfsg-1ubuntu1 libheimbase1-heimdal_7.7.0+dfsg-1ubuntu1 libheimntlm0-heimdal_7.7.0+dfsg-1ubuntu1 libhogweed5_3.5.1+really3.5.1-2 libhx509-5-heimdal_7.7.0+dfsg-1ubuntu1 libicu66_66.1-2ubuntu2 libidn2-0_2.2.0-2 libisl22_0.22.1-1 libjsoncpp1_1.7.4-3.1ubuntu2 libk5crypto3_1.17-6ubuntu4 libkeyutils1_1.6-6ubuntu1 libkrb5-26-heimdal_7.7.0+dfsg-1ubuntu1 libkrb5-3_1.17-6ubuntu4 libkrb5support0_1.17-6ubuntu4 libldap-2.4-2_2.4.49+dfsg-2ubuntu1 libldap-common_2.4.49+dfsg-2ubuntu1 liblocale-gettext-perl_1.07-4 liblockfile-bin_1.16-1.1 liblockfile1_1.16-1.1 liblz4-1_1.9.2-2 liblzma5_5.2.4-1 libmagic-mgc_1:5.38-4 libmagic1_1:5.38-4 libmount1_2.34-0.1ubuntu9 libmpc3_1.1.0-1 libmpfr6_4.0.2-1 libncurses6_6.2-0ubuntu2 libncursesw6_6.2-0ubuntu2 libnettle7_3.5.1+really3.5.1-2 libnghttp2-14_1.40.0-1build1 libnpth0_1.6-1 libp11-kit0_0.23.20-1build1 libpam-modules_1.3.1-5ubuntu4 libpam-modules-bin_1.3.1-5ubuntu4 libpam-runtime_1.3.1-5ubuntu4 libpam0g_1.3.1-5ubuntu4 libpcre2-8-0_10.34-7 libpcre3_2:8.39-12build1 libperl5.30_5.30.0-9build1 libpipeline1_1.5.2-2build1 libpng16-16_1.6.37-2 libprocps8_2:3.3.16-1ubuntu2 libpsl5_0.21.0-1ubuntu1 libreadline8_8.0-4 librhash0_1.3.9-1 libroken18-heimdal_7.7.0+dfsg-1ubuntu1 librtmp1_2.4+20151223.gitfa8646d.1-2build1 libsasl2-2_2.1.27+dfsg-2 libsasl2-modules-db_2.1.27+dfsg-2 libselinux1_3.0-1build2 libsemanage-common_3.0-1build2 libsemanage1_3.0-1build2 libsepol1_3.0-1 libsigsegv2_2.12-2 libsmartcols1_2.34-0.1ubuntu9 libsqlite3-0_3.31.1-4 libss2_1.45.5-2ubuntu1 libssh-4_0.9.3-2ubuntu1 libssl1.1_1.1.1d-2ubuntu6 libstdc++-9-dev_9.3.0-10ubuntu1 libstdc++6_10-20200324-1ubuntu1 libsub-override-perl_0.09-2 libsystemd0_245.4-2ubuntu1 libtasn1-6_4.16.0-2 libtext-charwidth-perl_0.04-10 libtext-iconv-perl_1.7-7 libtinfo6_6.2-0ubuntu2 libtool_2.4.6-14 libuchardet0_0.0.6-3build1 libudev1_245.4-2ubuntu1 libunistring2_0.9.10-2 libuuid1_2.34-0.1ubuntu9 libuv1_1.34.2-1ubuntu1 libwind0-heimdal_7.7.0+dfsg-1ubuntu1 libxapian30_1.4.14-2 libxml2_2.9.10+dfsg-4build1 libzstd1_1.4.4+dfsg-3 linux-libc-dev_5.4.0-23.27 lockfile-progs_0.1.18 login_1:4.8.1-1ubuntu4 logsave_1.45.5-2ubuntu1 lsb-base_11.1.0ubuntu2 m4_1.4.18-4 make_4.2.1-1.2 man-db_2.9.1-1 mawk_1.3.4.20200120-2 mount_2.34-0.1ubuntu9 ncurses-base_6.2-0ubuntu2 ncurses-bin_6.2-0ubuntu2 openssl_1.1.1d-2ubuntu6 optipng_0.7.7-1 passwd_1:4.8.1-1ubuntu4 patch_2.7.6-6 perl_5.30.0-9build1 perl-base_5.30.0-9build1 perl-modules-5.30_5.30.0-9build1 pinentry-curses_1.1.0-3build1 pkgbinarymangler_144 po-debconf_1.0.21 policyrcd-script-zg2_0.1-3 procps_2:3.3.16-1ubuntu2 readline-common_8.0-4 sbuild-build-depends-main-dummy_0.invalid.0 sed_4.7-1 sensible-utils_0.0.12+nmu1 sysvinit-utils_2.96-2.1ubuntu1 tar_1.30+dfsg-7 tzdata_2019c-3ubuntu1 ubuntu-keyring_2020.02.11.1 util-linux_2.34-0.1ubuntu9 xz-utils_5.2.4-1 zlib1g_1:1.2.11.dfsg-2ubuntu1 +------------------------------------------------------------------------------+ | Build | +------------------------------------------------------------------------------+ Unpack source ------------- -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 3.0 (quilt) Source: hepmc3 Binary: libhepmc3, libhepmc3-dev, libhepmc3-search, libhepmc3-search-dev, hepmc3-doc Architecture: any all Version: 3.1.2-2 Maintainer: Debian Science Maintainers Uploaders: HepMC developers , Mo Zhou , Homepage: http://hepmc.web.cern.ch/hepmc/ Standards-Version: 4.3.0 Vcs-Browser: https://salsa.debian.org/science-team/hepmc3 Vcs-Git: https://salsa.debian.org/science-team/hepmc3.git Build-Depends: debhelper (>= 9~), cmake, doxygen Package-List: hepmc3-doc deb doc optional arch=all libhepmc3 deb libs optional arch=any libhepmc3-dev deb libdevel optional arch=any libhepmc3-search deb libs optional arch=any libhepmc3-search-dev deb libdevel optional arch=any Checksums-Sha1: 2df5479e20f5183644f186f3da338117ac7354bc 4849327 hepmc3_3.1.2.orig.tar.gz 844c6ae36c54cfd1506f6208c737141cae2bcaba 4028 hepmc3_3.1.2-2.debian.tar.xz Checksums-Sha256: 4133074b3928252877982f3d4b4c6c750bb7a324eb6c7bb2afc6fa256da3ecc7 4849327 hepmc3_3.1.2.orig.tar.gz 8bce957ef7bba7c4da990609cd9ddc500bf372f3d22c53134654913ab3fc3081 4028 hepmc3_3.1.2-2.debian.tar.xz Files: 9f0fcd6ca100ba667cf1f5ccfbd0d79c 4849327 hepmc3_3.1.2.orig.tar.gz e337f34dcdb2af82453845c89b0bb870 4028 hepmc3_3.1.2-2.debian.tar.xz -----BEGIN PGP SIGNATURE----- iQJJBAEBCgAzFiEEY4vHXsHlxYkGfjXeYmRes19oaooFAl2DHSIVHGNkbHVtaW5h dGVAZ21haWwuY29tAAoJEGJkXrNfaGqKTRMP/RxSInnypTBBdUTBkx4ZujUNdEf2 Pd3PDVRjcZqQ+zcGD6o/gCg6Vtruu0E+4w+ayVY0Bhg6g0Pm1mZ+bpgfy7flXmxy 7VMGoaOBHo/6PhJrflxhKZy8m+JY96pYAWWkdIprV8fxOmEGC29Or67pr2Psa+R6 7tw8cNBThA9gYZ+7Rq8CI93r3OdAy1UuiZh2fDqLxqPeKPEmPuodN7owZEmI5wy1 YJbHzmR5aGgezIxKleF3rq1llgSwWxJhpHlyNUeiyEKsnb4AhCTlp6+yY4la5BJi 5nThtlrPyYEYCIClBI7WZUQZ0gQtMj4H1x1QRqtYRPDkg7E1WKxA+v+SYGia/cw4 7yVUrVkdFRAfW3+sgtTiTRd/gEctceyJtiGyUI9pWWSAzm1655xuAEyV94yLjsDS UvvsnRoKbD+1hzN/ZE5ubW7vfkYp8Wu9reRq1qXuu/BBbkMCTYlQirnOfKQ23+x3 4r140/wLf9DHpxe6xJjCbJoP/CGM23CdA7kZqK8jJZT8Hg/uAV3GBKbG8oI3RbUV Pn7k9pCmaGrlGsmu/SllSUi4YgW+0OKsFr91xzxW5T12Z4frlpP5jM3yLaVDjK28 kUJGokDaJVXe4dUYute+PkNUjQx6vgwsMz2mo1Gkdj9AKLwoDF/N8gdzR6FTkFHJ MPyo44iGFvNi4CkI =/AgI -----END PGP SIGNATURE----- gpgv: Signature made Thu Sep 19 06:16:02 2019 UTC gpgv: using RSA key 638BC75EC1E5C589067E35DE62645EB35F686A8A gpgv: issuer "cdluminate@gmail.com" gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./hepmc3_3.1.2-2.dsc dpkg-source: info: extracting hepmc3 in /<> dpkg-source: info: unpacking hepmc3_3.1.2.orig.tar.gz dpkg-source: info: unpacking hepmc3_3.1.2-2.debian.tar.xz Check disk space ---------------- Sufficient free space for build User Environment ---------------- APT_CONFIG=/var/lib/sbuild/apt.conf DEB_BUILD_OPTIONS=parallel=4 HOME=/sbuild-nonexistent LANG=C.UTF-8 LC_ALL=C.UTF-8 LOGNAME=buildd PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games SCHROOT_ALIAS_NAME=build-PACKAGEBUILD-19104336 SCHROOT_CHROOT_NAME=build-PACKAGEBUILD-19104336 SCHROOT_COMMAND=env SCHROOT_GID=2501 SCHROOT_GROUP=buildd SCHROOT_SESSION_ID=build-PACKAGEBUILD-19104336 SCHROOT_UID=2001 SCHROOT_USER=buildd SHELL=/bin/sh TERM=unknown USER=buildd V=1 dpkg-buildpackage ----------------- Command: dpkg-buildpackage -us -uc -mLaunchpad Build Daemon -B -rfakeroot dpkg-buildpackage: info: source package hepmc3 dpkg-buildpackage: info: source version 3.1.2-2 dpkg-buildpackage: info: source distribution unstable dpkg-source --before-build . dpkg-buildpackage: info: host architecture riscv64 fakeroot debian/rules clean dh clean -Scmake dh_auto_clean -O-Scmake dh_clean -O-Scmake debian/rules build-arch dh build-arch -Scmake dh_update_autotools_config -a -O-Scmake debian/rules override_dh_auto_configure make[1]: Entering directory '/<>' dh_auto_configure -- \ -DHEPMC3_ENABLE_ROOTIO=OFF \ -DHEPMC3_ENABLE_TEST=ON \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_SKIP_INSTALL_RPATH=ON \ -DCMAKE_INSTALL_LIBDIR=/usr/lib/riscv64-linux-gnu cd obj-riscv64-linux-gnu && cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_AUTOGEN_VERBOSE=ON -DCMAKE_INSTALL_LIBDIR=lib/riscv64-linux-gnu -DHEPMC3_ENABLE_ROOTIO=OFF -DHEPMC3_ENABLE_TEST=ON -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_INSTALL_LIBDIR=/usr/lib/riscv64-linux-gnu .. -- The C compiler identification is GNU 9.3.0 -- The CXX compiler identification is GNU 9.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- HepMC3 Build type: None -- HepMC3: HEPMC3_ENABLE_SEARCH ON -- HepMC3: HEPMC3_ENABLE_ROOTIO OFF -- HepMC3: HEPMC3_BUILD_EXAMPLES OFF -- HepMC3: HEPMC3_ENABLE_TEST ON -- HepMC3: HEPMC3_INSTALL_INTERFACES OFF -- Performing Test COMPILER_SUPPORTS__CRT_SECURE_NO_WARNINGS -- Performing Test COMPILER_SUPPORTS__CRT_SECURE_NO_WARNINGS - Failed -- Performing Test COMPILER_SUPPORTS_ZCPLUSPLUS -- Performing Test COMPILER_SUPPORTS_ZCPLUSPLUS - Failed -- Performing Test COMPILER_SUPPORTS_CXX11 -- Performing Test COMPILER_SUPPORTS_CXX11 - Success -- The compiler /usr/bin/c++ has cxx_range_for support. -- HepMC3: CXX FLAGS -g -O2 -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- building testBoost for testBoost -- building testMass for testMass -- building testPrintBug for testPrintBug -- building testPolarization for testPolarization -- building testUnits for testUnits -- building testMultipleCopies for testMultipleCopies -- building testWeights for testWeights -- building testLoops for testLoops -- building testDelete for testDelete -- building testIO1 for testIO1 -- building testIO3 for testIO3 -- building testIO6 for testIO6 -- building testReaderFactory1 for testReaderFactory1 -- building testThreads1 for testThreads1 -- Could NOT find Pythia8 (missing: PYTHIA8_INCLUDE_DIR PYTHIA8_LIBRARIES PYTHIA8_XMLDOC_DIR) -- Validation: Pythia8 package not found. Please check if PYTHIA8_ROOT_DIR is set properly. -- Could NOT find PHOTOSPP (missing: PHOTOSPP_INCLUDE_DIR PHOTOSPP_LIBRARIES) -- Validation: Photospp package not found. Please check if PHOTOSPP_ROOT_DIR is set properly. -- Could NOT find TAUOLAPP (missing: TAUOLAPP_INCLUDE_DIR TAUOLAPP_LIBRARIES) -- Validation: Tauolapp package not found. Please check if TAUOLA_ROOT_DIR is set properly. -- HEPMC2 package not found. Please check if HEPMC2_ROOT_DIR is set properly. CMake Warning (dev) at /usr/share/cmake-3.16/Modules/CPack.cmake:571 (option): Policy CMP0077 is not set: option() honors normal variables. Run "cmake --help-policy CMP0077" for policy details. Use the cmake_policy command to set the policy and suppress this warning. For compatibility with older versions of CMake, option is clearing the normal variable 'CPACK_BINARY_DEB'. Call Stack (most recent call first): CMakeLists.txt:340 (INCLUDE) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at /usr/share/cmake-3.16/Modules/CPack.cmake:574 (option): Policy CMP0077 is not set: option() honors normal variables. Run "cmake --help-policy CMP0077" for policy details. Use the cmake_policy command to set the policy and suppress this warning. For compatibility with older versions of CMake, option is clearing the normal variable 'CPACK_BINARY_RPM'. Call Stack (most recent call first): CMakeLists.txt:340 (INCLUDE) This warning is for project developers. Use -Wno-dev to suppress it. -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: CMAKE_AUTOGEN_VERBOSE CMAKE_EXPORT_NO_PACKAGE_REGISTRY -- Build files have been written to: /<>/obj-riscv64-linux-gnu make[1]: Leaving directory '/<>' debian/rules override_dh_auto_build-arch make[1]: Entering directory '/<>' dh_auto_build cd obj-riscv64-linux-gnu && make -j1 make[2]: Entering directory '/<>/obj-riscv64-linux-gnu' /usr/bin/cmake -S/<> -B/<>/obj-riscv64-linux-gnu --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /<>/obj-riscv64-linux-gnu/CMakeFiles /<>/obj-riscv64-linux-gnu/CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[3]: Entering directory '/<>/obj-riscv64-linux-gnu' make -f CMakeFiles/objlibcore.dir/build.make CMakeFiles/objlibcore.dir/depend make[4]: Entering directory '/<>/obj-riscv64-linux-gnu' cd /<>/obj-riscv64-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /<> /<> /<>/obj-riscv64-linux-gnu /<>/obj-riscv64-linux-gnu /<>/obj-riscv64-linux-gnu/CMakeFiles/objlibcore.dir/DependInfo.cmake --color= Scanning dependencies of target objlibcore make[4]: Leaving directory '/<>/obj-riscv64-linux-gnu' make -f CMakeFiles/objlibcore.dir/build.make CMakeFiles/objlibcore.dir/build make[4]: Entering directory '/<>/obj-riscv64-linux-gnu' [ 1%] Building CXX object CMakeFiles/objlibcore.dir/src/GenCrossSection.cc.o /usr/bin/c++ -I/<>/include -g -O2 -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -o CMakeFiles/objlibcore.dir/src/GenCrossSection.cc.o -c /<>/src/GenCrossSection.cc [ 3%] Building CXX object CMakeFiles/objlibcore.dir/src/GenParticle.cc.o /usr/bin/c++ -I/<>/include -g -O2 -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -o CMakeFiles/objlibcore.dir/src/GenParticle.cc.o -c /<>/src/GenParticle.cc [ 5%] Building CXX object CMakeFiles/objlibcore.dir/src/GenVertex.cc.o /usr/bin/c++ -I/<>/include -g -O2 -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -o CMakeFiles/objlibcore.dir/src/GenVertex.cc.o -c /<>/src/GenVertex.cc [ 7%] Building CXX object CMakeFiles/objlibcore.dir/src/Print.cc.o /usr/bin/c++ -I/<>/include -g -O2 -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -o CMakeFiles/objlibcore.dir/src/Print.cc.o -c /<>/src/Print.cc [ 9%] Building CXX object CMakeFiles/objlibcore.dir/src/Setup.cc.o /usr/bin/c++ -I/<>/include -g -O2 -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -o CMakeFiles/objlibcore.dir/src/Setup.cc.o -c /<>/src/Setup.cc [ 10%] Building CXX object CMakeFiles/objlibcore.dir/src/WriterHEPEVT.cc.o /usr/bin/c++ -I/<>/include -g -O2 -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -o CMakeFiles/objlibcore.dir/src/WriterHEPEVT.cc.o -c /<>/src/WriterHEPEVT.cc [ 12%] Building CXX object CMakeFiles/objlibcore.dir/src/GenEvent.cc.o /usr/bin/c++ -I/<>/include -g -O2 -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -o CMakeFiles/objlibcore.dir/src/GenEvent.cc.o -c /<>/src/GenEvent.cc [ 14%] Building CXX object CMakeFiles/objlibcore.dir/src/GenPdfInfo.cc.o /usr/bin/c++ -I/<>/include -g -O2 -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -o CMakeFiles/objlibcore.dir/src/GenPdfInfo.cc.o -c /<>/src/GenPdfInfo.cc [ 16%] Building CXX object CMakeFiles/objlibcore.dir/src/HEPEVT_Wrapper.cc.o /usr/bin/c++ -I/<>/include -g -O2 -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -o CMakeFiles/objlibcore.dir/src/HEPEVT_Wrapper.cc.o -c /<>/src/HEPEVT_Wrapper.cc [ 18%] Building CXX object CMakeFiles/objlibcore.dir/src/ReaderAscii.cc.o /usr/bin/c++ -I/<>/include -g -O2 -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -o CMakeFiles/objlibcore.dir/src/ReaderAscii.cc.o -c /<>/src/ReaderAscii.cc [ 20%] Building CXX object CMakeFiles/objlibcore.dir/src/ReaderHEPEVT.cc.o /usr/bin/c++ -I/<>/include -g -O2 -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -o CMakeFiles/objlibcore.dir/src/ReaderHEPEVT.cc.o -c /<>/src/ReaderHEPEVT.cc [ 21%] Building CXX object CMakeFiles/objlibcore.dir/src/WriterAscii.cc.o /usr/bin/c++ -I/<>/include -g -O2 -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -o CMakeFiles/objlibcore.dir/src/WriterAscii.cc.o -c /<>/src/WriterAscii.cc [ 23%] Building CXX object CMakeFiles/objlibcore.dir/src/GenHeavyIon.cc.o /usr/bin/c++ -I/<>/include -g -O2 -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -o CMakeFiles/objlibcore.dir/src/GenHeavyIon.cc.o -c /<>/src/GenHeavyIon.cc [ 25%] Building CXX object CMakeFiles/objlibcore.dir/src/GenRunInfo.cc.o /usr/bin/c++ -I/<>/include -g -O2 -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -o CMakeFiles/objlibcore.dir/src/GenRunInfo.cc.o -c /<>/src/GenRunInfo.cc [ 27%] Building CXX object CMakeFiles/objlibcore.dir/src/LHEFAttributes.cc.o /usr/bin/c++ -I/<>/include -g -O2 -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -o CMakeFiles/objlibcore.dir/src/LHEFAttributes.cc.o -c /<>/src/LHEFAttributes.cc [ 29%] Building CXX object CMakeFiles/objlibcore.dir/src/ReaderAsciiHepMC2.cc.o /usr/bin/c++ -I/<>/include -g -O2 -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -o CMakeFiles/objlibcore.dir/src/ReaderAsciiHepMC2.cc.o -c /<>/src/ReaderAsciiHepMC2.cc [ 30%] Building CXX object CMakeFiles/objlibcore.dir/src/ReaderLHEF.cc.o /usr/bin/c++ -I/<>/include -g -O2 -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -o CMakeFiles/objlibcore.dir/src/ReaderLHEF.cc.o -c /<>/src/ReaderLHEF.cc [ 32%] Building CXX object CMakeFiles/objlibcore.dir/src/WriterAsciiHepMC2.cc.o /usr/bin/c++ -I/<>/include -g -O2 -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -o CMakeFiles/objlibcore.dir/src/WriterAsciiHepMC2.cc.o -c /<>/src/WriterAsciiHepMC2.cc make[4]: Leaving directory '/<>/obj-riscv64-linux-gnu' [ 32%] Built target objlibcore make -f CMakeFiles/HepMC3_static.dir/build.make CMakeFiles/HepMC3_static.dir/depend make[4]: Entering directory '/<>/obj-riscv64-linux-gnu' cd /<>/obj-riscv64-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /<> /<> /<>/obj-riscv64-linux-gnu /<>/obj-riscv64-linux-gnu /<>/obj-riscv64-linux-gnu/CMakeFiles/HepMC3_static.dir/DependInfo.cmake --color= Scanning dependencies of target HepMC3_static make[4]: Leaving directory '/<>/obj-riscv64-linux-gnu' make -f CMakeFiles/HepMC3_static.dir/build.make CMakeFiles/HepMC3_static.dir/build make[4]: Entering directory '/<>/obj-riscv64-linux-gnu' [ 34%] Linking CXX static library libHepMC3_static.a /usr/bin/cmake -P CMakeFiles/HepMC3_static.dir/cmake_clean_target.cmake /usr/bin/cmake -E cmake_link_script CMakeFiles/HepMC3_static.dir/link.txt --verbose=1 /usr/bin/ar qc libHepMC3_static.a CMakeFiles/objlibcore.dir/src/GenCrossSection.cc.o CMakeFiles/objlibcore.dir/src/GenParticle.cc.o CMakeFiles/objlibcore.dir/src/GenVertex.cc.o CMakeFiles/objlibcore.dir/src/Print.cc.o CMakeFiles/objlibcore.dir/src/Setup.cc.o CMakeFiles/objlibcore.dir/src/WriterHEPEVT.cc.o CMakeFiles/objlibcore.dir/src/GenEvent.cc.o CMakeFiles/objlibcore.dir/src/GenPdfInfo.cc.o CMakeFiles/objlibcore.dir/src/HEPEVT_Wrapper.cc.o CMakeFiles/objlibcore.dir/src/ReaderAscii.cc.o CMakeFiles/objlibcore.dir/src/ReaderHEPEVT.cc.o CMakeFiles/objlibcore.dir/src/WriterAscii.cc.o CMakeFiles/objlibcore.dir/src/GenHeavyIon.cc.o CMakeFiles/objlibcore.dir/src/GenRunInfo.cc.o CMakeFiles/objlibcore.dir/src/LHEFAttributes.cc.o CMakeFiles/objlibcore.dir/src/ReaderAsciiHepMC2.cc.o CMakeFiles/objlibcore.dir/src/ReaderLHEF.cc.o CMakeFiles/objlibcore.dir/src/WriterAsciiHepMC2.cc.o /usr/bin/ranlib libHepMC3_static.a make[4]: Leaving directory '/<>/obj-riscv64-linux-gnu' [ 34%] Built target HepMC3_static make -f CMakeFiles/HepMC3.dir/build.make CMakeFiles/HepMC3.dir/depend make[4]: Entering directory '/<>/obj-riscv64-linux-gnu' cd /<>/obj-riscv64-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /<> /<> /<>/obj-riscv64-linux-gnu /<>/obj-riscv64-linux-gnu /<>/obj-riscv64-linux-gnu/CMakeFiles/HepMC3.dir/DependInfo.cmake --color= Scanning dependencies of target HepMC3 make[4]: Leaving directory '/<>/obj-riscv64-linux-gnu' make -f CMakeFiles/HepMC3.dir/build.make CMakeFiles/HepMC3.dir/build make[4]: Entering directory '/<>/obj-riscv64-linux-gnu' [ 36%] Linking CXX shared library outputs/usr/lib/riscv64-linux-gnu/libHepMC3.so /usr/bin/cmake -E cmake_link_script CMakeFiles/HepMC3.dir/link.txt --verbose=1 /usr/bin/c++ -fPIC -g -O2 -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -Wl,-Bsymbolic-functions -Wl,-z,relro -shared -Wl,-soname,libHepMC3.so.2 -o outputs/usr/lib/riscv64-linux-gnu/libHepMC3.so.2 CMakeFiles/objlibcore.dir/src/GenCrossSection.cc.o CMakeFiles/objlibcore.dir/src/GenParticle.cc.o CMakeFiles/objlibcore.dir/src/GenVertex.cc.o CMakeFiles/objlibcore.dir/src/Print.cc.o CMakeFiles/objlibcore.dir/src/Setup.cc.o CMakeFiles/objlibcore.dir/src/WriterHEPEVT.cc.o CMakeFiles/objlibcore.dir/src/GenEvent.cc.o CMakeFiles/objlibcore.dir/src/GenPdfInfo.cc.o CMakeFiles/objlibcore.dir/src/HEPEVT_Wrapper.cc.o CMakeFiles/objlibcore.dir/src/ReaderAscii.cc.o CMakeFiles/objlibcore.dir/src/ReaderHEPEVT.cc.o CMakeFiles/objlibcore.dir/src/WriterAscii.cc.o CMakeFiles/objlibcore.dir/src/GenHeavyIon.cc.o CMakeFiles/objlibcore.dir/src/GenRunInfo.cc.o CMakeFiles/objlibcore.dir/src/LHEFAttributes.cc.o CMakeFiles/objlibcore.dir/src/ReaderAsciiHepMC2.cc.o CMakeFiles/objlibcore.dir/src/ReaderLHEF.cc.o CMakeFiles/objlibcore.dir/src/WriterAsciiHepMC2.cc.o /usr/bin/cmake -E cmake_symlink_library outputs/usr/lib/riscv64-linux-gnu/libHepMC3.so.2 outputs/usr/lib/riscv64-linux-gnu/libHepMC3.so.2 outputs/usr/lib/riscv64-linux-gnu/libHepMC3.so make[4]: Leaving directory '/<>/obj-riscv64-linux-gnu' [ 36%] Built target HepMC3 make -f search/CMakeFiles/objlibsearch.dir/build.make search/CMakeFiles/objlibsearch.dir/depend make[4]: Entering directory '/<>/obj-riscv64-linux-gnu' cd /<>/obj-riscv64-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /<> /<>/search /<>/obj-riscv64-linux-gnu /<>/obj-riscv64-linux-gnu/search /<>/obj-riscv64-linux-gnu/search/CMakeFiles/objlibsearch.dir/DependInfo.cmake --color= Scanning dependencies of target objlibsearch make[4]: Leaving directory '/<>/obj-riscv64-linux-gnu' make -f search/CMakeFiles/objlibsearch.dir/build.make search/CMakeFiles/objlibsearch.dir/build make[4]: Entering directory '/<>/obj-riscv64-linux-gnu' [ 38%] Building CXX object search/CMakeFiles/objlibsearch.dir/src/Relatives.cc.o cd /<>/obj-riscv64-linux-gnu/search && /usr/bin/c++ -I/<>/include -I/<>/search/include -I/<>/search -g -O2 -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -o CMakeFiles/objlibsearch.dir/src/Relatives.cc.o -c /<>/search/src/Relatives.cc [ 40%] Building CXX object search/CMakeFiles/objlibsearch.dir/src/Selector.cc.o cd /<>/obj-riscv64-linux-gnu/search && /usr/bin/c++ -I/<>/include -I/<>/search/include -I/<>/search -g -O2 -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -o CMakeFiles/objlibsearch.dir/src/Selector.cc.o -c /<>/search/src/Selector.cc In file included from /<>/search/include/HepMC3/Selector.h:14, from /<>/search/src/Selector.cc:10: /<>/search/include/HepMC3/Feature.h: In lambda function: /<>/search/include/HepMC3/Feature.h:296:69: internal compiler error: in get_fns, at cp/tree.c:2457 296 | return fabs(local - value) <= ((fabs(local) < fabs(value))? fabs(value) : fabs(local)) * std::numeric_limits::epsilon(); | ^ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Preprocessed source stored into /tmp/cce62pgI.out file, please attach this to your bugreport. === BEGIN GCC DUMP === 32778: // Target: riscv64-linux-gnu 32778: // Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.3.0-10ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=riscv64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libsanitizer --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --disable-multilib --with-arch=rv64imafdc --with-abi=lp64d --enable-checking=release --build=riscv64-linux-gnu --host=riscv64-linux-gnu --target=riscv64-linux-gnu 32778: // Thread model: posix 32778: // gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu1) 32778: // 32778: // In file included from /<>/search/include/HepMC3/Selector.h:14, 32778: // from /<>/search/src/Selector.cc:10: 32778: // /<>/search/include/HepMC3/Feature.h: In lambda function: 32778: // /<>/search/include/HepMC3/Feature.h:296:69: internal compiler error: in get_fns, at cp/tree.c:2457 32778: // 296 | return fabs(local - value) <= ((fabs(local) < fabs(value))? fabs(value) : fabs(local)) * std::numeric_limits::epsilon(); 32778: // | ^ 32778: // Please submit a full bug report, 32778: // with preprocessed source if appropriate. 32778: // See for instructions. 32778: 32778: // /usr/lib/gcc/riscv64-linux-gnu/9/cc1plus -quiet -I /<>/include -I /<>/search/include -I /<>/search -imultilib . -imultiarch riscv64-linux-gnu -D_GNU_SOURCE -D _FORTIFY_SOURCE=2 /<>/search/src/Selector.cc -quiet -dumpbase Selector.cc -march=rv64imafdc -mabi=lp64d -auxbase-strip CMakeFiles/objlibsearch.dir/src/Selector.cc.o -g -O2 -Wformat=1 -Werror=format-security -Wdate-time -std=c++11 -fdebug-prefix-map=/<>=. -fstack-protector-strong -fPIC -fstack-protector-strong -Wformat -Wformat-security -o - -frandom-seed=0 -fdump-noaddr 32778: 32778: # 1 "/<>/search/src/Selector.cc" 32778: # 1 "/<>/obj-riscv64-linux-gnu/search//" 32778: # 1 "" 32778: # 1 "" 32778: # 1 "/usr/include/stdc-predef.h" 1 3 4 32778: # 1 "" 2 32778: # 1 "/<>/search/src/Selector.cc" 32778: # 10 "/<>/search/src/Selector.cc" 32778: # 1 "/<>/search/include/HepMC3/Selector.h" 1 32778: # 13 "/<>/search/include/HepMC3/Selector.h" 32778: # 1 "/<>/search/include/HepMC3/Filter.h" 1 32778: # 13 "/<>/search/include/HepMC3/Filter.h" 32778: # 1 "/<>/include/HepMC3/GenParticle.h" 1 32778: # 16 "/<>/include/HepMC3/GenParticle.h" 32778: # 1 "/usr/include/c++/9/string" 1 3 32778: # 36 "/usr/include/c++/9/string" 3 32778: 32778: # 37 "/usr/include/c++/9/string" 3 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/c++/9/bits/c++config.h" 1 3 32778: # 252 "/usr/include/riscv64-linux-gnu/c++/9/bits/c++config.h" 3 32778: 32778: # 252 "/usr/include/riscv64-linux-gnu/c++/9/bits/c++config.h" 3 32778: namespace std 32778: { 32778: typedef long unsigned int size_t; 32778: typedef long int ptrdiff_t; 32778: 32778: 32778: typedef decltype(nullptr) nullptr_t; 32778: 32778: } 32778: # 274 "/usr/include/riscv64-linux-gnu/c++/9/bits/c++config.h" 3 32778: namespace std 32778: { 32778: inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } 32778: } 32778: namespace __gnu_cxx 32778: { 32778: inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } 32778: } 32778: # 524 "/usr/include/riscv64-linux-gnu/c++/9/bits/c++config.h" 3 32778: # 1 "/usr/include/riscv64-linux-gnu/c++/9/bits/os_defines.h" 1 3 32778: # 39 "/usr/include/riscv64-linux-gnu/c++/9/bits/os_defines.h" 3 32778: # 1 "/usr/include/features.h" 1 3 4 32778: # 461 "/usr/include/features.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/sys/cdefs.h" 1 3 4 32778: # 452 "/usr/include/riscv64-linux-gnu/sys/cdefs.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/wordsize.h" 1 3 4 32778: # 453 "/usr/include/riscv64-linux-gnu/sys/cdefs.h" 2 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/long-double.h" 1 3 4 32778: # 454 "/usr/include/riscv64-linux-gnu/sys/cdefs.h" 2 3 4 32778: # 462 "/usr/include/features.h" 2 3 4 32778: # 485 "/usr/include/features.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/gnu/stubs.h" 1 3 4 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/wordsize.h" 1 3 4 32778: # 6 "/usr/include/riscv64-linux-gnu/gnu/stubs.h" 2 3 4 32778: 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/gnu/stubs-lp64d.h" 1 3 4 32778: # 12 "/usr/include/riscv64-linux-gnu/gnu/stubs.h" 2 3 4 32778: # 486 "/usr/include/features.h" 2 3 4 32778: # 40 "/usr/include/riscv64-linux-gnu/c++/9/bits/os_defines.h" 2 3 32778: # 525 "/usr/include/riscv64-linux-gnu/c++/9/bits/c++config.h" 2 3 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/c++/9/bits/cpu_defines.h" 1 3 32778: # 528 "/usr/include/riscv64-linux-gnu/c++/9/bits/c++config.h" 2 3 32778: # 39 "/usr/include/c++/9/string" 2 3 32778: # 1 "/usr/include/c++/9/bits/stringfwd.h" 1 3 32778: # 37 "/usr/include/c++/9/bits/stringfwd.h" 3 32778: 32778: # 38 "/usr/include/c++/9/bits/stringfwd.h" 3 32778: 32778: 32778: # 1 "/usr/include/c++/9/bits/memoryfwd.h" 1 3 32778: # 46 "/usr/include/c++/9/bits/memoryfwd.h" 3 32778: 32778: # 47 "/usr/include/c++/9/bits/memoryfwd.h" 3 32778: 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 63 "/usr/include/c++/9/bits/memoryfwd.h" 3 32778: template 32778: class allocator; 32778: 32778: template<> 32778: class allocator; 32778: 32778: 32778: 32778: template 32778: struct uses_allocator; 32778: 32778: 32778: 32778: 32778: 32778: } 32778: # 41 "/usr/include/c++/9/bits/stringfwd.h" 2 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct char_traits; 32778: 32778: template<> struct char_traits; 32778: 32778: 32778: template<> struct char_traits; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template<> struct char_traits; 32778: template<> struct char_traits; 32778: 32778: 32778: namespace __cxx11 { 32778: 32778: template, 32778: typename _Alloc = allocator<_CharT> > 32778: class basic_string; 32778: 32778: } 32778: 32778: 32778: typedef basic_string string; 32778: 32778: 32778: 32778: typedef basic_string wstring; 32778: # 93 "/usr/include/c++/9/bits/stringfwd.h" 3 32778: typedef basic_string u16string; 32778: 32778: 32778: typedef basic_string u32string; 32778: 32778: 32778: 32778: 32778: 32778: } 32778: # 40 "/usr/include/c++/9/string" 2 3 32778: # 1 "/usr/include/c++/9/bits/char_traits.h" 1 3 32778: # 37 "/usr/include/c++/9/bits/char_traits.h" 3 32778: 32778: # 38 "/usr/include/c++/9/bits/char_traits.h" 3 32778: 32778: # 1 "/usr/include/c++/9/bits/stl_algobase.h" 1 3 32778: # 60 "/usr/include/c++/9/bits/stl_algobase.h" 3 32778: # 1 "/usr/include/c++/9/bits/functexcept.h" 1 3 32778: # 40 "/usr/include/c++/9/bits/functexcept.h" 3 32778: # 1 "/usr/include/c++/9/bits/exception_defines.h" 1 3 32778: # 41 "/usr/include/c++/9/bits/functexcept.h" 2 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: void 32778: __throw_bad_exception(void) __attribute__((__noreturn__)); 32778: 32778: 32778: void 32778: __throw_bad_alloc(void) __attribute__((__noreturn__)); 32778: 32778: 32778: void 32778: __throw_bad_cast(void) __attribute__((__noreturn__)); 32778: 32778: void 32778: __throw_bad_typeid(void) __attribute__((__noreturn__)); 32778: 32778: 32778: void 32778: __throw_logic_error(const char*) __attribute__((__noreturn__)); 32778: 32778: void 32778: __throw_domain_error(const char*) __attribute__((__noreturn__)); 32778: 32778: void 32778: __throw_invalid_argument(const char*) __attribute__((__noreturn__)); 32778: 32778: void 32778: __throw_length_error(const char*) __attribute__((__noreturn__)); 32778: 32778: void 32778: __throw_out_of_range(const char*) __attribute__((__noreturn__)); 32778: 32778: void 32778: __throw_out_of_range_fmt(const char*, ...) __attribute__((__noreturn__)) 32778: __attribute__((__format__(__gnu_printf__, 1, 2))); 32778: 32778: void 32778: __throw_runtime_error(const char*) __attribute__((__noreturn__)); 32778: 32778: void 32778: __throw_range_error(const char*) __attribute__((__noreturn__)); 32778: 32778: void 32778: __throw_overflow_error(const char*) __attribute__((__noreturn__)); 32778: 32778: void 32778: __throw_underflow_error(const char*) __attribute__((__noreturn__)); 32778: 32778: 32778: void 32778: __throw_ios_failure(const char*) __attribute__((__noreturn__)); 32778: 32778: void 32778: __throw_ios_failure(const char*, int) __attribute__((__noreturn__)); 32778: 32778: 32778: void 32778: __throw_system_error(int) __attribute__((__noreturn__)); 32778: 32778: 32778: void 32778: __throw_future_error(int) __attribute__((__noreturn__)); 32778: 32778: 32778: void 32778: __throw_bad_function_call() __attribute__((__noreturn__)); 32778: 32778: 32778: } 32778: # 61 "/usr/include/c++/9/bits/stl_algobase.h" 2 3 32778: # 1 "/usr/include/c++/9/bits/cpp_type_traits.h" 1 3 32778: # 35 "/usr/include/c++/9/bits/cpp_type_traits.h" 3 32778: 32778: # 36 "/usr/include/c++/9/bits/cpp_type_traits.h" 3 32778: # 67 "/usr/include/c++/9/bits/cpp_type_traits.h" 3 32778: extern "C++" { 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: struct __true_type { }; 32778: struct __false_type { }; 32778: 32778: template 32778: struct __truth_type 32778: { typedef __false_type __type; }; 32778: 32778: template<> 32778: struct __truth_type 32778: { typedef __true_type __type; }; 32778: 32778: 32778: 32778: template 32778: struct __traitor 32778: { 32778: enum { __value = bool(_Sp::__value) || bool(_Tp::__value) }; 32778: typedef typename __truth_type<__value>::__type __type; 32778: }; 32778: 32778: 32778: template 32778: struct __are_same 32778: { 32778: enum { __value = 0 }; 32778: typedef __false_type __type; 32778: }; 32778: 32778: template 32778: struct __are_same<_Tp, _Tp> 32778: { 32778: enum { __value = 1 }; 32778: typedef __true_type __type; 32778: }; 32778: 32778: 32778: template 32778: struct __is_void 32778: { 32778: enum { __value = 0 }; 32778: typedef __false_type __type; 32778: }; 32778: 32778: template<> 32778: struct __is_void 32778: { 32778: enum { __value = 1 }; 32778: typedef __true_type __type; 32778: }; 32778: 32778: 32778: 32778: 32778: template 32778: struct __is_integer 32778: { 32778: enum { __value = 0 }; 32778: typedef __false_type __type; 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: template<> 32778: struct __is_integer 32778: { 32778: enum { __value = 1 }; 32778: typedef __true_type __type; 32778: }; 32778: 32778: template<> 32778: struct __is_integer 32778: { 32778: enum { __value = 1 }; 32778: typedef __true_type __type; 32778: }; 32778: 32778: template<> 32778: struct __is_integer 32778: { 32778: enum { __value = 1 }; 32778: typedef __true_type __type; 32778: }; 32778: 32778: template<> 32778: struct __is_integer 32778: { 32778: enum { __value = 1 }; 32778: typedef __true_type __type; 32778: }; 32778: 32778: 32778: template<> 32778: struct __is_integer 32778: { 32778: enum { __value = 1 }; 32778: typedef __true_type __type; 32778: }; 32778: # 184 "/usr/include/c++/9/bits/cpp_type_traits.h" 3 32778: template<> 32778: struct __is_integer 32778: { 32778: enum { __value = 1 }; 32778: typedef __true_type __type; 32778: }; 32778: 32778: template<> 32778: struct __is_integer 32778: { 32778: enum { __value = 1 }; 32778: typedef __true_type __type; 32778: }; 32778: 32778: 32778: template<> 32778: struct __is_integer 32778: { 32778: enum { __value = 1 }; 32778: typedef __true_type __type; 32778: }; 32778: 32778: template<> 32778: struct __is_integer 32778: { 32778: enum { __value = 1 }; 32778: typedef __true_type __type; 32778: }; 32778: 32778: template<> 32778: struct __is_integer 32778: { 32778: enum { __value = 1 }; 32778: typedef __true_type __type; 32778: }; 32778: 32778: template<> 32778: struct __is_integer 32778: { 32778: enum { __value = 1 }; 32778: typedef __true_type __type; 32778: }; 32778: 32778: template<> 32778: struct __is_integer 32778: { 32778: enum { __value = 1 }; 32778: typedef __true_type __type; 32778: }; 32778: 32778: template<> 32778: struct __is_integer 32778: { 32778: enum { __value = 1 }; 32778: typedef __true_type __type; 32778: }; 32778: 32778: template<> 32778: struct __is_integer 32778: { 32778: enum { __value = 1 }; 32778: typedef __true_type __type; 32778: }; 32778: 32778: template<> 32778: struct __is_integer 32778: { 32778: enum { __value = 1 }; 32778: typedef __true_type __type; 32778: }; 32778: # 287 "/usr/include/c++/9/bits/cpp_type_traits.h" 3 32778: template 32778: struct __is_floating 32778: { 32778: enum { __value = 0 }; 32778: typedef __false_type __type; 32778: }; 32778: 32778: 32778: template<> 32778: struct __is_floating 32778: { 32778: enum { __value = 1 }; 32778: typedef __true_type __type; 32778: }; 32778: 32778: template<> 32778: struct __is_floating 32778: { 32778: enum { __value = 1 }; 32778: typedef __true_type __type; 32778: }; 32778: 32778: template<> 32778: struct __is_floating 32778: { 32778: enum { __value = 1 }; 32778: typedef __true_type __type; 32778: }; 32778: 32778: 32778: 32778: 32778: template 32778: struct __is_pointer 32778: { 32778: enum { __value = 0 }; 32778: typedef __false_type __type; 32778: }; 32778: 32778: template 32778: struct __is_pointer<_Tp*> 32778: { 32778: enum { __value = 1 }; 32778: typedef __true_type __type; 32778: }; 32778: 32778: 32778: 32778: 32778: template 32778: struct __is_arithmetic 32778: : public __traitor<__is_integer<_Tp>, __is_floating<_Tp> > 32778: { }; 32778: 32778: 32778: 32778: 32778: template 32778: struct __is_scalar 32778: : public __traitor<__is_arithmetic<_Tp>, __is_pointer<_Tp> > 32778: { }; 32778: 32778: 32778: 32778: 32778: template 32778: struct __is_char 32778: { 32778: enum { __value = 0 }; 32778: typedef __false_type __type; 32778: }; 32778: 32778: template<> 32778: struct __is_char 32778: { 32778: enum { __value = 1 }; 32778: typedef __true_type __type; 32778: }; 32778: 32778: 32778: template<> 32778: struct __is_char 32778: { 32778: enum { __value = 1 }; 32778: typedef __true_type __type; 32778: }; 32778: 32778: 32778: template 32778: struct __is_byte 32778: { 32778: enum { __value = 0 }; 32778: typedef __false_type __type; 32778: }; 32778: 32778: template<> 32778: struct __is_byte 32778: { 32778: enum { __value = 1 }; 32778: typedef __true_type __type; 32778: }; 32778: 32778: template<> 32778: struct __is_byte 32778: { 32778: enum { __value = 1 }; 32778: typedef __true_type __type; 32778: }; 32778: 32778: template<> 32778: struct __is_byte 32778: { 32778: enum { __value = 1 }; 32778: typedef __true_type __type; 32778: }; 32778: # 417 "/usr/include/c++/9/bits/cpp_type_traits.h" 3 32778: template 32778: struct __is_move_iterator 32778: { 32778: enum { __value = 0 }; 32778: typedef __false_type __type; 32778: }; 32778: 32778: 32778: 32778: template 32778: inline _Iterator 32778: __miter_base(_Iterator __it) 32778: { return __it; } 32778: 32778: 32778: } 32778: } 32778: # 62 "/usr/include/c++/9/bits/stl_algobase.h" 2 3 32778: # 1 "/usr/include/c++/9/ext/type_traits.h" 1 3 32778: # 32 "/usr/include/c++/9/ext/type_traits.h" 3 32778: 32778: # 33 "/usr/include/c++/9/ext/type_traits.h" 3 32778: 32778: 32778: 32778: 32778: extern "C++" { 32778: 32778: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: template 32778: struct __enable_if 32778: { }; 32778: 32778: template 32778: struct __enable_if 32778: { typedef _Tp __type; }; 32778: 32778: 32778: 32778: template 32778: struct __conditional_type 32778: { typedef _Iftrue __type; }; 32778: 32778: template 32778: struct __conditional_type 32778: { typedef _Iffalse __type; }; 32778: 32778: 32778: 32778: template 32778: struct __add_unsigned 32778: { 32778: private: 32778: typedef __enable_if::__value, _Tp> __if_type; 32778: 32778: public: 32778: typedef typename __if_type::__type __type; 32778: }; 32778: 32778: template<> 32778: struct __add_unsigned 32778: { typedef unsigned char __type; }; 32778: 32778: template<> 32778: struct __add_unsigned 32778: { typedef unsigned char __type; }; 32778: 32778: template<> 32778: struct __add_unsigned 32778: { typedef unsigned short __type; }; 32778: 32778: template<> 32778: struct __add_unsigned 32778: { typedef unsigned int __type; }; 32778: 32778: template<> 32778: struct __add_unsigned 32778: { typedef unsigned long __type; }; 32778: 32778: template<> 32778: struct __add_unsigned 32778: { typedef unsigned long long __type; }; 32778: 32778: 32778: template<> 32778: struct __add_unsigned; 32778: 32778: template<> 32778: struct __add_unsigned; 32778: 32778: 32778: 32778: template 32778: struct __remove_unsigned 32778: { 32778: private: 32778: typedef __enable_if::__value, _Tp> __if_type; 32778: 32778: public: 32778: typedef typename __if_type::__type __type; 32778: }; 32778: 32778: template<> 32778: struct __remove_unsigned 32778: { typedef signed char __type; }; 32778: 32778: template<> 32778: struct __remove_unsigned 32778: { typedef signed char __type; }; 32778: 32778: template<> 32778: struct __remove_unsigned 32778: { typedef short __type; }; 32778: 32778: template<> 32778: struct __remove_unsigned 32778: { typedef int __type; }; 32778: 32778: template<> 32778: struct __remove_unsigned 32778: { typedef long __type; }; 32778: 32778: template<> 32778: struct __remove_unsigned 32778: { typedef long long __type; }; 32778: 32778: 32778: template<> 32778: struct __remove_unsigned; 32778: 32778: template<> 32778: struct __remove_unsigned; 32778: 32778: 32778: 32778: template 32778: inline bool 32778: __is_null_pointer(_Type* __ptr) 32778: { return __ptr == 0; } 32778: 32778: template 32778: inline bool 32778: __is_null_pointer(_Type) 32778: { return false; } 32778: 32778: 32778: inline bool 32778: __is_null_pointer(std::nullptr_t) 32778: { return true; } 32778: 32778: 32778: 32778: template::__value> 32778: struct __promote 32778: { typedef double __type; }; 32778: 32778: 32778: 32778: 32778: template 32778: struct __promote<_Tp, false> 32778: { }; 32778: 32778: template<> 32778: struct __promote 32778: { typedef long double __type; }; 32778: 32778: template<> 32778: struct __promote 32778: { typedef double __type; }; 32778: 32778: template<> 32778: struct __promote 32778: { typedef float __type; }; 32778: 32778: template::__type, 32778: typename _Up2 = typename __promote<_Up>::__type> 32778: struct __promote_2 32778: { 32778: typedef __typeof__(_Tp2() + _Up2()) __type; 32778: }; 32778: 32778: template::__type, 32778: typename _Up2 = typename __promote<_Up>::__type, 32778: typename _Vp2 = typename __promote<_Vp>::__type> 32778: struct __promote_3 32778: { 32778: typedef __typeof__(_Tp2() + _Up2() + _Vp2()) __type; 32778: }; 32778: 32778: template::__type, 32778: typename _Up2 = typename __promote<_Up>::__type, 32778: typename _Vp2 = typename __promote<_Vp>::__type, 32778: typename _Wp2 = typename __promote<_Wp>::__type> 32778: struct __promote_4 32778: { 32778: typedef __typeof__(_Tp2() + _Up2() + _Vp2() + _Wp2()) __type; 32778: }; 32778: 32778: 32778: } 32778: } 32778: # 63 "/usr/include/c++/9/bits/stl_algobase.h" 2 3 32778: # 1 "/usr/include/c++/9/ext/numeric_traits.h" 1 3 32778: # 32 "/usr/include/c++/9/ext/numeric_traits.h" 3 32778: 32778: # 33 "/usr/include/c++/9/ext/numeric_traits.h" 3 32778: 32778: 32778: 32778: 32778: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 54 "/usr/include/c++/9/ext/numeric_traits.h" 3 32778: template 32778: struct __numeric_traits_integer 32778: { 32778: 32778: static const _Value __min = (((_Value)(-1) < 0) ? (_Value)1 << (sizeof(_Value) * 8 - ((_Value)(-1) < 0)) : (_Value)0); 32778: static const _Value __max = (((_Value)(-1) < 0) ? (((((_Value)1 << ((sizeof(_Value) * 8 - ((_Value)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(_Value)0); 32778: 32778: 32778: 32778: static const bool __is_signed = ((_Value)(-1) < 0); 32778: static const int __digits = (sizeof(_Value) * 8 - ((_Value)(-1) < 0)); 32778: }; 32778: 32778: template 32778: const _Value __numeric_traits_integer<_Value>::__min; 32778: 32778: template 32778: const _Value __numeric_traits_integer<_Value>::__max; 32778: 32778: template 32778: const bool __numeric_traits_integer<_Value>::__is_signed; 32778: 32778: template 32778: const int __numeric_traits_integer<_Value>::__digits; 32778: # 99 "/usr/include/c++/9/ext/numeric_traits.h" 3 32778: template 32778: struct __numeric_traits_floating 32778: { 32778: 32778: static const int __max_digits10 = (2 + (std::__are_same<_Value, float>::__value ? 24 : std::__are_same<_Value, double>::__value ? 53 : 113) * 643L / 2136); 32778: 32778: 32778: static const bool __is_signed = true; 32778: static const int __digits10 = (std::__are_same<_Value, float>::__value ? 6 : std::__are_same<_Value, double>::__value ? 15 : 33); 32778: static const int __max_exponent10 = (std::__are_same<_Value, float>::__value ? 38 : std::__are_same<_Value, double>::__value ? 308 : 4932); 32778: }; 32778: 32778: template 32778: const int __numeric_traits_floating<_Value>::__max_digits10; 32778: 32778: template 32778: const bool __numeric_traits_floating<_Value>::__is_signed; 32778: 32778: template 32778: const int __numeric_traits_floating<_Value>::__digits10; 32778: 32778: template 32778: const int __numeric_traits_floating<_Value>::__max_exponent10; 32778: 32778: template 32778: struct __numeric_traits 32778: : public __conditional_type::__value, 32778: __numeric_traits_integer<_Value>, 32778: __numeric_traits_floating<_Value> >::__type 32778: { }; 32778: 32778: 32778: } 32778: # 64 "/usr/include/c++/9/bits/stl_algobase.h" 2 3 32778: # 1 "/usr/include/c++/9/bits/stl_pair.h" 1 3 32778: # 59 "/usr/include/c++/9/bits/stl_pair.h" 3 32778: # 1 "/usr/include/c++/9/bits/move.h" 1 3 32778: # 34 "/usr/include/c++/9/bits/move.h" 3 32778: # 1 "/usr/include/c++/9/bits/concept_check.h" 1 3 32778: # 33 "/usr/include/c++/9/bits/concept_check.h" 3 32778: 32778: # 34 "/usr/include/c++/9/bits/concept_check.h" 3 32778: # 35 "/usr/include/c++/9/bits/move.h" 2 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline constexpr _Tp* 32778: __addressof(_Tp& __r) noexcept 32778: { return __builtin_addressof(__r); } 32778: 32778: 32778: 32778: 32778: } 32778: 32778: # 1 "/usr/include/c++/9/type_traits" 1 3 32778: # 32 "/usr/include/c++/9/type_traits" 3 32778: 32778: # 33 "/usr/include/c++/9/type_traits" 3 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 56 "/usr/include/c++/9/type_traits" 3 32778: template 32778: struct integral_constant 32778: { 32778: static constexpr _Tp value = __v; 32778: typedef _Tp value_type; 32778: typedef integral_constant<_Tp, __v> type; 32778: constexpr operator value_type() const noexcept { return value; } 32778: 32778: 32778: 32778: 32778: 32778: 32778: }; 32778: 32778: template 32778: constexpr _Tp integral_constant<_Tp, __v>::value; 32778: 32778: 32778: typedef integral_constant true_type; 32778: 32778: 32778: typedef integral_constant false_type; 32778: 32778: template 32778: using __bool_constant = integral_constant; 32778: # 91 "/usr/include/c++/9/type_traits" 3 32778: template 32778: struct conditional; 32778: 32778: template 32778: struct __or_; 32778: 32778: template<> 32778: struct __or_<> 32778: : public false_type 32778: { }; 32778: 32778: template 32778: struct __or_<_B1> 32778: : public _B1 32778: { }; 32778: 32778: template 32778: struct __or_<_B1, _B2> 32778: : public conditional<_B1::value, _B1, _B2>::type 32778: { }; 32778: 32778: template 32778: struct __or_<_B1, _B2, _B3, _Bn...> 32778: : public conditional<_B1::value, _B1, __or_<_B2, _B3, _Bn...>>::type 32778: { }; 32778: 32778: template 32778: struct __and_; 32778: 32778: template<> 32778: struct __and_<> 32778: : public true_type 32778: { }; 32778: 32778: template 32778: struct __and_<_B1> 32778: : public _B1 32778: { }; 32778: 32778: template 32778: struct __and_<_B1, _B2> 32778: : public conditional<_B1::value, _B2, _B1>::type 32778: { }; 32778: 32778: template 32778: struct __and_<_B1, _B2, _B3, _Bn...> 32778: : public conditional<_B1::value, __and_<_B2, _B3, _Bn...>, _B1>::type 32778: { }; 32778: 32778: template 32778: struct __not_ 32778: : public __bool_constant 32778: { }; 32778: # 185 "/usr/include/c++/9/type_traits" 3 32778: template 32778: struct __success_type 32778: { typedef _Tp type; }; 32778: 32778: struct __failure_type 32778: { }; 32778: 32778: 32778: 32778: template 32778: struct remove_cv; 32778: 32778: template 32778: struct __is_void_helper 32778: : public false_type { }; 32778: 32778: template<> 32778: struct __is_void_helper 32778: : public true_type { }; 32778: 32778: 32778: template 32778: struct is_void 32778: : public __is_void_helper::type>::type 32778: { }; 32778: 32778: template 32778: struct __is_integral_helper 32778: : public false_type { }; 32778: 32778: template<> 32778: struct __is_integral_helper 32778: : public true_type { }; 32778: 32778: template<> 32778: struct __is_integral_helper 32778: : public true_type { }; 32778: 32778: template<> 32778: struct __is_integral_helper 32778: : public true_type { }; 32778: 32778: template<> 32778: struct __is_integral_helper 32778: : public true_type { }; 32778: 32778: 32778: template<> 32778: struct __is_integral_helper 32778: : public true_type { }; 32778: # 243 "/usr/include/c++/9/type_traits" 3 32778: template<> 32778: struct __is_integral_helper 32778: : public true_type { }; 32778: 32778: template<> 32778: struct __is_integral_helper 32778: : public true_type { }; 32778: 32778: template<> 32778: struct __is_integral_helper 32778: : public true_type { }; 32778: 32778: template<> 32778: struct __is_integral_helper 32778: : public true_type { }; 32778: 32778: template<> 32778: struct __is_integral_helper 32778: : public true_type { }; 32778: 32778: template<> 32778: struct __is_integral_helper 32778: : public true_type { }; 32778: 32778: template<> 32778: struct __is_integral_helper 32778: : public true_type { }; 32778: 32778: template<> 32778: struct __is_integral_helper 32778: : public true_type { }; 32778: 32778: template<> 32778: struct __is_integral_helper 32778: : public true_type { }; 32778: 32778: template<> 32778: struct __is_integral_helper 32778: : public true_type { }; 32778: # 323 "/usr/include/c++/9/type_traits" 3 32778: template 32778: struct is_integral 32778: : public __is_integral_helper::type>::type 32778: { }; 32778: 32778: template 32778: struct __is_floating_point_helper 32778: : public false_type { }; 32778: 32778: template<> 32778: struct __is_floating_point_helper 32778: : public true_type { }; 32778: 32778: template<> 32778: struct __is_floating_point_helper 32778: : public true_type { }; 32778: 32778: template<> 32778: struct __is_floating_point_helper 32778: : public true_type { }; 32778: # 351 "/usr/include/c++/9/type_traits" 3 32778: template 32778: struct is_floating_point 32778: : public __is_floating_point_helper::type>::type 32778: { }; 32778: 32778: 32778: template 32778: struct is_array 32778: : public false_type { }; 32778: 32778: template 32778: struct is_array<_Tp[_Size]> 32778: : public true_type { }; 32778: 32778: template 32778: struct is_array<_Tp[]> 32778: : public true_type { }; 32778: 32778: template 32778: struct __is_pointer_helper 32778: : public false_type { }; 32778: 32778: template 32778: struct __is_pointer_helper<_Tp*> 32778: : public true_type { }; 32778: 32778: 32778: template 32778: struct is_pointer 32778: : public __is_pointer_helper::type>::type 32778: { }; 32778: 32778: 32778: template 32778: struct is_lvalue_reference 32778: : public false_type { }; 32778: 32778: template 32778: struct is_lvalue_reference<_Tp&> 32778: : public true_type { }; 32778: 32778: 32778: template 32778: struct is_rvalue_reference 32778: : public false_type { }; 32778: 32778: template 32778: struct is_rvalue_reference<_Tp&&> 32778: : public true_type { }; 32778: 32778: template 32778: struct is_function; 32778: 32778: template 32778: struct __is_member_object_pointer_helper 32778: : public false_type { }; 32778: 32778: template 32778: struct __is_member_object_pointer_helper<_Tp _Cp::*> 32778: : public __not_>::type { }; 32778: 32778: 32778: template 32778: struct is_member_object_pointer 32778: : public __is_member_object_pointer_helper< 32778: typename remove_cv<_Tp>::type>::type 32778: { }; 32778: 32778: template 32778: struct __is_member_function_pointer_helper 32778: : public false_type { }; 32778: 32778: template 32778: struct __is_member_function_pointer_helper<_Tp _Cp::*> 32778: : public is_function<_Tp>::type { }; 32778: 32778: 32778: template 32778: struct is_member_function_pointer 32778: : public __is_member_function_pointer_helper< 32778: typename remove_cv<_Tp>::type>::type 32778: { }; 32778: 32778: 32778: template 32778: struct is_enum 32778: : public integral_constant 32778: { }; 32778: 32778: 32778: template 32778: struct is_union 32778: : public integral_constant 32778: { }; 32778: 32778: 32778: template 32778: struct is_class 32778: : public integral_constant 32778: { }; 32778: 32778: 32778: template 32778: struct is_function 32778: : public false_type { }; 32778: 32778: template 32778: struct is_function<_Res(_ArgTypes...) > 32778: : public true_type { }; 32778: 32778: template 32778: struct is_function<_Res(_ArgTypes...) & > 32778: : public true_type { }; 32778: 32778: template 32778: struct is_function<_Res(_ArgTypes...) && > 32778: : public true_type { }; 32778: 32778: template 32778: struct is_function<_Res(_ArgTypes......) > 32778: : public true_type { }; 32778: 32778: template 32778: struct is_function<_Res(_ArgTypes......) & > 32778: : public true_type { }; 32778: 32778: template 32778: struct is_function<_Res(_ArgTypes......) && > 32778: : public true_type { }; 32778: 32778: template 32778: struct is_function<_Res(_ArgTypes...) const > 32778: : public true_type { }; 32778: 32778: template 32778: struct is_function<_Res(_ArgTypes...) const & > 32778: : public true_type { }; 32778: 32778: template 32778: struct is_function<_Res(_ArgTypes...) const && > 32778: : public true_type { }; 32778: 32778: template 32778: struct is_function<_Res(_ArgTypes......) const > 32778: : public true_type { }; 32778: 32778: template 32778: struct is_function<_Res(_ArgTypes......) const & > 32778: : public true_type { }; 32778: 32778: template 32778: struct is_function<_Res(_ArgTypes......) const && > 32778: : public true_type { }; 32778: 32778: template 32778: struct is_function<_Res(_ArgTypes...) volatile > 32778: : public true_type { }; 32778: 32778: template 32778: struct is_function<_Res(_ArgTypes...) volatile & > 32778: : public true_type { }; 32778: 32778: template 32778: struct is_function<_Res(_ArgTypes...) volatile && > 32778: : public true_type { }; 32778: 32778: template 32778: struct is_function<_Res(_ArgTypes......) volatile > 32778: : public true_type { }; 32778: 32778: template 32778: struct is_function<_Res(_ArgTypes......) volatile & > 32778: : public true_type { }; 32778: 32778: template 32778: struct is_function<_Res(_ArgTypes......) volatile && > 32778: : public true_type { }; 32778: 32778: template 32778: struct is_function<_Res(_ArgTypes...) const volatile > 32778: : public true_type { }; 32778: 32778: template 32778: struct is_function<_Res(_ArgTypes...) const volatile & > 32778: : public true_type { }; 32778: 32778: template 32778: struct is_function<_Res(_ArgTypes...) const volatile && > 32778: : public true_type { }; 32778: 32778: template 32778: struct is_function<_Res(_ArgTypes......) const volatile > 32778: : public true_type { }; 32778: 32778: template 32778: struct is_function<_Res(_ArgTypes......) const volatile & > 32778: : public true_type { }; 32778: 32778: template 32778: struct is_function<_Res(_ArgTypes......) const volatile && > 32778: : public true_type { }; 32778: 32778: 32778: 32778: template 32778: struct __is_null_pointer_helper 32778: : public false_type { }; 32778: 32778: template<> 32778: struct __is_null_pointer_helper 32778: : public true_type { }; 32778: 32778: 32778: template 32778: struct is_null_pointer 32778: : public __is_null_pointer_helper::type>::type 32778: { }; 32778: 32778: 32778: template 32778: struct __is_nullptr_t 32778: : public is_null_pointer<_Tp> 32778: { }; 32778: 32778: 32778: 32778: 32778: template 32778: struct is_reference 32778: : public __or_, 32778: is_rvalue_reference<_Tp>>::type 32778: { }; 32778: 32778: 32778: template 32778: struct is_arithmetic 32778: : public __or_, is_floating_point<_Tp>>::type 32778: { }; 32778: 32778: 32778: template 32778: struct is_fundamental 32778: : public __or_, is_void<_Tp>, 32778: is_null_pointer<_Tp>>::type 32778: { }; 32778: 32778: 32778: template 32778: struct is_object 32778: : public __not_<__or_, is_reference<_Tp>, 32778: is_void<_Tp>>>::type 32778: { }; 32778: 32778: template 32778: struct is_member_pointer; 32778: 32778: 32778: template 32778: struct is_scalar 32778: : public __or_, is_enum<_Tp>, is_pointer<_Tp>, 32778: is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type 32778: { }; 32778: 32778: 32778: template 32778: struct is_compound 32778: : public __not_>::type { }; 32778: 32778: template 32778: struct __is_member_pointer_helper 32778: : public false_type { }; 32778: 32778: template 32778: struct __is_member_pointer_helper<_Tp _Cp::*> 32778: : public true_type { }; 32778: 32778: 32778: template 32778: struct is_member_pointer 32778: : public __is_member_pointer_helper::type>::type 32778: { }; 32778: 32778: 32778: 32778: template 32778: struct __is_referenceable 32778: : public __or_, is_reference<_Tp>>::type 32778: { }; 32778: 32778: template 32778: struct __is_referenceable<_Res(_Args...) > 32778: : public true_type 32778: { }; 32778: 32778: template 32778: struct __is_referenceable<_Res(_Args......) > 32778: : public true_type 32778: { }; 32778: 32778: 32778: 32778: 32778: template 32778: struct is_const 32778: : public false_type { }; 32778: 32778: template 32778: struct is_const<_Tp const> 32778: : public true_type { }; 32778: 32778: 32778: template 32778: struct is_volatile 32778: : public false_type { }; 32778: 32778: template 32778: struct is_volatile<_Tp volatile> 32778: : public true_type { }; 32778: 32778: 32778: template 32778: struct is_trivial 32778: : public integral_constant 32778: { }; 32778: 32778: 32778: template 32778: struct is_trivially_copyable 32778: : public integral_constant 32778: { }; 32778: 32778: 32778: template 32778: struct is_standard_layout 32778: : public integral_constant 32778: { }; 32778: 32778: 32778: 32778: template 32778: struct is_pod 32778: : public integral_constant 32778: { }; 32778: 32778: 32778: template 32778: struct is_literal_type 32778: : public integral_constant 32778: { }; 32778: 32778: 32778: template 32778: struct is_empty 32778: : public integral_constant 32778: { }; 32778: 32778: 32778: template 32778: struct is_polymorphic 32778: : public integral_constant 32778: { }; 32778: # 723 "/usr/include/c++/9/type_traits" 3 32778: template 32778: struct is_abstract 32778: : public integral_constant 32778: { }; 32778: 32778: template::value> 32778: struct __is_signed_helper 32778: : public false_type { }; 32778: 32778: template 32778: struct __is_signed_helper<_Tp, true> 32778: : public integral_constant 32778: { }; 32778: 32778: 32778: template 32778: struct is_signed 32778: : public __is_signed_helper<_Tp>::type 32778: { }; 32778: 32778: 32778: template 32778: struct is_unsigned 32778: : public __and_, __not_>> 32778: { }; 32778: # 758 "/usr/include/c++/9/type_traits" 3 32778: template 32778: _Up 32778: __declval(int); 32778: 32778: template 32778: _Tp 32778: __declval(long); 32778: 32778: template 32778: auto declval() noexcept -> decltype(__declval<_Tp>(0)); 32778: 32778: template 32778: struct extent; 32778: 32778: template 32778: struct remove_all_extents; 32778: 32778: template 32778: struct __is_array_known_bounds 32778: : public integral_constant::value > 0)> 32778: { }; 32778: 32778: template 32778: struct __is_array_unknown_bounds 32778: : public __and_, __not_>> 32778: { }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: struct __do_is_destructible_impl 32778: { 32778: template().~_Tp())> 32778: static true_type __test(int); 32778: 32778: template 32778: static false_type __test(...); 32778: }; 32778: 32778: template 32778: struct __is_destructible_impl 32778: : public __do_is_destructible_impl 32778: { 32778: typedef decltype(__test<_Tp>(0)) type; 32778: }; 32778: 32778: template, 32778: __is_array_unknown_bounds<_Tp>, 32778: is_function<_Tp>>::value, 32778: bool = __or_, is_scalar<_Tp>>::value> 32778: struct __is_destructible_safe; 32778: 32778: template 32778: struct __is_destructible_safe<_Tp, false, false> 32778: : public __is_destructible_impl::type>::type 32778: { }; 32778: 32778: template 32778: struct __is_destructible_safe<_Tp, true, false> 32778: : public false_type { }; 32778: 32778: template 32778: struct __is_destructible_safe<_Tp, false, true> 32778: : public true_type { }; 32778: 32778: 32778: template 32778: struct is_destructible 32778: : public __is_destructible_safe<_Tp>::type 32778: { }; 32778: 32778: 32778: 32778: 32778: 32778: struct __do_is_nt_destructible_impl 32778: { 32778: template 32778: static __bool_constant().~_Tp())> 32778: __test(int); 32778: 32778: template 32778: static false_type __test(...); 32778: }; 32778: 32778: template 32778: struct __is_nt_destructible_impl 32778: : public __do_is_nt_destructible_impl 32778: { 32778: typedef decltype(__test<_Tp>(0)) type; 32778: }; 32778: 32778: template, 32778: __is_array_unknown_bounds<_Tp>, 32778: is_function<_Tp>>::value, 32778: bool = __or_, is_scalar<_Tp>>::value> 32778: struct __is_nt_destructible_safe; 32778: 32778: template 32778: struct __is_nt_destructible_safe<_Tp, false, false> 32778: : public __is_nt_destructible_impl::type>::type 32778: { }; 32778: 32778: template 32778: struct __is_nt_destructible_safe<_Tp, true, false> 32778: : public false_type { }; 32778: 32778: template 32778: struct __is_nt_destructible_safe<_Tp, false, true> 32778: : public true_type { }; 32778: 32778: 32778: template 32778: struct is_nothrow_destructible 32778: : public __is_nt_destructible_safe<_Tp>::type 32778: { }; 32778: 32778: 32778: template 32778: struct is_constructible 32778: : public __bool_constant<__is_constructible(_Tp, _Args...)> 32778: { }; 32778: 32778: 32778: template 32778: struct is_default_constructible 32778: : public is_constructible<_Tp>::type 32778: { }; 32778: 32778: template::value> 32778: struct __is_copy_constructible_impl; 32778: 32778: template 32778: struct __is_copy_constructible_impl<_Tp, false> 32778: : public false_type { }; 32778: 32778: template 32778: struct __is_copy_constructible_impl<_Tp, true> 32778: : public is_constructible<_Tp, const _Tp&> 32778: { }; 32778: 32778: 32778: template 32778: struct is_copy_constructible 32778: : public __is_copy_constructible_impl<_Tp> 32778: { }; 32778: 32778: template::value> 32778: struct __is_move_constructible_impl; 32778: 32778: template 32778: struct __is_move_constructible_impl<_Tp, false> 32778: : public false_type { }; 32778: 32778: template 32778: struct __is_move_constructible_impl<_Tp, true> 32778: : public is_constructible<_Tp, _Tp&&> 32778: { }; 32778: 32778: 32778: template 32778: struct is_move_constructible 32778: : public __is_move_constructible_impl<_Tp> 32778: { }; 32778: 32778: template 32778: struct __is_nt_default_constructible_atom 32778: : public integral_constant 32778: { }; 32778: 32778: template::value> 32778: struct __is_nt_default_constructible_impl; 32778: 32778: template 32778: struct __is_nt_default_constructible_impl<_Tp, true> 32778: : public __and_<__is_array_known_bounds<_Tp>, 32778: __is_nt_default_constructible_atom::type>> 32778: { }; 32778: 32778: template 32778: struct __is_nt_default_constructible_impl<_Tp, false> 32778: : public __is_nt_default_constructible_atom<_Tp> 32778: { }; 32778: 32778: 32778: template 32778: struct is_nothrow_default_constructible 32778: : public __and_, 32778: __is_nt_default_constructible_impl<_Tp>> 32778: { }; 32778: 32778: template 32778: struct __is_nt_constructible_impl 32778: : public integral_constant()...))> 32778: { }; 32778: 32778: template 32778: struct __is_nt_constructible_impl<_Tp, _Arg> 32778: : public integral_constant(declval<_Arg>()))> 32778: { }; 32778: 32778: template 32778: struct __is_nt_constructible_impl<_Tp> 32778: : public is_nothrow_default_constructible<_Tp> 32778: { }; 32778: 32778: 32778: template 32778: struct is_nothrow_constructible 32778: : public __and_, 32778: __is_nt_constructible_impl<_Tp, _Args...>> 32778: { }; 32778: 32778: template::value> 32778: struct __is_nothrow_copy_constructible_impl; 32778: 32778: template 32778: struct __is_nothrow_copy_constructible_impl<_Tp, false> 32778: : public false_type { }; 32778: 32778: template 32778: struct __is_nothrow_copy_constructible_impl<_Tp, true> 32778: : public is_nothrow_constructible<_Tp, const _Tp&> 32778: { }; 32778: 32778: 32778: template 32778: struct is_nothrow_copy_constructible 32778: : public __is_nothrow_copy_constructible_impl<_Tp> 32778: { }; 32778: 32778: template::value> 32778: struct __is_nothrow_move_constructible_impl; 32778: 32778: template 32778: struct __is_nothrow_move_constructible_impl<_Tp, false> 32778: : public false_type { }; 32778: 32778: template 32778: struct __is_nothrow_move_constructible_impl<_Tp, true> 32778: : public is_nothrow_constructible<_Tp, _Tp&&> 32778: { }; 32778: 32778: 32778: template 32778: struct is_nothrow_move_constructible 32778: : public __is_nothrow_move_constructible_impl<_Tp> 32778: { }; 32778: 32778: 32778: template 32778: struct is_assignable 32778: : public __bool_constant<__is_assignable(_Tp, _Up)> 32778: { }; 32778: 32778: template::value> 32778: struct __is_copy_assignable_impl; 32778: 32778: template 32778: struct __is_copy_assignable_impl<_Tp, false> 32778: : public false_type { }; 32778: 32778: template 32778: struct __is_copy_assignable_impl<_Tp, true> 32778: : public is_assignable<_Tp&, const _Tp&> 32778: { }; 32778: 32778: 32778: template 32778: struct is_copy_assignable 32778: : public __is_copy_assignable_impl<_Tp> 32778: { }; 32778: 32778: template::value> 32778: struct __is_move_assignable_impl; 32778: 32778: template 32778: struct __is_move_assignable_impl<_Tp, false> 32778: : public false_type { }; 32778: 32778: template 32778: struct __is_move_assignable_impl<_Tp, true> 32778: : public is_assignable<_Tp&, _Tp&&> 32778: { }; 32778: 32778: 32778: template 32778: struct is_move_assignable 32778: : public __is_move_assignable_impl<_Tp> 32778: { }; 32778: 32778: template 32778: struct __is_nt_assignable_impl 32778: : public integral_constant() = declval<_Up>())> 32778: { }; 32778: 32778: 32778: template 32778: struct is_nothrow_assignable 32778: : public __and_, 32778: __is_nt_assignable_impl<_Tp, _Up>> 32778: { }; 32778: 32778: template::value> 32778: struct __is_nt_copy_assignable_impl; 32778: 32778: template 32778: struct __is_nt_copy_assignable_impl<_Tp, false> 32778: : public false_type { }; 32778: 32778: template 32778: struct __is_nt_copy_assignable_impl<_Tp, true> 32778: : public is_nothrow_assignable<_Tp&, const _Tp&> 32778: { }; 32778: 32778: 32778: template 32778: struct is_nothrow_copy_assignable 32778: : public __is_nt_copy_assignable_impl<_Tp> 32778: { }; 32778: 32778: template::value> 32778: struct __is_nt_move_assignable_impl; 32778: 32778: template 32778: struct __is_nt_move_assignable_impl<_Tp, false> 32778: : public false_type { }; 32778: 32778: template 32778: struct __is_nt_move_assignable_impl<_Tp, true> 32778: : public is_nothrow_assignable<_Tp&, _Tp&&> 32778: { }; 32778: 32778: 32778: template 32778: struct is_nothrow_move_assignable 32778: : public __is_nt_move_assignable_impl<_Tp> 32778: { }; 32778: 32778: 32778: template 32778: struct is_trivially_constructible 32778: : public __bool_constant<__is_trivially_constructible(_Tp, _Args...)> 32778: { }; 32778: 32778: 32778: template 32778: struct is_trivially_default_constructible 32778: : public is_trivially_constructible<_Tp>::type 32778: { }; 32778: 32778: struct __do_is_implicitly_default_constructible_impl 32778: { 32778: template 32778: static void __helper(const _Tp&); 32778: 32778: template 32778: static true_type __test(const _Tp&, 32778: decltype(__helper({}))* = 0); 32778: 32778: static false_type __test(...); 32778: }; 32778: 32778: template 32778: struct __is_implicitly_default_constructible_impl 32778: : public __do_is_implicitly_default_constructible_impl 32778: { 32778: typedef decltype(__test(declval<_Tp>())) type; 32778: }; 32778: 32778: template 32778: struct __is_implicitly_default_constructible_safe 32778: : public __is_implicitly_default_constructible_impl<_Tp>::type 32778: { }; 32778: 32778: template 32778: struct __is_implicitly_default_constructible 32778: : public __and_, 32778: __is_implicitly_default_constructible_safe<_Tp>> 32778: { }; 32778: 32778: 32778: 32778: template::value> 32778: struct __is_trivially_copy_constructible_impl; 32778: 32778: template 32778: struct __is_trivially_copy_constructible_impl<_Tp, false> 32778: : public false_type { }; 32778: 32778: template 32778: struct __is_trivially_copy_constructible_impl<_Tp, true> 32778: : public __and_, 32778: integral_constant> 32778: { }; 32778: 32778: template 32778: struct is_trivially_copy_constructible 32778: : public __is_trivially_copy_constructible_impl<_Tp> 32778: { }; 32778: 32778: 32778: 32778: template::value> 32778: struct __is_trivially_move_constructible_impl; 32778: 32778: template 32778: struct __is_trivially_move_constructible_impl<_Tp, false> 32778: : public false_type { }; 32778: 32778: template 32778: struct __is_trivially_move_constructible_impl<_Tp, true> 32778: : public __and_, 32778: integral_constant> 32778: { }; 32778: 32778: template 32778: struct is_trivially_move_constructible 32778: : public __is_trivially_move_constructible_impl<_Tp> 32778: { }; 32778: 32778: 32778: template 32778: struct is_trivially_assignable 32778: : public __bool_constant<__is_trivially_assignable(_Tp, _Up)> 32778: { }; 32778: 32778: 32778: 32778: template::value> 32778: struct __is_trivially_copy_assignable_impl; 32778: 32778: template 32778: struct __is_trivially_copy_assignable_impl<_Tp, false> 32778: : public false_type { }; 32778: 32778: template 32778: struct __is_trivially_copy_assignable_impl<_Tp, true> 32778: : public __bool_constant<__is_trivially_assignable(_Tp&, const _Tp&)> 32778: { }; 32778: 32778: template 32778: struct is_trivially_copy_assignable 32778: : public __is_trivially_copy_assignable_impl<_Tp> 32778: { }; 32778: 32778: 32778: 32778: template::value> 32778: struct __is_trivially_move_assignable_impl; 32778: 32778: template 32778: struct __is_trivially_move_assignable_impl<_Tp, false> 32778: : public false_type { }; 32778: 32778: template 32778: struct __is_trivially_move_assignable_impl<_Tp, true> 32778: : public __bool_constant<__is_trivially_assignable(_Tp&, _Tp&&)> 32778: { }; 32778: 32778: template 32778: struct is_trivially_move_assignable 32778: : public __is_trivially_move_assignable_impl<_Tp> 32778: { }; 32778: 32778: 32778: template 32778: struct is_trivially_destructible 32778: : public __and_, 32778: __bool_constant<__has_trivial_destructor(_Tp)>> 32778: { }; 32778: 32778: 32778: 32778: template 32778: struct has_virtual_destructor 32778: : public integral_constant 32778: { }; 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct alignment_of 32778: : public integral_constant { }; 32778: 32778: 32778: template 32778: struct rank 32778: : public integral_constant { }; 32778: 32778: template 32778: struct rank<_Tp[_Size]> 32778: : public integral_constant::value> { }; 32778: 32778: template 32778: struct rank<_Tp[]> 32778: : public integral_constant::value> { }; 32778: 32778: 32778: template 32778: struct extent 32778: : public integral_constant { }; 32778: 32778: template 32778: struct extent<_Tp[_Size], _Uint> 32778: : public integral_constant::value> 32778: { }; 32778: 32778: template 32778: struct extent<_Tp[], _Uint> 32778: : public integral_constant::value> 32778: { }; 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct is_same 32778: : public false_type { }; 32778: 32778: template 32778: struct is_same<_Tp, _Tp> 32778: : public true_type { }; 32778: 32778: 32778: template 32778: struct is_base_of 32778: : public integral_constant 32778: { }; 32778: 32778: template, is_function<_To>, 32778: is_array<_To>>::value> 32778: struct __is_convertible_helper 32778: { 32778: typedef typename is_void<_To>::type type; 32778: }; 32778: 32778: template 32778: class __is_convertible_helper<_From, _To, false> 32778: { 32778: template 32778: static void __test_aux(_To1) noexcept; 32778: 32778: template(std::declval<_From1>()))> 32778: static true_type 32778: __test(int); 32778: 32778: template 32778: static false_type 32778: __test(...); 32778: 32778: public: 32778: typedef decltype(__test<_From, _To>(0)) type; 32778: }; 32778: 32778: 32778: 32778: template 32778: struct is_convertible 32778: : public __is_convertible_helper<_From, _To>::type 32778: { }; 32778: # 1380 "/usr/include/c++/9/type_traits" 3 32778: template 32778: struct remove_const 32778: { typedef _Tp type; }; 32778: 32778: template 32778: struct remove_const<_Tp const> 32778: { typedef _Tp type; }; 32778: 32778: 32778: template 32778: struct remove_volatile 32778: { typedef _Tp type; }; 32778: 32778: template 32778: struct remove_volatile<_Tp volatile> 32778: { typedef _Tp type; }; 32778: 32778: 32778: template 32778: struct remove_cv 32778: { 32778: typedef typename 32778: remove_const::type>::type type; 32778: }; 32778: 32778: 32778: template 32778: struct add_const 32778: { typedef _Tp const type; }; 32778: 32778: 32778: template 32778: struct add_volatile 32778: { typedef _Tp volatile type; }; 32778: 32778: 32778: template 32778: struct add_cv 32778: { 32778: typedef typename 32778: add_const::type>::type type; 32778: }; 32778: # 1455 "/usr/include/c++/9/type_traits" 3 32778: template 32778: struct remove_reference 32778: { typedef _Tp type; }; 32778: 32778: template 32778: struct remove_reference<_Tp&> 32778: { typedef _Tp type; }; 32778: 32778: template 32778: struct remove_reference<_Tp&&> 32778: { typedef _Tp type; }; 32778: 32778: template::value> 32778: struct __add_lvalue_reference_helper 32778: { typedef _Tp type; }; 32778: 32778: template 32778: struct __add_lvalue_reference_helper<_Tp, true> 32778: { typedef _Tp& type; }; 32778: 32778: 32778: template 32778: struct add_lvalue_reference 32778: : public __add_lvalue_reference_helper<_Tp> 32778: { }; 32778: 32778: template::value> 32778: struct __add_rvalue_reference_helper 32778: { typedef _Tp type; }; 32778: 32778: template 32778: struct __add_rvalue_reference_helper<_Tp, true> 32778: { typedef _Tp&& type; }; 32778: 32778: 32778: template 32778: struct add_rvalue_reference 32778: : public __add_rvalue_reference_helper<_Tp> 32778: { }; 32778: # 1512 "/usr/include/c++/9/type_traits" 3 32778: template 32778: struct __cv_selector; 32778: 32778: template 32778: struct __cv_selector<_Unqualified, false, false> 32778: { typedef _Unqualified __type; }; 32778: 32778: template 32778: struct __cv_selector<_Unqualified, false, true> 32778: { typedef volatile _Unqualified __type; }; 32778: 32778: template 32778: struct __cv_selector<_Unqualified, true, false> 32778: { typedef const _Unqualified __type; }; 32778: 32778: template 32778: struct __cv_selector<_Unqualified, true, true> 32778: { typedef const volatile _Unqualified __type; }; 32778: 32778: template::value, 32778: bool _IsVol = is_volatile<_Qualified>::value> 32778: class __match_cv_qualifiers 32778: { 32778: typedef __cv_selector<_Unqualified, _IsConst, _IsVol> __match; 32778: 32778: public: 32778: typedef typename __match::__type __type; 32778: }; 32778: 32778: 32778: template 32778: struct __make_unsigned 32778: { typedef _Tp __type; }; 32778: 32778: template<> 32778: struct __make_unsigned 32778: { typedef unsigned char __type; }; 32778: 32778: template<> 32778: struct __make_unsigned 32778: { typedef unsigned char __type; }; 32778: 32778: template<> 32778: struct __make_unsigned 32778: { typedef unsigned short __type; }; 32778: 32778: template<> 32778: struct __make_unsigned 32778: { typedef unsigned int __type; }; 32778: 32778: template<> 32778: struct __make_unsigned 32778: { typedef unsigned long __type; }; 32778: 32778: template<> 32778: struct __make_unsigned 32778: { typedef unsigned long long __type; }; 32778: # 1593 "/usr/include/c++/9/type_traits" 3 32778: template::value, 32778: bool _IsEnum = is_enum<_Tp>::value> 32778: class __make_unsigned_selector; 32778: 32778: template 32778: class __make_unsigned_selector<_Tp, true, false> 32778: { 32778: using __unsigned_type 32778: = typename __make_unsigned::type>::__type; 32778: 32778: public: 32778: using __type 32778: = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; 32778: }; 32778: 32778: class __make_unsigned_selector_base 32778: { 32778: protected: 32778: template struct _List { }; 32778: 32778: template 32778: struct _List<_Tp, _Up...> : _List<_Up...> 32778: { static constexpr size_t __size = sizeof(_Tp); }; 32778: 32778: template 32778: struct __select; 32778: 32778: template 32778: struct __select<_Sz, _List<_Uint, _UInts...>, true> 32778: { using __type = _Uint; }; 32778: 32778: template 32778: struct __select<_Sz, _List<_Uint, _UInts...>, false> 32778: : __select<_Sz, _List<_UInts...>> 32778: { }; 32778: }; 32778: 32778: 32778: template 32778: class __make_unsigned_selector<_Tp, false, true> 32778: : __make_unsigned_selector_base 32778: { 32778: 32778: using _UInts = _List; 32778: 32778: using __unsigned_type = typename __select::__type; 32778: 32778: public: 32778: using __type 32778: = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: template<> 32778: struct __make_unsigned 32778: { 32778: using __type 32778: = typename __make_unsigned_selector::__type; 32778: }; 32778: # 1669 "/usr/include/c++/9/type_traits" 3 32778: template<> 32778: struct __make_unsigned 32778: { 32778: using __type 32778: = typename __make_unsigned_selector::__type; 32778: }; 32778: 32778: template<> 32778: struct __make_unsigned 32778: { 32778: using __type 32778: = typename __make_unsigned_selector::__type; 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct make_unsigned 32778: { typedef typename __make_unsigned_selector<_Tp>::__type type; }; 32778: 32778: 32778: template<> 32778: struct make_unsigned; 32778: 32778: 32778: 32778: template 32778: struct __make_signed 32778: { typedef _Tp __type; }; 32778: 32778: template<> 32778: struct __make_signed 32778: { typedef signed char __type; }; 32778: 32778: template<> 32778: struct __make_signed 32778: { typedef signed char __type; }; 32778: 32778: template<> 32778: struct __make_signed 32778: { typedef signed short __type; }; 32778: 32778: template<> 32778: struct __make_signed 32778: { typedef signed int __type; }; 32778: 32778: template<> 32778: struct __make_signed 32778: { typedef signed long __type; }; 32778: 32778: template<> 32778: struct __make_signed 32778: { typedef signed long long __type; }; 32778: # 1747 "/usr/include/c++/9/type_traits" 3 32778: template::value, 32778: bool _IsEnum = is_enum<_Tp>::value> 32778: class __make_signed_selector; 32778: 32778: template 32778: class __make_signed_selector<_Tp, true, false> 32778: { 32778: using __signed_type 32778: = typename __make_signed::type>::__type; 32778: 32778: public: 32778: using __type 32778: = typename __match_cv_qualifiers<_Tp, __signed_type>::__type; 32778: }; 32778: 32778: 32778: template 32778: class __make_signed_selector<_Tp, false, true> 32778: { 32778: typedef typename __make_unsigned_selector<_Tp>::__type __unsigned_type; 32778: 32778: public: 32778: typedef typename __make_signed_selector<__unsigned_type>::__type __type; 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: template<> 32778: struct __make_signed 32778: { 32778: using __type 32778: = typename __make_signed_selector::__type; 32778: }; 32778: # 1795 "/usr/include/c++/9/type_traits" 3 32778: template<> 32778: struct __make_signed 32778: { 32778: using __type 32778: = typename __make_signed_selector::__type; 32778: }; 32778: 32778: template<> 32778: struct __make_signed 32778: { 32778: using __type 32778: = typename __make_signed_selector::__type; 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct make_signed 32778: { typedef typename __make_signed_selector<_Tp>::__type type; }; 32778: 32778: 32778: template<> 32778: struct make_signed; 32778: # 1834 "/usr/include/c++/9/type_traits" 3 32778: template 32778: struct remove_extent 32778: { typedef _Tp type; }; 32778: 32778: template 32778: struct remove_extent<_Tp[_Size]> 32778: { typedef _Tp type; }; 32778: 32778: template 32778: struct remove_extent<_Tp[]> 32778: { typedef _Tp type; }; 32778: 32778: 32778: template 32778: struct remove_all_extents 32778: { typedef _Tp type; }; 32778: 32778: template 32778: struct remove_all_extents<_Tp[_Size]> 32778: { typedef typename remove_all_extents<_Tp>::type type; }; 32778: 32778: template 32778: struct remove_all_extents<_Tp[]> 32778: { typedef typename remove_all_extents<_Tp>::type type; }; 32778: # 1871 "/usr/include/c++/9/type_traits" 3 32778: template 32778: struct __remove_pointer_helper 32778: { typedef _Tp type; }; 32778: 32778: template 32778: struct __remove_pointer_helper<_Tp, _Up*> 32778: { typedef _Up type; }; 32778: 32778: 32778: template 32778: struct remove_pointer 32778: : public __remove_pointer_helper<_Tp, typename remove_cv<_Tp>::type> 32778: { }; 32778: 32778: 32778: template, 32778: is_void<_Tp>>::value> 32778: struct __add_pointer_helper 32778: { typedef _Tp type; }; 32778: 32778: template 32778: struct __add_pointer_helper<_Tp, true> 32778: { typedef typename remove_reference<_Tp>::type* type; }; 32778: 32778: template 32778: struct add_pointer 32778: : public __add_pointer_helper<_Tp> 32778: { }; 32778: # 1910 "/usr/include/c++/9/type_traits" 3 32778: template 32778: struct __aligned_storage_msa 32778: { 32778: union __type 32778: { 32778: unsigned char __data[_Len]; 32778: struct __attribute__((__aligned__)) { } __align; 32778: }; 32778: }; 32778: # 1930 "/usr/include/c++/9/type_traits" 3 32778: template::__type)> 32778: struct aligned_storage 32778: { 32778: union type 32778: { 32778: unsigned char __data[_Len]; 32778: struct __attribute__((__aligned__((_Align)))) { } __align; 32778: }; 32778: }; 32778: 32778: template 32778: struct __strictest_alignment 32778: { 32778: static const size_t _S_alignment = 0; 32778: static const size_t _S_size = 0; 32778: }; 32778: 32778: template 32778: struct __strictest_alignment<_Tp, _Types...> 32778: { 32778: static const size_t _S_alignment = 32778: alignof(_Tp) > __strictest_alignment<_Types...>::_S_alignment 32778: ? alignof(_Tp) : __strictest_alignment<_Types...>::_S_alignment; 32778: static const size_t _S_size = 32778: sizeof(_Tp) > __strictest_alignment<_Types...>::_S_size 32778: ? sizeof(_Tp) : __strictest_alignment<_Types...>::_S_size; 32778: }; 32778: # 1969 "/usr/include/c++/9/type_traits" 3 32778: template 32778: struct aligned_union 32778: { 32778: private: 32778: static_assert(sizeof...(_Types) != 0, "At least one type is required"); 32778: 32778: using __strictest = __strictest_alignment<_Types...>; 32778: static const size_t _S_len = _Len > __strictest::_S_size 32778: ? _Len : __strictest::_S_size; 32778: public: 32778: 32778: static const size_t alignment_value = __strictest::_S_alignment; 32778: 32778: typedef typename aligned_storage<_S_len, alignment_value>::type type; 32778: }; 32778: 32778: template 32778: const size_t aligned_union<_Len, _Types...>::alignment_value; 32778: 32778: 32778: 32778: template::value, 32778: bool _IsFunction = is_function<_Up>::value> 32778: struct __decay_selector; 32778: 32778: 32778: template 32778: struct __decay_selector<_Up, false, false> 32778: { typedef typename remove_cv<_Up>::type __type; }; 32778: 32778: template 32778: struct __decay_selector<_Up, true, false> 32778: { typedef typename remove_extent<_Up>::type* __type; }; 32778: 32778: template 32778: struct __decay_selector<_Up, false, true> 32778: { typedef typename add_pointer<_Up>::type __type; }; 32778: 32778: 32778: template 32778: class decay 32778: { 32778: typedef typename remove_reference<_Tp>::type __remove_type; 32778: 32778: public: 32778: typedef typename __decay_selector<__remove_type>::__type type; 32778: }; 32778: 32778: template 32778: class reference_wrapper; 32778: 32778: 32778: template 32778: struct __strip_reference_wrapper 32778: { 32778: typedef _Tp __type; 32778: }; 32778: 32778: template 32778: struct __strip_reference_wrapper > 32778: { 32778: typedef _Tp& __type; 32778: }; 32778: 32778: template 32778: struct __decay_and_strip 32778: { 32778: typedef typename __strip_reference_wrapper< 32778: typename decay<_Tp>::type>::__type __type; 32778: }; 32778: 32778: 32778: 32778: 32778: template 32778: struct enable_if 32778: { }; 32778: 32778: 32778: template 32778: struct enable_if 32778: { typedef _Tp type; }; 32778: 32778: template 32778: using _Require = typename enable_if<__and_<_Cond...>::value>::type; 32778: 32778: 32778: 32778: template 32778: struct conditional 32778: { typedef _Iftrue type; }; 32778: 32778: 32778: template 32778: struct conditional 32778: { typedef _Iffalse type; }; 32778: 32778: 32778: template 32778: struct common_type; 32778: 32778: 32778: 32778: struct __do_common_type_impl 32778: { 32778: template 32778: static __success_type() 32778: : std::declval<_Up>())>::type> _S_test(int); 32778: 32778: template 32778: static __failure_type _S_test(...); 32778: }; 32778: 32778: template 32778: struct __common_type_impl 32778: : private __do_common_type_impl 32778: { 32778: typedef decltype(_S_test<_Tp, _Up>(0)) type; 32778: }; 32778: 32778: struct __do_member_type_wrapper 32778: { 32778: template 32778: static __success_type _S_test(int); 32778: 32778: template 32778: static __failure_type _S_test(...); 32778: }; 32778: 32778: template 32778: struct __member_type_wrapper 32778: : private __do_member_type_wrapper 32778: { 32778: typedef decltype(_S_test<_Tp>(0)) type; 32778: }; 32778: 32778: template 32778: struct __expanded_common_type_wrapper 32778: { 32778: typedef common_type type; 32778: }; 32778: 32778: template 32778: struct __expanded_common_type_wrapper<__failure_type, _Args...> 32778: { typedef __failure_type type; }; 32778: 32778: template<> 32778: struct common_type<> 32778: { }; 32778: 32778: template 32778: struct common_type<_Tp> 32778: : common_type<_Tp, _Tp> 32778: { }; 32778: 32778: template 32778: struct common_type<_Tp, _Up> 32778: : public __common_type_impl<_Tp, _Up>::type 32778: { }; 32778: 32778: template 32778: struct common_type<_Tp, _Up, _Vp...> 32778: : public __expanded_common_type_wrapper>::type, _Vp...>::type 32778: { }; 32778: 32778: template::value> 32778: struct __underlying_type_impl 32778: { 32778: using type = __underlying_type(_Tp); 32778: }; 32778: 32778: template 32778: struct __underlying_type_impl<_Tp, false> 32778: { }; 32778: 32778: 32778: template 32778: struct underlying_type 32778: : public __underlying_type_impl<_Tp> 32778: { }; 32778: 32778: template 32778: struct __declval_protector 32778: { 32778: static const bool __stop = false; 32778: }; 32778: 32778: template 32778: auto declval() noexcept -> decltype(__declval<_Tp>(0)) 32778: { 32778: static_assert(__declval_protector<_Tp>::__stop, 32778: "declval() must not be used!"); 32778: return __declval<_Tp>(0); 32778: } 32778: 32778: 32778: template 32778: using __remove_cvref_t 32778: = typename remove_cv::type>::type; 32778: 32778: 32778: template 32778: class result_of; 32778: 32778: 32778: 32778: 32778: 32778: struct __invoke_memfun_ref { }; 32778: struct __invoke_memfun_deref { }; 32778: struct __invoke_memobj_ref { }; 32778: struct __invoke_memobj_deref { }; 32778: struct __invoke_other { }; 32778: 32778: 32778: template 32778: struct __result_of_success : __success_type<_Tp> 32778: { using __invoke_type = _Tag; }; 32778: 32778: 32778: struct __result_of_memfun_ref_impl 32778: { 32778: template 32778: static __result_of_success().*std::declval<_Fp>())(std::declval<_Args>()...) 32778: ), __invoke_memfun_ref> _S_test(int); 32778: 32778: template 32778: static __failure_type _S_test(...); 32778: }; 32778: 32778: template 32778: struct __result_of_memfun_ref 32778: : private __result_of_memfun_ref_impl 32778: { 32778: typedef decltype(_S_test<_MemPtr, _Arg, _Args...>(0)) type; 32778: }; 32778: 32778: 32778: struct __result_of_memfun_deref_impl 32778: { 32778: template 32778: static __result_of_success()).*std::declval<_Fp>())(std::declval<_Args>()...) 32778: ), __invoke_memfun_deref> _S_test(int); 32778: 32778: template 32778: static __failure_type _S_test(...); 32778: }; 32778: 32778: template 32778: struct __result_of_memfun_deref 32778: : private __result_of_memfun_deref_impl 32778: { 32778: typedef decltype(_S_test<_MemPtr, _Arg, _Args...>(0)) type; 32778: }; 32778: 32778: 32778: struct __result_of_memobj_ref_impl 32778: { 32778: template 32778: static __result_of_success().*std::declval<_Fp>() 32778: ), __invoke_memobj_ref> _S_test(int); 32778: 32778: template 32778: static __failure_type _S_test(...); 32778: }; 32778: 32778: template 32778: struct __result_of_memobj_ref 32778: : private __result_of_memobj_ref_impl 32778: { 32778: typedef decltype(_S_test<_MemPtr, _Arg>(0)) type; 32778: }; 32778: 32778: 32778: struct __result_of_memobj_deref_impl 32778: { 32778: template 32778: static __result_of_success()).*std::declval<_Fp>() 32778: ), __invoke_memobj_deref> _S_test(int); 32778: 32778: template 32778: static __failure_type _S_test(...); 32778: }; 32778: 32778: template 32778: struct __result_of_memobj_deref 32778: : private __result_of_memobj_deref_impl 32778: { 32778: typedef decltype(_S_test<_MemPtr, _Arg>(0)) type; 32778: }; 32778: 32778: template 32778: struct __result_of_memobj; 32778: 32778: template 32778: struct __result_of_memobj<_Res _Class::*, _Arg> 32778: { 32778: typedef __remove_cvref_t<_Arg> _Argval; 32778: typedef _Res _Class::* _MemPtr; 32778: typedef typename conditional<__or_, 32778: is_base_of<_Class, _Argval>>::value, 32778: __result_of_memobj_ref<_MemPtr, _Arg>, 32778: __result_of_memobj_deref<_MemPtr, _Arg> 32778: >::type::type type; 32778: }; 32778: 32778: template 32778: struct __result_of_memfun; 32778: 32778: template 32778: struct __result_of_memfun<_Res _Class::*, _Arg, _Args...> 32778: { 32778: typedef typename remove_reference<_Arg>::type _Argval; 32778: typedef _Res _Class::* _MemPtr; 32778: typedef typename conditional::value, 32778: __result_of_memfun_ref<_MemPtr, _Arg, _Args...>, 32778: __result_of_memfun_deref<_MemPtr, _Arg, _Args...> 32778: >::type::type type; 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: template> 32778: struct __inv_unwrap 32778: { 32778: using type = _Tp; 32778: }; 32778: 32778: template 32778: struct __inv_unwrap<_Tp, reference_wrapper<_Up>> 32778: { 32778: using type = _Up&; 32778: }; 32778: 32778: template 32778: struct __result_of_impl 32778: { 32778: typedef __failure_type type; 32778: }; 32778: 32778: template 32778: struct __result_of_impl 32778: : public __result_of_memobj::type, 32778: typename __inv_unwrap<_Arg>::type> 32778: { }; 32778: 32778: template 32778: struct __result_of_impl 32778: : public __result_of_memfun::type, 32778: typename __inv_unwrap<_Arg>::type, _Args...> 32778: { }; 32778: 32778: 32778: struct __result_of_other_impl 32778: { 32778: template 32778: static __result_of_success()(std::declval<_Args>()...) 32778: ), __invoke_other> _S_test(int); 32778: 32778: template 32778: static __failure_type _S_test(...); 32778: }; 32778: 32778: template 32778: struct __result_of_impl 32778: : private __result_of_other_impl 32778: { 32778: typedef decltype(_S_test<_Functor, _ArgTypes...>(0)) type; 32778: }; 32778: 32778: 32778: template 32778: struct __invoke_result 32778: : public __result_of_impl< 32778: is_member_object_pointer< 32778: typename remove_reference<_Functor>::type 32778: >::value, 32778: is_member_function_pointer< 32778: typename remove_reference<_Functor>::type 32778: >::value, 32778: _Functor, _ArgTypes... 32778: >::type 32778: { }; 32778: 32778: template 32778: struct result_of<_Functor(_ArgTypes...)> 32778: : public __invoke_result<_Functor, _ArgTypes...> 32778: { }; 32778: # 2404 "/usr/include/c++/9/type_traits" 3 32778: template 32778: using __enable_if_t = typename enable_if<_Cond, _Tp>::type; 32778: 32778: 32778: template using __void_t = void; 32778: # 2417 "/usr/include/c++/9/type_traits" 3 32778: template class _Op, typename... _Args> 32778: struct __detector 32778: { 32778: using value_t = false_type; 32778: using type = _Default; 32778: }; 32778: 32778: 32778: template class _Op, 32778: typename... _Args> 32778: struct __detector<_Default, __void_t<_Op<_Args...>>, _Op, _Args...> 32778: { 32778: using value_t = true_type; 32778: using type = _Op<_Args...>; 32778: }; 32778: 32778: 32778: template class _Op, 32778: typename... _Args> 32778: using __detected_or = __detector<_Default, void, _Op, _Args...>; 32778: 32778: 32778: template class _Op, 32778: typename... _Args> 32778: using __detected_or_t 32778: = typename __detected_or<_Default, _Op, _Args...>::type; 32778: # 2461 "/usr/include/c++/9/type_traits" 3 32778: template 32778: struct __is_swappable; 32778: 32778: template 32778: struct __is_nothrow_swappable; 32778: 32778: template 32778: class tuple; 32778: 32778: template 32778: struct __is_tuple_like_impl : false_type 32778: { }; 32778: 32778: template 32778: struct __is_tuple_like_impl> : true_type 32778: { }; 32778: 32778: 32778: template 32778: struct __is_tuple_like 32778: : public __is_tuple_like_impl<__remove_cvref_t<_Tp>>::type 32778: { }; 32778: 32778: template 32778: inline 32778: typename enable_if<__and_<__not_<__is_tuple_like<_Tp>>, 32778: is_move_constructible<_Tp>, 32778: is_move_assignable<_Tp>>::value>::type 32778: swap(_Tp&, _Tp&) 32778: noexcept(__and_, 32778: is_nothrow_move_assignable<_Tp>>::value); 32778: 32778: template 32778: inline 32778: typename enable_if<__is_swappable<_Tp>::value>::type 32778: swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) 32778: noexcept(__is_nothrow_swappable<_Tp>::value); 32778: 32778: namespace __swappable_details { 32778: using std::swap; 32778: 32778: struct __do_is_swappable_impl 32778: { 32778: template(), std::declval<_Tp&>()))> 32778: static true_type __test(int); 32778: 32778: template 32778: static false_type __test(...); 32778: }; 32778: 32778: struct __do_is_nothrow_swappable_impl 32778: { 32778: template 32778: static __bool_constant< 32778: noexcept(swap(std::declval<_Tp&>(), std::declval<_Tp&>())) 32778: > __test(int); 32778: 32778: template 32778: static false_type __test(...); 32778: }; 32778: 32778: } 32778: 32778: template 32778: struct __is_swappable_impl 32778: : public __swappable_details::__do_is_swappable_impl 32778: { 32778: typedef decltype(__test<_Tp>(0)) type; 32778: }; 32778: 32778: template 32778: struct __is_nothrow_swappable_impl 32778: : public __swappable_details::__do_is_nothrow_swappable_impl 32778: { 32778: typedef decltype(__test<_Tp>(0)) type; 32778: }; 32778: 32778: template 32778: struct __is_swappable 32778: : public __is_swappable_impl<_Tp>::type 32778: { }; 32778: 32778: template 32778: struct __is_nothrow_swappable 32778: : public __is_nothrow_swappable_impl<_Tp>::type 32778: { }; 32778: # 2666 "/usr/include/c++/9/type_traits" 3 32778: template::value, typename = void> 32778: struct __is_invocable_impl : false_type { }; 32778: 32778: 32778: template 32778: struct __is_invocable_impl<_Result, _Ret, 32778: true, 32778: __void_t> 32778: : true_type 32778: { }; 32778: 32778: #pragma GCC diagnostic push 32778: #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" 32778: 32778: template 32778: struct __is_invocable_impl<_Result, _Ret, 32778: false, 32778: __void_t> 32778: { 32778: private: 32778: 32778: 32778: static typename _Result::type _S_get(); 32778: 32778: template 32778: static void _S_conv(_Tp); 32778: 32778: 32778: template(_S_get()))> 32778: static true_type 32778: _S_test(int); 32778: 32778: template 32778: static false_type 32778: _S_test(...); 32778: 32778: public: 32778: using type = decltype(_S_test<_Ret>(1)); 32778: }; 32778: #pragma GCC diagnostic pop 32778: 32778: template 32778: struct __is_invocable 32778: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type 32778: { }; 32778: 32778: template 32778: constexpr bool __call_is_nt(__invoke_memfun_ref) 32778: { 32778: using _Up = typename __inv_unwrap<_Tp>::type; 32778: return noexcept((std::declval<_Up>().*std::declval<_Fn>())( 32778: std::declval<_Args>()...)); 32778: } 32778: 32778: template 32778: constexpr bool __call_is_nt(__invoke_memfun_deref) 32778: { 32778: return noexcept(((*std::declval<_Tp>()).*std::declval<_Fn>())( 32778: std::declval<_Args>()...)); 32778: } 32778: 32778: template 32778: constexpr bool __call_is_nt(__invoke_memobj_ref) 32778: { 32778: using _Up = typename __inv_unwrap<_Tp>::type; 32778: return noexcept(std::declval<_Up>().*std::declval<_Fn>()); 32778: } 32778: 32778: template 32778: constexpr bool __call_is_nt(__invoke_memobj_deref) 32778: { 32778: return noexcept((*std::declval<_Tp>()).*std::declval<_Fn>()); 32778: } 32778: 32778: template 32778: constexpr bool __call_is_nt(__invoke_other) 32778: { 32778: return noexcept(std::declval<_Fn>()(std::declval<_Args>()...)); 32778: } 32778: 32778: template 32778: struct __call_is_nothrow 32778: : __bool_constant< 32778: std::__call_is_nt<_Fn, _Args...>(typename _Result::__invoke_type{}) 32778: > 32778: { }; 32778: 32778: template 32778: using __call_is_nothrow_ 32778: = __call_is_nothrow<__invoke_result<_Fn, _Args...>, _Fn, _Args...>; 32778: 32778: 32778: template 32778: struct __is_nothrow_invocable 32778: : __and_<__is_invocable<_Fn, _Args...>, 32778: __call_is_nothrow_<_Fn, _Args...>>::type 32778: { }; 32778: 32778: struct __nonesuch { 32778: __nonesuch() = delete; 32778: ~__nonesuch() = delete; 32778: __nonesuch(__nonesuch const&) = delete; 32778: void operator=(__nonesuch const&) = delete; 32778: }; 32778: # 3097 "/usr/include/c++/9/type_traits" 3 32778: 32778: } 32778: # 56 "/usr/include/c++/9/bits/move.h" 2 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 72 "/usr/include/c++/9/bits/move.h" 3 32778: template 32778: constexpr _Tp&& 32778: forward(typename std::remove_reference<_Tp>::type& __t) noexcept 32778: { return static_cast<_Tp&&>(__t); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: constexpr _Tp&& 32778: forward(typename std::remove_reference<_Tp>::type&& __t) noexcept 32778: { 32778: static_assert(!std::is_lvalue_reference<_Tp>::value, "template argument" 32778: " substituting _Tp is an lvalue reference type"); 32778: return static_cast<_Tp&&>(__t); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: constexpr typename std::remove_reference<_Tp>::type&& 32778: move(_Tp&& __t) noexcept 32778: { return static_cast::type&&>(__t); } 32778: 32778: 32778: template 32778: struct __move_if_noexcept_cond 32778: : public __and_<__not_>, 32778: is_copy_constructible<_Tp>>::type { }; 32778: # 116 "/usr/include/c++/9/bits/move.h" 3 32778: template 32778: constexpr typename 32778: conditional<__move_if_noexcept_cond<_Tp>::value, const _Tp&, _Tp&&>::type 32778: move_if_noexcept(_Tp& __x) noexcept 32778: { return std::move(__x); } 32778: # 136 "/usr/include/c++/9/bits/move.h" 3 32778: template 32778: inline _Tp* 32778: addressof(_Tp& __r) noexcept 32778: { return std::__addressof(__r); } 32778: 32778: 32778: 32778: template 32778: const _Tp* addressof(const _Tp&&) = delete; 32778: 32778: 32778: template 32778: inline _Tp 32778: __exchange(_Tp& __obj, _Up&& __new_val) 32778: { 32778: _Tp __old_val = std::move(__obj); 32778: __obj = std::forward<_Up>(__new_val); 32778: return __old_val; 32778: } 32778: # 176 "/usr/include/c++/9/bits/move.h" 3 32778: template 32778: inline 32778: 32778: typename enable_if<__and_<__not_<__is_tuple_like<_Tp>>, 32778: is_move_constructible<_Tp>, 32778: is_move_assignable<_Tp>>::value>::type 32778: swap(_Tp& __a, _Tp& __b) 32778: noexcept(__and_, 32778: is_nothrow_move_assignable<_Tp>>::value) 32778: 32778: 32778: 32778: 32778: { 32778: 32778: 32778: 32778: _Tp __tmp = std::move(__a); 32778: __a = std::move(__b); 32778: __b = std::move(__tmp); 32778: } 32778: 32778: 32778: 32778: 32778: template 32778: inline 32778: 32778: typename enable_if<__is_swappable<_Tp>::value>::type 32778: swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) 32778: noexcept(__is_nothrow_swappable<_Tp>::value) 32778: 32778: 32778: 32778: 32778: { 32778: for (size_t __n = 0; __n < _Nm; ++__n) 32778: swap(__a[__n], __b[__n]); 32778: } 32778: 32778: 32778: 32778: } 32778: # 60 "/usr/include/c++/9/bits/stl_pair.h" 2 3 32778: 32778: 32778: 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 76 "/usr/include/c++/9/bits/stl_pair.h" 3 32778: struct piecewise_construct_t { explicit piecewise_construct_t() = default; }; 32778: 32778: 32778: constexpr piecewise_construct_t piecewise_construct = 32778: piecewise_construct_t(); 32778: 32778: 32778: template 32778: class tuple; 32778: 32778: template 32778: struct _Index_tuple; 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct _PCC 32778: { 32778: template 32778: static constexpr bool _ConstructiblePair() 32778: { 32778: return __and_, 32778: is_constructible<_T2, const _U2&>>::value; 32778: } 32778: 32778: template 32778: static constexpr bool _ImplicitlyConvertiblePair() 32778: { 32778: return __and_, 32778: is_convertible>::value; 32778: } 32778: 32778: template 32778: static constexpr bool _MoveConstructiblePair() 32778: { 32778: return __and_, 32778: is_constructible<_T2, _U2&&>>::value; 32778: } 32778: 32778: template 32778: static constexpr bool _ImplicitlyMoveConvertiblePair() 32778: { 32778: return __and_, 32778: is_convertible<_U2&&, _T2>>::value; 32778: } 32778: 32778: template 32778: static constexpr bool _CopyMovePair() 32778: { 32778: using __do_converts = __and_, 32778: is_convertible<_U2&&, _T2>>; 32778: using __converts = typename conditional<__implicit, 32778: __do_converts, 32778: __not_<__do_converts>>::type; 32778: return __and_, 32778: is_constructible<_T2, _U2&&>, 32778: __converts 32778: >::value; 32778: } 32778: 32778: template 32778: static constexpr bool _MoveCopyPair() 32778: { 32778: using __do_converts = __and_, 32778: is_convertible>; 32778: using __converts = typename conditional<__implicit, 32778: __do_converts, 32778: __not_<__do_converts>>::type; 32778: return __and_, 32778: is_constructible<_T2, const _U2&&>, 32778: __converts 32778: >::value; 32778: } 32778: }; 32778: 32778: template 32778: struct _PCC 32778: { 32778: template 32778: static constexpr bool _ConstructiblePair() 32778: { 32778: return false; 32778: } 32778: 32778: template 32778: static constexpr bool _ImplicitlyConvertiblePair() 32778: { 32778: return false; 32778: } 32778: 32778: template 32778: static constexpr bool _MoveConstructiblePair() 32778: { 32778: return false; 32778: } 32778: 32778: template 32778: static constexpr bool _ImplicitlyMoveConvertiblePair() 32778: { 32778: return false; 32778: } 32778: }; 32778: 32778: 32778: 32778: 32778: struct __nonesuch_no_braces : std::__nonesuch { 32778: explicit __nonesuch_no_braces(const __nonesuch&) = delete; 32778: }; 32778: 32778: 32778: template class __pair_base 32778: { 32778: 32778: template friend struct pair; 32778: __pair_base() = default; 32778: ~__pair_base() = default; 32778: __pair_base(const __pair_base&) = default; 32778: __pair_base& operator=(const __pair_base&) = delete; 32778: 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct pair 32778: : private __pair_base<_T1, _T2> 32778: { 32778: typedef _T1 first_type; 32778: typedef _T2 second_type; 32778: 32778: _T1 first; 32778: _T2 second; 32778: 32778: 32778: 32778: 32778: 32778: 32778: template , 32778: __is_implicitly_default_constructible<_U2>> 32778: ::value, bool>::type = true> 32778: 32778: constexpr pair() 32778: : first(), second() { } 32778: 32778: 32778: template , 32778: is_default_constructible<_U2>, 32778: __not_< 32778: __and_<__is_implicitly_default_constructible<_U1>, 32778: __is_implicitly_default_constructible<_U2>>>> 32778: ::value, bool>::type = false> 32778: explicit constexpr pair() 32778: : first(), second() { } 32778: # 252 "/usr/include/c++/9/bits/stl_pair.h" 3 32778: using _PCCP = _PCC; 32778: 32778: template() 32778: && _PCCP::template 32778: _ImplicitlyConvertiblePair<_U1, _U2>(), 32778: bool>::type=true> 32778: constexpr pair(const _T1& __a, const _T2& __b) 32778: : first(__a), second(__b) { } 32778: 32778: template() 32778: && !_PCCP::template 32778: _ImplicitlyConvertiblePair<_U1, _U2>(), 32778: bool>::type=false> 32778: explicit constexpr pair(const _T1& __a, const _T2& __b) 32778: : first(__a), second(__b) { } 32778: # 280 "/usr/include/c++/9/bits/stl_pair.h" 3 32778: template 32778: using _PCCFP = _PCC::value 32778: || !is_same<_T2, _U2>::value, 32778: _T1, _T2>; 32778: 32778: template::template 32778: _ConstructiblePair<_U1, _U2>() 32778: && _PCCFP<_U1, _U2>::template 32778: _ImplicitlyConvertiblePair<_U1, _U2>(), 32778: bool>::type=true> 32778: constexpr pair(const pair<_U1, _U2>& __p) 32778: : first(__p.first), second(__p.second) { } 32778: 32778: template::template 32778: _ConstructiblePair<_U1, _U2>() 32778: && !_PCCFP<_U1, _U2>::template 32778: _ImplicitlyConvertiblePair<_U1, _U2>(), 32778: bool>::type=false> 32778: explicit constexpr pair(const pair<_U1, _U2>& __p) 32778: : first(__p.first), second(__p.second) { } 32778: 32778: constexpr pair(const pair&) = default; 32778: constexpr pair(pair&&) = default; 32778: 32778: 32778: template(), 32778: bool>::type=true> 32778: constexpr pair(_U1&& __x, const _T2& __y) 32778: : first(std::forward<_U1>(__x)), second(__y) { } 32778: 32778: template(), 32778: bool>::type=false> 32778: explicit constexpr pair(_U1&& __x, const _T2& __y) 32778: : first(std::forward<_U1>(__x)), second(__y) { } 32778: 32778: template(), 32778: bool>::type=true> 32778: constexpr pair(const _T1& __x, _U2&& __y) 32778: : first(__x), second(std::forward<_U2>(__y)) { } 32778: 32778: template(), 32778: bool>::type=false> 32778: explicit pair(const _T1& __x, _U2&& __y) 32778: : first(__x), second(std::forward<_U2>(__y)) { } 32778: 32778: template() 32778: && _PCCP::template 32778: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 32778: bool>::type=true> 32778: constexpr pair(_U1&& __x, _U2&& __y) 32778: : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) { } 32778: 32778: template() 32778: && !_PCCP::template 32778: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 32778: bool>::type=false> 32778: explicit constexpr pair(_U1&& __x, _U2&& __y) 32778: : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) { } 32778: 32778: 32778: template::template 32778: _MoveConstructiblePair<_U1, _U2>() 32778: && _PCCFP<_U1, _U2>::template 32778: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 32778: bool>::type=true> 32778: constexpr pair(pair<_U1, _U2>&& __p) 32778: : first(std::forward<_U1>(__p.first)), 32778: second(std::forward<_U2>(__p.second)) { } 32778: 32778: template::template 32778: _MoveConstructiblePair<_U1, _U2>() 32778: && !_PCCFP<_U1, _U2>::template 32778: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 32778: bool>::type=false> 32778: explicit constexpr pair(pair<_U1, _U2>&& __p) 32778: : first(std::forward<_U1>(__p.first)), 32778: second(std::forward<_U2>(__p.second)) { } 32778: 32778: template 32778: pair(piecewise_construct_t, tuple<_Args1...>, tuple<_Args2...>); 32778: 32778: pair& 32778: operator=(typename conditional< 32778: __and_, 32778: is_copy_assignable<_T2>>::value, 32778: const pair&, const __nonesuch_no_braces&>::type __p) 32778: { 32778: first = __p.first; 32778: second = __p.second; 32778: return *this; 32778: } 32778: 32778: pair& 32778: operator=(typename conditional< 32778: __and_, 32778: is_move_assignable<_T2>>::value, 32778: pair&&, __nonesuch_no_braces&&>::type __p) 32778: noexcept(__and_, 32778: is_nothrow_move_assignable<_T2>>::value) 32778: { 32778: first = std::forward(__p.first); 32778: second = std::forward(__p.second); 32778: return *this; 32778: } 32778: 32778: template 32778: typename enable_if<__and_, 32778: is_assignable<_T2&, const _U2&>>::value, 32778: pair&>::type 32778: operator=(const pair<_U1, _U2>& __p) 32778: { 32778: first = __p.first; 32778: second = __p.second; 32778: return *this; 32778: } 32778: 32778: template 32778: typename enable_if<__and_, 32778: is_assignable<_T2&, _U2&&>>::value, 32778: pair&>::type 32778: operator=(pair<_U1, _U2>&& __p) 32778: { 32778: first = std::forward<_U1>(__p.first); 32778: second = std::forward<_U2>(__p.second); 32778: return *this; 32778: } 32778: 32778: void 32778: swap(pair& __p) 32778: noexcept(__and_<__is_nothrow_swappable<_T1>, 32778: __is_nothrow_swappable<_T2>>::value) 32778: { 32778: using std::swap; 32778: swap(first, __p.first); 32778: swap(second, __p.second); 32778: } 32778: 32778: private: 32778: template 32778: pair(tuple<_Args1...>&, tuple<_Args2...>&, 32778: _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>); 32778: 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline constexpr bool 32778: operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 32778: { return __x.first == __y.first && __x.second == __y.second; } 32778: 32778: 32778: template 32778: inline constexpr bool 32778: operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 32778: { return __x.first < __y.first 32778: || (!(__y.first < __x.first) && __x.second < __y.second); } 32778: 32778: 32778: template 32778: inline constexpr bool 32778: operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 32778: { return !(__x == __y); } 32778: 32778: 32778: template 32778: inline constexpr bool 32778: operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 32778: { return __y < __x; } 32778: 32778: 32778: template 32778: inline constexpr bool 32778: operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 32778: { return !(__y < __x); } 32778: 32778: 32778: template 32778: inline constexpr bool 32778: operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 32778: { return !(__x < __y); } 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline 32778: 32778: 32778: 32778: 32778: 32778: void 32778: 32778: swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y) 32778: noexcept(noexcept(__x.swap(__y))) 32778: { __x.swap(__y); } 32778: # 521 "/usr/include/c++/9/bits/stl_pair.h" 3 32778: template 32778: constexpr pair::__type, 32778: typename __decay_and_strip<_T2>::__type> 32778: make_pair(_T1&& __x, _T2&& __y) 32778: { 32778: typedef typename __decay_and_strip<_T1>::__type __ds_type1; 32778: typedef typename __decay_and_strip<_T2>::__type __ds_type2; 32778: typedef pair<__ds_type1, __ds_type2> __pair_type; 32778: return __pair_type(std::forward<_T1>(__x), std::forward<_T2>(__y)); 32778: } 32778: # 540 "/usr/include/c++/9/bits/stl_pair.h" 3 32778: 32778: } 32778: # 65 "/usr/include/c++/9/bits/stl_algobase.h" 2 3 32778: # 1 "/usr/include/c++/9/bits/stl_iterator_base_types.h" 1 3 32778: # 62 "/usr/include/c++/9/bits/stl_iterator_base_types.h" 3 32778: 32778: # 63 "/usr/include/c++/9/bits/stl_iterator_base_types.h" 3 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 89 "/usr/include/c++/9/bits/stl_iterator_base_types.h" 3 32778: struct input_iterator_tag { }; 32778: 32778: 32778: struct output_iterator_tag { }; 32778: 32778: 32778: struct forward_iterator_tag : public input_iterator_tag { }; 32778: 32778: 32778: 32778: struct bidirectional_iterator_tag : public forward_iterator_tag { }; 32778: 32778: 32778: 32778: struct random_access_iterator_tag : public bidirectional_iterator_tag { }; 32778: # 116 "/usr/include/c++/9/bits/stl_iterator_base_types.h" 3 32778: template 32778: struct iterator 32778: { 32778: 32778: typedef _Category iterator_category; 32778: 32778: typedef _Tp value_type; 32778: 32778: typedef _Distance difference_type; 32778: 32778: typedef _Pointer pointer; 32778: 32778: typedef _Reference reference; 32778: }; 32778: # 143 "/usr/include/c++/9/bits/stl_iterator_base_types.h" 3 32778: template> 32778: struct __iterator_traits { }; 32778: 32778: template 32778: struct __iterator_traits<_Iterator, 32778: __void_t> 32778: { 32778: typedef typename _Iterator::iterator_category iterator_category; 32778: typedef typename _Iterator::value_type value_type; 32778: typedef typename _Iterator::difference_type difference_type; 32778: typedef typename _Iterator::pointer pointer; 32778: typedef typename _Iterator::reference reference; 32778: }; 32778: 32778: template 32778: struct iterator_traits 32778: : public __iterator_traits<_Iterator> { }; 32778: # 177 "/usr/include/c++/9/bits/stl_iterator_base_types.h" 3 32778: template 32778: struct iterator_traits<_Tp*> 32778: { 32778: typedef random_access_iterator_tag iterator_category; 32778: typedef _Tp value_type; 32778: typedef ptrdiff_t difference_type; 32778: typedef _Tp* pointer; 32778: typedef _Tp& reference; 32778: }; 32778: 32778: 32778: template 32778: struct iterator_traits 32778: { 32778: typedef random_access_iterator_tag iterator_category; 32778: typedef _Tp value_type; 32778: typedef ptrdiff_t difference_type; 32778: typedef const _Tp* pointer; 32778: typedef const _Tp& reference; 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline constexpr 32778: typename iterator_traits<_Iter>::iterator_category 32778: __iterator_category(const _Iter&) 32778: { return typename iterator_traits<_Iter>::iterator_category(); } 32778: # 231 "/usr/include/c++/9/bits/stl_iterator_base_types.h" 3 32778: template 32778: using _RequireInputIter = typename 32778: enable_if::iterator_category, 32778: input_iterator_tag>::value>::type; 32778: 32778: 32778: 32778: } 32778: # 66 "/usr/include/c++/9/bits/stl_algobase.h" 2 3 32778: # 1 "/usr/include/c++/9/bits/stl_iterator_base_funcs.h" 1 3 32778: # 62 "/usr/include/c++/9/bits/stl_iterator_base_funcs.h" 3 32778: 32778: # 63 "/usr/include/c++/9/bits/stl_iterator_base_funcs.h" 3 32778: 32778: 32778: # 1 "/usr/include/c++/9/debug/assertions.h" 1 3 32778: # 66 "/usr/include/c++/9/bits/stl_iterator_base_funcs.h" 2 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: template struct _List_iterator; 32778: template struct _List_const_iterator; 32778: 32778: 32778: template 32778: inline 32778: typename iterator_traits<_InputIterator>::difference_type 32778: __distance(_InputIterator __first, _InputIterator __last, 32778: input_iterator_tag) 32778: { 32778: 32778: 32778: 32778: typename iterator_traits<_InputIterator>::difference_type __n = 0; 32778: while (__first != __last) 32778: { 32778: ++__first; 32778: ++__n; 32778: } 32778: return __n; 32778: } 32778: 32778: template 32778: inline 32778: typename iterator_traits<_RandomAccessIterator>::difference_type 32778: __distance(_RandomAccessIterator __first, _RandomAccessIterator __last, 32778: random_access_iterator_tag) 32778: { 32778: 32778: 32778: 32778: return __last - __first; 32778: } 32778: 32778: 32778: 32778: template 32778: ptrdiff_t 32778: __distance(std::_List_iterator<_Tp>, 32778: std::_List_iterator<_Tp>, 32778: input_iterator_tag); 32778: 32778: template 32778: ptrdiff_t 32778: __distance(std::_List_const_iterator<_Tp>, 32778: std::_List_const_iterator<_Tp>, 32778: input_iterator_tag); 32778: # 135 "/usr/include/c++/9/bits/stl_iterator_base_funcs.h" 3 32778: template 32778: inline 32778: typename iterator_traits<_InputIterator>::difference_type 32778: distance(_InputIterator __first, _InputIterator __last) 32778: { 32778: 32778: return std::__distance(__first, __last, 32778: std::__iterator_category(__first)); 32778: } 32778: 32778: template 32778: inline void 32778: __advance(_InputIterator& __i, _Distance __n, input_iterator_tag) 32778: { 32778: 32778: 32778: ; 32778: while (__n--) 32778: ++__i; 32778: } 32778: 32778: template 32778: inline void 32778: __advance(_BidirectionalIterator& __i, _Distance __n, 32778: bidirectional_iterator_tag) 32778: { 32778: 32778: 32778: 32778: if (__n > 0) 32778: while (__n--) 32778: ++__i; 32778: else 32778: while (__n++) 32778: --__i; 32778: } 32778: 32778: template 32778: inline void 32778: __advance(_RandomAccessIterator& __i, _Distance __n, 32778: random_access_iterator_tag) 32778: { 32778: 32778: 32778: 32778: if (__builtin_constant_p(__n) && __n == 1) 32778: ++__i; 32778: else if (__builtin_constant_p(__n) && __n == -1) 32778: --__i; 32778: else 32778: __i += __n; 32778: } 32778: # 200 "/usr/include/c++/9/bits/stl_iterator_base_funcs.h" 3 32778: template 32778: inline void 32778: advance(_InputIterator& __i, _Distance __n) 32778: { 32778: 32778: typename iterator_traits<_InputIterator>::difference_type __d = __n; 32778: std::__advance(__i, __d, std::__iterator_category(__i)); 32778: } 32778: 32778: 32778: 32778: template 32778: inline _InputIterator 32778: next(_InputIterator __x, typename 32778: iterator_traits<_InputIterator>::difference_type __n = 1) 32778: { 32778: 32778: 32778: std::advance(__x, __n); 32778: return __x; 32778: } 32778: 32778: template 32778: inline _BidirectionalIterator 32778: prev(_BidirectionalIterator __x, typename 32778: iterator_traits<_BidirectionalIterator>::difference_type __n = 1) 32778: { 32778: 32778: 32778: 32778: std::advance(__x, -__n); 32778: return __x; 32778: } 32778: 32778: 32778: 32778: 32778: } 32778: # 67 "/usr/include/c++/9/bits/stl_algobase.h" 2 3 32778: # 1 "/usr/include/c++/9/bits/stl_iterator.h" 1 3 32778: # 66 "/usr/include/c++/9/bits/stl_iterator.h" 3 32778: # 1 "/usr/include/c++/9/bits/ptr_traits.h" 1 3 32778: # 41 "/usr/include/c++/9/bits/ptr_traits.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: class __undefined; 32778: 32778: 32778: template 32778: struct __get_first_arg 32778: { using type = __undefined; }; 32778: 32778: template class _Template, typename _Tp, 32778: typename... _Types> 32778: struct __get_first_arg<_Template<_Tp, _Types...>> 32778: { using type = _Tp; }; 32778: 32778: template 32778: using __get_first_arg_t = typename __get_first_arg<_Tp>::type; 32778: 32778: 32778: template 32778: struct __replace_first_arg 32778: { }; 32778: 32778: template class _Template, typename _Up, 32778: typename _Tp, typename... _Types> 32778: struct __replace_first_arg<_Template<_Tp, _Types...>, _Up> 32778: { using type = _Template<_Up, _Types...>; }; 32778: 32778: template 32778: using __replace_first_arg_t = typename __replace_first_arg<_Tp, _Up>::type; 32778: 32778: template 32778: using __make_not_void 32778: = typename conditional::value, __undefined, _Tp>::type; 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct pointer_traits 32778: { 32778: private: 32778: template 32778: using __element_type = typename _Tp::element_type; 32778: 32778: template 32778: using __difference_type = typename _Tp::difference_type; 32778: 32778: template 32778: struct __rebind : __replace_first_arg<_Tp, _Up> { }; 32778: 32778: template 32778: struct __rebind<_Tp, _Up, __void_t>> 32778: { using type = typename _Tp::template rebind<_Up>; }; 32778: 32778: public: 32778: 32778: using pointer = _Ptr; 32778: 32778: 32778: using element_type 32778: = __detected_or_t<__get_first_arg_t<_Ptr>, __element_type, _Ptr>; 32778: 32778: 32778: using difference_type 32778: = __detected_or_t; 32778: 32778: 32778: template 32778: using rebind = typename __rebind<_Ptr, _Up>::type; 32778: 32778: static _Ptr 32778: pointer_to(__make_not_void& __e) 32778: { return _Ptr::pointer_to(__e); } 32778: 32778: static_assert(!is_same::value, 32778: "pointer type defines element_type or is like SomePointer"); 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct pointer_traits<_Tp*> 32778: { 32778: 32778: typedef _Tp* pointer; 32778: 32778: typedef _Tp element_type; 32778: 32778: typedef ptrdiff_t difference_type; 32778: 32778: template 32778: using rebind = _Up*; 32778: 32778: 32778: 32778: 32778: 32778: 32778: static pointer 32778: pointer_to(__make_not_void& __r) noexcept 32778: { return std::addressof(__r); } 32778: }; 32778: 32778: 32778: template 32778: using __ptr_rebind = typename pointer_traits<_Ptr>::template rebind<_Tp>; 32778: 32778: template 32778: constexpr _Tp* 32778: __to_address(_Tp* __ptr) noexcept 32778: { 32778: static_assert(!std::is_function<_Tp>::value, "not a function pointer"); 32778: return __ptr; 32778: } 32778: 32778: 32778: template 32778: constexpr typename std::pointer_traits<_Ptr>::element_type* 32778: __to_address(const _Ptr& __ptr) 32778: { return std::__to_address(__ptr.operator->()); } 32778: # 207 "/usr/include/c++/9/bits/ptr_traits.h" 3 32778: 32778: } 32778: # 67 "/usr/include/c++/9/bits/stl_iterator.h" 2 3 32778: # 76 "/usr/include/c++/9/bits/stl_iterator.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 104 "/usr/include/c++/9/bits/stl_iterator.h" 3 32778: template 32778: class reverse_iterator 32778: : public iterator::iterator_category, 32778: typename iterator_traits<_Iterator>::value_type, 32778: typename iterator_traits<_Iterator>::difference_type, 32778: typename iterator_traits<_Iterator>::pointer, 32778: typename iterator_traits<_Iterator>::reference> 32778: { 32778: protected: 32778: _Iterator current; 32778: 32778: typedef iterator_traits<_Iterator> __traits_type; 32778: 32778: public: 32778: typedef _Iterator iterator_type; 32778: typedef typename __traits_type::difference_type difference_type; 32778: typedef typename __traits_type::pointer pointer; 32778: typedef typename __traits_type::reference reference; 32778: # 130 "/usr/include/c++/9/bits/stl_iterator.h" 3 32778: 32778: reverse_iterator() : current() { } 32778: 32778: 32778: 32778: 32778: explicit 32778: reverse_iterator(iterator_type __x) : current(__x) { } 32778: 32778: 32778: 32778: 32778: 32778: reverse_iterator(const reverse_iterator& __x) 32778: : current(__x.current) { } 32778: 32778: 32778: reverse_iterator& operator=(const reverse_iterator&) = default; 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: 32778: reverse_iterator(const reverse_iterator<_Iter>& __x) 32778: : current(__x.base()) { } 32778: 32778: 32778: 32778: 32778: iterator_type 32778: base() const 32778: { return current; } 32778: # 176 "/usr/include/c++/9/bits/stl_iterator.h" 3 32778: reference 32778: operator*() const 32778: { 32778: _Iterator __tmp = current; 32778: return *--__tmp; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: pointer 32778: operator->() const 32778: { 32778: 32778: 32778: _Iterator __tmp = current; 32778: --__tmp; 32778: return _S_to_pointer(__tmp); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: reverse_iterator& 32778: operator++() 32778: { 32778: --current; 32778: return *this; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: reverse_iterator 32778: operator++(int) 32778: { 32778: reverse_iterator __tmp = *this; 32778: --current; 32778: return __tmp; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: reverse_iterator& 32778: operator--() 32778: { 32778: ++current; 32778: return *this; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: reverse_iterator 32778: operator--(int) 32778: { 32778: reverse_iterator __tmp = *this; 32778: ++current; 32778: return __tmp; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: reverse_iterator 32778: operator+(difference_type __n) const 32778: { return reverse_iterator(current - __n); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: reverse_iterator& 32778: operator+=(difference_type __n) 32778: { 32778: current -= __n; 32778: return *this; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: reverse_iterator 32778: operator-(difference_type __n) const 32778: { return reverse_iterator(current + __n); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: reverse_iterator& 32778: operator-=(difference_type __n) 32778: { 32778: current += __n; 32778: return *this; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: reference 32778: operator[](difference_type __n) const 32778: { return *(*this + __n); } 32778: 32778: private: 32778: template 32778: static _Tp* 32778: _S_to_pointer(_Tp* __p) 32778: { return __p; } 32778: 32778: template 32778: static pointer 32778: _S_to_pointer(_Tp __t) 32778: { return __t.operator->(); } 32778: }; 32778: # 323 "/usr/include/c++/9/bits/stl_iterator.h" 3 32778: template 32778: inline bool 32778: operator==(const reverse_iterator<_Iterator>& __x, 32778: const reverse_iterator<_Iterator>& __y) 32778: { return __x.base() == __y.base(); } 32778: 32778: template 32778: inline bool 32778: operator<(const reverse_iterator<_Iterator>& __x, 32778: const reverse_iterator<_Iterator>& __y) 32778: { return __y.base() < __x.base(); } 32778: 32778: template 32778: inline bool 32778: operator!=(const reverse_iterator<_Iterator>& __x, 32778: const reverse_iterator<_Iterator>& __y) 32778: { return !(__x == __y); } 32778: 32778: template 32778: inline bool 32778: operator>(const reverse_iterator<_Iterator>& __x, 32778: const reverse_iterator<_Iterator>& __y) 32778: { return __y < __x; } 32778: 32778: template 32778: inline bool 32778: operator<=(const reverse_iterator<_Iterator>& __x, 32778: const reverse_iterator<_Iterator>& __y) 32778: { return !(__y < __x); } 32778: 32778: template 32778: inline bool 32778: operator>=(const reverse_iterator<_Iterator>& __x, 32778: const reverse_iterator<_Iterator>& __y) 32778: { return !(__x < __y); } 32778: 32778: 32778: 32778: template 32778: inline bool 32778: operator==(const reverse_iterator<_IteratorL>& __x, 32778: const reverse_iterator<_IteratorR>& __y) 32778: { return __x.base() == __y.base(); } 32778: 32778: template 32778: inline bool 32778: operator<(const reverse_iterator<_IteratorL>& __x, 32778: const reverse_iterator<_IteratorR>& __y) 32778: { return __y.base() < __x.base(); } 32778: 32778: template 32778: inline bool 32778: operator!=(const reverse_iterator<_IteratorL>& __x, 32778: const reverse_iterator<_IteratorR>& __y) 32778: { return !(__x == __y); } 32778: 32778: template 32778: inline bool 32778: operator>(const reverse_iterator<_IteratorL>& __x, 32778: const reverse_iterator<_IteratorR>& __y) 32778: { return __y < __x; } 32778: 32778: template 32778: inline bool 32778: operator<=(const reverse_iterator<_IteratorL>& __x, 32778: const reverse_iterator<_IteratorR>& __y) 32778: { return !(__y < __x); } 32778: 32778: template 32778: inline bool 32778: operator>=(const reverse_iterator<_IteratorL>& __x, 32778: const reverse_iterator<_IteratorR>& __y) 32778: { return !(__x < __y); } 32778: # 413 "/usr/include/c++/9/bits/stl_iterator.h" 3 32778: template 32778: inline auto 32778: operator-(const reverse_iterator<_IteratorL>& __x, 32778: const reverse_iterator<_IteratorR>& __y) 32778: -> decltype(__y.base() - __x.base()) 32778: { return __y.base() - __x.base(); } 32778: 32778: 32778: template 32778: inline reverse_iterator<_Iterator> 32778: operator+(typename reverse_iterator<_Iterator>::difference_type __n, 32778: const reverse_iterator<_Iterator>& __x) 32778: { return reverse_iterator<_Iterator>(__x.base() - __n); } 32778: 32778: 32778: 32778: template 32778: inline reverse_iterator<_Iterator> 32778: __make_reverse_iterator(_Iterator __i) 32778: { return reverse_iterator<_Iterator>(__i); } 32778: # 448 "/usr/include/c++/9/bits/stl_iterator.h" 3 32778: template 32778: auto 32778: __niter_base(reverse_iterator<_Iterator> __it) 32778: -> decltype(__make_reverse_iterator(__niter_base(__it.base()))) 32778: { return __make_reverse_iterator(__niter_base(__it.base())); } 32778: 32778: template 32778: struct __is_move_iterator > 32778: : __is_move_iterator<_Iterator> 32778: { }; 32778: 32778: template 32778: auto 32778: __miter_base(reverse_iterator<_Iterator> __it) 32778: -> decltype(__make_reverse_iterator(__miter_base(__it.base()))) 32778: { return __make_reverse_iterator(__miter_base(__it.base())); } 32778: # 477 "/usr/include/c++/9/bits/stl_iterator.h" 3 32778: template 32778: class back_insert_iterator 32778: : public iterator 32778: { 32778: protected: 32778: _Container* container; 32778: 32778: public: 32778: 32778: typedef _Container container_type; 32778: 32778: 32778: explicit 32778: back_insert_iterator(_Container& __x) 32778: : container(std::__addressof(__x)) { } 32778: # 512 "/usr/include/c++/9/bits/stl_iterator.h" 3 32778: back_insert_iterator& 32778: operator=(const typename _Container::value_type& __value) 32778: { 32778: container->push_back(__value); 32778: return *this; 32778: } 32778: 32778: back_insert_iterator& 32778: operator=(typename _Container::value_type&& __value) 32778: { 32778: container->push_back(std::move(__value)); 32778: return *this; 32778: } 32778: 32778: 32778: 32778: back_insert_iterator& 32778: operator*() 32778: { return *this; } 32778: 32778: 32778: back_insert_iterator& 32778: operator++() 32778: { return *this; } 32778: 32778: 32778: back_insert_iterator 32778: operator++(int) 32778: { return *this; } 32778: }; 32778: # 554 "/usr/include/c++/9/bits/stl_iterator.h" 3 32778: template 32778: inline back_insert_iterator<_Container> 32778: back_inserter(_Container& __x) 32778: { return back_insert_iterator<_Container>(__x); } 32778: # 569 "/usr/include/c++/9/bits/stl_iterator.h" 3 32778: template 32778: class front_insert_iterator 32778: : public iterator 32778: { 32778: protected: 32778: _Container* container; 32778: 32778: public: 32778: 32778: typedef _Container container_type; 32778: 32778: 32778: explicit front_insert_iterator(_Container& __x) 32778: : container(std::__addressof(__x)) { } 32778: # 603 "/usr/include/c++/9/bits/stl_iterator.h" 3 32778: front_insert_iterator& 32778: operator=(const typename _Container::value_type& __value) 32778: { 32778: container->push_front(__value); 32778: return *this; 32778: } 32778: 32778: front_insert_iterator& 32778: operator=(typename _Container::value_type&& __value) 32778: { 32778: container->push_front(std::move(__value)); 32778: return *this; 32778: } 32778: 32778: 32778: 32778: front_insert_iterator& 32778: operator*() 32778: { return *this; } 32778: 32778: 32778: front_insert_iterator& 32778: operator++() 32778: { return *this; } 32778: 32778: 32778: front_insert_iterator 32778: operator++(int) 32778: { return *this; } 32778: }; 32778: # 645 "/usr/include/c++/9/bits/stl_iterator.h" 3 32778: template 32778: inline front_insert_iterator<_Container> 32778: front_inserter(_Container& __x) 32778: { return front_insert_iterator<_Container>(__x); } 32778: # 664 "/usr/include/c++/9/bits/stl_iterator.h" 3 32778: template 32778: class insert_iterator 32778: : public iterator 32778: { 32778: protected: 32778: _Container* container; 32778: typename _Container::iterator iter; 32778: 32778: public: 32778: 32778: typedef _Container container_type; 32778: 32778: 32778: 32778: 32778: 32778: insert_iterator(_Container& __x, typename _Container::iterator __i) 32778: : container(std::__addressof(__x)), iter(__i) {} 32778: # 715 "/usr/include/c++/9/bits/stl_iterator.h" 3 32778: insert_iterator& 32778: operator=(const typename _Container::value_type& __value) 32778: { 32778: iter = container->insert(iter, __value); 32778: ++iter; 32778: return *this; 32778: } 32778: 32778: insert_iterator& 32778: operator=(typename _Container::value_type&& __value) 32778: { 32778: iter = container->insert(iter, std::move(__value)); 32778: ++iter; 32778: return *this; 32778: } 32778: 32778: 32778: 32778: insert_iterator& 32778: operator*() 32778: { return *this; } 32778: 32778: 32778: insert_iterator& 32778: operator++() 32778: { return *this; } 32778: 32778: 32778: insert_iterator& 32778: operator++(int) 32778: { return *this; } 32778: }; 32778: # 760 "/usr/include/c++/9/bits/stl_iterator.h" 3 32778: template 32778: inline insert_iterator<_Container> 32778: inserter(_Container& __x, _Iterator __i) 32778: { 32778: return insert_iterator<_Container>(__x, 32778: typename _Container::iterator(__i)); 32778: } 32778: 32778: 32778: 32778: 32778: } 32778: 32778: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 784 "/usr/include/c++/9/bits/stl_iterator.h" 3 32778: using std::iterator_traits; 32778: using std::iterator; 32778: template 32778: class __normal_iterator 32778: { 32778: protected: 32778: _Iterator _M_current; 32778: 32778: typedef iterator_traits<_Iterator> __traits_type; 32778: 32778: public: 32778: typedef _Iterator iterator_type; 32778: typedef typename __traits_type::iterator_category iterator_category; 32778: typedef typename __traits_type::value_type value_type; 32778: typedef typename __traits_type::difference_type difference_type; 32778: typedef typename __traits_type::reference reference; 32778: typedef typename __traits_type::pointer pointer; 32778: 32778: constexpr __normal_iterator() noexcept 32778: : _M_current(_Iterator()) { } 32778: 32778: explicit 32778: __normal_iterator(const _Iterator& __i) noexcept 32778: : _M_current(__i) { } 32778: 32778: 32778: template 32778: __normal_iterator(const __normal_iterator<_Iter, 32778: typename __enable_if< 32778: (std::__are_same<_Iter, typename _Container::pointer>::__value), 32778: _Container>::__type>& __i) noexcept 32778: : _M_current(__i.base()) { } 32778: 32778: 32778: reference 32778: operator*() const noexcept 32778: { return *_M_current; } 32778: 32778: pointer 32778: operator->() const noexcept 32778: { return _M_current; } 32778: 32778: __normal_iterator& 32778: operator++() noexcept 32778: { 32778: ++_M_current; 32778: return *this; 32778: } 32778: 32778: __normal_iterator 32778: operator++(int) noexcept 32778: { return __normal_iterator(_M_current++); } 32778: 32778: 32778: __normal_iterator& 32778: operator--() noexcept 32778: { 32778: --_M_current; 32778: return *this; 32778: } 32778: 32778: __normal_iterator 32778: operator--(int) noexcept 32778: { return __normal_iterator(_M_current--); } 32778: 32778: 32778: reference 32778: operator[](difference_type __n) const noexcept 32778: { return _M_current[__n]; } 32778: 32778: __normal_iterator& 32778: operator+=(difference_type __n) noexcept 32778: { _M_current += __n; return *this; } 32778: 32778: __normal_iterator 32778: operator+(difference_type __n) const noexcept 32778: { return __normal_iterator(_M_current + __n); } 32778: 32778: __normal_iterator& 32778: operator-=(difference_type __n) noexcept 32778: { _M_current -= __n; return *this; } 32778: 32778: __normal_iterator 32778: operator-(difference_type __n) const noexcept 32778: { return __normal_iterator(_M_current - __n); } 32778: 32778: const _Iterator& 32778: base() const noexcept 32778: { return _M_current; } 32778: }; 32778: # 884 "/usr/include/c++/9/bits/stl_iterator.h" 3 32778: template 32778: inline bool 32778: operator==(const __normal_iterator<_IteratorL, _Container>& __lhs, 32778: const __normal_iterator<_IteratorR, _Container>& __rhs) 32778: noexcept 32778: { return __lhs.base() == __rhs.base(); } 32778: 32778: template 32778: inline bool 32778: operator==(const __normal_iterator<_Iterator, _Container>& __lhs, 32778: const __normal_iterator<_Iterator, _Container>& __rhs) 32778: noexcept 32778: { return __lhs.base() == __rhs.base(); } 32778: 32778: template 32778: inline bool 32778: operator!=(const __normal_iterator<_IteratorL, _Container>& __lhs, 32778: const __normal_iterator<_IteratorR, _Container>& __rhs) 32778: noexcept 32778: { return __lhs.base() != __rhs.base(); } 32778: 32778: template 32778: inline bool 32778: operator!=(const __normal_iterator<_Iterator, _Container>& __lhs, 32778: const __normal_iterator<_Iterator, _Container>& __rhs) 32778: noexcept 32778: { return __lhs.base() != __rhs.base(); } 32778: 32778: 32778: template 32778: inline bool 32778: operator<(const __normal_iterator<_IteratorL, _Container>& __lhs, 32778: const __normal_iterator<_IteratorR, _Container>& __rhs) 32778: noexcept 32778: { return __lhs.base() < __rhs.base(); } 32778: 32778: template 32778: inline bool 32778: operator<(const __normal_iterator<_Iterator, _Container>& __lhs, 32778: const __normal_iterator<_Iterator, _Container>& __rhs) 32778: noexcept 32778: { return __lhs.base() < __rhs.base(); } 32778: 32778: template 32778: inline bool 32778: operator>(const __normal_iterator<_IteratorL, _Container>& __lhs, 32778: const __normal_iterator<_IteratorR, _Container>& __rhs) 32778: noexcept 32778: { return __lhs.base() > __rhs.base(); } 32778: 32778: template 32778: inline bool 32778: operator>(const __normal_iterator<_Iterator, _Container>& __lhs, 32778: const __normal_iterator<_Iterator, _Container>& __rhs) 32778: noexcept 32778: { return __lhs.base() > __rhs.base(); } 32778: 32778: template 32778: inline bool 32778: operator<=(const __normal_iterator<_IteratorL, _Container>& __lhs, 32778: const __normal_iterator<_IteratorR, _Container>& __rhs) 32778: noexcept 32778: { return __lhs.base() <= __rhs.base(); } 32778: 32778: template 32778: inline bool 32778: operator<=(const __normal_iterator<_Iterator, _Container>& __lhs, 32778: const __normal_iterator<_Iterator, _Container>& __rhs) 32778: noexcept 32778: { return __lhs.base() <= __rhs.base(); } 32778: 32778: template 32778: inline bool 32778: operator>=(const __normal_iterator<_IteratorL, _Container>& __lhs, 32778: const __normal_iterator<_IteratorR, _Container>& __rhs) 32778: noexcept 32778: { return __lhs.base() >= __rhs.base(); } 32778: 32778: template 32778: inline bool 32778: operator>=(const __normal_iterator<_Iterator, _Container>& __lhs, 32778: const __normal_iterator<_Iterator, _Container>& __rhs) 32778: noexcept 32778: { return __lhs.base() >= __rhs.base(); } 32778: 32778: 32778: 32778: 32778: 32778: template 32778: 32778: 32778: inline auto 32778: operator-(const __normal_iterator<_IteratorL, _Container>& __lhs, 32778: const __normal_iterator<_IteratorR, _Container>& __rhs) noexcept 32778: -> decltype(__lhs.base() - __rhs.base()) 32778: 32778: 32778: 32778: 32778: 32778: { return __lhs.base() - __rhs.base(); } 32778: 32778: template 32778: inline typename __normal_iterator<_Iterator, _Container>::difference_type 32778: operator-(const __normal_iterator<_Iterator, _Container>& __lhs, 32778: const __normal_iterator<_Iterator, _Container>& __rhs) 32778: noexcept 32778: { return __lhs.base() - __rhs.base(); } 32778: 32778: template 32778: inline __normal_iterator<_Iterator, _Container> 32778: operator+(typename __normal_iterator<_Iterator, _Container>::difference_type 32778: __n, const __normal_iterator<_Iterator, _Container>& __i) 32778: noexcept 32778: { return __normal_iterator<_Iterator, _Container>(__i.base() + __n); } 32778: 32778: 32778: } 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: template 32778: _Iterator 32778: __niter_base(__gnu_cxx::__normal_iterator<_Iterator, _Container> __it) 32778: noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) 32778: { return __it.base(); } 32778: # 1030 "/usr/include/c++/9/bits/stl_iterator.h" 3 32778: template 32778: class move_iterator 32778: { 32778: protected: 32778: _Iterator _M_current; 32778: 32778: typedef iterator_traits<_Iterator> __traits_type; 32778: typedef typename __traits_type::reference __base_ref; 32778: 32778: public: 32778: typedef _Iterator iterator_type; 32778: typedef typename __traits_type::iterator_category iterator_category; 32778: typedef typename __traits_type::value_type value_type; 32778: typedef typename __traits_type::difference_type difference_type; 32778: 32778: typedef _Iterator pointer; 32778: 32778: 32778: typedef typename conditional::value, 32778: typename remove_reference<__base_ref>::type&&, 32778: __base_ref>::type reference; 32778: 32778: 32778: move_iterator() 32778: : _M_current() { } 32778: 32778: explicit 32778: move_iterator(iterator_type __i) 32778: : _M_current(__i) { } 32778: 32778: template 32778: 32778: move_iterator(const move_iterator<_Iter>& __i) 32778: : _M_current(__i.base()) { } 32778: 32778: iterator_type 32778: base() const 32778: { return _M_current; } 32778: 32778: reference 32778: operator*() const 32778: { return static_cast(*_M_current); } 32778: 32778: pointer 32778: operator->() const 32778: { return _M_current; } 32778: 32778: move_iterator& 32778: operator++() 32778: { 32778: ++_M_current; 32778: return *this; 32778: } 32778: 32778: move_iterator 32778: operator++(int) 32778: { 32778: move_iterator __tmp = *this; 32778: ++_M_current; 32778: return __tmp; 32778: } 32778: 32778: move_iterator& 32778: operator--() 32778: { 32778: --_M_current; 32778: return *this; 32778: } 32778: 32778: move_iterator 32778: operator--(int) 32778: { 32778: move_iterator __tmp = *this; 32778: --_M_current; 32778: return __tmp; 32778: } 32778: 32778: move_iterator 32778: operator+(difference_type __n) const 32778: { return move_iterator(_M_current + __n); } 32778: 32778: move_iterator& 32778: operator+=(difference_type __n) 32778: { 32778: _M_current += __n; 32778: return *this; 32778: } 32778: 32778: move_iterator 32778: operator-(difference_type __n) const 32778: { return move_iterator(_M_current - __n); } 32778: 32778: move_iterator& 32778: operator-=(difference_type __n) 32778: { 32778: _M_current -= __n; 32778: return *this; 32778: } 32778: 32778: reference 32778: operator[](difference_type __n) const 32778: { return std::move(_M_current[__n]); } 32778: }; 32778: 32778: 32778: 32778: 32778: template 32778: inline bool 32778: operator==(const move_iterator<_IteratorL>& __x, 32778: const move_iterator<_IteratorR>& __y) 32778: { return __x.base() == __y.base(); } 32778: 32778: template 32778: inline bool 32778: operator==(const move_iterator<_Iterator>& __x, 32778: const move_iterator<_Iterator>& __y) 32778: { return __x.base() == __y.base(); } 32778: 32778: template 32778: inline bool 32778: operator!=(const move_iterator<_IteratorL>& __x, 32778: const move_iterator<_IteratorR>& __y) 32778: { return !(__x == __y); } 32778: 32778: template 32778: inline bool 32778: operator!=(const move_iterator<_Iterator>& __x, 32778: const move_iterator<_Iterator>& __y) 32778: { return !(__x == __y); } 32778: 32778: template 32778: inline bool 32778: operator<(const move_iterator<_IteratorL>& __x, 32778: const move_iterator<_IteratorR>& __y) 32778: { return __x.base() < __y.base(); } 32778: 32778: template 32778: inline bool 32778: operator<(const move_iterator<_Iterator>& __x, 32778: const move_iterator<_Iterator>& __y) 32778: { return __x.base() < __y.base(); } 32778: 32778: template 32778: inline bool 32778: operator<=(const move_iterator<_IteratorL>& __x, 32778: const move_iterator<_IteratorR>& __y) 32778: { return !(__y < __x); } 32778: 32778: template 32778: inline bool 32778: operator<=(const move_iterator<_Iterator>& __x, 32778: const move_iterator<_Iterator>& __y) 32778: { return !(__y < __x); } 32778: 32778: template 32778: inline bool 32778: operator>(const move_iterator<_IteratorL>& __x, 32778: const move_iterator<_IteratorR>& __y) 32778: { return __y < __x; } 32778: 32778: template 32778: inline bool 32778: operator>(const move_iterator<_Iterator>& __x, 32778: const move_iterator<_Iterator>& __y) 32778: { return __y < __x; } 32778: 32778: template 32778: inline bool 32778: operator>=(const move_iterator<_IteratorL>& __x, 32778: const move_iterator<_IteratorR>& __y) 32778: { return !(__x < __y); } 32778: 32778: template 32778: inline bool 32778: operator>=(const move_iterator<_Iterator>& __x, 32778: const move_iterator<_Iterator>& __y) 32778: { return !(__x < __y); } 32778: 32778: 32778: template 32778: inline auto 32778: operator-(const move_iterator<_IteratorL>& __x, 32778: const move_iterator<_IteratorR>& __y) 32778: -> decltype(__x.base() - __y.base()) 32778: { return __x.base() - __y.base(); } 32778: 32778: template 32778: inline move_iterator<_Iterator> 32778: operator+(typename move_iterator<_Iterator>::difference_type __n, 32778: const move_iterator<_Iterator>& __x) 32778: { return __x + __n; } 32778: 32778: template 32778: inline move_iterator<_Iterator> 32778: make_move_iterator(_Iterator __i) 32778: { return move_iterator<_Iterator>(__i); } 32778: 32778: template::value_type>::value, 32778: _Iterator, move_iterator<_Iterator>>::type> 32778: inline _ReturnType 32778: __make_move_if_noexcept_iterator(_Iterator __i) 32778: { return _ReturnType(__i); } 32778: 32778: 32778: 32778: template::value, 32778: const _Tp*, move_iterator<_Tp*>>::type> 32778: inline _ReturnType 32778: __make_move_if_noexcept_iterator(_Tp* __i) 32778: { return _ReturnType(__i); } 32778: 32778: 32778: 32778: template 32778: auto 32778: __niter_base(move_iterator<_Iterator> __it) 32778: -> decltype(make_move_iterator(__niter_base(__it.base()))) 32778: { return make_move_iterator(__niter_base(__it.base())); } 32778: 32778: template 32778: struct __is_move_iterator > 32778: { 32778: enum { __value = 1 }; 32778: typedef __true_type __type; 32778: }; 32778: 32778: template 32778: auto 32778: __miter_base(move_iterator<_Iterator> __it) 32778: -> decltype(__miter_base(__it.base())) 32778: { return __miter_base(__it.base()); } 32778: # 1295 "/usr/include/c++/9/bits/stl_iterator.h" 3 32778: 32778: } 32778: # 68 "/usr/include/c++/9/bits/stl_algobase.h" 2 3 32778: 32778: # 1 "/usr/include/c++/9/debug/debug.h" 1 3 32778: # 48 "/usr/include/c++/9/debug/debug.h" 3 32778: namespace std 32778: { 32778: namespace __debug { } 32778: } 32778: 32778: 32778: 32778: 32778: namespace __gnu_debug 32778: { 32778: using namespace std::__debug; 32778: } 32778: # 70 "/usr/include/c++/9/bits/stl_algobase.h" 2 3 32778: 32778: # 1 "/usr/include/c++/9/bits/predefined_ops.h" 1 3 32778: # 33 "/usr/include/c++/9/bits/predefined_ops.h" 3 32778: namespace __gnu_cxx 32778: { 32778: namespace __ops 32778: { 32778: struct _Iter_less_iter 32778: { 32778: template 32778: 32778: bool 32778: operator()(_Iterator1 __it1, _Iterator2 __it2) const 32778: { return *__it1 < *__it2; } 32778: }; 32778: 32778: 32778: inline _Iter_less_iter 32778: __iter_less_iter() 32778: { return _Iter_less_iter(); } 32778: 32778: struct _Iter_less_val 32778: { 32778: 32778: constexpr _Iter_less_val() = default; 32778: 32778: 32778: 32778: 32778: explicit 32778: _Iter_less_val(_Iter_less_iter) { } 32778: 32778: template 32778: bool 32778: operator()(_Iterator __it, _Value& __val) const 32778: { return *__it < __val; } 32778: }; 32778: 32778: inline _Iter_less_val 32778: __iter_less_val() 32778: { return _Iter_less_val(); } 32778: 32778: inline _Iter_less_val 32778: __iter_comp_val(_Iter_less_iter) 32778: { return _Iter_less_val(); } 32778: 32778: struct _Val_less_iter 32778: { 32778: 32778: constexpr _Val_less_iter() = default; 32778: 32778: 32778: 32778: 32778: explicit 32778: _Val_less_iter(_Iter_less_iter) { } 32778: 32778: template 32778: bool 32778: operator()(_Value& __val, _Iterator __it) const 32778: { return __val < *__it; } 32778: }; 32778: 32778: inline _Val_less_iter 32778: __val_less_iter() 32778: { return _Val_less_iter(); } 32778: 32778: inline _Val_less_iter 32778: __val_comp_iter(_Iter_less_iter) 32778: { return _Val_less_iter(); } 32778: 32778: struct _Iter_equal_to_iter 32778: { 32778: template 32778: bool 32778: operator()(_Iterator1 __it1, _Iterator2 __it2) const 32778: { return *__it1 == *__it2; } 32778: }; 32778: 32778: inline _Iter_equal_to_iter 32778: __iter_equal_to_iter() 32778: { return _Iter_equal_to_iter(); } 32778: 32778: struct _Iter_equal_to_val 32778: { 32778: template 32778: bool 32778: operator()(_Iterator __it, _Value& __val) const 32778: { return *__it == __val; } 32778: }; 32778: 32778: inline _Iter_equal_to_val 32778: __iter_equal_to_val() 32778: { return _Iter_equal_to_val(); } 32778: 32778: inline _Iter_equal_to_val 32778: __iter_comp_val(_Iter_equal_to_iter) 32778: { return _Iter_equal_to_val(); } 32778: 32778: template 32778: struct _Iter_comp_iter 32778: { 32778: _Compare _M_comp; 32778: 32778: explicit 32778: _Iter_comp_iter(_Compare __comp) 32778: : _M_comp(std::move(__comp)) 32778: { } 32778: 32778: template 32778: 32778: bool 32778: operator()(_Iterator1 __it1, _Iterator2 __it2) 32778: { return bool(_M_comp(*__it1, *__it2)); } 32778: }; 32778: 32778: template 32778: 32778: inline _Iter_comp_iter<_Compare> 32778: __iter_comp_iter(_Compare __comp) 32778: { return _Iter_comp_iter<_Compare>(std::move(__comp)); } 32778: 32778: template 32778: struct _Iter_comp_val 32778: { 32778: _Compare _M_comp; 32778: 32778: explicit 32778: _Iter_comp_val(_Compare __comp) 32778: : _M_comp(std::move(__comp)) 32778: { } 32778: 32778: explicit 32778: _Iter_comp_val(const _Iter_comp_iter<_Compare>& __comp) 32778: : _M_comp(__comp._M_comp) 32778: { } 32778: 32778: 32778: explicit 32778: _Iter_comp_val(_Iter_comp_iter<_Compare>&& __comp) 32778: : _M_comp(std::move(__comp._M_comp)) 32778: { } 32778: 32778: 32778: template 32778: bool 32778: operator()(_Iterator __it, _Value& __val) 32778: { return bool(_M_comp(*__it, __val)); } 32778: }; 32778: 32778: template 32778: inline _Iter_comp_val<_Compare> 32778: __iter_comp_val(_Compare __comp) 32778: { return _Iter_comp_val<_Compare>(std::move(__comp)); } 32778: 32778: template 32778: inline _Iter_comp_val<_Compare> 32778: __iter_comp_val(_Iter_comp_iter<_Compare> __comp) 32778: { return _Iter_comp_val<_Compare>(std::move(__comp)); } 32778: 32778: template 32778: struct _Val_comp_iter 32778: { 32778: _Compare _M_comp; 32778: 32778: explicit 32778: _Val_comp_iter(_Compare __comp) 32778: : _M_comp(std::move(__comp)) 32778: { } 32778: 32778: explicit 32778: _Val_comp_iter(const _Iter_comp_iter<_Compare>& __comp) 32778: : _M_comp(__comp._M_comp) 32778: { } 32778: 32778: 32778: explicit 32778: _Val_comp_iter(_Iter_comp_iter<_Compare>&& __comp) 32778: : _M_comp(std::move(__comp._M_comp)) 32778: { } 32778: 32778: 32778: template 32778: bool 32778: operator()(_Value& __val, _Iterator __it) 32778: { return bool(_M_comp(__val, *__it)); } 32778: }; 32778: 32778: template 32778: inline _Val_comp_iter<_Compare> 32778: __val_comp_iter(_Compare __comp) 32778: { return _Val_comp_iter<_Compare>(std::move(__comp)); } 32778: 32778: template 32778: inline _Val_comp_iter<_Compare> 32778: __val_comp_iter(_Iter_comp_iter<_Compare> __comp) 32778: { return _Val_comp_iter<_Compare>(std::move(__comp)); } 32778: 32778: template 32778: struct _Iter_equals_val 32778: { 32778: _Value& _M_value; 32778: 32778: explicit 32778: _Iter_equals_val(_Value& __value) 32778: : _M_value(__value) 32778: { } 32778: 32778: template 32778: bool 32778: operator()(_Iterator __it) 32778: { return *__it == _M_value; } 32778: }; 32778: 32778: template 32778: inline _Iter_equals_val<_Value> 32778: __iter_equals_val(_Value& __val) 32778: { return _Iter_equals_val<_Value>(__val); } 32778: 32778: template 32778: struct _Iter_equals_iter 32778: { 32778: _Iterator1 _M_it1; 32778: 32778: explicit 32778: _Iter_equals_iter(_Iterator1 __it1) 32778: : _M_it1(__it1) 32778: { } 32778: 32778: template 32778: bool 32778: operator()(_Iterator2 __it2) 32778: { return *__it2 == *_M_it1; } 32778: }; 32778: 32778: template 32778: inline _Iter_equals_iter<_Iterator> 32778: __iter_comp_iter(_Iter_equal_to_iter, _Iterator __it) 32778: { return _Iter_equals_iter<_Iterator>(__it); } 32778: 32778: template 32778: struct _Iter_pred 32778: { 32778: _Predicate _M_pred; 32778: 32778: explicit 32778: _Iter_pred(_Predicate __pred) 32778: : _M_pred(std::move(__pred)) 32778: { } 32778: 32778: template 32778: bool 32778: operator()(_Iterator __it) 32778: { return bool(_M_pred(*__it)); } 32778: }; 32778: 32778: template 32778: inline _Iter_pred<_Predicate> 32778: __pred_iter(_Predicate __pred) 32778: { return _Iter_pred<_Predicate>(std::move(__pred)); } 32778: 32778: template 32778: struct _Iter_comp_to_val 32778: { 32778: _Compare _M_comp; 32778: _Value& _M_value; 32778: 32778: _Iter_comp_to_val(_Compare __comp, _Value& __value) 32778: : _M_comp(std::move(__comp)), _M_value(__value) 32778: { } 32778: 32778: template 32778: bool 32778: operator()(_Iterator __it) 32778: { return bool(_M_comp(*__it, _M_value)); } 32778: }; 32778: 32778: template 32778: _Iter_comp_to_val<_Compare, _Value> 32778: __iter_comp_val(_Compare __comp, _Value &__val) 32778: { 32778: return _Iter_comp_to_val<_Compare, _Value>(std::move(__comp), __val); 32778: } 32778: 32778: template 32778: struct _Iter_comp_to_iter 32778: { 32778: _Compare _M_comp; 32778: _Iterator1 _M_it1; 32778: 32778: _Iter_comp_to_iter(_Compare __comp, _Iterator1 __it1) 32778: : _M_comp(std::move(__comp)), _M_it1(__it1) 32778: { } 32778: 32778: template 32778: bool 32778: operator()(_Iterator2 __it2) 32778: { return bool(_M_comp(*__it2, *_M_it1)); } 32778: }; 32778: 32778: template 32778: inline _Iter_comp_to_iter<_Compare, _Iterator> 32778: __iter_comp_iter(_Iter_comp_iter<_Compare> __comp, _Iterator __it) 32778: { 32778: return _Iter_comp_to_iter<_Compare, _Iterator>( 32778: std::move(__comp._M_comp), __it); 32778: } 32778: 32778: template 32778: struct _Iter_negate 32778: { 32778: _Predicate _M_pred; 32778: 32778: explicit 32778: _Iter_negate(_Predicate __pred) 32778: : _M_pred(std::move(__pred)) 32778: { } 32778: 32778: template 32778: bool 32778: operator()(_Iterator __it) 32778: { return !bool(_M_pred(*__it)); } 32778: }; 32778: 32778: template 32778: inline _Iter_negate<_Predicate> 32778: __negate(_Iter_pred<_Predicate> __pred) 32778: { return _Iter_negate<_Predicate>(std::move(__pred._M_pred)); } 32778: 32778: } 32778: } 32778: # 72 "/usr/include/c++/9/bits/stl_algobase.h" 2 3 32778: 32778: 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 121 "/usr/include/c++/9/bits/stl_algobase.h" 3 32778: template 32778: inline void 32778: iter_swap(_ForwardIterator1 __a, _ForwardIterator2 __b) 32778: { 32778: 32778: 32778: 32778: 32778: # 151 "/usr/include/c++/9/bits/stl_algobase.h" 3 32778: swap(*__a, *__b); 32778: 32778: } 32778: # 167 "/usr/include/c++/9/bits/stl_algobase.h" 3 32778: template 32778: _ForwardIterator2 32778: swap_ranges(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 32778: _ForwardIterator2 __first2) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: for (; __first1 != __last1; ++__first1, (void)++__first2) 32778: std::iter_swap(__first1, __first2); 32778: return __first2; 32778: } 32778: # 195 "/usr/include/c++/9/bits/stl_algobase.h" 3 32778: template 32778: 32778: inline const _Tp& 32778: min(const _Tp& __a, const _Tp& __b) 32778: { 32778: 32778: 32778: 32778: if (__b < __a) 32778: return __b; 32778: return __a; 32778: } 32778: # 219 "/usr/include/c++/9/bits/stl_algobase.h" 3 32778: template 32778: 32778: inline const _Tp& 32778: max(const _Tp& __a, const _Tp& __b) 32778: { 32778: 32778: 32778: 32778: if (__a < __b) 32778: return __b; 32778: return __a; 32778: } 32778: # 243 "/usr/include/c++/9/bits/stl_algobase.h" 3 32778: template 32778: 32778: inline const _Tp& 32778: min(const _Tp& __a, const _Tp& __b, _Compare __comp) 32778: { 32778: 32778: if (__comp(__b, __a)) 32778: return __b; 32778: return __a; 32778: } 32778: # 265 "/usr/include/c++/9/bits/stl_algobase.h" 3 32778: template 32778: 32778: inline const _Tp& 32778: max(const _Tp& __a, const _Tp& __b, _Compare __comp) 32778: { 32778: 32778: if (__comp(__a, __b)) 32778: return __b; 32778: return __a; 32778: } 32778: 32778: 32778: 32778: template 32778: inline _Iterator 32778: __niter_base(_Iterator __it) 32778: noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) 32778: { return __it; } 32778: 32778: 32778: 32778: 32778: template 32778: inline _From 32778: __niter_wrap(_From __from, _To __res) 32778: { return __from + (__res - std::__niter_base(__from)); } 32778: 32778: 32778: template 32778: inline _Iterator 32778: __niter_wrap(const _Iterator&, _Iterator __res) 32778: { return __res; } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct __copy_move 32778: { 32778: template 32778: static _OI 32778: __copy_m(_II __first, _II __last, _OI __result) 32778: { 32778: for (; __first != __last; ++__result, (void)++__first) 32778: *__result = *__first; 32778: return __result; 32778: } 32778: }; 32778: 32778: 32778: template 32778: struct __copy_move 32778: { 32778: template 32778: static _OI 32778: __copy_m(_II __first, _II __last, _OI __result) 32778: { 32778: for (; __first != __last; ++__result, (void)++__first) 32778: *__result = std::move(*__first); 32778: return __result; 32778: } 32778: }; 32778: 32778: 32778: template<> 32778: struct __copy_move 32778: { 32778: template 32778: static _OI 32778: __copy_m(_II __first, _II __last, _OI __result) 32778: { 32778: typedef typename iterator_traits<_II>::difference_type _Distance; 32778: for(_Distance __n = __last - __first; __n > 0; --__n) 32778: { 32778: *__result = *__first; 32778: ++__first; 32778: ++__result; 32778: } 32778: return __result; 32778: } 32778: }; 32778: 32778: 32778: template<> 32778: struct __copy_move 32778: { 32778: template 32778: static _OI 32778: __copy_m(_II __first, _II __last, _OI __result) 32778: { 32778: typedef typename iterator_traits<_II>::difference_type _Distance; 32778: for(_Distance __n = __last - __first; __n > 0; --__n) 32778: { 32778: *__result = std::move(*__first); 32778: ++__first; 32778: ++__result; 32778: } 32778: return __result; 32778: } 32778: }; 32778: 32778: 32778: template 32778: struct __copy_move<_IsMove, true, random_access_iterator_tag> 32778: { 32778: template 32778: static _Tp* 32778: __copy_m(const _Tp* __first, const _Tp* __last, _Tp* __result) 32778: { 32778: 32778: using __assignable = conditional<_IsMove, 32778: is_move_assignable<_Tp>, 32778: is_copy_assignable<_Tp>>; 32778: 32778: static_assert( __assignable::type::value, "type is not assignable" ); 32778: 32778: const ptrdiff_t _Num = __last - __first; 32778: if (_Num) 32778: __builtin_memmove(__result, __first, sizeof(_Tp) * _Num); 32778: return __result + _Num; 32778: } 32778: }; 32778: 32778: template 32778: inline _OI 32778: __copy_move_a(_II __first, _II __last, _OI __result) 32778: { 32778: typedef typename iterator_traits<_II>::value_type _ValueTypeI; 32778: typedef typename iterator_traits<_OI>::value_type _ValueTypeO; 32778: typedef typename iterator_traits<_II>::iterator_category _Category; 32778: const bool __simple = (__is_trivially_copyable(_ValueTypeI) 32778: && __is_pointer<_II>::__value 32778: && __is_pointer<_OI>::__value 32778: && __are_same<_ValueTypeI, _ValueTypeO>::__value); 32778: 32778: return std::__copy_move<_IsMove, __simple, 32778: _Category>::__copy_m(__first, __last, __result); 32778: } 32778: 32778: 32778: 32778: template 32778: struct char_traits; 32778: 32778: template 32778: class istreambuf_iterator; 32778: 32778: template 32778: class ostreambuf_iterator; 32778: 32778: template 32778: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 32778: ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type 32778: __copy_move_a2(_CharT*, _CharT*, 32778: ostreambuf_iterator<_CharT, char_traits<_CharT> >); 32778: 32778: template 32778: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 32778: ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type 32778: __copy_move_a2(const _CharT*, const _CharT*, 32778: ostreambuf_iterator<_CharT, char_traits<_CharT> >); 32778: 32778: template 32778: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 32778: _CharT*>::__type 32778: __copy_move_a2(istreambuf_iterator<_CharT, char_traits<_CharT> >, 32778: istreambuf_iterator<_CharT, char_traits<_CharT> >, _CharT*); 32778: 32778: template 32778: inline _OI 32778: __copy_move_a2(_II __first, _II __last, _OI __result) 32778: { 32778: return std::__niter_wrap(__result, 32778: std::__copy_move_a<_IsMove>(std::__niter_base(__first), 32778: std::__niter_base(__last), 32778: std::__niter_base(__result))); 32778: } 32778: # 463 "/usr/include/c++/9/bits/stl_algobase.h" 3 32778: template 32778: inline _OI 32778: copy(_II __first, _II __last, _OI __result) 32778: { 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__copy_move_a2<__is_move_iterator<_II>::__value> 32778: (std::__miter_base(__first), std::__miter_base(__last), __result); 32778: } 32778: # 495 "/usr/include/c++/9/bits/stl_algobase.h" 3 32778: template 32778: inline _OI 32778: move(_II __first, _II __last, _OI __result) 32778: { 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__copy_move_a2(std::__miter_base(__first), 32778: std::__miter_base(__last), __result); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct __copy_move_backward 32778: { 32778: template 32778: static _BI2 32778: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 32778: { 32778: while (__first != __last) 32778: *--__result = *--__last; 32778: return __result; 32778: } 32778: }; 32778: 32778: 32778: template 32778: struct __copy_move_backward 32778: { 32778: template 32778: static _BI2 32778: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 32778: { 32778: while (__first != __last) 32778: *--__result = std::move(*--__last); 32778: return __result; 32778: } 32778: }; 32778: 32778: 32778: template<> 32778: struct __copy_move_backward 32778: { 32778: template 32778: static _BI2 32778: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 32778: { 32778: typename iterator_traits<_BI1>::difference_type __n; 32778: for (__n = __last - __first; __n > 0; --__n) 32778: *--__result = *--__last; 32778: return __result; 32778: } 32778: }; 32778: 32778: 32778: template<> 32778: struct __copy_move_backward 32778: { 32778: template 32778: static _BI2 32778: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 32778: { 32778: typename iterator_traits<_BI1>::difference_type __n; 32778: for (__n = __last - __first; __n > 0; --__n) 32778: *--__result = std::move(*--__last); 32778: return __result; 32778: } 32778: }; 32778: 32778: 32778: template 32778: struct __copy_move_backward<_IsMove, true, random_access_iterator_tag> 32778: { 32778: template 32778: static _Tp* 32778: __copy_move_b(const _Tp* __first, const _Tp* __last, _Tp* __result) 32778: { 32778: 32778: using __assignable = conditional<_IsMove, 32778: is_move_assignable<_Tp>, 32778: is_copy_assignable<_Tp>>; 32778: 32778: static_assert( __assignable::type::value, "type is not assignable" ); 32778: 32778: const ptrdiff_t _Num = __last - __first; 32778: if (_Num) 32778: __builtin_memmove(__result - _Num, __first, sizeof(_Tp) * _Num); 32778: return __result - _Num; 32778: } 32778: }; 32778: 32778: template 32778: inline _BI2 32778: __copy_move_backward_a(_BI1 __first, _BI1 __last, _BI2 __result) 32778: { 32778: typedef typename iterator_traits<_BI1>::value_type _ValueType1; 32778: typedef typename iterator_traits<_BI2>::value_type _ValueType2; 32778: typedef typename iterator_traits<_BI1>::iterator_category _Category; 32778: const bool __simple = (__is_trivially_copyable(_ValueType1) 32778: && __is_pointer<_BI1>::__value 32778: && __is_pointer<_BI2>::__value 32778: && __are_same<_ValueType1, _ValueType2>::__value); 32778: 32778: return std::__copy_move_backward<_IsMove, __simple, 32778: _Category>::__copy_move_b(__first, 32778: __last, 32778: __result); 32778: } 32778: 32778: template 32778: inline _BI2 32778: __copy_move_backward_a2(_BI1 __first, _BI1 __last, _BI2 __result) 32778: { 32778: return std::__niter_wrap(__result, 32778: std::__copy_move_backward_a<_IsMove> 32778: (std::__niter_base(__first), std::__niter_base(__last), 32778: std::__niter_base(__result))); 32778: } 32778: # 639 "/usr/include/c++/9/bits/stl_algobase.h" 3 32778: template 32778: inline _BI2 32778: copy_backward(_BI1 __first, _BI1 __last, _BI2 __result) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__copy_move_backward_a2<__is_move_iterator<_BI1>::__value> 32778: (std::__miter_base(__first), std::__miter_base(__last), __result); 32778: } 32778: # 674 "/usr/include/c++/9/bits/stl_algobase.h" 3 32778: template 32778: inline _BI2 32778: move_backward(_BI1 __first, _BI1 __last, _BI2 __result) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__copy_move_backward_a2(std::__miter_base(__first), 32778: std::__miter_base(__last), 32778: __result); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline typename 32778: __gnu_cxx::__enable_if::__value, void>::__type 32778: __fill_a(_ForwardIterator __first, _ForwardIterator __last, 32778: const _Tp& __value) 32778: { 32778: for (; __first != __last; ++__first) 32778: *__first = __value; 32778: } 32778: 32778: template 32778: inline typename 32778: __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, void>::__type 32778: __fill_a(_ForwardIterator __first, _ForwardIterator __last, 32778: const _Tp& __value) 32778: { 32778: const _Tp __tmp = __value; 32778: for (; __first != __last; ++__first) 32778: *__first = __tmp; 32778: } 32778: 32778: 32778: template 32778: inline typename 32778: __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, void>::__type 32778: __fill_a(_Tp* __first, _Tp* __last, const _Tp& __c) 32778: { 32778: const _Tp __tmp = __c; 32778: if (const size_t __len = __last - __first) 32778: __builtin_memset(__first, static_cast(__tmp), __len); 32778: } 32778: # 740 "/usr/include/c++/9/bits/stl_algobase.h" 3 32778: template 32778: inline void 32778: fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) 32778: { 32778: 32778: 32778: 32778: ; 32778: 32778: std::__fill_a(std::__niter_base(__first), std::__niter_base(__last), 32778: __value); 32778: } 32778: 32778: template 32778: inline typename 32778: __gnu_cxx::__enable_if::__value, _OutputIterator>::__type 32778: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value) 32778: { 32778: for (__decltype(__n + 0) __niter = __n; 32778: __niter > 0; --__niter, (void) ++__first) 32778: *__first = __value; 32778: return __first; 32778: } 32778: 32778: template 32778: inline typename 32778: __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, _OutputIterator>::__type 32778: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value) 32778: { 32778: const _Tp __tmp = __value; 32778: for (__decltype(__n + 0) __niter = __n; 32778: __niter > 0; --__niter, (void) ++__first) 32778: *__first = __tmp; 32778: return __first; 32778: } 32778: 32778: template 32778: inline typename 32778: __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, _Tp*>::__type 32778: __fill_n_a(_Tp* __first, _Size __n, const _Tp& __c) 32778: { 32778: std::__fill_a(__first, __first + __n, __c); 32778: return __first + __n; 32778: } 32778: # 800 "/usr/include/c++/9/bits/stl_algobase.h" 3 32778: template 32778: inline _OI 32778: fill_n(_OI __first, _Size __n, const _Tp& __value) 32778: { 32778: 32778: 32778: ; 32778: 32778: return std::__niter_wrap(__first, 32778: std::__fill_n_a(std::__niter_base(__first), __n, __value)); 32778: } 32778: 32778: template 32778: struct __equal 32778: { 32778: template 32778: static bool 32778: equal(_II1 __first1, _II1 __last1, _II2 __first2) 32778: { 32778: for (; __first1 != __last1; ++__first1, (void) ++__first2) 32778: if (!(*__first1 == *__first2)) 32778: return false; 32778: return true; 32778: } 32778: }; 32778: 32778: template<> 32778: struct __equal 32778: { 32778: template 32778: static bool 32778: equal(const _Tp* __first1, const _Tp* __last1, const _Tp* __first2) 32778: { 32778: if (const size_t __len = (__last1 - __first1)) 32778: return !__builtin_memcmp(__first1, __first2, sizeof(_Tp) * __len); 32778: return true; 32778: } 32778: }; 32778: 32778: template 32778: inline bool 32778: __equal_aux(_II1 __first1, _II1 __last1, _II2 __first2) 32778: { 32778: typedef typename iterator_traits<_II1>::value_type _ValueType1; 32778: typedef typename iterator_traits<_II2>::value_type _ValueType2; 32778: const bool __simple = ((__is_integer<_ValueType1>::__value 32778: || __is_pointer<_ValueType1>::__value) 32778: && __is_pointer<_II1>::__value 32778: && __is_pointer<_II2>::__value 32778: && __are_same<_ValueType1, _ValueType2>::__value); 32778: 32778: return std::__equal<__simple>::equal(__first1, __last1, __first2); 32778: } 32778: 32778: template 32778: struct __lc_rai 32778: { 32778: template 32778: static _II1 32778: __newlast1(_II1, _II1 __last1, _II2, _II2) 32778: { return __last1; } 32778: 32778: template 32778: static bool 32778: __cnd2(_II __first, _II __last) 32778: { return __first != __last; } 32778: }; 32778: 32778: template<> 32778: struct __lc_rai 32778: { 32778: template 32778: static _RAI1 32778: __newlast1(_RAI1 __first1, _RAI1 __last1, 32778: _RAI2 __first2, _RAI2 __last2) 32778: { 32778: const typename iterator_traits<_RAI1>::difference_type 32778: __diff1 = __last1 - __first1; 32778: const typename iterator_traits<_RAI2>::difference_type 32778: __diff2 = __last2 - __first2; 32778: return __diff2 < __diff1 ? __first1 + __diff2 : __last1; 32778: } 32778: 32778: template 32778: static bool 32778: __cnd2(_RAI, _RAI) 32778: { return true; } 32778: }; 32778: 32778: template 32778: bool 32778: __lexicographical_compare_impl(_II1 __first1, _II1 __last1, 32778: _II2 __first2, _II2 __last2, 32778: _Compare __comp) 32778: { 32778: typedef typename iterator_traits<_II1>::iterator_category _Category1; 32778: typedef typename iterator_traits<_II2>::iterator_category _Category2; 32778: typedef std::__lc_rai<_Category1, _Category2> __rai_type; 32778: 32778: __last1 = __rai_type::__newlast1(__first1, __last1, __first2, __last2); 32778: for (; __first1 != __last1 && __rai_type::__cnd2(__first2, __last2); 32778: ++__first1, (void)++__first2) 32778: { 32778: if (__comp(__first1, __first2)) 32778: return true; 32778: if (__comp(__first2, __first1)) 32778: return false; 32778: } 32778: return __first1 == __last1 && __first2 != __last2; 32778: } 32778: 32778: template 32778: struct __lexicographical_compare 32778: { 32778: template 32778: static bool __lc(_II1, _II1, _II2, _II2); 32778: }; 32778: 32778: template 32778: template 32778: bool 32778: __lexicographical_compare<_BoolType>:: 32778: __lc(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 32778: { 32778: return std::__lexicographical_compare_impl(__first1, __last1, 32778: __first2, __last2, 32778: __gnu_cxx::__ops::__iter_less_iter()); 32778: } 32778: 32778: template<> 32778: struct __lexicographical_compare 32778: { 32778: template 32778: static bool 32778: __lc(const _Tp* __first1, const _Tp* __last1, 32778: const _Up* __first2, const _Up* __last2) 32778: { 32778: const size_t __len1 = __last1 - __first1; 32778: const size_t __len2 = __last2 - __first2; 32778: if (const size_t __len = std::min(__len1, __len2)) 32778: if (int __result = __builtin_memcmp(__first1, __first2, __len)) 32778: return __result < 0; 32778: return __len1 < __len2; 32778: } 32778: }; 32778: 32778: template 32778: inline bool 32778: __lexicographical_compare_aux(_II1 __first1, _II1 __last1, 32778: _II2 __first2, _II2 __last2) 32778: { 32778: typedef typename iterator_traits<_II1>::value_type _ValueType1; 32778: typedef typename iterator_traits<_II2>::value_type _ValueType2; 32778: const bool __simple = 32778: (__is_byte<_ValueType1>::__value && __is_byte<_ValueType2>::__value 32778: && !__gnu_cxx::__numeric_traits<_ValueType1>::__is_signed 32778: && !__gnu_cxx::__numeric_traits<_ValueType2>::__is_signed 32778: && __is_pointer<_II1>::__value 32778: && __is_pointer<_II2>::__value); 32778: 32778: return std::__lexicographical_compare<__simple>::__lc(__first1, __last1, 32778: __first2, __last2); 32778: } 32778: 32778: template 32778: _ForwardIterator 32778: __lower_bound(_ForwardIterator __first, _ForwardIterator __last, 32778: const _Tp& __val, _Compare __comp) 32778: { 32778: typedef typename iterator_traits<_ForwardIterator>::difference_type 32778: _DistanceType; 32778: 32778: _DistanceType __len = std::distance(__first, __last); 32778: 32778: while (__len > 0) 32778: { 32778: _DistanceType __half = __len >> 1; 32778: _ForwardIterator __middle = __first; 32778: std::advance(__middle, __half); 32778: if (__comp(__middle, __val)) 32778: { 32778: __first = __middle; 32778: ++__first; 32778: __len = __len - __half - 1; 32778: } 32778: else 32778: __len = __half; 32778: } 32778: return __first; 32778: } 32778: # 1002 "/usr/include/c++/9/bits/stl_algobase.h" 3 32778: template 32778: inline _ForwardIterator 32778: lower_bound(_ForwardIterator __first, _ForwardIterator __last, 32778: const _Tp& __val) 32778: { 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__lower_bound(__first, __last, __val, 32778: __gnu_cxx::__ops::__iter_less_val()); 32778: } 32778: 32778: 32778: 32778: inline constexpr int 32778: __lg(int __n) 32778: { return (int)sizeof(int) * 8 - 1 - __builtin_clz(__n); } 32778: 32778: inline constexpr unsigned 32778: __lg(unsigned __n) 32778: { return (int)sizeof(int) * 8 - 1 - __builtin_clz(__n); } 32778: 32778: inline constexpr long 32778: __lg(long __n) 32778: { return (int)sizeof(long) * 8 - 1 - __builtin_clzl(__n); } 32778: 32778: inline constexpr unsigned long 32778: __lg(unsigned long __n) 32778: { return (int)sizeof(long) * 8 - 1 - __builtin_clzl(__n); } 32778: 32778: inline constexpr long long 32778: __lg(long long __n) 32778: { return (int)sizeof(long long) * 8 - 1 - __builtin_clzll(__n); } 32778: 32778: inline constexpr unsigned long long 32778: __lg(unsigned long long __n) 32778: { return (int)sizeof(long long) * 8 - 1 - __builtin_clzll(__n); } 32778: 32778: 32778: # 1057 "/usr/include/c++/9/bits/stl_algobase.h" 3 32778: template 32778: inline bool 32778: equal(_II1 __first1, _II1 __last1, _II2 __first2) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__equal_aux(std::__niter_base(__first1), 32778: std::__niter_base(__last1), 32778: std::__niter_base(__first2)); 32778: } 32778: # 1089 "/usr/include/c++/9/bits/stl_algobase.h" 3 32778: template 32778: inline bool 32778: equal(_IIter1 __first1, _IIter1 __last1, 32778: _IIter2 __first2, _BinaryPredicate __binary_pred) 32778: { 32778: 32778: 32778: 32778: ; 32778: 32778: for (; __first1 != __last1; ++__first1, (void)++__first2) 32778: if (!bool(__binary_pred(*__first1, *__first2))) 32778: return false; 32778: return true; 32778: } 32778: 32778: 32778: 32778: template 32778: inline bool 32778: __equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 32778: { 32778: using _RATag = random_access_iterator_tag; 32778: using _Cat1 = typename iterator_traits<_II1>::iterator_category; 32778: using _Cat2 = typename iterator_traits<_II2>::iterator_category; 32778: using _RAIters = __and_, is_same<_Cat2, _RATag>>; 32778: if (_RAIters()) 32778: { 32778: auto __d1 = std::distance(__first1, __last1); 32778: auto __d2 = std::distance(__first2, __last2); 32778: if (__d1 != __d2) 32778: return false; 32778: return std::equal(__first1, __last1, __first2); 32778: } 32778: 32778: for (; __first1 != __last1 && __first2 != __last2; 32778: ++__first1, (void)++__first2) 32778: if (!(*__first1 == *__first2)) 32778: return false; 32778: return __first1 == __last1 && __first2 == __last2; 32778: } 32778: 32778: 32778: template 32778: inline bool 32778: __equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2, 32778: _BinaryPredicate __binary_pred) 32778: { 32778: using _RATag = random_access_iterator_tag; 32778: using _Cat1 = typename iterator_traits<_II1>::iterator_category; 32778: using _Cat2 = typename iterator_traits<_II2>::iterator_category; 32778: using _RAIters = __and_, is_same<_Cat2, _RATag>>; 32778: if (_RAIters()) 32778: { 32778: auto __d1 = std::distance(__first1, __last1); 32778: auto __d2 = std::distance(__first2, __last2); 32778: if (__d1 != __d2) 32778: return false; 32778: return std::equal(__first1, __last1, __first2, 32778: __binary_pred); 32778: } 32778: 32778: for (; __first1 != __last1 && __first2 != __last2; 32778: ++__first1, (void)++__first2) 32778: if (!bool(__binary_pred(*__first1, *__first2))) 32778: return false; 32778: return __first1 == __last1 && __first2 == __last2; 32778: } 32778: # 1239 "/usr/include/c++/9/bits/stl_algobase.h" 3 32778: template 32778: inline bool 32778: lexicographical_compare(_II1 __first1, _II1 __last1, 32778: _II2 __first2, _II2 __last2) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: return std::__lexicographical_compare_aux(std::__niter_base(__first1), 32778: std::__niter_base(__last1), 32778: std::__niter_base(__first2), 32778: std::__niter_base(__last2)); 32778: } 32778: # 1275 "/usr/include/c++/9/bits/stl_algobase.h" 3 32778: template 32778: inline bool 32778: lexicographical_compare(_II1 __first1, _II1 __last1, 32778: _II2 __first2, _II2 __last2, _Compare __comp) 32778: { 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: return std::__lexicographical_compare_impl 32778: (__first1, __last1, __first2, __last2, 32778: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 32778: } 32778: 32778: template 32778: pair<_InputIterator1, _InputIterator2> 32778: __mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 32778: _InputIterator2 __first2, _BinaryPredicate __binary_pred) 32778: { 32778: while (__first1 != __last1 && __binary_pred(__first1, __first2)) 32778: { 32778: ++__first1; 32778: ++__first2; 32778: } 32778: return pair<_InputIterator1, _InputIterator2>(__first1, __first2); 32778: } 32778: # 1318 "/usr/include/c++/9/bits/stl_algobase.h" 3 32778: template 32778: inline pair<_InputIterator1, _InputIterator2> 32778: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 32778: _InputIterator2 __first2) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__mismatch(__first1, __last1, __first2, 32778: __gnu_cxx::__ops::__iter_equal_to_iter()); 32778: } 32778: # 1351 "/usr/include/c++/9/bits/stl_algobase.h" 3 32778: template 32778: inline pair<_InputIterator1, _InputIterator2> 32778: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 32778: _InputIterator2 __first2, _BinaryPredicate __binary_pred) 32778: { 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__mismatch(__first1, __last1, __first2, 32778: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 32778: } 32778: # 1451 "/usr/include/c++/9/bits/stl_algobase.h" 3 32778: 32778: 32778: } 32778: # 40 "/usr/include/c++/9/bits/char_traits.h" 2 3 32778: # 1 "/usr/include/c++/9/bits/postypes.h" 1 3 32778: # 38 "/usr/include/c++/9/bits/postypes.h" 3 32778: 32778: # 39 "/usr/include/c++/9/bits/postypes.h" 3 32778: 32778: # 1 "/usr/include/c++/9/cwchar" 1 3 32778: # 39 "/usr/include/c++/9/cwchar" 3 32778: 32778: # 40 "/usr/include/c++/9/cwchar" 3 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/wchar.h" 1 3 4 32778: # 27 "/usr/include/wchar.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/libc-header-start.h" 1 3 4 32778: # 28 "/usr/include/wchar.h" 2 3 4 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/floatn.h" 1 3 4 32778: # 23 "/usr/include/riscv64-linux-gnu/bits/floatn.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/long-double.h" 1 3 4 32778: # 24 "/usr/include/riscv64-linux-gnu/bits/floatn.h" 2 3 4 32778: # 80 "/usr/include/riscv64-linux-gnu/bits/floatn.h" 3 4 32778: typedef long double _Float128; 32778: # 95 "/usr/include/riscv64-linux-gnu/bits/floatn.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/floatn-common.h" 1 3 4 32778: # 24 "/usr/include/riscv64-linux-gnu/bits/floatn-common.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/long-double.h" 1 3 4 32778: # 25 "/usr/include/riscv64-linux-gnu/bits/floatn-common.h" 2 3 4 32778: # 214 "/usr/include/riscv64-linux-gnu/bits/floatn-common.h" 3 4 32778: typedef float _Float32; 32778: # 251 "/usr/include/riscv64-linux-gnu/bits/floatn-common.h" 3 4 32778: typedef double _Float64; 32778: # 268 "/usr/include/riscv64-linux-gnu/bits/floatn-common.h" 3 4 32778: typedef double _Float32x; 32778: # 285 "/usr/include/riscv64-linux-gnu/bits/floatn-common.h" 3 4 32778: typedef long double _Float64x; 32778: # 96 "/usr/include/riscv64-linux-gnu/bits/floatn.h" 2 3 4 32778: # 31 "/usr/include/wchar.h" 2 3 4 32778: 32778: 32778: 32778: 32778: # 1 "/usr/lib/gcc/riscv64-linux-gnu/9/include/stddef.h" 1 3 4 32778: # 209 "/usr/lib/gcc/riscv64-linux-gnu/9/include/stddef.h" 3 4 32778: typedef long unsigned int size_t; 32778: # 36 "/usr/include/wchar.h" 2 3 4 32778: 32778: 32778: # 1 "/usr/lib/gcc/riscv64-linux-gnu/9/include/stdarg.h" 1 3 4 32778: # 40 "/usr/lib/gcc/riscv64-linux-gnu/9/include/stdarg.h" 3 4 32778: typedef __builtin_va_list __gnuc_va_list; 32778: # 39 "/usr/include/wchar.h" 2 3 4 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/wchar.h" 1 3 4 32778: # 41 "/usr/include/wchar.h" 2 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/types/wint_t.h" 1 3 4 32778: # 20 "/usr/include/riscv64-linux-gnu/bits/types/wint_t.h" 3 4 32778: typedef unsigned int wint_t; 32778: # 42 "/usr/include/wchar.h" 2 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/types/mbstate_t.h" 1 3 4 32778: 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/types/__mbstate_t.h" 1 3 4 32778: # 13 "/usr/include/riscv64-linux-gnu/bits/types/__mbstate_t.h" 3 4 32778: typedef struct 32778: { 32778: int __count; 32778: union 32778: { 32778: unsigned int __wch; 32778: char __wchb[4]; 32778: } __value; 32778: } __mbstate_t; 32778: # 5 "/usr/include/riscv64-linux-gnu/bits/types/mbstate_t.h" 2 3 4 32778: 32778: typedef __mbstate_t mbstate_t; 32778: # 43 "/usr/include/wchar.h" 2 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/types/__FILE.h" 1 3 4 32778: 32778: 32778: 32778: struct _IO_FILE; 32778: typedef struct _IO_FILE __FILE; 32778: # 44 "/usr/include/wchar.h" 2 3 4 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/types/FILE.h" 1 3 4 32778: 32778: 32778: 32778: struct _IO_FILE; 32778: 32778: 32778: typedef struct _IO_FILE FILE; 32778: # 47 "/usr/include/wchar.h" 2 3 4 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/types/locale_t.h" 1 3 4 32778: # 22 "/usr/include/riscv64-linux-gnu/bits/types/locale_t.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/types/__locale_t.h" 1 3 4 32778: # 28 "/usr/include/riscv64-linux-gnu/bits/types/__locale_t.h" 3 4 32778: struct __locale_struct 32778: { 32778: 32778: struct __locale_data *__locales[13]; 32778: 32778: 32778: const unsigned short int *__ctype_b; 32778: const int *__ctype_tolower; 32778: const int *__ctype_toupper; 32778: 32778: 32778: const char *__names[13]; 32778: }; 32778: 32778: typedef struct __locale_struct *__locale_t; 32778: # 23 "/usr/include/riscv64-linux-gnu/bits/types/locale_t.h" 2 3 4 32778: 32778: typedef __locale_t locale_t; 32778: # 50 "/usr/include/wchar.h" 2 3 4 32778: # 79 "/usr/include/wchar.h" 3 4 32778: extern "C" { 32778: 32778: 32778: 32778: struct tm; 32778: 32778: 32778: 32778: extern wchar_t *wcscpy (wchar_t *__restrict __dest, 32778: const wchar_t *__restrict __src) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: extern wchar_t *wcsncpy (wchar_t *__restrict __dest, 32778: const wchar_t *__restrict __src, size_t __n) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: extern wchar_t *wcscat (wchar_t *__restrict __dest, 32778: const wchar_t *__restrict __src) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: extern wchar_t *wcsncat (wchar_t *__restrict __dest, 32778: const wchar_t *__restrict __src, size_t __n) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: extern int wcscmp (const wchar_t *__s1, const wchar_t *__s2) 32778: throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: extern int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) 32778: throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: 32778: extern int wcscasecmp (const wchar_t *__s1, const wchar_t *__s2) throw (); 32778: 32778: 32778: extern int wcsncasecmp (const wchar_t *__s1, const wchar_t *__s2, 32778: size_t __n) throw (); 32778: 32778: 32778: 32778: extern int wcscasecmp_l (const wchar_t *__s1, const wchar_t *__s2, 32778: locale_t __loc) throw (); 32778: 32778: extern int wcsncasecmp_l (const wchar_t *__s1, const wchar_t *__s2, 32778: size_t __n, locale_t __loc) throw (); 32778: 32778: 32778: 32778: 32778: extern int wcscoll (const wchar_t *__s1, const wchar_t *__s2) throw (); 32778: 32778: 32778: 32778: extern size_t wcsxfrm (wchar_t *__restrict __s1, 32778: const wchar_t *__restrict __s2, size_t __n) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int wcscoll_l (const wchar_t *__s1, const wchar_t *__s2, 32778: locale_t __loc) throw (); 32778: 32778: 32778: 32778: 32778: extern size_t wcsxfrm_l (wchar_t *__s1, const wchar_t *__s2, 32778: size_t __n, locale_t __loc) throw (); 32778: 32778: 32778: extern wchar_t *wcsdup (const wchar_t *__s) throw () __attribute__ ((__malloc__)); 32778: 32778: 32778: 32778: 32778: extern "C++" wchar_t *wcschr (wchar_t *__wcs, wchar_t __wc) 32778: throw () __asm ("wcschr") __attribute__ ((__pure__)); 32778: extern "C++" const wchar_t *wcschr (const wchar_t *__wcs, wchar_t __wc) 32778: throw () __asm ("wcschr") __attribute__ ((__pure__)); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern "C++" wchar_t *wcsrchr (wchar_t *__wcs, wchar_t __wc) 32778: throw () __asm ("wcsrchr") __attribute__ ((__pure__)); 32778: extern "C++" const wchar_t *wcsrchr (const wchar_t *__wcs, wchar_t __wc) 32778: throw () __asm ("wcsrchr") __attribute__ ((__pure__)); 32778: # 181 "/usr/include/wchar.h" 3 4 32778: extern wchar_t *wcschrnul (const wchar_t *__s, wchar_t __wc) 32778: throw () __attribute__ ((__pure__)); 32778: 32778: 32778: 32778: 32778: extern size_t wcscspn (const wchar_t *__wcs, const wchar_t *__reject) 32778: throw () __attribute__ ((__pure__)); 32778: 32778: 32778: extern size_t wcsspn (const wchar_t *__wcs, const wchar_t *__accept) 32778: throw () __attribute__ ((__pure__)); 32778: 32778: 32778: extern "C++" wchar_t *wcspbrk (wchar_t *__wcs, const wchar_t *__accept) 32778: throw () __asm ("wcspbrk") __attribute__ ((__pure__)); 32778: extern "C++" const wchar_t *wcspbrk (const wchar_t *__wcs, 32778: const wchar_t *__accept) 32778: throw () __asm ("wcspbrk") __attribute__ ((__pure__)); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern "C++" wchar_t *wcsstr (wchar_t *__haystack, const wchar_t *__needle) 32778: throw () __asm ("wcsstr") __attribute__ ((__pure__)); 32778: extern "C++" const wchar_t *wcsstr (const wchar_t *__haystack, 32778: const wchar_t *__needle) 32778: throw () __asm ("wcsstr") __attribute__ ((__pure__)); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern wchar_t *wcstok (wchar_t *__restrict __s, 32778: const wchar_t *__restrict __delim, 32778: wchar_t **__restrict __ptr) throw (); 32778: 32778: 32778: extern size_t wcslen (const wchar_t *__s) throw () __attribute__ ((__pure__)); 32778: 32778: 32778: 32778: 32778: extern "C++" wchar_t *wcswcs (wchar_t *__haystack, const wchar_t *__needle) 32778: throw () __asm ("wcswcs") __attribute__ ((__pure__)); 32778: extern "C++" const wchar_t *wcswcs (const wchar_t *__haystack, 32778: const wchar_t *__needle) 32778: throw () __asm ("wcswcs") __attribute__ ((__pure__)); 32778: # 240 "/usr/include/wchar.h" 3 4 32778: extern size_t wcsnlen (const wchar_t *__s, size_t __maxlen) 32778: throw () __attribute__ ((__pure__)); 32778: 32778: 32778: 32778: 32778: 32778: extern "C++" wchar_t *wmemchr (wchar_t *__s, wchar_t __c, size_t __n) 32778: throw () __asm ("wmemchr") __attribute__ ((__pure__)); 32778: extern "C++" const wchar_t *wmemchr (const wchar_t *__s, wchar_t __c, 32778: size_t __n) 32778: throw () __asm ("wmemchr") __attribute__ ((__pure__)); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int wmemcmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) 32778: throw () __attribute__ ((__pure__)); 32778: 32778: 32778: extern wchar_t *wmemcpy (wchar_t *__restrict __s1, 32778: const wchar_t *__restrict __s2, size_t __n) throw (); 32778: 32778: 32778: 32778: extern wchar_t *wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n) 32778: throw (); 32778: 32778: 32778: extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) throw (); 32778: 32778: 32778: 32778: 32778: extern wchar_t *wmempcpy (wchar_t *__restrict __s1, 32778: const wchar_t *__restrict __s2, size_t __n) 32778: throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern wint_t btowc (int __c) throw (); 32778: 32778: 32778: 32778: extern int wctob (wint_t __c) throw (); 32778: 32778: 32778: 32778: extern int mbsinit (const mbstate_t *__ps) throw () __attribute__ ((__pure__)); 32778: 32778: 32778: 32778: extern size_t mbrtowc (wchar_t *__restrict __pwc, 32778: const char *__restrict __s, size_t __n, 32778: mbstate_t *__restrict __p) throw (); 32778: 32778: 32778: extern size_t wcrtomb (char *__restrict __s, wchar_t __wc, 32778: mbstate_t *__restrict __ps) throw (); 32778: 32778: 32778: extern size_t __mbrlen (const char *__restrict __s, size_t __n, 32778: mbstate_t *__restrict __ps) throw (); 32778: extern size_t mbrlen (const char *__restrict __s, size_t __n, 32778: mbstate_t *__restrict __ps) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern wint_t __btowc_alias (int __c) __asm ("btowc"); 32778: extern __inline __attribute__ ((__gnu_inline__)) wint_t 32778: __attribute__ ((__leaf__)) btowc (int __c) throw () 32778: { return (__builtin_constant_p (__c) && __c >= '\0' && __c <= '\x7f' 32778: ? (wint_t) __c : __btowc_alias (__c)); } 32778: 32778: extern int __wctob_alias (wint_t __c) __asm ("wctob"); 32778: extern __inline __attribute__ ((__gnu_inline__)) int 32778: __attribute__ ((__leaf__)) wctob (wint_t __wc) throw () 32778: { return (__builtin_constant_p (__wc) && __wc >= L'\0' && __wc <= L'\x7f' 32778: ? (int) __wc : __wctob_alias (__wc)); } 32778: 32778: extern __inline __attribute__ ((__gnu_inline__)) size_t 32778: __attribute__ ((__leaf__)) mbrlen (const char *__restrict __s, size_t __n, mbstate_t *__restrict __ps) throw () 32778: 32778: { return (__ps != __null 32778: ? mbrtowc (__null, __s, __n, __ps) : __mbrlen (__s, __n, __null)); } 32778: 32778: 32778: 32778: 32778: extern size_t mbsrtowcs (wchar_t *__restrict __dst, 32778: const char **__restrict __src, size_t __len, 32778: mbstate_t *__restrict __ps) throw (); 32778: 32778: 32778: 32778: extern size_t wcsrtombs (char *__restrict __dst, 32778: const wchar_t **__restrict __src, size_t __len, 32778: mbstate_t *__restrict __ps) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern size_t mbsnrtowcs (wchar_t *__restrict __dst, 32778: const char **__restrict __src, size_t __nmc, 32778: size_t __len, mbstate_t *__restrict __ps) throw (); 32778: 32778: 32778: 32778: extern size_t wcsnrtombs (char *__restrict __dst, 32778: const wchar_t **__restrict __src, 32778: size_t __nwc, size_t __len, 32778: mbstate_t *__restrict __ps) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int wcwidth (wchar_t __c) throw (); 32778: 32778: 32778: 32778: extern int wcswidth (const wchar_t *__s, size_t __n) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern double wcstod (const wchar_t *__restrict __nptr, 32778: wchar_t **__restrict __endptr) throw (); 32778: 32778: 32778: 32778: extern float wcstof (const wchar_t *__restrict __nptr, 32778: wchar_t **__restrict __endptr) throw (); 32778: extern long double wcstold (const wchar_t *__restrict __nptr, 32778: wchar_t **__restrict __endptr) throw (); 32778: # 396 "/usr/include/wchar.h" 3 4 32778: extern _Float32 wcstof32 (const wchar_t *__restrict __nptr, 32778: wchar_t **__restrict __endptr) throw (); 32778: 32778: 32778: 32778: extern _Float64 wcstof64 (const wchar_t *__restrict __nptr, 32778: wchar_t **__restrict __endptr) throw (); 32778: 32778: 32778: 32778: extern _Float128 wcstof128 (const wchar_t *__restrict __nptr, 32778: wchar_t **__restrict __endptr) throw (); 32778: 32778: 32778: 32778: extern _Float32x wcstof32x (const wchar_t *__restrict __nptr, 32778: wchar_t **__restrict __endptr) throw (); 32778: 32778: 32778: 32778: extern _Float64x wcstof64x (const wchar_t *__restrict __nptr, 32778: wchar_t **__restrict __endptr) throw (); 32778: # 428 "/usr/include/wchar.h" 3 4 32778: extern long int wcstol (const wchar_t *__restrict __nptr, 32778: wchar_t **__restrict __endptr, int __base) throw (); 32778: 32778: 32778: 32778: extern unsigned long int wcstoul (const wchar_t *__restrict __nptr, 32778: wchar_t **__restrict __endptr, int __base) 32778: throw (); 32778: 32778: 32778: 32778: 32778: __extension__ 32778: extern long long int wcstoll (const wchar_t *__restrict __nptr, 32778: wchar_t **__restrict __endptr, int __base) 32778: throw (); 32778: 32778: 32778: 32778: __extension__ 32778: extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr, 32778: wchar_t **__restrict __endptr, 32778: int __base) throw (); 32778: 32778: 32778: 32778: 32778: 32778: __extension__ 32778: extern long long int wcstoq (const wchar_t *__restrict __nptr, 32778: wchar_t **__restrict __endptr, int __base) 32778: throw (); 32778: 32778: 32778: 32778: __extension__ 32778: extern unsigned long long int wcstouq (const wchar_t *__restrict __nptr, 32778: wchar_t **__restrict __endptr, 32778: int __base) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern long int wcstol_l (const wchar_t *__restrict __nptr, 32778: wchar_t **__restrict __endptr, int __base, 32778: locale_t __loc) throw (); 32778: 32778: extern unsigned long int wcstoul_l (const wchar_t *__restrict __nptr, 32778: wchar_t **__restrict __endptr, 32778: int __base, locale_t __loc) throw (); 32778: 32778: __extension__ 32778: extern long long int wcstoll_l (const wchar_t *__restrict __nptr, 32778: wchar_t **__restrict __endptr, 32778: int __base, locale_t __loc) throw (); 32778: 32778: __extension__ 32778: extern unsigned long long int wcstoull_l (const wchar_t *__restrict __nptr, 32778: wchar_t **__restrict __endptr, 32778: int __base, locale_t __loc) 32778: throw (); 32778: 32778: extern double wcstod_l (const wchar_t *__restrict __nptr, 32778: wchar_t **__restrict __endptr, locale_t __loc) 32778: throw (); 32778: 32778: extern float wcstof_l (const wchar_t *__restrict __nptr, 32778: wchar_t **__restrict __endptr, locale_t __loc) 32778: throw (); 32778: 32778: extern long double wcstold_l (const wchar_t *__restrict __nptr, 32778: wchar_t **__restrict __endptr, 32778: locale_t __loc) throw (); 32778: # 511 "/usr/include/wchar.h" 3 4 32778: extern _Float32 wcstof32_l (const wchar_t *__restrict __nptr, 32778: wchar_t **__restrict __endptr, 32778: locale_t __loc) throw (); 32778: 32778: 32778: 32778: extern _Float64 wcstof64_l (const wchar_t *__restrict __nptr, 32778: wchar_t **__restrict __endptr, 32778: locale_t __loc) throw (); 32778: 32778: 32778: 32778: extern _Float128 wcstof128_l (const wchar_t *__restrict __nptr, 32778: wchar_t **__restrict __endptr, 32778: locale_t __loc) throw (); 32778: 32778: 32778: 32778: extern _Float32x wcstof32x_l (const wchar_t *__restrict __nptr, 32778: wchar_t **__restrict __endptr, 32778: locale_t __loc) throw (); 32778: 32778: 32778: 32778: extern _Float64x wcstof64x_l (const wchar_t *__restrict __nptr, 32778: wchar_t **__restrict __endptr, 32778: locale_t __loc) throw (); 32778: # 551 "/usr/include/wchar.h" 3 4 32778: extern wchar_t *wcpcpy (wchar_t *__restrict __dest, 32778: const wchar_t *__restrict __src) throw (); 32778: 32778: 32778: 32778: extern wchar_t *wcpncpy (wchar_t *__restrict __dest, 32778: const wchar_t *__restrict __src, size_t __n) 32778: throw (); 32778: # 567 "/usr/include/wchar.h" 3 4 32778: extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern int fwide (__FILE *__fp, int __mode) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int fwprintf (__FILE *__restrict __stream, 32778: const wchar_t *__restrict __format, ...) 32778: ; 32778: 32778: 32778: 32778: 32778: extern int wprintf (const wchar_t *__restrict __format, ...) 32778: ; 32778: 32778: extern int swprintf (wchar_t *__restrict __s, size_t __n, 32778: const wchar_t *__restrict __format, ...) 32778: throw () ; 32778: 32778: 32778: 32778: 32778: 32778: extern int vfwprintf (__FILE *__restrict __s, 32778: const wchar_t *__restrict __format, 32778: __gnuc_va_list __arg) 32778: ; 32778: 32778: 32778: 32778: 32778: extern int vwprintf (const wchar_t *__restrict __format, 32778: __gnuc_va_list __arg) 32778: ; 32778: 32778: 32778: extern int vswprintf (wchar_t *__restrict __s, size_t __n, 32778: const wchar_t *__restrict __format, 32778: __gnuc_va_list __arg) 32778: throw () ; 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int fwscanf (__FILE *__restrict __stream, 32778: const wchar_t *__restrict __format, ...) 32778: ; 32778: 32778: 32778: 32778: 32778: extern int wscanf (const wchar_t *__restrict __format, ...) 32778: ; 32778: 32778: extern int swscanf (const wchar_t *__restrict __s, 32778: const wchar_t *__restrict __format, ...) 32778: throw () ; 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int fwscanf (__FILE *__restrict __stream, const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc99_fwscanf") 32778: 32778: 32778: ; 32778: extern int wscanf (const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc99_wscanf") 32778: 32778: ; 32778: extern int swscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, ...) throw () __asm__ ("" "__isoc99_swscanf") 32778: 32778: 32778: ; 32778: # 671 "/usr/include/wchar.h" 3 4 32778: extern int vfwscanf (__FILE *__restrict __s, 32778: const wchar_t *__restrict __format, 32778: __gnuc_va_list __arg) 32778: ; 32778: 32778: 32778: 32778: 32778: extern int vwscanf (const wchar_t *__restrict __format, 32778: __gnuc_va_list __arg) 32778: ; 32778: 32778: extern int vswscanf (const wchar_t *__restrict __s, 32778: const wchar_t *__restrict __format, 32778: __gnuc_va_list __arg) 32778: throw () ; 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int vfwscanf (__FILE *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vfwscanf") 32778: 32778: 32778: ; 32778: extern int vwscanf (const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vwscanf") 32778: 32778: ; 32778: extern int vswscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) throw () __asm__ ("" "__isoc99_vswscanf") 32778: 32778: 32778: ; 32778: # 726 "/usr/include/wchar.h" 3 4 32778: extern wint_t fgetwc (__FILE *__stream); 32778: extern wint_t getwc (__FILE *__stream); 32778: 32778: 32778: 32778: 32778: 32778: extern wint_t getwchar (void); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern wint_t fputwc (wchar_t __wc, __FILE *__stream); 32778: extern wint_t putwc (wchar_t __wc, __FILE *__stream); 32778: 32778: 32778: 32778: 32778: 32778: extern wint_t putwchar (wchar_t __wc); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n, 32778: __FILE *__restrict __stream); 32778: 32778: 32778: 32778: 32778: 32778: extern int fputws (const wchar_t *__restrict __ws, 32778: __FILE *__restrict __stream); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern wint_t ungetwc (wint_t __wc, __FILE *__stream); 32778: # 781 "/usr/include/wchar.h" 3 4 32778: extern wint_t getwc_unlocked (__FILE *__stream); 32778: extern wint_t getwchar_unlocked (void); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern wint_t fgetwc_unlocked (__FILE *__stream); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream); 32778: # 807 "/usr/include/wchar.h" 3 4 32778: extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream); 32778: extern wint_t putwchar_unlocked (wchar_t __wc); 32778: # 817 "/usr/include/wchar.h" 3 4 32778: extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n, 32778: __FILE *__restrict __stream); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int fputws_unlocked (const wchar_t *__restrict __ws, 32778: __FILE *__restrict __stream); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize, 32778: const wchar_t *__restrict __format, 32778: const struct tm *__restrict __tp) throw (); 32778: 32778: 32778: 32778: 32778: extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize, 32778: const wchar_t *__restrict __format, 32778: const struct tm *__restrict __tp, 32778: locale_t __loc) throw (); 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/wchar2.h" 1 3 4 32778: # 24 "/usr/include/riscv64-linux-gnu/bits/wchar2.h" 3 4 32778: extern wchar_t *__wmemcpy_chk (wchar_t *__restrict __s1, 32778: const wchar_t *__restrict __s2, size_t __n, 32778: size_t __ns1) throw (); 32778: extern wchar_t *__wmemcpy_alias (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) throw () __asm__ ("" "wmemcpy") 32778: 32778: 32778: ; 32778: 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") 32778: 32778: 32778: 32778: __attribute__((__warning__ ("wmemcpy called with length bigger than size of destination " "buffer"))) 32778: ; 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 32778: __attribute__ ((__leaf__)) wmemcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) throw () 32778: 32778: { 32778: if (__builtin_object_size (__s1, 0) != (size_t) -1) 32778: { 32778: if (!__builtin_constant_p (__n)) 32778: return __wmemcpy_chk (__s1, __s2, __n, 32778: __builtin_object_size (__s1, 0) / sizeof (wchar_t)); 32778: 32778: if (__n > __builtin_object_size (__s1, 0) / sizeof (wchar_t)) 32778: return __wmemcpy_chk_warn (__s1, __s2, __n, 32778: __builtin_object_size (__s1, 0) / sizeof (wchar_t)); 32778: } 32778: return __wmemcpy_alias (__s1, __s2, __n); 32778: } 32778: 32778: 32778: extern wchar_t *__wmemmove_chk (wchar_t *__s1, const wchar_t *__s2, 32778: size_t __n, size_t __ns1) throw (); 32778: extern wchar_t *__wmemmove_alias (wchar_t *__s1, const wchar_t *__s2, size_t __n) throw () __asm__ ("" "wmemmove") 32778: 32778: ; 32778: extern wchar_t *__wmemmove_chk_warn (wchar_t *__s1, const wchar_t *__s2, size_t __n, size_t __ns1) throw () __asm__ ("" "__wmemmove_chk") 32778: 32778: 32778: __attribute__((__warning__ ("wmemmove called with length bigger than size of destination " "buffer"))) 32778: ; 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 32778: __attribute__ ((__leaf__)) wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n) throw () 32778: { 32778: if (__builtin_object_size (__s1, 0) != (size_t) -1) 32778: { 32778: if (!__builtin_constant_p (__n)) 32778: return __wmemmove_chk (__s1, __s2, __n, 32778: __builtin_object_size (__s1, 0) / sizeof (wchar_t)); 32778: 32778: if (__n > __builtin_object_size (__s1, 0) / sizeof (wchar_t)) 32778: return __wmemmove_chk_warn (__s1, __s2, __n, 32778: __builtin_object_size (__s1, 0) / sizeof (wchar_t)); 32778: } 32778: return __wmemmove_alias (__s1, __s2, __n); 32778: } 32778: 32778: 32778: 32778: extern wchar_t *__wmempcpy_chk (wchar_t *__restrict __s1, 32778: const wchar_t *__restrict __s2, size_t __n, 32778: size_t __ns1) throw (); 32778: extern wchar_t *__wmempcpy_alias (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) throw () __asm__ ("" "wmempcpy") 32778: 32778: 32778: ; 32778: 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") 32778: 32778: 32778: 32778: __attribute__((__warning__ ("wmempcpy called with length bigger than size of destination " "buffer"))) 32778: ; 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 32778: __attribute__ ((__leaf__)) wmempcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) throw () 32778: 32778: { 32778: if (__builtin_object_size (__s1, 0) != (size_t) -1) 32778: { 32778: if (!__builtin_constant_p (__n)) 32778: return __wmempcpy_chk (__s1, __s2, __n, 32778: __builtin_object_size (__s1, 0) / sizeof (wchar_t)); 32778: 32778: if (__n > __builtin_object_size (__s1, 0) / sizeof (wchar_t)) 32778: return __wmempcpy_chk_warn (__s1, __s2, __n, 32778: __builtin_object_size (__s1, 0) / sizeof (wchar_t)); 32778: } 32778: return __wmempcpy_alias (__s1, __s2, __n); 32778: } 32778: 32778: 32778: 32778: extern wchar_t *__wmemset_chk (wchar_t *__s, wchar_t __c, size_t __n, 32778: size_t __ns) throw (); 32778: extern wchar_t *__wmemset_alias (wchar_t *__s, wchar_t __c, size_t __n) throw () __asm__ ("" "wmemset") 32778: ; 32778: extern wchar_t *__wmemset_chk_warn (wchar_t *__s, wchar_t __c, size_t __n, size_t __ns) throw () __asm__ ("" "__wmemset_chk") 32778: 32778: 32778: __attribute__((__warning__ ("wmemset called with length bigger than size of destination " "buffer"))) 32778: ; 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 32778: __attribute__ ((__leaf__)) wmemset (wchar_t *__s, wchar_t __c, size_t __n) throw () 32778: { 32778: if (__builtin_object_size (__s, 0) != (size_t) -1) 32778: { 32778: if (!__builtin_constant_p (__n)) 32778: return __wmemset_chk (__s, __c, __n, __builtin_object_size (__s, 0) / sizeof (wchar_t)); 32778: 32778: if (__n > __builtin_object_size (__s, 0) / sizeof (wchar_t)) 32778: return __wmemset_chk_warn (__s, __c, __n, 32778: __builtin_object_size (__s, 0) / sizeof (wchar_t)); 32778: } 32778: return __wmemset_alias (__s, __c, __n); 32778: } 32778: 32778: 32778: extern wchar_t *__wcscpy_chk (wchar_t *__restrict __dest, 32778: const wchar_t *__restrict __src, 32778: size_t __n) throw (); 32778: extern wchar_t *__wcscpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) throw () __asm__ ("" "wcscpy") 32778: 32778: ; 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 32778: __attribute__ ((__leaf__)) wcscpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src) throw () 32778: { 32778: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1) 32778: return __wcscpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); 32778: return __wcscpy_alias (__dest, __src); 32778: } 32778: 32778: 32778: extern wchar_t *__wcpcpy_chk (wchar_t *__restrict __dest, 32778: const wchar_t *__restrict __src, 32778: size_t __destlen) throw (); 32778: extern wchar_t *__wcpcpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) throw () __asm__ ("" "wcpcpy") 32778: 32778: ; 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 32778: __attribute__ ((__leaf__)) wcpcpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src) throw () 32778: { 32778: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1) 32778: return __wcpcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); 32778: return __wcpcpy_alias (__dest, __src); 32778: } 32778: 32778: 32778: extern wchar_t *__wcsncpy_chk (wchar_t *__restrict __dest, 32778: const wchar_t *__restrict __src, size_t __n, 32778: size_t __destlen) throw (); 32778: extern wchar_t *__wcsncpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) throw () __asm__ ("" "wcsncpy") 32778: 32778: 32778: ; 32778: 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") 32778: 32778: 32778: 32778: __attribute__((__warning__ ("wcsncpy called with length bigger than size of destination " "buffer"))) 32778: ; 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 32778: __attribute__ ((__leaf__)) wcsncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) throw () 32778: 32778: { 32778: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1) 32778: { 32778: if (!__builtin_constant_p (__n)) 32778: return __wcsncpy_chk (__dest, __src, __n, 32778: __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); 32778: if (__n > __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)) 32778: return __wcsncpy_chk_warn (__dest, __src, __n, 32778: __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); 32778: } 32778: return __wcsncpy_alias (__dest, __src, __n); 32778: } 32778: 32778: 32778: extern wchar_t *__wcpncpy_chk (wchar_t *__restrict __dest, 32778: const wchar_t *__restrict __src, size_t __n, 32778: size_t __destlen) throw (); 32778: extern wchar_t *__wcpncpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) throw () __asm__ ("" "wcpncpy") 32778: 32778: 32778: ; 32778: 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") 32778: 32778: 32778: 32778: __attribute__((__warning__ ("wcpncpy called with length bigger than size of destination " "buffer"))) 32778: ; 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 32778: __attribute__ ((__leaf__)) wcpncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) throw () 32778: 32778: { 32778: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1) 32778: { 32778: if (!__builtin_constant_p (__n)) 32778: return __wcpncpy_chk (__dest, __src, __n, 32778: __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); 32778: if (__n > __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)) 32778: return __wcpncpy_chk_warn (__dest, __src, __n, 32778: __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); 32778: } 32778: return __wcpncpy_alias (__dest, __src, __n); 32778: } 32778: 32778: 32778: extern wchar_t *__wcscat_chk (wchar_t *__restrict __dest, 32778: const wchar_t *__restrict __src, 32778: size_t __destlen) throw (); 32778: extern wchar_t *__wcscat_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) throw () __asm__ ("" "wcscat") 32778: 32778: ; 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 32778: __attribute__ ((__leaf__)) wcscat (wchar_t *__restrict __dest, const wchar_t *__restrict __src) throw () 32778: { 32778: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1) 32778: return __wcscat_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); 32778: return __wcscat_alias (__dest, __src); 32778: } 32778: 32778: 32778: extern wchar_t *__wcsncat_chk (wchar_t *__restrict __dest, 32778: const wchar_t *__restrict __src, 32778: size_t __n, size_t __destlen) throw (); 32778: extern wchar_t *__wcsncat_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) throw () __asm__ ("" "wcsncat") 32778: 32778: 32778: ; 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 32778: __attribute__ ((__leaf__)) wcsncat (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) throw () 32778: 32778: { 32778: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1) 32778: return __wcsncat_chk (__dest, __src, __n, 32778: __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); 32778: return __wcsncat_alias (__dest, __src, __n); 32778: } 32778: 32778: 32778: extern int __swprintf_chk (wchar_t *__restrict __s, size_t __n, 32778: int __flag, size_t __s_len, 32778: const wchar_t *__restrict __format, ...) 32778: throw () ; 32778: 32778: extern int __swprintf_alias (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, ...) throw () __asm__ ("" "swprintf") 32778: 32778: 32778: ; 32778: 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 32778: __attribute__ ((__leaf__)) swprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, ...) throw () 32778: 32778: { 32778: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 || 2 > 1) 32778: return __swprintf_chk (__s, __n, 2 - 1, 32778: __builtin_object_size (__s, 2 > 1) / sizeof (wchar_t), 32778: __fmt, __builtin_va_arg_pack ()); 32778: return __swprintf_alias (__s, __n, __fmt, __builtin_va_arg_pack ()); 32778: } 32778: # 303 "/usr/include/riscv64-linux-gnu/bits/wchar2.h" 3 4 32778: extern int __vswprintf_chk (wchar_t *__restrict __s, size_t __n, 32778: int __flag, size_t __s_len, 32778: const wchar_t *__restrict __format, 32778: __gnuc_va_list __arg) 32778: throw () ; 32778: 32778: extern int __vswprintf_alias (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) throw () __asm__ ("" "vswprintf") 32778: 32778: 32778: ; 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 32778: __attribute__ ((__leaf__)) vswprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) throw () 32778: 32778: { 32778: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 || 2 > 1) 32778: return __vswprintf_chk (__s, __n, 2 - 1, 32778: __builtin_object_size (__s, 2 > 1) / sizeof (wchar_t), __fmt, __ap); 32778: return __vswprintf_alias (__s, __n, __fmt, __ap); 32778: } 32778: 32778: 32778: 32778: 32778: extern int __fwprintf_chk (__FILE *__restrict __stream, int __flag, 32778: const wchar_t *__restrict __format, ...); 32778: extern int __wprintf_chk (int __flag, const wchar_t *__restrict __format, 32778: ...); 32778: extern int __vfwprintf_chk (__FILE *__restrict __stream, int __flag, 32778: const wchar_t *__restrict __format, 32778: __gnuc_va_list __ap); 32778: extern int __vwprintf_chk (int __flag, const wchar_t *__restrict __format, 32778: __gnuc_va_list __ap); 32778: 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 32778: wprintf (const wchar_t *__restrict __fmt, ...) 32778: { 32778: return __wprintf_chk (2 - 1, __fmt, __builtin_va_arg_pack ()); 32778: } 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 32778: fwprintf (__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...) 32778: { 32778: return __fwprintf_chk (__stream, 2 - 1, __fmt, 32778: __builtin_va_arg_pack ()); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 32778: vwprintf (const wchar_t *__restrict __fmt, __gnuc_va_list __ap) 32778: { 32778: return __vwprintf_chk (2 - 1, __fmt, __ap); 32778: } 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 32778: vfwprintf (__FILE *__restrict __stream, 32778: const wchar_t *__restrict __fmt, __gnuc_va_list __ap) 32778: { 32778: return __vfwprintf_chk (__stream, 2 - 1, __fmt, __ap); 32778: } 32778: 32778: 32778: 32778: extern wchar_t *__fgetws_chk (wchar_t *__restrict __s, size_t __size, int __n, 32778: __FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 32778: extern wchar_t *__fgetws_alias (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) __asm__ ("" "fgetws") 32778: 32778: __attribute__ ((__warn_unused_result__)); 32778: extern wchar_t *__fgetws_chk_warn (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __asm__ ("" "__fgetws_chk") 32778: 32778: 32778: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgetws called with bigger size than length " "of destination buffer"))) 32778: ; 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) wchar_t * 32778: fgetws (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) 32778: { 32778: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1) 32778: { 32778: if (!__builtin_constant_p (__n) || __n <= 0) 32778: return __fgetws_chk (__s, __builtin_object_size (__s, 2 > 1) / sizeof (wchar_t), 32778: __n, __stream); 32778: 32778: if ((size_t) __n > __builtin_object_size (__s, 2 > 1) / sizeof (wchar_t)) 32778: return __fgetws_chk_warn (__s, __builtin_object_size (__s, 2 > 1) / sizeof (wchar_t), 32778: __n, __stream); 32778: } 32778: return __fgetws_alias (__s, __n, __stream); 32778: } 32778: 32778: 32778: extern wchar_t *__fgetws_unlocked_chk (wchar_t *__restrict __s, size_t __size, 32778: int __n, __FILE *__restrict __stream) 32778: __attribute__ ((__warn_unused_result__)); 32778: extern wchar_t *__fgetws_unlocked_alias (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) __asm__ ("" "fgetws_unlocked") 32778: 32778: 32778: __attribute__ ((__warn_unused_result__)); 32778: extern wchar_t *__fgetws_unlocked_chk_warn (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __asm__ ("" "__fgetws_unlocked_chk") 32778: 32778: 32778: 32778: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgetws_unlocked called with bigger size than length " "of destination buffer"))) 32778: ; 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) wchar_t * 32778: fgetws_unlocked (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) 32778: { 32778: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1) 32778: { 32778: if (!__builtin_constant_p (__n) || __n <= 0) 32778: return __fgetws_unlocked_chk (__s, __builtin_object_size (__s, 2 > 1) / sizeof (wchar_t), 32778: __n, __stream); 32778: 32778: if ((size_t) __n > __builtin_object_size (__s, 2 > 1) / sizeof (wchar_t)) 32778: return __fgetws_unlocked_chk_warn (__s, __builtin_object_size (__s, 2 > 1) / sizeof (wchar_t), 32778: __n, __stream); 32778: } 32778: return __fgetws_unlocked_alias (__s, __n, __stream); 32778: } 32778: 32778: 32778: 32778: extern size_t __wcrtomb_chk (char *__restrict __s, wchar_t __wchar, 32778: mbstate_t *__restrict __p, 32778: size_t __buflen) throw () __attribute__ ((__warn_unused_result__)); 32778: extern size_t __wcrtomb_alias (char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) throw () __asm__ ("" "wcrtomb") 32778: 32778: __attribute__ ((__warn_unused_result__)); 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t 32778: __attribute__ ((__leaf__)) wcrtomb (char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) throw () 32778: 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 && 16 > __builtin_object_size (__s, 2 > 1)) 32778: return __wcrtomb_chk (__s, __wchar, __ps, __builtin_object_size (__s, 2 > 1)); 32778: return __wcrtomb_alias (__s, __wchar, __ps); 32778: } 32778: 32778: 32778: extern size_t __mbsrtowcs_chk (wchar_t *__restrict __dst, 32778: const char **__restrict __src, 32778: size_t __len, mbstate_t *__restrict __ps, 32778: size_t __dstlen) throw (); 32778: extern size_t __mbsrtowcs_alias (wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) throw () __asm__ ("" "mbsrtowcs") 32778: 32778: 32778: 32778: ; 32778: 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") 32778: 32778: 32778: 32778: 32778: __attribute__((__warning__ ("mbsrtowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 32778: ; 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 32778: __attribute__ ((__leaf__)) mbsrtowcs (wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) throw () 32778: 32778: { 32778: if (__builtin_object_size (__dst, 2 > 1) != (size_t) -1) 32778: { 32778: if (!__builtin_constant_p (__len)) 32778: return __mbsrtowcs_chk (__dst, __src, __len, __ps, 32778: __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t)); 32778: 32778: if (__len > __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t)) 32778: return __mbsrtowcs_chk_warn (__dst, __src, __len, __ps, 32778: __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t)); 32778: } 32778: return __mbsrtowcs_alias (__dst, __src, __len, __ps); 32778: } 32778: 32778: 32778: extern size_t __wcsrtombs_chk (char *__restrict __dst, 32778: const wchar_t **__restrict __src, 32778: size_t __len, mbstate_t *__restrict __ps, 32778: size_t __dstlen) throw (); 32778: extern size_t __wcsrtombs_alias (char *__restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) throw () __asm__ ("" "wcsrtombs") 32778: 32778: 32778: 32778: ; 32778: 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") 32778: 32778: 32778: 32778: 32778: __attribute__((__warning__ ("wcsrtombs called with dst buffer smaller than len"))); 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 32778: __attribute__ ((__leaf__)) wcsrtombs (char *__restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) throw () 32778: 32778: { 32778: if (__builtin_object_size (__dst, 2 > 1) != (size_t) -1) 32778: { 32778: if (!__builtin_constant_p (__len)) 32778: return __wcsrtombs_chk (__dst, __src, __len, __ps, __builtin_object_size (__dst, 2 > 1)); 32778: 32778: if (__len > __builtin_object_size (__dst, 2 > 1)) 32778: return __wcsrtombs_chk_warn (__dst, __src, __len, __ps, __builtin_object_size (__dst, 2 > 1)); 32778: } 32778: return __wcsrtombs_alias (__dst, __src, __len, __ps); 32778: } 32778: 32778: 32778: 32778: extern size_t __mbsnrtowcs_chk (wchar_t *__restrict __dst, 32778: const char **__restrict __src, size_t __nmc, 32778: size_t __len, mbstate_t *__restrict __ps, 32778: size_t __dstlen) throw (); 32778: 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") 32778: 32778: 32778: 32778: ; 32778: 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") 32778: 32778: 32778: 32778: 32778: __attribute__((__warning__ ("mbsnrtowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 32778: ; 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 32778: __attribute__ ((__leaf__)) mbsnrtowcs (wchar_t *__restrict __dst, const char **__restrict __src, size_t __nmc, size_t __len, mbstate_t *__restrict __ps) throw () 32778: 32778: { 32778: if (__builtin_object_size (__dst, 2 > 1) != (size_t) -1) 32778: { 32778: if (!__builtin_constant_p (__len)) 32778: return __mbsnrtowcs_chk (__dst, __src, __nmc, __len, __ps, 32778: __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t)); 32778: 32778: if (__len > __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t)) 32778: return __mbsnrtowcs_chk_warn (__dst, __src, __nmc, __len, __ps, 32778: __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t)); 32778: } 32778: return __mbsnrtowcs_alias (__dst, __src, __nmc, __len, __ps); 32778: } 32778: 32778: 32778: extern size_t __wcsnrtombs_chk (char *__restrict __dst, 32778: const wchar_t **__restrict __src, 32778: size_t __nwc, size_t __len, 32778: mbstate_t *__restrict __ps, size_t __dstlen) 32778: throw (); 32778: 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") 32778: 32778: 32778: 32778: ; 32778: 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") 32778: 32778: 32778: 32778: 32778: 32778: __attribute__((__warning__ ("wcsnrtombs called with dst buffer smaller than len"))); 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 32778: __attribute__ ((__leaf__)) wcsnrtombs (char *__restrict __dst, const wchar_t **__restrict __src, size_t __nwc, size_t __len, mbstate_t *__restrict __ps) throw () 32778: 32778: { 32778: if (__builtin_object_size (__dst, 2 > 1) != (size_t) -1) 32778: { 32778: if (!__builtin_constant_p (__len)) 32778: return __wcsnrtombs_chk (__dst, __src, __nwc, __len, __ps, 32778: __builtin_object_size (__dst, 2 > 1)); 32778: 32778: if (__len > __builtin_object_size (__dst, 2 > 1)) 32778: return __wcsnrtombs_chk_warn (__dst, __src, __nwc, __len, __ps, 32778: __builtin_object_size (__dst, 2 > 1)); 32778: } 32778: return __wcsnrtombs_alias (__dst, __src, __nwc, __len, __ps); 32778: } 32778: # 850 "/usr/include/wchar.h" 2 3 4 32778: 32778: 32778: 32778: 32778: 32778: 32778: } 32778: # 45 "/usr/include/c++/9/cwchar" 2 3 32778: # 62 "/usr/include/c++/9/cwchar" 3 32778: namespace std 32778: { 32778: using ::mbstate_t; 32778: } 32778: # 135 "/usr/include/c++/9/cwchar" 3 32778: extern "C++" 32778: { 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: using ::wint_t; 32778: 32778: using ::btowc; 32778: using ::fgetwc; 32778: using ::fgetws; 32778: using ::fputwc; 32778: using ::fputws; 32778: using ::fwide; 32778: using ::fwprintf; 32778: using ::fwscanf; 32778: using ::getwc; 32778: using ::getwchar; 32778: using ::mbrlen; 32778: using ::mbrtowc; 32778: using ::mbsinit; 32778: using ::mbsrtowcs; 32778: using ::putwc; 32778: using ::putwchar; 32778: 32778: using ::swprintf; 32778: 32778: using ::swscanf; 32778: using ::ungetwc; 32778: using ::vfwprintf; 32778: 32778: using ::vfwscanf; 32778: 32778: 32778: using ::vswprintf; 32778: 32778: 32778: using ::vswscanf; 32778: 32778: using ::vwprintf; 32778: 32778: using ::vwscanf; 32778: 32778: using ::wcrtomb; 32778: using ::wcscat; 32778: using ::wcscmp; 32778: using ::wcscoll; 32778: using ::wcscpy; 32778: using ::wcscspn; 32778: using ::wcsftime; 32778: using ::wcslen; 32778: using ::wcsncat; 32778: using ::wcsncmp; 32778: using ::wcsncpy; 32778: using ::wcsrtombs; 32778: using ::wcsspn; 32778: using ::wcstod; 32778: 32778: using ::wcstof; 32778: 32778: using ::wcstok; 32778: using ::wcstol; 32778: using ::wcstoul; 32778: using ::wcsxfrm; 32778: using ::wctob; 32778: using ::wmemcmp; 32778: using ::wmemcpy; 32778: using ::wmemmove; 32778: using ::wmemset; 32778: using ::wprintf; 32778: using ::wscanf; 32778: using ::wcschr; 32778: using ::wcspbrk; 32778: using ::wcsrchr; 32778: using ::wcsstr; 32778: using ::wmemchr; 32778: # 234 "/usr/include/c++/9/cwchar" 3 32778: 32778: } 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: namespace __gnu_cxx 32778: { 32778: 32778: 32778: 32778: 32778: 32778: using ::wcstold; 32778: # 260 "/usr/include/c++/9/cwchar" 3 32778: using ::wcstoll; 32778: using ::wcstoull; 32778: 32778: } 32778: 32778: namespace std 32778: { 32778: using ::__gnu_cxx::wcstold; 32778: using ::__gnu_cxx::wcstoll; 32778: using ::__gnu_cxx::wcstoull; 32778: } 32778: # 280 "/usr/include/c++/9/cwchar" 3 32778: namespace std 32778: { 32778: 32778: using std::wcstof; 32778: 32778: 32778: using std::vfwscanf; 32778: 32778: 32778: using std::vswscanf; 32778: 32778: 32778: using std::vwscanf; 32778: 32778: 32778: 32778: using std::wcstold; 32778: using std::wcstoll; 32778: using std::wcstoull; 32778: 32778: } 32778: # 41 "/usr/include/c++/9/bits/postypes.h" 2 3 32778: # 68 "/usr/include/c++/9/bits/postypes.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 88 "/usr/include/c++/9/bits/postypes.h" 3 32778: typedef long streamoff; 32778: # 98 "/usr/include/c++/9/bits/postypes.h" 3 32778: typedef ptrdiff_t streamsize; 32778: # 111 "/usr/include/c++/9/bits/postypes.h" 3 32778: template 32778: class fpos 32778: { 32778: private: 32778: streamoff _M_off; 32778: _StateT _M_state; 32778: 32778: public: 32778: 32778: 32778: 32778: 32778: fpos() 32778: : _M_off(0), _M_state() { } 32778: # 133 "/usr/include/c++/9/bits/postypes.h" 3 32778: fpos(streamoff __off) 32778: : _M_off(__off), _M_state() { } 32778: 32778: 32778: fpos(const fpos&) = default; 32778: fpos& operator=(const fpos&) = default; 32778: ~fpos() = default; 32778: 32778: 32778: 32778: operator streamoff() const { return _M_off; } 32778: 32778: 32778: void 32778: state(_StateT __st) 32778: { _M_state = __st; } 32778: 32778: 32778: _StateT 32778: state() const 32778: { return _M_state; } 32778: 32778: 32778: 32778: 32778: 32778: fpos& 32778: operator+=(streamoff __off) 32778: { 32778: _M_off += __off; 32778: return *this; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: fpos& 32778: operator-=(streamoff __off) 32778: { 32778: _M_off -= __off; 32778: return *this; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: fpos 32778: operator+(streamoff __off) const 32778: { 32778: fpos __pos(*this); 32778: __pos += __off; 32778: return __pos; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: fpos 32778: operator-(streamoff __off) const 32778: { 32778: fpos __pos(*this); 32778: __pos -= __off; 32778: return __pos; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: streamoff 32778: operator-(const fpos& __other) const 32778: { return _M_off - __other._M_off; } 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline bool 32778: operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) 32778: { return streamoff(__lhs) == streamoff(__rhs); } 32778: 32778: template 32778: inline bool 32778: operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) 32778: { return streamoff(__lhs) != streamoff(__rhs); } 32778: 32778: 32778: 32778: 32778: 32778: typedef fpos streampos; 32778: 32778: typedef fpos wstreampos; 32778: # 245 "/usr/include/c++/9/bits/postypes.h" 3 32778: typedef fpos u16streampos; 32778: 32778: typedef fpos u32streampos; 32778: 32778: 32778: 32778: } 32778: # 41 "/usr/include/c++/9/bits/char_traits.h" 2 3 32778: # 1 "/usr/include/c++/9/cwchar" 1 3 32778: # 39 "/usr/include/c++/9/cwchar" 3 32778: 32778: # 40 "/usr/include/c++/9/cwchar" 3 32778: # 42 "/usr/include/c++/9/bits/char_traits.h" 2 3 32778: 32778: 32778: 32778: 32778: 32778: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 61 "/usr/include/c++/9/bits/char_traits.h" 3 32778: template 32778: struct _Char_types 32778: { 32778: typedef unsigned long int_type; 32778: typedef std::streampos pos_type; 32778: typedef std::streamoff off_type; 32778: typedef std::mbstate_t state_type; 32778: }; 32778: # 86 "/usr/include/c++/9/bits/char_traits.h" 3 32778: template 32778: struct char_traits 32778: { 32778: typedef _CharT char_type; 32778: typedef typename _Char_types<_CharT>::int_type int_type; 32778: typedef typename _Char_types<_CharT>::pos_type pos_type; 32778: typedef typename _Char_types<_CharT>::off_type off_type; 32778: typedef typename _Char_types<_CharT>::state_type state_type; 32778: 32778: static void 32778: assign(char_type& __c1, const char_type& __c2) 32778: { __c1 = __c2; } 32778: 32778: static constexpr bool 32778: eq(const char_type& __c1, const char_type& __c2) 32778: { return __c1 == __c2; } 32778: 32778: static constexpr bool 32778: lt(const char_type& __c1, const char_type& __c2) 32778: { return __c1 < __c2; } 32778: 32778: static int 32778: compare(const char_type* __s1, const char_type* __s2, std::size_t __n); 32778: 32778: static std::size_t 32778: length(const char_type* __s); 32778: 32778: static const char_type* 32778: find(const char_type* __s, std::size_t __n, const char_type& __a); 32778: 32778: static char_type* 32778: move(char_type* __s1, const char_type* __s2, std::size_t __n); 32778: 32778: static char_type* 32778: copy(char_type* __s1, const char_type* __s2, std::size_t __n); 32778: 32778: static char_type* 32778: assign(char_type* __s, std::size_t __n, char_type __a); 32778: 32778: static constexpr char_type 32778: to_char_type(const int_type& __c) 32778: { return static_cast(__c); } 32778: 32778: static constexpr int_type 32778: to_int_type(const char_type& __c) 32778: { return static_cast(__c); } 32778: 32778: static constexpr bool 32778: eq_int_type(const int_type& __c1, const int_type& __c2) 32778: { return __c1 == __c2; } 32778: 32778: static constexpr int_type 32778: eof() 32778: { return static_cast(-1); } 32778: 32778: static constexpr int_type 32778: not_eof(const int_type& __c) 32778: { return !eq_int_type(__c, eof()) ? __c : to_int_type(char_type()); } 32778: }; 32778: 32778: template 32778: int 32778: char_traits<_CharT>:: 32778: compare(const char_type* __s1, const char_type* __s2, std::size_t __n) 32778: { 32778: for (std::size_t __i = 0; __i < __n; ++__i) 32778: if (lt(__s1[__i], __s2[__i])) 32778: return -1; 32778: else if (lt(__s2[__i], __s1[__i])) 32778: return 1; 32778: return 0; 32778: } 32778: 32778: template 32778: std::size_t 32778: char_traits<_CharT>:: 32778: length(const char_type* __p) 32778: { 32778: std::size_t __i = 0; 32778: while (!eq(__p[__i], char_type())) 32778: ++__i; 32778: return __i; 32778: } 32778: 32778: template 32778: const typename char_traits<_CharT>::char_type* 32778: char_traits<_CharT>:: 32778: find(const char_type* __s, std::size_t __n, const char_type& __a) 32778: { 32778: for (std::size_t __i = 0; __i < __n; ++__i) 32778: if (eq(__s[__i], __a)) 32778: return __s + __i; 32778: return 0; 32778: } 32778: 32778: template 32778: typename char_traits<_CharT>::char_type* 32778: char_traits<_CharT>:: 32778: move(char_type* __s1, const char_type* __s2, std::size_t __n) 32778: { 32778: if (__n == 0) 32778: return __s1; 32778: return static_cast<_CharT*>(__builtin_memmove(__s1, __s2, 32778: __n * sizeof(char_type))); 32778: } 32778: 32778: template 32778: typename char_traits<_CharT>::char_type* 32778: char_traits<_CharT>:: 32778: copy(char_type* __s1, const char_type* __s2, std::size_t __n) 32778: { 32778: 32778: std::copy(__s2, __s2 + __n, __s1); 32778: return __s1; 32778: } 32778: 32778: template 32778: typename char_traits<_CharT>::char_type* 32778: char_traits<_CharT>:: 32778: assign(char_type* __s, std::size_t __n, char_type __a) 32778: { 32778: 32778: std::fill_n(__s, __n, __a); 32778: return __s; 32778: } 32778: 32778: 32778: } 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 283 "/usr/include/c++/9/bits/char_traits.h" 3 32778: template 32778: struct char_traits : public __gnu_cxx::char_traits<_CharT> 32778: { }; 32778: 32778: 32778: 32778: template<> 32778: struct char_traits 32778: { 32778: typedef char char_type; 32778: typedef int int_type; 32778: typedef streampos pos_type; 32778: typedef streamoff off_type; 32778: typedef mbstate_t state_type; 32778: 32778: static void 32778: assign(char_type& __c1, const char_type& __c2) noexcept 32778: { __c1 = __c2; } 32778: 32778: static constexpr bool 32778: eq(const char_type& __c1, const char_type& __c2) noexcept 32778: { return __c1 == __c2; } 32778: 32778: static constexpr bool 32778: lt(const char_type& __c1, const char_type& __c2) noexcept 32778: { 32778: 32778: return (static_cast(__c1) 32778: < static_cast(__c2)); 32778: } 32778: 32778: static int 32778: compare(const char_type* __s1, const char_type* __s2, size_t __n) 32778: { 32778: if (__n == 0) 32778: return 0; 32778: 32778: 32778: 32778: 32778: 32778: 32778: return __builtin_memcmp(__s1, __s2, __n); 32778: } 32778: 32778: static size_t 32778: length(const char_type* __s) 32778: { 32778: 32778: 32778: 32778: 32778: return __builtin_strlen(__s); 32778: } 32778: 32778: static const char_type* 32778: find(const char_type* __s, size_t __n, const char_type& __a) 32778: { 32778: if (__n == 0) 32778: return 0; 32778: 32778: 32778: 32778: 32778: 32778: 32778: return static_cast(__builtin_memchr(__s, __a, __n)); 32778: } 32778: 32778: static char_type* 32778: move(char_type* __s1, const char_type* __s2, size_t __n) 32778: { 32778: if (__n == 0) 32778: return __s1; 32778: return static_cast(__builtin_memmove(__s1, __s2, __n)); 32778: } 32778: 32778: static char_type* 32778: copy(char_type* __s1, const char_type* __s2, size_t __n) 32778: { 32778: if (__n == 0) 32778: return __s1; 32778: return static_cast(__builtin_memcpy(__s1, __s2, __n)); 32778: } 32778: 32778: static char_type* 32778: assign(char_type* __s, size_t __n, char_type __a) 32778: { 32778: if (__n == 0) 32778: return __s; 32778: return static_cast(__builtin_memset(__s, __a, __n)); 32778: } 32778: 32778: static constexpr char_type 32778: to_char_type(const int_type& __c) noexcept 32778: { return static_cast(__c); } 32778: 32778: 32778: 32778: static constexpr int_type 32778: to_int_type(const char_type& __c) noexcept 32778: { return static_cast(static_cast(__c)); } 32778: 32778: static constexpr bool 32778: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 32778: { return __c1 == __c2; } 32778: 32778: static constexpr int_type 32778: eof() noexcept 32778: { return static_cast(-1); } 32778: 32778: static constexpr int_type 32778: not_eof(const int_type& __c) noexcept 32778: { return (__c == eof()) ? 0 : __c; } 32778: }; 32778: 32778: 32778: 32778: 32778: template<> 32778: struct char_traits 32778: { 32778: typedef wchar_t char_type; 32778: typedef wint_t int_type; 32778: typedef streamoff off_type; 32778: typedef wstreampos pos_type; 32778: typedef mbstate_t state_type; 32778: 32778: static void 32778: assign(char_type& __c1, const char_type& __c2) noexcept 32778: { __c1 = __c2; } 32778: 32778: static constexpr bool 32778: eq(const char_type& __c1, const char_type& __c2) noexcept 32778: { return __c1 == __c2; } 32778: 32778: static constexpr bool 32778: lt(const char_type& __c1, const char_type& __c2) noexcept 32778: { return __c1 < __c2; } 32778: 32778: static int 32778: compare(const char_type* __s1, const char_type* __s2, size_t __n) 32778: { 32778: if (__n == 0) 32778: return 0; 32778: 32778: 32778: 32778: 32778: 32778: 32778: return wmemcmp(__s1, __s2, __n); 32778: } 32778: 32778: static size_t 32778: length(const char_type* __s) 32778: { 32778: 32778: 32778: 32778: 32778: return wcslen(__s); 32778: } 32778: 32778: static const char_type* 32778: find(const char_type* __s, size_t __n, const char_type& __a) 32778: { 32778: if (__n == 0) 32778: return 0; 32778: 32778: 32778: 32778: 32778: 32778: 32778: return wmemchr(__s, __a, __n); 32778: } 32778: 32778: static char_type* 32778: move(char_type* __s1, const char_type* __s2, size_t __n) 32778: { 32778: if (__n == 0) 32778: return __s1; 32778: return wmemmove(__s1, __s2, __n); 32778: } 32778: 32778: static char_type* 32778: copy(char_type* __s1, const char_type* __s2, size_t __n) 32778: { 32778: if (__n == 0) 32778: return __s1; 32778: return wmemcpy(__s1, __s2, __n); 32778: } 32778: 32778: static char_type* 32778: assign(char_type* __s, size_t __n, char_type __a) 32778: { 32778: if (__n == 0) 32778: return __s; 32778: return wmemset(__s, __a, __n); 32778: } 32778: 32778: static constexpr char_type 32778: to_char_type(const int_type& __c) noexcept 32778: { return char_type(__c); } 32778: 32778: static constexpr int_type 32778: to_int_type(const char_type& __c) noexcept 32778: { return int_type(__c); } 32778: 32778: static constexpr bool 32778: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 32778: { return __c1 == __c2; } 32778: 32778: static constexpr int_type 32778: eof() noexcept 32778: { return static_cast((0xffffffffu)); } 32778: 32778: static constexpr int_type 32778: not_eof(const int_type& __c) noexcept 32778: { return eq_int_type(__c, eof()) ? 0 : __c; } 32778: }; 32778: # 616 "/usr/include/c++/9/bits/char_traits.h" 3 32778: 32778: } 32778: 32778: 32778: 32778: # 1 "/usr/include/c++/9/cstdint" 1 3 32778: # 32 "/usr/include/c++/9/cstdint" 3 32778: 32778: # 33 "/usr/include/c++/9/cstdint" 3 32778: # 41 "/usr/include/c++/9/cstdint" 3 32778: # 1 "/usr/lib/gcc/riscv64-linux-gnu/9/include/stdint.h" 1 3 4 32778: # 9 "/usr/lib/gcc/riscv64-linux-gnu/9/include/stdint.h" 3 4 32778: # 1 "/usr/include/stdint.h" 1 3 4 32778: # 26 "/usr/include/stdint.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/libc-header-start.h" 1 3 4 32778: # 27 "/usr/include/stdint.h" 2 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/types.h" 1 3 4 32778: # 27 "/usr/include/riscv64-linux-gnu/bits/types.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/wordsize.h" 1 3 4 32778: # 28 "/usr/include/riscv64-linux-gnu/bits/types.h" 2 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/timesize.h" 1 3 4 32778: # 19 "/usr/include/riscv64-linux-gnu/bits/timesize.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/wordsize.h" 1 3 4 32778: # 20 "/usr/include/riscv64-linux-gnu/bits/timesize.h" 2 3 4 32778: # 29 "/usr/include/riscv64-linux-gnu/bits/types.h" 2 3 4 32778: 32778: 32778: typedef unsigned char __u_char; 32778: typedef unsigned short int __u_short; 32778: typedef unsigned int __u_int; 32778: typedef unsigned long int __u_long; 32778: 32778: 32778: typedef signed char __int8_t; 32778: typedef unsigned char __uint8_t; 32778: typedef signed short int __int16_t; 32778: typedef unsigned short int __uint16_t; 32778: typedef signed int __int32_t; 32778: typedef unsigned int __uint32_t; 32778: 32778: typedef signed long int __int64_t; 32778: typedef unsigned long int __uint64_t; 32778: 32778: 32778: 32778: 32778: 32778: 32778: typedef __int8_t __int_least8_t; 32778: typedef __uint8_t __uint_least8_t; 32778: typedef __int16_t __int_least16_t; 32778: typedef __uint16_t __uint_least16_t; 32778: typedef __int32_t __int_least32_t; 32778: typedef __uint32_t __uint_least32_t; 32778: typedef __int64_t __int_least64_t; 32778: typedef __uint64_t __uint_least64_t; 32778: 32778: 32778: 32778: typedef long int __quad_t; 32778: typedef unsigned long int __u_quad_t; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: typedef long int __intmax_t; 32778: typedef unsigned long int __uintmax_t; 32778: # 141 "/usr/include/riscv64-linux-gnu/bits/types.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/typesizes.h" 1 3 4 32778: # 142 "/usr/include/riscv64-linux-gnu/bits/types.h" 2 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/time64.h" 1 3 4 32778: # 143 "/usr/include/riscv64-linux-gnu/bits/types.h" 2 3 4 32778: 32778: 32778: typedef unsigned long int __dev_t; 32778: typedef unsigned int __uid_t; 32778: typedef unsigned int __gid_t; 32778: typedef unsigned long int __ino_t; 32778: typedef unsigned long int __ino64_t; 32778: typedef unsigned int __mode_t; 32778: typedef unsigned int __nlink_t; 32778: typedef long int __off_t; 32778: typedef long int __off64_t; 32778: typedef int __pid_t; 32778: typedef struct { int __val[2]; } __fsid_t; 32778: typedef long int __clock_t; 32778: typedef unsigned long int __rlim_t; 32778: typedef unsigned long int __rlim64_t; 32778: typedef unsigned int __id_t; 32778: typedef long int __time_t; 32778: typedef unsigned int __useconds_t; 32778: typedef long int __suseconds_t; 32778: 32778: typedef int __daddr_t; 32778: typedef int __key_t; 32778: 32778: 32778: typedef int __clockid_t; 32778: 32778: 32778: typedef void * __timer_t; 32778: 32778: 32778: typedef int __blksize_t; 32778: 32778: 32778: 32778: 32778: typedef long int __blkcnt_t; 32778: typedef long int __blkcnt64_t; 32778: 32778: 32778: typedef unsigned long int __fsblkcnt_t; 32778: typedef unsigned long int __fsblkcnt64_t; 32778: 32778: 32778: typedef unsigned long int __fsfilcnt_t; 32778: typedef unsigned long int __fsfilcnt64_t; 32778: 32778: 32778: typedef long int __fsword_t; 32778: 32778: typedef long int __ssize_t; 32778: 32778: 32778: typedef long int __syscall_slong_t; 32778: 32778: typedef unsigned long int __syscall_ulong_t; 32778: 32778: 32778: 32778: typedef __off64_t __loff_t; 32778: typedef char *__caddr_t; 32778: 32778: 32778: typedef long int __intptr_t; 32778: 32778: 32778: typedef unsigned int __socklen_t; 32778: 32778: 32778: 32778: 32778: typedef int __sig_atomic_t; 32778: # 28 "/usr/include/stdint.h" 2 3 4 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/wordsize.h" 1 3 4 32778: # 30 "/usr/include/stdint.h" 2 3 4 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/stdint-intn.h" 1 3 4 32778: # 24 "/usr/include/riscv64-linux-gnu/bits/stdint-intn.h" 3 4 32778: typedef __int8_t int8_t; 32778: typedef __int16_t int16_t; 32778: typedef __int32_t int32_t; 32778: typedef __int64_t int64_t; 32778: # 35 "/usr/include/stdint.h" 2 3 4 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/stdint-uintn.h" 1 3 4 32778: # 24 "/usr/include/riscv64-linux-gnu/bits/stdint-uintn.h" 3 4 32778: typedef __uint8_t uint8_t; 32778: typedef __uint16_t uint16_t; 32778: typedef __uint32_t uint32_t; 32778: typedef __uint64_t uint64_t; 32778: # 38 "/usr/include/stdint.h" 2 3 4 32778: 32778: 32778: 32778: 32778: 32778: typedef __int_least8_t int_least8_t; 32778: typedef __int_least16_t int_least16_t; 32778: typedef __int_least32_t int_least32_t; 32778: typedef __int_least64_t int_least64_t; 32778: 32778: 32778: typedef __uint_least8_t uint_least8_t; 32778: typedef __uint_least16_t uint_least16_t; 32778: typedef __uint_least32_t uint_least32_t; 32778: typedef __uint_least64_t uint_least64_t; 32778: 32778: 32778: 32778: 32778: 32778: typedef signed char int_fast8_t; 32778: 32778: typedef long int int_fast16_t; 32778: typedef long int int_fast32_t; 32778: typedef long int int_fast64_t; 32778: # 71 "/usr/include/stdint.h" 3 4 32778: typedef unsigned char uint_fast8_t; 32778: 32778: typedef unsigned long int uint_fast16_t; 32778: typedef unsigned long int uint_fast32_t; 32778: typedef unsigned long int uint_fast64_t; 32778: # 87 "/usr/include/stdint.h" 3 4 32778: typedef long int intptr_t; 32778: 32778: 32778: typedef unsigned long int uintptr_t; 32778: # 101 "/usr/include/stdint.h" 3 4 32778: typedef __intmax_t intmax_t; 32778: typedef __uintmax_t uintmax_t; 32778: # 10 "/usr/lib/gcc/riscv64-linux-gnu/9/include/stdint.h" 2 3 4 32778: # 42 "/usr/include/c++/9/cstdint" 2 3 32778: 32778: 32778: namespace std 32778: { 32778: 32778: using ::int8_t; 32778: using ::int16_t; 32778: using ::int32_t; 32778: using ::int64_t; 32778: 32778: using ::int_fast8_t; 32778: using ::int_fast16_t; 32778: using ::int_fast32_t; 32778: using ::int_fast64_t; 32778: 32778: using ::int_least8_t; 32778: using ::int_least16_t; 32778: using ::int_least32_t; 32778: using ::int_least64_t; 32778: 32778: using ::intmax_t; 32778: using ::intptr_t; 32778: 32778: using ::uint8_t; 32778: using ::uint16_t; 32778: using ::uint32_t; 32778: using ::uint64_t; 32778: 32778: using ::uint_fast8_t; 32778: using ::uint_fast16_t; 32778: using ::uint_fast32_t; 32778: using ::uint_fast64_t; 32778: 32778: using ::uint_least8_t; 32778: using ::uint_least16_t; 32778: using ::uint_least32_t; 32778: using ::uint_least64_t; 32778: 32778: using ::uintmax_t; 32778: using ::uintptr_t; 32778: 32778: 32778: 32778: 32778: 32778: } 32778: # 622 "/usr/include/c++/9/bits/char_traits.h" 2 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: template<> 32778: struct char_traits 32778: { 32778: typedef char16_t char_type; 32778: 32778: typedef uint_least16_t int_type; 32778: 32778: 32778: 32778: 32778: 32778: typedef streamoff off_type; 32778: typedef u16streampos pos_type; 32778: typedef mbstate_t state_type; 32778: 32778: static void 32778: assign(char_type& __c1, const char_type& __c2) noexcept 32778: { __c1 = __c2; } 32778: 32778: static constexpr bool 32778: eq(const char_type& __c1, const char_type& __c2) noexcept 32778: { return __c1 == __c2; } 32778: 32778: static constexpr bool 32778: lt(const char_type& __c1, const char_type& __c2) noexcept 32778: { return __c1 < __c2; } 32778: 32778: static int 32778: compare(const char_type* __s1, const char_type* __s2, size_t __n) 32778: { 32778: for (size_t __i = 0; __i < __n; ++__i) 32778: if (lt(__s1[__i], __s2[__i])) 32778: return -1; 32778: else if (lt(__s2[__i], __s1[__i])) 32778: return 1; 32778: return 0; 32778: } 32778: 32778: static size_t 32778: length(const char_type* __s) 32778: { 32778: size_t __i = 0; 32778: while (!eq(__s[__i], char_type())) 32778: ++__i; 32778: return __i; 32778: } 32778: 32778: static const char_type* 32778: find(const char_type* __s, size_t __n, const char_type& __a) 32778: { 32778: for (size_t __i = 0; __i < __n; ++__i) 32778: if (eq(__s[__i], __a)) 32778: return __s + __i; 32778: return 0; 32778: } 32778: 32778: static char_type* 32778: move(char_type* __s1, const char_type* __s2, size_t __n) 32778: { 32778: if (__n == 0) 32778: return __s1; 32778: return (static_cast 32778: (__builtin_memmove(__s1, __s2, __n * sizeof(char_type)))); 32778: } 32778: 32778: static char_type* 32778: copy(char_type* __s1, const char_type* __s2, size_t __n) 32778: { 32778: if (__n == 0) 32778: return __s1; 32778: return (static_cast 32778: (__builtin_memcpy(__s1, __s2, __n * sizeof(char_type)))); 32778: } 32778: 32778: static char_type* 32778: assign(char_type* __s, size_t __n, char_type __a) 32778: { 32778: for (size_t __i = 0; __i < __n; ++__i) 32778: assign(__s[__i], __a); 32778: return __s; 32778: } 32778: 32778: static constexpr char_type 32778: to_char_type(const int_type& __c) noexcept 32778: { return char_type(__c); } 32778: 32778: static constexpr int_type 32778: to_int_type(const char_type& __c) noexcept 32778: { return __c == eof() ? int_type(0xfffd) : int_type(__c); } 32778: 32778: static constexpr bool 32778: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 32778: { return __c1 == __c2; } 32778: 32778: static constexpr int_type 32778: eof() noexcept 32778: { return static_cast(-1); } 32778: 32778: static constexpr int_type 32778: not_eof(const int_type& __c) noexcept 32778: { return eq_int_type(__c, eof()) ? 0 : __c; } 32778: }; 32778: 32778: template<> 32778: struct char_traits 32778: { 32778: typedef char32_t char_type; 32778: 32778: typedef uint_least32_t int_type; 32778: 32778: 32778: 32778: 32778: 32778: typedef streamoff off_type; 32778: typedef u32streampos pos_type; 32778: typedef mbstate_t state_type; 32778: 32778: static void 32778: assign(char_type& __c1, const char_type& __c2) noexcept 32778: { __c1 = __c2; } 32778: 32778: static constexpr bool 32778: eq(const char_type& __c1, const char_type& __c2) noexcept 32778: { return __c1 == __c2; } 32778: 32778: static constexpr bool 32778: lt(const char_type& __c1, const char_type& __c2) noexcept 32778: { return __c1 < __c2; } 32778: 32778: static int 32778: compare(const char_type* __s1, const char_type* __s2, size_t __n) 32778: { 32778: for (size_t __i = 0; __i < __n; ++__i) 32778: if (lt(__s1[__i], __s2[__i])) 32778: return -1; 32778: else if (lt(__s2[__i], __s1[__i])) 32778: return 1; 32778: return 0; 32778: } 32778: 32778: static size_t 32778: length(const char_type* __s) 32778: { 32778: size_t __i = 0; 32778: while (!eq(__s[__i], char_type())) 32778: ++__i; 32778: return __i; 32778: } 32778: 32778: static const char_type* 32778: find(const char_type* __s, size_t __n, const char_type& __a) 32778: { 32778: for (size_t __i = 0; __i < __n; ++__i) 32778: if (eq(__s[__i], __a)) 32778: return __s + __i; 32778: return 0; 32778: } 32778: 32778: static char_type* 32778: move(char_type* __s1, const char_type* __s2, size_t __n) 32778: { 32778: if (__n == 0) 32778: return __s1; 32778: return (static_cast 32778: (__builtin_memmove(__s1, __s2, __n * sizeof(char_type)))); 32778: } 32778: 32778: static char_type* 32778: copy(char_type* __s1, const char_type* __s2, size_t __n) 32778: { 32778: if (__n == 0) 32778: return __s1; 32778: return (static_cast 32778: (__builtin_memcpy(__s1, __s2, __n * sizeof(char_type)))); 32778: } 32778: 32778: static char_type* 32778: assign(char_type* __s, size_t __n, char_type __a) 32778: { 32778: for (size_t __i = 0; __i < __n; ++__i) 32778: assign(__s[__i], __a); 32778: return __s; 32778: } 32778: 32778: static constexpr char_type 32778: to_char_type(const int_type& __c) noexcept 32778: { return char_type(__c); } 32778: 32778: static constexpr int_type 32778: to_int_type(const char_type& __c) noexcept 32778: { return int_type(__c); } 32778: 32778: static constexpr bool 32778: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 32778: { return __c1 == __c2; } 32778: 32778: static constexpr int_type 32778: eof() noexcept 32778: { return static_cast(-1); } 32778: 32778: static constexpr int_type 32778: not_eof(const int_type& __c) noexcept 32778: { return eq_int_type(__c, eof()) ? 0 : __c; } 32778: }; 32778: 32778: 32778: } 32778: # 41 "/usr/include/c++/9/string" 2 3 32778: # 1 "/usr/include/c++/9/bits/allocator.h" 1 3 32778: # 46 "/usr/include/c++/9/bits/allocator.h" 3 32778: # 1 "/usr/include/riscv64-linux-gnu/c++/9/bits/c++allocator.h" 1 3 32778: # 33 "/usr/include/riscv64-linux-gnu/c++/9/bits/c++allocator.h" 3 32778: # 1 "/usr/include/c++/9/ext/new_allocator.h" 1 3 32778: # 33 "/usr/include/c++/9/ext/new_allocator.h" 3 32778: # 1 "/usr/include/c++/9/new" 1 3 32778: # 37 "/usr/include/c++/9/new" 3 32778: 32778: # 38 "/usr/include/c++/9/new" 3 32778: 32778: 32778: # 1 "/usr/include/c++/9/exception" 1 3 32778: # 33 "/usr/include/c++/9/exception" 3 32778: 32778: # 34 "/usr/include/c++/9/exception" 3 32778: 32778: #pragma GCC visibility push(default) 32778: 32778: 32778: # 1 "/usr/include/c++/9/bits/exception.h" 1 3 32778: # 34 "/usr/include/c++/9/bits/exception.h" 3 32778: 32778: # 35 "/usr/include/c++/9/bits/exception.h" 3 32778: 32778: #pragma GCC visibility push(default) 32778: 32778: 32778: 32778: extern "C++" { 32778: 32778: namespace std 32778: { 32778: # 60 "/usr/include/c++/9/bits/exception.h" 3 32778: class exception 32778: { 32778: public: 32778: exception() noexcept { } 32778: virtual ~exception() noexcept; 32778: 32778: exception(const exception&) = default; 32778: exception& operator=(const exception&) = default; 32778: exception(exception&&) = default; 32778: exception& operator=(exception&&) = default; 32778: 32778: 32778: 32778: 32778: virtual const char* 32778: what() const noexcept; 32778: }; 32778: 32778: } 32778: 32778: } 32778: 32778: #pragma GCC visibility pop 32778: # 39 "/usr/include/c++/9/exception" 2 3 32778: 32778: extern "C++" { 32778: 32778: namespace std 32778: { 32778: 32778: 32778: class bad_exception : public exception 32778: { 32778: public: 32778: bad_exception() noexcept { } 32778: 32778: 32778: 32778: virtual ~bad_exception() noexcept; 32778: 32778: 32778: virtual const char* 32778: what() const noexcept; 32778: }; 32778: 32778: 32778: typedef void (*terminate_handler) (); 32778: 32778: 32778: typedef void (*unexpected_handler) (); 32778: 32778: 32778: terminate_handler set_terminate(terminate_handler) noexcept; 32778: 32778: 32778: 32778: terminate_handler get_terminate() noexcept; 32778: 32778: 32778: 32778: 32778: void terminate() noexcept __attribute__ ((__noreturn__)); 32778: 32778: 32778: unexpected_handler set_unexpected(unexpected_handler) noexcept; 32778: 32778: 32778: 32778: unexpected_handler get_unexpected() noexcept; 32778: 32778: 32778: 32778: 32778: void unexpected() __attribute__ ((__noreturn__)); 32778: # 101 "/usr/include/c++/9/exception" 3 32778: 32778: bool uncaught_exception() noexcept __attribute__ ((__pure__)); 32778: # 111 "/usr/include/c++/9/exception" 3 32778: } 32778: 32778: namespace __gnu_cxx 32778: { 32778: 32778: # 133 "/usr/include/c++/9/exception" 3 32778: void __verbose_terminate_handler(); 32778: 32778: 32778: } 32778: 32778: } 32778: 32778: #pragma GCC visibility pop 32778: 32778: 32778: # 1 "/usr/include/c++/9/bits/exception_ptr.h" 1 3 32778: # 34 "/usr/include/c++/9/bits/exception_ptr.h" 3 32778: #pragma GCC visibility push(default) 32778: 32778: 32778: 32778: # 1 "/usr/include/c++/9/bits/cxxabi_init_exception.h" 1 3 32778: # 34 "/usr/include/c++/9/bits/cxxabi_init_exception.h" 3 32778: 32778: # 35 "/usr/include/c++/9/bits/cxxabi_init_exception.h" 3 32778: 32778: #pragma GCC visibility push(default) 32778: 32778: # 1 "/usr/lib/gcc/riscv64-linux-gnu/9/include/stddef.h" 1 3 4 32778: # 143 "/usr/lib/gcc/riscv64-linux-gnu/9/include/stddef.h" 3 4 32778: typedef long int ptrdiff_t; 32778: # 415 "/usr/lib/gcc/riscv64-linux-gnu/9/include/stddef.h" 3 4 32778: typedef struct { 32778: long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); 32778: long double __max_align_ld __attribute__((__aligned__(__alignof__(long double)))); 32778: # 426 "/usr/lib/gcc/riscv64-linux-gnu/9/include/stddef.h" 3 4 32778: } max_align_t; 32778: 32778: 32778: 32778: 32778: 32778: 32778: typedef decltype(nullptr) nullptr_t; 32778: # 39 "/usr/include/c++/9/bits/cxxabi_init_exception.h" 2 3 32778: # 50 "/usr/include/c++/9/bits/cxxabi_init_exception.h" 3 32778: namespace std 32778: { 32778: class type_info; 32778: } 32778: 32778: namespace __cxxabiv1 32778: { 32778: struct __cxa_refcounted_exception; 32778: 32778: extern "C" 32778: { 32778: 32778: void* 32778: __cxa_allocate_exception(size_t) noexcept; 32778: 32778: void 32778: __cxa_free_exception(void*) noexcept; 32778: 32778: 32778: __cxa_refcounted_exception* 32778: __cxa_init_primary_exception(void *object, std::type_info *tinfo, 32778: void ( *dest) (void *)) noexcept; 32778: 32778: } 32778: } 32778: 32778: 32778: 32778: #pragma GCC visibility pop 32778: # 39 "/usr/include/c++/9/bits/exception_ptr.h" 2 3 32778: # 1 "/usr/include/c++/9/typeinfo" 1 3 32778: # 32 "/usr/include/c++/9/typeinfo" 3 32778: 32778: # 33 "/usr/include/c++/9/typeinfo" 3 32778: 32778: 32778: 32778: # 1 "/usr/include/c++/9/bits/hash_bytes.h" 1 3 32778: # 33 "/usr/include/c++/9/bits/hash_bytes.h" 3 32778: 32778: # 34 "/usr/include/c++/9/bits/hash_bytes.h" 3 32778: 32778: 32778: 32778: namespace std 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: size_t 32778: _Hash_bytes(const void* __ptr, size_t __len, size_t __seed); 32778: 32778: 32778: 32778: 32778: 32778: size_t 32778: _Fnv_hash_bytes(const void* __ptr, size_t __len, size_t __seed); 32778: 32778: 32778: } 32778: # 37 "/usr/include/c++/9/typeinfo" 2 3 32778: 32778: 32778: #pragma GCC visibility push(default) 32778: 32778: extern "C++" { 32778: 32778: namespace __cxxabiv1 32778: { 32778: class __class_type_info; 32778: } 32778: # 80 "/usr/include/c++/9/typeinfo" 3 32778: namespace std 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: class type_info 32778: { 32778: public: 32778: 32778: 32778: 32778: 32778: virtual ~type_info(); 32778: 32778: 32778: 32778: const char* name() const noexcept 32778: { return __name[0] == '*' ? __name + 1 : __name; } 32778: # 115 "/usr/include/c++/9/typeinfo" 3 32778: bool before(const type_info& __arg) const noexcept 32778: { return (__name[0] == '*' && __arg.__name[0] == '*') 32778: ? __name < __arg.__name 32778: : __builtin_strcmp (__name, __arg.__name) < 0; } 32778: 32778: bool operator==(const type_info& __arg) const noexcept 32778: { 32778: return ((__name == __arg.__name) 32778: || (__name[0] != '*' && 32778: __builtin_strcmp (__name, __arg.__name) == 0)); 32778: } 32778: # 136 "/usr/include/c++/9/typeinfo" 3 32778: bool operator!=(const type_info& __arg) const noexcept 32778: { return !operator==(__arg); } 32778: 32778: 32778: size_t hash_code() const noexcept 32778: { 32778: 32778: return _Hash_bytes(name(), __builtin_strlen(name()), 32778: static_cast(0xc70f6907UL)); 32778: 32778: 32778: 32778: } 32778: 32778: 32778: 32778: virtual bool __is_pointer_p() const; 32778: 32778: 32778: virtual bool __is_function_p() const; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: virtual bool __do_catch(const type_info *__thr_type, void **__thr_obj, 32778: unsigned __outer) const; 32778: 32778: 32778: virtual bool __do_upcast(const __cxxabiv1::__class_type_info *__target, 32778: void **__obj_ptr) const; 32778: 32778: protected: 32778: const char *__name; 32778: 32778: explicit type_info(const char *__n): __name(__n) { } 32778: 32778: private: 32778: 32778: type_info& operator=(const type_info&); 32778: type_info(const type_info&); 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: class bad_cast : public exception 32778: { 32778: public: 32778: bad_cast() noexcept { } 32778: 32778: 32778: 32778: virtual ~bad_cast() noexcept; 32778: 32778: 32778: virtual const char* what() const noexcept; 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: class bad_typeid : public exception 32778: { 32778: public: 32778: bad_typeid () noexcept { } 32778: 32778: 32778: 32778: virtual ~bad_typeid() noexcept; 32778: 32778: 32778: virtual const char* what() const noexcept; 32778: }; 32778: } 32778: 32778: } 32778: 32778: #pragma GCC visibility pop 32778: # 40 "/usr/include/c++/9/bits/exception_ptr.h" 2 3 32778: # 1 "/usr/include/c++/9/new" 1 3 32778: # 41 "/usr/include/c++/9/bits/exception_ptr.h" 2 3 32778: 32778: extern "C++" { 32778: 32778: namespace std 32778: { 32778: class type_info; 32778: 32778: 32778: 32778: 32778: 32778: namespace __exception_ptr 32778: { 32778: class exception_ptr; 32778: } 32778: 32778: using __exception_ptr::exception_ptr; 32778: 32778: 32778: 32778: 32778: 32778: exception_ptr current_exception() noexcept; 32778: 32778: template 32778: exception_ptr make_exception_ptr(_Ex) noexcept; 32778: 32778: 32778: void rethrow_exception(exception_ptr) __attribute__ ((__noreturn__)); 32778: 32778: namespace __exception_ptr 32778: { 32778: using std::rethrow_exception; 32778: 32778: 32778: 32778: 32778: 32778: class exception_ptr 32778: { 32778: void* _M_exception_object; 32778: 32778: explicit exception_ptr(void* __e) noexcept; 32778: 32778: void _M_addref() noexcept; 32778: void _M_release() noexcept; 32778: 32778: void *_M_get() const noexcept __attribute__ ((__pure__)); 32778: 32778: friend exception_ptr std::current_exception() noexcept; 32778: friend void std::rethrow_exception(exception_ptr); 32778: template 32778: friend exception_ptr std::make_exception_ptr(_Ex) noexcept; 32778: 32778: public: 32778: exception_ptr() noexcept; 32778: 32778: exception_ptr(const exception_ptr&) noexcept; 32778: 32778: 32778: exception_ptr(nullptr_t) noexcept 32778: : _M_exception_object(0) 32778: { } 32778: 32778: exception_ptr(exception_ptr&& __o) noexcept 32778: : _M_exception_object(__o._M_exception_object) 32778: { __o._M_exception_object = 0; } 32778: # 117 "/usr/include/c++/9/bits/exception_ptr.h" 3 32778: exception_ptr& 32778: operator=(const exception_ptr&) noexcept; 32778: 32778: 32778: exception_ptr& 32778: operator=(exception_ptr&& __o) noexcept 32778: { 32778: exception_ptr(static_cast(__o)).swap(*this); 32778: return *this; 32778: } 32778: 32778: 32778: ~exception_ptr() noexcept; 32778: 32778: void 32778: swap(exception_ptr&) noexcept; 32778: # 144 "/usr/include/c++/9/bits/exception_ptr.h" 3 32778: explicit operator bool() const 32778: { return _M_exception_object; } 32778: 32778: 32778: friend bool 32778: operator==(const exception_ptr&, const exception_ptr&) 32778: noexcept __attribute__ ((__pure__)); 32778: 32778: const class std::type_info* 32778: __cxa_exception_type() const noexcept 32778: __attribute__ ((__pure__)); 32778: }; 32778: 32778: bool 32778: operator==(const exception_ptr&, const exception_ptr&) 32778: noexcept __attribute__ ((__pure__)); 32778: 32778: bool 32778: operator!=(const exception_ptr&, const exception_ptr&) 32778: noexcept __attribute__ ((__pure__)); 32778: 32778: inline void 32778: swap(exception_ptr& __lhs, exception_ptr& __rhs) 32778: { __lhs.swap(__rhs); } 32778: 32778: template 32778: inline void 32778: __dest_thunk(void* __x) 32778: { static_cast<_Ex*>(__x)->~_Ex(); } 32778: 32778: } 32778: 32778: 32778: template 32778: exception_ptr 32778: make_exception_ptr(_Ex __ex) noexcept 32778: { 32778: 32778: void* __e = __cxxabiv1::__cxa_allocate_exception(sizeof(_Ex)); 32778: (void) __cxxabiv1::__cxa_init_primary_exception( 32778: __e, const_cast(&typeid(__ex)), 32778: __exception_ptr::__dest_thunk<_Ex>); 32778: try 32778: { 32778: ::new (__e) _Ex(__ex); 32778: return exception_ptr(__e); 32778: } 32778: catch(...) 32778: { 32778: __cxxabiv1::__cxa_free_exception(__e); 32778: return current_exception(); 32778: } 32778: # 208 "/usr/include/c++/9/bits/exception_ptr.h" 3 32778: } 32778: 32778: 32778: } 32778: 32778: } 32778: 32778: #pragma GCC visibility pop 32778: # 144 "/usr/include/c++/9/exception" 2 3 32778: # 1 "/usr/include/c++/9/bits/nested_exception.h" 1 3 32778: # 33 "/usr/include/c++/9/bits/nested_exception.h" 3 32778: #pragma GCC visibility push(default) 32778: # 42 "/usr/include/c++/9/bits/nested_exception.h" 3 32778: extern "C++" { 32778: 32778: namespace std 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: class nested_exception 32778: { 32778: exception_ptr _M_ptr; 32778: 32778: public: 32778: nested_exception() noexcept : _M_ptr(current_exception()) { } 32778: 32778: nested_exception(const nested_exception&) noexcept = default; 32778: 32778: nested_exception& operator=(const nested_exception&) noexcept = default; 32778: 32778: virtual ~nested_exception() noexcept; 32778: 32778: [[noreturn]] 32778: void 32778: rethrow_nested() const 32778: { 32778: if (_M_ptr) 32778: rethrow_exception(_M_ptr); 32778: std::terminate(); 32778: } 32778: 32778: exception_ptr 32778: nested_ptr() const noexcept 32778: { return _M_ptr; } 32778: }; 32778: 32778: template 32778: struct _Nested_exception : public _Except, public nested_exception 32778: { 32778: explicit _Nested_exception(const _Except& __ex) 32778: : _Except(__ex) 32778: { } 32778: 32778: explicit _Nested_exception(_Except&& __ex) 32778: : _Except(static_cast<_Except&&>(__ex)) 32778: { } 32778: }; 32778: 32778: 32778: 32778: 32778: template 32778: [[noreturn]] 32778: inline void 32778: __throw_with_nested_impl(_Tp&& __t, true_type) 32778: { 32778: using _Up = typename remove_reference<_Tp>::type; 32778: throw _Nested_exception<_Up>{std::forward<_Tp>(__t)}; 32778: } 32778: 32778: template 32778: [[noreturn]] 32778: inline void 32778: __throw_with_nested_impl(_Tp&& __t, false_type) 32778: { throw std::forward<_Tp>(__t); } 32778: 32778: 32778: 32778: template 32778: [[noreturn]] 32778: inline void 32778: throw_with_nested(_Tp&& __t) 32778: { 32778: using _Up = typename decay<_Tp>::type; 32778: using _CopyConstructible 32778: = __and_, is_move_constructible<_Up>>; 32778: static_assert(_CopyConstructible::value, 32778: "throw_with_nested argument must be CopyConstructible"); 32778: using __nest = __and_, __bool_constant, 32778: __not_>>; 32778: std::__throw_with_nested_impl(std::forward<_Tp>(__t), __nest{}); 32778: } 32778: 32778: 32778: template 32778: using __rethrow_if_nested_cond = typename enable_if< 32778: __and_, 32778: __or_<__not_>, 32778: is_convertible<_Tp*, nested_exception*>>>::value 32778: >::type; 32778: 32778: 32778: template 32778: inline __rethrow_if_nested_cond<_Ex> 32778: __rethrow_if_nested_impl(const _Ex* __ptr) 32778: { 32778: if (auto __ne_ptr = dynamic_cast(__ptr)) 32778: __ne_ptr->rethrow_nested(); 32778: } 32778: 32778: 32778: inline void 32778: __rethrow_if_nested_impl(const void*) 32778: { } 32778: 32778: 32778: template 32778: inline void 32778: rethrow_if_nested(const _Ex& __ex) 32778: { std::__rethrow_if_nested_impl(std::__addressof(__ex)); } 32778: 32778: 32778: } 32778: 32778: } 32778: 32778: 32778: 32778: #pragma GCC visibility pop 32778: # 145 "/usr/include/c++/9/exception" 2 3 32778: # 41 "/usr/include/c++/9/new" 2 3 32778: 32778: #pragma GCC visibility push(default) 32778: 32778: extern "C++" { 32778: 32778: namespace std 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: class bad_alloc : public exception 32778: { 32778: public: 32778: bad_alloc() throw() { } 32778: 32778: 32778: bad_alloc(const bad_alloc&) = default; 32778: bad_alloc& operator=(const bad_alloc&) = default; 32778: 32778: 32778: 32778: 32778: virtual ~bad_alloc() throw(); 32778: 32778: 32778: virtual const char* what() const throw(); 32778: }; 32778: 32778: 32778: class bad_array_new_length : public bad_alloc 32778: { 32778: public: 32778: bad_array_new_length() throw() { } 32778: 32778: 32778: 32778: virtual ~bad_array_new_length() throw(); 32778: 32778: 32778: virtual const char* what() const throw(); 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: struct nothrow_t 32778: { 32778: 32778: explicit nothrow_t() = default; 32778: 32778: }; 32778: 32778: extern const nothrow_t nothrow; 32778: 32778: 32778: 32778: typedef void (*new_handler)(); 32778: 32778: 32778: 32778: new_handler set_new_handler(new_handler) throw(); 32778: 32778: 32778: 32778: new_handler get_new_handler() noexcept; 32778: 32778: } 32778: # 125 "/usr/include/c++/9/new" 3 32778: void* operator new(std::size_t) 32778: __attribute__((__externally_visible__)); 32778: void* operator new[](std::size_t) 32778: __attribute__((__externally_visible__)); 32778: void operator delete(void*) noexcept 32778: __attribute__((__externally_visible__)); 32778: void operator delete[](void*) noexcept 32778: __attribute__((__externally_visible__)); 32778: 32778: 32778: 32778: 32778: 32778: 32778: void* operator new(std::size_t, const std::nothrow_t&) noexcept 32778: __attribute__((__externally_visible__, __malloc__)); 32778: void* operator new[](std::size_t, const std::nothrow_t&) noexcept 32778: __attribute__((__externally_visible__, __malloc__)); 32778: void operator delete(void*, const std::nothrow_t&) noexcept 32778: __attribute__((__externally_visible__)); 32778: void operator delete[](void*, const std::nothrow_t&) noexcept 32778: __attribute__((__externally_visible__)); 32778: # 173 "/usr/include/c++/9/new" 3 32778: inline void* operator new(std::size_t, void* __p) noexcept 32778: { return __p; } 32778: inline void* operator new[](std::size_t, void* __p) noexcept 32778: { return __p; } 32778: 32778: 32778: inline void operator delete (void*, void*) noexcept { } 32778: inline void operator delete[](void*, void*) noexcept { } 32778: 32778: } 32778: # 226 "/usr/include/c++/9/new" 3 32778: #pragma GCC visibility pop 32778: # 34 "/usr/include/c++/9/ext/new_allocator.h" 2 3 32778: 32778: 32778: 32778: 32778: 32778: 32778: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: using std::size_t; 32778: using std::ptrdiff_t; 32778: # 57 "/usr/include/c++/9/ext/new_allocator.h" 3 32778: template 32778: class new_allocator 32778: { 32778: public: 32778: typedef size_t size_type; 32778: typedef ptrdiff_t difference_type; 32778: typedef _Tp* pointer; 32778: typedef const _Tp* const_pointer; 32778: typedef _Tp& reference; 32778: typedef const _Tp& const_reference; 32778: typedef _Tp value_type; 32778: 32778: template 32778: struct rebind 32778: { typedef new_allocator<_Tp1> other; }; 32778: 32778: 32778: 32778: 32778: typedef std::true_type propagate_on_container_move_assignment; 32778: 32778: 32778: 32778: new_allocator() noexcept { } 32778: 32778: 32778: new_allocator(const new_allocator&) noexcept { } 32778: 32778: template 32778: 32778: new_allocator(const new_allocator<_Tp1>&) noexcept { } 32778: 32778: ~new_allocator() noexcept { } 32778: 32778: pointer 32778: address(reference __x) const noexcept 32778: { return std::__addressof(__x); } 32778: 32778: const_pointer 32778: address(const_reference __x) const noexcept 32778: { return std::__addressof(__x); } 32778: 32778: 32778: 32778: pointer 32778: allocate(size_type __n, const void* = static_cast(0)) 32778: { 32778: if (__n > this->max_size()) 32778: std::__throw_bad_alloc(); 32778: # 114 "/usr/include/c++/9/ext/new_allocator.h" 3 32778: return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp))); 32778: } 32778: 32778: 32778: void 32778: deallocate(pointer __p, size_type) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: ::operator delete(__p); 32778: } 32778: 32778: size_type 32778: max_size() const noexcept 32778: { 32778: 32778: return size_t(0x7fffffffffffffffL) / sizeof(_Tp); 32778: 32778: 32778: 32778: } 32778: 32778: 32778: template 32778: void 32778: construct(_Up* __p, _Args&&... __args) 32778: noexcept(noexcept(::new((void *)__p) 32778: _Up(std::forward<_Args>(__args)...))) 32778: { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } 32778: 32778: template 32778: void 32778: destroy(_Up* __p) 32778: noexcept(noexcept( __p->~_Up())) 32778: { __p->~_Up(); } 32778: # 165 "/usr/include/c++/9/ext/new_allocator.h" 3 32778: template 32778: friend bool 32778: operator==(const new_allocator&, const new_allocator<_Up>&) 32778: noexcept 32778: { return true; } 32778: 32778: template 32778: friend bool 32778: operator!=(const new_allocator&, const new_allocator<_Up>&) 32778: noexcept 32778: { return false; } 32778: }; 32778: 32778: 32778: } 32778: # 34 "/usr/include/riscv64-linux-gnu/c++/9/bits/c++allocator.h" 2 3 32778: 32778: 32778: namespace std 32778: { 32778: # 47 "/usr/include/riscv64-linux-gnu/c++/9/bits/c++allocator.h" 3 32778: template 32778: using __allocator_base = __gnu_cxx::new_allocator<_Tp>; 32778: } 32778: # 47 "/usr/include/c++/9/bits/allocator.h" 2 3 32778: # 57 "/usr/include/c++/9/bits/allocator.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template<> 32778: class allocator 32778: { 32778: public: 32778: typedef size_t size_type; 32778: typedef ptrdiff_t difference_type; 32778: typedef void* pointer; 32778: typedef const void* const_pointer; 32778: typedef void value_type; 32778: 32778: template 32778: struct rebind 32778: { typedef allocator<_Tp1> other; }; 32778: 32778: 32778: 32778: 32778: typedef true_type propagate_on_container_move_assignment; 32778: 32778: typedef true_type is_always_equal; 32778: 32778: template 32778: void 32778: construct(_Up* __p, _Args&&... __args) 32778: noexcept(noexcept(::new((void *)__p) 32778: _Up(std::forward<_Args>(__args)...))) 32778: { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } 32778: 32778: template 32778: void 32778: destroy(_Up* __p) 32778: noexcept(noexcept(__p->~_Up())) 32778: { __p->~_Up(); } 32778: 32778: }; 32778: # 111 "/usr/include/c++/9/bits/allocator.h" 3 32778: template 32778: class allocator : public __allocator_base<_Tp> 32778: { 32778: public: 32778: typedef size_t size_type; 32778: typedef ptrdiff_t difference_type; 32778: typedef _Tp* pointer; 32778: typedef const _Tp* const_pointer; 32778: typedef _Tp& reference; 32778: typedef const _Tp& const_reference; 32778: typedef _Tp value_type; 32778: 32778: template 32778: struct rebind 32778: { typedef allocator<_Tp1> other; }; 32778: 32778: 32778: 32778: 32778: typedef true_type propagate_on_container_move_assignment; 32778: 32778: typedef true_type is_always_equal; 32778: 32778: 32778: 32778: 32778: 32778: allocator() noexcept { } 32778: 32778: 32778: allocator(const allocator& __a) noexcept 32778: : __allocator_base<_Tp>(__a) { } 32778: 32778: 32778: 32778: allocator& operator=(const allocator&) = default; 32778: 32778: 32778: template 32778: 32778: allocator(const allocator<_Tp1>&) noexcept { } 32778: 32778: ~allocator() noexcept { } 32778: 32778: friend bool 32778: operator==(const allocator&, const allocator&) noexcept 32778: { return true; } 32778: 32778: friend bool 32778: operator!=(const allocator&, const allocator&) noexcept 32778: { return false; } 32778: 32778: 32778: }; 32778: 32778: template 32778: inline bool 32778: operator==(const allocator<_T1>&, const allocator<_T2>&) 32778: noexcept 32778: { return true; } 32778: 32778: template 32778: inline bool 32778: operator!=(const allocator<_T1>&, const allocator<_T2>&) 32778: noexcept 32778: { return false; } 32778: 32778: 32778: 32778: template 32778: class allocator 32778: { 32778: public: 32778: typedef _Tp value_type; 32778: template allocator(const allocator<_Up>&) { } 32778: }; 32778: 32778: template 32778: class allocator 32778: { 32778: public: 32778: typedef _Tp value_type; 32778: template allocator(const allocator<_Up>&) { } 32778: }; 32778: 32778: template 32778: class allocator 32778: { 32778: public: 32778: typedef _Tp value_type; 32778: template allocator(const allocator<_Up>&) { } 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern template class allocator; 32778: extern template class allocator; 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct __alloc_swap 32778: { static void _S_do_it(_Alloc&, _Alloc&) noexcept { } }; 32778: 32778: template 32778: struct __alloc_swap<_Alloc, false> 32778: { 32778: static void 32778: _S_do_it(_Alloc& __one, _Alloc& __two) noexcept 32778: { 32778: 32778: if (__one != __two) 32778: swap(__one, __two); 32778: } 32778: }; 32778: 32778: 32778: template 32778: struct __alloc_neq 32778: { 32778: static bool 32778: _S_do_it(const _Alloc&, const _Alloc&) 32778: { return false; } 32778: }; 32778: 32778: template 32778: struct __alloc_neq<_Alloc, false> 32778: { 32778: static bool 32778: _S_do_it(const _Alloc& __one, const _Alloc& __two) 32778: { return __one != __two; } 32778: }; 32778: 32778: 32778: template, 32778: is_nothrow_move_constructible>::value> 32778: struct __shrink_to_fit_aux 32778: { static bool _S_do_it(_Tp&) noexcept { return false; } }; 32778: 32778: template 32778: struct __shrink_to_fit_aux<_Tp, true> 32778: { 32778: static bool 32778: _S_do_it(_Tp& __c) noexcept 32778: { 32778: 32778: try 32778: { 32778: _Tp(__make_move_if_noexcept_iterator(__c.begin()), 32778: __make_move_if_noexcept_iterator(__c.end()), 32778: __c.get_allocator()).swap(__c); 32778: return true; 32778: } 32778: catch(...) 32778: { return false; } 32778: 32778: 32778: 32778: } 32778: }; 32778: 32778: 32778: 32778: } 32778: # 42 "/usr/include/c++/9/string" 2 3 32778: 32778: # 1 "/usr/include/c++/9/bits/localefwd.h" 1 3 32778: # 37 "/usr/include/c++/9/bits/localefwd.h" 3 32778: 32778: # 38 "/usr/include/c++/9/bits/localefwd.h" 3 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/c++/9/bits/c++locale.h" 1 3 32778: # 39 "/usr/include/riscv64-linux-gnu/c++/9/bits/c++locale.h" 3 32778: 32778: # 40 "/usr/include/riscv64-linux-gnu/c++/9/bits/c++locale.h" 3 32778: 32778: # 1 "/usr/include/c++/9/clocale" 1 3 32778: # 39 "/usr/include/c++/9/clocale" 3 32778: 32778: # 40 "/usr/include/c++/9/clocale" 3 32778: 32778: 32778: # 1 "/usr/include/locale.h" 1 3 4 32778: # 28 "/usr/include/locale.h" 3 4 32778: # 1 "/usr/lib/gcc/riscv64-linux-gnu/9/include/stddef.h" 1 3 4 32778: # 29 "/usr/include/locale.h" 2 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/locale.h" 1 3 4 32778: # 30 "/usr/include/locale.h" 2 3 4 32778: 32778: extern "C" { 32778: # 51 "/usr/include/locale.h" 3 4 32778: struct lconv 32778: { 32778: 32778: 32778: char *decimal_point; 32778: char *thousands_sep; 32778: 32778: 32778: 32778: 32778: 32778: char *grouping; 32778: 32778: 32778: 32778: 32778: 32778: char *int_curr_symbol; 32778: char *currency_symbol; 32778: char *mon_decimal_point; 32778: char *mon_thousands_sep; 32778: char *mon_grouping; 32778: char *positive_sign; 32778: char *negative_sign; 32778: char int_frac_digits; 32778: char frac_digits; 32778: 32778: char p_cs_precedes; 32778: 32778: char p_sep_by_space; 32778: 32778: char n_cs_precedes; 32778: 32778: char n_sep_by_space; 32778: 32778: 32778: 32778: 32778: 32778: 32778: char p_sign_posn; 32778: char n_sign_posn; 32778: 32778: 32778: char int_p_cs_precedes; 32778: 32778: char int_p_sep_by_space; 32778: 32778: char int_n_cs_precedes; 32778: 32778: char int_n_sep_by_space; 32778: 32778: 32778: 32778: 32778: 32778: 32778: char int_p_sign_posn; 32778: char int_n_sign_posn; 32778: # 118 "/usr/include/locale.h" 3 4 32778: }; 32778: 32778: 32778: 32778: extern char *setlocale (int __category, const char *__locale) throw (); 32778: 32778: 32778: extern struct lconv *localeconv (void) throw (); 32778: # 141 "/usr/include/locale.h" 3 4 32778: extern locale_t newlocale (int __category_mask, const char *__locale, 32778: locale_t __base) throw (); 32778: # 176 "/usr/include/locale.h" 3 4 32778: extern locale_t duplocale (locale_t __dataset) throw (); 32778: 32778: 32778: 32778: extern void freelocale (locale_t __dataset) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern locale_t uselocale (locale_t __dataset) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: } 32778: # 43 "/usr/include/c++/9/clocale" 2 3 32778: # 51 "/usr/include/c++/9/clocale" 3 32778: namespace std 32778: { 32778: using ::lconv; 32778: using ::setlocale; 32778: using ::localeconv; 32778: } 32778: # 42 "/usr/include/riscv64-linux-gnu/c++/9/bits/c++locale.h" 2 3 32778: 32778: 32778: 32778: 32778: 32778: 32778: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: extern "C" __typeof(uselocale) __uselocale; 32778: 32778: 32778: } 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: typedef __locale_t __c_locale; 32778: 32778: 32778: 32778: 32778: 32778: inline int 32778: __convert_from_v(const __c_locale& __cloc __attribute__ ((__unused__)), 32778: char* __out, 32778: const int __size __attribute__ ((__unused__)), 32778: const char* __fmt, ...) 32778: { 32778: 32778: __c_locale __old = __gnu_cxx::__uselocale(__cloc); 32778: # 88 "/usr/include/riscv64-linux-gnu/c++/9/bits/c++locale.h" 3 32778: __builtin_va_list __args; 32778: __builtin_va_start(__args, __fmt); 32778: 32778: 32778: const int __ret = __builtin_vsnprintf(__out, __size, __fmt, __args); 32778: 32778: 32778: 32778: 32778: __builtin_va_end(__args); 32778: 32778: 32778: __gnu_cxx::__uselocale(__old); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: return __ret; 32778: } 32778: 32778: 32778: } 32778: # 41 "/usr/include/c++/9/bits/localefwd.h" 2 3 32778: # 1 "/usr/include/c++/9/iosfwd" 1 3 32778: # 36 "/usr/include/c++/9/iosfwd" 3 32778: 32778: # 37 "/usr/include/c++/9/iosfwd" 3 32778: 32778: 32778: 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 74 "/usr/include/c++/9/iosfwd" 3 32778: class ios_base; 32778: 32778: template > 32778: class basic_ios; 32778: 32778: template > 32778: class basic_streambuf; 32778: 32778: template > 32778: class basic_istream; 32778: 32778: template > 32778: class basic_ostream; 32778: 32778: template > 32778: class basic_iostream; 32778: 32778: 32778: namespace __cxx11 { 32778: 32778: template, 32778: typename _Alloc = allocator<_CharT> > 32778: class basic_stringbuf; 32778: 32778: template, 32778: typename _Alloc = allocator<_CharT> > 32778: class basic_istringstream; 32778: 32778: template, 32778: typename _Alloc = allocator<_CharT> > 32778: class basic_ostringstream; 32778: 32778: template, 32778: typename _Alloc = allocator<_CharT> > 32778: class basic_stringstream; 32778: 32778: } 32778: 32778: template > 32778: class basic_filebuf; 32778: 32778: template > 32778: class basic_ifstream; 32778: 32778: template > 32778: class basic_ofstream; 32778: 32778: template > 32778: class basic_fstream; 32778: 32778: template > 32778: class istreambuf_iterator; 32778: 32778: template > 32778: class ostreambuf_iterator; 32778: 32778: 32778: 32778: typedef basic_ios ios; 32778: 32778: 32778: typedef basic_streambuf streambuf; 32778: 32778: 32778: typedef basic_istream istream; 32778: 32778: 32778: typedef basic_ostream ostream; 32778: 32778: 32778: typedef basic_iostream iostream; 32778: 32778: 32778: typedef basic_stringbuf stringbuf; 32778: 32778: 32778: typedef basic_istringstream istringstream; 32778: 32778: 32778: typedef basic_ostringstream ostringstream; 32778: 32778: 32778: typedef basic_stringstream stringstream; 32778: 32778: 32778: typedef basic_filebuf filebuf; 32778: 32778: 32778: typedef basic_ifstream ifstream; 32778: 32778: 32778: typedef basic_ofstream ofstream; 32778: 32778: 32778: typedef basic_fstream fstream; 32778: 32778: 32778: 32778: typedef basic_ios wios; 32778: 32778: 32778: typedef basic_streambuf wstreambuf; 32778: 32778: 32778: typedef basic_istream wistream; 32778: 32778: 32778: typedef basic_ostream wostream; 32778: 32778: 32778: typedef basic_iostream wiostream; 32778: 32778: 32778: typedef basic_stringbuf wstringbuf; 32778: 32778: 32778: typedef basic_istringstream wistringstream; 32778: 32778: 32778: typedef basic_ostringstream wostringstream; 32778: 32778: 32778: typedef basic_stringstream wstringstream; 32778: 32778: 32778: typedef basic_filebuf wfilebuf; 32778: 32778: 32778: typedef basic_ifstream wifstream; 32778: 32778: 32778: typedef basic_ofstream wofstream; 32778: 32778: 32778: typedef basic_fstream wfstream; 32778: 32778: 32778: 32778: 32778: } 32778: # 42 "/usr/include/c++/9/bits/localefwd.h" 2 3 32778: # 1 "/usr/include/c++/9/cctype" 1 3 32778: # 39 "/usr/include/c++/9/cctype" 3 32778: 32778: # 40 "/usr/include/c++/9/cctype" 3 32778: 32778: 32778: # 1 "/usr/include/ctype.h" 1 3 4 32778: # 28 "/usr/include/ctype.h" 3 4 32778: extern "C" { 32778: # 39 "/usr/include/ctype.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/endian.h" 1 3 4 32778: # 35 "/usr/include/riscv64-linux-gnu/bits/endian.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/endianness.h" 1 3 4 32778: # 36 "/usr/include/riscv64-linux-gnu/bits/endian.h" 2 3 4 32778: # 40 "/usr/include/ctype.h" 2 3 4 32778: 32778: 32778: 32778: 32778: 32778: 32778: enum 32778: { 32778: _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), 32778: _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), 32778: _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), 32778: _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), 32778: _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), 32778: _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), 32778: _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), 32778: _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), 32778: _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), 32778: _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), 32778: _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), 32778: _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) 32778: }; 32778: # 79 "/usr/include/ctype.h" 3 4 32778: extern const unsigned short int **__ctype_b_loc (void) 32778: throw () __attribute__ ((__const__)); 32778: extern const __int32_t **__ctype_tolower_loc (void) 32778: throw () __attribute__ ((__const__)); 32778: extern const __int32_t **__ctype_toupper_loc (void) 32778: throw () __attribute__ ((__const__)); 32778: # 108 "/usr/include/ctype.h" 3 4 32778: extern int isalnum (int) throw (); 32778: extern int isalpha (int) throw (); 32778: extern int iscntrl (int) throw (); 32778: extern int isdigit (int) throw (); 32778: extern int islower (int) throw (); 32778: extern int isgraph (int) throw (); 32778: extern int isprint (int) throw (); 32778: extern int ispunct (int) throw (); 32778: extern int isspace (int) throw (); 32778: extern int isupper (int) throw (); 32778: extern int isxdigit (int) throw (); 32778: 32778: 32778: 32778: extern int tolower (int __c) throw (); 32778: 32778: 32778: extern int toupper (int __c) throw (); 32778: 32778: 32778: 32778: 32778: extern int isblank (int) throw (); 32778: 32778: 32778: 32778: 32778: extern int isctype (int __c, int __mask) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int isascii (int __c) throw (); 32778: 32778: 32778: 32778: extern int toascii (int __c) throw (); 32778: 32778: 32778: 32778: extern int _toupper (int) throw (); 32778: extern int _tolower (int) throw (); 32778: # 251 "/usr/include/ctype.h" 3 4 32778: extern int isalnum_l (int, locale_t) throw (); 32778: extern int isalpha_l (int, locale_t) throw (); 32778: extern int iscntrl_l (int, locale_t) throw (); 32778: extern int isdigit_l (int, locale_t) throw (); 32778: extern int islower_l (int, locale_t) throw (); 32778: extern int isgraph_l (int, locale_t) throw (); 32778: extern int isprint_l (int, locale_t) throw (); 32778: extern int ispunct_l (int, locale_t) throw (); 32778: extern int isspace_l (int, locale_t) throw (); 32778: extern int isupper_l (int, locale_t) throw (); 32778: extern int isxdigit_l (int, locale_t) throw (); 32778: 32778: extern int isblank_l (int, locale_t) throw (); 32778: 32778: 32778: 32778: extern int __tolower_l (int __c, locale_t __l) throw (); 32778: extern int tolower_l (int __c, locale_t __l) throw (); 32778: 32778: 32778: extern int __toupper_l (int __c, locale_t __l) throw (); 32778: extern int toupper_l (int __c, locale_t __l) throw (); 32778: # 327 "/usr/include/ctype.h" 3 4 32778: } 32778: # 43 "/usr/include/c++/9/cctype" 2 3 32778: # 62 "/usr/include/c++/9/cctype" 3 32778: namespace std 32778: { 32778: using ::isalnum; 32778: using ::isalpha; 32778: using ::iscntrl; 32778: using ::isdigit; 32778: using ::isgraph; 32778: using ::islower; 32778: using ::isprint; 32778: using ::ispunct; 32778: using ::isspace; 32778: using ::isupper; 32778: using ::isxdigit; 32778: using ::tolower; 32778: using ::toupper; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: namespace std 32778: { 32778: using ::isblank; 32778: } 32778: # 43 "/usr/include/c++/9/bits/localefwd.h" 2 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 55 "/usr/include/c++/9/bits/localefwd.h" 3 32778: class locale; 32778: 32778: template 32778: bool 32778: has_facet(const locale&) throw(); 32778: 32778: template 32778: const _Facet& 32778: use_facet(const locale&); 32778: 32778: 32778: template 32778: bool 32778: isspace(_CharT, const locale&); 32778: 32778: template 32778: bool 32778: isprint(_CharT, const locale&); 32778: 32778: template 32778: bool 32778: iscntrl(_CharT, const locale&); 32778: 32778: template 32778: bool 32778: isupper(_CharT, const locale&); 32778: 32778: template 32778: bool 32778: islower(_CharT, const locale&); 32778: 32778: template 32778: bool 32778: isalpha(_CharT, const locale&); 32778: 32778: template 32778: bool 32778: isdigit(_CharT, const locale&); 32778: 32778: template 32778: bool 32778: ispunct(_CharT, const locale&); 32778: 32778: template 32778: bool 32778: isxdigit(_CharT, const locale&); 32778: 32778: template 32778: bool 32778: isalnum(_CharT, const locale&); 32778: 32778: template 32778: bool 32778: isgraph(_CharT, const locale&); 32778: 32778: 32778: template 32778: bool 32778: isblank(_CharT, const locale&); 32778: 32778: 32778: template 32778: _CharT 32778: toupper(_CharT, const locale&); 32778: 32778: template 32778: _CharT 32778: tolower(_CharT, const locale&); 32778: 32778: 32778: class ctype_base; 32778: template 32778: class ctype; 32778: template<> class ctype; 32778: 32778: template<> class ctype; 32778: 32778: template 32778: class ctype_byname; 32778: 32778: 32778: class codecvt_base; 32778: template 32778: class codecvt; 32778: template<> class codecvt; 32778: 32778: template<> class codecvt; 32778: 32778: 32778: template<> class codecvt; 32778: template<> class codecvt; 32778: 32778: 32778: 32778: 32778: 32778: template 32778: class codecvt_byname; 32778: 32778: 32778: 32778: template > 32778: class num_get; 32778: template > 32778: class num_put; 32778: 32778: namespace __cxx11 { 32778: template class numpunct; 32778: template class numpunct_byname; 32778: } 32778: 32778: namespace __cxx11 { 32778: 32778: template 32778: class collate; 32778: template 32778: class collate_byname; 32778: } 32778: 32778: 32778: class time_base; 32778: namespace __cxx11 { 32778: template > 32778: class time_get; 32778: template > 32778: class time_get_byname; 32778: } 32778: template > 32778: class time_put; 32778: template > 32778: class time_put_byname; 32778: 32778: 32778: class money_base; 32778: namespace __cxx11 { 32778: template > 32778: class money_get; 32778: template > 32778: class money_put; 32778: } 32778: namespace __cxx11 { 32778: template 32778: class moneypunct; 32778: template 32778: class moneypunct_byname; 32778: } 32778: 32778: 32778: class messages_base; 32778: namespace __cxx11 { 32778: template 32778: class messages; 32778: template 32778: class messages_byname; 32778: } 32778: 32778: 32778: } 32778: # 44 "/usr/include/c++/9/string" 2 3 32778: # 1 "/usr/include/c++/9/bits/ostream_insert.h" 1 3 32778: # 33 "/usr/include/c++/9/bits/ostream_insert.h" 3 32778: 32778: # 34 "/usr/include/c++/9/bits/ostream_insert.h" 3 32778: 32778: 32778: # 1 "/usr/include/c++/9/bits/cxxabi_forced.h" 1 3 32778: # 34 "/usr/include/c++/9/bits/cxxabi_forced.h" 3 32778: 32778: # 35 "/usr/include/c++/9/bits/cxxabi_forced.h" 3 32778: 32778: #pragma GCC visibility push(default) 32778: 32778: 32778: namespace __cxxabiv1 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: class __forced_unwind 32778: { 32778: virtual ~__forced_unwind() throw(); 32778: 32778: 32778: virtual void __pure_dummy() = 0; 32778: }; 32778: } 32778: 32778: 32778: #pragma GCC visibility pop 32778: # 37 "/usr/include/c++/9/bits/ostream_insert.h" 2 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: template 32778: inline void 32778: __ostream_write(basic_ostream<_CharT, _Traits>& __out, 32778: const _CharT* __s, streamsize __n) 32778: { 32778: typedef basic_ostream<_CharT, _Traits> __ostream_type; 32778: typedef typename __ostream_type::ios_base __ios_base; 32778: 32778: const streamsize __put = __out.rdbuf()->sputn(__s, __n); 32778: if (__put != __n) 32778: __out.setstate(__ios_base::badbit); 32778: } 32778: 32778: template 32778: inline void 32778: __ostream_fill(basic_ostream<_CharT, _Traits>& __out, streamsize __n) 32778: { 32778: typedef basic_ostream<_CharT, _Traits> __ostream_type; 32778: typedef typename __ostream_type::ios_base __ios_base; 32778: 32778: const _CharT __c = __out.fill(); 32778: for (; __n > 0; --__n) 32778: { 32778: const typename _Traits::int_type __put = __out.rdbuf()->sputc(__c); 32778: if (_Traits::eq_int_type(__put, _Traits::eof())) 32778: { 32778: __out.setstate(__ios_base::badbit); 32778: break; 32778: } 32778: } 32778: } 32778: 32778: template 32778: basic_ostream<_CharT, _Traits>& 32778: __ostream_insert(basic_ostream<_CharT, _Traits>& __out, 32778: const _CharT* __s, streamsize __n) 32778: { 32778: typedef basic_ostream<_CharT, _Traits> __ostream_type; 32778: typedef typename __ostream_type::ios_base __ios_base; 32778: 32778: typename __ostream_type::sentry __cerb(__out); 32778: if (__cerb) 32778: { 32778: try 32778: { 32778: const streamsize __w = __out.width(); 32778: if (__w > __n) 32778: { 32778: const bool __left = ((__out.flags() 32778: & __ios_base::adjustfield) 32778: == __ios_base::left); 32778: if (!__left) 32778: __ostream_fill(__out, __w - __n); 32778: if (__out.good()) 32778: __ostream_write(__out, __s, __n); 32778: if (__left && __out.good()) 32778: __ostream_fill(__out, __w - __n); 32778: } 32778: else 32778: __ostream_write(__out, __s, __n); 32778: __out.width(0); 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: __out._M_setstate(__ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { __out._M_setstate(__ios_base::badbit); } 32778: } 32778: return __out; 32778: } 32778: 32778: 32778: 32778: 32778: extern template ostream& __ostream_insert(ostream&, const char*, streamsize); 32778: 32778: 32778: extern template wostream& __ostream_insert(wostream&, const wchar_t*, 32778: streamsize); 32778: 32778: 32778: 32778: 32778: } 32778: # 45 "/usr/include/c++/9/string" 2 3 32778: 32778: 32778: 32778: # 1 "/usr/include/c++/9/bits/stl_function.h" 1 3 32778: # 63 "/usr/include/c++/9/bits/stl_function.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 104 "/usr/include/c++/9/bits/stl_function.h" 3 32778: template 32778: struct unary_function 32778: { 32778: 32778: typedef _Arg argument_type; 32778: 32778: 32778: typedef _Result result_type; 32778: }; 32778: 32778: 32778: 32778: 32778: template 32778: struct binary_function 32778: { 32778: 32778: typedef _Arg1 first_argument_type; 32778: 32778: 32778: typedef _Arg2 second_argument_type; 32778: 32778: 32778: typedef _Result result_type; 32778: }; 32778: # 166 "/usr/include/c++/9/bits/stl_function.h" 3 32778: template 32778: struct plus : public binary_function<_Tp, _Tp, _Tp> 32778: { 32778: 32778: _Tp 32778: operator()(const _Tp& __x, const _Tp& __y) const 32778: { return __x + __y; } 32778: }; 32778: 32778: 32778: template 32778: struct minus : public binary_function<_Tp, _Tp, _Tp> 32778: { 32778: 32778: _Tp 32778: operator()(const _Tp& __x, const _Tp& __y) const 32778: { return __x - __y; } 32778: }; 32778: 32778: 32778: template 32778: struct multiplies : public binary_function<_Tp, _Tp, _Tp> 32778: { 32778: 32778: _Tp 32778: operator()(const _Tp& __x, const _Tp& __y) const 32778: { return __x * __y; } 32778: }; 32778: 32778: 32778: template 32778: struct divides : public binary_function<_Tp, _Tp, _Tp> 32778: { 32778: 32778: _Tp 32778: operator()(const _Tp& __x, const _Tp& __y) const 32778: { return __x / __y; } 32778: }; 32778: 32778: 32778: template 32778: struct modulus : public binary_function<_Tp, _Tp, _Tp> 32778: { 32778: 32778: _Tp 32778: operator()(const _Tp& __x, const _Tp& __y) const 32778: { return __x % __y; } 32778: }; 32778: 32778: 32778: template 32778: struct negate : public unary_function<_Tp, _Tp> 32778: { 32778: 32778: _Tp 32778: operator()(const _Tp& __x) const 32778: { return -__x; } 32778: }; 32778: # 350 "/usr/include/c++/9/bits/stl_function.h" 3 32778: template 32778: struct equal_to : public binary_function<_Tp, _Tp, bool> 32778: { 32778: 32778: bool 32778: operator()(const _Tp& __x, const _Tp& __y) const 32778: { return __x == __y; } 32778: }; 32778: 32778: 32778: template 32778: struct not_equal_to : public binary_function<_Tp, _Tp, bool> 32778: { 32778: 32778: bool 32778: operator()(const _Tp& __x, const _Tp& __y) const 32778: { return __x != __y; } 32778: }; 32778: 32778: 32778: template 32778: struct greater : public binary_function<_Tp, _Tp, bool> 32778: { 32778: 32778: bool 32778: operator()(const _Tp& __x, const _Tp& __y) const 32778: { return __x > __y; } 32778: }; 32778: 32778: 32778: template 32778: struct less : public binary_function<_Tp, _Tp, bool> 32778: { 32778: 32778: bool 32778: operator()(const _Tp& __x, const _Tp& __y) const 32778: { return __x < __y; } 32778: }; 32778: 32778: 32778: template 32778: struct greater_equal : public binary_function<_Tp, _Tp, bool> 32778: { 32778: 32778: bool 32778: operator()(const _Tp& __x, const _Tp& __y) const 32778: { return __x >= __y; } 32778: }; 32778: 32778: 32778: template 32778: struct less_equal : public binary_function<_Tp, _Tp, bool> 32778: { 32778: 32778: bool 32778: operator()(const _Tp& __x, const _Tp& __y) const 32778: { return __x <= __y; } 32778: }; 32778: 32778: 32778: template 32778: struct greater<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 32778: { 32778: bool 32778: operator()(_Tp* __x, _Tp* __y) const noexcept 32778: { 32778: # 424 "/usr/include/c++/9/bits/stl_function.h" 3 32778: return (long unsigned int)__x > (long unsigned int)__y; 32778: } 32778: }; 32778: 32778: 32778: template 32778: struct less<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 32778: { 32778: bool 32778: operator()(_Tp* __x, _Tp* __y) const noexcept 32778: { 32778: # 443 "/usr/include/c++/9/bits/stl_function.h" 3 32778: return (long unsigned int)__x < (long unsigned int)__y; 32778: } 32778: }; 32778: 32778: 32778: template 32778: struct greater_equal<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 32778: { 32778: bool 32778: operator()(_Tp* __x, _Tp* __y) const noexcept 32778: { 32778: # 462 "/usr/include/c++/9/bits/stl_function.h" 3 32778: return (long unsigned int)__x >= (long unsigned int)__y; 32778: } 32778: }; 32778: 32778: 32778: template 32778: struct less_equal<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 32778: { 32778: bool 32778: operator()(_Tp* __x, _Tp* __y) const noexcept 32778: { 32778: # 481 "/usr/include/c++/9/bits/stl_function.h" 3 32778: return (long unsigned int)__x <= (long unsigned int)__y; 32778: } 32778: }; 32778: # 785 "/usr/include/c++/9/bits/stl_function.h" 3 32778: template 32778: struct logical_and : public binary_function<_Tp, _Tp, bool> 32778: { 32778: 32778: bool 32778: operator()(const _Tp& __x, const _Tp& __y) const 32778: { return __x && __y; } 32778: }; 32778: 32778: 32778: template 32778: struct logical_or : public binary_function<_Tp, _Tp, bool> 32778: { 32778: 32778: bool 32778: operator()(const _Tp& __x, const _Tp& __y) const 32778: { return __x || __y; } 32778: }; 32778: 32778: 32778: template 32778: struct logical_not : public unary_function<_Tp, bool> 32778: { 32778: 32778: bool 32778: operator()(const _Tp& __x) const 32778: { return !__x; } 32778: }; 32778: # 878 "/usr/include/c++/9/bits/stl_function.h" 3 32778: template 32778: struct bit_and : public binary_function<_Tp, _Tp, _Tp> 32778: { 32778: 32778: _Tp 32778: operator()(const _Tp& __x, const _Tp& __y) const 32778: { return __x & __y; } 32778: }; 32778: 32778: template 32778: struct bit_or : public binary_function<_Tp, _Tp, _Tp> 32778: { 32778: 32778: _Tp 32778: operator()(const _Tp& __x, const _Tp& __y) const 32778: { return __x | __y; } 32778: }; 32778: 32778: template 32778: struct bit_xor : public binary_function<_Tp, _Tp, _Tp> 32778: { 32778: 32778: _Tp 32778: operator()(const _Tp& __x, const _Tp& __y) const 32778: { return __x ^ __y; } 32778: }; 32778: 32778: template 32778: struct bit_not : public unary_function<_Tp, _Tp> 32778: { 32778: 32778: _Tp 32778: operator()(const _Tp& __x) const 32778: { return ~__x; } 32778: }; 32778: # 1002 "/usr/include/c++/9/bits/stl_function.h" 3 32778: template 32778: class unary_negate 32778: : public unary_function 32778: { 32778: protected: 32778: _Predicate _M_pred; 32778: 32778: public: 32778: 32778: explicit 32778: unary_negate(const _Predicate& __x) : _M_pred(__x) { } 32778: 32778: 32778: bool 32778: operator()(const typename _Predicate::argument_type& __x) const 32778: { return !_M_pred(__x); } 32778: }; 32778: 32778: 32778: template 32778: 32778: inline unary_negate<_Predicate> 32778: not1(const _Predicate& __pred) 32778: { return unary_negate<_Predicate>(__pred); } 32778: 32778: 32778: template 32778: class binary_negate 32778: : public binary_function 32778: { 32778: protected: 32778: _Predicate _M_pred; 32778: 32778: public: 32778: 32778: explicit 32778: binary_negate(const _Predicate& __x) : _M_pred(__x) { } 32778: 32778: 32778: bool 32778: operator()(const typename _Predicate::first_argument_type& __x, 32778: const typename _Predicate::second_argument_type& __y) const 32778: { return !_M_pred(__x, __y); } 32778: }; 32778: 32778: 32778: template 32778: 32778: inline binary_negate<_Predicate> 32778: not2(const _Predicate& __pred) 32778: { return binary_negate<_Predicate>(__pred); } 32778: # 1079 "/usr/include/c++/9/bits/stl_function.h" 3 32778: template 32778: class pointer_to_unary_function : public unary_function<_Arg, _Result> 32778: { 32778: protected: 32778: _Result (*_M_ptr)(_Arg); 32778: 32778: public: 32778: pointer_to_unary_function() { } 32778: 32778: explicit 32778: pointer_to_unary_function(_Result (*__x)(_Arg)) 32778: : _M_ptr(__x) { } 32778: 32778: _Result 32778: operator()(_Arg __x) const 32778: { return _M_ptr(__x); } 32778: }; 32778: 32778: 32778: template 32778: inline pointer_to_unary_function<_Arg, _Result> 32778: ptr_fun(_Result (*__x)(_Arg)) 32778: { return pointer_to_unary_function<_Arg, _Result>(__x); } 32778: 32778: 32778: template 32778: class pointer_to_binary_function 32778: : public binary_function<_Arg1, _Arg2, _Result> 32778: { 32778: protected: 32778: _Result (*_M_ptr)(_Arg1, _Arg2); 32778: 32778: public: 32778: pointer_to_binary_function() { } 32778: 32778: explicit 32778: pointer_to_binary_function(_Result (*__x)(_Arg1, _Arg2)) 32778: : _M_ptr(__x) { } 32778: 32778: _Result 32778: operator()(_Arg1 __x, _Arg2 __y) const 32778: { return _M_ptr(__x, __y); } 32778: }; 32778: 32778: 32778: template 32778: inline pointer_to_binary_function<_Arg1, _Arg2, _Result> 32778: ptr_fun(_Result (*__x)(_Arg1, _Arg2)) 32778: { return pointer_to_binary_function<_Arg1, _Arg2, _Result>(__x); } 32778: 32778: 32778: template 32778: struct _Identity 32778: : public unary_function<_Tp, _Tp> 32778: { 32778: _Tp& 32778: operator()(_Tp& __x) const 32778: { return __x; } 32778: 32778: const _Tp& 32778: operator()(const _Tp& __x) const 32778: { return __x; } 32778: }; 32778: 32778: 32778: template struct _Identity : _Identity<_Tp> { }; 32778: 32778: template 32778: struct _Select1st 32778: : public unary_function<_Pair, typename _Pair::first_type> 32778: { 32778: typename _Pair::first_type& 32778: operator()(_Pair& __x) const 32778: { return __x.first; } 32778: 32778: const typename _Pair::first_type& 32778: operator()(const _Pair& __x) const 32778: { return __x.first; } 32778: 32778: 32778: template 32778: typename _Pair2::first_type& 32778: operator()(_Pair2& __x) const 32778: { return __x.first; } 32778: 32778: template 32778: const typename _Pair2::first_type& 32778: operator()(const _Pair2& __x) const 32778: { return __x.first; } 32778: 32778: }; 32778: 32778: template 32778: struct _Select2nd 32778: : public unary_function<_Pair, typename _Pair::second_type> 32778: { 32778: typename _Pair::second_type& 32778: operator()(_Pair& __x) const 32778: { return __x.second; } 32778: 32778: const typename _Pair::second_type& 32778: operator()(const _Pair& __x) const 32778: { return __x.second; } 32778: }; 32778: # 1202 "/usr/include/c++/9/bits/stl_function.h" 3 32778: template 32778: class mem_fun_t : public unary_function<_Tp*, _Ret> 32778: { 32778: public: 32778: explicit 32778: mem_fun_t(_Ret (_Tp::*__pf)()) 32778: : _M_f(__pf) { } 32778: 32778: _Ret 32778: operator()(_Tp* __p) const 32778: { return (__p->*_M_f)(); } 32778: 32778: private: 32778: _Ret (_Tp::*_M_f)(); 32778: }; 32778: 32778: 32778: 32778: template 32778: class const_mem_fun_t : public unary_function 32778: { 32778: public: 32778: explicit 32778: const_mem_fun_t(_Ret (_Tp::*__pf)() const) 32778: : _M_f(__pf) { } 32778: 32778: _Ret 32778: operator()(const _Tp* __p) const 32778: { return (__p->*_M_f)(); } 32778: 32778: private: 32778: _Ret (_Tp::*_M_f)() const; 32778: }; 32778: 32778: 32778: 32778: template 32778: class mem_fun_ref_t : public unary_function<_Tp, _Ret> 32778: { 32778: public: 32778: explicit 32778: mem_fun_ref_t(_Ret (_Tp::*__pf)()) 32778: : _M_f(__pf) { } 32778: 32778: _Ret 32778: operator()(_Tp& __r) const 32778: { return (__r.*_M_f)(); } 32778: 32778: private: 32778: _Ret (_Tp::*_M_f)(); 32778: }; 32778: 32778: 32778: 32778: template 32778: class const_mem_fun_ref_t : public unary_function<_Tp, _Ret> 32778: { 32778: public: 32778: explicit 32778: const_mem_fun_ref_t(_Ret (_Tp::*__pf)() const) 32778: : _M_f(__pf) { } 32778: 32778: _Ret 32778: operator()(const _Tp& __r) const 32778: { return (__r.*_M_f)(); } 32778: 32778: private: 32778: _Ret (_Tp::*_M_f)() const; 32778: }; 32778: 32778: 32778: 32778: template 32778: class mem_fun1_t : public binary_function<_Tp*, _Arg, _Ret> 32778: { 32778: public: 32778: explicit 32778: mem_fun1_t(_Ret (_Tp::*__pf)(_Arg)) 32778: : _M_f(__pf) { } 32778: 32778: _Ret 32778: operator()(_Tp* __p, _Arg __x) const 32778: { return (__p->*_M_f)(__x); } 32778: 32778: private: 32778: _Ret (_Tp::*_M_f)(_Arg); 32778: }; 32778: 32778: 32778: 32778: template 32778: class const_mem_fun1_t : public binary_function 32778: { 32778: public: 32778: explicit 32778: const_mem_fun1_t(_Ret (_Tp::*__pf)(_Arg) const) 32778: : _M_f(__pf) { } 32778: 32778: _Ret 32778: operator()(const _Tp* __p, _Arg __x) const 32778: { return (__p->*_M_f)(__x); } 32778: 32778: private: 32778: _Ret (_Tp::*_M_f)(_Arg) const; 32778: }; 32778: 32778: 32778: 32778: template 32778: class mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> 32778: { 32778: public: 32778: explicit 32778: mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg)) 32778: : _M_f(__pf) { } 32778: 32778: _Ret 32778: operator()(_Tp& __r, _Arg __x) const 32778: { return (__r.*_M_f)(__x); } 32778: 32778: private: 32778: _Ret (_Tp::*_M_f)(_Arg); 32778: }; 32778: 32778: 32778: 32778: template 32778: class const_mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> 32778: { 32778: public: 32778: explicit 32778: const_mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg) const) 32778: : _M_f(__pf) { } 32778: 32778: _Ret 32778: operator()(const _Tp& __r, _Arg __x) const 32778: { return (__r.*_M_f)(__x); } 32778: 32778: private: 32778: _Ret (_Tp::*_M_f)(_Arg) const; 32778: }; 32778: 32778: 32778: 32778: template 32778: inline mem_fun_t<_Ret, _Tp> 32778: mem_fun(_Ret (_Tp::*__f)()) 32778: { return mem_fun_t<_Ret, _Tp>(__f); } 32778: 32778: template 32778: inline const_mem_fun_t<_Ret, _Tp> 32778: mem_fun(_Ret (_Tp::*__f)() const) 32778: { return const_mem_fun_t<_Ret, _Tp>(__f); } 32778: 32778: template 32778: inline mem_fun_ref_t<_Ret, _Tp> 32778: mem_fun_ref(_Ret (_Tp::*__f)()) 32778: { return mem_fun_ref_t<_Ret, _Tp>(__f); } 32778: 32778: template 32778: inline const_mem_fun_ref_t<_Ret, _Tp> 32778: mem_fun_ref(_Ret (_Tp::*__f)() const) 32778: { return const_mem_fun_ref_t<_Ret, _Tp>(__f); } 32778: 32778: template 32778: inline mem_fun1_t<_Ret, _Tp, _Arg> 32778: mem_fun(_Ret (_Tp::*__f)(_Arg)) 32778: { return mem_fun1_t<_Ret, _Tp, _Arg>(__f); } 32778: 32778: template 32778: inline const_mem_fun1_t<_Ret, _Tp, _Arg> 32778: mem_fun(_Ret (_Tp::*__f)(_Arg) const) 32778: { return const_mem_fun1_t<_Ret, _Tp, _Arg>(__f); } 32778: 32778: template 32778: inline mem_fun1_ref_t<_Ret, _Tp, _Arg> 32778: mem_fun_ref(_Ret (_Tp::*__f)(_Arg)) 32778: { return mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } 32778: 32778: template 32778: inline const_mem_fun1_ref_t<_Ret, _Tp, _Arg> 32778: mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) 32778: { return const_mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } 32778: 32778: 32778: 32778: 32778: } 32778: 32778: 32778: # 1 "/usr/include/c++/9/backward/binders.h" 1 3 32778: # 60 "/usr/include/c++/9/backward/binders.h" 3 32778: #pragma GCC diagnostic push 32778: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 107 "/usr/include/c++/9/backward/binders.h" 3 32778: template 32778: class binder1st 32778: : public unary_function 32778: { 32778: protected: 32778: _Operation op; 32778: typename _Operation::first_argument_type value; 32778: 32778: public: 32778: binder1st(const _Operation& __x, 32778: const typename _Operation::first_argument_type& __y) 32778: : op(__x), value(__y) { } 32778: 32778: typename _Operation::result_type 32778: operator()(const typename _Operation::second_argument_type& __x) const 32778: { return op(value, __x); } 32778: 32778: 32778: 32778: typename _Operation::result_type 32778: operator()(typename _Operation::second_argument_type& __x) const 32778: { return op(value, __x); } 32778: } __attribute__ ((__deprecated__)); 32778: 32778: 32778: template 32778: inline binder1st<_Operation> 32778: bind1st(const _Operation& __fn, const _Tp& __x) 32778: { 32778: typedef typename _Operation::first_argument_type _Arg1_type; 32778: return binder1st<_Operation>(__fn, _Arg1_type(__x)); 32778: } 32778: 32778: 32778: template 32778: class binder2nd 32778: : public unary_function 32778: { 32778: protected: 32778: _Operation op; 32778: typename _Operation::second_argument_type value; 32778: 32778: public: 32778: binder2nd(const _Operation& __x, 32778: const typename _Operation::second_argument_type& __y) 32778: : op(__x), value(__y) { } 32778: 32778: typename _Operation::result_type 32778: operator()(const typename _Operation::first_argument_type& __x) const 32778: { return op(__x, value); } 32778: 32778: 32778: 32778: typename _Operation::result_type 32778: operator()(typename _Operation::first_argument_type& __x) const 32778: { return op(__x, value); } 32778: } __attribute__ ((__deprecated__)); 32778: 32778: 32778: template 32778: inline binder2nd<_Operation> 32778: bind2nd(const _Operation& __fn, const _Tp& __x) 32778: { 32778: typedef typename _Operation::second_argument_type _Arg2_type; 32778: return binder2nd<_Operation>(__fn, _Arg2_type(__x)); 32778: } 32778: 32778: 32778: 32778: } 32778: 32778: #pragma GCC diagnostic pop 32778: # 1393 "/usr/include/c++/9/bits/stl_function.h" 2 3 32778: # 49 "/usr/include/c++/9/string" 2 3 32778: 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/c++/9/bits/range_access.h" 1 3 32778: # 33 "/usr/include/c++/9/bits/range_access.h" 3 32778: 32778: # 34 "/usr/include/c++/9/bits/range_access.h" 3 32778: 32778: 32778: # 1 "/usr/include/c++/9/initializer_list" 1 3 32778: # 33 "/usr/include/c++/9/initializer_list" 3 32778: 32778: # 34 "/usr/include/c++/9/initializer_list" 3 32778: 32778: 32778: 32778: 32778: 32778: #pragma GCC visibility push(default) 32778: 32778: 32778: 32778: namespace std 32778: { 32778: 32778: template 32778: class initializer_list 32778: { 32778: public: 32778: typedef _E value_type; 32778: typedef const _E& reference; 32778: typedef const _E& const_reference; 32778: typedef size_t size_type; 32778: typedef const _E* iterator; 32778: typedef const _E* const_iterator; 32778: 32778: private: 32778: iterator _M_array; 32778: size_type _M_len; 32778: 32778: 32778: constexpr initializer_list(const_iterator __a, size_type __l) 32778: : _M_array(__a), _M_len(__l) { } 32778: 32778: public: 32778: constexpr initializer_list() noexcept 32778: : _M_array(0), _M_len(0) { } 32778: 32778: 32778: constexpr size_type 32778: size() const noexcept { return _M_len; } 32778: 32778: 32778: constexpr const_iterator 32778: begin() const noexcept { return _M_array; } 32778: 32778: 32778: constexpr const_iterator 32778: end() const noexcept { return begin() + size(); } 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: constexpr const _Tp* 32778: begin(initializer_list<_Tp> __ils) noexcept 32778: { return __ils.begin(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: constexpr const _Tp* 32778: end(initializer_list<_Tp> __ils) noexcept 32778: { return __ils.end(); } 32778: } 32778: 32778: #pragma GCC visibility pop 32778: # 37 "/usr/include/c++/9/bits/range_access.h" 2 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline auto 32778: begin(_Container& __cont) -> decltype(__cont.begin()) 32778: { return __cont.begin(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline auto 32778: begin(const _Container& __cont) -> decltype(__cont.begin()) 32778: { return __cont.begin(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline auto 32778: end(_Container& __cont) -> decltype(__cont.end()) 32778: { return __cont.end(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline auto 32778: end(const _Container& __cont) -> decltype(__cont.end()) 32778: { return __cont.end(); } 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline _Tp* 32778: begin(_Tp (&__arr)[_Nm]) 32778: { return __arr; } 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline _Tp* 32778: end(_Tp (&__arr)[_Nm]) 32778: { return __arr + _Nm; } 32778: # 323 "/usr/include/c++/9/bits/range_access.h" 3 32778: 32778: } 32778: # 55 "/usr/include/c++/9/string" 2 3 32778: # 1 "/usr/include/c++/9/bits/basic_string.h" 1 3 32778: # 37 "/usr/include/c++/9/bits/basic_string.h" 3 32778: 32778: # 38 "/usr/include/c++/9/bits/basic_string.h" 3 32778: 32778: # 1 "/usr/include/c++/9/ext/atomicity.h" 1 3 32778: # 32 "/usr/include/c++/9/ext/atomicity.h" 3 32778: 32778: # 33 "/usr/include/c++/9/ext/atomicity.h" 3 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/c++/9/bits/gthr.h" 1 3 32778: # 30 "/usr/include/riscv64-linux-gnu/c++/9/bits/gthr.h" 3 32778: #pragma GCC visibility push(default) 32778: # 148 "/usr/include/riscv64-linux-gnu/c++/9/bits/gthr.h" 3 32778: # 1 "/usr/include/riscv64-linux-gnu/c++/9/bits/gthr-default.h" 1 3 32778: # 35 "/usr/include/riscv64-linux-gnu/c++/9/bits/gthr-default.h" 3 32778: # 1 "/usr/include/pthread.h" 1 3 4 32778: # 22 "/usr/include/pthread.h" 3 4 32778: # 1 "/usr/include/sched.h" 1 3 4 32778: # 29 "/usr/include/sched.h" 3 4 32778: # 1 "/usr/lib/gcc/riscv64-linux-gnu/9/include/stddef.h" 1 3 4 32778: # 30 "/usr/include/sched.h" 2 3 4 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/types/time_t.h" 1 3 4 32778: 32778: 32778: 32778: 32778: 32778: 32778: typedef __time_t time_t; 32778: # 32 "/usr/include/sched.h" 2 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/types/struct_timespec.h" 1 3 4 32778: # 10 "/usr/include/riscv64-linux-gnu/bits/types/struct_timespec.h" 3 4 32778: struct timespec 32778: { 32778: __time_t tv_sec; 32778: 32778: 32778: 32778: __syscall_slong_t tv_nsec; 32778: # 26 "/usr/include/riscv64-linux-gnu/bits/types/struct_timespec.h" 3 4 32778: }; 32778: # 33 "/usr/include/sched.h" 2 3 4 32778: 32778: 32778: 32778: 32778: 32778: typedef __pid_t pid_t; 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/sched.h" 1 3 4 32778: # 76 "/usr/include/riscv64-linux-gnu/bits/sched.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/types/struct_sched_param.h" 1 3 4 32778: # 23 "/usr/include/riscv64-linux-gnu/bits/types/struct_sched_param.h" 3 4 32778: struct sched_param 32778: { 32778: int sched_priority; 32778: }; 32778: # 77 "/usr/include/riscv64-linux-gnu/bits/sched.h" 2 3 4 32778: 32778: extern "C" { 32778: 32778: 32778: 32778: extern int clone (int (*__fn) (void *__arg), void *__child_stack, 32778: int __flags, void *__arg, ...) throw (); 32778: 32778: 32778: extern int unshare (int __flags) throw (); 32778: 32778: 32778: extern int sched_getcpu (void) throw (); 32778: 32778: 32778: extern int getcpu (unsigned int *, unsigned int *) throw (); 32778: 32778: 32778: extern int setns (int __fd, int __nstype) throw (); 32778: 32778: 32778: } 32778: # 44 "/usr/include/sched.h" 2 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/cpu-set.h" 1 3 4 32778: # 32 "/usr/include/riscv64-linux-gnu/bits/cpu-set.h" 3 4 32778: typedef unsigned long int __cpu_mask; 32778: 32778: 32778: 32778: 32778: 32778: 32778: typedef struct 32778: { 32778: __cpu_mask __bits[1024 / (8 * sizeof (__cpu_mask))]; 32778: } cpu_set_t; 32778: # 115 "/usr/include/riscv64-linux-gnu/bits/cpu-set.h" 3 4 32778: extern "C" { 32778: 32778: extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp) 32778: throw (); 32778: extern cpu_set_t *__sched_cpualloc (size_t __count) throw () __attribute__ ((__warn_unused_result__)); 32778: extern void __sched_cpufree (cpu_set_t *__set) throw (); 32778: 32778: } 32778: # 45 "/usr/include/sched.h" 2 3 4 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern "C" { 32778: 32778: 32778: extern int sched_setparam (__pid_t __pid, const struct sched_param *__param) 32778: throw (); 32778: 32778: 32778: extern int sched_getparam (__pid_t __pid, struct sched_param *__param) throw (); 32778: 32778: 32778: extern int sched_setscheduler (__pid_t __pid, int __policy, 32778: const struct sched_param *__param) throw (); 32778: 32778: 32778: extern int sched_getscheduler (__pid_t __pid) throw (); 32778: 32778: 32778: extern int sched_yield (void) throw (); 32778: 32778: 32778: extern int sched_get_priority_max (int __algorithm) throw (); 32778: 32778: 32778: extern int sched_get_priority_min (int __algorithm) throw (); 32778: 32778: 32778: extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) throw (); 32778: # 121 "/usr/include/sched.h" 3 4 32778: extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize, 32778: const cpu_set_t *__cpuset) throw (); 32778: 32778: 32778: extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize, 32778: cpu_set_t *__cpuset) throw (); 32778: 32778: 32778: } 32778: # 23 "/usr/include/pthread.h" 2 3 4 32778: # 1 "/usr/include/time.h" 1 3 4 32778: # 29 "/usr/include/time.h" 3 4 32778: # 1 "/usr/lib/gcc/riscv64-linux-gnu/9/include/stddef.h" 1 3 4 32778: # 30 "/usr/include/time.h" 2 3 4 32778: 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/time.h" 1 3 4 32778: # 73 "/usr/include/riscv64-linux-gnu/bits/time.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/timex.h" 1 3 4 32778: # 22 "/usr/include/riscv64-linux-gnu/bits/timex.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/types/struct_timeval.h" 1 3 4 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: struct timeval 32778: { 32778: __time_t tv_sec; 32778: __suseconds_t tv_usec; 32778: }; 32778: # 23 "/usr/include/riscv64-linux-gnu/bits/timex.h" 2 3 4 32778: 32778: 32778: 32778: struct timex 32778: { 32778: unsigned int modes; 32778: __syscall_slong_t offset; 32778: __syscall_slong_t freq; 32778: __syscall_slong_t maxerror; 32778: __syscall_slong_t esterror; 32778: int status; 32778: __syscall_slong_t constant; 32778: __syscall_slong_t precision; 32778: __syscall_slong_t tolerance; 32778: struct timeval time; 32778: __syscall_slong_t tick; 32778: __syscall_slong_t ppsfreq; 32778: __syscall_slong_t jitter; 32778: int shift; 32778: __syscall_slong_t stabil; 32778: __syscall_slong_t jitcnt; 32778: __syscall_slong_t calcnt; 32778: __syscall_slong_t errcnt; 32778: __syscall_slong_t stbcnt; 32778: 32778: int tai; 32778: 32778: 32778: int :32; int :32; int :32; int :32; 32778: int :32; int :32; int :32; int :32; 32778: int :32; int :32; int :32; 32778: }; 32778: # 74 "/usr/include/riscv64-linux-gnu/bits/time.h" 2 3 4 32778: 32778: extern "C" { 32778: 32778: 32778: extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) throw (); 32778: 32778: } 32778: # 34 "/usr/include/time.h" 2 3 4 32778: 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/types/clock_t.h" 1 3 4 32778: 32778: 32778: 32778: 32778: 32778: 32778: typedef __clock_t clock_t; 32778: # 38 "/usr/include/time.h" 2 3 4 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/types/struct_tm.h" 1 3 4 32778: 32778: 32778: 32778: 32778: 32778: 32778: struct tm 32778: { 32778: int tm_sec; 32778: int tm_min; 32778: int tm_hour; 32778: int tm_mday; 32778: int tm_mon; 32778: int tm_year; 32778: int tm_wday; 32778: int tm_yday; 32778: int tm_isdst; 32778: 32778: 32778: long int tm_gmtoff; 32778: const char *tm_zone; 32778: 32778: 32778: 32778: 32778: }; 32778: # 40 "/usr/include/time.h" 2 3 4 32778: 32778: 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/types/clockid_t.h" 1 3 4 32778: 32778: 32778: 32778: 32778: 32778: 32778: typedef __clockid_t clockid_t; 32778: # 47 "/usr/include/time.h" 2 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/types/timer_t.h" 1 3 4 32778: 32778: 32778: 32778: 32778: 32778: 32778: typedef __timer_t timer_t; 32778: # 48 "/usr/include/time.h" 2 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/types/struct_itimerspec.h" 1 3 4 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: struct itimerspec 32778: { 32778: struct timespec it_interval; 32778: struct timespec it_value; 32778: }; 32778: # 49 "/usr/include/time.h" 2 3 4 32778: struct sigevent; 32778: # 68 "/usr/include/time.h" 3 4 32778: extern "C" { 32778: 32778: 32778: 32778: extern clock_t clock (void) throw (); 32778: 32778: 32778: extern time_t time (time_t *__timer) throw (); 32778: 32778: 32778: extern double difftime (time_t __time1, time_t __time0) 32778: throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern time_t mktime (struct tm *__tp) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern size_t strftime (char *__restrict __s, size_t __maxsize, 32778: const char *__restrict __format, 32778: const struct tm *__restrict __tp) throw (); 32778: 32778: 32778: 32778: 32778: extern char *strptime (const char *__restrict __s, 32778: const char *__restrict __fmt, struct tm *__tp) 32778: throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern size_t strftime_l (char *__restrict __s, size_t __maxsize, 32778: const char *__restrict __format, 32778: const struct tm *__restrict __tp, 32778: locale_t __loc) throw (); 32778: 32778: 32778: 32778: extern char *strptime_l (const char *__restrict __s, 32778: const char *__restrict __fmt, struct tm *__tp, 32778: locale_t __loc) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern struct tm *gmtime (const time_t *__timer) throw (); 32778: 32778: 32778: 32778: extern struct tm *localtime (const time_t *__timer) throw (); 32778: 32778: 32778: 32778: 32778: extern struct tm *gmtime_r (const time_t *__restrict __timer, 32778: struct tm *__restrict __tp) throw (); 32778: 32778: 32778: 32778: extern struct tm *localtime_r (const time_t *__restrict __timer, 32778: struct tm *__restrict __tp) throw (); 32778: 32778: 32778: 32778: 32778: extern char *asctime (const struct tm *__tp) throw (); 32778: 32778: 32778: extern char *ctime (const time_t *__timer) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern char *asctime_r (const struct tm *__restrict __tp, 32778: char *__restrict __buf) throw (); 32778: 32778: 32778: extern char *ctime_r (const time_t *__restrict __timer, 32778: char *__restrict __buf) throw (); 32778: 32778: 32778: 32778: 32778: extern char *__tzname[2]; 32778: extern int __daylight; 32778: extern long int __timezone; 32778: 32778: 32778: 32778: 32778: extern char *tzname[2]; 32778: 32778: 32778: 32778: extern void tzset (void) throw (); 32778: 32778: 32778: 32778: extern int daylight; 32778: extern long int timezone; 32778: # 190 "/usr/include/time.h" 3 4 32778: extern time_t timegm (struct tm *__tp) throw (); 32778: 32778: 32778: extern time_t timelocal (struct tm *__tp) throw (); 32778: 32778: 32778: extern int dysize (int __year) throw () __attribute__ ((__const__)); 32778: # 205 "/usr/include/time.h" 3 4 32778: extern int nanosleep (const struct timespec *__requested_time, 32778: struct timespec *__remaining); 32778: 32778: 32778: 32778: extern int clock_getres (clockid_t __clock_id, struct timespec *__res) throw (); 32778: 32778: 32778: extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) throw (); 32778: 32778: 32778: extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp) 32778: throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int clock_nanosleep (clockid_t __clock_id, int __flags, 32778: const struct timespec *__req, 32778: struct timespec *__rem); 32778: 32778: 32778: extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) throw (); 32778: 32778: 32778: 32778: 32778: extern int timer_create (clockid_t __clock_id, 32778: struct sigevent *__restrict __evp, 32778: timer_t *__restrict __timerid) throw (); 32778: 32778: 32778: extern int timer_delete (timer_t __timerid) throw (); 32778: 32778: 32778: extern int timer_settime (timer_t __timerid, int __flags, 32778: const struct itimerspec *__restrict __value, 32778: struct itimerspec *__restrict __ovalue) throw (); 32778: 32778: 32778: extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) 32778: throw (); 32778: 32778: 32778: extern int timer_getoverrun (timer_t __timerid) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern int timespec_get (struct timespec *__ts, int __base) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: # 274 "/usr/include/time.h" 3 4 32778: extern int getdate_err; 32778: # 283 "/usr/include/time.h" 3 4 32778: extern struct tm *getdate (const char *__string); 32778: # 297 "/usr/include/time.h" 3 4 32778: extern int getdate_r (const char *__restrict __string, 32778: struct tm *__restrict __resbufp); 32778: 32778: 32778: } 32778: # 24 "/usr/include/pthread.h" 2 3 4 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/pthreadtypes.h" 1 3 4 32778: # 23 "/usr/include/riscv64-linux-gnu/bits/pthreadtypes.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/thread-shared-types.h" 1 3 4 32778: # 44 "/usr/include/riscv64-linux-gnu/bits/thread-shared-types.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/pthreadtypes-arch.h" 1 3 4 32778: # 45 "/usr/include/riscv64-linux-gnu/bits/thread-shared-types.h" 2 3 4 32778: 32778: 32778: 32778: 32778: typedef struct __pthread_internal_list 32778: { 32778: struct __pthread_internal_list *__prev; 32778: struct __pthread_internal_list *__next; 32778: } __pthread_list_t; 32778: 32778: typedef struct __pthread_internal_slist 32778: { 32778: struct __pthread_internal_slist *__next; 32778: } __pthread_slist_t; 32778: # 74 "/usr/include/riscv64-linux-gnu/bits/thread-shared-types.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/struct_mutex.h" 1 3 4 32778: # 27 "/usr/include/riscv64-linux-gnu/bits/struct_mutex.h" 3 4 32778: struct __pthread_mutex_s 32778: { 32778: int __lock ; 32778: unsigned int __count; 32778: int __owner; 32778: 32778: unsigned int __nusers; 32778: # 58 "/usr/include/riscv64-linux-gnu/bits/struct_mutex.h" 3 4 32778: int __kind; 32778: 32778: 32778: 32778: 32778: int __spins; 32778: __pthread_list_t __list; 32778: # 74 "/usr/include/riscv64-linux-gnu/bits/struct_mutex.h" 3 4 32778: }; 32778: # 75 "/usr/include/riscv64-linux-gnu/bits/thread-shared-types.h" 2 3 4 32778: # 87 "/usr/include/riscv64-linux-gnu/bits/thread-shared-types.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/struct_rwlock.h" 1 3 4 32778: # 27 "/usr/include/riscv64-linux-gnu/bits/struct_rwlock.h" 3 4 32778: struct __pthread_rwlock_arch_t 32778: { 32778: unsigned int __readers; 32778: unsigned int __writers; 32778: unsigned int __wrphase_futex; 32778: unsigned int __writers_futex; 32778: unsigned int __pad3; 32778: unsigned int __pad4; 32778: int __cur_writer; 32778: int __shared; 32778: unsigned long int __pad1; 32778: unsigned long int __pad2; 32778: unsigned int __flags; 32778: }; 32778: # 88 "/usr/include/riscv64-linux-gnu/bits/thread-shared-types.h" 2 3 4 32778: 32778: 32778: 32778: 32778: struct __pthread_cond_s 32778: { 32778: __extension__ union 32778: { 32778: __extension__ unsigned long long int __wseq; 32778: struct 32778: { 32778: unsigned int __low; 32778: unsigned int __high; 32778: } __wseq32; 32778: }; 32778: __extension__ union 32778: { 32778: __extension__ unsigned long long int __g1_start; 32778: struct 32778: { 32778: unsigned int __low; 32778: unsigned int __high; 32778: } __g1_start32; 32778: }; 32778: unsigned int __g_refs[2] ; 32778: unsigned int __g_size[2]; 32778: unsigned int __g1_orig_size; 32778: unsigned int __wrefs; 32778: unsigned int __g_signals[2]; 32778: }; 32778: # 24 "/usr/include/riscv64-linux-gnu/bits/pthreadtypes.h" 2 3 4 32778: 32778: 32778: 32778: typedef unsigned long int pthread_t; 32778: 32778: 32778: 32778: 32778: typedef union 32778: { 32778: char __size[4]; 32778: int __align; 32778: } pthread_mutexattr_t; 32778: 32778: 32778: 32778: 32778: typedef union 32778: { 32778: char __size[4]; 32778: int __align; 32778: } pthread_condattr_t; 32778: 32778: 32778: 32778: typedef unsigned int pthread_key_t; 32778: 32778: 32778: 32778: typedef int pthread_once_t; 32778: 32778: 32778: union pthread_attr_t 32778: { 32778: char __size[56]; 32778: long int __align; 32778: }; 32778: 32778: typedef union pthread_attr_t pthread_attr_t; 32778: 32778: 32778: 32778: 32778: typedef union 32778: { 32778: struct __pthread_mutex_s __data; 32778: char __size[40]; 32778: long int __align; 32778: } pthread_mutex_t; 32778: 32778: 32778: typedef union 32778: { 32778: struct __pthread_cond_s __data; 32778: char __size[48]; 32778: __extension__ long long int __align; 32778: } pthread_cond_t; 32778: 32778: 32778: 32778: 32778: 32778: typedef union 32778: { 32778: struct __pthread_rwlock_arch_t __data; 32778: char __size[56]; 32778: long int __align; 32778: } pthread_rwlock_t; 32778: 32778: typedef union 32778: { 32778: char __size[8]; 32778: long int __align; 32778: } pthread_rwlockattr_t; 32778: 32778: 32778: 32778: 32778: 32778: typedef volatile int pthread_spinlock_t; 32778: 32778: 32778: 32778: 32778: typedef union 32778: { 32778: char __size[32]; 32778: long int __align; 32778: } pthread_barrier_t; 32778: 32778: typedef union 32778: { 32778: char __size[4]; 32778: int __align; 32778: } pthread_barrierattr_t; 32778: # 27 "/usr/include/pthread.h" 2 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/setjmp.h" 1 3 4 32778: # 22 "/usr/include/riscv64-linux-gnu/bits/setjmp.h" 3 4 32778: typedef struct __jmp_buf_internal_tag 32778: { 32778: 32778: long int __pc; 32778: 32778: long int __regs[12]; 32778: 32778: long int __sp; 32778: 32778: 32778: 32778: double __fpregs[12]; 32778: 32778: 32778: 32778: } __jmp_buf[1]; 32778: # 28 "/usr/include/pthread.h" 2 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/wordsize.h" 1 3 4 32778: # 29 "/usr/include/pthread.h" 2 3 4 32778: 32778: 32778: 32778: 32778: enum 32778: { 32778: PTHREAD_CREATE_JOINABLE, 32778: 32778: PTHREAD_CREATE_DETACHED 32778: 32778: }; 32778: 32778: 32778: 32778: enum 32778: { 32778: PTHREAD_MUTEX_TIMED_NP, 32778: PTHREAD_MUTEX_RECURSIVE_NP, 32778: PTHREAD_MUTEX_ERRORCHECK_NP, 32778: PTHREAD_MUTEX_ADAPTIVE_NP 32778: 32778: , 32778: PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP, 32778: PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP, 32778: PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP, 32778: PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL 32778: 32778: 32778: 32778: , PTHREAD_MUTEX_FAST_NP = PTHREAD_MUTEX_TIMED_NP 32778: 32778: }; 32778: 32778: 32778: 32778: 32778: enum 32778: { 32778: PTHREAD_MUTEX_STALLED, 32778: PTHREAD_MUTEX_STALLED_NP = PTHREAD_MUTEX_STALLED, 32778: PTHREAD_MUTEX_ROBUST, 32778: PTHREAD_MUTEX_ROBUST_NP = PTHREAD_MUTEX_ROBUST 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: enum 32778: { 32778: PTHREAD_PRIO_NONE, 32778: PTHREAD_PRIO_INHERIT, 32778: PTHREAD_PRIO_PROTECT 32778: }; 32778: # 100 "/usr/include/pthread.h" 3 4 32778: enum 32778: { 32778: PTHREAD_RWLOCK_PREFER_READER_NP, 32778: PTHREAD_RWLOCK_PREFER_WRITER_NP, 32778: PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, 32778: PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP 32778: }; 32778: # 120 "/usr/include/pthread.h" 3 4 32778: enum 32778: { 32778: PTHREAD_INHERIT_SCHED, 32778: 32778: PTHREAD_EXPLICIT_SCHED 32778: 32778: }; 32778: 32778: 32778: 32778: enum 32778: { 32778: PTHREAD_SCOPE_SYSTEM, 32778: 32778: PTHREAD_SCOPE_PROCESS 32778: 32778: }; 32778: 32778: 32778: 32778: enum 32778: { 32778: PTHREAD_PROCESS_PRIVATE, 32778: 32778: PTHREAD_PROCESS_SHARED 32778: 32778: }; 32778: # 155 "/usr/include/pthread.h" 3 4 32778: struct _pthread_cleanup_buffer 32778: { 32778: void (*__routine) (void *); 32778: void *__arg; 32778: int __canceltype; 32778: struct _pthread_cleanup_buffer *__prev; 32778: }; 32778: 32778: 32778: enum 32778: { 32778: PTHREAD_CANCEL_ENABLE, 32778: 32778: PTHREAD_CANCEL_DISABLE 32778: 32778: }; 32778: enum 32778: { 32778: PTHREAD_CANCEL_DEFERRED, 32778: 32778: PTHREAD_CANCEL_ASYNCHRONOUS 32778: 32778: }; 32778: # 193 "/usr/include/pthread.h" 3 4 32778: extern "C" { 32778: 32778: 32778: 32778: 32778: extern int pthread_create (pthread_t *__restrict __newthread, 32778: const pthread_attr_t *__restrict __attr, 32778: void *(*__start_routine) (void *), 32778: void *__restrict __arg) throw () __attribute__ ((__nonnull__ (1, 3))); 32778: 32778: 32778: 32778: 32778: 32778: extern void pthread_exit (void *__retval) __attribute__ ((__noreturn__)); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int pthread_join (pthread_t __th, void **__thread_return); 32778: 32778: 32778: 32778: 32778: extern int pthread_tryjoin_np (pthread_t __th, void **__thread_return) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int pthread_timedjoin_np (pthread_t __th, void **__thread_return, 32778: const struct timespec *__abstime); 32778: # 238 "/usr/include/pthread.h" 3 4 32778: extern int pthread_clockjoin_np (pthread_t __th, void **__thread_return, 32778: clockid_t __clockid, 32778: const struct timespec *__abstime); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int pthread_detach (pthread_t __th) throw (); 32778: 32778: 32778: 32778: extern pthread_t pthread_self (void) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) 32778: throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int pthread_attr_init (pthread_attr_t *__attr) throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_attr_destroy (pthread_attr_t *__attr) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_attr_getdetachstate (const pthread_attr_t *__attr, 32778: int *__detachstate) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: extern int pthread_attr_setdetachstate (pthread_attr_t *__attr, 32778: int __detachstate) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: extern int pthread_attr_getguardsize (const pthread_attr_t *__attr, 32778: size_t *__guardsize) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: extern int pthread_attr_setguardsize (pthread_attr_t *__attr, 32778: size_t __guardsize) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: extern int pthread_attr_getschedparam (const pthread_attr_t *__restrict __attr, 32778: struct sched_param *__restrict __param) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr, 32778: const struct sched_param *__restrict 32778: __param) throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: extern int pthread_attr_getschedpolicy (const pthread_attr_t *__restrict 32778: __attr, int *__restrict __policy) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_attr_getinheritsched (const pthread_attr_t *__restrict 32778: __attr, int *__restrict __inherit) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: extern int pthread_attr_setinheritsched (pthread_attr_t *__attr, 32778: int __inherit) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: extern int pthread_attr_getscope (const pthread_attr_t *__restrict __attr, 32778: int *__restrict __scope) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_attr_getstackaddr (const pthread_attr_t *__restrict 32778: __attr, void **__restrict __stackaddr) 32778: throw () __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__deprecated__)); 32778: 32778: 32778: 32778: 32778: 32778: extern int pthread_attr_setstackaddr (pthread_attr_t *__attr, 32778: void *__stackaddr) 32778: throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)); 32778: 32778: 32778: extern int pthread_attr_getstacksize (const pthread_attr_t *__restrict 32778: __attr, size_t *__restrict __stacksize) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: 32778: 32778: extern int pthread_attr_setstacksize (pthread_attr_t *__attr, 32778: size_t __stacksize) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: extern int pthread_attr_getstack (const pthread_attr_t *__restrict __attr, 32778: void **__restrict __stackaddr, 32778: size_t *__restrict __stacksize) 32778: throw () __attribute__ ((__nonnull__ (1, 2, 3))); 32778: 32778: 32778: 32778: 32778: extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr, 32778: size_t __stacksize) throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: 32778: 32778: extern int pthread_attr_setaffinity_np (pthread_attr_t *__attr, 32778: size_t __cpusetsize, 32778: const cpu_set_t *__cpuset) 32778: throw () __attribute__ ((__nonnull__ (1, 3))); 32778: 32778: 32778: 32778: extern int pthread_attr_getaffinity_np (const pthread_attr_t *__attr, 32778: size_t __cpusetsize, 32778: cpu_set_t *__cpuset) 32778: throw () __attribute__ ((__nonnull__ (1, 3))); 32778: 32778: 32778: extern int pthread_getattr_default_np (pthread_attr_t *__attr) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: extern int pthread_setattr_default_np (const pthread_attr_t *__attr) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: 32778: extern int pthread_getattr_np (pthread_t __th, pthread_attr_t *__attr) 32778: throw () __attribute__ ((__nonnull__ (2))); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int pthread_setschedparam (pthread_t __target_thread, int __policy, 32778: const struct sched_param *__param) 32778: throw () __attribute__ ((__nonnull__ (3))); 32778: 32778: 32778: extern int pthread_getschedparam (pthread_t __target_thread, 32778: int *__restrict __policy, 32778: struct sched_param *__restrict __param) 32778: throw () __attribute__ ((__nonnull__ (2, 3))); 32778: 32778: 32778: extern int pthread_setschedprio (pthread_t __target_thread, int __prio) 32778: throw (); 32778: 32778: 32778: 32778: 32778: extern int pthread_getname_np (pthread_t __target_thread, char *__buf, 32778: size_t __buflen) 32778: throw () __attribute__ ((__nonnull__ (2))); 32778: 32778: 32778: extern int pthread_setname_np (pthread_t __target_thread, const char *__name) 32778: throw () __attribute__ ((__nonnull__ (2))); 32778: 32778: 32778: 32778: 32778: 32778: extern int pthread_getconcurrency (void) throw (); 32778: 32778: 32778: extern int pthread_setconcurrency (int __level) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int pthread_yield (void) throw (); 32778: 32778: 32778: 32778: 32778: extern int pthread_setaffinity_np (pthread_t __th, size_t __cpusetsize, 32778: const cpu_set_t *__cpuset) 32778: throw () __attribute__ ((__nonnull__ (3))); 32778: 32778: 32778: extern int pthread_getaffinity_np (pthread_t __th, size_t __cpusetsize, 32778: cpu_set_t *__cpuset) 32778: throw () __attribute__ ((__nonnull__ (3))); 32778: # 470 "/usr/include/pthread.h" 3 4 32778: extern int pthread_once (pthread_once_t *__once_control, 32778: void (*__init_routine) (void)) __attribute__ ((__nonnull__ (1, 2))); 32778: # 482 "/usr/include/pthread.h" 3 4 32778: extern int pthread_setcancelstate (int __state, int *__oldstate); 32778: 32778: 32778: 32778: extern int pthread_setcanceltype (int __type, int *__oldtype); 32778: 32778: 32778: extern int pthread_cancel (pthread_t __th); 32778: 32778: 32778: 32778: 32778: extern void pthread_testcancel (void); 32778: 32778: 32778: 32778: 32778: typedef struct 32778: { 32778: struct 32778: { 32778: __jmp_buf __cancel_jmp_buf; 32778: int __mask_was_saved; 32778: } __cancel_jmp_buf[1]; 32778: void *__pad[4]; 32778: } __pthread_unwind_buf_t __attribute__ ((__aligned__)); 32778: # 516 "/usr/include/pthread.h" 3 4 32778: struct __pthread_cleanup_frame 32778: { 32778: void (*__cancel_routine) (void *); 32778: void *__cancel_arg; 32778: int __do_it; 32778: int __cancel_type; 32778: }; 32778: 32778: 32778: 32778: 32778: class __pthread_cleanup_class 32778: { 32778: void (*__cancel_routine) (void *); 32778: void *__cancel_arg; 32778: int __do_it; 32778: int __cancel_type; 32778: 32778: public: 32778: __pthread_cleanup_class (void (*__fct) (void *), void *__arg) 32778: : __cancel_routine (__fct), __cancel_arg (__arg), __do_it (1) { } 32778: ~__pthread_cleanup_class () { if (__do_it) __cancel_routine (__cancel_arg); } 32778: void __setdoit (int __newval) { __do_it = __newval; } 32778: void __defer () { pthread_setcanceltype (PTHREAD_CANCEL_DEFERRED, 32778: &__cancel_type); } 32778: void __restore () const { pthread_setcanceltype (__cancel_type, 0); } 32778: }; 32778: # 718 "/usr/include/pthread.h" 3 4 32778: struct __jmp_buf_tag; 32778: extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern int pthread_mutex_init (pthread_mutex_t *__mutex, 32778: const pthread_mutexattr_t *__mutexattr) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_mutex_destroy (pthread_mutex_t *__mutex) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_mutex_trylock (pthread_mutex_t *__mutex) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_mutex_lock (pthread_mutex_t *__mutex) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex, 32778: const struct timespec *__restrict 32778: __abstime) throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: 32778: extern int pthread_mutex_clocklock (pthread_mutex_t *__restrict __mutex, 32778: clockid_t __clockid, 32778: const struct timespec *__restrict 32778: __abstime) throw () __attribute__ ((__nonnull__ (1, 3))); 32778: 32778: 32778: 32778: extern int pthread_mutex_unlock (pthread_mutex_t *__mutex) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: extern int pthread_mutex_getprioceiling (const pthread_mutex_t * 32778: __restrict __mutex, 32778: int *__restrict __prioceiling) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: 32778: extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex, 32778: int __prioceiling, 32778: int *__restrict __old_ceiling) 32778: throw () __attribute__ ((__nonnull__ (1, 3))); 32778: 32778: 32778: 32778: 32778: extern int pthread_mutex_consistent (pthread_mutex_t *__mutex) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: extern int pthread_mutex_consistent_np (pthread_mutex_t *__mutex) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: # 789 "/usr/include/pthread.h" 3 4 32778: extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_mutexattr_getpshared (const pthread_mutexattr_t * 32778: __restrict __attr, 32778: int *__restrict __pshared) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr, 32778: int __pshared) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: extern int pthread_mutexattr_gettype (const pthread_mutexattr_t *__restrict 32778: __attr, int *__restrict __kind) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: 32778: 32778: extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: extern int pthread_mutexattr_getprotocol (const pthread_mutexattr_t * 32778: __restrict __attr, 32778: int *__restrict __protocol) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: 32778: extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr, 32778: int __protocol) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_mutexattr_getprioceiling (const pthread_mutexattr_t * 32778: __restrict __attr, 32778: int *__restrict __prioceiling) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr, 32778: int __prioceiling) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: extern int pthread_mutexattr_getrobust (const pthread_mutexattr_t *__attr, 32778: int *__robustness) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: extern int pthread_mutexattr_getrobust_np (const pthread_mutexattr_t *__attr, 32778: int *__robustness) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: 32778: extern int pthread_mutexattr_setrobust (pthread_mutexattr_t *__attr, 32778: int __robustness) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: extern int pthread_mutexattr_setrobust_np (pthread_mutexattr_t *__attr, 32778: int __robustness) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: # 871 "/usr/include/pthread.h" 3 4 32778: extern int pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock, 32778: const pthread_rwlockattr_t *__restrict 32778: __attr) throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock, 32778: const struct timespec *__restrict 32778: __abstime) throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: 32778: extern int pthread_rwlock_clockrdlock (pthread_rwlock_t *__restrict __rwlock, 32778: clockid_t __clockid, 32778: const struct timespec *__restrict 32778: __abstime) throw () __attribute__ ((__nonnull__ (1, 3))); 32778: 32778: 32778: 32778: extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: extern int pthread_rwlock_timedwrlock (pthread_rwlock_t *__restrict __rwlock, 32778: const struct timespec *__restrict 32778: __abstime) throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: 32778: extern int pthread_rwlock_clockwrlock (pthread_rwlock_t *__restrict __rwlock, 32778: clockid_t __clockid, 32778: const struct timespec *__restrict 32778: __abstime) throw () __attribute__ ((__nonnull__ (1, 3))); 32778: 32778: 32778: 32778: extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: 32778: 32778: extern int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_rwlockattr_getpshared (const pthread_rwlockattr_t * 32778: __restrict __attr, 32778: int *__restrict __pshared) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr, 32778: int __pshared) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_rwlockattr_getkind_np (const pthread_rwlockattr_t * 32778: __restrict __attr, 32778: int *__restrict __pref) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr, 32778: int __pref) throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int pthread_cond_init (pthread_cond_t *__restrict __cond, 32778: const pthread_condattr_t *__restrict __cond_attr) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_cond_destroy (pthread_cond_t *__cond) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_cond_signal (pthread_cond_t *__cond) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_cond_broadcast (pthread_cond_t *__cond) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int pthread_cond_wait (pthread_cond_t *__restrict __cond, 32778: pthread_mutex_t *__restrict __mutex) 32778: __attribute__ ((__nonnull__ (1, 2))); 32778: # 997 "/usr/include/pthread.h" 3 4 32778: extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond, 32778: pthread_mutex_t *__restrict __mutex, 32778: const struct timespec *__restrict __abstime) 32778: __attribute__ ((__nonnull__ (1, 2, 3))); 32778: # 1010 "/usr/include/pthread.h" 3 4 32778: extern int pthread_cond_clockwait (pthread_cond_t *__restrict __cond, 32778: pthread_mutex_t *__restrict __mutex, 32778: __clockid_t __clock_id, 32778: const struct timespec *__restrict __abstime) 32778: __attribute__ ((__nonnull__ (1, 2, 4))); 32778: 32778: 32778: 32778: 32778: 32778: extern int pthread_condattr_init (pthread_condattr_t *__attr) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_condattr_destroy (pthread_condattr_t *__attr) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_condattr_getpshared (const pthread_condattr_t * 32778: __restrict __attr, 32778: int *__restrict __pshared) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: extern int pthread_condattr_setpshared (pthread_condattr_t *__attr, 32778: int __pshared) throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: extern int pthread_condattr_getclock (const pthread_condattr_t * 32778: __restrict __attr, 32778: __clockid_t *__restrict __clock_id) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: extern int pthread_condattr_setclock (pthread_condattr_t *__attr, 32778: __clockid_t __clock_id) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: # 1056 "/usr/include/pthread.h" 3 4 32778: extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_spin_destroy (pthread_spinlock_t *__lock) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_spin_lock (pthread_spinlock_t *__lock) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_spin_trylock (pthread_spinlock_t *__lock) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_spin_unlock (pthread_spinlock_t *__lock) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int pthread_barrier_init (pthread_barrier_t *__restrict __barrier, 32778: const pthread_barrierattr_t *__restrict 32778: __attr, unsigned int __count) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_barrier_destroy (pthread_barrier_t *__barrier) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_barrier_wait (pthread_barrier_t *__barrier) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: extern int pthread_barrierattr_init (pthread_barrierattr_t *__attr) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_barrierattr_destroy (pthread_barrierattr_t *__attr) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_barrierattr_getpshared (const pthread_barrierattr_t * 32778: __restrict __attr, 32778: int *__restrict __pshared) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: extern int pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr, 32778: int __pshared) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: # 1123 "/usr/include/pthread.h" 3 4 32778: extern int pthread_key_create (pthread_key_t *__key, 32778: void (*__destr_function) (void *)) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern int pthread_key_delete (pthread_key_t __key) throw (); 32778: 32778: 32778: extern void *pthread_getspecific (pthread_key_t __key) throw (); 32778: 32778: 32778: extern int pthread_setspecific (pthread_key_t __key, 32778: const void *__pointer) throw () ; 32778: 32778: 32778: 32778: 32778: extern int pthread_getcpuclockid (pthread_t __thread_id, 32778: __clockid_t *__clock_id) 32778: throw () __attribute__ ((__nonnull__ (2))); 32778: # 1157 "/usr/include/pthread.h" 3 4 32778: extern int pthread_atfork (void (*__prepare) (void), 32778: void (*__parent) (void), 32778: void (*__child) (void)) throw (); 32778: 32778: 32778: 32778: 32778: extern __inline __attribute__ ((__gnu_inline__)) int 32778: __attribute__ ((__leaf__)) pthread_equal (pthread_t __thread1, pthread_t __thread2) throw () 32778: { 32778: return __thread1 == __thread2; 32778: } 32778: 32778: 32778: } 32778: # 36 "/usr/include/riscv64-linux-gnu/c++/9/bits/gthr-default.h" 2 3 32778: # 47 "/usr/include/riscv64-linux-gnu/c++/9/bits/gthr-default.h" 3 32778: typedef pthread_t __gthread_t; 32778: typedef pthread_key_t __gthread_key_t; 32778: typedef pthread_once_t __gthread_once_t; 32778: typedef pthread_mutex_t __gthread_mutex_t; 32778: typedef pthread_mutex_t __gthread_recursive_mutex_t; 32778: typedef pthread_cond_t __gthread_cond_t; 32778: typedef struct timespec __gthread_time_t; 32778: # 102 "/usr/include/riscv64-linux-gnu/c++/9/bits/gthr-default.h" 3 32778: static __typeof(pthread_once) __gthrw_pthread_once __attribute__ ((__weakref__("pthread_once"), __copy__ (pthread_once))); 32778: static __typeof(pthread_getspecific) __gthrw_pthread_getspecific __attribute__ ((__weakref__("pthread_getspecific"), __copy__ (pthread_getspecific))); 32778: static __typeof(pthread_setspecific) __gthrw_pthread_setspecific __attribute__ ((__weakref__("pthread_setspecific"), __copy__ (pthread_setspecific))); 32778: 32778: static __typeof(pthread_create) __gthrw_pthread_create __attribute__ ((__weakref__("pthread_create"), __copy__ (pthread_create))); 32778: static __typeof(pthread_join) __gthrw_pthread_join __attribute__ ((__weakref__("pthread_join"), __copy__ (pthread_join))); 32778: static __typeof(pthread_equal) __gthrw_pthread_equal __attribute__ ((__weakref__("pthread_equal"), __copy__ (pthread_equal))); 32778: static __typeof(pthread_self) __gthrw_pthread_self __attribute__ ((__weakref__("pthread_self"), __copy__ (pthread_self))); 32778: static __typeof(pthread_detach) __gthrw_pthread_detach __attribute__ ((__weakref__("pthread_detach"), __copy__ (pthread_detach))); 32778: 32778: static __typeof(pthread_cancel) __gthrw_pthread_cancel __attribute__ ((__weakref__("pthread_cancel"), __copy__ (pthread_cancel))); 32778: 32778: static __typeof(sched_yield) __gthrw_sched_yield __attribute__ ((__weakref__("sched_yield"), __copy__ (sched_yield))); 32778: 32778: static __typeof(pthread_mutex_lock) __gthrw_pthread_mutex_lock __attribute__ ((__weakref__("pthread_mutex_lock"), __copy__ (pthread_mutex_lock))); 32778: static __typeof(pthread_mutex_trylock) __gthrw_pthread_mutex_trylock __attribute__ ((__weakref__("pthread_mutex_trylock"), __copy__ (pthread_mutex_trylock))); 32778: 32778: static __typeof(pthread_mutex_timedlock) __gthrw_pthread_mutex_timedlock __attribute__ ((__weakref__("pthread_mutex_timedlock"), __copy__ (pthread_mutex_timedlock))); 32778: 32778: static __typeof(pthread_mutex_unlock) __gthrw_pthread_mutex_unlock __attribute__ ((__weakref__("pthread_mutex_unlock"), __copy__ (pthread_mutex_unlock))); 32778: static __typeof(pthread_mutex_init) __gthrw_pthread_mutex_init __attribute__ ((__weakref__("pthread_mutex_init"), __copy__ (pthread_mutex_init))); 32778: static __typeof(pthread_mutex_destroy) __gthrw_pthread_mutex_destroy __attribute__ ((__weakref__("pthread_mutex_destroy"), __copy__ (pthread_mutex_destroy))); 32778: 32778: static __typeof(pthread_cond_init) __gthrw_pthread_cond_init __attribute__ ((__weakref__("pthread_cond_init"), __copy__ (pthread_cond_init))); 32778: static __typeof(pthread_cond_broadcast) __gthrw_pthread_cond_broadcast __attribute__ ((__weakref__("pthread_cond_broadcast"), __copy__ (pthread_cond_broadcast))); 32778: static __typeof(pthread_cond_signal) __gthrw_pthread_cond_signal __attribute__ ((__weakref__("pthread_cond_signal"), __copy__ (pthread_cond_signal))); 32778: static __typeof(pthread_cond_wait) __gthrw_pthread_cond_wait __attribute__ ((__weakref__("pthread_cond_wait"), __copy__ (pthread_cond_wait))); 32778: static __typeof(pthread_cond_timedwait) __gthrw_pthread_cond_timedwait __attribute__ ((__weakref__("pthread_cond_timedwait"), __copy__ (pthread_cond_timedwait))); 32778: static __typeof(pthread_cond_destroy) __gthrw_pthread_cond_destroy __attribute__ ((__weakref__("pthread_cond_destroy"), __copy__ (pthread_cond_destroy))); 32778: 32778: static __typeof(pthread_key_create) __gthrw_pthread_key_create __attribute__ ((__weakref__("pthread_key_create"), __copy__ (pthread_key_create))); 32778: static __typeof(pthread_key_delete) __gthrw_pthread_key_delete __attribute__ ((__weakref__("pthread_key_delete"), __copy__ (pthread_key_delete))); 32778: static __typeof(pthread_mutexattr_init) __gthrw_pthread_mutexattr_init __attribute__ ((__weakref__("pthread_mutexattr_init"), __copy__ (pthread_mutexattr_init))); 32778: static __typeof(pthread_mutexattr_settype) __gthrw_pthread_mutexattr_settype __attribute__ ((__weakref__("pthread_mutexattr_settype"), __copy__ (pthread_mutexattr_settype))); 32778: static __typeof(pthread_mutexattr_destroy) __gthrw_pthread_mutexattr_destroy __attribute__ ((__weakref__("pthread_mutexattr_destroy"), __copy__ (pthread_mutexattr_destroy))); 32778: # 237 "/usr/include/riscv64-linux-gnu/c++/9/bits/gthr-default.h" 3 32778: static __typeof(pthread_key_create) __gthrw___pthread_key_create __attribute__ ((__weakref__("__pthread_key_create"), __copy__ (pthread_key_create))); 32778: # 247 "/usr/include/riscv64-linux-gnu/c++/9/bits/gthr-default.h" 3 32778: static inline int 32778: __gthread_active_p (void) 32778: { 32778: static void *const __gthread_active_ptr 32778: = __extension__ (void *) &__gthrw___pthread_key_create; 32778: return __gthread_active_ptr != 0; 32778: } 32778: # 659 "/usr/include/riscv64-linux-gnu/c++/9/bits/gthr-default.h" 3 32778: static inline int 32778: __gthread_create (__gthread_t *__threadid, void *(*__func) (void*), 32778: void *__args) 32778: { 32778: return __gthrw_pthread_create (__threadid, __null, __func, __args); 32778: } 32778: 32778: static inline int 32778: __gthread_join (__gthread_t __threadid, void **__value_ptr) 32778: { 32778: return __gthrw_pthread_join (__threadid, __value_ptr); 32778: } 32778: 32778: static inline int 32778: __gthread_detach (__gthread_t __threadid) 32778: { 32778: return __gthrw_pthread_detach (__threadid); 32778: } 32778: 32778: static inline int 32778: __gthread_equal (__gthread_t __t1, __gthread_t __t2) 32778: { 32778: return __gthrw_pthread_equal (__t1, __t2); 32778: } 32778: 32778: static inline __gthread_t 32778: __gthread_self (void) 32778: { 32778: return __gthrw_pthread_self (); 32778: } 32778: 32778: static inline int 32778: __gthread_yield (void) 32778: { 32778: return __gthrw_sched_yield (); 32778: } 32778: 32778: static inline int 32778: __gthread_once (__gthread_once_t *__once, void (*__func) (void)) 32778: { 32778: if (__gthread_active_p ()) 32778: return __gthrw_pthread_once (__once, __func); 32778: else 32778: return -1; 32778: } 32778: 32778: static inline int 32778: __gthread_key_create (__gthread_key_t *__key, void (*__dtor) (void *)) 32778: { 32778: return __gthrw_pthread_key_create (__key, __dtor); 32778: } 32778: 32778: static inline int 32778: __gthread_key_delete (__gthread_key_t __key) 32778: { 32778: return __gthrw_pthread_key_delete (__key); 32778: } 32778: 32778: static inline void * 32778: __gthread_getspecific (__gthread_key_t __key) 32778: { 32778: return __gthrw_pthread_getspecific (__key); 32778: } 32778: 32778: static inline int 32778: __gthread_setspecific (__gthread_key_t __key, const void *__ptr) 32778: { 32778: return __gthrw_pthread_setspecific (__key, __ptr); 32778: } 32778: 32778: static inline void 32778: __gthread_mutex_init_function (__gthread_mutex_t *__mutex) 32778: { 32778: if (__gthread_active_p ()) 32778: __gthrw_pthread_mutex_init (__mutex, __null); 32778: } 32778: 32778: static inline int 32778: __gthread_mutex_destroy (__gthread_mutex_t *__mutex) 32778: { 32778: if (__gthread_active_p ()) 32778: return __gthrw_pthread_mutex_destroy (__mutex); 32778: else 32778: return 0; 32778: } 32778: 32778: static inline int 32778: __gthread_mutex_lock (__gthread_mutex_t *__mutex) 32778: { 32778: if (__gthread_active_p ()) 32778: return __gthrw_pthread_mutex_lock (__mutex); 32778: else 32778: return 0; 32778: } 32778: 32778: static inline int 32778: __gthread_mutex_trylock (__gthread_mutex_t *__mutex) 32778: { 32778: if (__gthread_active_p ()) 32778: return __gthrw_pthread_mutex_trylock (__mutex); 32778: else 32778: return 0; 32778: } 32778: 32778: 32778: static inline int 32778: __gthread_mutex_timedlock (__gthread_mutex_t *__mutex, 32778: const __gthread_time_t *__abs_timeout) 32778: { 32778: if (__gthread_active_p ()) 32778: return __gthrw_pthread_mutex_timedlock (__mutex, __abs_timeout); 32778: else 32778: return 0; 32778: } 32778: 32778: 32778: static inline int 32778: __gthread_mutex_unlock (__gthread_mutex_t *__mutex) 32778: { 32778: if (__gthread_active_p ()) 32778: return __gthrw_pthread_mutex_unlock (__mutex); 32778: else 32778: return 0; 32778: } 32778: # 808 "/usr/include/riscv64-linux-gnu/c++/9/bits/gthr-default.h" 3 32778: static inline int 32778: __gthread_recursive_mutex_lock (__gthread_recursive_mutex_t *__mutex) 32778: { 32778: return __gthread_mutex_lock (__mutex); 32778: } 32778: 32778: static inline int 32778: __gthread_recursive_mutex_trylock (__gthread_recursive_mutex_t *__mutex) 32778: { 32778: return __gthread_mutex_trylock (__mutex); 32778: } 32778: 32778: 32778: static inline int 32778: __gthread_recursive_mutex_timedlock (__gthread_recursive_mutex_t *__mutex, 32778: const __gthread_time_t *__abs_timeout) 32778: { 32778: return __gthread_mutex_timedlock (__mutex, __abs_timeout); 32778: } 32778: 32778: 32778: static inline int 32778: __gthread_recursive_mutex_unlock (__gthread_recursive_mutex_t *__mutex) 32778: { 32778: return __gthread_mutex_unlock (__mutex); 32778: } 32778: 32778: static inline int 32778: __gthread_recursive_mutex_destroy (__gthread_recursive_mutex_t *__mutex) 32778: { 32778: return __gthread_mutex_destroy (__mutex); 32778: } 32778: # 850 "/usr/include/riscv64-linux-gnu/c++/9/bits/gthr-default.h" 3 32778: static inline int 32778: __gthread_cond_broadcast (__gthread_cond_t *__cond) 32778: { 32778: return __gthrw_pthread_cond_broadcast (__cond); 32778: } 32778: 32778: static inline int 32778: __gthread_cond_signal (__gthread_cond_t *__cond) 32778: { 32778: return __gthrw_pthread_cond_signal (__cond); 32778: } 32778: 32778: static inline int 32778: __gthread_cond_wait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex) 32778: { 32778: return __gthrw_pthread_cond_wait (__cond, __mutex); 32778: } 32778: 32778: static inline int 32778: __gthread_cond_timedwait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex, 32778: const __gthread_time_t *__abs_timeout) 32778: { 32778: return __gthrw_pthread_cond_timedwait (__cond, __mutex, __abs_timeout); 32778: } 32778: 32778: static inline int 32778: __gthread_cond_wait_recursive (__gthread_cond_t *__cond, 32778: __gthread_recursive_mutex_t *__mutex) 32778: { 32778: return __gthread_cond_wait (__cond, __mutex); 32778: } 32778: 32778: static inline int 32778: __gthread_cond_destroy (__gthread_cond_t* __cond) 32778: { 32778: return __gthrw_pthread_cond_destroy (__cond); 32778: } 32778: # 149 "/usr/include/riscv64-linux-gnu/c++/9/bits/gthr.h" 2 3 32778: 32778: 32778: #pragma GCC visibility pop 32778: # 36 "/usr/include/c++/9/ext/atomicity.h" 2 3 32778: # 1 "/usr/include/riscv64-linux-gnu/c++/9/bits/atomic_word.h" 1 3 32778: # 32 "/usr/include/riscv64-linux-gnu/c++/9/bits/atomic_word.h" 3 32778: typedef int _Atomic_word; 32778: # 37 "/usr/include/c++/9/ext/atomicity.h" 2 3 32778: 32778: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 55 "/usr/include/c++/9/ext/atomicity.h" 3 32778: _Atomic_word 32778: __attribute__ ((__unused__)) 32778: __exchange_and_add(volatile _Atomic_word*, int) throw (); 32778: 32778: void 32778: __attribute__ ((__unused__)) 32778: __atomic_add(volatile _Atomic_word*, int) throw (); 32778: 32778: 32778: static inline _Atomic_word 32778: __exchange_and_add_single(_Atomic_word* __mem, int __val) 32778: { 32778: _Atomic_word __result = *__mem; 32778: *__mem += __val; 32778: return __result; 32778: } 32778: 32778: static inline void 32778: __atomic_add_single(_Atomic_word* __mem, int __val) 32778: { *__mem += __val; } 32778: 32778: static inline _Atomic_word 32778: __attribute__ ((__unused__)) 32778: __exchange_and_add_dispatch(_Atomic_word* __mem, int __val) 32778: { 32778: 32778: if (__gthread_active_p()) 32778: return __exchange_and_add(__mem, __val); 32778: else 32778: return __exchange_and_add_single(__mem, __val); 32778: 32778: 32778: 32778: } 32778: 32778: static inline void 32778: __attribute__ ((__unused__)) 32778: __atomic_add_dispatch(_Atomic_word* __mem, int __val) 32778: { 32778: 32778: if (__gthread_active_p()) 32778: __atomic_add(__mem, __val); 32778: else 32778: __atomic_add_single(__mem, __val); 32778: 32778: 32778: 32778: } 32778: 32778: 32778: } 32778: # 40 "/usr/include/c++/9/bits/basic_string.h" 2 3 32778: # 1 "/usr/include/c++/9/ext/alloc_traits.h" 1 3 32778: # 32 "/usr/include/c++/9/ext/alloc_traits.h" 3 32778: 32778: # 33 "/usr/include/c++/9/ext/alloc_traits.h" 3 32778: 32778: 32778: 32778: # 1 "/usr/include/c++/9/bits/alloc_traits.h" 1 3 32778: # 41 "/usr/include/c++/9/bits/alloc_traits.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: struct __allocator_traits_base 32778: { 32778: template 32778: struct __rebind : __replace_first_arg<_Tp, _Up> { }; 32778: 32778: template 32778: struct __rebind<_Tp, _Up, 32778: __void_t::other>> 32778: { using type = typename _Tp::template rebind<_Up>::other; }; 32778: 32778: protected: 32778: template 32778: using __pointer = typename _Tp::pointer; 32778: template 32778: using __c_pointer = typename _Tp::const_pointer; 32778: template 32778: using __v_pointer = typename _Tp::void_pointer; 32778: template 32778: using __cv_pointer = typename _Tp::const_void_pointer; 32778: template 32778: using __pocca = typename _Tp::propagate_on_container_copy_assignment; 32778: template 32778: using __pocma = typename _Tp::propagate_on_container_move_assignment; 32778: template 32778: using __pocs = typename _Tp::propagate_on_container_swap; 32778: template 32778: using __equal = typename _Tp::is_always_equal; 32778: }; 32778: 32778: template 32778: using __alloc_rebind 32778: = typename __allocator_traits_base::template __rebind<_Alloc, _Up>::type; 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct allocator_traits : __allocator_traits_base 32778: { 32778: 32778: typedef _Alloc allocator_type; 32778: 32778: typedef typename _Alloc::value_type value_type; 32778: 32778: 32778: 32778: 32778: 32778: 32778: using pointer = __detected_or_t; 32778: 32778: private: 32778: 32778: template class _Func, typename _Tp, typename = void> 32778: struct _Ptr 32778: { 32778: using type = typename pointer_traits::template rebind<_Tp>; 32778: }; 32778: 32778: template class _Func, typename _Tp> 32778: struct _Ptr<_Func, _Tp, __void_t<_Func<_Alloc>>> 32778: { 32778: using type = _Func<_Alloc>; 32778: }; 32778: 32778: 32778: template 32778: struct _Diff 32778: { using type = typename pointer_traits<_PtrT>::difference_type; }; 32778: 32778: template 32778: struct _Diff<_A2, _PtrT, __void_t> 32778: { using type = typename _A2::difference_type; }; 32778: 32778: 32778: template 32778: struct _Size : make_unsigned<_DiffT> { }; 32778: 32778: template 32778: struct _Size<_A2, _DiffT, __void_t> 32778: { using type = typename _A2::size_type; }; 32778: 32778: public: 32778: 32778: 32778: 32778: 32778: 32778: 32778: using const_pointer = typename _Ptr<__c_pointer, const value_type>::type; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: using void_pointer = typename _Ptr<__v_pointer, void>::type; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: using const_void_pointer = typename _Ptr<__cv_pointer, const void>::type; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: using difference_type = typename _Diff<_Alloc, pointer>::type; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: using size_type = typename _Size<_Alloc, difference_type>::type; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: using propagate_on_container_copy_assignment 32778: = __detected_or_t; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: using propagate_on_container_move_assignment 32778: = __detected_or_t; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: using propagate_on_container_swap 32778: = __detected_or_t; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: using is_always_equal 32778: = __detected_or_t::type, __equal, _Alloc>; 32778: 32778: template 32778: using rebind_alloc = __alloc_rebind<_Alloc, _Tp>; 32778: template 32778: using rebind_traits = allocator_traits>; 32778: 32778: private: 32778: template 32778: static auto 32778: _S_allocate(_Alloc2& __a, size_type __n, const_void_pointer __hint, int) 32778: -> decltype(__a.allocate(__n, __hint)) 32778: { return __a.allocate(__n, __hint); } 32778: 32778: template 32778: static pointer 32778: _S_allocate(_Alloc2& __a, size_type __n, const_void_pointer, ...) 32778: { return __a.allocate(__n); } 32778: 32778: template 32778: struct __construct_helper 32778: { 32778: template()->construct( 32778: std::declval<_Tp*>(), std::declval<_Args>()...))> 32778: static true_type __test(int); 32778: 32778: template 32778: static false_type __test(...); 32778: 32778: using type = decltype(__test<_Alloc>(0)); 32778: }; 32778: 32778: template 32778: using __has_construct 32778: = typename __construct_helper<_Tp, _Args...>::type; 32778: 32778: template 32778: static _Require<__has_construct<_Tp, _Args...>> 32778: _S_construct(_Alloc& __a, _Tp* __p, _Args&&... __args) 32778: noexcept(noexcept(__a.construct(__p, std::forward<_Args>(__args)...))) 32778: { __a.construct(__p, std::forward<_Args>(__args)...); } 32778: 32778: template 32778: static 32778: _Require<__and_<__not_<__has_construct<_Tp, _Args...>>, 32778: is_constructible<_Tp, _Args...>>> 32778: _S_construct(_Alloc&, _Tp* __p, _Args&&... __args) 32778: noexcept(noexcept(::new((void*)__p) 32778: _Tp(std::forward<_Args>(__args)...))) 32778: { ::new((void*)__p) _Tp(std::forward<_Args>(__args)...); } 32778: 32778: template 32778: static auto 32778: _S_destroy(_Alloc2& __a, _Tp* __p, int) 32778: noexcept(noexcept(__a.destroy(__p))) 32778: -> decltype(__a.destroy(__p)) 32778: { __a.destroy(__p); } 32778: 32778: template 32778: static void 32778: _S_destroy(_Alloc2&, _Tp* __p, ...) 32778: noexcept(noexcept(__p->~_Tp())) 32778: { __p->~_Tp(); } 32778: 32778: template 32778: static auto 32778: _S_max_size(_Alloc2& __a, int) 32778: -> decltype(__a.max_size()) 32778: { return __a.max_size(); } 32778: 32778: template 32778: static size_type 32778: _S_max_size(_Alloc2&, ...) 32778: { 32778: 32778: 32778: return __gnu_cxx::__numeric_traits::__max 32778: / sizeof(value_type); 32778: } 32778: 32778: template 32778: static auto 32778: _S_select(_Alloc2& __a, int) 32778: -> decltype(__a.select_on_container_copy_construction()) 32778: { return __a.select_on_container_copy_construction(); } 32778: 32778: template 32778: static _Alloc2 32778: _S_select(_Alloc2& __a, ...) 32778: { return __a; } 32778: 32778: public: 32778: # 304 "/usr/include/c++/9/bits/alloc_traits.h" 3 32778: static pointer 32778: allocate(_Alloc& __a, size_type __n) 32778: { return __a.allocate(__n); } 32778: # 319 "/usr/include/c++/9/bits/alloc_traits.h" 3 32778: static pointer 32778: allocate(_Alloc& __a, size_type __n, const_void_pointer __hint) 32778: { return _S_allocate(__a, __n, __hint, 0); } 32778: # 331 "/usr/include/c++/9/bits/alloc_traits.h" 3 32778: static void 32778: deallocate(_Alloc& __a, pointer __p, size_type __n) 32778: { __a.deallocate(__p, __n); } 32778: # 346 "/usr/include/c++/9/bits/alloc_traits.h" 3 32778: template 32778: static auto construct(_Alloc& __a, _Tp* __p, _Args&&... __args) 32778: noexcept(noexcept(_S_construct(__a, __p, 32778: std::forward<_Args>(__args)...))) 32778: -> decltype(_S_construct(__a, __p, std::forward<_Args>(__args)...)) 32778: { _S_construct(__a, __p, std::forward<_Args>(__args)...); } 32778: # 361 "/usr/include/c++/9/bits/alloc_traits.h" 3 32778: template 32778: static void destroy(_Alloc& __a, _Tp* __p) 32778: noexcept(noexcept(_S_destroy(__a, __p, 0))) 32778: { _S_destroy(__a, __p, 0); } 32778: # 374 "/usr/include/c++/9/bits/alloc_traits.h" 3 32778: static size_type max_size(const _Alloc& __a) noexcept 32778: { return _S_max_size(__a, 0); } 32778: # 385 "/usr/include/c++/9/bits/alloc_traits.h" 3 32778: static _Alloc 32778: select_on_container_copy_construction(const _Alloc& __rhs) 32778: { return _S_select(__rhs, 0); } 32778: }; 32778: 32778: 32778: template 32778: struct allocator_traits> 32778: { 32778: 32778: using allocator_type = allocator<_Tp>; 32778: 32778: using value_type = _Tp; 32778: 32778: 32778: using pointer = _Tp*; 32778: 32778: 32778: using const_pointer = const _Tp*; 32778: 32778: 32778: using void_pointer = void*; 32778: 32778: 32778: using const_void_pointer = const void*; 32778: 32778: 32778: using difference_type = std::ptrdiff_t; 32778: 32778: 32778: using size_type = std::size_t; 32778: 32778: 32778: using propagate_on_container_copy_assignment = false_type; 32778: 32778: 32778: using propagate_on_container_move_assignment = true_type; 32778: 32778: 32778: using propagate_on_container_swap = false_type; 32778: 32778: 32778: using is_always_equal = true_type; 32778: 32778: template 32778: using rebind_alloc = allocator<_Up>; 32778: 32778: template 32778: using rebind_traits = allocator_traits>; 32778: # 442 "/usr/include/c++/9/bits/alloc_traits.h" 3 32778: static pointer 32778: allocate(allocator_type& __a, size_type __n) 32778: { return __a.allocate(__n); } 32778: # 456 "/usr/include/c++/9/bits/alloc_traits.h" 3 32778: static pointer 32778: allocate(allocator_type& __a, size_type __n, const_void_pointer __hint) 32778: { return __a.allocate(__n, __hint); } 32778: # 468 "/usr/include/c++/9/bits/alloc_traits.h" 3 32778: static void 32778: deallocate(allocator_type& __a, pointer __p, size_type __n) 32778: { __a.deallocate(__p, __n); } 32778: # 480 "/usr/include/c++/9/bits/alloc_traits.h" 3 32778: template 32778: static void 32778: construct(allocator_type& __a, _Up* __p, _Args&&... __args) 32778: noexcept(noexcept(__a.construct(__p, std::forward<_Args>(__args)...))) 32778: { __a.construct(__p, std::forward<_Args>(__args)...); } 32778: # 493 "/usr/include/c++/9/bits/alloc_traits.h" 3 32778: template 32778: static void 32778: destroy(allocator_type& __a, _Up* __p) 32778: noexcept(noexcept(__a.destroy(__p))) 32778: { __a.destroy(__p); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: static size_type 32778: max_size(const allocator_type& __a) noexcept 32778: { return __a.max_size(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: static allocator_type 32778: select_on_container_copy_construction(const allocator_type& __rhs) 32778: { return __rhs; } 32778: }; 32778: 32778: 32778: template 32778: inline void 32778: __do_alloc_on_copy(_Alloc& __one, const _Alloc& __two, true_type) 32778: { __one = __two; } 32778: 32778: template 32778: inline void 32778: __do_alloc_on_copy(_Alloc&, const _Alloc&, false_type) 32778: { } 32778: 32778: template 32778: inline void __alloc_on_copy(_Alloc& __one, const _Alloc& __two) 32778: { 32778: typedef allocator_traits<_Alloc> __traits; 32778: typedef typename __traits::propagate_on_container_copy_assignment __pocca; 32778: __do_alloc_on_copy(__one, __two, __pocca()); 32778: } 32778: 32778: template 32778: inline _Alloc __alloc_on_copy(const _Alloc& __a) 32778: { 32778: typedef allocator_traits<_Alloc> __traits; 32778: return __traits::select_on_container_copy_construction(__a); 32778: } 32778: 32778: template 32778: inline void __do_alloc_on_move(_Alloc& __one, _Alloc& __two, true_type) 32778: { __one = std::move(__two); } 32778: 32778: template 32778: inline void __do_alloc_on_move(_Alloc&, _Alloc&, false_type) 32778: { } 32778: 32778: template 32778: inline void __alloc_on_move(_Alloc& __one, _Alloc& __two) 32778: { 32778: typedef allocator_traits<_Alloc> __traits; 32778: typedef typename __traits::propagate_on_container_move_assignment __pocma; 32778: __do_alloc_on_move(__one, __two, __pocma()); 32778: } 32778: 32778: template 32778: inline void __do_alloc_on_swap(_Alloc& __one, _Alloc& __two, true_type) 32778: { 32778: using std::swap; 32778: swap(__one, __two); 32778: } 32778: 32778: template 32778: inline void __do_alloc_on_swap(_Alloc&, _Alloc&, false_type) 32778: { } 32778: 32778: template 32778: inline void __alloc_on_swap(_Alloc& __one, _Alloc& __two) 32778: { 32778: typedef allocator_traits<_Alloc> __traits; 32778: typedef typename __traits::propagate_on_container_swap __pocs; 32778: __do_alloc_on_swap(__one, __two, __pocs()); 32778: } 32778: 32778: template, 32778: typename = void> 32778: struct __is_alloc_insertable_impl 32778: : false_type 32778: { }; 32778: 32778: template 32778: struct __is_alloc_insertable_impl<_Alloc, _Tp, _ValueT, 32778: __void_t::construct( 32778: std::declval<_Alloc&>(), std::declval<_ValueT*>(), 32778: std::declval<_Tp>()))>> 32778: : true_type 32778: { }; 32778: 32778: 32778: 32778: 32778: template 32778: struct __is_copy_insertable 32778: : __is_alloc_insertable_impl<_Alloc, 32778: typename _Alloc::value_type const&>::type 32778: { }; 32778: 32778: 32778: template 32778: struct __is_copy_insertable> 32778: : is_copy_constructible<_Tp> 32778: { }; 32778: 32778: 32778: 32778: 32778: template 32778: struct __is_move_insertable 32778: : __is_alloc_insertable_impl<_Alloc, typename _Alloc::value_type>::type 32778: { }; 32778: 32778: 32778: template 32778: struct __is_move_insertable> 32778: : is_move_constructible<_Tp> 32778: { }; 32778: 32778: 32778: template 32778: struct __is_allocator : false_type { }; 32778: 32778: template 32778: struct __is_allocator<_Alloc, 32778: __void_t().allocate(size_t{}))>> 32778: : true_type { }; 32778: 32778: template 32778: using _RequireAllocator 32778: = typename enable_if<__is_allocator<_Alloc>::value, _Alloc>::type; 32778: 32778: template 32778: using _RequireNotAllocator 32778: = typename enable_if::value, _Alloc>::type; 32778: 32778: 32778: } 32778: # 37 "/usr/include/c++/9/ext/alloc_traits.h" 2 3 32778: 32778: 32778: 32778: 32778: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct __alloc_traits 32778: 32778: : std::allocator_traits<_Alloc> 32778: 32778: { 32778: typedef _Alloc allocator_type; 32778: 32778: typedef std::allocator_traits<_Alloc> _Base_type; 32778: typedef typename _Base_type::value_type value_type; 32778: typedef typename _Base_type::pointer pointer; 32778: typedef typename _Base_type::const_pointer const_pointer; 32778: typedef typename _Base_type::size_type size_type; 32778: typedef typename _Base_type::difference_type difference_type; 32778: 32778: typedef value_type& reference; 32778: typedef const value_type& const_reference; 32778: using _Base_type::allocate; 32778: using _Base_type::deallocate; 32778: using _Base_type::construct; 32778: using _Base_type::destroy; 32778: using _Base_type::max_size; 32778: 32778: private: 32778: template 32778: using __is_custom_pointer 32778: = std::__and_, 32778: std::__not_>>; 32778: 32778: public: 32778: 32778: template 32778: static typename std::enable_if<__is_custom_pointer<_Ptr>::value>::type 32778: construct(_Alloc& __a, _Ptr __p, _Args&&... __args) 32778: noexcept(noexcept(_Base_type::construct(__a, std::__to_address(__p), 32778: std::forward<_Args>(__args)...))) 32778: { 32778: _Base_type::construct(__a, std::__to_address(__p), 32778: std::forward<_Args>(__args)...); 32778: } 32778: 32778: 32778: template 32778: static typename std::enable_if<__is_custom_pointer<_Ptr>::value>::type 32778: destroy(_Alloc& __a, _Ptr __p) 32778: noexcept(noexcept(_Base_type::destroy(__a, std::__to_address(__p)))) 32778: { _Base_type::destroy(__a, std::__to_address(__p)); } 32778: 32778: static _Alloc _S_select_on_copy(const _Alloc& __a) 32778: { return _Base_type::select_on_container_copy_construction(__a); } 32778: 32778: static void _S_on_swap(_Alloc& __a, _Alloc& __b) 32778: { std::__alloc_on_swap(__a, __b); } 32778: 32778: static constexpr bool _S_propagate_on_copy_assign() 32778: { return _Base_type::propagate_on_container_copy_assignment::value; } 32778: 32778: static constexpr bool _S_propagate_on_move_assign() 32778: { return _Base_type::propagate_on_container_move_assignment::value; } 32778: 32778: static constexpr bool _S_propagate_on_swap() 32778: { return _Base_type::propagate_on_container_swap::value; } 32778: 32778: static constexpr bool _S_always_equal() 32778: { return _Base_type::is_always_equal::value; } 32778: 32778: static constexpr bool _S_nothrow_move() 32778: { return _S_propagate_on_move_assign() || _S_always_equal(); } 32778: 32778: template 32778: struct rebind 32778: { typedef typename _Base_type::template rebind_alloc<_Tp> other; }; 32778: # 161 "/usr/include/c++/9/ext/alloc_traits.h" 3 32778: }; 32778: 32778: 32778: } 32778: # 41 "/usr/include/c++/9/bits/basic_string.h" 2 3 32778: # 52 "/usr/include/c++/9/bits/basic_string.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: namespace __cxx11 { 32778: # 76 "/usr/include/c++/9/bits/basic_string.h" 3 32778: template 32778: class basic_string 32778: { 32778: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 32778: rebind<_CharT>::other _Char_alloc_type; 32778: typedef __gnu_cxx::__alloc_traits<_Char_alloc_type> _Alloc_traits; 32778: 32778: 32778: public: 32778: typedef _Traits traits_type; 32778: typedef typename _Traits::char_type value_type; 32778: typedef _Char_alloc_type allocator_type; 32778: typedef typename _Alloc_traits::size_type size_type; 32778: typedef typename _Alloc_traits::difference_type difference_type; 32778: typedef typename _Alloc_traits::reference reference; 32778: typedef typename _Alloc_traits::const_reference const_reference; 32778: typedef typename _Alloc_traits::pointer pointer; 32778: typedef typename _Alloc_traits::const_pointer const_pointer; 32778: typedef __gnu_cxx::__normal_iterator iterator; 32778: typedef __gnu_cxx::__normal_iterator 32778: const_iterator; 32778: typedef std::reverse_iterator const_reverse_iterator; 32778: typedef std::reverse_iterator reverse_iterator; 32778: 32778: 32778: static const size_type npos = static_cast(-1); 32778: 32778: protected: 32778: 32778: 32778: 32778: 32778: typedef const_iterator __const_iterator; 32778: 32778: 32778: private: 32778: # 150 "/usr/include/c++/9/bits/basic_string.h" 3 32778: struct _Alloc_hider : allocator_type 32778: { 32778: 32778: 32778: 32778: 32778: _Alloc_hider(pointer __dat, const _Alloc& __a) 32778: : allocator_type(__a), _M_p(__dat) { } 32778: 32778: _Alloc_hider(pointer __dat, _Alloc&& __a = _Alloc()) 32778: : allocator_type(std::move(__a)), _M_p(__dat) { } 32778: 32778: 32778: pointer _M_p; 32778: }; 32778: 32778: _Alloc_hider _M_dataplus; 32778: size_type _M_string_length; 32778: 32778: enum { _S_local_capacity = 15 / sizeof(_CharT) }; 32778: 32778: union 32778: { 32778: _CharT _M_local_buf[_S_local_capacity + 1]; 32778: size_type _M_allocated_capacity; 32778: }; 32778: 32778: void 32778: _M_data(pointer __p) 32778: { _M_dataplus._M_p = __p; } 32778: 32778: void 32778: _M_length(size_type __length) 32778: { _M_string_length = __length; } 32778: 32778: pointer 32778: _M_data() const 32778: { return _M_dataplus._M_p; } 32778: 32778: pointer 32778: _M_local_data() 32778: { 32778: 32778: return std::pointer_traits::pointer_to(*_M_local_buf); 32778: 32778: 32778: 32778: } 32778: 32778: const_pointer 32778: _M_local_data() const 32778: { 32778: 32778: return std::pointer_traits::pointer_to(*_M_local_buf); 32778: 32778: 32778: 32778: } 32778: 32778: void 32778: _M_capacity(size_type __capacity) 32778: { _M_allocated_capacity = __capacity; } 32778: 32778: void 32778: _M_set_length(size_type __n) 32778: { 32778: _M_length(__n); 32778: traits_type::assign(_M_data()[__n], _CharT()); 32778: } 32778: 32778: bool 32778: _M_is_local() const 32778: { return _M_data() == _M_local_data(); } 32778: 32778: 32778: pointer 32778: _M_create(size_type&, size_type); 32778: 32778: void 32778: _M_dispose() 32778: { 32778: if (!_M_is_local()) 32778: _M_destroy(_M_allocated_capacity); 32778: } 32778: 32778: void 32778: _M_destroy(size_type __size) throw() 32778: { _Alloc_traits::deallocate(_M_get_allocator(), _M_data(), __size + 1); } 32778: 32778: 32778: 32778: template 32778: void 32778: _M_construct_aux(_InIterator __beg, _InIterator __end, 32778: std::__false_type) 32778: { 32778: typedef typename iterator_traits<_InIterator>::iterator_category _Tag; 32778: _M_construct(__beg, __end, _Tag()); 32778: } 32778: 32778: 32778: 32778: template 32778: void 32778: _M_construct_aux(_Integer __beg, _Integer __end, std::__true_type) 32778: { _M_construct_aux_2(static_cast(__beg), __end); } 32778: 32778: void 32778: _M_construct_aux_2(size_type __req, _CharT __c) 32778: { _M_construct(__req, __c); } 32778: 32778: template 32778: void 32778: _M_construct(_InIterator __beg, _InIterator __end) 32778: { 32778: typedef typename std::__is_integer<_InIterator>::__type _Integral; 32778: _M_construct_aux(__beg, __end, _Integral()); 32778: } 32778: 32778: 32778: template 32778: void 32778: _M_construct(_InIterator __beg, _InIterator __end, 32778: std::input_iterator_tag); 32778: 32778: 32778: 32778: template 32778: void 32778: _M_construct(_FwdIterator __beg, _FwdIterator __end, 32778: std::forward_iterator_tag); 32778: 32778: void 32778: _M_construct(size_type __req, _CharT __c); 32778: 32778: allocator_type& 32778: _M_get_allocator() 32778: { return _M_dataplus; } 32778: 32778: const allocator_type& 32778: _M_get_allocator() const 32778: { return _M_dataplus; } 32778: 32778: private: 32778: # 309 "/usr/include/c++/9/bits/basic_string.h" 3 32778: size_type 32778: _M_check(size_type __pos, const char* __s) const 32778: { 32778: if (__pos > this->size()) 32778: __throw_out_of_range_fmt(("%s: __pos (which is %zu) > " "this->size() (which is %zu)") 32778: , 32778: __s, __pos, this->size()); 32778: return __pos; 32778: } 32778: 32778: void 32778: _M_check_length(size_type __n1, size_type __n2, const char* __s) const 32778: { 32778: if (this->max_size() - (this->size() - __n1) < __n2) 32778: __throw_length_error((__s)); 32778: } 32778: 32778: 32778: 32778: size_type 32778: _M_limit(size_type __pos, size_type __off) const noexcept 32778: { 32778: const bool __testoff = __off < this->size() - __pos; 32778: return __testoff ? __off : this->size() - __pos; 32778: } 32778: 32778: 32778: bool 32778: _M_disjunct(const _CharT* __s) const noexcept 32778: { 32778: return (less()(__s, _M_data()) 32778: || less()(_M_data() + this->size(), __s)); 32778: } 32778: 32778: 32778: 32778: static void 32778: _S_copy(_CharT* __d, const _CharT* __s, size_type __n) 32778: { 32778: if (__n == 1) 32778: traits_type::assign(*__d, *__s); 32778: else 32778: traits_type::copy(__d, __s, __n); 32778: } 32778: 32778: static void 32778: _S_move(_CharT* __d, const _CharT* __s, size_type __n) 32778: { 32778: if (__n == 1) 32778: traits_type::assign(*__d, *__s); 32778: else 32778: traits_type::move(__d, __s, __n); 32778: } 32778: 32778: static void 32778: _S_assign(_CharT* __d, size_type __n, _CharT __c) 32778: { 32778: if (__n == 1) 32778: traits_type::assign(*__d, __c); 32778: else 32778: traits_type::assign(__d, __n, __c); 32778: } 32778: 32778: 32778: 32778: template 32778: static void 32778: _S_copy_chars(_CharT* __p, _Iterator __k1, _Iterator __k2) 32778: { 32778: for (; __k1 != __k2; ++__k1, (void)++__p) 32778: traits_type::assign(*__p, *__k1); 32778: } 32778: 32778: static void 32778: _S_copy_chars(_CharT* __p, iterator __k1, iterator __k2) noexcept 32778: { _S_copy_chars(__p, __k1.base(), __k2.base()); } 32778: 32778: static void 32778: _S_copy_chars(_CharT* __p, const_iterator __k1, const_iterator __k2) 32778: noexcept 32778: { _S_copy_chars(__p, __k1.base(), __k2.base()); } 32778: 32778: static void 32778: _S_copy_chars(_CharT* __p, _CharT* __k1, _CharT* __k2) noexcept 32778: { _S_copy(__p, __k1, __k2 - __k1); } 32778: 32778: static void 32778: _S_copy_chars(_CharT* __p, const _CharT* __k1, const _CharT* __k2) 32778: noexcept 32778: { _S_copy(__p, __k1, __k2 - __k1); } 32778: 32778: static int 32778: _S_compare(size_type __n1, size_type __n2) noexcept 32778: { 32778: const difference_type __d = difference_type(__n1 - __n2); 32778: 32778: if (__d > __gnu_cxx::__numeric_traits::__max) 32778: return __gnu_cxx::__numeric_traits::__max; 32778: else if (__d < __gnu_cxx::__numeric_traits::__min) 32778: return __gnu_cxx::__numeric_traits::__min; 32778: else 32778: return int(__d); 32778: } 32778: 32778: void 32778: _M_assign(const basic_string&); 32778: 32778: void 32778: _M_mutate(size_type __pos, size_type __len1, const _CharT* __s, 32778: size_type __len2); 32778: 32778: void 32778: _M_erase(size_type __pos, size_type __n); 32778: 32778: public: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: basic_string() 32778: noexcept(is_nothrow_default_constructible<_Alloc>::value) 32778: : _M_dataplus(_M_local_data()) 32778: { _M_set_length(0); } 32778: 32778: 32778: 32778: 32778: explicit 32778: basic_string(const _Alloc& __a) noexcept 32778: : _M_dataplus(_M_local_data(), __a) 32778: { _M_set_length(0); } 32778: 32778: 32778: 32778: 32778: 32778: basic_string(const basic_string& __str) 32778: : _M_dataplus(_M_local_data(), 32778: _Alloc_traits::_S_select_on_copy(__str._M_get_allocator())) 32778: { _M_construct(__str._M_data(), __str._M_data() + __str.length()); } 32778: # 461 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string(const basic_string& __str, size_type __pos, 32778: const _Alloc& __a = _Alloc()) 32778: : _M_dataplus(_M_local_data(), __a) 32778: { 32778: const _CharT* __start = __str._M_data() 32778: + __str._M_check(__pos, "basic_string::basic_string"); 32778: _M_construct(__start, __start + __str._M_limit(__pos, npos)); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: basic_string(const basic_string& __str, size_type __pos, 32778: size_type __n) 32778: : _M_dataplus(_M_local_data()) 32778: { 32778: const _CharT* __start = __str._M_data() 32778: + __str._M_check(__pos, "basic_string::basic_string"); 32778: _M_construct(__start, __start + __str._M_limit(__pos, __n)); 32778: } 32778: # 492 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string(const basic_string& __str, size_type __pos, 32778: size_type __n, const _Alloc& __a) 32778: : _M_dataplus(_M_local_data(), __a) 32778: { 32778: const _CharT* __start 32778: = __str._M_data() + __str._M_check(__pos, "string::string"); 32778: _M_construct(__start, __start + __str._M_limit(__pos, __n)); 32778: } 32778: # 510 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string(const _CharT* __s, size_type __n, 32778: const _Alloc& __a = _Alloc()) 32778: : _M_dataplus(_M_local_data(), __a) 32778: { _M_construct(__s, __s + __n); } 32778: # 525 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string(const _CharT* __s, const _Alloc& __a = _Alloc()) 32778: : _M_dataplus(_M_local_data(), __a) 32778: { _M_construct(__s, __s ? __s + traits_type::length(__s) : __s+npos); } 32778: # 540 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string(size_type __n, _CharT __c, const _Alloc& __a = _Alloc()) 32778: : _M_dataplus(_M_local_data(), __a) 32778: { _M_construct(__n, __c); } 32778: # 552 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string(basic_string&& __str) noexcept 32778: : _M_dataplus(_M_local_data(), std::move(__str._M_get_allocator())) 32778: { 32778: if (__str._M_is_local()) 32778: { 32778: traits_type::copy(_M_local_buf, __str._M_local_buf, 32778: _S_local_capacity + 1); 32778: } 32778: else 32778: { 32778: _M_data(__str._M_data()); 32778: _M_capacity(__str._M_allocated_capacity); 32778: } 32778: 32778: 32778: 32778: 32778: _M_length(__str.length()); 32778: __str._M_data(__str._M_local_data()); 32778: __str._M_set_length(0); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc()) 32778: : _M_dataplus(_M_local_data(), __a) 32778: { _M_construct(__l.begin(), __l.end()); } 32778: 32778: basic_string(const basic_string& __str, const _Alloc& __a) 32778: : _M_dataplus(_M_local_data(), __a) 32778: { _M_construct(__str.begin(), __str.end()); } 32778: 32778: basic_string(basic_string&& __str, const _Alloc& __a) 32778: noexcept(_Alloc_traits::_S_always_equal()) 32778: : _M_dataplus(_M_local_data(), __a) 32778: { 32778: if (__str._M_is_local()) 32778: { 32778: traits_type::copy(_M_local_buf, __str._M_local_buf, 32778: _S_local_capacity + 1); 32778: _M_length(__str.length()); 32778: __str._M_set_length(0); 32778: } 32778: else if (_Alloc_traits::_S_always_equal() 32778: || __str.get_allocator() == __a) 32778: { 32778: _M_data(__str._M_data()); 32778: _M_length(__str.length()); 32778: _M_capacity(__str._M_allocated_capacity); 32778: __str._M_data(__str._M_local_buf); 32778: __str._M_set_length(0); 32778: } 32778: else 32778: _M_construct(__str.begin(), __str.end()); 32778: } 32778: # 620 "/usr/include/c++/9/bits/basic_string.h" 3 32778: template> 32778: 32778: 32778: 32778: basic_string(_InputIterator __beg, _InputIterator __end, 32778: const _Alloc& __a = _Alloc()) 32778: : _M_dataplus(_M_local_data(), __a) 32778: { _M_construct(__beg, __end); } 32778: # 657 "/usr/include/c++/9/bits/basic_string.h" 3 32778: ~basic_string() 32778: { _M_dispose(); } 32778: 32778: 32778: 32778: 32778: 32778: basic_string& 32778: operator=(const basic_string& __str) 32778: { 32778: 32778: if (_Alloc_traits::_S_propagate_on_copy_assign()) 32778: { 32778: if (!_Alloc_traits::_S_always_equal() && !_M_is_local() 32778: && _M_get_allocator() != __str._M_get_allocator()) 32778: { 32778: 32778: 32778: if (__str.size() <= _S_local_capacity) 32778: { 32778: _M_destroy(_M_allocated_capacity); 32778: _M_data(_M_local_data()); 32778: _M_set_length(0); 32778: } 32778: else 32778: { 32778: const auto __len = __str.size(); 32778: auto __alloc = __str._M_get_allocator(); 32778: 32778: auto __ptr = _Alloc_traits::allocate(__alloc, __len + 1); 32778: _M_destroy(_M_allocated_capacity); 32778: _M_data(__ptr); 32778: _M_capacity(__len); 32778: _M_set_length(__len); 32778: } 32778: } 32778: std::__alloc_on_copy(_M_get_allocator(), __str._M_get_allocator()); 32778: } 32778: 32778: return this->assign(__str); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: basic_string& 32778: operator=(const _CharT* __s) 32778: { return this->assign(__s); } 32778: # 714 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& 32778: operator=(_CharT __c) 32778: { 32778: this->assign(1, __c); 32778: return *this; 32778: } 32778: # 731 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& 32778: operator=(basic_string&& __str) 32778: noexcept(_Alloc_traits::_S_nothrow_move()) 32778: { 32778: if (!_M_is_local() && _Alloc_traits::_S_propagate_on_move_assign() 32778: && !_Alloc_traits::_S_always_equal() 32778: && _M_get_allocator() != __str._M_get_allocator()) 32778: { 32778: 32778: _M_destroy(_M_allocated_capacity); 32778: _M_data(_M_local_data()); 32778: _M_set_length(0); 32778: } 32778: 32778: std::__alloc_on_move(_M_get_allocator(), __str._M_get_allocator()); 32778: 32778: if (__str._M_is_local()) 32778: { 32778: 32778: if (__str.size()) 32778: this->_S_copy(_M_data(), __str._M_data(), __str.size()); 32778: _M_set_length(__str.size()); 32778: } 32778: else if (_Alloc_traits::_S_propagate_on_move_assign() 32778: || _Alloc_traits::_S_always_equal() 32778: || _M_get_allocator() == __str._M_get_allocator()) 32778: { 32778: 32778: pointer __data = nullptr; 32778: size_type __capacity; 32778: if (!_M_is_local()) 32778: { 32778: if (_Alloc_traits::_S_always_equal()) 32778: { 32778: 32778: __data = _M_data(); 32778: __capacity = _M_allocated_capacity; 32778: } 32778: else 32778: _M_destroy(_M_allocated_capacity); 32778: } 32778: 32778: _M_data(__str._M_data()); 32778: _M_length(__str.length()); 32778: _M_capacity(__str._M_allocated_capacity); 32778: if (__data) 32778: { 32778: __str._M_data(__data); 32778: __str._M_capacity(__capacity); 32778: } 32778: else 32778: __str._M_data(__str._M_local_buf); 32778: } 32778: else 32778: assign(__str); 32778: __str.clear(); 32778: return *this; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: basic_string& 32778: operator=(initializer_list<_CharT> __l) 32778: { 32778: this->assign(__l.begin(), __l.size()); 32778: return *this; 32778: } 32778: # 825 "/usr/include/c++/9/bits/basic_string.h" 3 32778: iterator 32778: begin() noexcept 32778: { return iterator(_M_data()); } 32778: 32778: 32778: 32778: 32778: 32778: const_iterator 32778: begin() const noexcept 32778: { return const_iterator(_M_data()); } 32778: 32778: 32778: 32778: 32778: 32778: iterator 32778: end() noexcept 32778: { return iterator(_M_data() + this->size()); } 32778: 32778: 32778: 32778: 32778: 32778: const_iterator 32778: end() const noexcept 32778: { return const_iterator(_M_data() + this->size()); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: reverse_iterator 32778: rbegin() noexcept 32778: { return reverse_iterator(this->end()); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_reverse_iterator 32778: rbegin() const noexcept 32778: { return const_reverse_iterator(this->end()); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: reverse_iterator 32778: rend() noexcept 32778: { return reverse_iterator(this->begin()); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_reverse_iterator 32778: rend() const noexcept 32778: { return const_reverse_iterator(this->begin()); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_iterator 32778: cbegin() const noexcept 32778: { return const_iterator(this->_M_data()); } 32778: 32778: 32778: 32778: 32778: 32778: const_iterator 32778: cend() const noexcept 32778: { return const_iterator(this->_M_data() + this->size()); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_reverse_iterator 32778: crbegin() const noexcept 32778: { return const_reverse_iterator(this->end()); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_reverse_iterator 32778: crend() const noexcept 32778: { return const_reverse_iterator(this->begin()); } 32778: 32778: 32778: public: 32778: 32778: 32778: 32778: size_type 32778: size() const noexcept 32778: { return _M_string_length; } 32778: 32778: 32778: 32778: size_type 32778: length() const noexcept 32778: { return _M_string_length; } 32778: 32778: 32778: size_type 32778: max_size() const noexcept 32778: { return (_Alloc_traits::max_size(_M_get_allocator()) - 1) / 2; } 32778: # 954 "/usr/include/c++/9/bits/basic_string.h" 3 32778: void 32778: resize(size_type __n, _CharT __c); 32778: # 967 "/usr/include/c++/9/bits/basic_string.h" 3 32778: void 32778: resize(size_type __n) 32778: { this->resize(__n, _CharT()); } 32778: 32778: 32778: 32778: void 32778: shrink_to_fit() noexcept 32778: { 32778: 32778: if (capacity() > size()) 32778: { 32778: try 32778: { reserve(0); } 32778: catch(...) 32778: { } 32778: } 32778: 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: size_type 32778: capacity() const noexcept 32778: { 32778: return _M_is_local() ? size_type(_S_local_capacity) 32778: : _M_allocated_capacity; 32778: } 32778: # 1016 "/usr/include/c++/9/bits/basic_string.h" 3 32778: void 32778: reserve(size_type __res_arg = 0); 32778: 32778: 32778: 32778: 32778: void 32778: clear() noexcept 32778: { _M_set_length(0); } 32778: 32778: 32778: 32778: 32778: 32778: bool 32778: empty() const noexcept 32778: { return this->size() == 0; } 32778: # 1045 "/usr/include/c++/9/bits/basic_string.h" 3 32778: const_reference 32778: operator[] (size_type __pos) const noexcept 32778: { 32778: ; 32778: return _M_data()[__pos]; 32778: } 32778: # 1062 "/usr/include/c++/9/bits/basic_string.h" 3 32778: reference 32778: operator[](size_type __pos) 32778: { 32778: 32778: 32778: ; 32778: 32778: ; 32778: return _M_data()[__pos]; 32778: } 32778: # 1083 "/usr/include/c++/9/bits/basic_string.h" 3 32778: const_reference 32778: at(size_type __n) const 32778: { 32778: if (__n >= this->size()) 32778: __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") 32778: 32778: , 32778: __n, this->size()); 32778: return _M_data()[__n]; 32778: } 32778: # 1104 "/usr/include/c++/9/bits/basic_string.h" 3 32778: reference 32778: at(size_type __n) 32778: { 32778: if (__n >= size()) 32778: __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") 32778: 32778: , 32778: __n, this->size()); 32778: return _M_data()[__n]; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: reference 32778: front() noexcept 32778: { 32778: ; 32778: return operator[](0); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: const_reference 32778: front() const noexcept 32778: { 32778: ; 32778: return operator[](0); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: reference 32778: back() noexcept 32778: { 32778: ; 32778: return operator[](this->size() - 1); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: const_reference 32778: back() const noexcept 32778: { 32778: ; 32778: return operator[](this->size() - 1); 32778: } 32778: # 1167 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& 32778: operator+=(const basic_string& __str) 32778: { return this->append(__str); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: basic_string& 32778: operator+=(const _CharT* __s) 32778: { return this->append(__s); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: basic_string& 32778: operator+=(_CharT __c) 32778: { 32778: this->push_back(__c); 32778: return *this; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: basic_string& 32778: operator+=(initializer_list<_CharT> __l) 32778: { return this->append(__l.begin(), __l.size()); } 32778: # 1220 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& 32778: append(const basic_string& __str) 32778: { return _M_append(__str._M_data(), __str.size()); } 32778: # 1237 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& 32778: append(const basic_string& __str, size_type __pos, size_type __n = npos) 32778: { return _M_append(__str._M_data() 32778: + __str._M_check(__pos, "basic_string::append"), 32778: __str._M_limit(__pos, __n)); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: basic_string& 32778: append(const _CharT* __s, size_type __n) 32778: { 32778: ; 32778: _M_check_length(size_type(0), __n, "basic_string::append"); 32778: return _M_append(__s, __n); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: basic_string& 32778: append(const _CharT* __s) 32778: { 32778: ; 32778: const size_type __n = traits_type::length(__s); 32778: _M_check_length(size_type(0), __n, "basic_string::append"); 32778: return _M_append(__s, __n); 32778: } 32778: # 1279 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& 32778: append(size_type __n, _CharT __c) 32778: { return _M_replace_aux(this->size(), size_type(0), __n, __c); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: basic_string& 32778: append(initializer_list<_CharT> __l) 32778: { return this->append(__l.begin(), __l.size()); } 32778: # 1303 "/usr/include/c++/9/bits/basic_string.h" 3 32778: template> 32778: 32778: 32778: 32778: basic_string& 32778: append(_InputIterator __first, _InputIterator __last) 32778: { return this->replace(end(), end(), __first, __last); } 32778: # 1348 "/usr/include/c++/9/bits/basic_string.h" 3 32778: void 32778: push_back(_CharT __c) 32778: { 32778: const size_type __size = this->size(); 32778: if (__size + 1 > this->capacity()) 32778: this->_M_mutate(__size, size_type(0), 0, size_type(1)); 32778: traits_type::assign(this->_M_data()[__size], __c); 32778: this->_M_set_length(__size + 1); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: basic_string& 32778: assign(const basic_string& __str) 32778: { 32778: this->_M_assign(__str); 32778: return *this; 32778: } 32778: # 1379 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& 32778: assign(basic_string&& __str) 32778: noexcept(_Alloc_traits::_S_nothrow_move()) 32778: { 32778: 32778: 32778: return *this = std::move(__str); 32778: } 32778: # 1402 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& 32778: assign(const basic_string& __str, size_type __pos, size_type __n = npos) 32778: { return _M_replace(size_type(0), this->size(), __str._M_data() 32778: + __str._M_check(__pos, "basic_string::assign"), 32778: __str._M_limit(__pos, __n)); } 32778: # 1418 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& 32778: assign(const _CharT* __s, size_type __n) 32778: { 32778: ; 32778: return _M_replace(size_type(0), this->size(), __s, __n); 32778: } 32778: # 1434 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& 32778: assign(const _CharT* __s) 32778: { 32778: ; 32778: return _M_replace(size_type(0), this->size(), __s, 32778: traits_type::length(__s)); 32778: } 32778: # 1451 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& 32778: assign(size_type __n, _CharT __c) 32778: { return _M_replace_aux(size_type(0), this->size(), __n, __c); } 32778: # 1464 "/usr/include/c++/9/bits/basic_string.h" 3 32778: template> 32778: 32778: 32778: 32778: basic_string& 32778: assign(_InputIterator __first, _InputIterator __last) 32778: { return this->replace(begin(), end(), __first, __last); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: basic_string& 32778: assign(initializer_list<_CharT> __l) 32778: { return this->assign(__l.begin(), __l.size()); } 32778: # 1533 "/usr/include/c++/9/bits/basic_string.h" 3 32778: iterator 32778: insert(const_iterator __p, size_type __n, _CharT __c) 32778: { 32778: ; 32778: const size_type __pos = __p - begin(); 32778: this->replace(__p, __p, __n, __c); 32778: return iterator(this->_M_data() + __pos); 32778: } 32778: # 1575 "/usr/include/c++/9/bits/basic_string.h" 3 32778: template> 32778: iterator 32778: insert(const_iterator __p, _InputIterator __beg, _InputIterator __end) 32778: { 32778: ; 32778: const size_type __pos = __p - begin(); 32778: this->replace(__p, __p, __beg, __end); 32778: return iterator(this->_M_data() + __pos); 32778: } 32778: # 1611 "/usr/include/c++/9/bits/basic_string.h" 3 32778: iterator 32778: insert(const_iterator __p, initializer_list<_CharT> __l) 32778: { return this->insert(__p, __l.begin(), __l.end()); } 32778: # 1638 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& 32778: insert(size_type __pos1, const basic_string& __str) 32778: { return this->replace(__pos1, size_type(0), 32778: __str._M_data(), __str.size()); } 32778: # 1661 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& 32778: insert(size_type __pos1, const basic_string& __str, 32778: size_type __pos2, size_type __n = npos) 32778: { return this->replace(__pos1, size_type(0), __str._M_data() 32778: + __str._M_check(__pos2, "basic_string::insert"), 32778: __str._M_limit(__pos2, __n)); } 32778: # 1684 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& 32778: insert(size_type __pos, const _CharT* __s, size_type __n) 32778: { return this->replace(__pos, size_type(0), __s, __n); } 32778: # 1703 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& 32778: insert(size_type __pos, const _CharT* __s) 32778: { 32778: ; 32778: return this->replace(__pos, size_type(0), __s, 32778: traits_type::length(__s)); 32778: } 32778: # 1727 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& 32778: insert(size_type __pos, size_type __n, _CharT __c) 32778: { return _M_replace_aux(_M_check(__pos, "basic_string::insert"), 32778: size_type(0), __n, __c); } 32778: # 1745 "/usr/include/c++/9/bits/basic_string.h" 3 32778: iterator 32778: insert(__const_iterator __p, _CharT __c) 32778: { 32778: ; 32778: const size_type __pos = __p - begin(); 32778: _M_replace_aux(__pos, size_type(0), size_type(1), __c); 32778: return iterator(_M_data() + __pos); 32778: } 32778: # 1806 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& 32778: erase(size_type __pos = 0, size_type __n = npos) 32778: { 32778: _M_check(__pos, "basic_string::erase"); 32778: if (__n == npos) 32778: this->_M_set_length(__pos); 32778: else if (__n != 0) 32778: this->_M_erase(__pos, _M_limit(__pos, __n)); 32778: return *this; 32778: } 32778: # 1825 "/usr/include/c++/9/bits/basic_string.h" 3 32778: iterator 32778: erase(__const_iterator __position) 32778: { 32778: 32778: ; 32778: const size_type __pos = __position - begin(); 32778: this->_M_erase(__pos, size_type(1)); 32778: return iterator(_M_data() + __pos); 32778: } 32778: # 1844 "/usr/include/c++/9/bits/basic_string.h" 3 32778: iterator 32778: erase(__const_iterator __first, __const_iterator __last) 32778: { 32778: 32778: ; 32778: const size_type __pos = __first - begin(); 32778: if (__last == end()) 32778: this->_M_set_length(__pos); 32778: else 32778: this->_M_erase(__pos, __last - __first); 32778: return iterator(this->_M_data() + __pos); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: void 32778: pop_back() noexcept 32778: { 32778: ; 32778: _M_erase(size() - 1, 1); 32778: } 32778: # 1888 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& 32778: replace(size_type __pos, size_type __n, const basic_string& __str) 32778: { return this->replace(__pos, __n, __str._M_data(), __str.size()); } 32778: # 1910 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& 32778: replace(size_type __pos1, size_type __n1, const basic_string& __str, 32778: size_type __pos2, size_type __n2 = npos) 32778: { return this->replace(__pos1, __n1, __str._M_data() 32778: + __str._M_check(__pos2, "basic_string::replace"), 32778: __str._M_limit(__pos2, __n2)); } 32778: # 1935 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& 32778: replace(size_type __pos, size_type __n1, const _CharT* __s, 32778: size_type __n2) 32778: { 32778: ; 32778: return _M_replace(_M_check(__pos, "basic_string::replace"), 32778: _M_limit(__pos, __n1), __s, __n2); 32778: } 32778: # 1960 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& 32778: replace(size_type __pos, size_type __n1, const _CharT* __s) 32778: { 32778: ; 32778: return this->replace(__pos, __n1, __s, traits_type::length(__s)); 32778: } 32778: # 1984 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& 32778: replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c) 32778: { return _M_replace_aux(_M_check(__pos, "basic_string::replace"), 32778: _M_limit(__pos, __n1), __n2, __c); } 32778: # 2002 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& 32778: replace(__const_iterator __i1, __const_iterator __i2, 32778: const basic_string& __str) 32778: { return this->replace(__i1, __i2, __str._M_data(), __str.size()); } 32778: # 2022 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& 32778: replace(__const_iterator __i1, __const_iterator __i2, 32778: const _CharT* __s, size_type __n) 32778: { 32778: 32778: ; 32778: return this->replace(__i1 - begin(), __i2 - __i1, __s, __n); 32778: } 32778: # 2044 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& 32778: replace(__const_iterator __i1, __const_iterator __i2, const _CharT* __s) 32778: { 32778: ; 32778: return this->replace(__i1, __i2, __s, traits_type::length(__s)); 32778: } 32778: # 2065 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& 32778: replace(__const_iterator __i1, __const_iterator __i2, size_type __n, 32778: _CharT __c) 32778: { 32778: 32778: ; 32778: return _M_replace_aux(__i1 - begin(), __i2 - __i1, __n, __c); 32778: } 32778: # 2090 "/usr/include/c++/9/bits/basic_string.h" 3 32778: template> 32778: basic_string& 32778: replace(const_iterator __i1, const_iterator __i2, 32778: _InputIterator __k1, _InputIterator __k2) 32778: { 32778: 32778: ; 32778: ; 32778: return this->_M_replace_dispatch(__i1, __i2, __k1, __k2, 32778: std::__false_type()); 32778: } 32778: # 2122 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& 32778: replace(__const_iterator __i1, __const_iterator __i2, 32778: _CharT* __k1, _CharT* __k2) 32778: { 32778: 32778: ; 32778: ; 32778: return this->replace(__i1 - begin(), __i2 - __i1, 32778: __k1, __k2 - __k1); 32778: } 32778: 32778: basic_string& 32778: replace(__const_iterator __i1, __const_iterator __i2, 32778: const _CharT* __k1, const _CharT* __k2) 32778: { 32778: 32778: ; 32778: ; 32778: return this->replace(__i1 - begin(), __i2 - __i1, 32778: __k1, __k2 - __k1); 32778: } 32778: 32778: basic_string& 32778: replace(__const_iterator __i1, __const_iterator __i2, 32778: iterator __k1, iterator __k2) 32778: { 32778: 32778: ; 32778: ; 32778: return this->replace(__i1 - begin(), __i2 - __i1, 32778: __k1.base(), __k2 - __k1); 32778: } 32778: 32778: basic_string& 32778: replace(__const_iterator __i1, __const_iterator __i2, 32778: const_iterator __k1, const_iterator __k2) 32778: { 32778: 32778: ; 32778: ; 32778: return this->replace(__i1 - begin(), __i2 - __i1, 32778: __k1.base(), __k2 - __k1); 32778: } 32778: # 2181 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string& replace(const_iterator __i1, const_iterator __i2, 32778: initializer_list<_CharT> __l) 32778: { return this->replace(__i1, __i2, __l.begin(), __l.size()); } 32778: # 2241 "/usr/include/c++/9/bits/basic_string.h" 3 32778: private: 32778: template 32778: basic_string& 32778: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 32778: _Integer __n, _Integer __val, __true_type) 32778: { return _M_replace_aux(__i1 - begin(), __i2 - __i1, __n, __val); } 32778: 32778: template 32778: basic_string& 32778: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 32778: _InputIterator __k1, _InputIterator __k2, 32778: __false_type); 32778: 32778: basic_string& 32778: _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, 32778: _CharT __c); 32778: 32778: basic_string& 32778: _M_replace(size_type __pos, size_type __len1, const _CharT* __s, 32778: const size_type __len2); 32778: 32778: basic_string& 32778: _M_append(const _CharT* __s, size_type __n); 32778: 32778: public: 32778: # 2279 "/usr/include/c++/9/bits/basic_string.h" 3 32778: size_type 32778: copy(_CharT* __s, size_type __n, size_type __pos = 0) const; 32778: # 2289 "/usr/include/c++/9/bits/basic_string.h" 3 32778: void 32778: swap(basic_string& __s) noexcept; 32778: # 2299 "/usr/include/c++/9/bits/basic_string.h" 3 32778: const _CharT* 32778: c_str() const noexcept 32778: { return _M_data(); } 32778: # 2311 "/usr/include/c++/9/bits/basic_string.h" 3 32778: const _CharT* 32778: data() const noexcept 32778: { return _M_data(); } 32778: # 2330 "/usr/include/c++/9/bits/basic_string.h" 3 32778: allocator_type 32778: get_allocator() const noexcept 32778: { return _M_get_allocator(); } 32778: # 2346 "/usr/include/c++/9/bits/basic_string.h" 3 32778: size_type 32778: find(const _CharT* __s, size_type __pos, size_type __n) const 32778: noexcept; 32778: # 2360 "/usr/include/c++/9/bits/basic_string.h" 3 32778: size_type 32778: find(const basic_string& __str, size_type __pos = 0) const 32778: noexcept 32778: { return this->find(__str.data(), __pos, __str.size()); } 32778: # 2392 "/usr/include/c++/9/bits/basic_string.h" 3 32778: size_type 32778: find(const _CharT* __s, size_type __pos = 0) const noexcept 32778: { 32778: ; 32778: return this->find(__s, __pos, traits_type::length(__s)); 32778: } 32778: # 2409 "/usr/include/c++/9/bits/basic_string.h" 3 32778: size_type 32778: find(_CharT __c, size_type __pos = 0) const noexcept; 32778: # 2422 "/usr/include/c++/9/bits/basic_string.h" 3 32778: size_type 32778: rfind(const basic_string& __str, size_type __pos = npos) const 32778: noexcept 32778: { return this->rfind(__str.data(), __pos, __str.size()); } 32778: # 2456 "/usr/include/c++/9/bits/basic_string.h" 3 32778: size_type 32778: rfind(const _CharT* __s, size_type __pos, size_type __n) const 32778: noexcept; 32778: # 2470 "/usr/include/c++/9/bits/basic_string.h" 3 32778: size_type 32778: rfind(const _CharT* __s, size_type __pos = npos) const 32778: { 32778: ; 32778: return this->rfind(__s, __pos, traits_type::length(__s)); 32778: } 32778: # 2487 "/usr/include/c++/9/bits/basic_string.h" 3 32778: size_type 32778: rfind(_CharT __c, size_type __pos = npos) const noexcept; 32778: # 2501 "/usr/include/c++/9/bits/basic_string.h" 3 32778: size_type 32778: find_first_of(const basic_string& __str, size_type __pos = 0) const 32778: noexcept 32778: { return this->find_first_of(__str.data(), __pos, __str.size()); } 32778: # 2536 "/usr/include/c++/9/bits/basic_string.h" 3 32778: size_type 32778: find_first_of(const _CharT* __s, size_type __pos, size_type __n) const 32778: noexcept; 32778: # 2550 "/usr/include/c++/9/bits/basic_string.h" 3 32778: size_type 32778: find_first_of(const _CharT* __s, size_type __pos = 0) const 32778: noexcept 32778: { 32778: ; 32778: return this->find_first_of(__s, __pos, traits_type::length(__s)); 32778: } 32778: # 2570 "/usr/include/c++/9/bits/basic_string.h" 3 32778: size_type 32778: find_first_of(_CharT __c, size_type __pos = 0) const noexcept 32778: { return this->find(__c, __pos); } 32778: # 2585 "/usr/include/c++/9/bits/basic_string.h" 3 32778: size_type 32778: find_last_of(const basic_string& __str, size_type __pos = npos) const 32778: noexcept 32778: { return this->find_last_of(__str.data(), __pos, __str.size()); } 32778: # 2620 "/usr/include/c++/9/bits/basic_string.h" 3 32778: size_type 32778: find_last_of(const _CharT* __s, size_type __pos, size_type __n) const 32778: noexcept; 32778: # 2634 "/usr/include/c++/9/bits/basic_string.h" 3 32778: size_type 32778: find_last_of(const _CharT* __s, size_type __pos = npos) const 32778: noexcept 32778: { 32778: ; 32778: return this->find_last_of(__s, __pos, traits_type::length(__s)); 32778: } 32778: # 2654 "/usr/include/c++/9/bits/basic_string.h" 3 32778: size_type 32778: find_last_of(_CharT __c, size_type __pos = npos) const noexcept 32778: { return this->rfind(__c, __pos); } 32778: # 2668 "/usr/include/c++/9/bits/basic_string.h" 3 32778: size_type 32778: find_first_not_of(const basic_string& __str, size_type __pos = 0) const 32778: noexcept 32778: { return this->find_first_not_of(__str.data(), __pos, __str.size()); } 32778: # 2703 "/usr/include/c++/9/bits/basic_string.h" 3 32778: size_type 32778: find_first_not_of(const _CharT* __s, size_type __pos, 32778: size_type __n) const noexcept; 32778: # 2717 "/usr/include/c++/9/bits/basic_string.h" 3 32778: size_type 32778: find_first_not_of(const _CharT* __s, size_type __pos = 0) const 32778: noexcept 32778: { 32778: ; 32778: return this->find_first_not_of(__s, __pos, traits_type::length(__s)); 32778: } 32778: # 2735 "/usr/include/c++/9/bits/basic_string.h" 3 32778: size_type 32778: find_first_not_of(_CharT __c, size_type __pos = 0) const 32778: noexcept; 32778: # 2750 "/usr/include/c++/9/bits/basic_string.h" 3 32778: size_type 32778: find_last_not_of(const basic_string& __str, size_type __pos = npos) const 32778: noexcept 32778: { return this->find_last_not_of(__str.data(), __pos, __str.size()); } 32778: # 2785 "/usr/include/c++/9/bits/basic_string.h" 3 32778: size_type 32778: find_last_not_of(const _CharT* __s, size_type __pos, 32778: size_type __n) const noexcept; 32778: # 2799 "/usr/include/c++/9/bits/basic_string.h" 3 32778: size_type 32778: find_last_not_of(const _CharT* __s, size_type __pos = npos) const 32778: noexcept 32778: { 32778: ; 32778: return this->find_last_not_of(__s, __pos, traits_type::length(__s)); 32778: } 32778: # 2817 "/usr/include/c++/9/bits/basic_string.h" 3 32778: size_type 32778: find_last_not_of(_CharT __c, size_type __pos = npos) const 32778: noexcept; 32778: # 2833 "/usr/include/c++/9/bits/basic_string.h" 3 32778: basic_string 32778: substr(size_type __pos = 0, size_type __n = npos) const 32778: { return basic_string(*this, 32778: _M_check(__pos, "basic_string::substr"), __n); } 32778: # 2852 "/usr/include/c++/9/bits/basic_string.h" 3 32778: int 32778: compare(const basic_string& __str) const 32778: { 32778: const size_type __size = this->size(); 32778: const size_type __osize = __str.size(); 32778: const size_type __len = std::min(__size, __osize); 32778: 32778: int __r = traits_type::compare(_M_data(), __str.data(), __len); 32778: if (!__r) 32778: __r = _S_compare(__size, __osize); 32778: return __r; 32778: } 32778: # 2945 "/usr/include/c++/9/bits/basic_string.h" 3 32778: int 32778: compare(size_type __pos, size_type __n, const basic_string& __str) const; 32778: # 2971 "/usr/include/c++/9/bits/basic_string.h" 3 32778: int 32778: compare(size_type __pos1, size_type __n1, const basic_string& __str, 32778: size_type __pos2, size_type __n2 = npos) const; 32778: # 2989 "/usr/include/c++/9/bits/basic_string.h" 3 32778: int 32778: compare(const _CharT* __s) const noexcept; 32778: # 3013 "/usr/include/c++/9/bits/basic_string.h" 3 32778: int 32778: compare(size_type __pos, size_type __n1, const _CharT* __s) const; 32778: # 3040 "/usr/include/c++/9/bits/basic_string.h" 3 32778: int 32778: compare(size_type __pos, size_type __n1, const _CharT* __s, 32778: size_type __n2) const; 32778: # 3071 "/usr/include/c++/9/bits/basic_string.h" 3 32778: template friend class basic_stringbuf; 32778: }; 32778: } 32778: # 6018 "/usr/include/c++/9/bits/basic_string.h" 3 32778: template 32778: basic_string<_CharT, _Traits, _Alloc> 32778: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 32778: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 32778: { 32778: basic_string<_CharT, _Traits, _Alloc> __str(__lhs); 32778: __str.append(__rhs); 32778: return __str; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: basic_string<_CharT,_Traits,_Alloc> 32778: operator+(const _CharT* __lhs, 32778: const basic_string<_CharT,_Traits,_Alloc>& __rhs); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: basic_string<_CharT,_Traits,_Alloc> 32778: operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Alloc>& __rhs); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline basic_string<_CharT, _Traits, _Alloc> 32778: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 32778: const _CharT* __rhs) 32778: { 32778: basic_string<_CharT, _Traits, _Alloc> __str(__lhs); 32778: __str.append(__rhs); 32778: return __str; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline basic_string<_CharT, _Traits, _Alloc> 32778: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs) 32778: { 32778: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 32778: typedef typename __string_type::size_type __size_type; 32778: __string_type __str(__lhs); 32778: __str.append(__size_type(1), __rhs); 32778: return __str; 32778: } 32778: 32778: 32778: template 32778: inline basic_string<_CharT, _Traits, _Alloc> 32778: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 32778: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 32778: { return std::move(__lhs.append(__rhs)); } 32778: 32778: template 32778: inline basic_string<_CharT, _Traits, _Alloc> 32778: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 32778: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 32778: { return std::move(__rhs.insert(0, __lhs)); } 32778: 32778: template 32778: inline basic_string<_CharT, _Traits, _Alloc> 32778: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 32778: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 32778: { 32778: const auto __size = __lhs.size() + __rhs.size(); 32778: const bool __cond = (__size > __lhs.capacity() 32778: && __size <= __rhs.capacity()); 32778: return __cond ? std::move(__rhs.insert(0, __lhs)) 32778: : std::move(__lhs.append(__rhs)); 32778: } 32778: 32778: template 32778: inline basic_string<_CharT, _Traits, _Alloc> 32778: operator+(const _CharT* __lhs, 32778: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 32778: { return std::move(__rhs.insert(0, __lhs)); } 32778: 32778: template 32778: inline basic_string<_CharT, _Traits, _Alloc> 32778: operator+(_CharT __lhs, 32778: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 32778: { return std::move(__rhs.insert(0, 1, __lhs)); } 32778: 32778: template 32778: inline basic_string<_CharT, _Traits, _Alloc> 32778: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 32778: const _CharT* __rhs) 32778: { return std::move(__lhs.append(__rhs)); } 32778: 32778: template 32778: inline basic_string<_CharT, _Traits, _Alloc> 32778: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 32778: _CharT __rhs) 32778: { return std::move(__lhs.append(1, __rhs)); } 32778: # 6139 "/usr/include/c++/9/bits/basic_string.h" 3 32778: template 32778: inline bool 32778: operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 32778: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 32778: noexcept 32778: { return __lhs.compare(__rhs) == 0; } 32778: 32778: template 32778: inline 32778: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, bool>::__type 32778: operator==(const basic_string<_CharT>& __lhs, 32778: const basic_string<_CharT>& __rhs) noexcept 32778: { return (__lhs.size() == __rhs.size() 32778: && !std::char_traits<_CharT>::compare(__lhs.data(), __rhs.data(), 32778: __lhs.size())); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline bool 32778: operator==(const _CharT* __lhs, 32778: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 32778: { return __rhs.compare(__lhs) == 0; } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline bool 32778: operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 32778: const _CharT* __rhs) 32778: { return __lhs.compare(__rhs) == 0; } 32778: # 6186 "/usr/include/c++/9/bits/basic_string.h" 3 32778: template 32778: inline bool 32778: operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 32778: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 32778: noexcept 32778: { return !(__lhs == __rhs); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline bool 32778: operator!=(const _CharT* __lhs, 32778: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 32778: { return !(__lhs == __rhs); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline bool 32778: operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 32778: const _CharT* __rhs) 32778: { return !(__lhs == __rhs); } 32778: # 6224 "/usr/include/c++/9/bits/basic_string.h" 3 32778: template 32778: inline bool 32778: operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 32778: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 32778: noexcept 32778: { return __lhs.compare(__rhs) < 0; } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline bool 32778: operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 32778: const _CharT* __rhs) 32778: { return __lhs.compare(__rhs) < 0; } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline bool 32778: operator<(const _CharT* __lhs, 32778: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 32778: { return __rhs.compare(__lhs) > 0; } 32778: # 6262 "/usr/include/c++/9/bits/basic_string.h" 3 32778: template 32778: inline bool 32778: operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 32778: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 32778: noexcept 32778: { return __lhs.compare(__rhs) > 0; } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline bool 32778: operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 32778: const _CharT* __rhs) 32778: { return __lhs.compare(__rhs) > 0; } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline bool 32778: operator>(const _CharT* __lhs, 32778: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 32778: { return __rhs.compare(__lhs) < 0; } 32778: # 6300 "/usr/include/c++/9/bits/basic_string.h" 3 32778: template 32778: inline bool 32778: operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 32778: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 32778: noexcept 32778: { return __lhs.compare(__rhs) <= 0; } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline bool 32778: operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 32778: const _CharT* __rhs) 32778: { return __lhs.compare(__rhs) <= 0; } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline bool 32778: operator<=(const _CharT* __lhs, 32778: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 32778: { return __rhs.compare(__lhs) >= 0; } 32778: # 6338 "/usr/include/c++/9/bits/basic_string.h" 3 32778: template 32778: inline bool 32778: operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 32778: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 32778: noexcept 32778: { return __lhs.compare(__rhs) >= 0; } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline bool 32778: operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 32778: const _CharT* __rhs) 32778: { return __lhs.compare(__rhs) >= 0; } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline bool 32778: operator>=(const _CharT* __lhs, 32778: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 32778: { return __rhs.compare(__lhs) <= 0; } 32778: # 6376 "/usr/include/c++/9/bits/basic_string.h" 3 32778: template 32778: inline void 32778: swap(basic_string<_CharT, _Traits, _Alloc>& __lhs, 32778: basic_string<_CharT, _Traits, _Alloc>& __rhs) 32778: noexcept(noexcept(__lhs.swap(__rhs))) 32778: { __lhs.swap(__rhs); } 32778: # 6396 "/usr/include/c++/9/bits/basic_string.h" 3 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: operator>>(basic_istream<_CharT, _Traits>& __is, 32778: basic_string<_CharT, _Traits, _Alloc>& __str); 32778: 32778: template<> 32778: basic_istream& 32778: operator>>(basic_istream& __is, basic_string& __str); 32778: # 6414 "/usr/include/c++/9/bits/basic_string.h" 3 32778: template 32778: inline basic_ostream<_CharT, _Traits>& 32778: operator<<(basic_ostream<_CharT, _Traits>& __os, 32778: const basic_string<_CharT, _Traits, _Alloc>& __str) 32778: { 32778: 32778: 32778: return __ostream_insert(__os, __str.data(), __str.size()); 32778: } 32778: # 6437 "/usr/include/c++/9/bits/basic_string.h" 3 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: getline(basic_istream<_CharT, _Traits>& __is, 32778: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim); 32778: # 6454 "/usr/include/c++/9/bits/basic_string.h" 3 32778: template 32778: inline basic_istream<_CharT, _Traits>& 32778: getline(basic_istream<_CharT, _Traits>& __is, 32778: basic_string<_CharT, _Traits, _Alloc>& __str) 32778: { return std::getline(__is, __str, __is.widen('\n')); } 32778: 32778: 32778: 32778: template 32778: inline basic_istream<_CharT, _Traits>& 32778: getline(basic_istream<_CharT, _Traits>&& __is, 32778: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) 32778: { return std::getline(__is, __str, __delim); } 32778: 32778: 32778: template 32778: inline basic_istream<_CharT, _Traits>& 32778: getline(basic_istream<_CharT, _Traits>&& __is, 32778: basic_string<_CharT, _Traits, _Alloc>& __str) 32778: { return std::getline(__is, __str); } 32778: 32778: 32778: template<> 32778: basic_istream& 32778: getline(basic_istream& __in, basic_string& __str, 32778: char __delim); 32778: 32778: 32778: template<> 32778: basic_istream& 32778: getline(basic_istream& __in, basic_string& __str, 32778: wchar_t __delim); 32778: 32778: 32778: 32778: } 32778: 32778: 32778: 32778: # 1 "/usr/include/c++/9/ext/string_conversions.h" 1 3 32778: # 32 "/usr/include/c++/9/ext/string_conversions.h" 3 32778: 32778: # 33 "/usr/include/c++/9/ext/string_conversions.h" 3 32778: # 41 "/usr/include/c++/9/ext/string_conversions.h" 3 32778: # 1 "/usr/include/c++/9/cstdlib" 1 3 32778: # 39 "/usr/include/c++/9/cstdlib" 3 32778: 32778: # 40 "/usr/include/c++/9/cstdlib" 3 32778: # 75 "/usr/include/c++/9/cstdlib" 3 32778: # 1 "/usr/include/stdlib.h" 1 3 4 32778: # 25 "/usr/include/stdlib.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/libc-header-start.h" 1 3 4 32778: # 26 "/usr/include/stdlib.h" 2 3 4 32778: 32778: 32778: 32778: 32778: 32778: # 1 "/usr/lib/gcc/riscv64-linux-gnu/9/include/stddef.h" 1 3 4 32778: # 32 "/usr/include/stdlib.h" 2 3 4 32778: 32778: extern "C" { 32778: 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/waitflags.h" 1 3 4 32778: # 52 "/usr/include/riscv64-linux-gnu/bits/waitflags.h" 3 4 32778: typedef enum 32778: { 32778: P_ALL, 32778: P_PID, 32778: P_PGID 32778: } idtype_t; 32778: # 40 "/usr/include/stdlib.h" 2 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/waitstatus.h" 1 3 4 32778: # 41 "/usr/include/stdlib.h" 2 3 4 32778: # 58 "/usr/include/stdlib.h" 3 4 32778: typedef struct 32778: { 32778: int quot; 32778: int rem; 32778: } div_t; 32778: 32778: 32778: 32778: typedef struct 32778: { 32778: long int quot; 32778: long int rem; 32778: } ldiv_t; 32778: 32778: 32778: 32778: 32778: 32778: __extension__ typedef struct 32778: { 32778: long long int quot; 32778: long long int rem; 32778: } lldiv_t; 32778: # 97 "/usr/include/stdlib.h" 3 4 32778: extern size_t __ctype_get_mb_cur_max (void) throw () __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: extern double atof (const char *__nptr) 32778: throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 32778: 32778: extern int atoi (const char *__nptr) 32778: throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 32778: 32778: extern long int atol (const char *__nptr) 32778: throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: __extension__ extern long long int atoll (const char *__nptr) 32778: throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: extern double strtod (const char *__restrict __nptr, 32778: char **__restrict __endptr) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: extern float strtof (const char *__restrict __nptr, 32778: char **__restrict __endptr) throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: extern long double strtold (const char *__restrict __nptr, 32778: char **__restrict __endptr) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: # 140 "/usr/include/stdlib.h" 3 4 32778: extern _Float32 strtof32 (const char *__restrict __nptr, 32778: char **__restrict __endptr) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: extern _Float64 strtof64 (const char *__restrict __nptr, 32778: char **__restrict __endptr) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: extern _Float128 strtof128 (const char *__restrict __nptr, 32778: char **__restrict __endptr) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: extern _Float32x strtof32x (const char *__restrict __nptr, 32778: char **__restrict __endptr) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: extern _Float64x strtof64x (const char *__restrict __nptr, 32778: char **__restrict __endptr) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: # 176 "/usr/include/stdlib.h" 3 4 32778: extern long int strtol (const char *__restrict __nptr, 32778: char **__restrict __endptr, int __base) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: extern unsigned long int strtoul (const char *__restrict __nptr, 32778: char **__restrict __endptr, int __base) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: __extension__ 32778: extern long long int strtoq (const char *__restrict __nptr, 32778: char **__restrict __endptr, int __base) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: __extension__ 32778: extern unsigned long long int strtouq (const char *__restrict __nptr, 32778: char **__restrict __endptr, int __base) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: 32778: __extension__ 32778: extern long long int strtoll (const char *__restrict __nptr, 32778: char **__restrict __endptr, int __base) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: __extension__ 32778: extern unsigned long long int strtoull (const char *__restrict __nptr, 32778: char **__restrict __endptr, int __base) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: 32778: extern int strfromd (char *__dest, size_t __size, const char *__format, 32778: double __f) 32778: throw () __attribute__ ((__nonnull__ (3))); 32778: 32778: extern int strfromf (char *__dest, size_t __size, const char *__format, 32778: float __f) 32778: throw () __attribute__ ((__nonnull__ (3))); 32778: 32778: extern int strfroml (char *__dest, size_t __size, const char *__format, 32778: long double __f) 32778: throw () __attribute__ ((__nonnull__ (3))); 32778: # 232 "/usr/include/stdlib.h" 3 4 32778: extern int strfromf32 (char *__dest, size_t __size, const char * __format, 32778: _Float32 __f) 32778: throw () __attribute__ ((__nonnull__ (3))); 32778: 32778: 32778: 32778: extern int strfromf64 (char *__dest, size_t __size, const char * __format, 32778: _Float64 __f) 32778: throw () __attribute__ ((__nonnull__ (3))); 32778: 32778: 32778: 32778: extern int strfromf128 (char *__dest, size_t __size, const char * __format, 32778: _Float128 __f) 32778: throw () __attribute__ ((__nonnull__ (3))); 32778: 32778: 32778: 32778: extern int strfromf32x (char *__dest, size_t __size, const char * __format, 32778: _Float32x __f) 32778: throw () __attribute__ ((__nonnull__ (3))); 32778: 32778: 32778: 32778: extern int strfromf64x (char *__dest, size_t __size, const char * __format, 32778: _Float64x __f) 32778: throw () __attribute__ ((__nonnull__ (3))); 32778: # 274 "/usr/include/stdlib.h" 3 4 32778: extern long int strtol_l (const char *__restrict __nptr, 32778: char **__restrict __endptr, int __base, 32778: locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 4))); 32778: 32778: extern unsigned long int strtoul_l (const char *__restrict __nptr, 32778: char **__restrict __endptr, 32778: int __base, locale_t __loc) 32778: throw () __attribute__ ((__nonnull__ (1, 4))); 32778: 32778: __extension__ 32778: extern long long int strtoll_l (const char *__restrict __nptr, 32778: char **__restrict __endptr, int __base, 32778: locale_t __loc) 32778: throw () __attribute__ ((__nonnull__ (1, 4))); 32778: 32778: __extension__ 32778: extern unsigned long long int strtoull_l (const char *__restrict __nptr, 32778: char **__restrict __endptr, 32778: int __base, locale_t __loc) 32778: throw () __attribute__ ((__nonnull__ (1, 4))); 32778: 32778: extern double strtod_l (const char *__restrict __nptr, 32778: char **__restrict __endptr, locale_t __loc) 32778: throw () __attribute__ ((__nonnull__ (1, 3))); 32778: 32778: extern float strtof_l (const char *__restrict __nptr, 32778: char **__restrict __endptr, locale_t __loc) 32778: throw () __attribute__ ((__nonnull__ (1, 3))); 32778: 32778: extern long double strtold_l (const char *__restrict __nptr, 32778: char **__restrict __endptr, 32778: locale_t __loc) 32778: throw () __attribute__ ((__nonnull__ (1, 3))); 32778: # 316 "/usr/include/stdlib.h" 3 4 32778: extern _Float32 strtof32_l (const char *__restrict __nptr, 32778: char **__restrict __endptr, 32778: locale_t __loc) 32778: throw () __attribute__ ((__nonnull__ (1, 3))); 32778: 32778: 32778: 32778: extern _Float64 strtof64_l (const char *__restrict __nptr, 32778: char **__restrict __endptr, 32778: locale_t __loc) 32778: throw () __attribute__ ((__nonnull__ (1, 3))); 32778: 32778: 32778: 32778: extern _Float128 strtof128_l (const char *__restrict __nptr, 32778: char **__restrict __endptr, 32778: locale_t __loc) 32778: throw () __attribute__ ((__nonnull__ (1, 3))); 32778: 32778: 32778: 32778: extern _Float32x strtof32x_l (const char *__restrict __nptr, 32778: char **__restrict __endptr, 32778: locale_t __loc) 32778: throw () __attribute__ ((__nonnull__ (1, 3))); 32778: 32778: 32778: 32778: extern _Float64x strtof64x_l (const char *__restrict __nptr, 32778: char **__restrict __endptr, 32778: locale_t __loc) 32778: throw () __attribute__ ((__nonnull__ (1, 3))); 32778: # 360 "/usr/include/stdlib.h" 3 4 32778: extern __inline __attribute__ ((__gnu_inline__)) int 32778: __attribute__ ((__leaf__)) atoi (const char *__nptr) throw () 32778: { 32778: return (int) strtol (__nptr, (char **) __null, 10); 32778: } 32778: extern __inline __attribute__ ((__gnu_inline__)) long int 32778: __attribute__ ((__leaf__)) atol (const char *__nptr) throw () 32778: { 32778: return strtol (__nptr, (char **) __null, 10); 32778: } 32778: 32778: 32778: __extension__ extern __inline __attribute__ ((__gnu_inline__)) long long int 32778: __attribute__ ((__leaf__)) atoll (const char *__nptr) throw () 32778: { 32778: return strtoll (__nptr, (char **) __null, 10); 32778: } 32778: # 385 "/usr/include/stdlib.h" 3 4 32778: extern char *l64a (long int __n) throw () __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: extern long int a64l (const char *__s) 32778: throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/sys/types.h" 1 3 4 32778: # 27 "/usr/include/riscv64-linux-gnu/sys/types.h" 3 4 32778: extern "C" { 32778: 32778: 32778: 32778: 32778: 32778: typedef __u_char u_char; 32778: typedef __u_short u_short; 32778: typedef __u_int u_int; 32778: typedef __u_long u_long; 32778: typedef __quad_t quad_t; 32778: typedef __u_quad_t u_quad_t; 32778: typedef __fsid_t fsid_t; 32778: 32778: 32778: typedef __loff_t loff_t; 32778: 32778: 32778: 32778: 32778: typedef __ino_t ino_t; 32778: 32778: 32778: 32778: 32778: 32778: 32778: typedef __ino64_t ino64_t; 32778: 32778: 32778: 32778: 32778: typedef __dev_t dev_t; 32778: 32778: 32778: 32778: 32778: typedef __gid_t gid_t; 32778: 32778: 32778: 32778: 32778: typedef __mode_t mode_t; 32778: 32778: 32778: 32778: 32778: typedef __nlink_t nlink_t; 32778: 32778: 32778: 32778: 32778: typedef __uid_t uid_t; 32778: 32778: 32778: 32778: 32778: 32778: typedef __off_t off_t; 32778: 32778: 32778: 32778: 32778: 32778: 32778: typedef __off64_t off64_t; 32778: # 103 "/usr/include/riscv64-linux-gnu/sys/types.h" 3 4 32778: typedef __id_t id_t; 32778: 32778: 32778: 32778: 32778: typedef __ssize_t ssize_t; 32778: 32778: 32778: 32778: 32778: 32778: typedef __daddr_t daddr_t; 32778: typedef __caddr_t caddr_t; 32778: 32778: 32778: 32778: 32778: 32778: typedef __key_t key_t; 32778: # 134 "/usr/include/riscv64-linux-gnu/sys/types.h" 3 4 32778: typedef __useconds_t useconds_t; 32778: 32778: 32778: 32778: typedef __suseconds_t suseconds_t; 32778: 32778: 32778: 32778: 32778: 32778: # 1 "/usr/lib/gcc/riscv64-linux-gnu/9/include/stddef.h" 1 3 4 32778: # 145 "/usr/include/riscv64-linux-gnu/sys/types.h" 2 3 4 32778: 32778: 32778: 32778: typedef unsigned long int ulong; 32778: typedef unsigned short int ushort; 32778: typedef unsigned int uint; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: typedef __uint8_t u_int8_t; 32778: typedef __uint16_t u_int16_t; 32778: typedef __uint32_t u_int32_t; 32778: typedef __uint64_t u_int64_t; 32778: 32778: 32778: typedef int register_t __attribute__ ((__mode__ (__word__))); 32778: # 176 "/usr/include/riscv64-linux-gnu/sys/types.h" 3 4 32778: # 1 "/usr/include/endian.h" 1 3 4 32778: # 35 "/usr/include/endian.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/byteswap.h" 1 3 4 32778: # 33 "/usr/include/riscv64-linux-gnu/bits/byteswap.h" 3 4 32778: static __inline __uint16_t 32778: __bswap_16 (__uint16_t __bsx) 32778: { 32778: 32778: return __builtin_bswap16 (__bsx); 32778: 32778: 32778: 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: static __inline __uint32_t 32778: __bswap_32 (__uint32_t __bsx) 32778: { 32778: 32778: return __builtin_bswap32 (__bsx); 32778: 32778: 32778: 32778: } 32778: # 69 "/usr/include/riscv64-linux-gnu/bits/byteswap.h" 3 4 32778: __extension__ static __inline __uint64_t 32778: __bswap_64 (__uint64_t __bsx) 32778: { 32778: 32778: return __builtin_bswap64 (__bsx); 32778: 32778: 32778: 32778: } 32778: # 36 "/usr/include/endian.h" 2 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/uintn-identity.h" 1 3 4 32778: # 32 "/usr/include/riscv64-linux-gnu/bits/uintn-identity.h" 3 4 32778: static __inline __uint16_t 32778: __uint16_identity (__uint16_t __x) 32778: { 32778: return __x; 32778: } 32778: 32778: static __inline __uint32_t 32778: __uint32_identity (__uint32_t __x) 32778: { 32778: return __x; 32778: } 32778: 32778: static __inline __uint64_t 32778: __uint64_identity (__uint64_t __x) 32778: { 32778: return __x; 32778: } 32778: # 37 "/usr/include/endian.h" 2 3 4 32778: # 177 "/usr/include/riscv64-linux-gnu/sys/types.h" 2 3 4 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/sys/select.h" 1 3 4 32778: # 30 "/usr/include/riscv64-linux-gnu/sys/select.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/select.h" 1 3 4 32778: # 31 "/usr/include/riscv64-linux-gnu/sys/select.h" 2 3 4 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/types/sigset_t.h" 1 3 4 32778: 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/types/__sigset_t.h" 1 3 4 32778: 32778: 32778: 32778: 32778: typedef struct 32778: { 32778: unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; 32778: } __sigset_t; 32778: # 5 "/usr/include/riscv64-linux-gnu/bits/types/sigset_t.h" 2 3 4 32778: 32778: 32778: typedef __sigset_t sigset_t; 32778: # 34 "/usr/include/riscv64-linux-gnu/sys/select.h" 2 3 4 32778: # 49 "/usr/include/riscv64-linux-gnu/sys/select.h" 3 4 32778: typedef long int __fd_mask; 32778: # 59 "/usr/include/riscv64-linux-gnu/sys/select.h" 3 4 32778: typedef struct 32778: { 32778: 32778: 32778: 32778: __fd_mask fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; 32778: 32778: 32778: 32778: 32778: 32778: } fd_set; 32778: 32778: 32778: 32778: 32778: 32778: 32778: typedef __fd_mask fd_mask; 32778: # 91 "/usr/include/riscv64-linux-gnu/sys/select.h" 3 4 32778: extern "C" { 32778: # 101 "/usr/include/riscv64-linux-gnu/sys/select.h" 3 4 32778: extern int select (int __nfds, fd_set *__restrict __readfds, 32778: fd_set *__restrict __writefds, 32778: fd_set *__restrict __exceptfds, 32778: struct timeval *__restrict __timeout); 32778: # 113 "/usr/include/riscv64-linux-gnu/sys/select.h" 3 4 32778: extern int pselect (int __nfds, fd_set *__restrict __readfds, 32778: fd_set *__restrict __writefds, 32778: fd_set *__restrict __exceptfds, 32778: const struct timespec *__restrict __timeout, 32778: const __sigset_t *__restrict __sigmask); 32778: 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/select2.h" 1 3 4 32778: # 24 "/usr/include/riscv64-linux-gnu/bits/select2.h" 3 4 32778: extern long int __fdelt_chk (long int __d); 32778: extern long int __fdelt_warn (long int __d) 32778: __attribute__((__warning__ ("bit outside of fd_set selected"))); 32778: # 124 "/usr/include/riscv64-linux-gnu/sys/select.h" 2 3 4 32778: 32778: 32778: } 32778: # 180 "/usr/include/riscv64-linux-gnu/sys/types.h" 2 3 4 32778: 32778: 32778: 32778: 32778: 32778: typedef __blksize_t blksize_t; 32778: 32778: 32778: 32778: 32778: 32778: 32778: typedef __blkcnt_t blkcnt_t; 32778: 32778: 32778: 32778: typedef __fsblkcnt_t fsblkcnt_t; 32778: 32778: 32778: 32778: typedef __fsfilcnt_t fsfilcnt_t; 32778: # 219 "/usr/include/riscv64-linux-gnu/sys/types.h" 3 4 32778: typedef __blkcnt64_t blkcnt64_t; 32778: typedef __fsblkcnt64_t fsblkcnt64_t; 32778: typedef __fsfilcnt64_t fsfilcnt64_t; 32778: # 230 "/usr/include/riscv64-linux-gnu/sys/types.h" 3 4 32778: } 32778: # 395 "/usr/include/stdlib.h" 2 3 4 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern long int random (void) throw (); 32778: 32778: 32778: extern void srandom (unsigned int __seed) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern char *initstate (unsigned int __seed, char *__statebuf, 32778: size_t __statelen) throw () __attribute__ ((__nonnull__ (2))); 32778: 32778: 32778: 32778: extern char *setstate (char *__statebuf) throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: struct random_data 32778: { 32778: int32_t *fptr; 32778: int32_t *rptr; 32778: int32_t *state; 32778: int rand_type; 32778: int rand_deg; 32778: int rand_sep; 32778: int32_t *end_ptr; 32778: }; 32778: 32778: extern int random_r (struct random_data *__restrict __buf, 32778: int32_t *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: extern int srandom_r (unsigned int __seed, struct random_data *__buf) 32778: throw () __attribute__ ((__nonnull__ (2))); 32778: 32778: extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, 32778: size_t __statelen, 32778: struct random_data *__restrict __buf) 32778: throw () __attribute__ ((__nonnull__ (2, 4))); 32778: 32778: extern int setstate_r (char *__restrict __statebuf, 32778: struct random_data *__restrict __buf) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: 32778: 32778: 32778: extern int rand (void) throw (); 32778: 32778: extern void srand (unsigned int __seed) throw (); 32778: 32778: 32778: 32778: extern int rand_r (unsigned int *__seed) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern double drand48 (void) throw (); 32778: extern double erand48 (unsigned short int __xsubi[3]) throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern long int lrand48 (void) throw (); 32778: extern long int nrand48 (unsigned short int __xsubi[3]) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern long int mrand48 (void) throw (); 32778: extern long int jrand48 (unsigned short int __xsubi[3]) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: extern void srand48 (long int __seedval) throw (); 32778: extern unsigned short int *seed48 (unsigned short int __seed16v[3]) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: extern void lcong48 (unsigned short int __param[7]) throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: 32778: 32778: struct drand48_data 32778: { 32778: unsigned short int __x[3]; 32778: unsigned short int __old_x[3]; 32778: unsigned short int __c; 32778: unsigned short int __init; 32778: __extension__ unsigned long long int __a; 32778: 32778: }; 32778: 32778: 32778: extern int drand48_r (struct drand48_data *__restrict __buffer, 32778: double *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2))); 32778: extern int erand48_r (unsigned short int __xsubi[3], 32778: struct drand48_data *__restrict __buffer, 32778: double *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: extern int lrand48_r (struct drand48_data *__restrict __buffer, 32778: long int *__restrict __result) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: extern int nrand48_r (unsigned short int __xsubi[3], 32778: struct drand48_data *__restrict __buffer, 32778: long int *__restrict __result) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: extern int mrand48_r (struct drand48_data *__restrict __buffer, 32778: long int *__restrict __result) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: extern int jrand48_r (unsigned short int __xsubi[3], 32778: struct drand48_data *__restrict __buffer, 32778: long int *__restrict __result) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: extern int srand48_r (long int __seedval, struct drand48_data *__buffer) 32778: throw () __attribute__ ((__nonnull__ (2))); 32778: 32778: extern int seed48_r (unsigned short int __seed16v[3], 32778: struct drand48_data *__buffer) throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: extern int lcong48_r (unsigned short int __param[7], 32778: struct drand48_data *__buffer) 32778: throw () __attribute__ ((__nonnull__ (1, 2))); 32778: 32778: 32778: 32778: 32778: extern void *malloc (size_t __size) throw () __attribute__ ((__malloc__)) 32778: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 32778: 32778: extern void *calloc (size_t __nmemb, size_t __size) 32778: throw () __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1, 2))) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern void *realloc (void *__ptr, size_t __size) 32778: throw () __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2))); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 32778: throw () __attribute__ ((__warn_unused_result__)) 32778: __attribute__ ((__alloc_size__ (2, 3))); 32778: 32778: 32778: 32778: extern void free (void *__ptr) throw (); 32778: 32778: 32778: # 1 "/usr/include/alloca.h" 1 3 4 32778: # 24 "/usr/include/alloca.h" 3 4 32778: # 1 "/usr/lib/gcc/riscv64-linux-gnu/9/include/stddef.h" 1 3 4 32778: # 25 "/usr/include/alloca.h" 2 3 4 32778: 32778: extern "C" { 32778: 32778: 32778: 32778: 32778: 32778: extern void *alloca (size_t __size) throw (); 32778: 32778: 32778: 32778: 32778: 32778: } 32778: # 569 "/usr/include/stdlib.h" 2 3 4 32778: 32778: 32778: 32778: 32778: 32778: extern void *valloc (size_t __size) throw () __attribute__ ((__malloc__)) 32778: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) 32778: throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: extern void *aligned_alloc (size_t __alignment, size_t __size) 32778: throw () __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (2))) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: extern void abort (void) throw () __attribute__ ((__noreturn__)); 32778: 32778: 32778: 32778: extern int atexit (void (*__func) (void)) throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: 32778: extern "C++" int at_quick_exit (void (*__func) (void)) 32778: throw () __asm ("at_quick_exit") __attribute__ ((__nonnull__ (1))); 32778: # 610 "/usr/include/stdlib.h" 3 4 32778: extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: 32778: 32778: extern void exit (int __status) throw () __attribute__ ((__noreturn__)); 32778: 32778: 32778: 32778: 32778: 32778: extern void quick_exit (int __status) throw () __attribute__ ((__noreturn__)); 32778: 32778: 32778: 32778: 32778: 32778: extern void _Exit (int __status) throw () __attribute__ ((__noreturn__)); 32778: 32778: 32778: 32778: 32778: extern char *getenv (const char *__name) throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: extern char *secure_getenv (const char *__name) 32778: throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int putenv (char *__string) throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: 32778: 32778: extern int setenv (const char *__name, const char *__value, int __replace) 32778: throw () __attribute__ ((__nonnull__ (2))); 32778: 32778: 32778: extern int unsetenv (const char *__name) throw () __attribute__ ((__nonnull__ (1))); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int clearenv (void) throw (); 32778: # 675 "/usr/include/stdlib.h" 3 4 32778: extern char *mktemp (char *__template) throw () __attribute__ ((__nonnull__ (1))); 32778: # 688 "/usr/include/stdlib.h" 3 4 32778: extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 32778: # 698 "/usr/include/stdlib.h" 3 4 32778: extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 32778: # 710 "/usr/include/stdlib.h" 3 4 32778: extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 32778: # 720 "/usr/include/stdlib.h" 3 4 32778: extern int mkstemps64 (char *__template, int __suffixlen) 32778: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 32778: # 731 "/usr/include/stdlib.h" 3 4 32778: extern char *mkdtemp (char *__template) throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 32778: # 742 "/usr/include/stdlib.h" 3 4 32778: extern int mkostemp (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 32778: # 752 "/usr/include/stdlib.h" 3 4 32778: extern int mkostemp64 (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 32778: # 762 "/usr/include/stdlib.h" 3 4 32778: extern int mkostemps (char *__template, int __suffixlen, int __flags) 32778: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 32778: # 774 "/usr/include/stdlib.h" 3 4 32778: extern int mkostemps64 (char *__template, int __suffixlen, int __flags) 32778: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 32778: # 784 "/usr/include/stdlib.h" 3 4 32778: extern int system (const char *__command) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: 32778: extern char *canonicalize_file_name (const char *__name) 32778: throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 32778: # 800 "/usr/include/stdlib.h" 3 4 32778: extern char *realpath (const char *__restrict __name, 32778: char *__restrict __resolved) throw () __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: 32778: 32778: typedef int (*__compar_fn_t) (const void *, const void *); 32778: 32778: 32778: typedef __compar_fn_t comparison_fn_t; 32778: 32778: 32778: 32778: typedef int (*__compar_d_fn_t) (const void *, const void *, void *); 32778: 32778: 32778: 32778: 32778: extern void *bsearch (const void *__key, const void *__base, 32778: size_t __nmemb, size_t __size, __compar_fn_t __compar) 32778: __attribute__ ((__nonnull__ (1, 2, 5))) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/stdlib-bsearch.h" 1 3 4 32778: # 19 "/usr/include/riscv64-linux-gnu/bits/stdlib-bsearch.h" 3 4 32778: extern __inline __attribute__ ((__gnu_inline__)) void * 32778: bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, 32778: __compar_fn_t __compar) 32778: { 32778: size_t __l, __u, __idx; 32778: const void *__p; 32778: int __comparison; 32778: 32778: __l = 0; 32778: __u = __nmemb; 32778: while (__l < __u) 32778: { 32778: __idx = (__l + __u) / 2; 32778: __p = (void *) (((const char *) __base) + (__idx * __size)); 32778: __comparison = (*__compar) (__key, __p); 32778: if (__comparison < 0) 32778: __u = __idx; 32778: else if (__comparison > 0) 32778: __l = __idx + 1; 32778: else 32778: return (void *) __p; 32778: } 32778: 32778: return __null; 32778: } 32778: # 826 "/usr/include/stdlib.h" 2 3 4 32778: 32778: 32778: 32778: 32778: extern void qsort (void *__base, size_t __nmemb, size_t __size, 32778: __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); 32778: 32778: extern void qsort_r (void *__base, size_t __nmemb, size_t __size, 32778: __compar_d_fn_t __compar, void *__arg) 32778: __attribute__ ((__nonnull__ (1, 4))); 32778: 32778: 32778: 32778: 32778: extern int abs (int __x) throw () __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 32778: extern long int labs (long int __x) throw () __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: __extension__ extern long long int llabs (long long int __x) 32778: throw () __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern div_t div (int __numer, int __denom) 32778: throw () __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 32778: extern ldiv_t ldiv (long int __numer, long int __denom) 32778: throw () __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: __extension__ extern lldiv_t lldiv (long long int __numer, 32778: long long int __denom) 32778: throw () __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 32778: # 872 "/usr/include/stdlib.h" 3 4 32778: extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, 32778: int *__restrict __sign) throw () __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, 32778: int *__restrict __sign) throw () __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: extern char *gcvt (double __value, int __ndigit, char *__buf) 32778: throw () __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: extern char *qecvt (long double __value, int __ndigit, 32778: int *__restrict __decpt, int *__restrict __sign) 32778: throw () __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 32778: extern char *qfcvt (long double __value, int __ndigit, 32778: int *__restrict __decpt, int *__restrict __sign) 32778: throw () __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 32778: extern char *qgcvt (long double __value, int __ndigit, char *__buf) 32778: throw () __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, 32778: int *__restrict __sign, char *__restrict __buf, 32778: size_t __len) throw () __attribute__ ((__nonnull__ (3, 4, 5))); 32778: extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, 32778: int *__restrict __sign, char *__restrict __buf, 32778: size_t __len) throw () __attribute__ ((__nonnull__ (3, 4, 5))); 32778: 32778: extern int qecvt_r (long double __value, int __ndigit, 32778: int *__restrict __decpt, int *__restrict __sign, 32778: char *__restrict __buf, size_t __len) 32778: throw () __attribute__ ((__nonnull__ (3, 4, 5))); 32778: extern int qfcvt_r (long double __value, int __ndigit, 32778: int *__restrict __decpt, int *__restrict __sign, 32778: char *__restrict __buf, size_t __len) 32778: throw () __attribute__ ((__nonnull__ (3, 4, 5))); 32778: 32778: 32778: 32778: 32778: 32778: extern int mblen (const char *__s, size_t __n) throw (); 32778: 32778: 32778: extern int mbtowc (wchar_t *__restrict __pwc, 32778: const char *__restrict __s, size_t __n) throw (); 32778: 32778: 32778: extern int wctomb (char *__s, wchar_t __wchar) throw (); 32778: 32778: 32778: 32778: extern size_t mbstowcs (wchar_t *__restrict __pwcs, 32778: const char *__restrict __s, size_t __n) throw (); 32778: 32778: extern size_t wcstombs (char *__restrict __s, 32778: const wchar_t *__restrict __pwcs, size_t __n) 32778: throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int rpmatch (const char *__response) throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 32778: # 957 "/usr/include/stdlib.h" 3 4 32778: extern int getsubopt (char **__restrict __optionp, 32778: char *const *__restrict __tokens, 32778: char **__restrict __valuep) 32778: throw () __attribute__ ((__nonnull__ (1, 2, 3))) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int posix_openpt (int __oflag) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int grantpt (int __fd) throw (); 32778: 32778: 32778: 32778: extern int unlockpt (int __fd) throw (); 32778: 32778: 32778: 32778: 32778: extern char *ptsname (int __fd) throw () __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int ptsname_r (int __fd, char *__buf, size_t __buflen) 32778: throw () __attribute__ ((__nonnull__ (2))); 32778: 32778: 32778: extern int getpt (void); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int getloadavg (double __loadavg[], int __nelem) 32778: throw () __attribute__ ((__nonnull__ (1))); 32778: # 1013 "/usr/include/stdlib.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/stdlib-float.h" 1 3 4 32778: # 24 "/usr/include/riscv64-linux-gnu/bits/stdlib-float.h" 3 4 32778: extern __inline __attribute__ ((__gnu_inline__)) double 32778: __attribute__ ((__leaf__)) atof (const char *__nptr) throw () 32778: { 32778: return strtod (__nptr, (char **) __null); 32778: } 32778: # 1014 "/usr/include/stdlib.h" 2 3 4 32778: 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/stdlib.h" 1 3 4 32778: # 23 "/usr/include/riscv64-linux-gnu/bits/stdlib.h" 3 4 32778: extern char *__realpath_chk (const char *__restrict __name, 32778: char *__restrict __resolved, 32778: size_t __resolvedlen) throw () __attribute__ ((__warn_unused_result__)); 32778: extern char *__realpath_alias (const char *__restrict __name, char *__restrict __resolved) throw () __asm__ ("" "realpath") 32778: 32778: __attribute__ ((__warn_unused_result__)); 32778: extern char *__realpath_chk_warn (const char *__restrict __name, char *__restrict __resolved, size_t __resolvedlen) throw () __asm__ ("" "__realpath_chk") 32778: 32778: 32778: __attribute__ ((__warn_unused_result__)) 32778: __attribute__((__warning__ ("second argument of realpath must be either NULL or at " "least PATH_MAX bytes long buffer"))) 32778: ; 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * 32778: __attribute__ ((__leaf__)) realpath (const char *__restrict __name, char *__restrict __resolved) throw () 32778: { 32778: if (__builtin_object_size (__resolved, 2 > 1) != (size_t) -1) 32778: { 32778: 32778: 32778: 32778: 32778: return __realpath_chk (__name, __resolved, __builtin_object_size (__resolved, 2 > 1)); 32778: } 32778: 32778: return __realpath_alias (__name, __resolved); 32778: } 32778: 32778: 32778: extern int __ptsname_r_chk (int __fd, char *__buf, size_t __buflen, 32778: size_t __nreal) throw () __attribute__ ((__nonnull__ (2))); 32778: extern int __ptsname_r_alias (int __fd, char *__buf, size_t __buflen) throw () __asm__ ("" "ptsname_r") 32778: 32778: __attribute__ ((__nonnull__ (2))); 32778: extern int __ptsname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) throw () __asm__ ("" "__ptsname_r_chk") 32778: 32778: 32778: __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ptsname_r called with buflen bigger than " "size of buf"))) 32778: ; 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 32778: __attribute__ ((__leaf__)) ptsname_r (int __fd, char *__buf, size_t __buflen) throw () 32778: { 32778: if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) 32778: { 32778: if (!__builtin_constant_p (__buflen)) 32778: return __ptsname_r_chk (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)); 32778: if (__buflen > __builtin_object_size (__buf, 2 > 1)) 32778: return __ptsname_r_chk_warn (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)); 32778: } 32778: return __ptsname_r_alias (__fd, __buf, __buflen); 32778: } 32778: 32778: 32778: extern int __wctomb_chk (char *__s, wchar_t __wchar, size_t __buflen) 32778: throw () __attribute__ ((__warn_unused_result__)); 32778: extern int __wctomb_alias (char *__s, wchar_t __wchar) throw () __asm__ ("" "wctomb") 32778: __attribute__ ((__warn_unused_result__)); 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) int 32778: __attribute__ ((__leaf__)) wctomb (char *__s, wchar_t __wchar) throw () 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 && 16 > __builtin_object_size (__s, 2 > 1)) 32778: return __wctomb_chk (__s, __wchar, __builtin_object_size (__s, 2 > 1)); 32778: return __wctomb_alias (__s, __wchar); 32778: } 32778: 32778: 32778: extern size_t __mbstowcs_chk (wchar_t *__restrict __dst, 32778: const char *__restrict __src, 32778: size_t __len, size_t __dstlen) throw (); 32778: extern size_t __mbstowcs_alias (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) throw () __asm__ ("" "mbstowcs") 32778: 32778: 32778: ; 32778: extern size_t __mbstowcs_chk_warn (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, size_t __dstlen) throw () __asm__ ("" "__mbstowcs_chk") 32778: 32778: 32778: 32778: __attribute__((__warning__ ("mbstowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 32778: ; 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 32778: __attribute__ ((__leaf__)) mbstowcs (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) throw () 32778: 32778: { 32778: if (__builtin_object_size (__dst, 2 > 1) != (size_t) -1) 32778: { 32778: if (!__builtin_constant_p (__len)) 32778: return __mbstowcs_chk (__dst, __src, __len, 32778: __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t)); 32778: 32778: if (__len > __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t)) 32778: return __mbstowcs_chk_warn (__dst, __src, __len, 32778: __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t)); 32778: } 32778: return __mbstowcs_alias (__dst, __src, __len); 32778: } 32778: 32778: 32778: extern size_t __wcstombs_chk (char *__restrict __dst, 32778: const wchar_t *__restrict __src, 32778: size_t __len, size_t __dstlen) throw (); 32778: extern size_t __wcstombs_alias (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) throw () __asm__ ("" "wcstombs") 32778: 32778: 32778: ; 32778: extern size_t __wcstombs_chk_warn (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len, size_t __dstlen) throw () __asm__ ("" "__wcstombs_chk") 32778: 32778: 32778: 32778: __attribute__((__warning__ ("wcstombs called with dst buffer smaller than len"))); 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 32778: __attribute__ ((__leaf__)) wcstombs (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) throw () 32778: 32778: { 32778: if (__builtin_object_size (__dst, 2 > 1) != (size_t) -1) 32778: { 32778: if (!__builtin_constant_p (__len)) 32778: return __wcstombs_chk (__dst, __src, __len, __builtin_object_size (__dst, 2 > 1)); 32778: if (__len > __builtin_object_size (__dst, 2 > 1)) 32778: return __wcstombs_chk_warn (__dst, __src, __len, __builtin_object_size (__dst, 2 > 1)); 32778: } 32778: return __wcstombs_alias (__dst, __src, __len); 32778: } 32778: # 1018 "/usr/include/stdlib.h" 2 3 4 32778: 32778: 32778: 32778: 32778: 32778: } 32778: # 76 "/usr/include/c++/9/cstdlib" 2 3 32778: 32778: # 1 "/usr/include/c++/9/bits/std_abs.h" 1 3 32778: # 33 "/usr/include/c++/9/bits/std_abs.h" 3 32778: 32778: # 34 "/usr/include/c++/9/bits/std_abs.h" 3 32778: # 46 "/usr/include/c++/9/bits/std_abs.h" 3 32778: extern "C++" 32778: { 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: using ::abs; 32778: 32778: 32778: inline long 32778: abs(long __i) { return __builtin_labs(__i); } 32778: 32778: 32778: 32778: inline long long 32778: abs(long long __x) { return __builtin_llabs (__x); } 32778: # 70 "/usr/include/c++/9/bits/std_abs.h" 3 32778: inline constexpr double 32778: abs(double __x) 32778: { return __builtin_fabs(__x); } 32778: 32778: inline constexpr float 32778: abs(float __x) 32778: { return __builtin_fabsf(__x); } 32778: 32778: inline constexpr long double 32778: abs(long double __x) 32778: { return __builtin_fabsl(__x); } 32778: # 107 "/usr/include/c++/9/bits/std_abs.h" 3 32778: 32778: } 32778: } 32778: # 78 "/usr/include/c++/9/cstdlib" 2 3 32778: # 121 "/usr/include/c++/9/cstdlib" 3 32778: extern "C++" 32778: { 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: using ::div_t; 32778: using ::ldiv_t; 32778: 32778: using ::abort; 32778: 32778: 32778: 32778: using ::atexit; 32778: 32778: 32778: using ::at_quick_exit; 32778: 32778: 32778: using ::atof; 32778: using ::atoi; 32778: using ::atol; 32778: using ::bsearch; 32778: using ::calloc; 32778: using ::div; 32778: using ::exit; 32778: using ::free; 32778: using ::getenv; 32778: using ::labs; 32778: using ::ldiv; 32778: using ::malloc; 32778: 32778: using ::mblen; 32778: using ::mbstowcs; 32778: using ::mbtowc; 32778: 32778: using ::qsort; 32778: 32778: 32778: using ::quick_exit; 32778: 32778: 32778: using ::rand; 32778: using ::realloc; 32778: using ::srand; 32778: using ::strtod; 32778: using ::strtol; 32778: using ::strtoul; 32778: using ::system; 32778: 32778: using ::wcstombs; 32778: using ::wctomb; 32778: 32778: 32778: 32778: inline ldiv_t 32778: div(long __i, long __j) { return ldiv(__i, __j); } 32778: 32778: 32778: 32778: 32778: } 32778: # 195 "/usr/include/c++/9/cstdlib" 3 32778: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: using ::lldiv_t; 32778: 32778: 32778: 32778: 32778: 32778: using ::_Exit; 32778: 32778: 32778: 32778: using ::llabs; 32778: 32778: inline lldiv_t 32778: div(long long __n, long long __d) 32778: { lldiv_t __q; __q.quot = __n / __d; __q.rem = __n % __d; return __q; } 32778: 32778: using ::lldiv; 32778: # 227 "/usr/include/c++/9/cstdlib" 3 32778: using ::atoll; 32778: using ::strtoll; 32778: using ::strtoull; 32778: 32778: using ::strtof; 32778: using ::strtold; 32778: 32778: 32778: } 32778: 32778: namespace std 32778: { 32778: 32778: using ::__gnu_cxx::lldiv_t; 32778: 32778: using ::__gnu_cxx::_Exit; 32778: 32778: using ::__gnu_cxx::llabs; 32778: using ::__gnu_cxx::div; 32778: using ::__gnu_cxx::lldiv; 32778: 32778: using ::__gnu_cxx::atoll; 32778: using ::__gnu_cxx::strtof; 32778: using ::__gnu_cxx::strtoll; 32778: using ::__gnu_cxx::strtoull; 32778: using ::__gnu_cxx::strtold; 32778: } 32778: 32778: 32778: 32778: } 32778: # 42 "/usr/include/c++/9/ext/string_conversions.h" 2 3 32778: # 1 "/usr/include/c++/9/cwchar" 1 3 32778: # 39 "/usr/include/c++/9/cwchar" 3 32778: 32778: # 40 "/usr/include/c++/9/cwchar" 3 32778: # 43 "/usr/include/c++/9/ext/string_conversions.h" 2 3 32778: # 1 "/usr/include/c++/9/cstdio" 1 3 32778: # 39 "/usr/include/c++/9/cstdio" 3 32778: 32778: # 40 "/usr/include/c++/9/cstdio" 3 32778: 32778: 32778: # 1 "/usr/include/stdio.h" 1 3 4 32778: # 27 "/usr/include/stdio.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/libc-header-start.h" 1 3 4 32778: # 28 "/usr/include/stdio.h" 2 3 4 32778: 32778: extern "C" { 32778: 32778: 32778: 32778: # 1 "/usr/lib/gcc/riscv64-linux-gnu/9/include/stddef.h" 1 3 4 32778: # 34 "/usr/include/stdio.h" 2 3 4 32778: 32778: 32778: # 1 "/usr/lib/gcc/riscv64-linux-gnu/9/include/stdarg.h" 1 3 4 32778: # 37 "/usr/include/stdio.h" 2 3 4 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/types/__fpos_t.h" 1 3 4 32778: # 10 "/usr/include/riscv64-linux-gnu/bits/types/__fpos_t.h" 3 4 32778: typedef struct _G_fpos_t 32778: { 32778: __off_t __pos; 32778: __mbstate_t __state; 32778: } __fpos_t; 32778: # 40 "/usr/include/stdio.h" 2 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/types/__fpos64_t.h" 1 3 4 32778: # 10 "/usr/include/riscv64-linux-gnu/bits/types/__fpos64_t.h" 3 4 32778: typedef struct _G_fpos64_t 32778: { 32778: __off64_t __pos; 32778: __mbstate_t __state; 32778: } __fpos64_t; 32778: # 41 "/usr/include/stdio.h" 2 3 4 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/types/struct_FILE.h" 1 3 4 32778: # 35 "/usr/include/riscv64-linux-gnu/bits/types/struct_FILE.h" 3 4 32778: struct _IO_FILE; 32778: struct _IO_marker; 32778: struct _IO_codecvt; 32778: struct _IO_wide_data; 32778: 32778: 32778: 32778: 32778: typedef void _IO_lock_t; 32778: 32778: 32778: 32778: 32778: 32778: struct _IO_FILE 32778: { 32778: int _flags; 32778: 32778: 32778: char *_IO_read_ptr; 32778: char *_IO_read_end; 32778: char *_IO_read_base; 32778: char *_IO_write_base; 32778: char *_IO_write_ptr; 32778: char *_IO_write_end; 32778: char *_IO_buf_base; 32778: char *_IO_buf_end; 32778: 32778: 32778: char *_IO_save_base; 32778: char *_IO_backup_base; 32778: char *_IO_save_end; 32778: 32778: struct _IO_marker *_markers; 32778: 32778: struct _IO_FILE *_chain; 32778: 32778: int _fileno; 32778: int _flags2; 32778: __off_t _old_offset; 32778: 32778: 32778: unsigned short _cur_column; 32778: signed char _vtable_offset; 32778: char _shortbuf[1]; 32778: 32778: _IO_lock_t *_lock; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: __off64_t _offset; 32778: 32778: struct _IO_codecvt *_codecvt; 32778: struct _IO_wide_data *_wide_data; 32778: struct _IO_FILE *_freeres_list; 32778: void *_freeres_buf; 32778: size_t __pad5; 32778: int _mode; 32778: 32778: char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)]; 32778: }; 32778: # 44 "/usr/include/stdio.h" 2 3 4 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/types/cookie_io_functions_t.h" 1 3 4 32778: # 27 "/usr/include/riscv64-linux-gnu/bits/types/cookie_io_functions_t.h" 3 4 32778: typedef __ssize_t cookie_read_function_t (void *__cookie, char *__buf, 32778: size_t __nbytes); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: typedef __ssize_t cookie_write_function_t (void *__cookie, const char *__buf, 32778: size_t __nbytes); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: typedef int cookie_seek_function_t (void *__cookie, __off64_t *__pos, int __w); 32778: 32778: 32778: typedef int cookie_close_function_t (void *__cookie); 32778: 32778: 32778: 32778: 32778: 32778: 32778: typedef struct _IO_cookie_io_functions_t 32778: { 32778: cookie_read_function_t *read; 32778: cookie_write_function_t *write; 32778: cookie_seek_function_t *seek; 32778: cookie_close_function_t *close; 32778: } cookie_io_functions_t; 32778: # 47 "/usr/include/stdio.h" 2 3 4 32778: 32778: 32778: 32778: 32778: 32778: typedef __gnuc_va_list va_list; 32778: # 84 "/usr/include/stdio.h" 3 4 32778: typedef __fpos_t fpos_t; 32778: 32778: 32778: 32778: 32778: typedef __fpos64_t fpos64_t; 32778: # 133 "/usr/include/stdio.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/stdio_lim.h" 1 3 4 32778: # 134 "/usr/include/stdio.h" 2 3 4 32778: 32778: 32778: 32778: extern FILE *stdin; 32778: extern FILE *stdout; 32778: extern FILE *stderr; 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int remove (const char *__filename) throw (); 32778: 32778: extern int rename (const char *__old, const char *__new) throw (); 32778: 32778: 32778: 32778: extern int renameat (int __oldfd, const char *__old, int __newfd, 32778: const char *__new) throw (); 32778: # 164 "/usr/include/stdio.h" 3 4 32778: extern int renameat2 (int __oldfd, const char *__old, int __newfd, 32778: const char *__new, unsigned int __flags) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern FILE *tmpfile (void) __attribute__ ((__warn_unused_result__)); 32778: # 183 "/usr/include/stdio.h" 3 4 32778: extern FILE *tmpfile64 (void) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: extern char *tmpnam (char *__s) throw () __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: extern char *tmpnam_r (char *__s) throw () __attribute__ ((__warn_unused_result__)); 32778: # 204 "/usr/include/stdio.h" 3 4 32778: extern char *tempnam (const char *__dir, const char *__pfx) 32778: throw () __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int fclose (FILE *__stream); 32778: 32778: 32778: 32778: 32778: extern int fflush (FILE *__stream); 32778: # 227 "/usr/include/stdio.h" 3 4 32778: extern int fflush_unlocked (FILE *__stream); 32778: # 237 "/usr/include/stdio.h" 3 4 32778: extern int fcloseall (void); 32778: # 246 "/usr/include/stdio.h" 3 4 32778: extern FILE *fopen (const char *__restrict __filename, 32778: const char *__restrict __modes) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: extern FILE *freopen (const char *__restrict __filename, 32778: const char *__restrict __modes, 32778: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 32778: # 270 "/usr/include/stdio.h" 3 4 32778: extern FILE *fopen64 (const char *__restrict __filename, 32778: const char *__restrict __modes) __attribute__ ((__warn_unused_result__)); 32778: extern FILE *freopen64 (const char *__restrict __filename, 32778: const char *__restrict __modes, 32778: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: extern FILE *fdopen (int __fd, const char *__modes) throw () __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: 32778: extern FILE *fopencookie (void *__restrict __magic_cookie, 32778: const char *__restrict __modes, 32778: cookie_io_functions_t __io_funcs) throw () __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: extern FILE *fmemopen (void *__s, size_t __len, const char *__modes) 32778: throw () __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) throw () __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: 32778: extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) throw (); 32778: 32778: 32778: 32778: extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, 32778: int __modes, size_t __n) throw (); 32778: 32778: 32778: 32778: 32778: extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, 32778: size_t __size) throw (); 32778: 32778: 32778: extern void setlinebuf (FILE *__stream) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int fprintf (FILE *__restrict __stream, 32778: const char *__restrict __format, ...); 32778: 32778: 32778: 32778: 32778: extern int printf (const char *__restrict __format, ...); 32778: 32778: extern int sprintf (char *__restrict __s, 32778: const char *__restrict __format, ...) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern int vfprintf (FILE *__restrict __s, const char *__restrict __format, 32778: __gnuc_va_list __arg); 32778: 32778: 32778: 32778: 32778: extern int vprintf (const char *__restrict __format, __gnuc_va_list __arg); 32778: 32778: extern int vsprintf (char *__restrict __s, const char *__restrict __format, 32778: __gnuc_va_list __arg) throw (); 32778: 32778: 32778: 32778: extern int snprintf (char *__restrict __s, size_t __maxlen, 32778: const char *__restrict __format, ...) 32778: throw () __attribute__ ((__format__ (__printf__, 3, 4))); 32778: 32778: extern int vsnprintf (char *__restrict __s, size_t __maxlen, 32778: const char *__restrict __format, __gnuc_va_list __arg) 32778: throw () __attribute__ ((__format__ (__printf__, 3, 0))); 32778: 32778: 32778: 32778: 32778: 32778: extern int vasprintf (char **__restrict __ptr, const char *__restrict __f, 32778: __gnuc_va_list __arg) 32778: throw () __attribute__ ((__format__ (__printf__, 2, 0))) __attribute__ ((__warn_unused_result__)); 32778: extern int __asprintf (char **__restrict __ptr, 32778: const char *__restrict __fmt, ...) 32778: throw () __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__)); 32778: extern int asprintf (char **__restrict __ptr, 32778: const char *__restrict __fmt, ...) 32778: throw () __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: extern int vdprintf (int __fd, const char *__restrict __fmt, 32778: __gnuc_va_list __arg) 32778: __attribute__ ((__format__ (__printf__, 2, 0))); 32778: extern int dprintf (int __fd, const char *__restrict __fmt, ...) 32778: __attribute__ ((__format__ (__printf__, 2, 3))); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int fscanf (FILE *__restrict __stream, 32778: const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: extern int scanf (const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)); 32778: 32778: extern int sscanf (const char *__restrict __s, 32778: const char *__restrict __format, ...) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int fscanf (FILE *__restrict __stream, const char *__restrict __format, ...) __asm__ ("" "__isoc99_fscanf") 32778: 32778: __attribute__ ((__warn_unused_result__)); 32778: extern int scanf (const char *__restrict __format, ...) __asm__ ("" "__isoc99_scanf") 32778: __attribute__ ((__warn_unused_result__)); 32778: extern int sscanf (const char *__restrict __s, const char *__restrict __format, ...) throw () __asm__ ("" "__isoc99_sscanf") 32778: 32778: ; 32778: # 432 "/usr/include/stdio.h" 3 4 32778: extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, 32778: __gnuc_va_list __arg) 32778: __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: 32778: extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) 32778: __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: extern int vsscanf (const char *__restrict __s, 32778: const char *__restrict __format, __gnuc_va_list __arg) 32778: throw () __attribute__ ((__format__ (__scanf__, 2, 0))); 32778: 32778: 32778: 32778: 32778: extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vfscanf") 32778: 32778: 32778: 32778: __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__)); 32778: extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vscanf") 32778: 32778: __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__)); 32778: extern int vsscanf (const char *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) throw () __asm__ ("" "__isoc99_vsscanf") 32778: 32778: 32778: 32778: __attribute__ ((__format__ (__scanf__, 2, 0))); 32778: # 485 "/usr/include/stdio.h" 3 4 32778: extern int fgetc (FILE *__stream); 32778: extern int getc (FILE *__stream); 32778: 32778: 32778: 32778: 32778: 32778: extern int getchar (void); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int getc_unlocked (FILE *__stream); 32778: extern int getchar_unlocked (void); 32778: # 510 "/usr/include/stdio.h" 3 4 32778: extern int fgetc_unlocked (FILE *__stream); 32778: # 521 "/usr/include/stdio.h" 3 4 32778: extern int fputc (int __c, FILE *__stream); 32778: extern int putc (int __c, FILE *__stream); 32778: 32778: 32778: 32778: 32778: 32778: extern int putchar (int __c); 32778: # 537 "/usr/include/stdio.h" 3 4 32778: extern int fputc_unlocked (int __c, FILE *__stream); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int putc_unlocked (int __c, FILE *__stream); 32778: extern int putchar_unlocked (int __c); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int getw (FILE *__stream); 32778: 32778: 32778: extern int putw (int __w, FILE *__stream); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) 32778: __attribute__ ((__warn_unused_result__)); 32778: # 577 "/usr/include/stdio.h" 3 4 32778: extern char *gets (char *__s) __attribute__ ((__warn_unused_result__)) __attribute__ ((__deprecated__)); 32778: # 587 "/usr/include/stdio.h" 3 4 32778: extern char *fgets_unlocked (char *__restrict __s, int __n, 32778: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 32778: # 603 "/usr/include/stdio.h" 3 4 32778: extern __ssize_t __getdelim (char **__restrict __lineptr, 32778: size_t *__restrict __n, int __delimiter, 32778: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 32778: extern __ssize_t getdelim (char **__restrict __lineptr, 32778: size_t *__restrict __n, int __delimiter, 32778: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern __ssize_t getline (char **__restrict __lineptr, 32778: size_t *__restrict __n, 32778: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int fputs (const char *__restrict __s, FILE *__restrict __stream); 32778: 32778: 32778: 32778: 32778: 32778: extern int puts (const char *__s); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int ungetc (int __c, FILE *__stream); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern size_t fread (void *__restrict __ptr, size_t __size, 32778: size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: extern size_t fwrite (const void *__restrict __ptr, size_t __size, 32778: size_t __n, FILE *__restrict __s); 32778: # 662 "/usr/include/stdio.h" 3 4 32778: extern int fputs_unlocked (const char *__restrict __s, 32778: FILE *__restrict __stream); 32778: # 673 "/usr/include/stdio.h" 3 4 32778: extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, 32778: size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 32778: extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size, 32778: size_t __n, FILE *__restrict __stream); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int fseek (FILE *__stream, long int __off, int __whence); 32778: 32778: 32778: 32778: 32778: extern long int ftell (FILE *__stream) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: extern void rewind (FILE *__stream); 32778: # 707 "/usr/include/stdio.h" 3 4 32778: extern int fseeko (FILE *__stream, __off_t __off, int __whence); 32778: 32778: 32778: 32778: 32778: extern __off_t ftello (FILE *__stream) __attribute__ ((__warn_unused_result__)); 32778: # 731 "/usr/include/stdio.h" 3 4 32778: extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos); 32778: 32778: 32778: 32778: 32778: extern int fsetpos (FILE *__stream, const fpos_t *__pos); 32778: # 750 "/usr/include/stdio.h" 3 4 32778: extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence); 32778: extern __off64_t ftello64 (FILE *__stream) __attribute__ ((__warn_unused_result__)); 32778: extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos); 32778: extern int fsetpos64 (FILE *__stream, const fpos64_t *__pos); 32778: 32778: 32778: 32778: extern void clearerr (FILE *__stream) throw (); 32778: 32778: extern int feof (FILE *__stream) throw () __attribute__ ((__warn_unused_result__)); 32778: 32778: extern int ferror (FILE *__stream) throw () __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: extern void clearerr_unlocked (FILE *__stream) throw (); 32778: extern int feof_unlocked (FILE *__stream) throw () __attribute__ ((__warn_unused_result__)); 32778: extern int ferror_unlocked (FILE *__stream) throw () __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern void perror (const char *__s); 32778: 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/sys_errlist.h" 1 3 4 32778: # 26 "/usr/include/riscv64-linux-gnu/bits/sys_errlist.h" 3 4 32778: extern int sys_nerr; 32778: extern const char *const sys_errlist[]; 32778: 32778: 32778: extern int _sys_nerr; 32778: extern const char *const _sys_errlist[]; 32778: # 782 "/usr/include/stdio.h" 2 3 4 32778: 32778: 32778: 32778: 32778: extern int fileno (FILE *__stream) throw () __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: extern int fileno_unlocked (FILE *__stream) throw () __attribute__ ((__warn_unused_result__)); 32778: # 800 "/usr/include/stdio.h" 3 4 32778: extern FILE *popen (const char *__command, const char *__modes) __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: 32778: 32778: 32778: extern int pclose (FILE *__stream); 32778: 32778: 32778: 32778: 32778: 32778: extern char *ctermid (char *__s) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern char *cuserid (char *__s); 32778: 32778: 32778: 32778: 32778: struct obstack; 32778: 32778: 32778: extern int obstack_printf (struct obstack *__restrict __obstack, 32778: const char *__restrict __format, ...) 32778: throw () __attribute__ ((__format__ (__printf__, 2, 3))); 32778: extern int obstack_vprintf (struct obstack *__restrict __obstack, 32778: const char *__restrict __format, 32778: __gnuc_va_list __args) 32778: throw () __attribute__ ((__format__ (__printf__, 2, 0))); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern void flockfile (FILE *__stream) throw (); 32778: 32778: 32778: 32778: extern int ftrylockfile (FILE *__stream) throw () __attribute__ ((__warn_unused_result__)); 32778: 32778: 32778: extern void funlockfile (FILE *__stream) throw (); 32778: # 858 "/usr/include/stdio.h" 3 4 32778: extern int __uflow (FILE *); 32778: extern int __overflow (FILE *, int); 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/stdio.h" 1 3 4 32778: # 46 "/usr/include/riscv64-linux-gnu/bits/stdio.h" 3 4 32778: extern __inline __attribute__ ((__gnu_inline__)) int 32778: getchar (void) 32778: { 32778: return getc (stdin); 32778: } 32778: 32778: 32778: 32778: 32778: extern __inline __attribute__ ((__gnu_inline__)) int 32778: fgetc_unlocked (FILE *__fp) 32778: { 32778: return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: extern __inline __attribute__ ((__gnu_inline__)) int 32778: getc_unlocked (FILE *__fp) 32778: { 32778: return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); 32778: } 32778: 32778: 32778: extern __inline __attribute__ ((__gnu_inline__)) int 32778: getchar_unlocked (void) 32778: { 32778: return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++); 32778: } 32778: 32778: 32778: 32778: 32778: extern __inline __attribute__ ((__gnu_inline__)) int 32778: putchar (int __c) 32778: { 32778: return putc (__c, stdout); 32778: } 32778: 32778: 32778: 32778: 32778: extern __inline __attribute__ ((__gnu_inline__)) int 32778: fputc_unlocked (int __c, FILE *__stream) 32778: { 32778: return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: extern __inline __attribute__ ((__gnu_inline__)) int 32778: putc_unlocked (int __c, FILE *__stream) 32778: { 32778: return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); 32778: } 32778: 32778: 32778: extern __inline __attribute__ ((__gnu_inline__)) int 32778: putchar_unlocked (int __c) 32778: { 32778: return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c))); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: extern __inline __attribute__ ((__gnu_inline__)) __ssize_t 32778: getline (char **__lineptr, size_t *__n, FILE *__stream) 32778: { 32778: return __getdelim (__lineptr, __n, '\n', __stream); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: extern __inline __attribute__ ((__gnu_inline__)) int 32778: __attribute__ ((__leaf__)) feof_unlocked (FILE *__stream) throw () 32778: { 32778: return (((__stream)->_flags & 0x0010) != 0); 32778: } 32778: 32778: 32778: extern __inline __attribute__ ((__gnu_inline__)) int 32778: __attribute__ ((__leaf__)) ferror_unlocked (FILE *__stream) throw () 32778: { 32778: return (((__stream)->_flags & 0x0020) != 0); 32778: } 32778: # 865 "/usr/include/stdio.h" 2 3 4 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/stdio2.h" 1 3 4 32778: # 26 "/usr/include/riscv64-linux-gnu/bits/stdio2.h" 3 4 32778: extern int __sprintf_chk (char *__restrict __s, int __flag, size_t __slen, 32778: const char *__restrict __format, ...) throw (); 32778: extern int __vsprintf_chk (char *__restrict __s, int __flag, size_t __slen, 32778: const char *__restrict __format, 32778: __gnuc_va_list __ap) throw (); 32778: 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 32778: __attribute__ ((__leaf__)) sprintf (char *__restrict __s, const char *__restrict __fmt, ...) throw () 32778: { 32778: return __builtin___sprintf_chk (__s, 2 - 1, 32778: __builtin_object_size (__s, 2 > 1), __fmt, __builtin_va_arg_pack ()); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 32778: __attribute__ ((__leaf__)) vsprintf (char *__restrict __s, const char *__restrict __fmt, __gnuc_va_list __ap) throw () 32778: 32778: { 32778: return __builtin___vsprintf_chk (__s, 2 - 1, 32778: __builtin_object_size (__s, 2 > 1), __fmt, __ap); 32778: } 32778: 32778: 32778: 32778: extern int __snprintf_chk (char *__restrict __s, size_t __n, int __flag, 32778: size_t __slen, const char *__restrict __format, 32778: ...) throw (); 32778: extern int __vsnprintf_chk (char *__restrict __s, size_t __n, int __flag, 32778: size_t __slen, const char *__restrict __format, 32778: __gnuc_va_list __ap) throw (); 32778: 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 32778: __attribute__ ((__leaf__)) snprintf (char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) throw () 32778: 32778: { 32778: return __builtin___snprintf_chk (__s, __n, 2 - 1, 32778: __builtin_object_size (__s, 2 > 1), __fmt, __builtin_va_arg_pack ()); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 32778: __attribute__ ((__leaf__)) vsnprintf (char *__restrict __s, size_t __n, const char *__restrict __fmt, __gnuc_va_list __ap) throw () 32778: 32778: { 32778: return __builtin___vsnprintf_chk (__s, __n, 2 - 1, 32778: __builtin_object_size (__s, 2 > 1), __fmt, __ap); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: extern int __fprintf_chk (FILE *__restrict __stream, int __flag, 32778: const char *__restrict __format, ...); 32778: extern int __printf_chk (int __flag, const char *__restrict __format, ...); 32778: extern int __vfprintf_chk (FILE *__restrict __stream, int __flag, 32778: const char *__restrict __format, __gnuc_va_list __ap); 32778: extern int __vprintf_chk (int __flag, const char *__restrict __format, 32778: __gnuc_va_list __ap); 32778: 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 32778: fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) 32778: { 32778: return __fprintf_chk (__stream, 2 - 1, __fmt, 32778: __builtin_va_arg_pack ()); 32778: } 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 32778: printf (const char *__restrict __fmt, ...) 32778: { 32778: return __printf_chk (2 - 1, __fmt, __builtin_va_arg_pack ()); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 32778: vprintf (const char *__restrict __fmt, __gnuc_va_list __ap) 32778: { 32778: 32778: return __vfprintf_chk (stdout, 2 - 1, __fmt, __ap); 32778: 32778: 32778: 32778: } 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 32778: vfprintf (FILE *__restrict __stream, 32778: const char *__restrict __fmt, __gnuc_va_list __ap) 32778: { 32778: return __vfprintf_chk (__stream, 2 - 1, __fmt, __ap); 32778: } 32778: 32778: 32778: extern int __dprintf_chk (int __fd, int __flag, const char *__restrict __fmt, 32778: ...) __attribute__ ((__format__ (__printf__, 3, 4))); 32778: extern int __vdprintf_chk (int __fd, int __flag, 32778: const char *__restrict __fmt, __gnuc_va_list __arg) 32778: __attribute__ ((__format__ (__printf__, 3, 0))); 32778: 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 32778: dprintf (int __fd, const char *__restrict __fmt, ...) 32778: { 32778: return __dprintf_chk (__fd, 2 - 1, __fmt, 32778: __builtin_va_arg_pack ()); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 32778: vdprintf (int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) 32778: { 32778: return __vdprintf_chk (__fd, 2 - 1, __fmt, __ap); 32778: } 32778: 32778: 32778: 32778: 32778: extern int __asprintf_chk (char **__restrict __ptr, int __flag, 32778: const char *__restrict __fmt, ...) 32778: throw () __attribute__ ((__format__ (__printf__, 3, 4))) __attribute__ ((__warn_unused_result__)); 32778: extern int __vasprintf_chk (char **__restrict __ptr, int __flag, 32778: const char *__restrict __fmt, __gnuc_va_list __arg) 32778: throw () __attribute__ ((__format__ (__printf__, 3, 0))) __attribute__ ((__warn_unused_result__)); 32778: extern int __obstack_printf_chk (struct obstack *__restrict __obstack, 32778: int __flag, const char *__restrict __format, 32778: ...) 32778: throw () __attribute__ ((__format__ (__printf__, 3, 4))); 32778: extern int __obstack_vprintf_chk (struct obstack *__restrict __obstack, 32778: int __flag, 32778: const char *__restrict __format, 32778: __gnuc_va_list __args) 32778: throw () __attribute__ ((__format__ (__printf__, 3, 0))); 32778: 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 32778: __attribute__ ((__leaf__)) asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) throw () 32778: { 32778: return __asprintf_chk (__ptr, 2 - 1, __fmt, 32778: __builtin_va_arg_pack ()); 32778: } 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 32778: __attribute__ ((__leaf__)) __asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) throw () 32778: 32778: { 32778: return __asprintf_chk (__ptr, 2 - 1, __fmt, 32778: __builtin_va_arg_pack ()); 32778: } 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 32778: __attribute__ ((__leaf__)) obstack_printf (struct obstack *__restrict __obstack, const char *__restrict __fmt, ...) throw () 32778: 32778: { 32778: return __obstack_printf_chk (__obstack, 2 - 1, __fmt, 32778: __builtin_va_arg_pack ()); 32778: } 32778: # 209 "/usr/include/riscv64-linux-gnu/bits/stdio2.h" 3 4 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 32778: __attribute__ ((__leaf__)) vasprintf (char **__restrict __ptr, const char *__restrict __fmt, __gnuc_va_list __ap) throw () 32778: 32778: { 32778: return __vasprintf_chk (__ptr, 2 - 1, __fmt, __ap); 32778: } 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 32778: __attribute__ ((__leaf__)) obstack_vprintf (struct obstack *__restrict __obstack, const char *__restrict __fmt, __gnuc_va_list __ap) throw () 32778: 32778: { 32778: return __obstack_vprintf_chk (__obstack, 2 - 1, __fmt, 32778: __ap); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern char *__gets_chk (char *__str, size_t) __attribute__ ((__warn_unused_result__)); 32778: extern char *__gets_warn (char *__str) __asm__ ("" "gets") 32778: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("please use fgets or getline instead, gets can't " "specify buffer size"))) 32778: ; 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * 32778: gets (char *__str) 32778: { 32778: if (__builtin_object_size (__str, 2 > 1) != (size_t) -1) 32778: return __gets_chk (__str, __builtin_object_size (__str, 2 > 1)); 32778: return __gets_warn (__str); 32778: } 32778: 32778: 32778: extern char *__fgets_chk (char *__restrict __s, size_t __size, int __n, 32778: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 32778: extern char *__fgets_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets") 32778: 32778: __attribute__ ((__warn_unused_result__)); 32778: extern char *__fgets_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_chk") 32778: 32778: 32778: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets called with bigger size than length " "of destination buffer"))) 32778: ; 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * 32778: fgets (char *__restrict __s, int __n, FILE *__restrict __stream) 32778: { 32778: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1) 32778: { 32778: if (!__builtin_constant_p (__n) || __n <= 0) 32778: return __fgets_chk (__s, __builtin_object_size (__s, 2 > 1), __n, __stream); 32778: 32778: if ((size_t) __n > __builtin_object_size (__s, 2 > 1)) 32778: return __fgets_chk_warn (__s, __builtin_object_size (__s, 2 > 1), __n, __stream); 32778: } 32778: return __fgets_alias (__s, __n, __stream); 32778: } 32778: 32778: extern size_t __fread_chk (void *__restrict __ptr, size_t __ptrlen, 32778: size_t __size, size_t __n, 32778: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 32778: extern size_t __fread_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread") 32778: 32778: 32778: __attribute__ ((__warn_unused_result__)); 32778: extern size_t __fread_chk_warn (void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "__fread_chk") 32778: 32778: 32778: 32778: 32778: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread called with bigger size * nmemb than length " "of destination buffer"))) 32778: ; 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t 32778: fread (void *__restrict __ptr, size_t __size, size_t __n, 32778: FILE *__restrict __stream) 32778: { 32778: if (__builtin_object_size (__ptr, 0) != (size_t) -1) 32778: { 32778: if (!__builtin_constant_p (__size) 32778: || !__builtin_constant_p (__n) 32778: || (__size | __n) >= (((size_t) 1) << (8 * sizeof (size_t) / 2))) 32778: return __fread_chk (__ptr, __builtin_object_size (__ptr, 0), __size, __n, __stream); 32778: 32778: if (__size * __n > __builtin_object_size (__ptr, 0)) 32778: return __fread_chk_warn (__ptr, __builtin_object_size (__ptr, 0), __size, __n, __stream); 32778: } 32778: return __fread_alias (__ptr, __size, __n, __stream); 32778: } 32778: 32778: 32778: extern char *__fgets_unlocked_chk (char *__restrict __s, size_t __size, 32778: int __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 32778: extern char *__fgets_unlocked_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets_unlocked") 32778: 32778: __attribute__ ((__warn_unused_result__)); 32778: extern char *__fgets_unlocked_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_unlocked_chk") 32778: 32778: 32778: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets_unlocked called with bigger size than length " "of destination buffer"))) 32778: ; 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * 32778: fgets_unlocked (char *__restrict __s, int __n, FILE *__restrict __stream) 32778: { 32778: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1) 32778: { 32778: if (!__builtin_constant_p (__n) || __n <= 0) 32778: return __fgets_unlocked_chk (__s, __builtin_object_size (__s, 2 > 1), __n, __stream); 32778: 32778: if ((size_t) __n > __builtin_object_size (__s, 2 > 1)) 32778: return __fgets_unlocked_chk_warn (__s, __builtin_object_size (__s, 2 > 1), __n, __stream); 32778: } 32778: return __fgets_unlocked_alias (__s, __n, __stream); 32778: } 32778: 32778: 32778: 32778: 32778: extern size_t __fread_unlocked_chk (void *__restrict __ptr, size_t __ptrlen, 32778: size_t __size, size_t __n, 32778: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 32778: extern size_t __fread_unlocked_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread_unlocked") 32778: 32778: 32778: __attribute__ ((__warn_unused_result__)); 32778: 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") 32778: 32778: 32778: 32778: 32778: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread_unlocked called with bigger size * nmemb than " "length of destination buffer"))) 32778: ; 32778: 32778: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t 32778: fread_unlocked (void *__restrict __ptr, size_t __size, size_t __n, 32778: FILE *__restrict __stream) 32778: { 32778: if (__builtin_object_size (__ptr, 0) != (size_t) -1) 32778: { 32778: if (!__builtin_constant_p (__size) 32778: || !__builtin_constant_p (__n) 32778: || (__size | __n) >= (((size_t) 1) << (8 * sizeof (size_t) / 2))) 32778: return __fread_unlocked_chk (__ptr, __builtin_object_size (__ptr, 0), __size, __n, 32778: __stream); 32778: 32778: if (__size * __n > __builtin_object_size (__ptr, 0)) 32778: return __fread_unlocked_chk_warn (__ptr, __builtin_object_size (__ptr, 0), __size, __n, 32778: __stream); 32778: } 32778: 32778: 32778: if (__builtin_constant_p (__size) 32778: && __builtin_constant_p (__n) 32778: && (__size | __n) < (((size_t) 1) << (8 * sizeof (size_t) / 2)) 32778: && __size * __n <= 8) 32778: { 32778: size_t __cnt = __size * __n; 32778: char *__cptr = (char *) __ptr; 32778: if (__cnt == 0) 32778: return 0; 32778: 32778: for (; __cnt > 0; --__cnt) 32778: { 32778: int __c = getc_unlocked (__stream); 32778: if (__c == (-1)) 32778: break; 32778: *__cptr++ = __c; 32778: } 32778: return (__cptr - (char *) __ptr) / __size; 32778: } 32778: 32778: return __fread_unlocked_alias (__ptr, __size, __n, __stream); 32778: } 32778: # 868 "/usr/include/stdio.h" 2 3 4 32778: 32778: 32778: 32778: 32778: 32778: } 32778: # 43 "/usr/include/c++/9/cstdio" 2 3 32778: # 96 "/usr/include/c++/9/cstdio" 3 32778: namespace std 32778: { 32778: using ::FILE; 32778: using ::fpos_t; 32778: 32778: using ::clearerr; 32778: using ::fclose; 32778: using ::feof; 32778: using ::ferror; 32778: using ::fflush; 32778: using ::fgetc; 32778: using ::fgetpos; 32778: using ::fgets; 32778: using ::fopen; 32778: using ::fprintf; 32778: using ::fputc; 32778: using ::fputs; 32778: using ::fread; 32778: using ::freopen; 32778: using ::fscanf; 32778: using ::fseek; 32778: using ::fsetpos; 32778: using ::ftell; 32778: using ::fwrite; 32778: using ::getc; 32778: using ::getchar; 32778: 32778: 32778: using ::gets; 32778: 32778: using ::perror; 32778: using ::printf; 32778: using ::putc; 32778: using ::putchar; 32778: using ::puts; 32778: using ::remove; 32778: using ::rename; 32778: using ::rewind; 32778: using ::scanf; 32778: using ::setbuf; 32778: using ::setvbuf; 32778: using ::sprintf; 32778: using ::sscanf; 32778: using ::tmpfile; 32778: 32778: using ::tmpnam; 32778: 32778: using ::ungetc; 32778: using ::vfprintf; 32778: using ::vprintf; 32778: using ::vsprintf; 32778: } 32778: # 157 "/usr/include/c++/9/cstdio" 3 32778: namespace __gnu_cxx 32778: { 32778: # 175 "/usr/include/c++/9/cstdio" 3 32778: using ::snprintf; 32778: using ::vfscanf; 32778: using ::vscanf; 32778: using ::vsnprintf; 32778: using ::vsscanf; 32778: 32778: } 32778: 32778: namespace std 32778: { 32778: using ::__gnu_cxx::snprintf; 32778: using ::__gnu_cxx::vfscanf; 32778: using ::__gnu_cxx::vscanf; 32778: using ::__gnu_cxx::vsnprintf; 32778: using ::__gnu_cxx::vsscanf; 32778: } 32778: # 44 "/usr/include/c++/9/ext/string_conversions.h" 2 3 32778: # 1 "/usr/include/c++/9/cerrno" 1 3 32778: # 39 "/usr/include/c++/9/cerrno" 3 32778: 32778: # 40 "/usr/include/c++/9/cerrno" 3 32778: 32778: 32778: # 1 "/usr/include/errno.h" 1 3 4 32778: # 28 "/usr/include/errno.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/errno.h" 1 3 4 32778: # 26 "/usr/include/riscv64-linux-gnu/bits/errno.h" 3 4 32778: # 1 "/usr/include/linux/errno.h" 1 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/asm/errno.h" 1 3 4 32778: # 1 "/usr/include/asm-generic/errno.h" 1 3 4 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/asm-generic/errno-base.h" 1 3 4 32778: # 6 "/usr/include/asm-generic/errno.h" 2 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/asm/errno.h" 2 3 4 32778: # 1 "/usr/include/linux/errno.h" 2 3 4 32778: # 27 "/usr/include/riscv64-linux-gnu/bits/errno.h" 2 3 4 32778: # 29 "/usr/include/errno.h" 2 3 4 32778: 32778: 32778: 32778: 32778: 32778: extern "C" { 32778: 32778: 32778: extern int *__errno_location (void) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern char *program_invocation_name; 32778: extern char *program_invocation_short_name; 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/types/error_t.h" 1 3 4 32778: # 22 "/usr/include/riscv64-linux-gnu/bits/types/error_t.h" 3 4 32778: typedef int error_t; 32778: # 49 "/usr/include/errno.h" 2 3 4 32778: 32778: 32778: 32778: } 32778: # 43 "/usr/include/c++/9/cerrno" 2 3 32778: # 45 "/usr/include/c++/9/ext/string_conversions.h" 2 3 32778: 32778: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: template 32778: _Ret 32778: __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), 32778: const char* __name, const _CharT* __str, std::size_t* __idx, 32778: _Base... __base) 32778: { 32778: _Ret __ret; 32778: 32778: _CharT* __endptr; 32778: 32778: struct _Save_errno { 32778: _Save_errno() : _M_errno((*__errno_location ())) { (*__errno_location ()) = 0; } 32778: ~_Save_errno() { if ((*__errno_location ()) == 0) (*__errno_location ()) = _M_errno; } 32778: int _M_errno; 32778: } const __save_errno; 32778: 32778: struct _Range_chk { 32778: static bool 32778: _S_chk(_TRet, std::false_type) { return false; } 32778: 32778: static bool 32778: _S_chk(_TRet __val, std::true_type) 32778: { 32778: return __val < _TRet(__numeric_traits::__min) 32778: || __val > _TRet(__numeric_traits::__max); 32778: } 32778: }; 32778: 32778: const _TRet __tmp = __convf(__str, &__endptr, __base...); 32778: 32778: if (__endptr == __str) 32778: std::__throw_invalid_argument(__name); 32778: else if ((*__errno_location ()) == 34 32778: || _Range_chk::_S_chk(__tmp, std::is_same<_Ret, int>{})) 32778: std::__throw_out_of_range(__name); 32778: else 32778: __ret = __tmp; 32778: 32778: if (__idx) 32778: *__idx = __endptr - __str; 32778: 32778: return __ret; 32778: } 32778: 32778: 32778: template 32778: _String 32778: __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, 32778: __builtin_va_list), std::size_t __n, 32778: const _CharT* __fmt, ...) 32778: { 32778: 32778: 32778: _CharT* __s = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 32778: * __n)); 32778: 32778: __builtin_va_list __args; 32778: __builtin_va_start(__args, __fmt); 32778: 32778: const int __len = __convf(__s, __n, __fmt, __args); 32778: 32778: __builtin_va_end(__args); 32778: 32778: return _String(__s, __s + __len); 32778: } 32778: 32778: 32778: } 32778: # 6494 "/usr/include/c++/9/bits/basic_string.h" 2 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: namespace __cxx11 { 32778: 32778: 32778: 32778: inline int 32778: stoi(const string& __str, size_t* __idx = 0, int __base = 10) 32778: { return __gnu_cxx::__stoa(&std::strtol, "stoi", __str.c_str(), 32778: __idx, __base); } 32778: 32778: inline long 32778: stol(const string& __str, size_t* __idx = 0, int __base = 10) 32778: { return __gnu_cxx::__stoa(&std::strtol, "stol", __str.c_str(), 32778: __idx, __base); } 32778: 32778: inline unsigned long 32778: stoul(const string& __str, size_t* __idx = 0, int __base = 10) 32778: { return __gnu_cxx::__stoa(&std::strtoul, "stoul", __str.c_str(), 32778: __idx, __base); } 32778: 32778: inline long long 32778: stoll(const string& __str, size_t* __idx = 0, int __base = 10) 32778: { return __gnu_cxx::__stoa(&std::strtoll, "stoll", __str.c_str(), 32778: __idx, __base); } 32778: 32778: inline unsigned long long 32778: stoull(const string& __str, size_t* __idx = 0, int __base = 10) 32778: { return __gnu_cxx::__stoa(&std::strtoull, "stoull", __str.c_str(), 32778: __idx, __base); } 32778: 32778: 32778: inline float 32778: stof(const string& __str, size_t* __idx = 0) 32778: { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); } 32778: 32778: inline double 32778: stod(const string& __str, size_t* __idx = 0) 32778: { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); } 32778: 32778: inline long double 32778: stold(const string& __str, size_t* __idx = 0) 32778: { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: inline string 32778: to_string(int __val) 32778: { return __gnu_cxx::__to_xstring(&std::vsnprintf, 4 * sizeof(int), 32778: "%d", __val); } 32778: 32778: inline string 32778: to_string(unsigned __val) 32778: { return __gnu_cxx::__to_xstring(&std::vsnprintf, 32778: 4 * sizeof(unsigned), 32778: "%u", __val); } 32778: 32778: inline string 32778: to_string(long __val) 32778: { return __gnu_cxx::__to_xstring(&std::vsnprintf, 4 * sizeof(long), 32778: "%ld", __val); } 32778: 32778: inline string 32778: to_string(unsigned long __val) 32778: { return __gnu_cxx::__to_xstring(&std::vsnprintf, 32778: 4 * sizeof(unsigned long), 32778: "%lu", __val); } 32778: 32778: inline string 32778: to_string(long long __val) 32778: { return __gnu_cxx::__to_xstring(&std::vsnprintf, 32778: 4 * sizeof(long long), 32778: "%lld", __val); } 32778: 32778: inline string 32778: to_string(unsigned long long __val) 32778: { return __gnu_cxx::__to_xstring(&std::vsnprintf, 32778: 4 * sizeof(unsigned long long), 32778: "%llu", __val); } 32778: 32778: inline string 32778: to_string(float __val) 32778: { 32778: const int __n = 32778: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 32778: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 32778: "%f", __val); 32778: } 32778: 32778: inline string 32778: to_string(double __val) 32778: { 32778: const int __n = 32778: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 32778: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 32778: "%f", __val); 32778: } 32778: 32778: inline string 32778: to_string(long double __val) 32778: { 32778: const int __n = 32778: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 32778: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 32778: "%Lf", __val); 32778: } 32778: 32778: 32778: 32778: inline int 32778: stoi(const wstring& __str, size_t* __idx = 0, int __base = 10) 32778: { return __gnu_cxx::__stoa(&std::wcstol, "stoi", __str.c_str(), 32778: __idx, __base); } 32778: 32778: inline long 32778: stol(const wstring& __str, size_t* __idx = 0, int __base = 10) 32778: { return __gnu_cxx::__stoa(&std::wcstol, "stol", __str.c_str(), 32778: __idx, __base); } 32778: 32778: inline unsigned long 32778: stoul(const wstring& __str, size_t* __idx = 0, int __base = 10) 32778: { return __gnu_cxx::__stoa(&std::wcstoul, "stoul", __str.c_str(), 32778: __idx, __base); } 32778: 32778: inline long long 32778: stoll(const wstring& __str, size_t* __idx = 0, int __base = 10) 32778: { return __gnu_cxx::__stoa(&std::wcstoll, "stoll", __str.c_str(), 32778: __idx, __base); } 32778: 32778: inline unsigned long long 32778: stoull(const wstring& __str, size_t* __idx = 0, int __base = 10) 32778: { return __gnu_cxx::__stoa(&std::wcstoull, "stoull", __str.c_str(), 32778: __idx, __base); } 32778: 32778: 32778: inline float 32778: stof(const wstring& __str, size_t* __idx = 0) 32778: { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); } 32778: 32778: inline double 32778: stod(const wstring& __str, size_t* __idx = 0) 32778: { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); } 32778: 32778: inline long double 32778: stold(const wstring& __str, size_t* __idx = 0) 32778: { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); } 32778: 32778: 32778: 32778: inline wstring 32778: to_wstring(int __val) 32778: { return __gnu_cxx::__to_xstring(&std::vswprintf, 4 * sizeof(int), 32778: L"%d", __val); } 32778: 32778: inline wstring 32778: to_wstring(unsigned __val) 32778: { return __gnu_cxx::__to_xstring(&std::vswprintf, 32778: 4 * sizeof(unsigned), 32778: L"%u", __val); } 32778: 32778: inline wstring 32778: to_wstring(long __val) 32778: { return __gnu_cxx::__to_xstring(&std::vswprintf, 4 * sizeof(long), 32778: L"%ld", __val); } 32778: 32778: inline wstring 32778: to_wstring(unsigned long __val) 32778: { return __gnu_cxx::__to_xstring(&std::vswprintf, 32778: 4 * sizeof(unsigned long), 32778: L"%lu", __val); } 32778: 32778: inline wstring 32778: to_wstring(long long __val) 32778: { return __gnu_cxx::__to_xstring(&std::vswprintf, 32778: 4 * sizeof(long long), 32778: L"%lld", __val); } 32778: 32778: inline wstring 32778: to_wstring(unsigned long long __val) 32778: { return __gnu_cxx::__to_xstring(&std::vswprintf, 32778: 4 * sizeof(unsigned long long), 32778: L"%llu", __val); } 32778: 32778: inline wstring 32778: to_wstring(float __val) 32778: { 32778: const int __n = 32778: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 32778: return __gnu_cxx::__to_xstring(&std::vswprintf, __n, 32778: L"%f", __val); 32778: } 32778: 32778: inline wstring 32778: to_wstring(double __val) 32778: { 32778: const int __n = 32778: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 32778: return __gnu_cxx::__to_xstring(&std::vswprintf, __n, 32778: L"%f", __val); 32778: } 32778: 32778: inline wstring 32778: to_wstring(long double __val) 32778: { 32778: const int __n = 32778: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 32778: return __gnu_cxx::__to_xstring(&std::vswprintf, __n, 32778: L"%Lf", __val); 32778: } 32778: 32778: 32778: 32778: } 32778: 32778: } 32778: 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/c++/9/bits/functional_hash.h" 1 3 32778: # 33 "/usr/include/c++/9/bits/functional_hash.h" 3 32778: 32778: # 34 "/usr/include/c++/9/bits/functional_hash.h" 3 32778: 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 49 "/usr/include/c++/9/bits/functional_hash.h" 3 32778: template 32778: struct __hash_base 32778: { 32778: typedef _Result result_type ; 32778: typedef _Arg argument_type ; 32778: }; 32778: 32778: 32778: template 32778: struct hash; 32778: 32778: template 32778: struct __poison_hash 32778: { 32778: static constexpr bool __enable_hash_call = false; 32778: private: 32778: 32778: __poison_hash(__poison_hash&&); 32778: ~__poison_hash(); 32778: }; 32778: 32778: template 32778: struct __poison_hash<_Tp, __void_t()(declval<_Tp>()))>> 32778: { 32778: static constexpr bool __enable_hash_call = true; 32778: }; 32778: 32778: 32778: template::value> 32778: struct __hash_enum 32778: { 32778: private: 32778: 32778: __hash_enum(__hash_enum&&); 32778: ~__hash_enum(); 32778: }; 32778: 32778: 32778: template 32778: struct __hash_enum<_Tp, true> : public __hash_base 32778: { 32778: size_t 32778: operator()(_Tp __val) const noexcept 32778: { 32778: using __type = typename underlying_type<_Tp>::type; 32778: return hash<__type>{}(static_cast<__type>(__val)); 32778: } 32778: }; 32778: 32778: 32778: 32778: template 32778: struct hash : __hash_enum<_Tp> 32778: { }; 32778: 32778: 32778: template 32778: struct hash<_Tp*> : public __hash_base 32778: { 32778: size_t 32778: operator()(_Tp* __p) const noexcept 32778: { return reinterpret_cast(__p); } 32778: }; 32778: # 124 "/usr/include/c++/9/bits/functional_hash.h" 3 32778: template<> struct hash : public __hash_base { size_t operator()(bool __val) const noexcept { return static_cast(__val); } }; 32778: 32778: 32778: template<> struct hash : public __hash_base { size_t operator()(char __val) const noexcept { return static_cast(__val); } }; 32778: 32778: 32778: template<> struct hash : public __hash_base { size_t operator()(signed char __val) const noexcept { return static_cast(__val); } }; 32778: 32778: 32778: template<> struct hash : public __hash_base { size_t operator()(unsigned char __val) const noexcept { return static_cast(__val); } }; 32778: 32778: 32778: template<> struct hash : public __hash_base { size_t operator()(wchar_t __val) const noexcept { return static_cast(__val); } }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template<> struct hash : public __hash_base { size_t operator()(char16_t __val) const noexcept { return static_cast(__val); } }; 32778: 32778: 32778: template<> struct hash : public __hash_base { size_t operator()(char32_t __val) const noexcept { return static_cast(__val); } }; 32778: 32778: 32778: template<> struct hash : public __hash_base { size_t operator()(short __val) const noexcept { return static_cast(__val); } }; 32778: 32778: 32778: template<> struct hash : public __hash_base { size_t operator()(int __val) const noexcept { return static_cast(__val); } }; 32778: 32778: 32778: template<> struct hash : public __hash_base { size_t operator()(long __val) const noexcept { return static_cast(__val); } }; 32778: 32778: 32778: template<> struct hash : public __hash_base { size_t operator()(long long __val) const noexcept { return static_cast(__val); } }; 32778: 32778: 32778: template<> struct hash : public __hash_base { size_t operator()(unsigned short __val) const noexcept { return static_cast(__val); } }; 32778: 32778: 32778: template<> struct hash : public __hash_base { size_t operator()(unsigned int __val) const noexcept { return static_cast(__val); } }; 32778: 32778: 32778: template<> struct hash : public __hash_base { size_t operator()(unsigned long __val) const noexcept { return static_cast(__val); } }; 32778: 32778: 32778: template<> struct hash : public __hash_base { size_t operator()(unsigned long long __val) const noexcept { return static_cast(__val); } }; 32778: # 192 "/usr/include/c++/9/bits/functional_hash.h" 3 32778: struct _Hash_impl 32778: { 32778: static size_t 32778: hash(const void* __ptr, size_t __clength, 32778: size_t __seed = static_cast(0xc70f6907UL)) 32778: { return _Hash_bytes(__ptr, __clength, __seed); } 32778: 32778: template 32778: static size_t 32778: hash(const _Tp& __val) 32778: { return hash(&__val, sizeof(__val)); } 32778: 32778: template 32778: static size_t 32778: __hash_combine(const _Tp& __val, size_t __hash) 32778: { return hash(&__val, sizeof(__val), __hash); } 32778: }; 32778: 32778: 32778: struct _Fnv_hash_impl 32778: { 32778: static size_t 32778: hash(const void* __ptr, size_t __clength, 32778: size_t __seed = static_cast(2166136261UL)) 32778: { return _Fnv_hash_bytes(__ptr, __clength, __seed); } 32778: 32778: template 32778: static size_t 32778: hash(const _Tp& __val) 32778: { return hash(&__val, sizeof(__val)); } 32778: 32778: template 32778: static size_t 32778: __hash_combine(const _Tp& __val, size_t __hash) 32778: { return hash(&__val, sizeof(__val), __hash); } 32778: }; 32778: 32778: 32778: template<> 32778: struct hash : public __hash_base 32778: { 32778: size_t 32778: operator()(float __val) const noexcept 32778: { 32778: 32778: return __val != 0.0f ? std::_Hash_impl::hash(__val) : 0; 32778: } 32778: }; 32778: 32778: 32778: template<> 32778: struct hash : public __hash_base 32778: { 32778: size_t 32778: operator()(double __val) const noexcept 32778: { 32778: 32778: return __val != 0.0 ? std::_Hash_impl::hash(__val) : 0; 32778: } 32778: }; 32778: 32778: 32778: template<> 32778: struct hash 32778: : public __hash_base 32778: { 32778: __attribute__ ((__pure__)) size_t 32778: operator()(long double __val) const noexcept; 32778: }; 32778: # 278 "/usr/include/c++/9/bits/functional_hash.h" 3 32778: template 32778: struct __is_fast_hash : public std::true_type 32778: { }; 32778: 32778: template<> 32778: struct __is_fast_hash> : public std::false_type 32778: { }; 32778: 32778: 32778: } 32778: # 6720 "/usr/include/c++/9/bits/basic_string.h" 2 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: template<> 32778: struct hash 32778: : public __hash_base 32778: { 32778: size_t 32778: operator()(const string& __s) const noexcept 32778: { return std::_Hash_impl::hash(__s.data(), __s.length()); } 32778: }; 32778: 32778: template<> 32778: struct __is_fast_hash> : std::false_type 32778: { }; 32778: 32778: 32778: 32778: template<> 32778: struct hash 32778: : public __hash_base 32778: { 32778: size_t 32778: operator()(const wstring& __s) const noexcept 32778: { return std::_Hash_impl::hash(__s.data(), 32778: __s.length() * sizeof(wchar_t)); } 32778: }; 32778: 32778: template<> 32778: struct __is_fast_hash> : std::false_type 32778: { }; 32778: # 6778 "/usr/include/c++/9/bits/basic_string.h" 3 32778: template<> 32778: struct hash 32778: : public __hash_base 32778: { 32778: size_t 32778: operator()(const u16string& __s) const noexcept 32778: { return std::_Hash_impl::hash(__s.data(), 32778: __s.length() * sizeof(char16_t)); } 32778: }; 32778: 32778: template<> 32778: struct __is_fast_hash> : std::false_type 32778: { }; 32778: 32778: 32778: template<> 32778: struct hash 32778: : public __hash_base 32778: { 32778: size_t 32778: operator()(const u32string& __s) const noexcept 32778: { return std::_Hash_impl::hash(__s.data(), 32778: __s.length() * sizeof(char32_t)); } 32778: }; 32778: 32778: template<> 32778: struct __is_fast_hash> : std::false_type 32778: { }; 32778: # 6868 "/usr/include/c++/9/bits/basic_string.h" 3 32778: 32778: } 32778: # 56 "/usr/include/c++/9/string" 2 3 32778: # 1 "/usr/include/c++/9/bits/basic_string.tcc" 1 3 32778: # 42 "/usr/include/c++/9/bits/basic_string.tcc" 3 32778: 32778: # 43 "/usr/include/c++/9/bits/basic_string.tcc" 3 32778: 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: template 32778: const typename basic_string<_CharT, _Traits, _Alloc>::size_type 32778: basic_string<_CharT, _Traits, _Alloc>::npos; 32778: 32778: template 32778: void 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: swap(basic_string& __s) noexcept 32778: { 32778: if (this == &__s) 32778: return; 32778: 32778: _Alloc_traits::_S_on_swap(_M_get_allocator(), __s._M_get_allocator()); 32778: 32778: if (_M_is_local()) 32778: if (__s._M_is_local()) 32778: { 32778: if (length() && __s.length()) 32778: { 32778: _CharT __tmp_data[_S_local_capacity + 1]; 32778: traits_type::copy(__tmp_data, __s._M_local_buf, 32778: _S_local_capacity + 1); 32778: traits_type::copy(__s._M_local_buf, _M_local_buf, 32778: _S_local_capacity + 1); 32778: traits_type::copy(_M_local_buf, __tmp_data, 32778: _S_local_capacity + 1); 32778: } 32778: else if (__s.length()) 32778: { 32778: traits_type::copy(_M_local_buf, __s._M_local_buf, 32778: _S_local_capacity + 1); 32778: _M_length(__s.length()); 32778: __s._M_set_length(0); 32778: return; 32778: } 32778: else if (length()) 32778: { 32778: traits_type::copy(__s._M_local_buf, _M_local_buf, 32778: _S_local_capacity + 1); 32778: __s._M_length(length()); 32778: _M_set_length(0); 32778: return; 32778: } 32778: } 32778: else 32778: { 32778: const size_type __tmp_capacity = __s._M_allocated_capacity; 32778: traits_type::copy(__s._M_local_buf, _M_local_buf, 32778: _S_local_capacity + 1); 32778: _M_data(__s._M_data()); 32778: __s._M_data(__s._M_local_buf); 32778: _M_capacity(__tmp_capacity); 32778: } 32778: else 32778: { 32778: const size_type __tmp_capacity = _M_allocated_capacity; 32778: if (__s._M_is_local()) 32778: { 32778: traits_type::copy(_M_local_buf, __s._M_local_buf, 32778: _S_local_capacity + 1); 32778: __s._M_data(_M_data()); 32778: _M_data(_M_local_buf); 32778: } 32778: else 32778: { 32778: pointer __tmp_ptr = _M_data(); 32778: _M_data(__s._M_data()); 32778: __s._M_data(__tmp_ptr); 32778: _M_capacity(__s._M_allocated_capacity); 32778: } 32778: __s._M_capacity(__tmp_capacity); 32778: } 32778: 32778: const size_type __tmp_length = length(); 32778: _M_length(__s.length()); 32778: __s._M_length(__tmp_length); 32778: } 32778: 32778: template 32778: typename basic_string<_CharT, _Traits, _Alloc>::pointer 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: _M_create(size_type& __capacity, size_type __old_capacity) 32778: { 32778: 32778: 32778: if (__capacity > max_size()) 32778: std::__throw_length_error(("basic_string::_M_create")); 32778: 32778: 32778: 32778: 32778: if (__capacity > __old_capacity && __capacity < 2 * __old_capacity) 32778: { 32778: __capacity = 2 * __old_capacity; 32778: 32778: if (__capacity > max_size()) 32778: __capacity = max_size(); 32778: } 32778: 32778: 32778: 32778: return _Alloc_traits::allocate(_M_get_allocator(), __capacity + 1); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: template 32778: template 32778: void 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: _M_construct(_InIterator __beg, _InIterator __end, 32778: std::input_iterator_tag) 32778: { 32778: size_type __len = 0; 32778: size_type __capacity = size_type(_S_local_capacity); 32778: 32778: while (__beg != __end && __len < __capacity) 32778: { 32778: _M_data()[__len++] = *__beg; 32778: ++__beg; 32778: } 32778: 32778: try 32778: { 32778: while (__beg != __end) 32778: { 32778: if (__len == __capacity) 32778: { 32778: 32778: __capacity = __len + 1; 32778: pointer __another = _M_create(__capacity, __len); 32778: this->_S_copy(__another, _M_data(), __len); 32778: _M_dispose(); 32778: _M_data(__another); 32778: _M_capacity(__capacity); 32778: } 32778: _M_data()[__len++] = *__beg; 32778: ++__beg; 32778: } 32778: } 32778: catch(...) 32778: { 32778: _M_dispose(); 32778: throw; 32778: } 32778: 32778: _M_set_length(__len); 32778: } 32778: 32778: template 32778: template 32778: void 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: _M_construct(_InIterator __beg, _InIterator __end, 32778: std::forward_iterator_tag) 32778: { 32778: 32778: if (__gnu_cxx::__is_null_pointer(__beg) && __beg != __end) 32778: std::__throw_logic_error(("basic_string::" "_M_construct null not valid") 32778: ); 32778: 32778: size_type __dnew = static_cast(std::distance(__beg, __end)); 32778: 32778: if (__dnew > size_type(_S_local_capacity)) 32778: { 32778: _M_data(_M_create(__dnew, size_type(0))); 32778: _M_capacity(__dnew); 32778: } 32778: 32778: 32778: try 32778: { this->_S_copy_chars(_M_data(), __beg, __end); } 32778: catch(...) 32778: { 32778: _M_dispose(); 32778: throw; 32778: } 32778: 32778: _M_set_length(__dnew); 32778: } 32778: 32778: template 32778: void 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: _M_construct(size_type __n, _CharT __c) 32778: { 32778: if (__n > size_type(_S_local_capacity)) 32778: { 32778: _M_data(_M_create(__n, size_type(0))); 32778: _M_capacity(__n); 32778: } 32778: 32778: if (__n) 32778: this->_S_assign(_M_data(), __n, __c); 32778: 32778: _M_set_length(__n); 32778: } 32778: 32778: template 32778: void 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: _M_assign(const basic_string& __str) 32778: { 32778: if (this != &__str) 32778: { 32778: const size_type __rsize = __str.length(); 32778: const size_type __capacity = capacity(); 32778: 32778: if (__rsize > __capacity) 32778: { 32778: size_type __new_capacity = __rsize; 32778: pointer __tmp = _M_create(__new_capacity, __capacity); 32778: _M_dispose(); 32778: _M_data(__tmp); 32778: _M_capacity(__new_capacity); 32778: } 32778: 32778: if (__rsize) 32778: this->_S_copy(_M_data(), __str._M_data(), __rsize); 32778: 32778: _M_set_length(__rsize); 32778: } 32778: } 32778: 32778: template 32778: void 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: reserve(size_type __res) 32778: { 32778: 32778: if (__res < length()) 32778: __res = length(); 32778: 32778: const size_type __capacity = capacity(); 32778: if (__res != __capacity) 32778: { 32778: if (__res > __capacity 32778: || __res > size_type(_S_local_capacity)) 32778: { 32778: pointer __tmp = _M_create(__res, __capacity); 32778: this->_S_copy(__tmp, _M_data(), length() + 1); 32778: _M_dispose(); 32778: _M_data(__tmp); 32778: _M_capacity(__res); 32778: } 32778: else if (!_M_is_local()) 32778: { 32778: this->_S_copy(_M_local_data(), _M_data(), length() + 1); 32778: _M_destroy(__capacity); 32778: _M_data(_M_local_data()); 32778: } 32778: } 32778: } 32778: 32778: template 32778: void 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: _M_mutate(size_type __pos, size_type __len1, const _CharT* __s, 32778: size_type __len2) 32778: { 32778: const size_type __how_much = length() - __pos - __len1; 32778: 32778: size_type __new_capacity = length() + __len2 - __len1; 32778: pointer __r = _M_create(__new_capacity, capacity()); 32778: 32778: if (__pos) 32778: this->_S_copy(__r, _M_data(), __pos); 32778: if (__s && __len2) 32778: this->_S_copy(__r + __pos, __s, __len2); 32778: if (__how_much) 32778: this->_S_copy(__r + __pos + __len2, 32778: _M_data() + __pos + __len1, __how_much); 32778: 32778: _M_dispose(); 32778: _M_data(__r); 32778: _M_capacity(__new_capacity); 32778: } 32778: 32778: template 32778: void 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: _M_erase(size_type __pos, size_type __n) 32778: { 32778: const size_type __how_much = length() - __pos - __n; 32778: 32778: if (__how_much && __n) 32778: this->_S_move(_M_data() + __pos, _M_data() + __pos + __n, __how_much); 32778: 32778: _M_set_length(length() - __n); 32778: } 32778: 32778: template 32778: void 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: resize(size_type __n, _CharT __c) 32778: { 32778: const size_type __size = this->size(); 32778: if (__size < __n) 32778: this->append(__n - __size, __c); 32778: else if (__n < __size) 32778: this->_M_set_length(__n); 32778: } 32778: 32778: template 32778: basic_string<_CharT, _Traits, _Alloc>& 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: _M_append(const _CharT* __s, size_type __n) 32778: { 32778: const size_type __len = __n + this->size(); 32778: 32778: if (__len <= this->capacity()) 32778: { 32778: if (__n) 32778: this->_S_copy(this->_M_data() + this->size(), __s, __n); 32778: } 32778: else 32778: this->_M_mutate(this->size(), size_type(0), __s, __n); 32778: 32778: this->_M_set_length(__len); 32778: return *this; 32778: } 32778: 32778: template 32778: template 32778: basic_string<_CharT, _Traits, _Alloc>& 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 32778: _InputIterator __k1, _InputIterator __k2, 32778: std::__false_type) 32778: { 32778: const basic_string __s(__k1, __k2); 32778: const size_type __n1 = __i2 - __i1; 32778: return _M_replace(__i1 - begin(), __n1, __s._M_data(), 32778: __s.size()); 32778: } 32778: 32778: template 32778: basic_string<_CharT, _Traits, _Alloc>& 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, 32778: _CharT __c) 32778: { 32778: _M_check_length(__n1, __n2, "basic_string::_M_replace_aux"); 32778: 32778: const size_type __old_size = this->size(); 32778: const size_type __new_size = __old_size + __n2 - __n1; 32778: 32778: if (__new_size <= this->capacity()) 32778: { 32778: pointer __p = this->_M_data() + __pos1; 32778: 32778: const size_type __how_much = __old_size - __pos1 - __n1; 32778: if (__how_much && __n1 != __n2) 32778: this->_S_move(__p + __n2, __p + __n1, __how_much); 32778: } 32778: else 32778: this->_M_mutate(__pos1, __n1, 0, __n2); 32778: 32778: if (__n2) 32778: this->_S_assign(this->_M_data() + __pos1, __n2, __c); 32778: 32778: this->_M_set_length(__new_size); 32778: return *this; 32778: } 32778: 32778: template 32778: basic_string<_CharT, _Traits, _Alloc>& 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: _M_replace(size_type __pos, size_type __len1, const _CharT* __s, 32778: const size_type __len2) 32778: { 32778: _M_check_length(__len1, __len2, "basic_string::_M_replace"); 32778: 32778: const size_type __old_size = this->size(); 32778: const size_type __new_size = __old_size + __len2 - __len1; 32778: 32778: if (__new_size <= this->capacity()) 32778: { 32778: pointer __p = this->_M_data() + __pos; 32778: 32778: const size_type __how_much = __old_size - __pos - __len1; 32778: if (_M_disjunct(__s)) 32778: { 32778: if (__how_much && __len1 != __len2) 32778: this->_S_move(__p + __len2, __p + __len1, __how_much); 32778: if (__len2) 32778: this->_S_copy(__p, __s, __len2); 32778: } 32778: else 32778: { 32778: 32778: if (__len2 && __len2 <= __len1) 32778: this->_S_move(__p, __s, __len2); 32778: if (__how_much && __len1 != __len2) 32778: this->_S_move(__p + __len2, __p + __len1, __how_much); 32778: if (__len2 > __len1) 32778: { 32778: if (__s + __len2 <= __p + __len1) 32778: this->_S_move(__p, __s, __len2); 32778: else if (__s >= __p + __len1) 32778: this->_S_copy(__p, __s + __len2 - __len1, __len2); 32778: else 32778: { 32778: const size_type __nleft = (__p + __len1) - __s; 32778: this->_S_move(__p, __s, __nleft); 32778: this->_S_copy(__p + __nleft, __p + __len2, 32778: __len2 - __nleft); 32778: } 32778: } 32778: } 32778: } 32778: else 32778: this->_M_mutate(__pos, __len1, __s, __len2); 32778: 32778: this->_M_set_length(__new_size); 32778: return *this; 32778: } 32778: 32778: template 32778: typename basic_string<_CharT, _Traits, _Alloc>::size_type 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: copy(_CharT* __s, size_type __n, size_type __pos) const 32778: { 32778: _M_check(__pos, "basic_string::copy"); 32778: __n = _M_limit(__pos, __n); 32778: ; 32778: if (__n) 32778: _S_copy(__s, _M_data() + __pos, __n); 32778: 32778: return __n; 32778: } 32778: # 1156 "/usr/include/c++/9/bits/basic_string.tcc" 3 32778: template 32778: basic_string<_CharT, _Traits, _Alloc> 32778: operator+(const _CharT* __lhs, 32778: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 32778: { 32778: ; 32778: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 32778: typedef typename __string_type::size_type __size_type; 32778: const __size_type __len = _Traits::length(__lhs); 32778: __string_type __str; 32778: __str.reserve(__len + __rhs.size()); 32778: __str.append(__lhs, __len); 32778: __str.append(__rhs); 32778: return __str; 32778: } 32778: 32778: template 32778: basic_string<_CharT, _Traits, _Alloc> 32778: operator+(_CharT __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs) 32778: { 32778: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 32778: typedef typename __string_type::size_type __size_type; 32778: __string_type __str; 32778: const __size_type __len = __rhs.size(); 32778: __str.reserve(__len + 1); 32778: __str.append(__size_type(1), __lhs); 32778: __str.append(__rhs); 32778: return __str; 32778: } 32778: 32778: template 32778: typename basic_string<_CharT, _Traits, _Alloc>::size_type 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: find(const _CharT* __s, size_type __pos, size_type __n) const 32778: noexcept 32778: { 32778: ; 32778: const size_type __size = this->size(); 32778: 32778: if (__n == 0) 32778: return __pos <= __size ? __pos : npos; 32778: if (__pos >= __size) 32778: return npos; 32778: 32778: const _CharT __elem0 = __s[0]; 32778: const _CharT* const __data = data(); 32778: const _CharT* __first = __data + __pos; 32778: const _CharT* const __last = __data + __size; 32778: size_type __len = __size - __pos; 32778: 32778: while (__len >= __n) 32778: { 32778: 32778: __first = traits_type::find(__first, __len - __n + 1, __elem0); 32778: if (!__first) 32778: return npos; 32778: 32778: 32778: 32778: if (traits_type::compare(__first, __s, __n) == 0) 32778: return __first - __data; 32778: __len = __last - ++__first; 32778: } 32778: return npos; 32778: } 32778: 32778: template 32778: typename basic_string<_CharT, _Traits, _Alloc>::size_type 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: find(_CharT __c, size_type __pos) const noexcept 32778: { 32778: size_type __ret = npos; 32778: const size_type __size = this->size(); 32778: if (__pos < __size) 32778: { 32778: const _CharT* __data = _M_data(); 32778: const size_type __n = __size - __pos; 32778: const _CharT* __p = traits_type::find(__data + __pos, __n, __c); 32778: if (__p) 32778: __ret = __p - __data; 32778: } 32778: return __ret; 32778: } 32778: 32778: template 32778: typename basic_string<_CharT, _Traits, _Alloc>::size_type 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: rfind(const _CharT* __s, size_type __pos, size_type __n) const 32778: noexcept 32778: { 32778: ; 32778: const size_type __size = this->size(); 32778: if (__n <= __size) 32778: { 32778: __pos = std::min(size_type(__size - __n), __pos); 32778: const _CharT* __data = _M_data(); 32778: do 32778: { 32778: if (traits_type::compare(__data + __pos, __s, __n) == 0) 32778: return __pos; 32778: } 32778: while (__pos-- > 0); 32778: } 32778: return npos; 32778: } 32778: 32778: template 32778: typename basic_string<_CharT, _Traits, _Alloc>::size_type 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: rfind(_CharT __c, size_type __pos) const noexcept 32778: { 32778: size_type __size = this->size(); 32778: if (__size) 32778: { 32778: if (--__size > __pos) 32778: __size = __pos; 32778: for (++__size; __size-- > 0; ) 32778: if (traits_type::eq(_M_data()[__size], __c)) 32778: return __size; 32778: } 32778: return npos; 32778: } 32778: 32778: template 32778: typename basic_string<_CharT, _Traits, _Alloc>::size_type 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: find_first_of(const _CharT* __s, size_type __pos, size_type __n) const 32778: noexcept 32778: { 32778: ; 32778: for (; __n && __pos < this->size(); ++__pos) 32778: { 32778: const _CharT* __p = traits_type::find(__s, __n, _M_data()[__pos]); 32778: if (__p) 32778: return __pos; 32778: } 32778: return npos; 32778: } 32778: 32778: template 32778: typename basic_string<_CharT, _Traits, _Alloc>::size_type 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: find_last_of(const _CharT* __s, size_type __pos, size_type __n) const 32778: noexcept 32778: { 32778: ; 32778: size_type __size = this->size(); 32778: if (__size && __n) 32778: { 32778: if (--__size > __pos) 32778: __size = __pos; 32778: do 32778: { 32778: if (traits_type::find(__s, __n, _M_data()[__size])) 32778: return __size; 32778: } 32778: while (__size-- != 0); 32778: } 32778: return npos; 32778: } 32778: 32778: template 32778: typename basic_string<_CharT, _Traits, _Alloc>::size_type 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const 32778: noexcept 32778: { 32778: ; 32778: for (; __pos < this->size(); ++__pos) 32778: if (!traits_type::find(__s, __n, _M_data()[__pos])) 32778: return __pos; 32778: return npos; 32778: } 32778: 32778: template 32778: typename basic_string<_CharT, _Traits, _Alloc>::size_type 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: find_first_not_of(_CharT __c, size_type __pos) const noexcept 32778: { 32778: for (; __pos < this->size(); ++__pos) 32778: if (!traits_type::eq(_M_data()[__pos], __c)) 32778: return __pos; 32778: return npos; 32778: } 32778: 32778: template 32778: typename basic_string<_CharT, _Traits, _Alloc>::size_type 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const 32778: noexcept 32778: { 32778: ; 32778: size_type __size = this->size(); 32778: if (__size) 32778: { 32778: if (--__size > __pos) 32778: __size = __pos; 32778: do 32778: { 32778: if (!traits_type::find(__s, __n, _M_data()[__size])) 32778: return __size; 32778: } 32778: while (__size--); 32778: } 32778: return npos; 32778: } 32778: 32778: template 32778: typename basic_string<_CharT, _Traits, _Alloc>::size_type 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: find_last_not_of(_CharT __c, size_type __pos) const noexcept 32778: { 32778: size_type __size = this->size(); 32778: if (__size) 32778: { 32778: if (--__size > __pos) 32778: __size = __pos; 32778: do 32778: { 32778: if (!traits_type::eq(_M_data()[__size], __c)) 32778: return __size; 32778: } 32778: while (__size--); 32778: } 32778: return npos; 32778: } 32778: 32778: template 32778: int 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: compare(size_type __pos, size_type __n, const basic_string& __str) const 32778: { 32778: _M_check(__pos, "basic_string::compare"); 32778: __n = _M_limit(__pos, __n); 32778: const size_type __osize = __str.size(); 32778: const size_type __len = std::min(__n, __osize); 32778: int __r = traits_type::compare(_M_data() + __pos, __str.data(), __len); 32778: if (!__r) 32778: __r = _S_compare(__n, __osize); 32778: return __r; 32778: } 32778: 32778: template 32778: int 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: compare(size_type __pos1, size_type __n1, const basic_string& __str, 32778: size_type __pos2, size_type __n2) const 32778: { 32778: _M_check(__pos1, "basic_string::compare"); 32778: __str._M_check(__pos2, "basic_string::compare"); 32778: __n1 = _M_limit(__pos1, __n1); 32778: __n2 = __str._M_limit(__pos2, __n2); 32778: const size_type __len = std::min(__n1, __n2); 32778: int __r = traits_type::compare(_M_data() + __pos1, 32778: __str.data() + __pos2, __len); 32778: if (!__r) 32778: __r = _S_compare(__n1, __n2); 32778: return __r; 32778: } 32778: 32778: template 32778: int 32778: basic_string<_CharT, _Traits, _Alloc>:: 32778: compare(const _CharT* __s) const noexcept 32778: { 32778: ; 32778: const size_type __size = this->size(); 32778: const size_type __osize = traits_type::length(__s); 32778: const size_type __len = std::min(__size, __osize); 32778: int __r = traits_type::compare(_M_data(), __s, __len); 32778: if (!__r) 32778: __r = _S_compare(__size, __osize); 32778: return __r; 32778: } 32778: 32778: template 32778: int 32778: basic_string <_CharT, _Traits, _Alloc>:: 32778: compare(size_type __pos, size_type __n1, const _CharT* __s) const 32778: { 32778: ; 32778: _M_check(__pos, "basic_string::compare"); 32778: __n1 = _M_limit(__pos, __n1); 32778: const size_type __osize = traits_type::length(__s); 32778: const size_type __len = std::min(__n1, __osize); 32778: int __r = traits_type::compare(_M_data() + __pos, __s, __len); 32778: if (!__r) 32778: __r = _S_compare(__n1, __osize); 32778: return __r; 32778: } 32778: 32778: template 32778: int 32778: basic_string <_CharT, _Traits, _Alloc>:: 32778: compare(size_type __pos, size_type __n1, const _CharT* __s, 32778: size_type __n2) const 32778: { 32778: ; 32778: _M_check(__pos, "basic_string::compare"); 32778: __n1 = _M_limit(__pos, __n1); 32778: const size_type __len = std::min(__n1, __n2); 32778: int __r = traits_type::compare(_M_data() + __pos, __s, __len); 32778: if (!__r) 32778: __r = _S_compare(__n1, __n2); 32778: return __r; 32778: } 32778: 32778: 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: operator>>(basic_istream<_CharT, _Traits>& __in, 32778: basic_string<_CharT, _Traits, _Alloc>& __str) 32778: { 32778: typedef basic_istream<_CharT, _Traits> __istream_type; 32778: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 32778: typedef typename __istream_type::ios_base __ios_base; 32778: typedef typename __istream_type::int_type __int_type; 32778: typedef typename __string_type::size_type __size_type; 32778: typedef ctype<_CharT> __ctype_type; 32778: typedef typename __ctype_type::ctype_base __ctype_base; 32778: 32778: __size_type __extracted = 0; 32778: typename __ios_base::iostate __err = __ios_base::goodbit; 32778: typename __istream_type::sentry __cerb(__in, false); 32778: if (__cerb) 32778: { 32778: try 32778: { 32778: 32778: __str.erase(); 32778: _CharT __buf[128]; 32778: __size_type __len = 0; 32778: const streamsize __w = __in.width(); 32778: const __size_type __n = __w > 0 ? static_cast<__size_type>(__w) 32778: : __str.max_size(); 32778: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 32778: const __int_type __eof = _Traits::eof(); 32778: __int_type __c = __in.rdbuf()->sgetc(); 32778: 32778: while (__extracted < __n 32778: && !_Traits::eq_int_type(__c, __eof) 32778: && !__ct.is(__ctype_base::space, 32778: _Traits::to_char_type(__c))) 32778: { 32778: if (__len == sizeof(__buf) / sizeof(_CharT)) 32778: { 32778: __str.append(__buf, sizeof(__buf) / sizeof(_CharT)); 32778: __len = 0; 32778: } 32778: __buf[__len++] = _Traits::to_char_type(__c); 32778: ++__extracted; 32778: __c = __in.rdbuf()->snextc(); 32778: } 32778: __str.append(__buf, __len); 32778: 32778: if (_Traits::eq_int_type(__c, __eof)) 32778: __err |= __ios_base::eofbit; 32778: __in.width(0); 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: __in._M_setstate(__ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { 32778: 32778: 32778: 32778: __in._M_setstate(__ios_base::badbit); 32778: } 32778: } 32778: 32778: if (!__extracted) 32778: __err |= __ios_base::failbit; 32778: if (__err) 32778: __in.setstate(__err); 32778: return __in; 32778: } 32778: 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: getline(basic_istream<_CharT, _Traits>& __in, 32778: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) 32778: { 32778: typedef basic_istream<_CharT, _Traits> __istream_type; 32778: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 32778: typedef typename __istream_type::ios_base __ios_base; 32778: typedef typename __istream_type::int_type __int_type; 32778: typedef typename __string_type::size_type __size_type; 32778: 32778: __size_type __extracted = 0; 32778: const __size_type __n = __str.max_size(); 32778: typename __ios_base::iostate __err = __ios_base::goodbit; 32778: typename __istream_type::sentry __cerb(__in, true); 32778: if (__cerb) 32778: { 32778: try 32778: { 32778: __str.erase(); 32778: const __int_type __idelim = _Traits::to_int_type(__delim); 32778: const __int_type __eof = _Traits::eof(); 32778: __int_type __c = __in.rdbuf()->sgetc(); 32778: 32778: while (__extracted < __n 32778: && !_Traits::eq_int_type(__c, __eof) 32778: && !_Traits::eq_int_type(__c, __idelim)) 32778: { 32778: __str += _Traits::to_char_type(__c); 32778: ++__extracted; 32778: __c = __in.rdbuf()->snextc(); 32778: } 32778: 32778: if (_Traits::eq_int_type(__c, __eof)) 32778: __err |= __ios_base::eofbit; 32778: else if (_Traits::eq_int_type(__c, __idelim)) 32778: { 32778: ++__extracted; 32778: __in.rdbuf()->sbumpc(); 32778: } 32778: else 32778: __err |= __ios_base::failbit; 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: __in._M_setstate(__ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { 32778: 32778: 32778: 32778: __in._M_setstate(__ios_base::badbit); 32778: } 32778: } 32778: if (!__extracted) 32778: __err |= __ios_base::failbit; 32778: if (__err) 32778: __in.setstate(__err); 32778: return __in; 32778: } 32778: # 1608 "/usr/include/c++/9/bits/basic_string.tcc" 3 32778: extern template class basic_string; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern template 32778: basic_istream& 32778: operator>>(basic_istream&, string&); 32778: extern template 32778: basic_ostream& 32778: operator<<(basic_ostream&, const string&); 32778: extern template 32778: basic_istream& 32778: getline(basic_istream&, string&, char); 32778: extern template 32778: basic_istream& 32778: getline(basic_istream&, string&); 32778: 32778: 32778: 32778: extern template class basic_string; 32778: 32778: 32778: 32778: 32778: 32778: extern template 32778: basic_istream& 32778: operator>>(basic_istream&, wstring&); 32778: extern template 32778: basic_ostream& 32778: operator<<(basic_ostream&, const wstring&); 32778: extern template 32778: basic_istream& 32778: getline(basic_istream&, wstring&, wchar_t); 32778: extern template 32778: basic_istream& 32778: getline(basic_istream&, wstring&); 32778: 32778: 32778: 32778: 32778: } 32778: # 57 "/usr/include/c++/9/string" 2 3 32778: # 17 "/<>/include/HepMC3/GenParticle.h" 2 32778: # 1 "/<>/include/HepMC3/Data/GenParticleData.h" 1 32778: # 18 "/<>/include/HepMC3/Data/GenParticleData.h" 32778: # 1 "/<>/include/HepMC3/FourVector.h" 1 32778: # 12 "/<>/include/HepMC3/FourVector.h" 32778: # 1 "/usr/include/c++/9/cmath" 1 3 32778: # 39 "/usr/include/c++/9/cmath" 3 32778: 32778: # 40 "/usr/include/c++/9/cmath" 3 32778: 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/math.h" 1 3 4 32778: # 27 "/usr/include/math.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/libc-header-start.h" 1 3 4 32778: # 28 "/usr/include/math.h" 2 3 4 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern "C" { 32778: 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/math-vector.h" 1 3 4 32778: # 27 "/usr/include/riscv64-linux-gnu/bits/math-vector.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/libm-simd-decl-stubs.h" 1 3 4 32778: # 27 "/usr/include/riscv64-linux-gnu/bits/math-vector.h" 2 3 4 32778: # 41 "/usr/include/math.h" 2 3 4 32778: # 138 "/usr/include/math.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/flt-eval-method.h" 1 3 4 32778: # 139 "/usr/include/math.h" 2 3 4 32778: # 149 "/usr/include/math.h" 3 4 32778: typedef float float_t; 32778: typedef double double_t; 32778: # 190 "/usr/include/math.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/fp-logb.h" 1 3 4 32778: # 191 "/usr/include/math.h" 2 3 4 32778: # 233 "/usr/include/math.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/fp-fast.h" 1 3 4 32778: # 234 "/usr/include/math.h" 2 3 4 32778: 32778: 32778: 32778: enum 32778: { 32778: FP_INT_UPWARD = 32778: 32778: 0, 32778: FP_INT_DOWNWARD = 32778: 32778: 1, 32778: FP_INT_TOWARDZERO = 32778: 32778: 2, 32778: FP_INT_TONEARESTFROMZERO = 32778: 32778: 3, 32778: FP_INT_TONEAREST = 32778: 32778: 4, 32778: }; 32778: # 289 "/usr/include/math.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/mathcalls-helper-functions.h" 1 3 4 32778: # 21 "/usr/include/riscv64-linux-gnu/bits/mathcalls-helper-functions.h" 3 4 32778: extern int __fpclassify (double __value) throw () 32778: __attribute__ ((__const__)); 32778: 32778: 32778: extern int __signbit (double __value) throw () 32778: __attribute__ ((__const__)); 32778: 32778: 32778: 32778: extern int __isinf (double __value) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern int __finite (double __value) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern int __isnan (double __value) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern int __iseqsig (double __x, double __y) throw (); 32778: 32778: 32778: extern int __issignaling (double __value) throw () 32778: __attribute__ ((__const__)); 32778: # 290 "/usr/include/math.h" 2 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 1 3 4 32778: # 53 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern double acos (double __x) throw (); extern double __acos (double __x) throw (); 32778: 32778: extern double asin (double __x) throw (); extern double __asin (double __x) throw (); 32778: 32778: extern double atan (double __x) throw (); extern double __atan (double __x) throw (); 32778: 32778: extern double atan2 (double __y, double __x) throw (); extern double __atan2 (double __y, double __x) throw (); 32778: 32778: 32778: extern double cos (double __x) throw (); extern double __cos (double __x) throw (); 32778: 32778: extern double sin (double __x) throw (); extern double __sin (double __x) throw (); 32778: 32778: extern double tan (double __x) throw (); extern double __tan (double __x) throw (); 32778: 32778: 32778: 32778: 32778: extern double cosh (double __x) throw (); extern double __cosh (double __x) throw (); 32778: 32778: extern double sinh (double __x) throw (); extern double __sinh (double __x) throw (); 32778: 32778: extern double tanh (double __x) throw (); extern double __tanh (double __x) throw (); 32778: 32778: 32778: 32778: extern void sincos (double __x, double *__sinx, double *__cosx) throw (); extern void __sincos (double __x, double *__sinx, double *__cosx) throw () 32778: ; 32778: 32778: 32778: 32778: 32778: extern double acosh (double __x) throw (); extern double __acosh (double __x) throw (); 32778: 32778: extern double asinh (double __x) throw (); extern double __asinh (double __x) throw (); 32778: 32778: extern double atanh (double __x) throw (); extern double __atanh (double __x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern double exp (double __x) throw (); extern double __exp (double __x) throw (); 32778: 32778: 32778: extern double frexp (double __x, int *__exponent) throw (); extern double __frexp (double __x, int *__exponent) throw (); 32778: 32778: 32778: extern double ldexp (double __x, int __exponent) throw (); extern double __ldexp (double __x, int __exponent) throw (); 32778: 32778: 32778: extern double log (double __x) throw (); extern double __log (double __x) throw (); 32778: 32778: 32778: extern double log10 (double __x) throw (); extern double __log10 (double __x) throw (); 32778: 32778: 32778: extern double modf (double __x, double *__iptr) throw (); extern double __modf (double __x, double *__iptr) throw () __attribute__ ((__nonnull__ (2))); 32778: 32778: 32778: 32778: extern double exp10 (double __x) throw (); extern double __exp10 (double __x) throw (); 32778: 32778: 32778: 32778: 32778: extern double expm1 (double __x) throw (); extern double __expm1 (double __x) throw (); 32778: 32778: 32778: extern double log1p (double __x) throw (); extern double __log1p (double __x) throw (); 32778: 32778: 32778: extern double logb (double __x) throw (); extern double __logb (double __x) throw (); 32778: 32778: 32778: 32778: 32778: extern double exp2 (double __x) throw (); extern double __exp2 (double __x) throw (); 32778: 32778: 32778: extern double log2 (double __x) throw (); extern double __log2 (double __x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern double pow (double __x, double __y) throw (); extern double __pow (double __x, double __y) throw (); 32778: 32778: 32778: extern double sqrt (double __x) throw (); extern double __sqrt (double __x) throw (); 32778: 32778: 32778: 32778: extern double hypot (double __x, double __y) throw (); extern double __hypot (double __x, double __y) throw (); 32778: 32778: 32778: 32778: 32778: extern double cbrt (double __x) throw (); extern double __cbrt (double __x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern double ceil (double __x) throw () __attribute__ ((__const__)); extern double __ceil (double __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern double fabs (double __x) throw () __attribute__ ((__const__)); extern double __fabs (double __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern double floor (double __x) throw () __attribute__ ((__const__)); extern double __floor (double __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern double fmod (double __x, double __y) throw (); extern double __fmod (double __x, double __y) throw (); 32778: # 182 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern int finite (double __value) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern double drem (double __x, double __y) throw (); extern double __drem (double __x, double __y) throw (); 32778: 32778: 32778: 32778: extern double significand (double __x) throw (); extern double __significand (double __x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern double copysign (double __x, double __y) throw () __attribute__ ((__const__)); extern double __copysign (double __x, double __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: 32778: extern double nan (const char *__tagb) throw (); extern double __nan (const char *__tagb) throw (); 32778: # 217 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern double j0 (double) throw (); extern double __j0 (double) throw (); 32778: extern double j1 (double) throw (); extern double __j1 (double) throw (); 32778: extern double jn (int, double) throw (); extern double __jn (int, double) throw (); 32778: extern double y0 (double) throw (); extern double __y0 (double) throw (); 32778: extern double y1 (double) throw (); extern double __y1 (double) throw (); 32778: extern double yn (int, double) throw (); extern double __yn (int, double) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern double erf (double) throw (); extern double __erf (double) throw (); 32778: extern double erfc (double) throw (); extern double __erfc (double) throw (); 32778: extern double lgamma (double) throw (); extern double __lgamma (double) throw (); 32778: 32778: 32778: 32778: 32778: extern double tgamma (double) throw (); extern double __tgamma (double) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern double gamma (double) throw (); extern double __gamma (double) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern double lgamma_r (double, int *__signgamp) throw (); extern double __lgamma_r (double, int *__signgamp) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern double rint (double __x) throw (); extern double __rint (double __x) throw (); 32778: 32778: 32778: extern double nextafter (double __x, double __y) throw (); extern double __nextafter (double __x, double __y) throw (); 32778: 32778: extern double nexttoward (double __x, long double __y) throw (); extern double __nexttoward (double __x, long double __y) throw (); 32778: 32778: 32778: 32778: 32778: extern double nextdown (double __x) throw (); extern double __nextdown (double __x) throw (); 32778: 32778: extern double nextup (double __x) throw (); extern double __nextup (double __x) throw (); 32778: 32778: 32778: 32778: extern double remainder (double __x, double __y) throw (); extern double __remainder (double __x, double __y) throw (); 32778: 32778: 32778: 32778: extern double scalbn (double __x, int __n) throw (); extern double __scalbn (double __x, int __n) throw (); 32778: 32778: 32778: 32778: extern int ilogb (double __x) throw (); extern int __ilogb (double __x) throw (); 32778: 32778: 32778: 32778: 32778: extern long int llogb (double __x) throw (); extern long int __llogb (double __x) throw (); 32778: 32778: 32778: 32778: 32778: extern double scalbln (double __x, long int __n) throw (); extern double __scalbln (double __x, long int __n) throw (); 32778: 32778: 32778: 32778: extern double nearbyint (double __x) throw (); extern double __nearbyint (double __x) throw (); 32778: 32778: 32778: 32778: extern double round (double __x) throw () __attribute__ ((__const__)); extern double __round (double __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: extern double trunc (double __x) throw () __attribute__ ((__const__)); extern double __trunc (double __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: 32778: extern double remquo (double __x, double __y, int *__quo) throw (); extern double __remquo (double __x, double __y, int *__quo) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern long int lrint (double __x) throw (); extern long int __lrint (double __x) throw (); 32778: __extension__ 32778: extern long long int llrint (double __x) throw (); extern long long int __llrint (double __x) throw (); 32778: 32778: 32778: 32778: extern long int lround (double __x) throw (); extern long int __lround (double __x) throw (); 32778: __extension__ 32778: extern long long int llround (double __x) throw (); extern long long int __llround (double __x) throw (); 32778: 32778: 32778: 32778: extern double fdim (double __x, double __y) throw (); extern double __fdim (double __x, double __y) throw (); 32778: 32778: 32778: extern double fmax (double __x, double __y) throw () __attribute__ ((__const__)); extern double __fmax (double __x, double __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern double fmin (double __x, double __y) throw () __attribute__ ((__const__)); extern double __fmin (double __x, double __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern double fma (double __x, double __y, double __z) throw (); extern double __fma (double __x, double __y, double __z) throw (); 32778: 32778: 32778: 32778: 32778: extern double roundeven (double __x) throw () __attribute__ ((__const__)); extern double __roundeven (double __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: extern __intmax_t fromfp (double __x, int __round, unsigned int __width) throw (); extern __intmax_t __fromfp (double __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: 32778: extern __uintmax_t ufromfp (double __x, int __round, unsigned int __width) throw (); extern __uintmax_t __ufromfp (double __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: 32778: 32778: extern __intmax_t fromfpx (double __x, int __round, unsigned int __width) throw (); extern __intmax_t __fromfpx (double __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: 32778: 32778: extern __uintmax_t ufromfpx (double __x, int __round, unsigned int __width) throw (); extern __uintmax_t __ufromfpx (double __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: extern double fmaxmag (double __x, double __y) throw () __attribute__ ((__const__)); extern double __fmaxmag (double __x, double __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern double fminmag (double __x, double __y) throw () __attribute__ ((__const__)); extern double __fminmag (double __x, double __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern int canonicalize (double *__cx, const double *__x) throw (); 32778: 32778: 32778: 32778: 32778: extern int totalorder (const double *__x, const double *__y) throw () 32778: 32778: __attribute__ ((__pure__)); 32778: 32778: 32778: extern int totalordermag (const double *__x, const double *__y) throw () 32778: 32778: __attribute__ ((__pure__)); 32778: 32778: 32778: extern double getpayload (const double *__x) throw (); extern double __getpayload (const double *__x) throw (); 32778: 32778: 32778: extern int setpayload (double *__x, double __payload) throw (); 32778: 32778: 32778: extern int setpayloadsig (double *__x, double __payload) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern double scalb (double __x, double __n) throw (); extern double __scalb (double __x, double __n) throw (); 32778: # 291 "/usr/include/math.h" 2 3 4 32778: # 306 "/usr/include/math.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/mathcalls-helper-functions.h" 1 3 4 32778: # 21 "/usr/include/riscv64-linux-gnu/bits/mathcalls-helper-functions.h" 3 4 32778: extern int __fpclassifyf (float __value) throw () 32778: __attribute__ ((__const__)); 32778: 32778: 32778: extern int __signbitf (float __value) throw () 32778: __attribute__ ((__const__)); 32778: 32778: 32778: 32778: extern int __isinff (float __value) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern int __finitef (float __value) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern int __isnanf (float __value) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern int __iseqsigf (float __x, float __y) throw (); 32778: 32778: 32778: extern int __issignalingf (float __value) throw () 32778: __attribute__ ((__const__)); 32778: # 307 "/usr/include/math.h" 2 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 1 3 4 32778: # 53 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern float acosf (float __x) throw (); extern float __acosf (float __x) throw (); 32778: 32778: extern float asinf (float __x) throw (); extern float __asinf (float __x) throw (); 32778: 32778: extern float atanf (float __x) throw (); extern float __atanf (float __x) throw (); 32778: 32778: extern float atan2f (float __y, float __x) throw (); extern float __atan2f (float __y, float __x) throw (); 32778: 32778: 32778: extern float cosf (float __x) throw (); extern float __cosf (float __x) throw (); 32778: 32778: extern float sinf (float __x) throw (); extern float __sinf (float __x) throw (); 32778: 32778: extern float tanf (float __x) throw (); extern float __tanf (float __x) throw (); 32778: 32778: 32778: 32778: 32778: extern float coshf (float __x) throw (); extern float __coshf (float __x) throw (); 32778: 32778: extern float sinhf (float __x) throw (); extern float __sinhf (float __x) throw (); 32778: 32778: extern float tanhf (float __x) throw (); extern float __tanhf (float __x) throw (); 32778: 32778: 32778: 32778: extern void sincosf (float __x, float *__sinx, float *__cosx) throw (); extern void __sincosf (float __x, float *__sinx, float *__cosx) throw () 32778: ; 32778: 32778: 32778: 32778: 32778: extern float acoshf (float __x) throw (); extern float __acoshf (float __x) throw (); 32778: 32778: extern float asinhf (float __x) throw (); extern float __asinhf (float __x) throw (); 32778: 32778: extern float atanhf (float __x) throw (); extern float __atanhf (float __x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern float expf (float __x) throw (); extern float __expf (float __x) throw (); 32778: 32778: 32778: extern float frexpf (float __x, int *__exponent) throw (); extern float __frexpf (float __x, int *__exponent) throw (); 32778: 32778: 32778: extern float ldexpf (float __x, int __exponent) throw (); extern float __ldexpf (float __x, int __exponent) throw (); 32778: 32778: 32778: extern float logf (float __x) throw (); extern float __logf (float __x) throw (); 32778: 32778: 32778: extern float log10f (float __x) throw (); extern float __log10f (float __x) throw (); 32778: 32778: 32778: extern float modff (float __x, float *__iptr) throw (); extern float __modff (float __x, float *__iptr) throw () __attribute__ ((__nonnull__ (2))); 32778: 32778: 32778: 32778: extern float exp10f (float __x) throw (); extern float __exp10f (float __x) throw (); 32778: 32778: 32778: 32778: 32778: extern float expm1f (float __x) throw (); extern float __expm1f (float __x) throw (); 32778: 32778: 32778: extern float log1pf (float __x) throw (); extern float __log1pf (float __x) throw (); 32778: 32778: 32778: extern float logbf (float __x) throw (); extern float __logbf (float __x) throw (); 32778: 32778: 32778: 32778: 32778: extern float exp2f (float __x) throw (); extern float __exp2f (float __x) throw (); 32778: 32778: 32778: extern float log2f (float __x) throw (); extern float __log2f (float __x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern float powf (float __x, float __y) throw (); extern float __powf (float __x, float __y) throw (); 32778: 32778: 32778: extern float sqrtf (float __x) throw (); extern float __sqrtf (float __x) throw (); 32778: 32778: 32778: 32778: extern float hypotf (float __x, float __y) throw (); extern float __hypotf (float __x, float __y) throw (); 32778: 32778: 32778: 32778: 32778: extern float cbrtf (float __x) throw (); extern float __cbrtf (float __x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern float ceilf (float __x) throw () __attribute__ ((__const__)); extern float __ceilf (float __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern float fabsf (float __x) throw () __attribute__ ((__const__)); extern float __fabsf (float __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern float floorf (float __x) throw () __attribute__ ((__const__)); extern float __floorf (float __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern float fmodf (float __x, float __y) throw (); extern float __fmodf (float __x, float __y) throw (); 32778: # 177 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern int isinff (float __value) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: 32778: extern int finitef (float __value) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern float dremf (float __x, float __y) throw (); extern float __dremf (float __x, float __y) throw (); 32778: 32778: 32778: 32778: extern float significandf (float __x) throw (); extern float __significandf (float __x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern float copysignf (float __x, float __y) throw () __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: 32778: extern float nanf (const char *__tagb) throw (); extern float __nanf (const char *__tagb) throw (); 32778: # 211 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern int isnanf (float __value) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: 32778: 32778: extern float j0f (float) throw (); extern float __j0f (float) throw (); 32778: extern float j1f (float) throw (); extern float __j1f (float) throw (); 32778: extern float jnf (int, float) throw (); extern float __jnf (int, float) throw (); 32778: extern float y0f (float) throw (); extern float __y0f (float) throw (); 32778: extern float y1f (float) throw (); extern float __y1f (float) throw (); 32778: extern float ynf (int, float) throw (); extern float __ynf (int, float) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern float erff (float) throw (); extern float __erff (float) throw (); 32778: extern float erfcf (float) throw (); extern float __erfcf (float) throw (); 32778: extern float lgammaf (float) throw (); extern float __lgammaf (float) throw (); 32778: 32778: 32778: 32778: 32778: extern float tgammaf (float) throw (); extern float __tgammaf (float) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern float gammaf (float) throw (); extern float __gammaf (float) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern float lgammaf_r (float, int *__signgamp) throw (); extern float __lgammaf_r (float, int *__signgamp) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern float rintf (float __x) throw (); extern float __rintf (float __x) throw (); 32778: 32778: 32778: extern float nextafterf (float __x, float __y) throw (); extern float __nextafterf (float __x, float __y) throw (); 32778: 32778: extern float nexttowardf (float __x, long double __y) throw (); extern float __nexttowardf (float __x, long double __y) throw (); 32778: 32778: 32778: 32778: 32778: extern float nextdownf (float __x) throw (); extern float __nextdownf (float __x) throw (); 32778: 32778: extern float nextupf (float __x) throw (); extern float __nextupf (float __x) throw (); 32778: 32778: 32778: 32778: extern float remainderf (float __x, float __y) throw (); extern float __remainderf (float __x, float __y) throw (); 32778: 32778: 32778: 32778: extern float scalbnf (float __x, int __n) throw (); extern float __scalbnf (float __x, int __n) throw (); 32778: 32778: 32778: 32778: extern int ilogbf (float __x) throw (); extern int __ilogbf (float __x) throw (); 32778: 32778: 32778: 32778: 32778: extern long int llogbf (float __x) throw (); extern long int __llogbf (float __x) throw (); 32778: 32778: 32778: 32778: 32778: extern float scalblnf (float __x, long int __n) throw (); extern float __scalblnf (float __x, long int __n) throw (); 32778: 32778: 32778: 32778: extern float nearbyintf (float __x) throw (); extern float __nearbyintf (float __x) throw (); 32778: 32778: 32778: 32778: extern float roundf (float __x) throw () __attribute__ ((__const__)); extern float __roundf (float __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: extern float truncf (float __x) throw () __attribute__ ((__const__)); extern float __truncf (float __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: 32778: extern float remquof (float __x, float __y, int *__quo) throw (); extern float __remquof (float __x, float __y, int *__quo) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern long int lrintf (float __x) throw (); extern long int __lrintf (float __x) throw (); 32778: __extension__ 32778: extern long long int llrintf (float __x) throw (); extern long long int __llrintf (float __x) throw (); 32778: 32778: 32778: 32778: extern long int lroundf (float __x) throw (); extern long int __lroundf (float __x) throw (); 32778: __extension__ 32778: extern long long int llroundf (float __x) throw (); extern long long int __llroundf (float __x) throw (); 32778: 32778: 32778: 32778: extern float fdimf (float __x, float __y) throw (); extern float __fdimf (float __x, float __y) throw (); 32778: 32778: 32778: extern float fmaxf (float __x, float __y) throw () __attribute__ ((__const__)); extern float __fmaxf (float __x, float __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern float fminf (float __x, float __y) throw () __attribute__ ((__const__)); extern float __fminf (float __x, float __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern float fmaf (float __x, float __y, float __z) throw (); extern float __fmaf (float __x, float __y, float __z) throw (); 32778: 32778: 32778: 32778: 32778: extern float roundevenf (float __x) throw () __attribute__ ((__const__)); extern float __roundevenf (float __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: extern __intmax_t fromfpf (float __x, int __round, unsigned int __width) throw (); extern __intmax_t __fromfpf (float __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: 32778: extern __uintmax_t ufromfpf (float __x, int __round, unsigned int __width) throw (); extern __uintmax_t __ufromfpf (float __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: 32778: 32778: extern __intmax_t fromfpxf (float __x, int __round, unsigned int __width) throw (); extern __intmax_t __fromfpxf (float __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: 32778: 32778: extern __uintmax_t ufromfpxf (float __x, int __round, unsigned int __width) throw (); extern __uintmax_t __ufromfpxf (float __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: extern float fmaxmagf (float __x, float __y) throw () __attribute__ ((__const__)); extern float __fmaxmagf (float __x, float __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern float fminmagf (float __x, float __y) throw () __attribute__ ((__const__)); extern float __fminmagf (float __x, float __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern int canonicalizef (float *__cx, const float *__x) throw (); 32778: 32778: 32778: 32778: 32778: extern int totalorderf (const float *__x, const float *__y) throw () 32778: 32778: __attribute__ ((__pure__)); 32778: 32778: 32778: extern int totalordermagf (const float *__x, const float *__y) throw () 32778: 32778: __attribute__ ((__pure__)); 32778: 32778: 32778: extern float getpayloadf (const float *__x) throw (); extern float __getpayloadf (const float *__x) throw (); 32778: 32778: 32778: extern int setpayloadf (float *__x, float __payload) throw (); 32778: 32778: 32778: extern int setpayloadsigf (float *__x, float __payload) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern float scalbf (float __x, float __n) throw (); extern float __scalbf (float __x, float __n) throw (); 32778: # 308 "/usr/include/math.h" 2 3 4 32778: # 349 "/usr/include/math.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/mathcalls-helper-functions.h" 1 3 4 32778: # 21 "/usr/include/riscv64-linux-gnu/bits/mathcalls-helper-functions.h" 3 4 32778: extern int __fpclassifyl (long double __value) throw () 32778: __attribute__ ((__const__)); 32778: 32778: 32778: extern int __signbitl (long double __value) throw () 32778: __attribute__ ((__const__)); 32778: 32778: 32778: 32778: extern int __isinfl (long double __value) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern int __finitel (long double __value) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern int __isnanl (long double __value) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern int __iseqsigl (long double __x, long double __y) throw (); 32778: 32778: 32778: extern int __issignalingl (long double __value) throw () 32778: __attribute__ ((__const__)); 32778: # 350 "/usr/include/math.h" 2 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 1 3 4 32778: # 53 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern long double acosl (long double __x) throw (); extern long double __acosl (long double __x) throw (); 32778: 32778: extern long double asinl (long double __x) throw (); extern long double __asinl (long double __x) throw (); 32778: 32778: extern long double atanl (long double __x) throw (); extern long double __atanl (long double __x) throw (); 32778: 32778: extern long double atan2l (long double __y, long double __x) throw (); extern long double __atan2l (long double __y, long double __x) throw (); 32778: 32778: 32778: extern long double cosl (long double __x) throw (); extern long double __cosl (long double __x) throw (); 32778: 32778: extern long double sinl (long double __x) throw (); extern long double __sinl (long double __x) throw (); 32778: 32778: extern long double tanl (long double __x) throw (); extern long double __tanl (long double __x) throw (); 32778: 32778: 32778: 32778: 32778: extern long double coshl (long double __x) throw (); extern long double __coshl (long double __x) throw (); 32778: 32778: extern long double sinhl (long double __x) throw (); extern long double __sinhl (long double __x) throw (); 32778: 32778: extern long double tanhl (long double __x) throw (); extern long double __tanhl (long double __x) throw (); 32778: 32778: 32778: 32778: 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 () 32778: ; 32778: 32778: 32778: 32778: 32778: extern long double acoshl (long double __x) throw (); extern long double __acoshl (long double __x) throw (); 32778: 32778: extern long double asinhl (long double __x) throw (); extern long double __asinhl (long double __x) throw (); 32778: 32778: extern long double atanhl (long double __x) throw (); extern long double __atanhl (long double __x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern long double expl (long double __x) throw (); extern long double __expl (long double __x) throw (); 32778: 32778: 32778: extern long double frexpl (long double __x, int *__exponent) throw (); extern long double __frexpl (long double __x, int *__exponent) throw (); 32778: 32778: 32778: extern long double ldexpl (long double __x, int __exponent) throw (); extern long double __ldexpl (long double __x, int __exponent) throw (); 32778: 32778: 32778: extern long double logl (long double __x) throw (); extern long double __logl (long double __x) throw (); 32778: 32778: 32778: extern long double log10l (long double __x) throw (); extern long double __log10l (long double __x) throw (); 32778: 32778: 32778: 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))); 32778: 32778: 32778: 32778: extern long double exp10l (long double __x) throw (); extern long double __exp10l (long double __x) throw (); 32778: 32778: 32778: 32778: 32778: extern long double expm1l (long double __x) throw (); extern long double __expm1l (long double __x) throw (); 32778: 32778: 32778: extern long double log1pl (long double __x) throw (); extern long double __log1pl (long double __x) throw (); 32778: 32778: 32778: extern long double logbl (long double __x) throw (); extern long double __logbl (long double __x) throw (); 32778: 32778: 32778: 32778: 32778: extern long double exp2l (long double __x) throw (); extern long double __exp2l (long double __x) throw (); 32778: 32778: 32778: extern long double log2l (long double __x) throw (); extern long double __log2l (long double __x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern long double powl (long double __x, long double __y) throw (); extern long double __powl (long double __x, long double __y) throw (); 32778: 32778: 32778: extern long double sqrtl (long double __x) throw (); extern long double __sqrtl (long double __x) throw (); 32778: 32778: 32778: 32778: extern long double hypotl (long double __x, long double __y) throw (); extern long double __hypotl (long double __x, long double __y) throw (); 32778: 32778: 32778: 32778: 32778: extern long double cbrtl (long double __x) throw (); extern long double __cbrtl (long double __x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern long double ceill (long double __x) throw () __attribute__ ((__const__)); extern long double __ceill (long double __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern long double fabsl (long double __x) throw () __attribute__ ((__const__)); extern long double __fabsl (long double __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern long double floorl (long double __x) throw () __attribute__ ((__const__)); extern long double __floorl (long double __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern long double fmodl (long double __x, long double __y) throw (); extern long double __fmodl (long double __x, long double __y) throw (); 32778: # 177 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern int isinfl (long double __value) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: 32778: extern int finitel (long double __value) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern long double dreml (long double __x, long double __y) throw (); extern long double __dreml (long double __x, long double __y) throw (); 32778: 32778: 32778: 32778: extern long double significandl (long double __x) throw (); extern long double __significandl (long double __x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 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__)); 32778: 32778: 32778: 32778: 32778: extern long double nanl (const char *__tagb) throw (); extern long double __nanl (const char *__tagb) throw (); 32778: # 211 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern int isnanl (long double __value) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: 32778: 32778: extern long double j0l (long double) throw (); extern long double __j0l (long double) throw (); 32778: extern long double j1l (long double) throw (); extern long double __j1l (long double) throw (); 32778: extern long double jnl (int, long double) throw (); extern long double __jnl (int, long double) throw (); 32778: extern long double y0l (long double) throw (); extern long double __y0l (long double) throw (); 32778: extern long double y1l (long double) throw (); extern long double __y1l (long double) throw (); 32778: extern long double ynl (int, long double) throw (); extern long double __ynl (int, long double) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern long double erfl (long double) throw (); extern long double __erfl (long double) throw (); 32778: extern long double erfcl (long double) throw (); extern long double __erfcl (long double) throw (); 32778: extern long double lgammal (long double) throw (); extern long double __lgammal (long double) throw (); 32778: 32778: 32778: 32778: 32778: extern long double tgammal (long double) throw (); extern long double __tgammal (long double) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern long double gammal (long double) throw (); extern long double __gammal (long double) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern long double lgammal_r (long double, int *__signgamp) throw (); extern long double __lgammal_r (long double, int *__signgamp) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern long double rintl (long double __x) throw (); extern long double __rintl (long double __x) throw (); 32778: 32778: 32778: extern long double nextafterl (long double __x, long double __y) throw (); extern long double __nextafterl (long double __x, long double __y) throw (); 32778: 32778: extern long double nexttowardl (long double __x, long double __y) throw (); extern long double __nexttowardl (long double __x, long double __y) throw (); 32778: 32778: 32778: 32778: 32778: extern long double nextdownl (long double __x) throw (); extern long double __nextdownl (long double __x) throw (); 32778: 32778: extern long double nextupl (long double __x) throw (); extern long double __nextupl (long double __x) throw (); 32778: 32778: 32778: 32778: extern long double remainderl (long double __x, long double __y) throw (); extern long double __remainderl (long double __x, long double __y) throw (); 32778: 32778: 32778: 32778: extern long double scalbnl (long double __x, int __n) throw (); extern long double __scalbnl (long double __x, int __n) throw (); 32778: 32778: 32778: 32778: extern int ilogbl (long double __x) throw (); extern int __ilogbl (long double __x) throw (); 32778: 32778: 32778: 32778: 32778: extern long int llogbl (long double __x) throw (); extern long int __llogbl (long double __x) throw (); 32778: 32778: 32778: 32778: 32778: extern long double scalblnl (long double __x, long int __n) throw (); extern long double __scalblnl (long double __x, long int __n) throw (); 32778: 32778: 32778: 32778: extern long double nearbyintl (long double __x) throw (); extern long double __nearbyintl (long double __x) throw (); 32778: 32778: 32778: 32778: extern long double roundl (long double __x) throw () __attribute__ ((__const__)); extern long double __roundl (long double __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: extern long double truncl (long double __x) throw () __attribute__ ((__const__)); extern long double __truncl (long double __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: 32778: 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 (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern long int lrintl (long double __x) throw (); extern long int __lrintl (long double __x) throw (); 32778: __extension__ 32778: extern long long int llrintl (long double __x) throw (); extern long long int __llrintl (long double __x) throw (); 32778: 32778: 32778: 32778: extern long int lroundl (long double __x) throw (); extern long int __lroundl (long double __x) throw (); 32778: __extension__ 32778: extern long long int llroundl (long double __x) throw (); extern long long int __llroundl (long double __x) throw (); 32778: 32778: 32778: 32778: extern long double fdiml (long double __x, long double __y) throw (); extern long double __fdiml (long double __x, long double __y) throw (); 32778: 32778: 32778: 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__)); 32778: 32778: 32778: 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__)); 32778: 32778: 32778: 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 (); 32778: 32778: 32778: 32778: 32778: extern long double roundevenl (long double __x) throw () __attribute__ ((__const__)); extern long double __roundevenl (long double __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: extern __intmax_t fromfpl (long double __x, int __round, unsigned int __width) throw (); extern __intmax_t __fromfpl (long double __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: 32778: extern __uintmax_t ufromfpl (long double __x, int __round, unsigned int __width) throw (); extern __uintmax_t __ufromfpl (long double __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: 32778: 32778: extern __intmax_t fromfpxl (long double __x, int __round, unsigned int __width) throw (); extern __intmax_t __fromfpxl (long double __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: 32778: 32778: extern __uintmax_t ufromfpxl (long double __x, int __round, unsigned int __width) throw (); extern __uintmax_t __ufromfpxl (long double __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: extern long double fmaxmagl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double __fmaxmagl (long double __x, long double __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern long double fminmagl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double __fminmagl (long double __x, long double __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern int canonicalizel (long double *__cx, const long double *__x) throw (); 32778: 32778: 32778: 32778: 32778: extern int totalorderl (const long double *__x, const long double *__y) throw () 32778: 32778: __attribute__ ((__pure__)); 32778: 32778: 32778: extern int totalordermagl (const long double *__x, const long double *__y) throw () 32778: 32778: __attribute__ ((__pure__)); 32778: 32778: 32778: extern long double getpayloadl (const long double *__x) throw (); extern long double __getpayloadl (const long double *__x) throw (); 32778: 32778: 32778: extern int setpayloadl (long double *__x, long double __payload) throw (); 32778: 32778: 32778: extern int setpayloadsigl (long double *__x, long double __payload) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern long double scalbl (long double __x, long double __n) throw (); extern long double __scalbl (long double __x, long double __n) throw (); 32778: # 351 "/usr/include/math.h" 2 3 4 32778: # 389 "/usr/include/math.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 1 3 4 32778: # 53 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern _Float32 acosf32 (_Float32 __x) throw (); extern _Float32 __acosf32 (_Float32 __x) throw (); 32778: 32778: extern _Float32 asinf32 (_Float32 __x) throw (); extern _Float32 __asinf32 (_Float32 __x) throw (); 32778: 32778: extern _Float32 atanf32 (_Float32 __x) throw (); extern _Float32 __atanf32 (_Float32 __x) throw (); 32778: 32778: extern _Float32 atan2f32 (_Float32 __y, _Float32 __x) throw (); extern _Float32 __atan2f32 (_Float32 __y, _Float32 __x) throw (); 32778: 32778: 32778: extern _Float32 cosf32 (_Float32 __x) throw (); extern _Float32 __cosf32 (_Float32 __x) throw (); 32778: 32778: extern _Float32 sinf32 (_Float32 __x) throw (); extern _Float32 __sinf32 (_Float32 __x) throw (); 32778: 32778: extern _Float32 tanf32 (_Float32 __x) throw (); extern _Float32 __tanf32 (_Float32 __x) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float32 coshf32 (_Float32 __x) throw (); extern _Float32 __coshf32 (_Float32 __x) throw (); 32778: 32778: extern _Float32 sinhf32 (_Float32 __x) throw (); extern _Float32 __sinhf32 (_Float32 __x) throw (); 32778: 32778: extern _Float32 tanhf32 (_Float32 __x) throw (); extern _Float32 __tanhf32 (_Float32 __x) throw (); 32778: 32778: 32778: 32778: extern void sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) throw (); extern void __sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) throw () 32778: ; 32778: 32778: 32778: 32778: 32778: extern _Float32 acoshf32 (_Float32 __x) throw (); extern _Float32 __acoshf32 (_Float32 __x) throw (); 32778: 32778: extern _Float32 asinhf32 (_Float32 __x) throw (); extern _Float32 __asinhf32 (_Float32 __x) throw (); 32778: 32778: extern _Float32 atanhf32 (_Float32 __x) throw (); extern _Float32 __atanhf32 (_Float32 __x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern _Float32 expf32 (_Float32 __x) throw (); extern _Float32 __expf32 (_Float32 __x) throw (); 32778: 32778: 32778: extern _Float32 frexpf32 (_Float32 __x, int *__exponent) throw (); extern _Float32 __frexpf32 (_Float32 __x, int *__exponent) throw (); 32778: 32778: 32778: extern _Float32 ldexpf32 (_Float32 __x, int __exponent) throw (); extern _Float32 __ldexpf32 (_Float32 __x, int __exponent) throw (); 32778: 32778: 32778: extern _Float32 logf32 (_Float32 __x) throw (); extern _Float32 __logf32 (_Float32 __x) throw (); 32778: 32778: 32778: extern _Float32 log10f32 (_Float32 __x) throw (); extern _Float32 __log10f32 (_Float32 __x) throw (); 32778: 32778: 32778: extern _Float32 modff32 (_Float32 __x, _Float32 *__iptr) throw (); extern _Float32 __modff32 (_Float32 __x, _Float32 *__iptr) throw () __attribute__ ((__nonnull__ (2))); 32778: 32778: 32778: 32778: extern _Float32 exp10f32 (_Float32 __x) throw (); extern _Float32 __exp10f32 (_Float32 __x) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float32 expm1f32 (_Float32 __x) throw (); extern _Float32 __expm1f32 (_Float32 __x) throw (); 32778: 32778: 32778: extern _Float32 log1pf32 (_Float32 __x) throw (); extern _Float32 __log1pf32 (_Float32 __x) throw (); 32778: 32778: 32778: extern _Float32 logbf32 (_Float32 __x) throw (); extern _Float32 __logbf32 (_Float32 __x) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float32 exp2f32 (_Float32 __x) throw (); extern _Float32 __exp2f32 (_Float32 __x) throw (); 32778: 32778: 32778: extern _Float32 log2f32 (_Float32 __x) throw (); extern _Float32 __log2f32 (_Float32 __x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern _Float32 powf32 (_Float32 __x, _Float32 __y) throw (); extern _Float32 __powf32 (_Float32 __x, _Float32 __y) throw (); 32778: 32778: 32778: extern _Float32 sqrtf32 (_Float32 __x) throw (); extern _Float32 __sqrtf32 (_Float32 __x) throw (); 32778: 32778: 32778: 32778: extern _Float32 hypotf32 (_Float32 __x, _Float32 __y) throw (); extern _Float32 __hypotf32 (_Float32 __x, _Float32 __y) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float32 cbrtf32 (_Float32 __x) throw (); extern _Float32 __cbrtf32 (_Float32 __x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern _Float32 ceilf32 (_Float32 __x) throw () __attribute__ ((__const__)); extern _Float32 __ceilf32 (_Float32 __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float32 fabsf32 (_Float32 __x) throw () __attribute__ ((__const__)); extern _Float32 __fabsf32 (_Float32 __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float32 floorf32 (_Float32 __x) throw () __attribute__ ((__const__)); extern _Float32 __floorf32 (_Float32 __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float32 fmodf32 (_Float32 __x, _Float32 __y) throw (); extern _Float32 __fmodf32 (_Float32 __x, _Float32 __y) throw (); 32778: # 196 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern _Float32 copysignf32 (_Float32 __x, _Float32 __y) throw () __attribute__ ((__const__)); extern _Float32 __copysignf32 (_Float32 __x, _Float32 __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: 32778: extern _Float32 nanf32 (const char *__tagb) throw (); extern _Float32 __nanf32 (const char *__tagb) throw (); 32778: # 217 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern _Float32 j0f32 (_Float32) throw (); extern _Float32 __j0f32 (_Float32) throw (); 32778: extern _Float32 j1f32 (_Float32) throw (); extern _Float32 __j1f32 (_Float32) throw (); 32778: extern _Float32 jnf32 (int, _Float32) throw (); extern _Float32 __jnf32 (int, _Float32) throw (); 32778: extern _Float32 y0f32 (_Float32) throw (); extern _Float32 __y0f32 (_Float32) throw (); 32778: extern _Float32 y1f32 (_Float32) throw (); extern _Float32 __y1f32 (_Float32) throw (); 32778: extern _Float32 ynf32 (int, _Float32) throw (); extern _Float32 __ynf32 (int, _Float32) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern _Float32 erff32 (_Float32) throw (); extern _Float32 __erff32 (_Float32) throw (); 32778: extern _Float32 erfcf32 (_Float32) throw (); extern _Float32 __erfcf32 (_Float32) throw (); 32778: extern _Float32 lgammaf32 (_Float32) throw (); extern _Float32 __lgammaf32 (_Float32) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float32 tgammaf32 (_Float32) throw (); extern _Float32 __tgammaf32 (_Float32) throw (); 32778: # 249 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern _Float32 lgammaf32_r (_Float32, int *__signgamp) throw (); extern _Float32 __lgammaf32_r (_Float32, int *__signgamp) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern _Float32 rintf32 (_Float32 __x) throw (); extern _Float32 __rintf32 (_Float32 __x) throw (); 32778: 32778: 32778: extern _Float32 nextafterf32 (_Float32 __x, _Float32 __y) throw (); extern _Float32 __nextafterf32 (_Float32 __x, _Float32 __y) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern _Float32 nextdownf32 (_Float32 __x) throw (); extern _Float32 __nextdownf32 (_Float32 __x) throw (); 32778: 32778: extern _Float32 nextupf32 (_Float32 __x) throw (); extern _Float32 __nextupf32 (_Float32 __x) throw (); 32778: 32778: 32778: 32778: extern _Float32 remainderf32 (_Float32 __x, _Float32 __y) throw (); extern _Float32 __remainderf32 (_Float32 __x, _Float32 __y) throw (); 32778: 32778: 32778: 32778: extern _Float32 scalbnf32 (_Float32 __x, int __n) throw (); extern _Float32 __scalbnf32 (_Float32 __x, int __n) throw (); 32778: 32778: 32778: 32778: extern int ilogbf32 (_Float32 __x) throw (); extern int __ilogbf32 (_Float32 __x) throw (); 32778: 32778: 32778: 32778: 32778: extern long int llogbf32 (_Float32 __x) throw (); extern long int __llogbf32 (_Float32 __x) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float32 scalblnf32 (_Float32 __x, long int __n) throw (); extern _Float32 __scalblnf32 (_Float32 __x, long int __n) throw (); 32778: 32778: 32778: 32778: extern _Float32 nearbyintf32 (_Float32 __x) throw (); extern _Float32 __nearbyintf32 (_Float32 __x) throw (); 32778: 32778: 32778: 32778: extern _Float32 roundf32 (_Float32 __x) throw () __attribute__ ((__const__)); extern _Float32 __roundf32 (_Float32 __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: extern _Float32 truncf32 (_Float32 __x) throw () __attribute__ ((__const__)); extern _Float32 __truncf32 (_Float32 __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: 32778: extern _Float32 remquof32 (_Float32 __x, _Float32 __y, int *__quo) throw (); extern _Float32 __remquof32 (_Float32 __x, _Float32 __y, int *__quo) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern long int lrintf32 (_Float32 __x) throw (); extern long int __lrintf32 (_Float32 __x) throw (); 32778: __extension__ 32778: extern long long int llrintf32 (_Float32 __x) throw (); extern long long int __llrintf32 (_Float32 __x) throw (); 32778: 32778: 32778: 32778: extern long int lroundf32 (_Float32 __x) throw (); extern long int __lroundf32 (_Float32 __x) throw (); 32778: __extension__ 32778: extern long long int llroundf32 (_Float32 __x) throw (); extern long long int __llroundf32 (_Float32 __x) throw (); 32778: 32778: 32778: 32778: extern _Float32 fdimf32 (_Float32 __x, _Float32 __y) throw (); extern _Float32 __fdimf32 (_Float32 __x, _Float32 __y) throw (); 32778: 32778: 32778: extern _Float32 fmaxf32 (_Float32 __x, _Float32 __y) throw () __attribute__ ((__const__)); extern _Float32 __fmaxf32 (_Float32 __x, _Float32 __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float32 fminf32 (_Float32 __x, _Float32 __y) throw () __attribute__ ((__const__)); extern _Float32 __fminf32 (_Float32 __x, _Float32 __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float32 fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) throw (); extern _Float32 __fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float32 roundevenf32 (_Float32 __x) throw () __attribute__ ((__const__)); extern _Float32 __roundevenf32 (_Float32 __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: extern __intmax_t fromfpf32 (_Float32 __x, int __round, unsigned int __width) throw (); extern __intmax_t __fromfpf32 (_Float32 __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: 32778: extern __uintmax_t ufromfpf32 (_Float32 __x, int __round, unsigned int __width) throw (); extern __uintmax_t __ufromfpf32 (_Float32 __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: 32778: 32778: extern __intmax_t fromfpxf32 (_Float32 __x, int __round, unsigned int __width) throw (); extern __intmax_t __fromfpxf32 (_Float32 __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: 32778: 32778: extern __uintmax_t ufromfpxf32 (_Float32 __x, int __round, unsigned int __width) throw (); extern __uintmax_t __ufromfpxf32 (_Float32 __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: extern _Float32 fmaxmagf32 (_Float32 __x, _Float32 __y) throw () __attribute__ ((__const__)); extern _Float32 __fmaxmagf32 (_Float32 __x, _Float32 __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float32 fminmagf32 (_Float32 __x, _Float32 __y) throw () __attribute__ ((__const__)); extern _Float32 __fminmagf32 (_Float32 __x, _Float32 __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern int canonicalizef32 (_Float32 *__cx, const _Float32 *__x) throw (); 32778: 32778: 32778: 32778: 32778: extern int totalorderf32 (const _Float32 *__x, const _Float32 *__y) throw () 32778: 32778: __attribute__ ((__pure__)); 32778: 32778: 32778: extern int totalordermagf32 (const _Float32 *__x, const _Float32 *__y) throw () 32778: 32778: __attribute__ ((__pure__)); 32778: 32778: 32778: extern _Float32 getpayloadf32 (const _Float32 *__x) throw (); extern _Float32 __getpayloadf32 (const _Float32 *__x) throw (); 32778: 32778: 32778: extern int setpayloadf32 (_Float32 *__x, _Float32 __payload) throw (); 32778: 32778: 32778: extern int setpayloadsigf32 (_Float32 *__x, _Float32 __payload) throw (); 32778: # 390 "/usr/include/math.h" 2 3 4 32778: # 406 "/usr/include/math.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 1 3 4 32778: # 53 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern _Float64 acosf64 (_Float64 __x) throw (); extern _Float64 __acosf64 (_Float64 __x) throw (); 32778: 32778: extern _Float64 asinf64 (_Float64 __x) throw (); extern _Float64 __asinf64 (_Float64 __x) throw (); 32778: 32778: extern _Float64 atanf64 (_Float64 __x) throw (); extern _Float64 __atanf64 (_Float64 __x) throw (); 32778: 32778: extern _Float64 atan2f64 (_Float64 __y, _Float64 __x) throw (); extern _Float64 __atan2f64 (_Float64 __y, _Float64 __x) throw (); 32778: 32778: 32778: extern _Float64 cosf64 (_Float64 __x) throw (); extern _Float64 __cosf64 (_Float64 __x) throw (); 32778: 32778: extern _Float64 sinf64 (_Float64 __x) throw (); extern _Float64 __sinf64 (_Float64 __x) throw (); 32778: 32778: extern _Float64 tanf64 (_Float64 __x) throw (); extern _Float64 __tanf64 (_Float64 __x) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float64 coshf64 (_Float64 __x) throw (); extern _Float64 __coshf64 (_Float64 __x) throw (); 32778: 32778: extern _Float64 sinhf64 (_Float64 __x) throw (); extern _Float64 __sinhf64 (_Float64 __x) throw (); 32778: 32778: extern _Float64 tanhf64 (_Float64 __x) throw (); extern _Float64 __tanhf64 (_Float64 __x) throw (); 32778: 32778: 32778: 32778: extern void sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) throw (); extern void __sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) throw () 32778: ; 32778: 32778: 32778: 32778: 32778: extern _Float64 acoshf64 (_Float64 __x) throw (); extern _Float64 __acoshf64 (_Float64 __x) throw (); 32778: 32778: extern _Float64 asinhf64 (_Float64 __x) throw (); extern _Float64 __asinhf64 (_Float64 __x) throw (); 32778: 32778: extern _Float64 atanhf64 (_Float64 __x) throw (); extern _Float64 __atanhf64 (_Float64 __x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern _Float64 expf64 (_Float64 __x) throw (); extern _Float64 __expf64 (_Float64 __x) throw (); 32778: 32778: 32778: extern _Float64 frexpf64 (_Float64 __x, int *__exponent) throw (); extern _Float64 __frexpf64 (_Float64 __x, int *__exponent) throw (); 32778: 32778: 32778: extern _Float64 ldexpf64 (_Float64 __x, int __exponent) throw (); extern _Float64 __ldexpf64 (_Float64 __x, int __exponent) throw (); 32778: 32778: 32778: extern _Float64 logf64 (_Float64 __x) throw (); extern _Float64 __logf64 (_Float64 __x) throw (); 32778: 32778: 32778: extern _Float64 log10f64 (_Float64 __x) throw (); extern _Float64 __log10f64 (_Float64 __x) throw (); 32778: 32778: 32778: extern _Float64 modff64 (_Float64 __x, _Float64 *__iptr) throw (); extern _Float64 __modff64 (_Float64 __x, _Float64 *__iptr) throw () __attribute__ ((__nonnull__ (2))); 32778: 32778: 32778: 32778: extern _Float64 exp10f64 (_Float64 __x) throw (); extern _Float64 __exp10f64 (_Float64 __x) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float64 expm1f64 (_Float64 __x) throw (); extern _Float64 __expm1f64 (_Float64 __x) throw (); 32778: 32778: 32778: extern _Float64 log1pf64 (_Float64 __x) throw (); extern _Float64 __log1pf64 (_Float64 __x) throw (); 32778: 32778: 32778: extern _Float64 logbf64 (_Float64 __x) throw (); extern _Float64 __logbf64 (_Float64 __x) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float64 exp2f64 (_Float64 __x) throw (); extern _Float64 __exp2f64 (_Float64 __x) throw (); 32778: 32778: 32778: extern _Float64 log2f64 (_Float64 __x) throw (); extern _Float64 __log2f64 (_Float64 __x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern _Float64 powf64 (_Float64 __x, _Float64 __y) throw (); extern _Float64 __powf64 (_Float64 __x, _Float64 __y) throw (); 32778: 32778: 32778: extern _Float64 sqrtf64 (_Float64 __x) throw (); extern _Float64 __sqrtf64 (_Float64 __x) throw (); 32778: 32778: 32778: 32778: extern _Float64 hypotf64 (_Float64 __x, _Float64 __y) throw (); extern _Float64 __hypotf64 (_Float64 __x, _Float64 __y) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float64 cbrtf64 (_Float64 __x) throw (); extern _Float64 __cbrtf64 (_Float64 __x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern _Float64 ceilf64 (_Float64 __x) throw () __attribute__ ((__const__)); extern _Float64 __ceilf64 (_Float64 __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float64 fabsf64 (_Float64 __x) throw () __attribute__ ((__const__)); extern _Float64 __fabsf64 (_Float64 __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float64 floorf64 (_Float64 __x) throw () __attribute__ ((__const__)); extern _Float64 __floorf64 (_Float64 __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float64 fmodf64 (_Float64 __x, _Float64 __y) throw (); extern _Float64 __fmodf64 (_Float64 __x, _Float64 __y) throw (); 32778: # 196 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern _Float64 copysignf64 (_Float64 __x, _Float64 __y) throw () __attribute__ ((__const__)); extern _Float64 __copysignf64 (_Float64 __x, _Float64 __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: 32778: extern _Float64 nanf64 (const char *__tagb) throw (); extern _Float64 __nanf64 (const char *__tagb) throw (); 32778: # 217 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern _Float64 j0f64 (_Float64) throw (); extern _Float64 __j0f64 (_Float64) throw (); 32778: extern _Float64 j1f64 (_Float64) throw (); extern _Float64 __j1f64 (_Float64) throw (); 32778: extern _Float64 jnf64 (int, _Float64) throw (); extern _Float64 __jnf64 (int, _Float64) throw (); 32778: extern _Float64 y0f64 (_Float64) throw (); extern _Float64 __y0f64 (_Float64) throw (); 32778: extern _Float64 y1f64 (_Float64) throw (); extern _Float64 __y1f64 (_Float64) throw (); 32778: extern _Float64 ynf64 (int, _Float64) throw (); extern _Float64 __ynf64 (int, _Float64) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern _Float64 erff64 (_Float64) throw (); extern _Float64 __erff64 (_Float64) throw (); 32778: extern _Float64 erfcf64 (_Float64) throw (); extern _Float64 __erfcf64 (_Float64) throw (); 32778: extern _Float64 lgammaf64 (_Float64) throw (); extern _Float64 __lgammaf64 (_Float64) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float64 tgammaf64 (_Float64) throw (); extern _Float64 __tgammaf64 (_Float64) throw (); 32778: # 249 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern _Float64 lgammaf64_r (_Float64, int *__signgamp) throw (); extern _Float64 __lgammaf64_r (_Float64, int *__signgamp) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern _Float64 rintf64 (_Float64 __x) throw (); extern _Float64 __rintf64 (_Float64 __x) throw (); 32778: 32778: 32778: extern _Float64 nextafterf64 (_Float64 __x, _Float64 __y) throw (); extern _Float64 __nextafterf64 (_Float64 __x, _Float64 __y) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern _Float64 nextdownf64 (_Float64 __x) throw (); extern _Float64 __nextdownf64 (_Float64 __x) throw (); 32778: 32778: extern _Float64 nextupf64 (_Float64 __x) throw (); extern _Float64 __nextupf64 (_Float64 __x) throw (); 32778: 32778: 32778: 32778: extern _Float64 remainderf64 (_Float64 __x, _Float64 __y) throw (); extern _Float64 __remainderf64 (_Float64 __x, _Float64 __y) throw (); 32778: 32778: 32778: 32778: extern _Float64 scalbnf64 (_Float64 __x, int __n) throw (); extern _Float64 __scalbnf64 (_Float64 __x, int __n) throw (); 32778: 32778: 32778: 32778: extern int ilogbf64 (_Float64 __x) throw (); extern int __ilogbf64 (_Float64 __x) throw (); 32778: 32778: 32778: 32778: 32778: extern long int llogbf64 (_Float64 __x) throw (); extern long int __llogbf64 (_Float64 __x) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float64 scalblnf64 (_Float64 __x, long int __n) throw (); extern _Float64 __scalblnf64 (_Float64 __x, long int __n) throw (); 32778: 32778: 32778: 32778: extern _Float64 nearbyintf64 (_Float64 __x) throw (); extern _Float64 __nearbyintf64 (_Float64 __x) throw (); 32778: 32778: 32778: 32778: extern _Float64 roundf64 (_Float64 __x) throw () __attribute__ ((__const__)); extern _Float64 __roundf64 (_Float64 __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: extern _Float64 truncf64 (_Float64 __x) throw () __attribute__ ((__const__)); extern _Float64 __truncf64 (_Float64 __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: 32778: extern _Float64 remquof64 (_Float64 __x, _Float64 __y, int *__quo) throw (); extern _Float64 __remquof64 (_Float64 __x, _Float64 __y, int *__quo) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern long int lrintf64 (_Float64 __x) throw (); extern long int __lrintf64 (_Float64 __x) throw (); 32778: __extension__ 32778: extern long long int llrintf64 (_Float64 __x) throw (); extern long long int __llrintf64 (_Float64 __x) throw (); 32778: 32778: 32778: 32778: extern long int lroundf64 (_Float64 __x) throw (); extern long int __lroundf64 (_Float64 __x) throw (); 32778: __extension__ 32778: extern long long int llroundf64 (_Float64 __x) throw (); extern long long int __llroundf64 (_Float64 __x) throw (); 32778: 32778: 32778: 32778: extern _Float64 fdimf64 (_Float64 __x, _Float64 __y) throw (); extern _Float64 __fdimf64 (_Float64 __x, _Float64 __y) throw (); 32778: 32778: 32778: extern _Float64 fmaxf64 (_Float64 __x, _Float64 __y) throw () __attribute__ ((__const__)); extern _Float64 __fmaxf64 (_Float64 __x, _Float64 __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float64 fminf64 (_Float64 __x, _Float64 __y) throw () __attribute__ ((__const__)); extern _Float64 __fminf64 (_Float64 __x, _Float64 __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float64 fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) throw (); extern _Float64 __fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float64 roundevenf64 (_Float64 __x) throw () __attribute__ ((__const__)); extern _Float64 __roundevenf64 (_Float64 __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: extern __intmax_t fromfpf64 (_Float64 __x, int __round, unsigned int __width) throw (); extern __intmax_t __fromfpf64 (_Float64 __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: 32778: extern __uintmax_t ufromfpf64 (_Float64 __x, int __round, unsigned int __width) throw (); extern __uintmax_t __ufromfpf64 (_Float64 __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: 32778: 32778: extern __intmax_t fromfpxf64 (_Float64 __x, int __round, unsigned int __width) throw (); extern __intmax_t __fromfpxf64 (_Float64 __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: 32778: 32778: extern __uintmax_t ufromfpxf64 (_Float64 __x, int __round, unsigned int __width) throw (); extern __uintmax_t __ufromfpxf64 (_Float64 __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: extern _Float64 fmaxmagf64 (_Float64 __x, _Float64 __y) throw () __attribute__ ((__const__)); extern _Float64 __fmaxmagf64 (_Float64 __x, _Float64 __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float64 fminmagf64 (_Float64 __x, _Float64 __y) throw () __attribute__ ((__const__)); extern _Float64 __fminmagf64 (_Float64 __x, _Float64 __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern int canonicalizef64 (_Float64 *__cx, const _Float64 *__x) throw (); 32778: 32778: 32778: 32778: 32778: extern int totalorderf64 (const _Float64 *__x, const _Float64 *__y) throw () 32778: 32778: __attribute__ ((__pure__)); 32778: 32778: 32778: extern int totalordermagf64 (const _Float64 *__x, const _Float64 *__y) throw () 32778: 32778: __attribute__ ((__pure__)); 32778: 32778: 32778: extern _Float64 getpayloadf64 (const _Float64 *__x) throw (); extern _Float64 __getpayloadf64 (const _Float64 *__x) throw (); 32778: 32778: 32778: extern int setpayloadf64 (_Float64 *__x, _Float64 __payload) throw (); 32778: 32778: 32778: extern int setpayloadsigf64 (_Float64 *__x, _Float64 __payload) throw (); 32778: # 407 "/usr/include/math.h" 2 3 4 32778: # 423 "/usr/include/math.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 1 3 4 32778: # 53 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern _Float128 acosf128 (_Float128 __x) throw (); extern _Float128 __acosf128 (_Float128 __x) throw (); 32778: 32778: extern _Float128 asinf128 (_Float128 __x) throw (); extern _Float128 __asinf128 (_Float128 __x) throw (); 32778: 32778: extern _Float128 atanf128 (_Float128 __x) throw (); extern _Float128 __atanf128 (_Float128 __x) throw (); 32778: 32778: extern _Float128 atan2f128 (_Float128 __y, _Float128 __x) throw (); extern _Float128 __atan2f128 (_Float128 __y, _Float128 __x) throw (); 32778: 32778: 32778: extern _Float128 cosf128 (_Float128 __x) throw (); extern _Float128 __cosf128 (_Float128 __x) throw (); 32778: 32778: extern _Float128 sinf128 (_Float128 __x) throw (); extern _Float128 __sinf128 (_Float128 __x) throw (); 32778: 32778: extern _Float128 tanf128 (_Float128 __x) throw (); extern _Float128 __tanf128 (_Float128 __x) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float128 coshf128 (_Float128 __x) throw (); extern _Float128 __coshf128 (_Float128 __x) throw (); 32778: 32778: extern _Float128 sinhf128 (_Float128 __x) throw (); extern _Float128 __sinhf128 (_Float128 __x) throw (); 32778: 32778: extern _Float128 tanhf128 (_Float128 __x) throw (); extern _Float128 __tanhf128 (_Float128 __x) throw (); 32778: 32778: 32778: 32778: extern void sincosf128 (_Float128 __x, _Float128 *__sinx, _Float128 *__cosx) throw (); extern void __sincosf128 (_Float128 __x, _Float128 *__sinx, _Float128 *__cosx) throw () 32778: ; 32778: 32778: 32778: 32778: 32778: extern _Float128 acoshf128 (_Float128 __x) throw (); extern _Float128 __acoshf128 (_Float128 __x) throw (); 32778: 32778: extern _Float128 asinhf128 (_Float128 __x) throw (); extern _Float128 __asinhf128 (_Float128 __x) throw (); 32778: 32778: extern _Float128 atanhf128 (_Float128 __x) throw (); extern _Float128 __atanhf128 (_Float128 __x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern _Float128 expf128 (_Float128 __x) throw (); extern _Float128 __expf128 (_Float128 __x) throw (); 32778: 32778: 32778: extern _Float128 frexpf128 (_Float128 __x, int *__exponent) throw (); extern _Float128 __frexpf128 (_Float128 __x, int *__exponent) throw (); 32778: 32778: 32778: extern _Float128 ldexpf128 (_Float128 __x, int __exponent) throw (); extern _Float128 __ldexpf128 (_Float128 __x, int __exponent) throw (); 32778: 32778: 32778: extern _Float128 logf128 (_Float128 __x) throw (); extern _Float128 __logf128 (_Float128 __x) throw (); 32778: 32778: 32778: extern _Float128 log10f128 (_Float128 __x) throw (); extern _Float128 __log10f128 (_Float128 __x) throw (); 32778: 32778: 32778: extern _Float128 modff128 (_Float128 __x, _Float128 *__iptr) throw (); extern _Float128 __modff128 (_Float128 __x, _Float128 *__iptr) throw () __attribute__ ((__nonnull__ (2))); 32778: 32778: 32778: 32778: extern _Float128 exp10f128 (_Float128 __x) throw (); extern _Float128 __exp10f128 (_Float128 __x) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float128 expm1f128 (_Float128 __x) throw (); extern _Float128 __expm1f128 (_Float128 __x) throw (); 32778: 32778: 32778: extern _Float128 log1pf128 (_Float128 __x) throw (); extern _Float128 __log1pf128 (_Float128 __x) throw (); 32778: 32778: 32778: extern _Float128 logbf128 (_Float128 __x) throw (); extern _Float128 __logbf128 (_Float128 __x) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float128 exp2f128 (_Float128 __x) throw (); extern _Float128 __exp2f128 (_Float128 __x) throw (); 32778: 32778: 32778: extern _Float128 log2f128 (_Float128 __x) throw (); extern _Float128 __log2f128 (_Float128 __x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern _Float128 powf128 (_Float128 __x, _Float128 __y) throw (); extern _Float128 __powf128 (_Float128 __x, _Float128 __y) throw (); 32778: 32778: 32778: extern _Float128 sqrtf128 (_Float128 __x) throw (); extern _Float128 __sqrtf128 (_Float128 __x) throw (); 32778: 32778: 32778: 32778: extern _Float128 hypotf128 (_Float128 __x, _Float128 __y) throw (); extern _Float128 __hypotf128 (_Float128 __x, _Float128 __y) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float128 cbrtf128 (_Float128 __x) throw (); extern _Float128 __cbrtf128 (_Float128 __x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern _Float128 ceilf128 (_Float128 __x) throw () __attribute__ ((__const__)); extern _Float128 __ceilf128 (_Float128 __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float128 fabsf128 (_Float128 __x) throw () __attribute__ ((__const__)); extern _Float128 __fabsf128 (_Float128 __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float128 floorf128 (_Float128 __x) throw () __attribute__ ((__const__)); extern _Float128 __floorf128 (_Float128 __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float128 fmodf128 (_Float128 __x, _Float128 __y) throw (); extern _Float128 __fmodf128 (_Float128 __x, _Float128 __y) throw (); 32778: # 196 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern _Float128 copysignf128 (_Float128 __x, _Float128 __y) throw () __attribute__ ((__const__)); extern _Float128 __copysignf128 (_Float128 __x, _Float128 __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: 32778: extern _Float128 nanf128 (const char *__tagb) throw (); extern _Float128 __nanf128 (const char *__tagb) throw (); 32778: # 217 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern _Float128 j0f128 (_Float128) throw (); extern _Float128 __j0f128 (_Float128) throw (); 32778: extern _Float128 j1f128 (_Float128) throw (); extern _Float128 __j1f128 (_Float128) throw (); 32778: extern _Float128 jnf128 (int, _Float128) throw (); extern _Float128 __jnf128 (int, _Float128) throw (); 32778: extern _Float128 y0f128 (_Float128) throw (); extern _Float128 __y0f128 (_Float128) throw (); 32778: extern _Float128 y1f128 (_Float128) throw (); extern _Float128 __y1f128 (_Float128) throw (); 32778: extern _Float128 ynf128 (int, _Float128) throw (); extern _Float128 __ynf128 (int, _Float128) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern _Float128 erff128 (_Float128) throw (); extern _Float128 __erff128 (_Float128) throw (); 32778: extern _Float128 erfcf128 (_Float128) throw (); extern _Float128 __erfcf128 (_Float128) throw (); 32778: extern _Float128 lgammaf128 (_Float128) throw (); extern _Float128 __lgammaf128 (_Float128) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float128 tgammaf128 (_Float128) throw (); extern _Float128 __tgammaf128 (_Float128) throw (); 32778: # 249 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern _Float128 lgammaf128_r (_Float128, int *__signgamp) throw (); extern _Float128 __lgammaf128_r (_Float128, int *__signgamp) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern _Float128 rintf128 (_Float128 __x) throw (); extern _Float128 __rintf128 (_Float128 __x) throw (); 32778: 32778: 32778: extern _Float128 nextafterf128 (_Float128 __x, _Float128 __y) throw (); extern _Float128 __nextafterf128 (_Float128 __x, _Float128 __y) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern _Float128 nextdownf128 (_Float128 __x) throw (); extern _Float128 __nextdownf128 (_Float128 __x) throw (); 32778: 32778: extern _Float128 nextupf128 (_Float128 __x) throw (); extern _Float128 __nextupf128 (_Float128 __x) throw (); 32778: 32778: 32778: 32778: extern _Float128 remainderf128 (_Float128 __x, _Float128 __y) throw (); extern _Float128 __remainderf128 (_Float128 __x, _Float128 __y) throw (); 32778: 32778: 32778: 32778: extern _Float128 scalbnf128 (_Float128 __x, int __n) throw (); extern _Float128 __scalbnf128 (_Float128 __x, int __n) throw (); 32778: 32778: 32778: 32778: extern int ilogbf128 (_Float128 __x) throw (); extern int __ilogbf128 (_Float128 __x) throw (); 32778: 32778: 32778: 32778: 32778: extern long int llogbf128 (_Float128 __x) throw (); extern long int __llogbf128 (_Float128 __x) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float128 scalblnf128 (_Float128 __x, long int __n) throw (); extern _Float128 __scalblnf128 (_Float128 __x, long int __n) throw (); 32778: 32778: 32778: 32778: extern _Float128 nearbyintf128 (_Float128 __x) throw (); extern _Float128 __nearbyintf128 (_Float128 __x) throw (); 32778: 32778: 32778: 32778: extern _Float128 roundf128 (_Float128 __x) throw () __attribute__ ((__const__)); extern _Float128 __roundf128 (_Float128 __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: extern _Float128 truncf128 (_Float128 __x) throw () __attribute__ ((__const__)); extern _Float128 __truncf128 (_Float128 __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: 32778: extern _Float128 remquof128 (_Float128 __x, _Float128 __y, int *__quo) throw (); extern _Float128 __remquof128 (_Float128 __x, _Float128 __y, int *__quo) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern long int lrintf128 (_Float128 __x) throw (); extern long int __lrintf128 (_Float128 __x) throw (); 32778: __extension__ 32778: extern long long int llrintf128 (_Float128 __x) throw (); extern long long int __llrintf128 (_Float128 __x) throw (); 32778: 32778: 32778: 32778: extern long int lroundf128 (_Float128 __x) throw (); extern long int __lroundf128 (_Float128 __x) throw (); 32778: __extension__ 32778: extern long long int llroundf128 (_Float128 __x) throw (); extern long long int __llroundf128 (_Float128 __x) throw (); 32778: 32778: 32778: 32778: extern _Float128 fdimf128 (_Float128 __x, _Float128 __y) throw (); extern _Float128 __fdimf128 (_Float128 __x, _Float128 __y) throw (); 32778: 32778: 32778: extern _Float128 fmaxf128 (_Float128 __x, _Float128 __y) throw () __attribute__ ((__const__)); extern _Float128 __fmaxf128 (_Float128 __x, _Float128 __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float128 fminf128 (_Float128 __x, _Float128 __y) throw () __attribute__ ((__const__)); extern _Float128 __fminf128 (_Float128 __x, _Float128 __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float128 fmaf128 (_Float128 __x, _Float128 __y, _Float128 __z) throw (); extern _Float128 __fmaf128 (_Float128 __x, _Float128 __y, _Float128 __z) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float128 roundevenf128 (_Float128 __x) throw () __attribute__ ((__const__)); extern _Float128 __roundevenf128 (_Float128 __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: extern __intmax_t fromfpf128 (_Float128 __x, int __round, unsigned int __width) throw (); extern __intmax_t __fromfpf128 (_Float128 __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: 32778: extern __uintmax_t ufromfpf128 (_Float128 __x, int __round, unsigned int __width) throw (); extern __uintmax_t __ufromfpf128 (_Float128 __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: 32778: 32778: extern __intmax_t fromfpxf128 (_Float128 __x, int __round, unsigned int __width) throw (); extern __intmax_t __fromfpxf128 (_Float128 __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: 32778: 32778: extern __uintmax_t ufromfpxf128 (_Float128 __x, int __round, unsigned int __width) throw (); extern __uintmax_t __ufromfpxf128 (_Float128 __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: extern _Float128 fmaxmagf128 (_Float128 __x, _Float128 __y) throw () __attribute__ ((__const__)); extern _Float128 __fmaxmagf128 (_Float128 __x, _Float128 __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float128 fminmagf128 (_Float128 __x, _Float128 __y) throw () __attribute__ ((__const__)); extern _Float128 __fminmagf128 (_Float128 __x, _Float128 __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern int canonicalizef128 (_Float128 *__cx, const _Float128 *__x) throw (); 32778: 32778: 32778: 32778: 32778: extern int totalorderf128 (const _Float128 *__x, const _Float128 *__y) throw () 32778: 32778: __attribute__ ((__pure__)); 32778: 32778: 32778: extern int totalordermagf128 (const _Float128 *__x, const _Float128 *__y) throw () 32778: 32778: __attribute__ ((__pure__)); 32778: 32778: 32778: extern _Float128 getpayloadf128 (const _Float128 *__x) throw (); extern _Float128 __getpayloadf128 (const _Float128 *__x) throw (); 32778: 32778: 32778: extern int setpayloadf128 (_Float128 *__x, _Float128 __payload) throw (); 32778: 32778: 32778: extern int setpayloadsigf128 (_Float128 *__x, _Float128 __payload) throw (); 32778: # 424 "/usr/include/math.h" 2 3 4 32778: # 440 "/usr/include/math.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 1 3 4 32778: # 53 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern _Float32x acosf32x (_Float32x __x) throw (); extern _Float32x __acosf32x (_Float32x __x) throw (); 32778: 32778: extern _Float32x asinf32x (_Float32x __x) throw (); extern _Float32x __asinf32x (_Float32x __x) throw (); 32778: 32778: extern _Float32x atanf32x (_Float32x __x) throw (); extern _Float32x __atanf32x (_Float32x __x) throw (); 32778: 32778: extern _Float32x atan2f32x (_Float32x __y, _Float32x __x) throw (); extern _Float32x __atan2f32x (_Float32x __y, _Float32x __x) throw (); 32778: 32778: 32778: extern _Float32x cosf32x (_Float32x __x) throw (); extern _Float32x __cosf32x (_Float32x __x) throw (); 32778: 32778: extern _Float32x sinf32x (_Float32x __x) throw (); extern _Float32x __sinf32x (_Float32x __x) throw (); 32778: 32778: extern _Float32x tanf32x (_Float32x __x) throw (); extern _Float32x __tanf32x (_Float32x __x) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float32x coshf32x (_Float32x __x) throw (); extern _Float32x __coshf32x (_Float32x __x) throw (); 32778: 32778: extern _Float32x sinhf32x (_Float32x __x) throw (); extern _Float32x __sinhf32x (_Float32x __x) throw (); 32778: 32778: extern _Float32x tanhf32x (_Float32x __x) throw (); extern _Float32x __tanhf32x (_Float32x __x) throw (); 32778: 32778: 32778: 32778: extern void sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) throw (); extern void __sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) throw () 32778: ; 32778: 32778: 32778: 32778: 32778: extern _Float32x acoshf32x (_Float32x __x) throw (); extern _Float32x __acoshf32x (_Float32x __x) throw (); 32778: 32778: extern _Float32x asinhf32x (_Float32x __x) throw (); extern _Float32x __asinhf32x (_Float32x __x) throw (); 32778: 32778: extern _Float32x atanhf32x (_Float32x __x) throw (); extern _Float32x __atanhf32x (_Float32x __x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern _Float32x expf32x (_Float32x __x) throw (); extern _Float32x __expf32x (_Float32x __x) throw (); 32778: 32778: 32778: extern _Float32x frexpf32x (_Float32x __x, int *__exponent) throw (); extern _Float32x __frexpf32x (_Float32x __x, int *__exponent) throw (); 32778: 32778: 32778: extern _Float32x ldexpf32x (_Float32x __x, int __exponent) throw (); extern _Float32x __ldexpf32x (_Float32x __x, int __exponent) throw (); 32778: 32778: 32778: extern _Float32x logf32x (_Float32x __x) throw (); extern _Float32x __logf32x (_Float32x __x) throw (); 32778: 32778: 32778: extern _Float32x log10f32x (_Float32x __x) throw (); extern _Float32x __log10f32x (_Float32x __x) throw (); 32778: 32778: 32778: extern _Float32x modff32x (_Float32x __x, _Float32x *__iptr) throw (); extern _Float32x __modff32x (_Float32x __x, _Float32x *__iptr) throw () __attribute__ ((__nonnull__ (2))); 32778: 32778: 32778: 32778: extern _Float32x exp10f32x (_Float32x __x) throw (); extern _Float32x __exp10f32x (_Float32x __x) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float32x expm1f32x (_Float32x __x) throw (); extern _Float32x __expm1f32x (_Float32x __x) throw (); 32778: 32778: 32778: extern _Float32x log1pf32x (_Float32x __x) throw (); extern _Float32x __log1pf32x (_Float32x __x) throw (); 32778: 32778: 32778: extern _Float32x logbf32x (_Float32x __x) throw (); extern _Float32x __logbf32x (_Float32x __x) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float32x exp2f32x (_Float32x __x) throw (); extern _Float32x __exp2f32x (_Float32x __x) throw (); 32778: 32778: 32778: extern _Float32x log2f32x (_Float32x __x) throw (); extern _Float32x __log2f32x (_Float32x __x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern _Float32x powf32x (_Float32x __x, _Float32x __y) throw (); extern _Float32x __powf32x (_Float32x __x, _Float32x __y) throw (); 32778: 32778: 32778: extern _Float32x sqrtf32x (_Float32x __x) throw (); extern _Float32x __sqrtf32x (_Float32x __x) throw (); 32778: 32778: 32778: 32778: extern _Float32x hypotf32x (_Float32x __x, _Float32x __y) throw (); extern _Float32x __hypotf32x (_Float32x __x, _Float32x __y) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float32x cbrtf32x (_Float32x __x) throw (); extern _Float32x __cbrtf32x (_Float32x __x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern _Float32x ceilf32x (_Float32x __x) throw () __attribute__ ((__const__)); extern _Float32x __ceilf32x (_Float32x __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float32x fabsf32x (_Float32x __x) throw () __attribute__ ((__const__)); extern _Float32x __fabsf32x (_Float32x __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float32x floorf32x (_Float32x __x) throw () __attribute__ ((__const__)); extern _Float32x __floorf32x (_Float32x __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float32x fmodf32x (_Float32x __x, _Float32x __y) throw (); extern _Float32x __fmodf32x (_Float32x __x, _Float32x __y) throw (); 32778: # 196 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern _Float32x copysignf32x (_Float32x __x, _Float32x __y) throw () __attribute__ ((__const__)); extern _Float32x __copysignf32x (_Float32x __x, _Float32x __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: 32778: extern _Float32x nanf32x (const char *__tagb) throw (); extern _Float32x __nanf32x (const char *__tagb) throw (); 32778: # 217 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern _Float32x j0f32x (_Float32x) throw (); extern _Float32x __j0f32x (_Float32x) throw (); 32778: extern _Float32x j1f32x (_Float32x) throw (); extern _Float32x __j1f32x (_Float32x) throw (); 32778: extern _Float32x jnf32x (int, _Float32x) throw (); extern _Float32x __jnf32x (int, _Float32x) throw (); 32778: extern _Float32x y0f32x (_Float32x) throw (); extern _Float32x __y0f32x (_Float32x) throw (); 32778: extern _Float32x y1f32x (_Float32x) throw (); extern _Float32x __y1f32x (_Float32x) throw (); 32778: extern _Float32x ynf32x (int, _Float32x) throw (); extern _Float32x __ynf32x (int, _Float32x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern _Float32x erff32x (_Float32x) throw (); extern _Float32x __erff32x (_Float32x) throw (); 32778: extern _Float32x erfcf32x (_Float32x) throw (); extern _Float32x __erfcf32x (_Float32x) throw (); 32778: extern _Float32x lgammaf32x (_Float32x) throw (); extern _Float32x __lgammaf32x (_Float32x) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float32x tgammaf32x (_Float32x) throw (); extern _Float32x __tgammaf32x (_Float32x) throw (); 32778: # 249 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern _Float32x lgammaf32x_r (_Float32x, int *__signgamp) throw (); extern _Float32x __lgammaf32x_r (_Float32x, int *__signgamp) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern _Float32x rintf32x (_Float32x __x) throw (); extern _Float32x __rintf32x (_Float32x __x) throw (); 32778: 32778: 32778: extern _Float32x nextafterf32x (_Float32x __x, _Float32x __y) throw (); extern _Float32x __nextafterf32x (_Float32x __x, _Float32x __y) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern _Float32x nextdownf32x (_Float32x __x) throw (); extern _Float32x __nextdownf32x (_Float32x __x) throw (); 32778: 32778: extern _Float32x nextupf32x (_Float32x __x) throw (); extern _Float32x __nextupf32x (_Float32x __x) throw (); 32778: 32778: 32778: 32778: extern _Float32x remainderf32x (_Float32x __x, _Float32x __y) throw (); extern _Float32x __remainderf32x (_Float32x __x, _Float32x __y) throw (); 32778: 32778: 32778: 32778: extern _Float32x scalbnf32x (_Float32x __x, int __n) throw (); extern _Float32x __scalbnf32x (_Float32x __x, int __n) throw (); 32778: 32778: 32778: 32778: extern int ilogbf32x (_Float32x __x) throw (); extern int __ilogbf32x (_Float32x __x) throw (); 32778: 32778: 32778: 32778: 32778: extern long int llogbf32x (_Float32x __x) throw (); extern long int __llogbf32x (_Float32x __x) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float32x scalblnf32x (_Float32x __x, long int __n) throw (); extern _Float32x __scalblnf32x (_Float32x __x, long int __n) throw (); 32778: 32778: 32778: 32778: extern _Float32x nearbyintf32x (_Float32x __x) throw (); extern _Float32x __nearbyintf32x (_Float32x __x) throw (); 32778: 32778: 32778: 32778: extern _Float32x roundf32x (_Float32x __x) throw () __attribute__ ((__const__)); extern _Float32x __roundf32x (_Float32x __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: extern _Float32x truncf32x (_Float32x __x) throw () __attribute__ ((__const__)); extern _Float32x __truncf32x (_Float32x __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: 32778: extern _Float32x remquof32x (_Float32x __x, _Float32x __y, int *__quo) throw (); extern _Float32x __remquof32x (_Float32x __x, _Float32x __y, int *__quo) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern long int lrintf32x (_Float32x __x) throw (); extern long int __lrintf32x (_Float32x __x) throw (); 32778: __extension__ 32778: extern long long int llrintf32x (_Float32x __x) throw (); extern long long int __llrintf32x (_Float32x __x) throw (); 32778: 32778: 32778: 32778: extern long int lroundf32x (_Float32x __x) throw (); extern long int __lroundf32x (_Float32x __x) throw (); 32778: __extension__ 32778: extern long long int llroundf32x (_Float32x __x) throw (); extern long long int __llroundf32x (_Float32x __x) throw (); 32778: 32778: 32778: 32778: extern _Float32x fdimf32x (_Float32x __x, _Float32x __y) throw (); extern _Float32x __fdimf32x (_Float32x __x, _Float32x __y) throw (); 32778: 32778: 32778: extern _Float32x fmaxf32x (_Float32x __x, _Float32x __y) throw () __attribute__ ((__const__)); extern _Float32x __fmaxf32x (_Float32x __x, _Float32x __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float32x fminf32x (_Float32x __x, _Float32x __y) throw () __attribute__ ((__const__)); extern _Float32x __fminf32x (_Float32x __x, _Float32x __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float32x fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) throw (); extern _Float32x __fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float32x roundevenf32x (_Float32x __x) throw () __attribute__ ((__const__)); extern _Float32x __roundevenf32x (_Float32x __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: extern __intmax_t fromfpf32x (_Float32x __x, int __round, unsigned int __width) throw (); extern __intmax_t __fromfpf32x (_Float32x __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: 32778: extern __uintmax_t ufromfpf32x (_Float32x __x, int __round, unsigned int __width) throw (); extern __uintmax_t __ufromfpf32x (_Float32x __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: 32778: 32778: extern __intmax_t fromfpxf32x (_Float32x __x, int __round, unsigned int __width) throw (); extern __intmax_t __fromfpxf32x (_Float32x __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: 32778: 32778: extern __uintmax_t ufromfpxf32x (_Float32x __x, int __round, unsigned int __width) throw (); extern __uintmax_t __ufromfpxf32x (_Float32x __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: extern _Float32x fmaxmagf32x (_Float32x __x, _Float32x __y) throw () __attribute__ ((__const__)); extern _Float32x __fmaxmagf32x (_Float32x __x, _Float32x __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float32x fminmagf32x (_Float32x __x, _Float32x __y) throw () __attribute__ ((__const__)); extern _Float32x __fminmagf32x (_Float32x __x, _Float32x __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern int canonicalizef32x (_Float32x *__cx, const _Float32x *__x) throw (); 32778: 32778: 32778: 32778: 32778: extern int totalorderf32x (const _Float32x *__x, const _Float32x *__y) throw () 32778: 32778: __attribute__ ((__pure__)); 32778: 32778: 32778: extern int totalordermagf32x (const _Float32x *__x, const _Float32x *__y) throw () 32778: 32778: __attribute__ ((__pure__)); 32778: 32778: 32778: extern _Float32x getpayloadf32x (const _Float32x *__x) throw (); extern _Float32x __getpayloadf32x (const _Float32x *__x) throw (); 32778: 32778: 32778: extern int setpayloadf32x (_Float32x *__x, _Float32x __payload) throw (); 32778: 32778: 32778: extern int setpayloadsigf32x (_Float32x *__x, _Float32x __payload) throw (); 32778: # 441 "/usr/include/math.h" 2 3 4 32778: # 457 "/usr/include/math.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 1 3 4 32778: # 53 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern _Float64x acosf64x (_Float64x __x) throw (); extern _Float64x __acosf64x (_Float64x __x) throw (); 32778: 32778: extern _Float64x asinf64x (_Float64x __x) throw (); extern _Float64x __asinf64x (_Float64x __x) throw (); 32778: 32778: extern _Float64x atanf64x (_Float64x __x) throw (); extern _Float64x __atanf64x (_Float64x __x) throw (); 32778: 32778: extern _Float64x atan2f64x (_Float64x __y, _Float64x __x) throw (); extern _Float64x __atan2f64x (_Float64x __y, _Float64x __x) throw (); 32778: 32778: 32778: extern _Float64x cosf64x (_Float64x __x) throw (); extern _Float64x __cosf64x (_Float64x __x) throw (); 32778: 32778: extern _Float64x sinf64x (_Float64x __x) throw (); extern _Float64x __sinf64x (_Float64x __x) throw (); 32778: 32778: extern _Float64x tanf64x (_Float64x __x) throw (); extern _Float64x __tanf64x (_Float64x __x) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float64x coshf64x (_Float64x __x) throw (); extern _Float64x __coshf64x (_Float64x __x) throw (); 32778: 32778: extern _Float64x sinhf64x (_Float64x __x) throw (); extern _Float64x __sinhf64x (_Float64x __x) throw (); 32778: 32778: extern _Float64x tanhf64x (_Float64x __x) throw (); extern _Float64x __tanhf64x (_Float64x __x) throw (); 32778: 32778: 32778: 32778: extern void sincosf64x (_Float64x __x, _Float64x *__sinx, _Float64x *__cosx) throw (); extern void __sincosf64x (_Float64x __x, _Float64x *__sinx, _Float64x *__cosx) throw () 32778: ; 32778: 32778: 32778: 32778: 32778: extern _Float64x acoshf64x (_Float64x __x) throw (); extern _Float64x __acoshf64x (_Float64x __x) throw (); 32778: 32778: extern _Float64x asinhf64x (_Float64x __x) throw (); extern _Float64x __asinhf64x (_Float64x __x) throw (); 32778: 32778: extern _Float64x atanhf64x (_Float64x __x) throw (); extern _Float64x __atanhf64x (_Float64x __x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern _Float64x expf64x (_Float64x __x) throw (); extern _Float64x __expf64x (_Float64x __x) throw (); 32778: 32778: 32778: extern _Float64x frexpf64x (_Float64x __x, int *__exponent) throw (); extern _Float64x __frexpf64x (_Float64x __x, int *__exponent) throw (); 32778: 32778: 32778: extern _Float64x ldexpf64x (_Float64x __x, int __exponent) throw (); extern _Float64x __ldexpf64x (_Float64x __x, int __exponent) throw (); 32778: 32778: 32778: extern _Float64x logf64x (_Float64x __x) throw (); extern _Float64x __logf64x (_Float64x __x) throw (); 32778: 32778: 32778: extern _Float64x log10f64x (_Float64x __x) throw (); extern _Float64x __log10f64x (_Float64x __x) throw (); 32778: 32778: 32778: extern _Float64x modff64x (_Float64x __x, _Float64x *__iptr) throw (); extern _Float64x __modff64x (_Float64x __x, _Float64x *__iptr) throw () __attribute__ ((__nonnull__ (2))); 32778: 32778: 32778: 32778: extern _Float64x exp10f64x (_Float64x __x) throw (); extern _Float64x __exp10f64x (_Float64x __x) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float64x expm1f64x (_Float64x __x) throw (); extern _Float64x __expm1f64x (_Float64x __x) throw (); 32778: 32778: 32778: extern _Float64x log1pf64x (_Float64x __x) throw (); extern _Float64x __log1pf64x (_Float64x __x) throw (); 32778: 32778: 32778: extern _Float64x logbf64x (_Float64x __x) throw (); extern _Float64x __logbf64x (_Float64x __x) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float64x exp2f64x (_Float64x __x) throw (); extern _Float64x __exp2f64x (_Float64x __x) throw (); 32778: 32778: 32778: extern _Float64x log2f64x (_Float64x __x) throw (); extern _Float64x __log2f64x (_Float64x __x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern _Float64x powf64x (_Float64x __x, _Float64x __y) throw (); extern _Float64x __powf64x (_Float64x __x, _Float64x __y) throw (); 32778: 32778: 32778: extern _Float64x sqrtf64x (_Float64x __x) throw (); extern _Float64x __sqrtf64x (_Float64x __x) throw (); 32778: 32778: 32778: 32778: extern _Float64x hypotf64x (_Float64x __x, _Float64x __y) throw (); extern _Float64x __hypotf64x (_Float64x __x, _Float64x __y) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float64x cbrtf64x (_Float64x __x) throw (); extern _Float64x __cbrtf64x (_Float64x __x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern _Float64x ceilf64x (_Float64x __x) throw () __attribute__ ((__const__)); extern _Float64x __ceilf64x (_Float64x __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float64x fabsf64x (_Float64x __x) throw () __attribute__ ((__const__)); extern _Float64x __fabsf64x (_Float64x __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float64x floorf64x (_Float64x __x) throw () __attribute__ ((__const__)); extern _Float64x __floorf64x (_Float64x __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float64x fmodf64x (_Float64x __x, _Float64x __y) throw (); extern _Float64x __fmodf64x (_Float64x __x, _Float64x __y) throw (); 32778: # 196 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern _Float64x copysignf64x (_Float64x __x, _Float64x __y) throw () __attribute__ ((__const__)); extern _Float64x __copysignf64x (_Float64x __x, _Float64x __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: 32778: extern _Float64x nanf64x (const char *__tagb) throw (); extern _Float64x __nanf64x (const char *__tagb) throw (); 32778: # 217 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern _Float64x j0f64x (_Float64x) throw (); extern _Float64x __j0f64x (_Float64x) throw (); 32778: extern _Float64x j1f64x (_Float64x) throw (); extern _Float64x __j1f64x (_Float64x) throw (); 32778: extern _Float64x jnf64x (int, _Float64x) throw (); extern _Float64x __jnf64x (int, _Float64x) throw (); 32778: extern _Float64x y0f64x (_Float64x) throw (); extern _Float64x __y0f64x (_Float64x) throw (); 32778: extern _Float64x y1f64x (_Float64x) throw (); extern _Float64x __y1f64x (_Float64x) throw (); 32778: extern _Float64x ynf64x (int, _Float64x) throw (); extern _Float64x __ynf64x (int, _Float64x) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern _Float64x erff64x (_Float64x) throw (); extern _Float64x __erff64x (_Float64x) throw (); 32778: extern _Float64x erfcf64x (_Float64x) throw (); extern _Float64x __erfcf64x (_Float64x) throw (); 32778: extern _Float64x lgammaf64x (_Float64x) throw (); extern _Float64x __lgammaf64x (_Float64x) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float64x tgammaf64x (_Float64x) throw (); extern _Float64x __tgammaf64x (_Float64x) throw (); 32778: # 249 "/usr/include/riscv64-linux-gnu/bits/mathcalls.h" 3 4 32778: extern _Float64x lgammaf64x_r (_Float64x, int *__signgamp) throw (); extern _Float64x __lgammaf64x_r (_Float64x, int *__signgamp) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern _Float64x rintf64x (_Float64x __x) throw (); extern _Float64x __rintf64x (_Float64x __x) throw (); 32778: 32778: 32778: extern _Float64x nextafterf64x (_Float64x __x, _Float64x __y) throw (); extern _Float64x __nextafterf64x (_Float64x __x, _Float64x __y) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern _Float64x nextdownf64x (_Float64x __x) throw (); extern _Float64x __nextdownf64x (_Float64x __x) throw (); 32778: 32778: extern _Float64x nextupf64x (_Float64x __x) throw (); extern _Float64x __nextupf64x (_Float64x __x) throw (); 32778: 32778: 32778: 32778: extern _Float64x remainderf64x (_Float64x __x, _Float64x __y) throw (); extern _Float64x __remainderf64x (_Float64x __x, _Float64x __y) throw (); 32778: 32778: 32778: 32778: extern _Float64x scalbnf64x (_Float64x __x, int __n) throw (); extern _Float64x __scalbnf64x (_Float64x __x, int __n) throw (); 32778: 32778: 32778: 32778: extern int ilogbf64x (_Float64x __x) throw (); extern int __ilogbf64x (_Float64x __x) throw (); 32778: 32778: 32778: 32778: 32778: extern long int llogbf64x (_Float64x __x) throw (); extern long int __llogbf64x (_Float64x __x) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float64x scalblnf64x (_Float64x __x, long int __n) throw (); extern _Float64x __scalblnf64x (_Float64x __x, long int __n) throw (); 32778: 32778: 32778: 32778: extern _Float64x nearbyintf64x (_Float64x __x) throw (); extern _Float64x __nearbyintf64x (_Float64x __x) throw (); 32778: 32778: 32778: 32778: extern _Float64x roundf64x (_Float64x __x) throw () __attribute__ ((__const__)); extern _Float64x __roundf64x (_Float64x __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: extern _Float64x truncf64x (_Float64x __x) throw () __attribute__ ((__const__)); extern _Float64x __truncf64x (_Float64x __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: 32778: extern _Float64x remquof64x (_Float64x __x, _Float64x __y, int *__quo) throw (); extern _Float64x __remquof64x (_Float64x __x, _Float64x __y, int *__quo) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern long int lrintf64x (_Float64x __x) throw (); extern long int __lrintf64x (_Float64x __x) throw (); 32778: __extension__ 32778: extern long long int llrintf64x (_Float64x __x) throw (); extern long long int __llrintf64x (_Float64x __x) throw (); 32778: 32778: 32778: 32778: extern long int lroundf64x (_Float64x __x) throw (); extern long int __lroundf64x (_Float64x __x) throw (); 32778: __extension__ 32778: extern long long int llroundf64x (_Float64x __x) throw (); extern long long int __llroundf64x (_Float64x __x) throw (); 32778: 32778: 32778: 32778: extern _Float64x fdimf64x (_Float64x __x, _Float64x __y) throw (); extern _Float64x __fdimf64x (_Float64x __x, _Float64x __y) throw (); 32778: 32778: 32778: extern _Float64x fmaxf64x (_Float64x __x, _Float64x __y) throw () __attribute__ ((__const__)); extern _Float64x __fmaxf64x (_Float64x __x, _Float64x __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float64x fminf64x (_Float64x __x, _Float64x __y) throw () __attribute__ ((__const__)); extern _Float64x __fminf64x (_Float64x __x, _Float64x __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float64x fmaf64x (_Float64x __x, _Float64x __y, _Float64x __z) throw (); extern _Float64x __fmaf64x (_Float64x __x, _Float64x __y, _Float64x __z) throw (); 32778: 32778: 32778: 32778: 32778: extern _Float64x roundevenf64x (_Float64x __x) throw () __attribute__ ((__const__)); extern _Float64x __roundevenf64x (_Float64x __x) throw () __attribute__ ((__const__)); 32778: 32778: 32778: 32778: extern __intmax_t fromfpf64x (_Float64x __x, int __round, unsigned int __width) throw (); extern __intmax_t __fromfpf64x (_Float64x __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: 32778: extern __uintmax_t ufromfpf64x (_Float64x __x, int __round, unsigned int __width) throw (); extern __uintmax_t __ufromfpf64x (_Float64x __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: 32778: 32778: extern __intmax_t fromfpxf64x (_Float64x __x, int __round, unsigned int __width) throw (); extern __intmax_t __fromfpxf64x (_Float64x __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: 32778: 32778: extern __uintmax_t ufromfpxf64x (_Float64x __x, int __round, unsigned int __width) throw (); extern __uintmax_t __ufromfpxf64x (_Float64x __x, int __round, unsigned int __width) throw () 32778: ; 32778: 32778: 32778: extern _Float64x fmaxmagf64x (_Float64x __x, _Float64x __y) throw () __attribute__ ((__const__)); extern _Float64x __fmaxmagf64x (_Float64x __x, _Float64x __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern _Float64x fminmagf64x (_Float64x __x, _Float64x __y) throw () __attribute__ ((__const__)); extern _Float64x __fminmagf64x (_Float64x __x, _Float64x __y) throw () __attribute__ ((__const__)); 32778: 32778: 32778: extern int canonicalizef64x (_Float64x *__cx, const _Float64x *__x) throw (); 32778: 32778: 32778: 32778: 32778: extern int totalorderf64x (const _Float64x *__x, const _Float64x *__y) throw () 32778: 32778: __attribute__ ((__pure__)); 32778: 32778: 32778: extern int totalordermagf64x (const _Float64x *__x, const _Float64x *__y) throw () 32778: 32778: __attribute__ ((__pure__)); 32778: 32778: 32778: extern _Float64x getpayloadf64x (const _Float64x *__x) throw (); extern _Float64x __getpayloadf64x (const _Float64x *__x) throw (); 32778: 32778: 32778: extern int setpayloadf64x (_Float64x *__x, _Float64x __payload) throw (); 32778: 32778: 32778: extern int setpayloadsigf64x (_Float64x *__x, _Float64x __payload) throw (); 32778: # 458 "/usr/include/math.h" 2 3 4 32778: # 503 "/usr/include/math.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 32778: # 24 "/usr/include/riscv64-linux-gnu/bits/mathcalls-narrow.h" 3 4 32778: extern float fadd (double __x, double __y) throw (); 32778: 32778: 32778: extern float fdiv (double __x, double __y) throw (); 32778: 32778: 32778: extern float fmul (double __x, double __y) throw (); 32778: 32778: 32778: extern float fsub (double __x, double __y) throw (); 32778: # 504 "/usr/include/math.h" 2 3 4 32778: # 517 "/usr/include/math.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 32778: # 24 "/usr/include/riscv64-linux-gnu/bits/mathcalls-narrow.h" 3 4 32778: extern float faddl (long double __x, long double __y) throw (); 32778: 32778: 32778: extern float fdivl (long double __x, long double __y) throw (); 32778: 32778: 32778: extern float fmull (long double __x, long double __y) throw (); 32778: 32778: 32778: extern float fsubl (long double __x, long double __y) throw (); 32778: # 518 "/usr/include/math.h" 2 3 4 32778: # 537 "/usr/include/math.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 32778: # 24 "/usr/include/riscv64-linux-gnu/bits/mathcalls-narrow.h" 3 4 32778: extern double daddl (long double __x, long double __y) throw (); 32778: 32778: 32778: extern double ddivl (long double __x, long double __y) throw (); 32778: 32778: 32778: extern double dmull (long double __x, long double __y) throw (); 32778: 32778: 32778: extern double dsubl (long double __x, long double __y) throw (); 32778: # 538 "/usr/include/math.h" 2 3 4 32778: # 616 "/usr/include/math.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 32778: # 24 "/usr/include/riscv64-linux-gnu/bits/mathcalls-narrow.h" 3 4 32778: extern _Float32 f32addf32x (_Float32x __x, _Float32x __y) throw (); 32778: 32778: 32778: extern _Float32 f32divf32x (_Float32x __x, _Float32x __y) throw (); 32778: 32778: 32778: extern _Float32 f32mulf32x (_Float32x __x, _Float32x __y) throw (); 32778: 32778: 32778: extern _Float32 f32subf32x (_Float32x __x, _Float32x __y) throw (); 32778: # 617 "/usr/include/math.h" 2 3 4 32778: # 626 "/usr/include/math.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 32778: # 24 "/usr/include/riscv64-linux-gnu/bits/mathcalls-narrow.h" 3 4 32778: extern _Float32 f32addf64 (_Float64 __x, _Float64 __y) throw (); 32778: 32778: 32778: extern _Float32 f32divf64 (_Float64 __x, _Float64 __y) throw (); 32778: 32778: 32778: extern _Float32 f32mulf64 (_Float64 __x, _Float64 __y) throw (); 32778: 32778: 32778: extern _Float32 f32subf64 (_Float64 __x, _Float64 __y) throw (); 32778: # 627 "/usr/include/math.h" 2 3 4 32778: # 636 "/usr/include/math.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 32778: # 24 "/usr/include/riscv64-linux-gnu/bits/mathcalls-narrow.h" 3 4 32778: extern _Float32 f32addf64x (_Float64x __x, _Float64x __y) throw (); 32778: 32778: 32778: extern _Float32 f32divf64x (_Float64x __x, _Float64x __y) throw (); 32778: 32778: 32778: extern _Float32 f32mulf64x (_Float64x __x, _Float64x __y) throw (); 32778: 32778: 32778: extern _Float32 f32subf64x (_Float64x __x, _Float64x __y) throw (); 32778: # 637 "/usr/include/math.h" 2 3 4 32778: # 646 "/usr/include/math.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 32778: # 24 "/usr/include/riscv64-linux-gnu/bits/mathcalls-narrow.h" 3 4 32778: extern _Float32 f32addf128 (_Float128 __x, _Float128 __y) throw (); 32778: 32778: 32778: extern _Float32 f32divf128 (_Float128 __x, _Float128 __y) throw (); 32778: 32778: 32778: extern _Float32 f32mulf128 (_Float128 __x, _Float128 __y) throw (); 32778: 32778: 32778: extern _Float32 f32subf128 (_Float128 __x, _Float128 __y) throw (); 32778: # 647 "/usr/include/math.h" 2 3 4 32778: # 666 "/usr/include/math.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 32778: # 24 "/usr/include/riscv64-linux-gnu/bits/mathcalls-narrow.h" 3 4 32778: extern _Float32x f32xaddf64 (_Float64 __x, _Float64 __y) throw (); 32778: 32778: 32778: extern _Float32x f32xdivf64 (_Float64 __x, _Float64 __y) throw (); 32778: 32778: 32778: extern _Float32x f32xmulf64 (_Float64 __x, _Float64 __y) throw (); 32778: 32778: 32778: extern _Float32x f32xsubf64 (_Float64 __x, _Float64 __y) throw (); 32778: # 667 "/usr/include/math.h" 2 3 4 32778: # 676 "/usr/include/math.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 32778: # 24 "/usr/include/riscv64-linux-gnu/bits/mathcalls-narrow.h" 3 4 32778: extern _Float32x f32xaddf64x (_Float64x __x, _Float64x __y) throw (); 32778: 32778: 32778: extern _Float32x f32xdivf64x (_Float64x __x, _Float64x __y) throw (); 32778: 32778: 32778: extern _Float32x f32xmulf64x (_Float64x __x, _Float64x __y) throw (); 32778: 32778: 32778: extern _Float32x f32xsubf64x (_Float64x __x, _Float64x __y) throw (); 32778: # 677 "/usr/include/math.h" 2 3 4 32778: # 686 "/usr/include/math.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 32778: # 24 "/usr/include/riscv64-linux-gnu/bits/mathcalls-narrow.h" 3 4 32778: extern _Float32x f32xaddf128 (_Float128 __x, _Float128 __y) throw (); 32778: 32778: 32778: extern _Float32x f32xdivf128 (_Float128 __x, _Float128 __y) throw (); 32778: 32778: 32778: extern _Float32x f32xmulf128 (_Float128 __x, _Float128 __y) throw (); 32778: 32778: 32778: extern _Float32x f32xsubf128 (_Float128 __x, _Float128 __y) throw (); 32778: # 687 "/usr/include/math.h" 2 3 4 32778: # 706 "/usr/include/math.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 32778: # 24 "/usr/include/riscv64-linux-gnu/bits/mathcalls-narrow.h" 3 4 32778: extern _Float64 f64addf64x (_Float64x __x, _Float64x __y) throw (); 32778: 32778: 32778: extern _Float64 f64divf64x (_Float64x __x, _Float64x __y) throw (); 32778: 32778: 32778: extern _Float64 f64mulf64x (_Float64x __x, _Float64x __y) throw (); 32778: 32778: 32778: extern _Float64 f64subf64x (_Float64x __x, _Float64x __y) throw (); 32778: # 707 "/usr/include/math.h" 2 3 4 32778: # 716 "/usr/include/math.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 32778: # 24 "/usr/include/riscv64-linux-gnu/bits/mathcalls-narrow.h" 3 4 32778: extern _Float64 f64addf128 (_Float128 __x, _Float128 __y) throw (); 32778: 32778: 32778: extern _Float64 f64divf128 (_Float128 __x, _Float128 __y) throw (); 32778: 32778: 32778: extern _Float64 f64mulf128 (_Float128 __x, _Float128 __y) throw (); 32778: 32778: 32778: extern _Float64 f64subf128 (_Float128 __x, _Float128 __y) throw (); 32778: # 717 "/usr/include/math.h" 2 3 4 32778: # 736 "/usr/include/math.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 32778: # 24 "/usr/include/riscv64-linux-gnu/bits/mathcalls-narrow.h" 3 4 32778: extern _Float64x f64xaddf128 (_Float128 __x, _Float128 __y) throw (); 32778: 32778: 32778: extern _Float64x f64xdivf128 (_Float128 __x, _Float128 __y) throw (); 32778: 32778: 32778: extern _Float64x f64xmulf128 (_Float128 __x, _Float128 __y) throw (); 32778: 32778: 32778: extern _Float64x f64xsubf128 (_Float128 __x, _Float128 __y) throw (); 32778: # 737 "/usr/include/math.h" 2 3 4 32778: # 773 "/usr/include/math.h" 3 4 32778: extern int signgam; 32778: # 853 "/usr/include/math.h" 3 4 32778: enum 32778: { 32778: FP_NAN = 32778: 32778: 0, 32778: FP_INFINITE = 32778: 32778: 1, 32778: FP_ZERO = 32778: 32778: 2, 32778: FP_SUBNORMAL = 32778: 32778: 3, 32778: FP_NORMAL = 32778: 32778: 4 32778: }; 32778: # 973 "/usr/include/math.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/iscanonical.h" 1 3 4 32778: # 974 "/usr/include/math.h" 2 3 4 32778: # 985 "/usr/include/math.h" 3 4 32778: extern "C++" { 32778: inline int issignaling (float __val) { return __issignalingf (__val); } 32778: inline int issignaling (double __val) { return __issignaling (__val); } 32778: inline int 32778: issignaling (long double __val) 32778: { 32778: 32778: 32778: 32778: return __issignalingl (__val); 32778: 32778: } 32778: 32778: 32778: 32778: 32778: 32778: } 32778: # 1016 "/usr/include/math.h" 3 4 32778: extern "C++" { 32778: # 1047 "/usr/include/math.h" 3 4 32778: template inline bool 32778: iszero (__T __val) 32778: { 32778: return __val == 0; 32778: } 32778: 32778: } 32778: # 1245 "/usr/include/math.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/mathinline.h" 1 3 4 32778: # 1246 "/usr/include/math.h" 2 3 4 32778: # 1278 "/usr/include/math.h" 3 4 32778: extern "C++" { 32778: template struct __iseqsig_type; 32778: 32778: template<> struct __iseqsig_type 32778: { 32778: static int __call (float __x, float __y) throw () 32778: { 32778: return __iseqsigf (__x, __y); 32778: } 32778: }; 32778: 32778: template<> struct __iseqsig_type 32778: { 32778: static int __call (double __x, double __y) throw () 32778: { 32778: return __iseqsig (__x, __y); 32778: } 32778: }; 32778: 32778: template<> struct __iseqsig_type 32778: { 32778: static int __call (long double __x, long double __y) throw () 32778: { 32778: 32778: return __iseqsigl (__x, __y); 32778: 32778: 32778: 32778: } 32778: }; 32778: # 1321 "/usr/include/math.h" 3 4 32778: template 32778: inline int 32778: iseqsig (_T1 __x, _T2 __y) throw () 32778: { 32778: 32778: typedef decltype (((__x) + (__y) + 0.0f)) _T3; 32778: 32778: 32778: 32778: return __iseqsig_type<_T3>::__call (__x, __y); 32778: } 32778: 32778: } 32778: 32778: 32778: 32778: 32778: } 32778: # 46 "/usr/include/c++/9/cmath" 2 3 32778: # 77 "/usr/include/c++/9/cmath" 3 32778: extern "C++" 32778: { 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: using ::acos; 32778: 32778: 32778: inline constexpr float 32778: acos(float __x) 32778: { return __builtin_acosf(__x); } 32778: 32778: inline constexpr long double 32778: acos(long double __x) 32778: { return __builtin_acosl(__x); } 32778: 32778: 32778: template 32778: inline constexpr 32778: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: acos(_Tp __x) 32778: { return __builtin_acos(__x); } 32778: 32778: using ::asin; 32778: 32778: 32778: inline constexpr float 32778: asin(float __x) 32778: { return __builtin_asinf(__x); } 32778: 32778: inline constexpr long double 32778: asin(long double __x) 32778: { return __builtin_asinl(__x); } 32778: 32778: 32778: template 32778: inline constexpr 32778: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: asin(_Tp __x) 32778: { return __builtin_asin(__x); } 32778: 32778: using ::atan; 32778: 32778: 32778: inline constexpr float 32778: atan(float __x) 32778: { return __builtin_atanf(__x); } 32778: 32778: inline constexpr long double 32778: atan(long double __x) 32778: { return __builtin_atanl(__x); } 32778: 32778: 32778: template 32778: inline constexpr 32778: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: atan(_Tp __x) 32778: { return __builtin_atan(__x); } 32778: 32778: using ::atan2; 32778: 32778: 32778: inline constexpr float 32778: atan2(float __y, float __x) 32778: { return __builtin_atan2f(__y, __x); } 32778: 32778: inline constexpr long double 32778: atan2(long double __y, long double __x) 32778: { return __builtin_atan2l(__y, __x); } 32778: 32778: 32778: template 32778: inline constexpr 32778: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 32778: atan2(_Tp __y, _Up __x) 32778: { 32778: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 32778: return atan2(__type(__y), __type(__x)); 32778: } 32778: 32778: using ::ceil; 32778: 32778: 32778: inline constexpr float 32778: ceil(float __x) 32778: { return __builtin_ceilf(__x); } 32778: 32778: inline constexpr long double 32778: ceil(long double __x) 32778: { return __builtin_ceill(__x); } 32778: 32778: 32778: template 32778: inline constexpr 32778: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: ceil(_Tp __x) 32778: { return __builtin_ceil(__x); } 32778: 32778: using ::cos; 32778: 32778: 32778: inline constexpr float 32778: cos(float __x) 32778: { return __builtin_cosf(__x); } 32778: 32778: inline constexpr long double 32778: cos(long double __x) 32778: { return __builtin_cosl(__x); } 32778: 32778: 32778: template 32778: inline constexpr 32778: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: cos(_Tp __x) 32778: { return __builtin_cos(__x); } 32778: 32778: using ::cosh; 32778: 32778: 32778: inline constexpr float 32778: cosh(float __x) 32778: { return __builtin_coshf(__x); } 32778: 32778: inline constexpr long double 32778: cosh(long double __x) 32778: { return __builtin_coshl(__x); } 32778: 32778: 32778: template 32778: inline constexpr 32778: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: cosh(_Tp __x) 32778: { return __builtin_cosh(__x); } 32778: 32778: using ::exp; 32778: 32778: 32778: inline constexpr float 32778: exp(float __x) 32778: { return __builtin_expf(__x); } 32778: 32778: inline constexpr long double 32778: exp(long double __x) 32778: { return __builtin_expl(__x); } 32778: 32778: 32778: template 32778: inline constexpr 32778: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: exp(_Tp __x) 32778: { return __builtin_exp(__x); } 32778: 32778: using ::fabs; 32778: 32778: 32778: inline constexpr float 32778: fabs(float __x) 32778: { return __builtin_fabsf(__x); } 32778: 32778: inline constexpr long double 32778: fabs(long double __x) 32778: { return __builtin_fabsl(__x); } 32778: 32778: 32778: template 32778: inline constexpr 32778: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: fabs(_Tp __x) 32778: { return __builtin_fabs(__x); } 32778: 32778: using ::floor; 32778: 32778: 32778: inline constexpr float 32778: floor(float __x) 32778: { return __builtin_floorf(__x); } 32778: 32778: inline constexpr long double 32778: floor(long double __x) 32778: { return __builtin_floorl(__x); } 32778: 32778: 32778: template 32778: inline constexpr 32778: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: floor(_Tp __x) 32778: { return __builtin_floor(__x); } 32778: 32778: using ::fmod; 32778: 32778: 32778: inline constexpr float 32778: fmod(float __x, float __y) 32778: { return __builtin_fmodf(__x, __y); } 32778: 32778: inline constexpr long double 32778: fmod(long double __x, long double __y) 32778: { return __builtin_fmodl(__x, __y); } 32778: 32778: 32778: template 32778: inline constexpr 32778: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 32778: fmod(_Tp __x, _Up __y) 32778: { 32778: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 32778: return fmod(__type(__x), __type(__y)); 32778: } 32778: 32778: using ::frexp; 32778: 32778: 32778: inline float 32778: frexp(float __x, int* __exp) 32778: { return __builtin_frexpf(__x, __exp); } 32778: 32778: inline long double 32778: frexp(long double __x, int* __exp) 32778: { return __builtin_frexpl(__x, __exp); } 32778: 32778: 32778: template 32778: inline constexpr 32778: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: frexp(_Tp __x, int* __exp) 32778: { return __builtin_frexp(__x, __exp); } 32778: 32778: using ::ldexp; 32778: 32778: 32778: inline constexpr float 32778: ldexp(float __x, int __exp) 32778: { return __builtin_ldexpf(__x, __exp); } 32778: 32778: inline constexpr long double 32778: ldexp(long double __x, int __exp) 32778: { return __builtin_ldexpl(__x, __exp); } 32778: 32778: 32778: template 32778: inline constexpr 32778: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: ldexp(_Tp __x, int __exp) 32778: { return __builtin_ldexp(__x, __exp); } 32778: 32778: using ::log; 32778: 32778: 32778: inline constexpr float 32778: log(float __x) 32778: { return __builtin_logf(__x); } 32778: 32778: inline constexpr long double 32778: log(long double __x) 32778: { return __builtin_logl(__x); } 32778: 32778: 32778: template 32778: inline constexpr 32778: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: log(_Tp __x) 32778: { return __builtin_log(__x); } 32778: 32778: using ::log10; 32778: 32778: 32778: inline constexpr float 32778: log10(float __x) 32778: { return __builtin_log10f(__x); } 32778: 32778: inline constexpr long double 32778: log10(long double __x) 32778: { return __builtin_log10l(__x); } 32778: 32778: 32778: template 32778: inline constexpr 32778: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: log10(_Tp __x) 32778: { return __builtin_log10(__x); } 32778: 32778: using ::modf; 32778: 32778: 32778: inline float 32778: modf(float __x, float* __iptr) 32778: { return __builtin_modff(__x, __iptr); } 32778: 32778: inline long double 32778: modf(long double __x, long double* __iptr) 32778: { return __builtin_modfl(__x, __iptr); } 32778: 32778: 32778: using ::pow; 32778: 32778: 32778: inline constexpr float 32778: pow(float __x, float __y) 32778: { return __builtin_powf(__x, __y); } 32778: 32778: inline constexpr long double 32778: pow(long double __x, long double __y) 32778: { return __builtin_powl(__x, __y); } 32778: # 412 "/usr/include/c++/9/cmath" 3 32778: template 32778: inline constexpr 32778: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 32778: pow(_Tp __x, _Up __y) 32778: { 32778: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 32778: return pow(__type(__x), __type(__y)); 32778: } 32778: 32778: using ::sin; 32778: 32778: 32778: inline constexpr float 32778: sin(float __x) 32778: { return __builtin_sinf(__x); } 32778: 32778: inline constexpr long double 32778: sin(long double __x) 32778: { return __builtin_sinl(__x); } 32778: 32778: 32778: template 32778: inline constexpr 32778: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: sin(_Tp __x) 32778: { return __builtin_sin(__x); } 32778: 32778: using ::sinh; 32778: 32778: 32778: inline constexpr float 32778: sinh(float __x) 32778: { return __builtin_sinhf(__x); } 32778: 32778: inline constexpr long double 32778: sinh(long double __x) 32778: { return __builtin_sinhl(__x); } 32778: 32778: 32778: template 32778: inline constexpr 32778: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: sinh(_Tp __x) 32778: { return __builtin_sinh(__x); } 32778: 32778: using ::sqrt; 32778: 32778: 32778: inline constexpr float 32778: sqrt(float __x) 32778: { return __builtin_sqrtf(__x); } 32778: 32778: inline constexpr long double 32778: sqrt(long double __x) 32778: { return __builtin_sqrtl(__x); } 32778: 32778: 32778: template 32778: inline constexpr 32778: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: sqrt(_Tp __x) 32778: { return __builtin_sqrt(__x); } 32778: 32778: using ::tan; 32778: 32778: 32778: inline constexpr float 32778: tan(float __x) 32778: { return __builtin_tanf(__x); } 32778: 32778: inline constexpr long double 32778: tan(long double __x) 32778: { return __builtin_tanl(__x); } 32778: 32778: 32778: template 32778: inline constexpr 32778: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: tan(_Tp __x) 32778: { return __builtin_tan(__x); } 32778: 32778: using ::tanh; 32778: 32778: 32778: inline constexpr float 32778: tanh(float __x) 32778: { return __builtin_tanhf(__x); } 32778: 32778: inline constexpr long double 32778: tanh(long double __x) 32778: { return __builtin_tanhl(__x); } 32778: 32778: 32778: template 32778: inline constexpr 32778: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: tanh(_Tp __x) 32778: { return __builtin_tanh(__x); } 32778: # 536 "/usr/include/c++/9/cmath" 3 32778: constexpr int 32778: fpclassify(float __x) 32778: { return __builtin_fpclassify(0, 1, 4, 32778: 3, 2, __x); } 32778: 32778: constexpr int 32778: fpclassify(double __x) 32778: { return __builtin_fpclassify(0, 1, 4, 32778: 3, 2, __x); } 32778: 32778: constexpr int 32778: fpclassify(long double __x) 32778: { return __builtin_fpclassify(0, 1, 4, 32778: 3, 2, __x); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: int>::__type 32778: fpclassify(_Tp __x) 32778: { return __x != 0 ? 4 : 2; } 32778: 32778: 32778: 32778: constexpr bool 32778: isfinite(float __x) 32778: { return __builtin_isfinite(__x); } 32778: 32778: constexpr bool 32778: isfinite(double __x) 32778: { return __builtin_isfinite(__x); } 32778: 32778: constexpr bool 32778: isfinite(long double __x) 32778: { return __builtin_isfinite(__x); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: bool>::__type 32778: isfinite(_Tp __x) 32778: { return true; } 32778: 32778: 32778: 32778: constexpr bool 32778: isinf(float __x) 32778: { return __builtin_isinf(__x); } 32778: 32778: 32778: 32778: 32778: 32778: constexpr bool 32778: isinf(double __x) 32778: { return __builtin_isinf(__x); } 32778: 32778: 32778: constexpr bool 32778: isinf(long double __x) 32778: { return __builtin_isinf(__x); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: bool>::__type 32778: isinf(_Tp __x) 32778: { return false; } 32778: 32778: 32778: 32778: constexpr bool 32778: isnan(float __x) 32778: { return __builtin_isnan(__x); } 32778: 32778: 32778: 32778: 32778: 32778: constexpr bool 32778: isnan(double __x) 32778: { return __builtin_isnan(__x); } 32778: 32778: 32778: constexpr bool 32778: isnan(long double __x) 32778: { return __builtin_isnan(__x); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: bool>::__type 32778: isnan(_Tp __x) 32778: { return false; } 32778: 32778: 32778: 32778: constexpr bool 32778: isnormal(float __x) 32778: { return __builtin_isnormal(__x); } 32778: 32778: constexpr bool 32778: isnormal(double __x) 32778: { return __builtin_isnormal(__x); } 32778: 32778: constexpr bool 32778: isnormal(long double __x) 32778: { return __builtin_isnormal(__x); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: bool>::__type 32778: isnormal(_Tp __x) 32778: { return __x != 0 ? true : false; } 32778: 32778: 32778: 32778: 32778: constexpr bool 32778: signbit(float __x) 32778: { return __builtin_signbit(__x); } 32778: 32778: constexpr bool 32778: signbit(double __x) 32778: { return __builtin_signbit(__x); } 32778: 32778: constexpr bool 32778: signbit(long double __x) 32778: { return __builtin_signbit(__x); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: bool>::__type 32778: signbit(_Tp __x) 32778: { return __x < 0 ? true : false; } 32778: 32778: 32778: 32778: constexpr bool 32778: isgreater(float __x, float __y) 32778: { return __builtin_isgreater(__x, __y); } 32778: 32778: constexpr bool 32778: isgreater(double __x, double __y) 32778: { return __builtin_isgreater(__x, __y); } 32778: 32778: constexpr bool 32778: isgreater(long double __x, long double __y) 32778: { return __builtin_isgreater(__x, __y); } 32778: 32778: 32778: 32778: template 32778: constexpr typename 32778: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 32778: && __is_arithmetic<_Up>::__value), bool>::__type 32778: isgreater(_Tp __x, _Up __y) 32778: { 32778: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 32778: return __builtin_isgreater(__type(__x), __type(__y)); 32778: } 32778: 32778: 32778: 32778: constexpr bool 32778: isgreaterequal(float __x, float __y) 32778: { return __builtin_isgreaterequal(__x, __y); } 32778: 32778: constexpr bool 32778: isgreaterequal(double __x, double __y) 32778: { return __builtin_isgreaterequal(__x, __y); } 32778: 32778: constexpr bool 32778: isgreaterequal(long double __x, long double __y) 32778: { return __builtin_isgreaterequal(__x, __y); } 32778: 32778: 32778: 32778: template 32778: constexpr typename 32778: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 32778: && __is_arithmetic<_Up>::__value), bool>::__type 32778: isgreaterequal(_Tp __x, _Up __y) 32778: { 32778: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 32778: return __builtin_isgreaterequal(__type(__x), __type(__y)); 32778: } 32778: 32778: 32778: 32778: constexpr bool 32778: isless(float __x, float __y) 32778: { return __builtin_isless(__x, __y); } 32778: 32778: constexpr bool 32778: isless(double __x, double __y) 32778: { return __builtin_isless(__x, __y); } 32778: 32778: constexpr bool 32778: isless(long double __x, long double __y) 32778: { return __builtin_isless(__x, __y); } 32778: 32778: 32778: 32778: template 32778: constexpr typename 32778: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 32778: && __is_arithmetic<_Up>::__value), bool>::__type 32778: isless(_Tp __x, _Up __y) 32778: { 32778: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 32778: return __builtin_isless(__type(__x), __type(__y)); 32778: } 32778: 32778: 32778: 32778: constexpr bool 32778: islessequal(float __x, float __y) 32778: { return __builtin_islessequal(__x, __y); } 32778: 32778: constexpr bool 32778: islessequal(double __x, double __y) 32778: { return __builtin_islessequal(__x, __y); } 32778: 32778: constexpr bool 32778: islessequal(long double __x, long double __y) 32778: { return __builtin_islessequal(__x, __y); } 32778: 32778: 32778: 32778: template 32778: constexpr typename 32778: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 32778: && __is_arithmetic<_Up>::__value), bool>::__type 32778: islessequal(_Tp __x, _Up __y) 32778: { 32778: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 32778: return __builtin_islessequal(__type(__x), __type(__y)); 32778: } 32778: 32778: 32778: 32778: constexpr bool 32778: islessgreater(float __x, float __y) 32778: { return __builtin_islessgreater(__x, __y); } 32778: 32778: constexpr bool 32778: islessgreater(double __x, double __y) 32778: { return __builtin_islessgreater(__x, __y); } 32778: 32778: constexpr bool 32778: islessgreater(long double __x, long double __y) 32778: { return __builtin_islessgreater(__x, __y); } 32778: 32778: 32778: 32778: template 32778: constexpr typename 32778: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 32778: && __is_arithmetic<_Up>::__value), bool>::__type 32778: islessgreater(_Tp __x, _Up __y) 32778: { 32778: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 32778: return __builtin_islessgreater(__type(__x), __type(__y)); 32778: } 32778: 32778: 32778: 32778: constexpr bool 32778: isunordered(float __x, float __y) 32778: { return __builtin_isunordered(__x, __y); } 32778: 32778: constexpr bool 32778: isunordered(double __x, double __y) 32778: { return __builtin_isunordered(__x, __y); } 32778: 32778: constexpr bool 32778: isunordered(long double __x, long double __y) 32778: { return __builtin_isunordered(__x, __y); } 32778: 32778: 32778: 32778: template 32778: constexpr typename 32778: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 32778: && __is_arithmetic<_Up>::__value), bool>::__type 32778: isunordered(_Tp __x, _Up __y) 32778: { 32778: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 32778: return __builtin_isunordered(__type(__x), __type(__y)); 32778: } 32778: # 1065 "/usr/include/c++/9/cmath" 3 32778: using ::double_t; 32778: using ::float_t; 32778: 32778: 32778: using ::acosh; 32778: using ::acoshf; 32778: using ::acoshl; 32778: 32778: using ::asinh; 32778: using ::asinhf; 32778: using ::asinhl; 32778: 32778: using ::atanh; 32778: using ::atanhf; 32778: using ::atanhl; 32778: 32778: using ::cbrt; 32778: using ::cbrtf; 32778: using ::cbrtl; 32778: 32778: using ::copysign; 32778: using ::copysignf; 32778: using ::copysignl; 32778: 32778: using ::erf; 32778: using ::erff; 32778: using ::erfl; 32778: 32778: using ::erfc; 32778: using ::erfcf; 32778: using ::erfcl; 32778: 32778: using ::exp2; 32778: using ::exp2f; 32778: using ::exp2l; 32778: 32778: using ::expm1; 32778: using ::expm1f; 32778: using ::expm1l; 32778: 32778: using ::fdim; 32778: using ::fdimf; 32778: using ::fdiml; 32778: 32778: using ::fma; 32778: using ::fmaf; 32778: using ::fmal; 32778: 32778: using ::fmax; 32778: using ::fmaxf; 32778: using ::fmaxl; 32778: 32778: using ::fmin; 32778: using ::fminf; 32778: using ::fminl; 32778: 32778: using ::hypot; 32778: using ::hypotf; 32778: using ::hypotl; 32778: 32778: using ::ilogb; 32778: using ::ilogbf; 32778: using ::ilogbl; 32778: 32778: using ::lgamma; 32778: using ::lgammaf; 32778: using ::lgammal; 32778: 32778: 32778: using ::llrint; 32778: using ::llrintf; 32778: using ::llrintl; 32778: 32778: using ::llround; 32778: using ::llroundf; 32778: using ::llroundl; 32778: 32778: 32778: using ::log1p; 32778: using ::log1pf; 32778: using ::log1pl; 32778: 32778: using ::log2; 32778: using ::log2f; 32778: using ::log2l; 32778: 32778: using ::logb; 32778: using ::logbf; 32778: using ::logbl; 32778: 32778: using ::lrint; 32778: using ::lrintf; 32778: using ::lrintl; 32778: 32778: using ::lround; 32778: using ::lroundf; 32778: using ::lroundl; 32778: 32778: using ::nan; 32778: using ::nanf; 32778: using ::nanl; 32778: 32778: using ::nearbyint; 32778: using ::nearbyintf; 32778: using ::nearbyintl; 32778: 32778: using ::nextafter; 32778: using ::nextafterf; 32778: using ::nextafterl; 32778: 32778: using ::nexttoward; 32778: using ::nexttowardf; 32778: using ::nexttowardl; 32778: 32778: using ::remainder; 32778: using ::remainderf; 32778: using ::remainderl; 32778: 32778: using ::remquo; 32778: using ::remquof; 32778: using ::remquol; 32778: 32778: using ::rint; 32778: using ::rintf; 32778: using ::rintl; 32778: 32778: using ::round; 32778: using ::roundf; 32778: using ::roundl; 32778: 32778: using ::scalbln; 32778: using ::scalblnf; 32778: using ::scalblnl; 32778: 32778: using ::scalbn; 32778: using ::scalbnf; 32778: using ::scalbnl; 32778: 32778: using ::tgamma; 32778: using ::tgammaf; 32778: using ::tgammal; 32778: 32778: using ::trunc; 32778: using ::truncf; 32778: using ::truncl; 32778: 32778: 32778: 32778: constexpr float 32778: acosh(float __x) 32778: { return __builtin_acoshf(__x); } 32778: 32778: constexpr long double 32778: acosh(long double __x) 32778: { return __builtin_acoshl(__x); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: acosh(_Tp __x) 32778: { return __builtin_acosh(__x); } 32778: 32778: 32778: 32778: constexpr float 32778: asinh(float __x) 32778: { return __builtin_asinhf(__x); } 32778: 32778: constexpr long double 32778: asinh(long double __x) 32778: { return __builtin_asinhl(__x); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: asinh(_Tp __x) 32778: { return __builtin_asinh(__x); } 32778: 32778: 32778: 32778: constexpr float 32778: atanh(float __x) 32778: { return __builtin_atanhf(__x); } 32778: 32778: constexpr long double 32778: atanh(long double __x) 32778: { return __builtin_atanhl(__x); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: atanh(_Tp __x) 32778: { return __builtin_atanh(__x); } 32778: 32778: 32778: 32778: constexpr float 32778: cbrt(float __x) 32778: { return __builtin_cbrtf(__x); } 32778: 32778: constexpr long double 32778: cbrt(long double __x) 32778: { return __builtin_cbrtl(__x); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: cbrt(_Tp __x) 32778: { return __builtin_cbrt(__x); } 32778: 32778: 32778: 32778: constexpr float 32778: copysign(float __x, float __y) 32778: { return __builtin_copysignf(__x, __y); } 32778: 32778: constexpr long double 32778: copysign(long double __x, long double __y) 32778: { return __builtin_copysignl(__x, __y); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 32778: copysign(_Tp __x, _Up __y) 32778: { 32778: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 32778: return copysign(__type(__x), __type(__y)); 32778: } 32778: 32778: 32778: 32778: constexpr float 32778: erf(float __x) 32778: { return __builtin_erff(__x); } 32778: 32778: constexpr long double 32778: erf(long double __x) 32778: { return __builtin_erfl(__x); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: erf(_Tp __x) 32778: { return __builtin_erf(__x); } 32778: 32778: 32778: 32778: constexpr float 32778: erfc(float __x) 32778: { return __builtin_erfcf(__x); } 32778: 32778: constexpr long double 32778: erfc(long double __x) 32778: { return __builtin_erfcl(__x); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: erfc(_Tp __x) 32778: { return __builtin_erfc(__x); } 32778: 32778: 32778: 32778: constexpr float 32778: exp2(float __x) 32778: { return __builtin_exp2f(__x); } 32778: 32778: constexpr long double 32778: exp2(long double __x) 32778: { return __builtin_exp2l(__x); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: exp2(_Tp __x) 32778: { return __builtin_exp2(__x); } 32778: 32778: 32778: 32778: constexpr float 32778: expm1(float __x) 32778: { return __builtin_expm1f(__x); } 32778: 32778: constexpr long double 32778: expm1(long double __x) 32778: { return __builtin_expm1l(__x); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: expm1(_Tp __x) 32778: { return __builtin_expm1(__x); } 32778: 32778: 32778: 32778: constexpr float 32778: fdim(float __x, float __y) 32778: { return __builtin_fdimf(__x, __y); } 32778: 32778: constexpr long double 32778: fdim(long double __x, long double __y) 32778: { return __builtin_fdiml(__x, __y); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 32778: fdim(_Tp __x, _Up __y) 32778: { 32778: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 32778: return fdim(__type(__x), __type(__y)); 32778: } 32778: 32778: 32778: 32778: constexpr float 32778: fma(float __x, float __y, float __z) 32778: { return __builtin_fmaf(__x, __y, __z); } 32778: 32778: constexpr long double 32778: fma(long double __x, long double __y, long double __z) 32778: { return __builtin_fmal(__x, __y, __z); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type 32778: fma(_Tp __x, _Up __y, _Vp __z) 32778: { 32778: typedef typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type __type; 32778: return fma(__type(__x), __type(__y), __type(__z)); 32778: } 32778: 32778: 32778: 32778: constexpr float 32778: fmax(float __x, float __y) 32778: { return __builtin_fmaxf(__x, __y); } 32778: 32778: constexpr long double 32778: fmax(long double __x, long double __y) 32778: { return __builtin_fmaxl(__x, __y); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 32778: fmax(_Tp __x, _Up __y) 32778: { 32778: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 32778: return fmax(__type(__x), __type(__y)); 32778: } 32778: 32778: 32778: 32778: constexpr float 32778: fmin(float __x, float __y) 32778: { return __builtin_fminf(__x, __y); } 32778: 32778: constexpr long double 32778: fmin(long double __x, long double __y) 32778: { return __builtin_fminl(__x, __y); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 32778: fmin(_Tp __x, _Up __y) 32778: { 32778: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 32778: return fmin(__type(__x), __type(__y)); 32778: } 32778: 32778: 32778: 32778: constexpr float 32778: hypot(float __x, float __y) 32778: { return __builtin_hypotf(__x, __y); } 32778: 32778: constexpr long double 32778: hypot(long double __x, long double __y) 32778: { return __builtin_hypotl(__x, __y); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 32778: hypot(_Tp __x, _Up __y) 32778: { 32778: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 32778: return hypot(__type(__x), __type(__y)); 32778: } 32778: 32778: 32778: 32778: constexpr int 32778: ilogb(float __x) 32778: { return __builtin_ilogbf(__x); } 32778: 32778: constexpr int 32778: ilogb(long double __x) 32778: { return __builtin_ilogbl(__x); } 32778: 32778: 32778: 32778: template 32778: constexpr 32778: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: int>::__type 32778: ilogb(_Tp __x) 32778: { return __builtin_ilogb(__x); } 32778: 32778: 32778: 32778: constexpr float 32778: lgamma(float __x) 32778: { return __builtin_lgammaf(__x); } 32778: 32778: constexpr long double 32778: lgamma(long double __x) 32778: { return __builtin_lgammal(__x); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: lgamma(_Tp __x) 32778: { return __builtin_lgamma(__x); } 32778: 32778: 32778: 32778: constexpr long long 32778: llrint(float __x) 32778: { return __builtin_llrintf(__x); } 32778: 32778: constexpr long long 32778: llrint(long double __x) 32778: { return __builtin_llrintl(__x); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: long long>::__type 32778: llrint(_Tp __x) 32778: { return __builtin_llrint(__x); } 32778: 32778: 32778: 32778: constexpr long long 32778: llround(float __x) 32778: { return __builtin_llroundf(__x); } 32778: 32778: constexpr long long 32778: llround(long double __x) 32778: { return __builtin_llroundl(__x); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: long long>::__type 32778: llround(_Tp __x) 32778: { return __builtin_llround(__x); } 32778: 32778: 32778: 32778: constexpr float 32778: log1p(float __x) 32778: { return __builtin_log1pf(__x); } 32778: 32778: constexpr long double 32778: log1p(long double __x) 32778: { return __builtin_log1pl(__x); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: log1p(_Tp __x) 32778: { return __builtin_log1p(__x); } 32778: 32778: 32778: 32778: 32778: constexpr float 32778: log2(float __x) 32778: { return __builtin_log2f(__x); } 32778: 32778: constexpr long double 32778: log2(long double __x) 32778: { return __builtin_log2l(__x); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: log2(_Tp __x) 32778: { return __builtin_log2(__x); } 32778: 32778: 32778: 32778: constexpr float 32778: logb(float __x) 32778: { return __builtin_logbf(__x); } 32778: 32778: constexpr long double 32778: logb(long double __x) 32778: { return __builtin_logbl(__x); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: logb(_Tp __x) 32778: { return __builtin_logb(__x); } 32778: 32778: 32778: 32778: constexpr long 32778: lrint(float __x) 32778: { return __builtin_lrintf(__x); } 32778: 32778: constexpr long 32778: lrint(long double __x) 32778: { return __builtin_lrintl(__x); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: long>::__type 32778: lrint(_Tp __x) 32778: { return __builtin_lrint(__x); } 32778: 32778: 32778: 32778: constexpr long 32778: lround(float __x) 32778: { return __builtin_lroundf(__x); } 32778: 32778: constexpr long 32778: lround(long double __x) 32778: { return __builtin_lroundl(__x); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: long>::__type 32778: lround(_Tp __x) 32778: { return __builtin_lround(__x); } 32778: 32778: 32778: 32778: constexpr float 32778: nearbyint(float __x) 32778: { return __builtin_nearbyintf(__x); } 32778: 32778: constexpr long double 32778: nearbyint(long double __x) 32778: { return __builtin_nearbyintl(__x); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: nearbyint(_Tp __x) 32778: { return __builtin_nearbyint(__x); } 32778: 32778: 32778: 32778: constexpr float 32778: nextafter(float __x, float __y) 32778: { return __builtin_nextafterf(__x, __y); } 32778: 32778: constexpr long double 32778: nextafter(long double __x, long double __y) 32778: { return __builtin_nextafterl(__x, __y); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 32778: nextafter(_Tp __x, _Up __y) 32778: { 32778: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 32778: return nextafter(__type(__x), __type(__y)); 32778: } 32778: 32778: 32778: 32778: constexpr float 32778: nexttoward(float __x, long double __y) 32778: { return __builtin_nexttowardf(__x, __y); } 32778: 32778: constexpr long double 32778: nexttoward(long double __x, long double __y) 32778: { return __builtin_nexttowardl(__x, __y); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: nexttoward(_Tp __x, long double __y) 32778: { return __builtin_nexttoward(__x, __y); } 32778: 32778: 32778: 32778: constexpr float 32778: remainder(float __x, float __y) 32778: { return __builtin_remainderf(__x, __y); } 32778: 32778: constexpr long double 32778: remainder(long double __x, long double __y) 32778: { return __builtin_remainderl(__x, __y); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 32778: remainder(_Tp __x, _Up __y) 32778: { 32778: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 32778: return remainder(__type(__x), __type(__y)); 32778: } 32778: 32778: 32778: 32778: inline float 32778: remquo(float __x, float __y, int* __pquo) 32778: { return __builtin_remquof(__x, __y, __pquo); } 32778: 32778: inline long double 32778: remquo(long double __x, long double __y, int* __pquo) 32778: { return __builtin_remquol(__x, __y, __pquo); } 32778: 32778: 32778: 32778: template 32778: inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 32778: remquo(_Tp __x, _Up __y, int* __pquo) 32778: { 32778: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 32778: return remquo(__type(__x), __type(__y), __pquo); 32778: } 32778: 32778: 32778: 32778: constexpr float 32778: rint(float __x) 32778: { return __builtin_rintf(__x); } 32778: 32778: constexpr long double 32778: rint(long double __x) 32778: { return __builtin_rintl(__x); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: rint(_Tp __x) 32778: { return __builtin_rint(__x); } 32778: 32778: 32778: 32778: constexpr float 32778: round(float __x) 32778: { return __builtin_roundf(__x); } 32778: 32778: constexpr long double 32778: round(long double __x) 32778: { return __builtin_roundl(__x); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: round(_Tp __x) 32778: { return __builtin_round(__x); } 32778: 32778: 32778: 32778: constexpr float 32778: scalbln(float __x, long __ex) 32778: { return __builtin_scalblnf(__x, __ex); } 32778: 32778: constexpr long double 32778: scalbln(long double __x, long __ex) 32778: { return __builtin_scalblnl(__x, __ex); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: scalbln(_Tp __x, long __ex) 32778: { return __builtin_scalbln(__x, __ex); } 32778: 32778: 32778: 32778: constexpr float 32778: scalbn(float __x, int __ex) 32778: { return __builtin_scalbnf(__x, __ex); } 32778: 32778: constexpr long double 32778: scalbn(long double __x, int __ex) 32778: { return __builtin_scalbnl(__x, __ex); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: scalbn(_Tp __x, int __ex) 32778: { return __builtin_scalbn(__x, __ex); } 32778: 32778: 32778: 32778: constexpr float 32778: tgamma(float __x) 32778: { return __builtin_tgammaf(__x); } 32778: 32778: constexpr long double 32778: tgamma(long double __x) 32778: { return __builtin_tgammal(__x); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: tgamma(_Tp __x) 32778: { return __builtin_tgamma(__x); } 32778: 32778: 32778: 32778: constexpr float 32778: trunc(float __x) 32778: { return __builtin_truncf(__x); } 32778: 32778: constexpr long double 32778: trunc(long double __x) 32778: { return __builtin_truncl(__x); } 32778: 32778: 32778: 32778: template 32778: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 32778: double>::__type 32778: trunc(_Tp __x) 32778: { return __builtin_trunc(__x); } 32778: # 1923 "/usr/include/c++/9/cmath" 3 32778: 32778: } 32778: 32778: 32778: 32778: 32778: 32778: } 32778: # 13 "/<>/include/HepMC3/FourVector.h" 2 32778: 32778: 32778: 32778: 32778: 32778: # 17 "/<>/include/HepMC3/FourVector.h" 32778: namespace HepMC3 { 32778: # 35 "/<>/include/HepMC3/FourVector.h" 32778: class FourVector { 32778: public: 32778: 32778: 32778: FourVector() 32778: : m_v1(0.0), m_v2(0.0), m_v3(0.0), m_v4(0.0) {} 32778: 32778: FourVector(double xx, double yy, double zz, double ee) 32778: : m_v1(xx), m_v2(yy), m_v3(zz), m_v4(ee) {} 32778: 32778: FourVector(const FourVector & v) 32778: : m_v1(v.m_v1), m_v2(v.m_v2), m_v3(v.m_v3), m_v4(v.m_v4) {} 32778: 32778: 32778: 32778: 32778: 32778: 32778: void set(double x1, double x2, double x3, double x4) { 32778: m_v1 = x1; 32778: m_v2 = x2; 32778: m_v3 = x3; 32778: m_v4 = x4; 32778: } 32778: 32778: 32778: 32778: double x() const { return m_v1; } 32778: 32778: void set_x(double xx) { m_v1 = xx; } 32778: 32778: void setX(double xx) { set_x(xx); } 32778: 32778: 32778: double y() const { return m_v2; } 32778: 32778: void set_y(double yy) { m_v2 = yy; } 32778: 32778: void setY(double yy) { set_y(yy); } 32778: 32778: 32778: double z() const { return m_v3; } 32778: 32778: void set_z(double zz) { m_v3 = zz; } 32778: 32778: void setZ(double zz) { set_z(zz); } 32778: 32778: 32778: double t() const { return m_v4; } 32778: 32778: void set_t(double tt) { m_v4 = tt; } 32778: 32778: void setT(double tt) { set_t(tt); } 32778: 32778: 32778: 32778: double px() const { return x(); } 32778: 32778: void set_px(double pxx) { set_x(pxx); } 32778: 32778: void setPx(double pxx) { set_px(pxx); } 32778: 32778: 32778: double py() const { return y(); } 32778: 32778: void set_py(double pyy) { set_y(pyy); } 32778: 32778: void setPy(double pyy) { set_py(pyy); } 32778: 32778: 32778: double pz() const { return z(); } 32778: 32778: void set_pz(double pzz) { set_z(pzz); } 32778: 32778: void setPz(double pzz) { set_pz(pzz); } 32778: 32778: 32778: double e() const { return t(); } 32778: 32778: void set_e(double ee ) { this->set_t(ee); } 32778: 32778: void setE(double ee) { set_e(ee); } 32778: # 125 "/<>/include/HepMC3/FourVector.h" 32778: double length2() const { return x()*x() + y()*y() + z()*z(); } 32778: 32778: double length() const { return sqrt(length2()); } 32778: 32778: double perp2() const { return x()*x() + y()*y(); } 32778: 32778: double perp() const { return sqrt(perp2()); } 32778: 32778: double interval() const { return t()*t() - length2(); } 32778: 32778: 32778: double p3mod2() const { return length2(); } 32778: 32778: double p3mod() const { return length(); } 32778: 32778: double pt2() const { return perp2(); } 32778: 32778: double pt() const { return perp(); } 32778: 32778: double m2() const { return interval(); } 32778: 32778: double m() const { return (m2() > 0.0) ? std::sqrt(m2()) : -std::sqrt(-m2()); } 32778: 32778: 32778: double phi() const { return atan2( y(), x() ); } 32778: 32778: double theta() const { return atan2( perp(), z() ); } 32778: 32778: 32778: 32778: double eta() const { return 0.5*std::log( (p3mod() + pz()) / (p3mod() - pz()) ); } 32778: 32778: double rap() const { return 0.5*std::log( (e() + pz()) / (e() - pz()) ); } 32778: 32778: double abs_eta() const { return std::abs( eta() ); } 32778: 32778: double abs_rap() const { return std::abs( rap() ); } 32778: 32778: 32778: 32778: double pseudoRapidity() const { return eta(); } 32778: # 174 "/<>/include/HepMC3/FourVector.h" 32778: bool is_zero() const { return x() == 0 && y() == 0 && z() == 0 && t() == 0; } 32778: 32778: 32778: double delta_phi(const FourVector &v) const { 32778: double dphi = phi() - v.phi(); 32778: if (dphi != dphi) return dphi; 32778: while (dphi >= 32778: # 180 "/<>/include/HepMC3/FourVector.h" 3 4 32778: 3.14159265358979323846 32778: # 180 "/<>/include/HepMC3/FourVector.h" 32778: ) dphi -= 2.* 32778: # 180 "/<>/include/HepMC3/FourVector.h" 3 4 32778: 3.14159265358979323846 32778: # 180 "/<>/include/HepMC3/FourVector.h" 32778: ; 32778: while (dphi < - 32778: # 181 "/<>/include/HepMC3/FourVector.h" 3 4 32778: 3.14159265358979323846 32778: # 181 "/<>/include/HepMC3/FourVector.h" 32778: ) dphi += 2.* 32778: # 181 "/<>/include/HepMC3/FourVector.h" 3 4 32778: 3.14159265358979323846 32778: # 181 "/<>/include/HepMC3/FourVector.h" 32778: ; 32778: return dphi; 32778: } 32778: 32778: 32778: double delta_eta(const FourVector &v) const { return eta() - v.eta(); } 32778: 32778: 32778: double delta_rap(const FourVector &v) const { return rap() - v.rap(); } 32778: 32778: 32778: double delta_r2_eta(const FourVector &v) const { 32778: return delta_phi(v)*delta_phi(v) + delta_eta(v)*delta_eta(v); 32778: } 32778: 32778: 32778: double delta_r_eta(const FourVector &v) const { 32778: return sqrt( delta_r2_eta(v) ); 32778: } 32778: 32778: 32778: double delta_r2_rap(const FourVector &v) const { 32778: return delta_phi(v)*delta_phi(v) + delta_rap(v)*delta_rap(v); 32778: } 32778: 32778: 32778: double delta_r_rap(const FourVector &v) const { 32778: return sqrt( delta_r2_rap(v) ); 32778: } 32778: # 218 "/<>/include/HepMC3/FourVector.h" 32778: bool operator==(const FourVector& rhs) const { 32778: return x() == rhs.x() && y() == rhs.y() && z() == rhs.z() && t() == rhs.t(); 32778: } 32778: 32778: bool operator!=(const FourVector& rhs) const { return !(*this == rhs); } 32778: 32778: 32778: FourVector operator+ (const FourVector& rhs) const { 32778: return FourVector( x() + rhs.x(), y() + rhs.y(), z() + rhs.z(), t() + rhs.t() ); 32778: } 32778: 32778: FourVector operator- (const FourVector& rhs) const { 32778: return FourVector( x() - rhs.x(), y() - rhs.y(), z() - rhs.z(), t() - rhs.t() ); 32778: } 32778: 32778: FourVector operator* (const double rhs) const { 32778: return FourVector( x()*rhs, y()*rhs, z()*rhs, t()*rhs ); 32778: } 32778: 32778: FourVector operator/ (const double rhs) const { 32778: return FourVector( x()/rhs, y()/rhs, z()/rhs, t()/rhs ); 32778: } 32778: 32778: 32778: void operator += (const FourVector& rhs) { 32778: setX(x() + rhs.x()); 32778: setY(y() + rhs.y()); 32778: setZ(z() + rhs.z()); 32778: setT(t() + rhs.t()); 32778: } 32778: 32778: void operator -= (const FourVector& rhs) { 32778: setX(x() - rhs.x()); 32778: setY(y() - rhs.y()); 32778: setZ(z() - rhs.z()); 32778: setT(t() - rhs.t()); 32778: } 32778: 32778: void operator *= (const double rhs) { 32778: setX(x()*rhs); 32778: setY(y()*rhs); 32778: setZ(z()*rhs); 32778: setT(t()*rhs); 32778: } 32778: 32778: void operator /= (const double rhs) { 32778: setX(x()/rhs); 32778: setY(y()/rhs); 32778: setZ(z()/rhs); 32778: setT(t()/rhs); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: static const FourVector& ZERO_VECTOR() { 32778: static const FourVector v; 32778: return v; 32778: } 32778: 32778: 32778: private: 32778: 32778: double m_v1; 32778: double m_v2; 32778: double m_v3; 32778: double m_v4; 32778: 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: inline double delta_phi(const FourVector &a, const FourVector &b) { return b.delta_phi(a); } 32778: 32778: 32778: inline double delta_eta(const FourVector &a, const FourVector &b) { return b.delta_eta(a); } 32778: 32778: 32778: inline double delta_rap(const FourVector &a, const FourVector &b) { return b.delta_rap(a); } 32778: 32778: 32778: inline double delta_r2_eta(const FourVector &a, const FourVector &b) { return b.delta_r2_eta(a); } 32778: 32778: 32778: inline double delta_r_eta(const FourVector &a, const FourVector &b) { return b.delta_r_eta(a); } 32778: 32778: 32778: inline double delta_r2_rap(const FourVector &a, const FourVector &b) { return b.delta_r2_rap(a); } 32778: 32778: 32778: inline double delta_r_rap(const FourVector &a, const FourVector &b) { return b.delta_r_rap(a); } 32778: 32778: 32778: 32778: 32778: } 32778: # 19 "/<>/include/HepMC3/Data/GenParticleData.h" 2 32778: 32778: namespace HepMC3 { 32778: 32778: 32778: 32778: struct GenParticleData { 32778: int pid; 32778: int status; 32778: bool is_mass_set; 32778: double mass; 32778: FourVector momentum; 32778: }; 32778: 32778: } 32778: # 18 "/<>/include/HepMC3/GenParticle.h" 2 32778: 32778: 32778: # 1 "/<>/include/HepMC3/GenParticle_fwd.h" 1 32778: # 14 "/<>/include/HepMC3/GenParticle_fwd.h" 32778: # 1 "/usr/include/c++/9/memory" 1 3 32778: # 46 "/usr/include/c++/9/memory" 3 32778: 32778: # 47 "/usr/include/c++/9/memory" 3 32778: # 64 "/usr/include/c++/9/memory" 3 32778: # 1 "/usr/include/c++/9/bits/stl_construct.h" 1 3 32778: # 63 "/usr/include/c++/9/bits/stl_construct.h" 3 32778: 32778: # 63 "/usr/include/c++/9/bits/stl_construct.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline void 32778: _Construct(_T1* __p, _Args&&... __args) 32778: { ::new(static_cast(__p)) _T1(std::forward<_Args>(__args)...); } 32778: # 87 "/usr/include/c++/9/bits/stl_construct.h" 3 32778: template 32778: inline void 32778: _Construct_novalue(_T1* __p) 32778: { ::new(static_cast(__p)) _T1; } 32778: 32778: 32778: 32778: 32778: template 32778: inline void 32778: _Destroy(_Tp* __pointer) 32778: { __pointer->~_Tp(); } 32778: 32778: template 32778: struct _Destroy_aux 32778: { 32778: template 32778: static void 32778: __destroy(_ForwardIterator __first, _ForwardIterator __last) 32778: { 32778: for (; __first != __last; ++__first) 32778: std::_Destroy(std::__addressof(*__first)); 32778: } 32778: }; 32778: 32778: template<> 32778: struct _Destroy_aux 32778: { 32778: template 32778: static void 32778: __destroy(_ForwardIterator, _ForwardIterator) { } 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline void 32778: _Destroy(_ForwardIterator __first, _ForwardIterator __last) 32778: { 32778: typedef typename iterator_traits<_ForwardIterator>::value_type 32778: _Value_type; 32778: 32778: 32778: static_assert(is_destructible<_Value_type>::value, 32778: "value type is destructible"); 32778: 32778: std::_Destroy_aux<__has_trivial_destructor(_Value_type)>:: 32778: __destroy(__first, __last); 32778: } 32778: 32778: template 32778: struct _Destroy_n_aux 32778: { 32778: template 32778: static _ForwardIterator 32778: __destroy_n(_ForwardIterator __first, _Size __count) 32778: { 32778: for (; __count > 0; (void)++__first, --__count) 32778: std::_Destroy(std::__addressof(*__first)); 32778: return __first; 32778: } 32778: }; 32778: 32778: template<> 32778: struct _Destroy_n_aux 32778: { 32778: template 32778: static _ForwardIterator 32778: __destroy_n(_ForwardIterator __first, _Size __count) 32778: { 32778: std::advance(__first, __count); 32778: return __first; 32778: } 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline _ForwardIterator 32778: _Destroy_n(_ForwardIterator __first, _Size __count) 32778: { 32778: typedef typename iterator_traits<_ForwardIterator>::value_type 32778: _Value_type; 32778: 32778: 32778: static_assert(is_destructible<_Value_type>::value, 32778: "value type is destructible"); 32778: 32778: return std::_Destroy_n_aux<__has_trivial_destructor(_Value_type)>:: 32778: __destroy_n(__first, __count); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: void 32778: _Destroy(_ForwardIterator __first, _ForwardIterator __last, 32778: _Allocator& __alloc) 32778: { 32778: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 32778: for (; __first != __last; ++__first) 32778: __traits::destroy(__alloc, std::__addressof(*__first)); 32778: } 32778: 32778: template 32778: inline void 32778: _Destroy(_ForwardIterator __first, _ForwardIterator __last, 32778: allocator<_Tp>&) 32778: { 32778: _Destroy(__first, __last); 32778: } 32778: # 232 "/usr/include/c++/9/bits/stl_construct.h" 3 32778: 32778: } 32778: # 65 "/usr/include/c++/9/memory" 2 3 32778: # 1 "/usr/include/c++/9/bits/stl_uninitialized.h" 1 3 32778: # 67 "/usr/include/c++/9/bits/stl_uninitialized.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: template 32778: struct __uninitialized_copy 32778: { 32778: template 32778: static _ForwardIterator 32778: __uninit_copy(_InputIterator __first, _InputIterator __last, 32778: _ForwardIterator __result) 32778: { 32778: _ForwardIterator __cur = __result; 32778: try 32778: { 32778: for (; __first != __last; ++__first, (void)++__cur) 32778: std::_Construct(std::__addressof(*__cur), *__first); 32778: return __cur; 32778: } 32778: catch(...) 32778: { 32778: std::_Destroy(__result, __cur); 32778: throw; 32778: } 32778: } 32778: }; 32778: 32778: template<> 32778: struct __uninitialized_copy 32778: { 32778: template 32778: static _ForwardIterator 32778: __uninit_copy(_InputIterator __first, _InputIterator __last, 32778: _ForwardIterator __result) 32778: { return std::copy(__first, __last, __result); } 32778: }; 32778: # 113 "/usr/include/c++/9/bits/stl_uninitialized.h" 3 32778: template 32778: inline _ForwardIterator 32778: uninitialized_copy(_InputIterator __first, _InputIterator __last, 32778: _ForwardIterator __result) 32778: { 32778: typedef typename iterator_traits<_InputIterator>::value_type 32778: _ValueType1; 32778: typedef typename iterator_traits<_ForwardIterator>::value_type 32778: _ValueType2; 32778: 32778: 32778: 32778: 32778: 32778: static_assert(is_constructible<_ValueType2, decltype(*__first)>::value, 32778: "result type must be constructible from value type of input range"); 32778: 32778: typedef typename iterator_traits<_InputIterator>::reference _RefType1; 32778: typedef typename iterator_traits<_ForwardIterator>::reference _RefType2; 32778: 32778: 32778: const bool __assignable = is_assignable<_RefType2, _RefType1>::value; 32778: 32778: 32778: return std::__uninitialized_copy<__is_trivial(_ValueType1) 32778: && __is_trivial(_ValueType2) 32778: && __assignable>:: 32778: __uninit_copy(__first, __last, __result); 32778: } 32778: 32778: 32778: template 32778: struct __uninitialized_fill 32778: { 32778: template 32778: static void 32778: __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 32778: const _Tp& __x) 32778: { 32778: _ForwardIterator __cur = __first; 32778: try 32778: { 32778: for (; __cur != __last; ++__cur) 32778: std::_Construct(std::__addressof(*__cur), __x); 32778: } 32778: catch(...) 32778: { 32778: std::_Destroy(__first, __cur); 32778: throw; 32778: } 32778: } 32778: }; 32778: 32778: template<> 32778: struct __uninitialized_fill 32778: { 32778: template 32778: static void 32778: __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 32778: const _Tp& __x) 32778: { std::fill(__first, __last, __x); } 32778: }; 32778: # 185 "/usr/include/c++/9/bits/stl_uninitialized.h" 3 32778: template 32778: inline void 32778: uninitialized_fill(_ForwardIterator __first, _ForwardIterator __last, 32778: const _Tp& __x) 32778: { 32778: typedef typename iterator_traits<_ForwardIterator>::value_type 32778: _ValueType; 32778: 32778: 32778: 32778: 32778: 32778: static_assert(is_constructible<_ValueType, const _Tp&>::value, 32778: "result type must be constructible from input type"); 32778: 32778: 32778: 32778: const bool __assignable = is_copy_assignable<_ValueType>::value; 32778: 32778: 32778: std::__uninitialized_fill<__is_trivial(_ValueType) && __assignable>:: 32778: __uninit_fill(__first, __last, __x); 32778: } 32778: 32778: 32778: template 32778: struct __uninitialized_fill_n 32778: { 32778: template 32778: static _ForwardIterator 32778: __uninit_fill_n(_ForwardIterator __first, _Size __n, 32778: const _Tp& __x) 32778: { 32778: _ForwardIterator __cur = __first; 32778: try 32778: { 32778: for (; __n > 0; --__n, (void) ++__cur) 32778: std::_Construct(std::__addressof(*__cur), __x); 32778: return __cur; 32778: } 32778: catch(...) 32778: { 32778: std::_Destroy(__first, __cur); 32778: throw; 32778: } 32778: } 32778: }; 32778: 32778: template<> 32778: struct __uninitialized_fill_n 32778: { 32778: template 32778: static _ForwardIterator 32778: __uninit_fill_n(_ForwardIterator __first, _Size __n, 32778: const _Tp& __x) 32778: { return std::fill_n(__first, __n, __x); } 32778: }; 32778: # 254 "/usr/include/c++/9/bits/stl_uninitialized.h" 3 32778: template 32778: inline _ForwardIterator 32778: uninitialized_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) 32778: { 32778: typedef typename iterator_traits<_ForwardIterator>::value_type 32778: _ValueType; 32778: 32778: 32778: 32778: 32778: 32778: static_assert(is_constructible<_ValueType, const _Tp&>::value, 32778: "result type must be constructible from input type"); 32778: 32778: 32778: 32778: const bool __assignable = is_copy_assignable<_ValueType>::value; 32778: 32778: return __uninitialized_fill_n<__is_trivial(_ValueType) && __assignable>:: 32778: __uninit_fill_n(__first, __n, __x); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: _ForwardIterator 32778: __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, 32778: _ForwardIterator __result, _Allocator& __alloc) 32778: { 32778: _ForwardIterator __cur = __result; 32778: try 32778: { 32778: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 32778: for (; __first != __last; ++__first, (void)++__cur) 32778: __traits::construct(__alloc, std::__addressof(*__cur), *__first); 32778: return __cur; 32778: } 32778: catch(...) 32778: { 32778: std::_Destroy(__result, __cur, __alloc); 32778: throw; 32778: } 32778: } 32778: 32778: template 32778: inline _ForwardIterator 32778: __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, 32778: _ForwardIterator __result, allocator<_Tp>&) 32778: { return std::uninitialized_copy(__first, __last, __result); } 32778: 32778: template 32778: inline _ForwardIterator 32778: __uninitialized_move_a(_InputIterator __first, _InputIterator __last, 32778: _ForwardIterator __result, _Allocator& __alloc) 32778: { 32778: return std::__uninitialized_copy_a(std::make_move_iterator(__first), 32778: std::make_move_iterator(__last), 32778: __result, __alloc); 32778: } 32778: 32778: template 32778: inline _ForwardIterator 32778: __uninitialized_move_if_noexcept_a(_InputIterator __first, 32778: _InputIterator __last, 32778: _ForwardIterator __result, 32778: _Allocator& __alloc) 32778: { 32778: return std::__uninitialized_copy_a 32778: (std::__make_move_if_noexcept_iterator(__first), 32778: std::__make_move_if_noexcept_iterator(__last), __result, __alloc); 32778: } 32778: 32778: template 32778: void 32778: __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, 32778: const _Tp& __x, _Allocator& __alloc) 32778: { 32778: _ForwardIterator __cur = __first; 32778: try 32778: { 32778: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 32778: for (; __cur != __last; ++__cur) 32778: __traits::construct(__alloc, std::__addressof(*__cur), __x); 32778: } 32778: catch(...) 32778: { 32778: std::_Destroy(__first, __cur, __alloc); 32778: throw; 32778: } 32778: } 32778: 32778: template 32778: inline void 32778: __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, 32778: const _Tp& __x, allocator<_Tp2>&) 32778: { std::uninitialized_fill(__first, __last, __x); } 32778: 32778: template 32778: _ForwardIterator 32778: __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, 32778: const _Tp& __x, _Allocator& __alloc) 32778: { 32778: _ForwardIterator __cur = __first; 32778: try 32778: { 32778: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 32778: for (; __n > 0; --__n, (void) ++__cur) 32778: __traits::construct(__alloc, std::__addressof(*__cur), __x); 32778: return __cur; 32778: } 32778: catch(...) 32778: { 32778: std::_Destroy(__first, __cur, __alloc); 32778: throw; 32778: } 32778: } 32778: 32778: template 32778: inline _ForwardIterator 32778: __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, 32778: const _Tp& __x, allocator<_Tp2>&) 32778: { return std::uninitialized_fill_n(__first, __n, __x); } 32778: # 396 "/usr/include/c++/9/bits/stl_uninitialized.h" 3 32778: template 32778: inline _ForwardIterator 32778: __uninitialized_copy_move(_InputIterator1 __first1, 32778: _InputIterator1 __last1, 32778: _InputIterator2 __first2, 32778: _InputIterator2 __last2, 32778: _ForwardIterator __result, 32778: _Allocator& __alloc) 32778: { 32778: _ForwardIterator __mid = std::__uninitialized_copy_a(__first1, __last1, 32778: __result, 32778: __alloc); 32778: try 32778: { 32778: return std::__uninitialized_move_a(__first2, __last2, __mid, __alloc); 32778: } 32778: catch(...) 32778: { 32778: std::_Destroy(__result, __mid, __alloc); 32778: throw; 32778: } 32778: } 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline _ForwardIterator 32778: __uninitialized_move_copy(_InputIterator1 __first1, 32778: _InputIterator1 __last1, 32778: _InputIterator2 __first2, 32778: _InputIterator2 __last2, 32778: _ForwardIterator __result, 32778: _Allocator& __alloc) 32778: { 32778: _ForwardIterator __mid = std::__uninitialized_move_a(__first1, __last1, 32778: __result, 32778: __alloc); 32778: try 32778: { 32778: return std::__uninitialized_copy_a(__first2, __last2, __mid, __alloc); 32778: } 32778: catch(...) 32778: { 32778: std::_Destroy(__result, __mid, __alloc); 32778: throw; 32778: } 32778: } 32778: 32778: 32778: 32778: 32778: template 32778: inline _ForwardIterator 32778: __uninitialized_fill_move(_ForwardIterator __result, _ForwardIterator __mid, 32778: const _Tp& __x, _InputIterator __first, 32778: _InputIterator __last, _Allocator& __alloc) 32778: { 32778: std::__uninitialized_fill_a(__result, __mid, __x, __alloc); 32778: try 32778: { 32778: return std::__uninitialized_move_a(__first, __last, __mid, __alloc); 32778: } 32778: catch(...) 32778: { 32778: std::_Destroy(__result, __mid, __alloc); 32778: throw; 32778: } 32778: } 32778: 32778: 32778: 32778: 32778: template 32778: inline void 32778: __uninitialized_move_fill(_InputIterator __first1, _InputIterator __last1, 32778: _ForwardIterator __first2, 32778: _ForwardIterator __last2, const _Tp& __x, 32778: _Allocator& __alloc) 32778: { 32778: _ForwardIterator __mid2 = std::__uninitialized_move_a(__first1, __last1, 32778: __first2, 32778: __alloc); 32778: try 32778: { 32778: std::__uninitialized_fill_a(__mid2, __last2, __x, __alloc); 32778: } 32778: catch(...) 32778: { 32778: std::_Destroy(__first2, __mid2, __alloc); 32778: throw; 32778: } 32778: } 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct __uninitialized_default_1 32778: { 32778: template 32778: static void 32778: __uninit_default(_ForwardIterator __first, _ForwardIterator __last) 32778: { 32778: _ForwardIterator __cur = __first; 32778: try 32778: { 32778: for (; __cur != __last; ++__cur) 32778: std::_Construct(std::__addressof(*__cur)); 32778: } 32778: catch(...) 32778: { 32778: std::_Destroy(__first, __cur); 32778: throw; 32778: } 32778: } 32778: }; 32778: 32778: template<> 32778: struct __uninitialized_default_1 32778: { 32778: template 32778: static void 32778: __uninit_default(_ForwardIterator __first, _ForwardIterator __last) 32778: { 32778: typedef typename iterator_traits<_ForwardIterator>::value_type 32778: _ValueType; 32778: 32778: std::fill(__first, __last, _ValueType()); 32778: } 32778: }; 32778: 32778: template 32778: struct __uninitialized_default_n_1 32778: { 32778: template 32778: static _ForwardIterator 32778: __uninit_default_n(_ForwardIterator __first, _Size __n) 32778: { 32778: _ForwardIterator __cur = __first; 32778: try 32778: { 32778: for (; __n > 0; --__n, (void) ++__cur) 32778: std::_Construct(std::__addressof(*__cur)); 32778: return __cur; 32778: } 32778: catch(...) 32778: { 32778: std::_Destroy(__first, __cur); 32778: throw; 32778: } 32778: } 32778: }; 32778: 32778: template<> 32778: struct __uninitialized_default_n_1 32778: { 32778: template 32778: static _ForwardIterator 32778: __uninit_default_n(_ForwardIterator __first, _Size __n) 32778: { 32778: typedef typename iterator_traits<_ForwardIterator>::value_type 32778: _ValueType; 32778: 32778: return std::fill_n(__first, __n, _ValueType()); 32778: } 32778: }; 32778: 32778: 32778: 32778: 32778: template 32778: inline void 32778: __uninitialized_default(_ForwardIterator __first, 32778: _ForwardIterator __last) 32778: { 32778: typedef typename iterator_traits<_ForwardIterator>::value_type 32778: _ValueType; 32778: 32778: const bool __assignable = is_copy_assignable<_ValueType>::value; 32778: 32778: std::__uninitialized_default_1<__is_trivial(_ValueType) 32778: && __assignable>:: 32778: __uninit_default(__first, __last); 32778: } 32778: 32778: 32778: 32778: template 32778: inline _ForwardIterator 32778: __uninitialized_default_n(_ForwardIterator __first, _Size __n) 32778: { 32778: typedef typename iterator_traits<_ForwardIterator>::value_type 32778: _ValueType; 32778: 32778: const bool __assignable = is_copy_assignable<_ValueType>::value; 32778: 32778: return __uninitialized_default_n_1<__is_trivial(_ValueType) 32778: && __assignable>:: 32778: __uninit_default_n(__first, __n); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: template 32778: void 32778: __uninitialized_default_a(_ForwardIterator __first, 32778: _ForwardIterator __last, 32778: _Allocator& __alloc) 32778: { 32778: _ForwardIterator __cur = __first; 32778: try 32778: { 32778: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 32778: for (; __cur != __last; ++__cur) 32778: __traits::construct(__alloc, std::__addressof(*__cur)); 32778: } 32778: catch(...) 32778: { 32778: std::_Destroy(__first, __cur, __alloc); 32778: throw; 32778: } 32778: } 32778: 32778: template 32778: inline void 32778: __uninitialized_default_a(_ForwardIterator __first, 32778: _ForwardIterator __last, 32778: allocator<_Tp>&) 32778: { std::__uninitialized_default(__first, __last); } 32778: 32778: 32778: 32778: 32778: 32778: template 32778: _ForwardIterator 32778: __uninitialized_default_n_a(_ForwardIterator __first, _Size __n, 32778: _Allocator& __alloc) 32778: { 32778: _ForwardIterator __cur = __first; 32778: try 32778: { 32778: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 32778: for (; __n > 0; --__n, (void) ++__cur) 32778: __traits::construct(__alloc, std::__addressof(*__cur)); 32778: return __cur; 32778: } 32778: catch(...) 32778: { 32778: std::_Destroy(__first, __cur, __alloc); 32778: throw; 32778: } 32778: } 32778: 32778: template 32778: inline _ForwardIterator 32778: __uninitialized_default_n_a(_ForwardIterator __first, _Size __n, 32778: allocator<_Tp>&) 32778: { return std::__uninitialized_default_n(__first, __n); } 32778: 32778: template 32778: struct __uninitialized_default_novalue_1 32778: { 32778: template 32778: static void 32778: __uninit_default_novalue(_ForwardIterator __first, 32778: _ForwardIterator __last) 32778: { 32778: _ForwardIterator __cur = __first; 32778: try 32778: { 32778: for (; __cur != __last; ++__cur) 32778: std::_Construct_novalue(std::__addressof(*__cur)); 32778: } 32778: catch(...) 32778: { 32778: std::_Destroy(__first, __cur); 32778: throw; 32778: } 32778: } 32778: }; 32778: 32778: template<> 32778: struct __uninitialized_default_novalue_1 32778: { 32778: template 32778: static void 32778: __uninit_default_novalue(_ForwardIterator __first, 32778: _ForwardIterator __last) 32778: { 32778: } 32778: }; 32778: 32778: template 32778: struct __uninitialized_default_novalue_n_1 32778: { 32778: template 32778: static _ForwardIterator 32778: __uninit_default_novalue_n(_ForwardIterator __first, _Size __n) 32778: { 32778: _ForwardIterator __cur = __first; 32778: try 32778: { 32778: for (; __n > 0; --__n, (void) ++__cur) 32778: std::_Construct_novalue(std::__addressof(*__cur)); 32778: return __cur; 32778: } 32778: catch(...) 32778: { 32778: std::_Destroy(__first, __cur); 32778: throw; 32778: } 32778: } 32778: }; 32778: 32778: template<> 32778: struct __uninitialized_default_novalue_n_1 32778: { 32778: template 32778: static _ForwardIterator 32778: __uninit_default_novalue_n(_ForwardIterator __first, _Size __n) 32778: { return std::next(__first, __n); } 32778: }; 32778: 32778: 32778: 32778: 32778: template 32778: inline void 32778: __uninitialized_default_novalue(_ForwardIterator __first, 32778: _ForwardIterator __last) 32778: { 32778: typedef typename iterator_traits<_ForwardIterator>::value_type 32778: _ValueType; 32778: 32778: std::__uninitialized_default_novalue_1< 32778: is_trivially_default_constructible<_ValueType>::value>:: 32778: __uninit_default_novalue(__first, __last); 32778: } 32778: 32778: 32778: 32778: template 32778: inline _ForwardIterator 32778: __uninitialized_default_novalue_n(_ForwardIterator __first, _Size __n) 32778: { 32778: typedef typename iterator_traits<_ForwardIterator>::value_type 32778: _ValueType; 32778: 32778: return __uninitialized_default_novalue_n_1< 32778: is_trivially_default_constructible<_ValueType>::value>:: 32778: __uninit_default_novalue_n(__first, __n); 32778: } 32778: 32778: template 32778: _ForwardIterator 32778: __uninitialized_copy_n(_InputIterator __first, _Size __n, 32778: _ForwardIterator __result, input_iterator_tag) 32778: { 32778: _ForwardIterator __cur = __result; 32778: try 32778: { 32778: for (; __n > 0; --__n, (void) ++__first, ++__cur) 32778: std::_Construct(std::__addressof(*__cur), *__first); 32778: return __cur; 32778: } 32778: catch(...) 32778: { 32778: std::_Destroy(__result, __cur); 32778: throw; 32778: } 32778: } 32778: 32778: template 32778: inline _ForwardIterator 32778: __uninitialized_copy_n(_RandomAccessIterator __first, _Size __n, 32778: _ForwardIterator __result, 32778: random_access_iterator_tag) 32778: { return std::uninitialized_copy(__first, __first + __n, __result); } 32778: 32778: template 32778: pair<_InputIterator, _ForwardIterator> 32778: __uninitialized_copy_n_pair(_InputIterator __first, _Size __n, 32778: _ForwardIterator __result, input_iterator_tag) 32778: { 32778: _ForwardIterator __cur = __result; 32778: try 32778: { 32778: for (; __n > 0; --__n, (void) ++__first, ++__cur) 32778: std::_Construct(std::__addressof(*__cur), *__first); 32778: return {__first, __cur}; 32778: } 32778: catch(...) 32778: { 32778: std::_Destroy(__result, __cur); 32778: throw; 32778: } 32778: } 32778: 32778: template 32778: inline pair<_RandomAccessIterator, _ForwardIterator> 32778: __uninitialized_copy_n_pair(_RandomAccessIterator __first, _Size __n, 32778: _ForwardIterator __result, 32778: random_access_iterator_tag) 32778: { 32778: auto __second_res = uninitialized_copy(__first, __first + __n, __result); 32778: auto __first_res = std::next(__first, __n); 32778: return {__first_res, __second_res}; 32778: } 32778: # 828 "/usr/include/c++/9/bits/stl_uninitialized.h" 3 32778: template 32778: inline _ForwardIterator 32778: uninitialized_copy_n(_InputIterator __first, _Size __n, 32778: _ForwardIterator __result) 32778: { return std::__uninitialized_copy_n(__first, __n, __result, 32778: std::__iterator_category(__first)); } 32778: 32778: template 32778: inline pair<_InputIterator, _ForwardIterator> 32778: __uninitialized_copy_n_pair(_InputIterator __first, _Size __n, 32778: _ForwardIterator __result) 32778: { 32778: return 32778: std::__uninitialized_copy_n_pair(__first, __n, __result, 32778: std::__iterator_category(__first)); 32778: } 32778: # 903 "/usr/include/c++/9/bits/stl_uninitialized.h" 3 32778: template 32778: inline void 32778: __relocate_object_a(_Tp* __dest, _Up* __orig, _Allocator& __alloc) 32778: noexcept(noexcept(std::allocator_traits<_Allocator>::construct(__alloc, 32778: __dest, std::move(*__orig))) 32778: && noexcept(std::allocator_traits<_Allocator>::destroy( 32778: __alloc, std::__addressof(*__orig)))) 32778: { 32778: typedef std::allocator_traits<_Allocator> __traits; 32778: __traits::construct(__alloc, __dest, std::move(*__orig)); 32778: __traits::destroy(__alloc, std::__addressof(*__orig)); 32778: } 32778: 32778: 32778: 32778: template 32778: struct __is_bitwise_relocatable 32778: : is_trivial<_Tp> { }; 32778: 32778: template 32778: inline __enable_if_t::value, _Tp*> 32778: __relocate_a_1(_Tp* __first, _Tp* __last, 32778: _Tp* __result, allocator<_Up>&) noexcept 32778: { 32778: ptrdiff_t __count = __last - __first; 32778: if (__count > 0) 32778: __builtin_memmove(__result, __first, __count * sizeof(_Tp)); 32778: return __result + __count; 32778: } 32778: 32778: template 32778: inline _ForwardIterator 32778: __relocate_a_1(_InputIterator __first, _InputIterator __last, 32778: _ForwardIterator __result, _Allocator& __alloc) 32778: noexcept(noexcept(std::__relocate_object_a(std::addressof(*__result), 32778: std::addressof(*__first), 32778: __alloc))) 32778: { 32778: typedef typename iterator_traits<_InputIterator>::value_type 32778: _ValueType; 32778: typedef typename iterator_traits<_ForwardIterator>::value_type 32778: _ValueType2; 32778: static_assert(std::is_same<_ValueType, _ValueType2>::value, 32778: "relocation is only possible for values of the same type"); 32778: _ForwardIterator __cur = __result; 32778: for (; __first != __last; ++__first, (void)++__cur) 32778: std::__relocate_object_a(std::__addressof(*__cur), 32778: std::__addressof(*__first), __alloc); 32778: return __cur; 32778: } 32778: 32778: template 32778: inline _ForwardIterator 32778: __relocate_a(_InputIterator __first, _InputIterator __last, 32778: _ForwardIterator __result, _Allocator& __alloc) 32778: noexcept(noexcept(__relocate_a_1(std::__niter_base(__first), 32778: std::__niter_base(__last), 32778: std::__niter_base(__result), __alloc))) 32778: { 32778: return __relocate_a_1(std::__niter_base(__first), 32778: std::__niter_base(__last), 32778: std::__niter_base(__result), __alloc); 32778: } 32778: 32778: 32778: 32778: } 32778: # 66 "/usr/include/c++/9/memory" 2 3 32778: # 1 "/usr/include/c++/9/bits/stl_tempbuf.h" 1 3 32778: # 62 "/usr/include/c++/9/bits/stl_tempbuf.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 83 "/usr/include/c++/9/bits/stl_tempbuf.h" 3 32778: template 32778: pair<_Tp*, ptrdiff_t> 32778: get_temporary_buffer(ptrdiff_t __len) noexcept 32778: { 32778: const ptrdiff_t __max = 32778: __gnu_cxx::__numeric_traits::__max / sizeof(_Tp); 32778: if (__len > __max) 32778: __len = __max; 32778: 32778: while (__len > 0) 32778: { 32778: _Tp* __tmp = static_cast<_Tp*>(::operator new(__len * sizeof(_Tp), 32778: std::nothrow)); 32778: if (__tmp != 0) 32778: return std::pair<_Tp*, ptrdiff_t>(__tmp, __len); 32778: __len /= 2; 32778: } 32778: return std::pair<_Tp*, ptrdiff_t>(static_cast<_Tp*>(0), 0); 32778: } 32778: # 110 "/usr/include/c++/9/bits/stl_tempbuf.h" 3 32778: template 32778: inline void 32778: return_temporary_buffer(_Tp* __p) 32778: { ::operator delete(__p); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: class _Temporary_buffer 32778: { 32778: 32778: 32778: 32778: public: 32778: typedef _Tp value_type; 32778: typedef value_type* pointer; 32778: typedef pointer iterator; 32778: typedef ptrdiff_t size_type; 32778: 32778: protected: 32778: size_type _M_original_len; 32778: size_type _M_len; 32778: pointer _M_buffer; 32778: 32778: public: 32778: 32778: size_type 32778: size() const 32778: { return _M_len; } 32778: 32778: 32778: size_type 32778: requested_size() const 32778: { return _M_original_len; } 32778: 32778: 32778: iterator 32778: begin() 32778: { return _M_buffer; } 32778: 32778: 32778: iterator 32778: end() 32778: { return _M_buffer + _M_len; } 32778: 32778: 32778: 32778: 32778: 32778: _Temporary_buffer(_ForwardIterator __seed, size_type __original_len); 32778: 32778: ~_Temporary_buffer() 32778: { 32778: std::_Destroy(_M_buffer, _M_buffer + _M_len); 32778: std::return_temporary_buffer(_M_buffer); 32778: } 32778: 32778: private: 32778: 32778: _Temporary_buffer(const _Temporary_buffer&); 32778: 32778: void 32778: operator=(const _Temporary_buffer&); 32778: }; 32778: 32778: 32778: template 32778: struct __uninitialized_construct_buf_dispatch 32778: { 32778: template 32778: static void 32778: __ucr(_Pointer __first, _Pointer __last, 32778: _ForwardIterator __seed) 32778: { 32778: if(__first == __last) 32778: return; 32778: 32778: _Pointer __cur = __first; 32778: try 32778: { 32778: std::_Construct(std::__addressof(*__first), 32778: std::move(*__seed)); 32778: _Pointer __prev = __cur; 32778: ++__cur; 32778: for(; __cur != __last; ++__cur, ++__prev) 32778: std::_Construct(std::__addressof(*__cur), 32778: std::move(*__prev)); 32778: *__seed = std::move(*__prev); 32778: } 32778: catch(...) 32778: { 32778: std::_Destroy(__first, __cur); 32778: throw; 32778: } 32778: } 32778: }; 32778: 32778: template<> 32778: struct __uninitialized_construct_buf_dispatch 32778: { 32778: template 32778: static void 32778: __ucr(_Pointer, _Pointer, _ForwardIterator) { } 32778: }; 32778: # 229 "/usr/include/c++/9/bits/stl_tempbuf.h" 3 32778: template 32778: inline void 32778: __uninitialized_construct_buf(_Pointer __first, _Pointer __last, 32778: _ForwardIterator __seed) 32778: { 32778: typedef typename std::iterator_traits<_Pointer>::value_type 32778: _ValueType; 32778: 32778: std::__uninitialized_construct_buf_dispatch< 32778: __has_trivial_constructor(_ValueType)>:: 32778: __ucr(__first, __last, __seed); 32778: } 32778: 32778: template 32778: _Temporary_buffer<_ForwardIterator, _Tp>:: 32778: _Temporary_buffer(_ForwardIterator __seed, size_type __original_len) 32778: : _M_original_len(__original_len), _M_len(0), _M_buffer(0) 32778: { 32778: try 32778: { 32778: std::pair __p(std::get_temporary_buffer< 32778: value_type>(_M_original_len)); 32778: _M_buffer = __p.first; 32778: _M_len = __p.second; 32778: if (_M_buffer) 32778: std::__uninitialized_construct_buf(_M_buffer, _M_buffer + _M_len, 32778: __seed); 32778: } 32778: catch(...) 32778: { 32778: std::return_temporary_buffer(_M_buffer); 32778: _M_buffer = 0; 32778: _M_len = 0; 32778: throw; 32778: } 32778: } 32778: 32778: 32778: } 32778: # 67 "/usr/include/c++/9/memory" 2 3 32778: # 1 "/usr/include/c++/9/bits/stl_raw_storage_iter.h" 1 3 32778: # 59 "/usr/include/c++/9/bits/stl_raw_storage_iter.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: class raw_storage_iterator 32778: : public iterator 32778: { 32778: protected: 32778: _OutputIterator _M_iter; 32778: 32778: public: 32778: explicit 32778: raw_storage_iterator(_OutputIterator __x) 32778: : _M_iter(__x) {} 32778: 32778: raw_storage_iterator& 32778: operator*() { return *this; } 32778: 32778: raw_storage_iterator& 32778: operator=(const _Tp& __element) 32778: { 32778: std::_Construct(std::__addressof(*_M_iter), __element); 32778: return *this; 32778: } 32778: 32778: 32778: 32778: 32778: raw_storage_iterator& 32778: operator=(_Tp&& __element) 32778: { 32778: std::_Construct(std::__addressof(*_M_iter), std::move(__element)); 32778: return *this; 32778: } 32778: 32778: 32778: raw_storage_iterator& 32778: operator++() 32778: { 32778: ++_M_iter; 32778: return *this; 32778: } 32778: 32778: raw_storage_iterator 32778: operator++(int) 32778: { 32778: raw_storage_iterator __tmp = *this; 32778: ++_M_iter; 32778: return __tmp; 32778: } 32778: 32778: 32778: 32778: _OutputIterator base() const { return _M_iter; } 32778: }; 32778: 32778: 32778: } 32778: # 68 "/usr/include/c++/9/memory" 2 3 32778: 32778: 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/c++/9/ext/concurrence.h" 1 3 32778: # 32 "/usr/include/c++/9/ext/concurrence.h" 3 32778: 32778: # 33 "/usr/include/c++/9/ext/concurrence.h" 3 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: enum _Lock_policy { _S_single, _S_mutex, _S_atomic }; 32778: 32778: 32778: 32778: static const _Lock_policy __default_lock_policy = 32778: 32778: 32778: 32778: 32778: 32778: _S_mutex; 32778: 32778: 32778: 32778: 32778: class __concurrence_lock_error : public std::exception 32778: { 32778: public: 32778: virtual char const* 32778: what() const throw() 32778: { return "__gnu_cxx::__concurrence_lock_error"; } 32778: }; 32778: 32778: class __concurrence_unlock_error : public std::exception 32778: { 32778: public: 32778: virtual char const* 32778: what() const throw() 32778: { return "__gnu_cxx::__concurrence_unlock_error"; } 32778: }; 32778: 32778: class __concurrence_broadcast_error : public std::exception 32778: { 32778: public: 32778: virtual char const* 32778: what() const throw() 32778: { return "__gnu_cxx::__concurrence_broadcast_error"; } 32778: }; 32778: 32778: class __concurrence_wait_error : public std::exception 32778: { 32778: public: 32778: virtual char const* 32778: what() const throw() 32778: { return "__gnu_cxx::__concurrence_wait_error"; } 32778: }; 32778: 32778: 32778: inline void 32778: __throw_concurrence_lock_error() 32778: { (throw (__concurrence_lock_error())); } 32778: 32778: inline void 32778: __throw_concurrence_unlock_error() 32778: { (throw (__concurrence_unlock_error())); } 32778: 32778: 32778: inline void 32778: __throw_concurrence_broadcast_error() 32778: { (throw (__concurrence_broadcast_error())); } 32778: 32778: inline void 32778: __throw_concurrence_wait_error() 32778: { (throw (__concurrence_wait_error())); } 32778: 32778: 32778: class __mutex 32778: { 32778: private: 32778: 32778: __gthread_mutex_t _M_mutex = { { 0, 0, 0, 0, PTHREAD_MUTEX_TIMED_NP, 0, { 0, 0 } } }; 32778: 32778: 32778: 32778: 32778: __mutex(const __mutex&); 32778: __mutex& operator=(const __mutex&); 32778: 32778: public: 32778: __mutex() 32778: { 32778: 32778: 32778: 32778: 32778: } 32778: # 144 "/usr/include/c++/9/ext/concurrence.h" 3 32778: void lock() 32778: { 32778: 32778: if (__gthread_active_p()) 32778: { 32778: if (__gthread_mutex_lock(&_M_mutex) != 0) 32778: __throw_concurrence_lock_error(); 32778: } 32778: 32778: } 32778: 32778: void unlock() 32778: { 32778: 32778: if (__gthread_active_p()) 32778: { 32778: if (__gthread_mutex_unlock(&_M_mutex) != 0) 32778: __throw_concurrence_unlock_error(); 32778: } 32778: 32778: } 32778: 32778: __gthread_mutex_t* gthread_mutex(void) 32778: { return &_M_mutex; } 32778: }; 32778: 32778: class __recursive_mutex 32778: { 32778: private: 32778: 32778: __gthread_recursive_mutex_t _M_mutex = { { 0, 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { 0, 0 } } }; 32778: 32778: 32778: 32778: 32778: __recursive_mutex(const __recursive_mutex&); 32778: __recursive_mutex& operator=(const __recursive_mutex&); 32778: 32778: public: 32778: __recursive_mutex() 32778: { 32778: 32778: 32778: 32778: 32778: } 32778: # 199 "/usr/include/c++/9/ext/concurrence.h" 3 32778: void lock() 32778: { 32778: 32778: if (__gthread_active_p()) 32778: { 32778: if (__gthread_recursive_mutex_lock(&_M_mutex) != 0) 32778: __throw_concurrence_lock_error(); 32778: } 32778: 32778: } 32778: 32778: void unlock() 32778: { 32778: 32778: if (__gthread_active_p()) 32778: { 32778: if (__gthread_recursive_mutex_unlock(&_M_mutex) != 0) 32778: __throw_concurrence_unlock_error(); 32778: } 32778: 32778: } 32778: 32778: __gthread_recursive_mutex_t* gthread_recursive_mutex(void) 32778: { return &_M_mutex; } 32778: }; 32778: 32778: 32778: 32778: 32778: class __scoped_lock 32778: { 32778: public: 32778: typedef __mutex __mutex_type; 32778: 32778: private: 32778: __mutex_type& _M_device; 32778: 32778: __scoped_lock(const __scoped_lock&); 32778: __scoped_lock& operator=(const __scoped_lock&); 32778: 32778: public: 32778: explicit __scoped_lock(__mutex_type& __name) : _M_device(__name) 32778: { _M_device.lock(); } 32778: 32778: ~__scoped_lock() throw() 32778: { _M_device.unlock(); } 32778: }; 32778: 32778: 32778: class __cond 32778: { 32778: private: 32778: 32778: __gthread_cond_t _M_cond = { { {0}, {0}, {0, 0}, {0, 0}, 0, 0, {0, 0} } }; 32778: 32778: 32778: 32778: 32778: __cond(const __cond&); 32778: __cond& operator=(const __cond&); 32778: 32778: public: 32778: __cond() 32778: { 32778: 32778: 32778: 32778: 32778: } 32778: # 277 "/usr/include/c++/9/ext/concurrence.h" 3 32778: void broadcast() 32778: { 32778: 32778: if (__gthread_active_p()) 32778: { 32778: if (__gthread_cond_broadcast(&_M_cond) != 0) 32778: __throw_concurrence_broadcast_error(); 32778: } 32778: 32778: } 32778: 32778: void wait(__mutex *mutex) 32778: { 32778: 32778: { 32778: if (__gthread_cond_wait(&_M_cond, mutex->gthread_mutex()) != 0) 32778: __throw_concurrence_wait_error(); 32778: } 32778: 32778: } 32778: 32778: void wait_recursive(__recursive_mutex *mutex) 32778: { 32778: 32778: { 32778: if (__gthread_cond_wait_recursive(&_M_cond, 32778: mutex->gthread_recursive_mutex()) 32778: != 0) 32778: __throw_concurrence_wait_error(); 32778: } 32778: 32778: } 32778: }; 32778: 32778: 32778: 32778: } 32778: # 75 "/usr/include/c++/9/memory" 2 3 32778: 32778: 32778: # 1 "/usr/include/c++/9/bits/uses_allocator.h" 1 3 32778: # 35 "/usr/include/c++/9/bits/uses_allocator.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: struct __erased_type { }; 32778: 32778: 32778: 32778: 32778: template 32778: using __is_erased_or_convertible 32778: = __or_, is_same<_Tp, __erased_type>>; 32778: 32778: 32778: struct allocator_arg_t { explicit allocator_arg_t() = default; }; 32778: 32778: constexpr allocator_arg_t allocator_arg = 32778: allocator_arg_t(); 32778: 32778: template> 32778: struct __uses_allocator_helper 32778: : false_type { }; 32778: 32778: template 32778: struct __uses_allocator_helper<_Tp, _Alloc, 32778: __void_t> 32778: : __is_erased_or_convertible<_Alloc, typename _Tp::allocator_type>::type 32778: { }; 32778: 32778: 32778: template 32778: struct uses_allocator 32778: : __uses_allocator_helper<_Tp, _Alloc>::type 32778: { }; 32778: 32778: struct __uses_alloc_base { }; 32778: 32778: struct __uses_alloc0 : __uses_alloc_base 32778: { 32778: struct _Sink { void operator=(const void*) { } } _M_a; 32778: }; 32778: 32778: template 32778: struct __uses_alloc1 : __uses_alloc_base { const _Alloc* _M_a; }; 32778: 32778: template 32778: struct __uses_alloc2 : __uses_alloc_base { const _Alloc* _M_a; }; 32778: 32778: template 32778: struct __uses_alloc; 32778: 32778: template 32778: struct __uses_alloc 32778: : conditional< 32778: is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>::value, 32778: __uses_alloc1<_Alloc>, 32778: __uses_alloc2<_Alloc>>::type 32778: { 32778: 32778: 32778: static_assert(__or_< 32778: is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>, 32778: is_constructible<_Tp, _Args..., const _Alloc&>>::value, 32778: "construction with an allocator must be possible" 32778: " if uses_allocator is true"); 32778: }; 32778: 32778: template 32778: struct __uses_alloc 32778: : __uses_alloc0 { }; 32778: 32778: template 32778: using __uses_alloc_t = 32778: __uses_alloc::value, _Tp, _Alloc, _Args...>; 32778: 32778: template 32778: inline __uses_alloc_t<_Tp, _Alloc, _Args...> 32778: __use_alloc(const _Alloc& __a) 32778: { 32778: __uses_alloc_t<_Tp, _Alloc, _Args...> __ret; 32778: __ret._M_a = std::__addressof(__a); 32778: return __ret; 32778: } 32778: 32778: template 32778: void 32778: __use_alloc(const _Alloc&&) = delete; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template class _Predicate, 32778: typename _Tp, typename _Alloc, typename... _Args> 32778: struct __is_uses_allocator_predicate 32778: : conditional::value, 32778: __or_<_Predicate<_Tp, allocator_arg_t, _Alloc, _Args...>, 32778: _Predicate<_Tp, _Args..., _Alloc>>, 32778: _Predicate<_Tp, _Args...>>::type { }; 32778: 32778: template 32778: struct __is_uses_allocator_constructible 32778: : __is_uses_allocator_predicate 32778: { }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct __is_nothrow_uses_allocator_constructible 32778: : __is_uses_allocator_predicate 32778: { }; 32778: # 163 "/usr/include/c++/9/bits/uses_allocator.h" 3 32778: template 32778: void __uses_allocator_construct_impl(__uses_alloc0 __a, _Tp* __ptr, 32778: _Args&&... __args) 32778: { ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)...); } 32778: 32778: template 32778: void __uses_allocator_construct_impl(__uses_alloc1<_Alloc> __a, _Tp* __ptr, 32778: _Args&&... __args) 32778: { 32778: ::new ((void*)__ptr) _Tp(allocator_arg, *__a._M_a, 32778: std::forward<_Args>(__args)...); 32778: } 32778: 32778: template 32778: void __uses_allocator_construct_impl(__uses_alloc2<_Alloc> __a, _Tp* __ptr, 32778: _Args&&... __args) 32778: { ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)..., *__a._M_a); } 32778: 32778: template 32778: void __uses_allocator_construct(const _Alloc& __a, _Tp* __ptr, 32778: _Args&&... __args) 32778: { 32778: std::__uses_allocator_construct_impl( 32778: std::__use_alloc<_Tp, _Alloc, _Args...>(__a), __ptr, 32778: std::forward<_Args>(__args)...); 32778: } 32778: 32778: 32778: } 32778: # 78 "/usr/include/c++/9/memory" 2 3 32778: 32778: 32778: # 1 "/usr/include/c++/9/bits/unique_ptr.h" 1 3 32778: # 36 "/usr/include/c++/9/bits/unique_ptr.h" 3 32778: # 1 "/usr/include/c++/9/utility" 1 3 32778: # 58 "/usr/include/c++/9/utility" 3 32778: 32778: # 59 "/usr/include/c++/9/utility" 3 32778: # 69 "/usr/include/c++/9/utility" 3 32778: # 1 "/usr/include/c++/9/bits/stl_relops.h" 1 3 32778: # 67 "/usr/include/c++/9/bits/stl_relops.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: namespace rel_ops 32778: { 32778: # 85 "/usr/include/c++/9/bits/stl_relops.h" 3 32778: template 32778: inline bool 32778: operator!=(const _Tp& __x, const _Tp& __y) 32778: { return !(__x == __y); } 32778: # 98 "/usr/include/c++/9/bits/stl_relops.h" 3 32778: template 32778: inline bool 32778: operator>(const _Tp& __x, const _Tp& __y) 32778: { return __y < __x; } 32778: # 111 "/usr/include/c++/9/bits/stl_relops.h" 3 32778: template 32778: inline bool 32778: operator<=(const _Tp& __x, const _Tp& __y) 32778: { return !(__y < __x); } 32778: # 124 "/usr/include/c++/9/bits/stl_relops.h" 3 32778: template 32778: inline bool 32778: operator>=(const _Tp& __x, const _Tp& __y) 32778: { return !(__x < __y); } 32778: } 32778: 32778: 32778: } 32778: # 70 "/usr/include/c++/9/utility" 2 3 32778: # 78 "/usr/include/c++/9/utility" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: template 32778: struct tuple_size; 32778: 32778: 32778: 32778: 32778: 32778: template::type, 32778: typename = typename enable_if::value>::type, 32778: size_t = tuple_size<_Tp>::value> 32778: using __enable_if_has_tuple_size = _Tp; 32778: 32778: template 32778: struct tuple_size> 32778: : public tuple_size<_Tp> { }; 32778: 32778: template 32778: struct tuple_size> 32778: : public tuple_size<_Tp> { }; 32778: 32778: template 32778: struct tuple_size> 32778: : public tuple_size<_Tp> { }; 32778: 32778: 32778: template 32778: struct tuple_element; 32778: 32778: 32778: template 32778: using __tuple_element_t = typename tuple_element<__i, _Tp>::type; 32778: 32778: template 32778: struct tuple_element<__i, const _Tp> 32778: { 32778: typedef typename add_const<__tuple_element_t<__i, _Tp>>::type type; 32778: }; 32778: 32778: template 32778: struct tuple_element<__i, volatile _Tp> 32778: { 32778: typedef typename add_volatile<__tuple_element_t<__i, _Tp>>::type type; 32778: }; 32778: 32778: template 32778: struct tuple_element<__i, const volatile _Tp> 32778: { 32778: typedef typename add_cv<__tuple_element_t<__i, _Tp>>::type type; 32778: }; 32778: # 147 "/usr/include/c++/9/utility" 3 32778: template 32778: struct __is_tuple_like_impl> : true_type 32778: { }; 32778: 32778: 32778: template 32778: struct tuple_size> 32778: : public integral_constant { }; 32778: 32778: 32778: template 32778: struct tuple_element<0, std::pair<_Tp1, _Tp2>> 32778: { typedef _Tp1 type; }; 32778: 32778: 32778: template 32778: struct tuple_element<1, std::pair<_Tp1, _Tp2>> 32778: { typedef _Tp2 type; }; 32778: 32778: template 32778: struct __pair_get; 32778: 32778: template<> 32778: struct __pair_get<0> 32778: { 32778: template 32778: static constexpr _Tp1& 32778: __get(std::pair<_Tp1, _Tp2>& __pair) noexcept 32778: { return __pair.first; } 32778: 32778: template 32778: static constexpr _Tp1&& 32778: __move_get(std::pair<_Tp1, _Tp2>&& __pair) noexcept 32778: { return std::forward<_Tp1>(__pair.first); } 32778: 32778: template 32778: static constexpr const _Tp1& 32778: __const_get(const std::pair<_Tp1, _Tp2>& __pair) noexcept 32778: { return __pair.first; } 32778: 32778: template 32778: static constexpr const _Tp1&& 32778: __const_move_get(const std::pair<_Tp1, _Tp2>&& __pair) noexcept 32778: { return std::forward(__pair.first); } 32778: }; 32778: 32778: template<> 32778: struct __pair_get<1> 32778: { 32778: template 32778: static constexpr _Tp2& 32778: __get(std::pair<_Tp1, _Tp2>& __pair) noexcept 32778: { return __pair.second; } 32778: 32778: template 32778: static constexpr _Tp2&& 32778: __move_get(std::pair<_Tp1, _Tp2>&& __pair) noexcept 32778: { return std::forward<_Tp2>(__pair.second); } 32778: 32778: template 32778: static constexpr const _Tp2& 32778: __const_get(const std::pair<_Tp1, _Tp2>& __pair) noexcept 32778: { return __pair.second; } 32778: 32778: template 32778: static constexpr const _Tp2&& 32778: __const_move_get(const std::pair<_Tp1, _Tp2>&& __pair) noexcept 32778: { return std::forward(__pair.second); } 32778: }; 32778: 32778: template 32778: constexpr typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type& 32778: get(std::pair<_Tp1, _Tp2>& __in) noexcept 32778: { return __pair_get<_Int>::__get(__in); } 32778: 32778: template 32778: constexpr typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&& 32778: get(std::pair<_Tp1, _Tp2>&& __in) noexcept 32778: { return __pair_get<_Int>::__move_get(std::move(__in)); } 32778: 32778: template 32778: constexpr const typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type& 32778: get(const std::pair<_Tp1, _Tp2>& __in) noexcept 32778: { return __pair_get<_Int>::__const_get(__in); } 32778: 32778: template 32778: constexpr const typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&& 32778: get(const std::pair<_Tp1, _Tp2>&& __in) noexcept 32778: { return __pair_get<_Int>::__const_move_get(std::move(__in)); } 32778: # 292 "/usr/include/c++/9/utility" 3 32778: template struct _Index_tuple { }; 32778: # 301 "/usr/include/c++/9/utility" 3 32778: template 32778: struct _Build_index_tuple 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: using __type = _Index_tuple<__integer_pack(_Num)...>; 32778: 32778: }; 32778: # 396 "/usr/include/c++/9/utility" 3 32778: 32778: } 32778: # 37 "/usr/include/c++/9/bits/unique_ptr.h" 2 3 32778: # 1 "/usr/include/c++/9/tuple" 1 3 32778: # 32 "/usr/include/c++/9/tuple" 3 32778: 32778: # 33 "/usr/include/c++/9/tuple" 3 32778: 32778: 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/c++/9/array" 1 3 32778: # 32 "/usr/include/c++/9/array" 3 32778: 32778: # 33 "/usr/include/c++/9/array" 3 32778: 32778: 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/c++/9/stdexcept" 1 3 32778: # 36 "/usr/include/c++/9/stdexcept" 3 32778: 32778: # 37 "/usr/include/c++/9/stdexcept" 3 32778: 32778: 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: struct __cow_string 32778: { 32778: union { 32778: const char* _M_p; 32778: char _M_bytes[sizeof(const char*)]; 32778: }; 32778: 32778: __cow_string(); 32778: __cow_string(const std::string&); 32778: __cow_string(const char*, size_t); 32778: __cow_string(const __cow_string&) noexcept; 32778: __cow_string& operator=(const __cow_string&) noexcept; 32778: ~__cow_string(); 32778: 32778: __cow_string(__cow_string&&) noexcept; 32778: __cow_string& operator=(__cow_string&&) noexcept; 32778: 32778: }; 32778: 32778: typedef basic_string __sso_string; 32778: # 113 "/usr/include/c++/9/stdexcept" 3 32778: class logic_error : public exception 32778: { 32778: __cow_string _M_msg; 32778: 32778: public: 32778: 32778: explicit 32778: logic_error(const string& __arg) ; 32778: 32778: 32778: explicit 32778: logic_error(const char*) ; 32778: 32778: logic_error(logic_error&&) noexcept; 32778: logic_error& operator=(logic_error&&) noexcept; 32778: 32778: 32778: 32778: logic_error(const logic_error&) noexcept; 32778: logic_error& operator=(const logic_error&) noexcept; 32778: 32778: 32778: 32778: 32778: 32778: virtual ~logic_error() noexcept; 32778: 32778: 32778: 32778: virtual const char* 32778: what() const noexcept; 32778: 32778: 32778: 32778: 32778: 32778: }; 32778: 32778: 32778: 32778: class domain_error : public logic_error 32778: { 32778: public: 32778: explicit domain_error(const string& __arg) ; 32778: 32778: explicit domain_error(const char*) ; 32778: domain_error(const domain_error&) = default; 32778: domain_error& operator=(const domain_error&) = default; 32778: domain_error(domain_error&&) = default; 32778: domain_error& operator=(domain_error&&) = default; 32778: 32778: virtual ~domain_error() noexcept; 32778: }; 32778: 32778: 32778: class invalid_argument : public logic_error 32778: { 32778: public: 32778: explicit invalid_argument(const string& __arg) ; 32778: 32778: explicit invalid_argument(const char*) ; 32778: invalid_argument(const invalid_argument&) = default; 32778: invalid_argument& operator=(const invalid_argument&) = default; 32778: invalid_argument(invalid_argument&&) = default; 32778: invalid_argument& operator=(invalid_argument&&) = default; 32778: 32778: virtual ~invalid_argument() noexcept; 32778: }; 32778: 32778: 32778: 32778: class length_error : public logic_error 32778: { 32778: public: 32778: explicit length_error(const string& __arg) ; 32778: 32778: explicit length_error(const char*) ; 32778: length_error(const length_error&) = default; 32778: length_error& operator=(const length_error&) = default; 32778: length_error(length_error&&) = default; 32778: length_error& operator=(length_error&&) = default; 32778: 32778: virtual ~length_error() noexcept; 32778: }; 32778: 32778: 32778: 32778: class out_of_range : public logic_error 32778: { 32778: public: 32778: explicit out_of_range(const string& __arg) ; 32778: 32778: explicit out_of_range(const char*) ; 32778: out_of_range(const out_of_range&) = default; 32778: out_of_range& operator=(const out_of_range&) = default; 32778: out_of_range(out_of_range&&) = default; 32778: out_of_range& operator=(out_of_range&&) = default; 32778: 32778: virtual ~out_of_range() noexcept; 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: class runtime_error : public exception 32778: { 32778: __cow_string _M_msg; 32778: 32778: public: 32778: 32778: explicit 32778: runtime_error(const string& __arg) ; 32778: 32778: 32778: explicit 32778: runtime_error(const char*) ; 32778: 32778: runtime_error(runtime_error&&) noexcept; 32778: runtime_error& operator=(runtime_error&&) noexcept; 32778: 32778: 32778: 32778: runtime_error(const runtime_error&) noexcept; 32778: runtime_error& operator=(const runtime_error&) noexcept; 32778: 32778: 32778: 32778: 32778: 32778: virtual ~runtime_error() noexcept; 32778: 32778: 32778: 32778: virtual const char* 32778: what() const noexcept; 32778: 32778: 32778: 32778: 32778: 32778: }; 32778: 32778: 32778: class range_error : public runtime_error 32778: { 32778: public: 32778: explicit range_error(const string& __arg) ; 32778: 32778: explicit range_error(const char*) ; 32778: range_error(const range_error&) = default; 32778: range_error& operator=(const range_error&) = default; 32778: range_error(range_error&&) = default; 32778: range_error& operator=(range_error&&) = default; 32778: 32778: virtual ~range_error() noexcept; 32778: }; 32778: 32778: 32778: class overflow_error : public runtime_error 32778: { 32778: public: 32778: explicit overflow_error(const string& __arg) ; 32778: 32778: explicit overflow_error(const char*) ; 32778: overflow_error(const overflow_error&) = default; 32778: overflow_error& operator=(const overflow_error&) = default; 32778: overflow_error(overflow_error&&) = default; 32778: overflow_error& operator=(overflow_error&&) = default; 32778: 32778: virtual ~overflow_error() noexcept; 32778: }; 32778: 32778: 32778: class underflow_error : public runtime_error 32778: { 32778: public: 32778: explicit underflow_error(const string& __arg) ; 32778: 32778: explicit underflow_error(const char*) ; 32778: underflow_error(const underflow_error&) = default; 32778: underflow_error& operator=(const underflow_error&) = default; 32778: underflow_error(underflow_error&&) = default; 32778: underflow_error& operator=(underflow_error&&) = default; 32778: 32778: virtual ~underflow_error() noexcept; 32778: }; 32778: 32778: 32778: 32778: 32778: } 32778: # 40 "/usr/include/c++/9/array" 2 3 32778: 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: template 32778: struct __array_traits 32778: { 32778: typedef _Tp _Type[_Nm]; 32778: typedef __is_swappable<_Tp> _Is_swappable; 32778: typedef __is_nothrow_swappable<_Tp> _Is_nothrow_swappable; 32778: 32778: static constexpr _Tp& 32778: _S_ref(const _Type& __t, std::size_t __n) noexcept 32778: { return const_cast<_Tp&>(__t[__n]); } 32778: 32778: static constexpr _Tp* 32778: _S_ptr(const _Type& __t) noexcept 32778: { return const_cast<_Tp*>(__t); } 32778: }; 32778: 32778: template 32778: struct __array_traits<_Tp, 0> 32778: { 32778: struct _Type { }; 32778: typedef true_type _Is_swappable; 32778: typedef true_type _Is_nothrow_swappable; 32778: 32778: static constexpr _Tp& 32778: _S_ref(const _Type&, std::size_t) noexcept 32778: { return *static_cast<_Tp*>(nullptr); } 32778: 32778: static constexpr _Tp* 32778: _S_ptr(const _Type&) noexcept 32778: { return nullptr; } 32778: }; 32778: # 93 "/usr/include/c++/9/array" 3 32778: template 32778: struct array 32778: { 32778: typedef _Tp value_type; 32778: typedef value_type* pointer; 32778: typedef const value_type* const_pointer; 32778: typedef value_type& reference; 32778: typedef const value_type& const_reference; 32778: typedef value_type* iterator; 32778: typedef const value_type* const_iterator; 32778: typedef std::size_t size_type; 32778: typedef std::ptrdiff_t difference_type; 32778: typedef std::reverse_iterator reverse_iterator; 32778: typedef std::reverse_iterator const_reverse_iterator; 32778: 32778: 32778: typedef std::__array_traits<_Tp, _Nm> _AT_Type; 32778: typename _AT_Type::_Type _M_elems; 32778: 32778: 32778: 32778: 32778: void 32778: fill(const value_type& __u) 32778: { std::fill_n(begin(), size(), __u); } 32778: 32778: void 32778: swap(array& __other) 32778: noexcept(_AT_Type::_Is_nothrow_swappable::value) 32778: { std::swap_ranges(begin(), end(), __other.begin()); } 32778: 32778: 32778: iterator 32778: begin() noexcept 32778: { return iterator(data()); } 32778: 32778: const_iterator 32778: begin() const noexcept 32778: { return const_iterator(data()); } 32778: 32778: iterator 32778: end() noexcept 32778: { return iterator(data() + _Nm); } 32778: 32778: const_iterator 32778: end() const noexcept 32778: { return const_iterator(data() + _Nm); } 32778: 32778: reverse_iterator 32778: rbegin() noexcept 32778: { return reverse_iterator(end()); } 32778: 32778: const_reverse_iterator 32778: rbegin() const noexcept 32778: { return const_reverse_iterator(end()); } 32778: 32778: reverse_iterator 32778: rend() noexcept 32778: { return reverse_iterator(begin()); } 32778: 32778: const_reverse_iterator 32778: rend() const noexcept 32778: { return const_reverse_iterator(begin()); } 32778: 32778: const_iterator 32778: cbegin() const noexcept 32778: { return const_iterator(data()); } 32778: 32778: const_iterator 32778: cend() const noexcept 32778: { return const_iterator(data() + _Nm); } 32778: 32778: const_reverse_iterator 32778: crbegin() const noexcept 32778: { return const_reverse_iterator(end()); } 32778: 32778: const_reverse_iterator 32778: crend() const noexcept 32778: { return const_reverse_iterator(begin()); } 32778: 32778: 32778: constexpr size_type 32778: size() const noexcept { return _Nm; } 32778: 32778: constexpr size_type 32778: max_size() const noexcept { return _Nm; } 32778: 32778: constexpr bool 32778: empty() const noexcept { return size() == 0; } 32778: 32778: 32778: reference 32778: operator[](size_type __n) noexcept 32778: { return _AT_Type::_S_ref(_M_elems, __n); } 32778: 32778: constexpr const_reference 32778: operator[](size_type __n) const noexcept 32778: { return _AT_Type::_S_ref(_M_elems, __n); } 32778: 32778: reference 32778: at(size_type __n) 32778: { 32778: if (__n >= _Nm) 32778: std::__throw_out_of_range_fmt(("array::at: __n (which is %zu) " ">= _Nm (which is %zu)") 32778: , 32778: __n, _Nm); 32778: return _AT_Type::_S_ref(_M_elems, __n); 32778: } 32778: 32778: constexpr const_reference 32778: at(size_type __n) const 32778: { 32778: 32778: 32778: return __n < _Nm ? _AT_Type::_S_ref(_M_elems, __n) 32778: : (std::__throw_out_of_range_fmt(("array::at: __n (which is %zu) " ">= _Nm (which is %zu)") 32778: , 32778: __n, _Nm), 32778: _AT_Type::_S_ref(_M_elems, 0)); 32778: } 32778: 32778: reference 32778: front() noexcept 32778: { return *begin(); } 32778: 32778: constexpr const_reference 32778: front() const noexcept 32778: { return _AT_Type::_S_ref(_M_elems, 0); } 32778: 32778: reference 32778: back() noexcept 32778: { return _Nm ? *(end() - 1) : *end(); } 32778: 32778: constexpr const_reference 32778: back() const noexcept 32778: { 32778: return _Nm ? _AT_Type::_S_ref(_M_elems, _Nm - 1) 32778: : _AT_Type::_S_ref(_M_elems, 0); 32778: } 32778: 32778: pointer 32778: data() noexcept 32778: { return _AT_Type::_S_ptr(_M_elems); } 32778: 32778: const_pointer 32778: data() const noexcept 32778: { return _AT_Type::_S_ptr(_M_elems); } 32778: }; 32778: # 250 "/usr/include/c++/9/array" 3 32778: template 32778: inline bool 32778: operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 32778: { return std::equal(__one.begin(), __one.end(), __two.begin()); } 32778: 32778: template 32778: inline bool 32778: operator!=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 32778: { return !(__one == __two); } 32778: 32778: template 32778: inline bool 32778: operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b) 32778: { 32778: return std::lexicographical_compare(__a.begin(), __a.end(), 32778: __b.begin(), __b.end()); 32778: } 32778: 32778: template 32778: inline bool 32778: operator>(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 32778: { return __two < __one; } 32778: 32778: template 32778: inline bool 32778: operator<=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 32778: { return !(__one > __two); } 32778: 32778: template 32778: inline bool 32778: operator>=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 32778: { return !(__one < __two); } 32778: 32778: 32778: template 32778: inline 32778: 32778: 32778: 32778: 32778: 32778: 32778: void 32778: 32778: swap(array<_Tp, _Nm>& __one, array<_Tp, _Nm>& __two) 32778: noexcept(noexcept(__one.swap(__two))) 32778: { __one.swap(__two); } 32778: # 305 "/usr/include/c++/9/array" 3 32778: template 32778: constexpr _Tp& 32778: get(array<_Tp, _Nm>& __arr) noexcept 32778: { 32778: static_assert(_Int < _Nm, "array index is within bounds"); 32778: return std::__array_traits<_Tp, _Nm>:: 32778: _S_ref(__arr._M_elems, _Int); 32778: } 32778: 32778: template 32778: constexpr _Tp&& 32778: get(array<_Tp, _Nm>&& __arr) noexcept 32778: { 32778: static_assert(_Int < _Nm, "array index is within bounds"); 32778: return std::move(std::get<_Int>(__arr)); 32778: } 32778: 32778: template 32778: constexpr const _Tp& 32778: get(const array<_Tp, _Nm>& __arr) noexcept 32778: { 32778: static_assert(_Int < _Nm, "array index is within bounds"); 32778: return std::__array_traits<_Tp, _Nm>:: 32778: _S_ref(__arr._M_elems, _Int); 32778: } 32778: 32778: template 32778: constexpr const _Tp&& 32778: get(const array<_Tp, _Nm>&& __arr) noexcept 32778: { 32778: static_assert(_Int < _Nm, "array index is within bounds"); 32778: return std::move(std::get<_Int>(__arr)); 32778: } 32778: 32778: 32778: } 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct tuple_size; 32778: 32778: 32778: template 32778: struct tuple_size> 32778: : public integral_constant { }; 32778: 32778: 32778: template 32778: struct tuple_element; 32778: 32778: 32778: template 32778: struct tuple_element<_Int, std::array<_Tp, _Nm>> 32778: { 32778: static_assert(_Int < _Nm, "index is out of bounds"); 32778: typedef _Tp type; 32778: }; 32778: 32778: template 32778: struct __is_tuple_like_impl> : true_type 32778: { }; 32778: 32778: 32778: } 32778: # 40 "/usr/include/c++/9/tuple" 2 3 32778: 32778: # 1 "/usr/include/c++/9/bits/invoke.h" 1 3 32778: # 33 "/usr/include/c++/9/bits/invoke.h" 3 32778: 32778: # 34 "/usr/include/c++/9/bits/invoke.h" 3 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 52 "/usr/include/c++/9/bits/invoke.h" 3 32778: template::type> 32778: constexpr _Up&& 32778: __invfwd(typename remove_reference<_Tp>::type& __t) noexcept 32778: { return static_cast<_Up&&>(__t); } 32778: 32778: template 32778: constexpr _Res 32778: __invoke_impl(__invoke_other, _Fn&& __f, _Args&&... __args) 32778: { return std::forward<_Fn>(__f)(std::forward<_Args>(__args)...); } 32778: 32778: template 32778: constexpr _Res 32778: __invoke_impl(__invoke_memfun_ref, _MemFun&& __f, _Tp&& __t, 32778: _Args&&... __args) 32778: { return (__invfwd<_Tp>(__t).*__f)(std::forward<_Args>(__args)...); } 32778: 32778: template 32778: constexpr _Res 32778: __invoke_impl(__invoke_memfun_deref, _MemFun&& __f, _Tp&& __t, 32778: _Args&&... __args) 32778: { 32778: return ((*std::forward<_Tp>(__t)).*__f)(std::forward<_Args>(__args)...); 32778: } 32778: 32778: template 32778: constexpr _Res 32778: __invoke_impl(__invoke_memobj_ref, _MemPtr&& __f, _Tp&& __t) 32778: { return __invfwd<_Tp>(__t).*__f; } 32778: 32778: template 32778: constexpr _Res 32778: __invoke_impl(__invoke_memobj_deref, _MemPtr&& __f, _Tp&& __t) 32778: { return (*std::forward<_Tp>(__t)).*__f; } 32778: 32778: 32778: template 32778: constexpr typename __invoke_result<_Callable, _Args...>::type 32778: __invoke(_Callable&& __fn, _Args&&... __args) 32778: noexcept(__is_nothrow_invocable<_Callable, _Args...>::value) 32778: { 32778: using __result = __invoke_result<_Callable, _Args...>; 32778: using __type = typename __result::type; 32778: using __tag = typename __result::__invoke_type; 32778: return std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), 32778: std::forward<_Args>(__args)...); 32778: } 32778: 32778: 32778: } 32778: # 42 "/usr/include/c++/9/tuple" 2 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: class tuple; 32778: 32778: template 32778: struct __is_empty_non_tuple : is_empty<_Tp> { }; 32778: 32778: 32778: template 32778: struct __is_empty_non_tuple> : false_type { }; 32778: 32778: 32778: template 32778: using __empty_not_final 32778: = typename conditional<__is_final(_Tp), false_type, 32778: __is_empty_non_tuple<_Tp>>::type; 32778: 32778: template::value> 32778: struct _Head_base; 32778: 32778: template 32778: struct _Head_base<_Idx, _Head, true> 32778: : public _Head 32778: { 32778: constexpr _Head_base() 32778: : _Head() { } 32778: 32778: constexpr _Head_base(const _Head& __h) 32778: : _Head(__h) { } 32778: 32778: constexpr _Head_base(const _Head_base&) = default; 32778: constexpr _Head_base(_Head_base&&) = default; 32778: 32778: template 32778: constexpr _Head_base(_UHead&& __h) 32778: : _Head(std::forward<_UHead>(__h)) { } 32778: 32778: _Head_base(allocator_arg_t, __uses_alloc0) 32778: : _Head() { } 32778: 32778: template 32778: _Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) 32778: : _Head(allocator_arg, *__a._M_a) { } 32778: 32778: template 32778: _Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) 32778: : _Head(*__a._M_a) { } 32778: 32778: template 32778: _Head_base(__uses_alloc0, _UHead&& __uhead) 32778: : _Head(std::forward<_UHead>(__uhead)) { } 32778: 32778: template 32778: _Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) 32778: : _Head(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) { } 32778: 32778: template 32778: _Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) 32778: : _Head(std::forward<_UHead>(__uhead), *__a._M_a) { } 32778: 32778: static constexpr _Head& 32778: _M_head(_Head_base& __b) noexcept { return __b; } 32778: 32778: static constexpr const _Head& 32778: _M_head(const _Head_base& __b) noexcept { return __b; } 32778: }; 32778: 32778: template 32778: struct _Head_base<_Idx, _Head, false> 32778: { 32778: constexpr _Head_base() 32778: : _M_head_impl() { } 32778: 32778: constexpr _Head_base(const _Head& __h) 32778: : _M_head_impl(__h) { } 32778: 32778: constexpr _Head_base(const _Head_base&) = default; 32778: constexpr _Head_base(_Head_base&&) = default; 32778: 32778: template 32778: constexpr _Head_base(_UHead&& __h) 32778: : _M_head_impl(std::forward<_UHead>(__h)) { } 32778: 32778: _Head_base(allocator_arg_t, __uses_alloc0) 32778: : _M_head_impl() { } 32778: 32778: template 32778: _Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) 32778: : _M_head_impl(allocator_arg, *__a._M_a) { } 32778: 32778: template 32778: _Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) 32778: : _M_head_impl(*__a._M_a) { } 32778: 32778: template 32778: _Head_base(__uses_alloc0, _UHead&& __uhead) 32778: : _M_head_impl(std::forward<_UHead>(__uhead)) { } 32778: 32778: template 32778: _Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) 32778: : _M_head_impl(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) 32778: { } 32778: 32778: template 32778: _Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) 32778: : _M_head_impl(std::forward<_UHead>(__uhead), *__a._M_a) { } 32778: 32778: static constexpr _Head& 32778: _M_head(_Head_base& __b) noexcept { return __b._M_head_impl; } 32778: 32778: static constexpr const _Head& 32778: _M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } 32778: 32778: _Head _M_head_impl; 32778: }; 32778: # 176 "/usr/include/c++/9/tuple" 3 32778: template 32778: struct _Tuple_impl; 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct _Tuple_impl<_Idx, _Head, _Tail...> 32778: : public _Tuple_impl<_Idx + 1, _Tail...>, 32778: private _Head_base<_Idx, _Head> 32778: { 32778: template friend class _Tuple_impl; 32778: 32778: typedef _Tuple_impl<_Idx + 1, _Tail...> _Inherited; 32778: typedef _Head_base<_Idx, _Head> _Base; 32778: 32778: static constexpr _Head& 32778: _M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 32778: 32778: static constexpr const _Head& 32778: _M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 32778: 32778: static constexpr _Inherited& 32778: _M_tail(_Tuple_impl& __t) noexcept { return __t; } 32778: 32778: static constexpr const _Inherited& 32778: _M_tail(const _Tuple_impl& __t) noexcept { return __t; } 32778: 32778: constexpr _Tuple_impl() 32778: : _Inherited(), _Base() { } 32778: 32778: explicit 32778: constexpr _Tuple_impl(const _Head& __head, const _Tail&... __tail) 32778: : _Inherited(__tail...), _Base(__head) { } 32778: 32778: template::type> 32778: explicit 32778: constexpr _Tuple_impl(_UHead&& __head, _UTail&&... __tail) 32778: : _Inherited(std::forward<_UTail>(__tail)...), 32778: _Base(std::forward<_UHead>(__head)) { } 32778: 32778: constexpr _Tuple_impl(const _Tuple_impl&) = default; 32778: 32778: 32778: 32778: _Tuple_impl& operator=(const _Tuple_impl&) = delete; 32778: 32778: constexpr 32778: _Tuple_impl(_Tuple_impl&& __in) 32778: noexcept(__and_, 32778: is_nothrow_move_constructible<_Inherited>>::value) 32778: : _Inherited(std::move(_M_tail(__in))), 32778: _Base(std::forward<_Head>(_M_head(__in))) { } 32778: 32778: template 32778: constexpr _Tuple_impl(const _Tuple_impl<_Idx, _UElements...>& __in) 32778: : _Inherited(_Tuple_impl<_Idx, _UElements...>::_M_tail(__in)), 32778: _Base(_Tuple_impl<_Idx, _UElements...>::_M_head(__in)) { } 32778: 32778: template 32778: constexpr _Tuple_impl(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 32778: : _Inherited(std::move 32778: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), 32778: _Base(std::forward<_UHead> 32778: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) { } 32778: 32778: template 32778: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) 32778: : _Inherited(__tag, __a), 32778: _Base(__tag, __use_alloc<_Head>(__a)) { } 32778: 32778: template 32778: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 32778: const _Head& __head, const _Tail&... __tail) 32778: : _Inherited(__tag, __a, __tail...), 32778: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), __head) { } 32778: 32778: template::type> 32778: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 32778: _UHead&& __head, _UTail&&... __tail) 32778: : _Inherited(__tag, __a, std::forward<_UTail>(__tail)...), 32778: _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 32778: std::forward<_UHead>(__head)) { } 32778: 32778: template 32778: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 32778: const _Tuple_impl& __in) 32778: : _Inherited(__tag, __a, _M_tail(__in)), 32778: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), _M_head(__in)) { } 32778: 32778: template 32778: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 32778: _Tuple_impl&& __in) 32778: : _Inherited(__tag, __a, std::move(_M_tail(__in))), 32778: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), 32778: std::forward<_Head>(_M_head(__in))) { } 32778: 32778: template 32778: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 32778: const _Tuple_impl<_Idx, _UElements...>& __in) 32778: : _Inherited(__tag, __a, 32778: _Tuple_impl<_Idx, _UElements...>::_M_tail(__in)), 32778: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), 32778: _Tuple_impl<_Idx, _UElements...>::_M_head(__in)) { } 32778: 32778: template 32778: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 32778: _Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 32778: : _Inherited(__tag, __a, std::move 32778: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), 32778: _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 32778: std::forward<_UHead> 32778: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) { } 32778: 32778: template 32778: void 32778: _M_assign(const _Tuple_impl<_Idx, _UElements...>& __in) 32778: { 32778: _M_head(*this) = _Tuple_impl<_Idx, _UElements...>::_M_head(__in); 32778: _M_tail(*this)._M_assign( 32778: _Tuple_impl<_Idx, _UElements...>::_M_tail(__in)); 32778: } 32778: 32778: template 32778: void 32778: _M_assign(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 32778: { 32778: _M_head(*this) = std::forward<_UHead> 32778: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)); 32778: _M_tail(*this)._M_assign( 32778: std::move(_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))); 32778: } 32778: 32778: protected: 32778: void 32778: _M_swap(_Tuple_impl& __in) 32778: { 32778: using std::swap; 32778: swap(_M_head(*this), _M_head(__in)); 32778: _Inherited::_M_swap(_M_tail(__in)); 32778: } 32778: }; 32778: 32778: 32778: template 32778: struct _Tuple_impl<_Idx, _Head> 32778: : private _Head_base<_Idx, _Head> 32778: { 32778: template friend class _Tuple_impl; 32778: 32778: typedef _Head_base<_Idx, _Head> _Base; 32778: 32778: static constexpr _Head& 32778: _M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 32778: 32778: static constexpr const _Head& 32778: _M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 32778: 32778: constexpr _Tuple_impl() 32778: : _Base() { } 32778: 32778: explicit 32778: constexpr _Tuple_impl(const _Head& __head) 32778: : _Base(__head) { } 32778: 32778: template 32778: explicit 32778: constexpr _Tuple_impl(_UHead&& __head) 32778: : _Base(std::forward<_UHead>(__head)) { } 32778: 32778: constexpr _Tuple_impl(const _Tuple_impl&) = default; 32778: 32778: 32778: 32778: _Tuple_impl& operator=(const _Tuple_impl&) = delete; 32778: 32778: constexpr 32778: _Tuple_impl(_Tuple_impl&& __in) 32778: noexcept(is_nothrow_move_constructible<_Head>::value) 32778: : _Base(std::forward<_Head>(_M_head(__in))) { } 32778: 32778: template 32778: constexpr _Tuple_impl(const _Tuple_impl<_Idx, _UHead>& __in) 32778: : _Base(_Tuple_impl<_Idx, _UHead>::_M_head(__in)) { } 32778: 32778: template 32778: constexpr _Tuple_impl(_Tuple_impl<_Idx, _UHead>&& __in) 32778: : _Base(std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) 32778: { } 32778: 32778: template 32778: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) 32778: : _Base(__tag, __use_alloc<_Head>(__a)) { } 32778: 32778: template 32778: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 32778: const _Head& __head) 32778: : _Base(__use_alloc<_Head, _Alloc, _Head>(__a), __head) { } 32778: 32778: template 32778: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 32778: _UHead&& __head) 32778: : _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 32778: std::forward<_UHead>(__head)) { } 32778: 32778: template 32778: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 32778: const _Tuple_impl& __in) 32778: : _Base(__use_alloc<_Head, _Alloc, _Head>(__a), _M_head(__in)) { } 32778: 32778: template 32778: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 32778: _Tuple_impl&& __in) 32778: : _Base(__use_alloc<_Head, _Alloc, _Head>(__a), 32778: std::forward<_Head>(_M_head(__in))) { } 32778: 32778: template 32778: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 32778: const _Tuple_impl<_Idx, _UHead>& __in) 32778: : _Base(__use_alloc<_Head, _Alloc, _Head>(__a), 32778: _Tuple_impl<_Idx, _UHead>::_M_head(__in)) { } 32778: 32778: template 32778: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 32778: _Tuple_impl<_Idx, _UHead>&& __in) 32778: : _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 32778: std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) 32778: { } 32778: 32778: template 32778: void 32778: _M_assign(const _Tuple_impl<_Idx, _UHead>& __in) 32778: { 32778: _M_head(*this) = _Tuple_impl<_Idx, _UHead>::_M_head(__in); 32778: } 32778: 32778: template 32778: void 32778: _M_assign(_Tuple_impl<_Idx, _UHead>&& __in) 32778: { 32778: _M_head(*this) 32778: = std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in)); 32778: } 32778: 32778: protected: 32778: void 32778: _M_swap(_Tuple_impl& __in) 32778: { 32778: using std::swap; 32778: swap(_M_head(*this), _M_head(__in)); 32778: } 32778: }; 32778: 32778: 32778: 32778: template 32778: struct _TC 32778: { 32778: template 32778: static constexpr bool _ConstructibleTuple() 32778: { 32778: return __and_...>::value; 32778: } 32778: 32778: template 32778: static constexpr bool _ImplicitlyConvertibleTuple() 32778: { 32778: return __and_...>::value; 32778: } 32778: 32778: template 32778: static constexpr bool _MoveConstructibleTuple() 32778: { 32778: return __and_...>::value; 32778: } 32778: 32778: template 32778: static constexpr bool _ImplicitlyMoveConvertibleTuple() 32778: { 32778: return __and_...>::value; 32778: } 32778: 32778: template 32778: static constexpr bool _NonNestedTuple() 32778: { 32778: return __and_<__not_, 32778: __remove_cvref_t<_SrcTuple>>>, 32778: __not_>, 32778: __not_> 32778: >::value; 32778: } 32778: 32778: template 32778: static constexpr bool _NotSameTuple() 32778: { 32778: return __not_, 32778: __remove_cvref_t<_UElements>...>>::value; 32778: } 32778: }; 32778: 32778: template 32778: struct _TC 32778: { 32778: template 32778: static constexpr bool _ConstructibleTuple() 32778: { 32778: return false; 32778: } 32778: 32778: template 32778: static constexpr bool _ImplicitlyConvertibleTuple() 32778: { 32778: return false; 32778: } 32778: 32778: template 32778: static constexpr bool _MoveConstructibleTuple() 32778: { 32778: return false; 32778: } 32778: 32778: template 32778: static constexpr bool _ImplicitlyMoveConvertibleTuple() 32778: { 32778: return false; 32778: } 32778: 32778: template 32778: static constexpr bool _NonNestedTuple() 32778: { 32778: return true; 32778: } 32778: 32778: template 32778: static constexpr bool _NotSameTuple() 32778: { 32778: return true; 32778: } 32778: }; 32778: 32778: 32778: template 32778: class tuple : public _Tuple_impl<0, _Elements...> 32778: { 32778: typedef _Tuple_impl<0, _Elements...> _Inherited; 32778: 32778: 32778: 32778: template 32778: struct _TC2 32778: { 32778: static constexpr bool _DefaultConstructibleTuple() 32778: { 32778: return __and_...>::value; 32778: } 32778: static constexpr bool _ImplicitlyDefaultConstructibleTuple() 32778: { 32778: return __and_<__is_implicitly_default_constructible<_Elements>...> 32778: ::value; 32778: } 32778: }; 32778: 32778: template 32778: static constexpr 32778: __enable_if_t 32778: __assignable() 32778: { return __and_...>::value; } 32778: 32778: template 32778: static constexpr bool __nothrow_assignable() 32778: { 32778: return 32778: __and_...>::value; 32778: } 32778: 32778: public: 32778: template:: 32778: _ImplicitlyDefaultConstructibleTuple(), 32778: bool>::type = true> 32778: constexpr tuple() 32778: : _Inherited() { } 32778: 32778: template:: 32778: _DefaultConstructibleTuple() 32778: && 32778: !_TC2<_Dummy>:: 32778: _ImplicitlyDefaultConstructibleTuple(), 32778: bool>::type = false> 32778: explicit constexpr tuple() 32778: : _Inherited() { } 32778: 32778: 32778: 32778: template using _TCC = 32778: _TC::value, 32778: _Elements...>; 32778: 32778: template::template 32778: _ConstructibleTuple<_Elements...>() 32778: && _TCC<_Dummy>::template 32778: _ImplicitlyConvertibleTuple<_Elements...>() 32778: && (sizeof...(_Elements) >= 1), 32778: bool>::type=true> 32778: constexpr tuple(const _Elements&... __elements) 32778: : _Inherited(__elements...) { } 32778: 32778: template::template 32778: _ConstructibleTuple<_Elements...>() 32778: && !_TCC<_Dummy>::template 32778: _ImplicitlyConvertibleTuple<_Elements...>() 32778: && (sizeof...(_Elements) >= 1), 32778: bool>::type=false> 32778: explicit constexpr tuple(const _Elements&... __elements) 32778: : _Inherited(__elements...) { } 32778: 32778: 32778: 32778: template using _TMC = 32778: _TC<(sizeof...(_Elements) == sizeof...(_UElements)) 32778: && (_TC<(sizeof...(_UElements)==1), _Elements...>:: 32778: template _NotSameTuple<_UElements...>()), 32778: _Elements...>; 32778: 32778: 32778: 32778: template using _TMCT = 32778: _TC<(sizeof...(_Elements) == sizeof...(_UElements)) 32778: && !is_same, 32778: tuple<_UElements...>>::value, 32778: _Elements...>; 32778: 32778: template::template 32778: _MoveConstructibleTuple<_UElements...>() 32778: && _TMC<_UElements...>::template 32778: _ImplicitlyMoveConvertibleTuple<_UElements...>() 32778: && (sizeof...(_Elements) >= 1), 32778: bool>::type=true> 32778: constexpr tuple(_UElements&&... __elements) 32778: : _Inherited(std::forward<_UElements>(__elements)...) { } 32778: 32778: template::template 32778: _MoveConstructibleTuple<_UElements...>() 32778: && !_TMC<_UElements...>::template 32778: _ImplicitlyMoveConvertibleTuple<_UElements...>() 32778: && (sizeof...(_Elements) >= 1), 32778: bool>::type=false> 32778: explicit constexpr tuple(_UElements&&... __elements) 32778: : _Inherited(std::forward<_UElements>(__elements)...) { } 32778: 32778: constexpr tuple(const tuple&) = default; 32778: 32778: constexpr tuple(tuple&&) = default; 32778: 32778: 32778: 32778: template using _TNTC = 32778: _TC::value && sizeof...(_Elements) == 1, 32778: _Elements...>; 32778: 32778: template::template 32778: _ConstructibleTuple<_UElements...>() 32778: && _TMCT<_UElements...>::template 32778: _ImplicitlyConvertibleTuple<_UElements...>() 32778: && _TNTC<_Dummy>::template 32778: _NonNestedTuple&>(), 32778: bool>::type=true> 32778: constexpr tuple(const tuple<_UElements...>& __in) 32778: : _Inherited(static_cast&>(__in)) 32778: { } 32778: 32778: template::template 32778: _ConstructibleTuple<_UElements...>() 32778: && !_TMCT<_UElements...>::template 32778: _ImplicitlyConvertibleTuple<_UElements...>() 32778: && _TNTC<_Dummy>::template 32778: _NonNestedTuple&>(), 32778: bool>::type=false> 32778: explicit constexpr tuple(const tuple<_UElements...>& __in) 32778: : _Inherited(static_cast&>(__in)) 32778: { } 32778: 32778: template::template 32778: _MoveConstructibleTuple<_UElements...>() 32778: && _TMCT<_UElements...>::template 32778: _ImplicitlyMoveConvertibleTuple<_UElements...>() 32778: && _TNTC<_Dummy>::template 32778: _NonNestedTuple&&>(), 32778: bool>::type=true> 32778: constexpr tuple(tuple<_UElements...>&& __in) 32778: : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) { } 32778: 32778: template::template 32778: _MoveConstructibleTuple<_UElements...>() 32778: && !_TMCT<_UElements...>::template 32778: _ImplicitlyMoveConvertibleTuple<_UElements...>() 32778: && _TNTC<_Dummy>::template 32778: _NonNestedTuple&&>(), 32778: bool>::type=false> 32778: explicit constexpr tuple(tuple<_UElements...>&& __in) 32778: : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) { } 32778: 32778: 32778: 32778: template 32778: tuple(allocator_arg_t __tag, const _Alloc& __a) 32778: : _Inherited(__tag, __a) { } 32778: 32778: template::template 32778: _ConstructibleTuple<_Elements...>() 32778: && _TCC<_Dummy>::template 32778: _ImplicitlyConvertibleTuple<_Elements...>(), 32778: bool>::type=true> 32778: tuple(allocator_arg_t __tag, const _Alloc& __a, 32778: const _Elements&... __elements) 32778: : _Inherited(__tag, __a, __elements...) { } 32778: 32778: template::template 32778: _ConstructibleTuple<_Elements...>() 32778: && !_TCC<_Dummy>::template 32778: _ImplicitlyConvertibleTuple<_Elements...>(), 32778: bool>::type=false> 32778: explicit tuple(allocator_arg_t __tag, const _Alloc& __a, 32778: const _Elements&... __elements) 32778: : _Inherited(__tag, __a, __elements...) { } 32778: 32778: template::template 32778: _MoveConstructibleTuple<_UElements...>() 32778: && _TMC<_UElements...>::template 32778: _ImplicitlyMoveConvertibleTuple<_UElements...>(), 32778: bool>::type=true> 32778: tuple(allocator_arg_t __tag, const _Alloc& __a, 32778: _UElements&&... __elements) 32778: : _Inherited(__tag, __a, std::forward<_UElements>(__elements)...) 32778: { } 32778: 32778: template::template 32778: _MoveConstructibleTuple<_UElements...>() 32778: && !_TMC<_UElements...>::template 32778: _ImplicitlyMoveConvertibleTuple<_UElements...>(), 32778: bool>::type=false> 32778: explicit tuple(allocator_arg_t __tag, const _Alloc& __a, 32778: _UElements&&... __elements) 32778: : _Inherited(__tag, __a, std::forward<_UElements>(__elements)...) 32778: { } 32778: 32778: template 32778: tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in) 32778: : _Inherited(__tag, __a, static_cast(__in)) { } 32778: 32778: template 32778: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in) 32778: : _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { } 32778: 32778: template::template 32778: _ConstructibleTuple<_UElements...>() 32778: && _TMCT<_UElements...>::template 32778: _ImplicitlyConvertibleTuple<_UElements...>() 32778: && _TNTC<_Dummy>::template 32778: _NonNestedTuple&>(), 32778: bool>::type=true> 32778: tuple(allocator_arg_t __tag, const _Alloc& __a, 32778: const tuple<_UElements...>& __in) 32778: : _Inherited(__tag, __a, 32778: static_cast&>(__in)) 32778: { } 32778: 32778: template::template 32778: _ConstructibleTuple<_UElements...>() 32778: && !_TMCT<_UElements...>::template 32778: _ImplicitlyConvertibleTuple<_UElements...>() 32778: && _TNTC<_Dummy>::template 32778: _NonNestedTuple&>(), 32778: bool>::type=false> 32778: explicit tuple(allocator_arg_t __tag, const _Alloc& __a, 32778: const tuple<_UElements...>& __in) 32778: : _Inherited(__tag, __a, 32778: static_cast&>(__in)) 32778: { } 32778: 32778: template::template 32778: _MoveConstructibleTuple<_UElements...>() 32778: && _TMCT<_UElements...>::template 32778: _ImplicitlyMoveConvertibleTuple<_UElements...>() 32778: && _TNTC<_Dummy>::template 32778: _NonNestedTuple&&>(), 32778: bool>::type=true> 32778: tuple(allocator_arg_t __tag, const _Alloc& __a, 32778: tuple<_UElements...>&& __in) 32778: : _Inherited(__tag, __a, 32778: static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 32778: { } 32778: 32778: template::template 32778: _MoveConstructibleTuple<_UElements...>() 32778: && !_TMCT<_UElements...>::template 32778: _ImplicitlyMoveConvertibleTuple<_UElements...>() 32778: && _TNTC<_Dummy>::template 32778: _NonNestedTuple&&>(), 32778: bool>::type=false> 32778: explicit tuple(allocator_arg_t __tag, const _Alloc& __a, 32778: tuple<_UElements...>&& __in) 32778: : _Inherited(__tag, __a, 32778: static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 32778: { } 32778: 32778: 32778: 32778: tuple& 32778: operator=(typename conditional<__assignable(), 32778: const tuple&, 32778: const __nonesuch_no_braces&>::type __in) 32778: noexcept(__nothrow_assignable()) 32778: { 32778: this->_M_assign(__in); 32778: return *this; 32778: } 32778: 32778: tuple& 32778: operator=(typename conditional<__assignable<_Elements...>(), 32778: tuple&&, 32778: __nonesuch_no_braces&&>::type __in) 32778: noexcept(__nothrow_assignable<_Elements...>()) 32778: { 32778: this->_M_assign(std::move(__in)); 32778: return *this; 32778: } 32778: 32778: template 32778: __enable_if_t<__assignable(), tuple&> 32778: operator=(const tuple<_UElements...>& __in) 32778: noexcept(__nothrow_assignable()) 32778: { 32778: this->_M_assign(__in); 32778: return *this; 32778: } 32778: 32778: template 32778: __enable_if_t<__assignable<_UElements...>(), tuple&> 32778: operator=(tuple<_UElements...>&& __in) 32778: noexcept(__nothrow_assignable<_UElements...>()) 32778: { 32778: this->_M_assign(std::move(__in)); 32778: return *this; 32778: } 32778: 32778: 32778: void 32778: swap(tuple& __in) 32778: noexcept(__and_<__is_nothrow_swappable<_Elements>...>::value) 32778: { _Inherited::_M_swap(__in); } 32778: }; 32778: # 875 "/usr/include/c++/9/tuple" 3 32778: template<> 32778: class tuple<> 32778: { 32778: public: 32778: void swap(tuple&) noexcept { } 32778: 32778: 32778: tuple() = default; 32778: 32778: template 32778: tuple(allocator_arg_t, const _Alloc&) { } 32778: template 32778: tuple(allocator_arg_t, const _Alloc&, const tuple&) { } 32778: }; 32778: 32778: 32778: 32778: template 32778: class tuple<_T1, _T2> : public _Tuple_impl<0, _T1, _T2> 32778: { 32778: typedef _Tuple_impl<0, _T1, _T2> _Inherited; 32778: 32778: template 32778: static constexpr bool __assignable() 32778: { 32778: return __and_, 32778: is_assignable<_T2&, _U2>>::value; 32778: } 32778: 32778: template 32778: static constexpr bool __nothrow_assignable() 32778: { 32778: return __and_, 32778: is_nothrow_assignable<_T2&, _U2>>::value; 32778: } 32778: 32778: public: 32778: template , 32778: __is_implicitly_default_constructible<_U2>> 32778: ::value, bool>::type = true> 32778: constexpr tuple() 32778: : _Inherited() { } 32778: 32778: template , 32778: is_default_constructible<_U2>, 32778: __not_< 32778: __and_<__is_implicitly_default_constructible<_U1>, 32778: __is_implicitly_default_constructible<_U2>>>> 32778: ::value, bool>::type = false> 32778: explicit constexpr tuple() 32778: : _Inherited() { } 32778: 32778: 32778: 32778: template using _TCC = 32778: _TC::value, _T1, _T2>; 32778: 32778: template::template 32778: _ConstructibleTuple<_T1, _T2>() 32778: && _TCC<_Dummy>::template 32778: _ImplicitlyConvertibleTuple<_T1, _T2>(), 32778: bool>::type = true> 32778: constexpr tuple(const _T1& __a1, const _T2& __a2) 32778: : _Inherited(__a1, __a2) { } 32778: 32778: template::template 32778: _ConstructibleTuple<_T1, _T2>() 32778: && !_TCC<_Dummy>::template 32778: _ImplicitlyConvertibleTuple<_T1, _T2>(), 32778: bool>::type = false> 32778: explicit constexpr tuple(const _T1& __a1, const _T2& __a2) 32778: : _Inherited(__a1, __a2) { } 32778: 32778: 32778: 32778: using _TMC = _TC; 32778: 32778: template() 32778: && _TMC::template 32778: _ImplicitlyMoveConvertibleTuple<_U1, _U2>() 32778: && !is_same<__remove_cvref_t<_U1>, allocator_arg_t>::value, 32778: bool>::type = true> 32778: constexpr tuple(_U1&& __a1, _U2&& __a2) 32778: : _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) { } 32778: 32778: template() 32778: && !_TMC::template 32778: _ImplicitlyMoveConvertibleTuple<_U1, _U2>() 32778: && !is_same<__remove_cvref_t<_U1>, allocator_arg_t>::value, 32778: bool>::type = false> 32778: explicit constexpr tuple(_U1&& __a1, _U2&& __a2) 32778: : _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) { } 32778: 32778: constexpr tuple(const tuple&) = default; 32778: 32778: constexpr tuple(tuple&&) = default; 32778: 32778: template() 32778: && _TMC::template 32778: _ImplicitlyConvertibleTuple<_U1, _U2>(), 32778: bool>::type = true> 32778: constexpr tuple(const tuple<_U1, _U2>& __in) 32778: : _Inherited(static_cast&>(__in)) { } 32778: 32778: template() 32778: && !_TMC::template 32778: _ImplicitlyConvertibleTuple<_U1, _U2>(), 32778: bool>::type = false> 32778: explicit constexpr tuple(const tuple<_U1, _U2>& __in) 32778: : _Inherited(static_cast&>(__in)) { } 32778: 32778: template() 32778: && _TMC::template 32778: _ImplicitlyMoveConvertibleTuple<_U1, _U2>(), 32778: bool>::type = true> 32778: constexpr tuple(tuple<_U1, _U2>&& __in) 32778: : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) { } 32778: 32778: template() 32778: && !_TMC::template 32778: _ImplicitlyMoveConvertibleTuple<_U1, _U2>(), 32778: bool>::type = false> 32778: explicit constexpr tuple(tuple<_U1, _U2>&& __in) 32778: : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) { } 32778: 32778: template() 32778: && _TMC::template 32778: _ImplicitlyConvertibleTuple<_U1, _U2>(), 32778: bool>::type = true> 32778: constexpr tuple(const pair<_U1, _U2>& __in) 32778: : _Inherited(__in.first, __in.second) { } 32778: 32778: template() 32778: && !_TMC::template 32778: _ImplicitlyConvertibleTuple<_U1, _U2>(), 32778: bool>::type = false> 32778: explicit constexpr tuple(const pair<_U1, _U2>& __in) 32778: : _Inherited(__in.first, __in.second) { } 32778: 32778: template() 32778: && _TMC::template 32778: _ImplicitlyMoveConvertibleTuple<_U1, _U2>(), 32778: bool>::type = true> 32778: constexpr tuple(pair<_U1, _U2>&& __in) 32778: : _Inherited(std::forward<_U1>(__in.first), 32778: std::forward<_U2>(__in.second)) { } 32778: 32778: template() 32778: && !_TMC::template 32778: _ImplicitlyMoveConvertibleTuple<_U1, _U2>(), 32778: bool>::type = false> 32778: explicit constexpr tuple(pair<_U1, _U2>&& __in) 32778: : _Inherited(std::forward<_U1>(__in.first), 32778: std::forward<_U2>(__in.second)) { } 32778: 32778: 32778: 32778: template 32778: tuple(allocator_arg_t __tag, const _Alloc& __a) 32778: : _Inherited(__tag, __a) { } 32778: 32778: template::template 32778: _ConstructibleTuple<_T1, _T2>() 32778: && _TCC<_Dummy>::template 32778: _ImplicitlyConvertibleTuple<_T1, _T2>(), 32778: bool>::type=true> 32778: 32778: tuple(allocator_arg_t __tag, const _Alloc& __a, 32778: const _T1& __a1, const _T2& __a2) 32778: : _Inherited(__tag, __a, __a1, __a2) { } 32778: 32778: template::template 32778: _ConstructibleTuple<_T1, _T2>() 32778: && !_TCC<_Dummy>::template 32778: _ImplicitlyConvertibleTuple<_T1, _T2>(), 32778: bool>::type=false> 32778: 32778: explicit tuple(allocator_arg_t __tag, const _Alloc& __a, 32778: const _T1& __a1, const _T2& __a2) 32778: : _Inherited(__tag, __a, __a1, __a2) { } 32778: 32778: template() 32778: && _TMC::template 32778: _ImplicitlyMoveConvertibleTuple<_U1, _U2>(), 32778: bool>::type = true> 32778: tuple(allocator_arg_t __tag, const _Alloc& __a, _U1&& __a1, _U2&& __a2) 32778: : _Inherited(__tag, __a, std::forward<_U1>(__a1), 32778: std::forward<_U2>(__a2)) { } 32778: 32778: template() 32778: && !_TMC::template 32778: _ImplicitlyMoveConvertibleTuple<_U1, _U2>(), 32778: bool>::type = false> 32778: explicit tuple(allocator_arg_t __tag, const _Alloc& __a, 32778: _U1&& __a1, _U2&& __a2) 32778: : _Inherited(__tag, __a, std::forward<_U1>(__a1), 32778: std::forward<_U2>(__a2)) { } 32778: 32778: template 32778: tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in) 32778: : _Inherited(__tag, __a, static_cast(__in)) { } 32778: 32778: template 32778: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in) 32778: : _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { } 32778: 32778: template() 32778: && _TMC::template 32778: _ImplicitlyConvertibleTuple<_U1, _U2>(), 32778: bool>::type = true> 32778: tuple(allocator_arg_t __tag, const _Alloc& __a, 32778: const tuple<_U1, _U2>& __in) 32778: : _Inherited(__tag, __a, 32778: static_cast&>(__in)) 32778: { } 32778: 32778: template() 32778: && !_TMC::template 32778: _ImplicitlyConvertibleTuple<_U1, _U2>(), 32778: bool>::type = false> 32778: explicit tuple(allocator_arg_t __tag, const _Alloc& __a, 32778: const tuple<_U1, _U2>& __in) 32778: : _Inherited(__tag, __a, 32778: static_cast&>(__in)) 32778: { } 32778: 32778: template() 32778: && _TMC::template 32778: _ImplicitlyMoveConvertibleTuple<_U1, _U2>(), 32778: bool>::type = true> 32778: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_U1, _U2>&& __in) 32778: : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 32778: { } 32778: 32778: template() 32778: && !_TMC::template 32778: _ImplicitlyMoveConvertibleTuple<_U1, _U2>(), 32778: bool>::type = false> 32778: explicit tuple(allocator_arg_t __tag, const _Alloc& __a, 32778: tuple<_U1, _U2>&& __in) 32778: : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 32778: { } 32778: 32778: template() 32778: && _TMC::template 32778: _ImplicitlyConvertibleTuple<_U1, _U2>(), 32778: bool>::type = true> 32778: tuple(allocator_arg_t __tag, const _Alloc& __a, 32778: const pair<_U1, _U2>& __in) 32778: : _Inherited(__tag, __a, __in.first, __in.second) { } 32778: 32778: template() 32778: && !_TMC::template 32778: _ImplicitlyConvertibleTuple<_U1, _U2>(), 32778: bool>::type = false> 32778: explicit tuple(allocator_arg_t __tag, const _Alloc& __a, 32778: const pair<_U1, _U2>& __in) 32778: : _Inherited(__tag, __a, __in.first, __in.second) { } 32778: 32778: template() 32778: && _TMC::template 32778: _ImplicitlyMoveConvertibleTuple<_U1, _U2>(), 32778: bool>::type = true> 32778: tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __in) 32778: : _Inherited(__tag, __a, std::forward<_U1>(__in.first), 32778: std::forward<_U2>(__in.second)) { } 32778: 32778: template() 32778: && !_TMC::template 32778: _ImplicitlyMoveConvertibleTuple<_U1, _U2>(), 32778: bool>::type = false> 32778: explicit tuple(allocator_arg_t __tag, const _Alloc& __a, 32778: pair<_U1, _U2>&& __in) 32778: : _Inherited(__tag, __a, std::forward<_U1>(__in.first), 32778: std::forward<_U2>(__in.second)) { } 32778: 32778: tuple& 32778: operator=(typename conditional<__assignable(), 32778: const tuple&, 32778: const __nonesuch_no_braces&>::type __in) 32778: noexcept(__nothrow_assignable()) 32778: { 32778: this->_M_assign(__in); 32778: return *this; 32778: } 32778: 32778: tuple& 32778: operator=(typename conditional<__assignable<_T1, _T2>(), 32778: tuple&&, 32778: __nonesuch_no_braces&&>::type __in) 32778: noexcept(__nothrow_assignable<_T1, _T2>()) 32778: { 32778: this->_M_assign(std::move(__in)); 32778: return *this; 32778: } 32778: 32778: template 32778: __enable_if_t<__assignable(), tuple&> 32778: operator=(const tuple<_U1, _U2>& __in) 32778: noexcept(__nothrow_assignable()) 32778: { 32778: this->_M_assign(__in); 32778: return *this; 32778: } 32778: 32778: template 32778: __enable_if_t<__assignable<_U1, _U2>(), tuple&> 32778: operator=(tuple<_U1, _U2>&& __in) 32778: noexcept(__nothrow_assignable<_U1, _U2>()) 32778: { 32778: this->_M_assign(std::move(__in)); 32778: return *this; 32778: } 32778: 32778: template 32778: __enable_if_t<__assignable(), tuple&> 32778: operator=(const pair<_U1, _U2>& __in) 32778: noexcept(__nothrow_assignable()) 32778: { 32778: this->_M_head(*this) = __in.first; 32778: this->_M_tail(*this)._M_head(*this) = __in.second; 32778: return *this; 32778: } 32778: 32778: template 32778: __enable_if_t<__assignable<_U1, _U2>(), tuple&> 32778: operator=(pair<_U1, _U2>&& __in) 32778: noexcept(__nothrow_assignable<_U1, _U2>()) 32778: { 32778: this->_M_head(*this) = std::forward<_U1>(__in.first); 32778: this->_M_tail(*this)._M_head(*this) = std::forward<_U2>(__in.second); 32778: return *this; 32778: } 32778: 32778: void 32778: swap(tuple& __in) 32778: noexcept(__and_<__is_nothrow_swappable<_T1>, 32778: __is_nothrow_swappable<_T2>>::value) 32778: { _Inherited::_M_swap(__in); } 32778: }; 32778: 32778: 32778: 32778: template 32778: struct tuple_size> 32778: : public integral_constant { }; 32778: # 1284 "/usr/include/c++/9/tuple" 3 32778: template 32778: struct tuple_element<__i, tuple<_Head, _Tail...> > 32778: : tuple_element<__i - 1, tuple<_Tail...> > { }; 32778: 32778: 32778: 32778: 32778: template 32778: struct tuple_element<0, tuple<_Head, _Tail...> > 32778: { 32778: typedef _Head type; 32778: }; 32778: 32778: 32778: 32778: 32778: template 32778: struct tuple_element<__i, tuple<>> 32778: { 32778: static_assert(__i < tuple_size>::value, 32778: "tuple index is in range"); 32778: }; 32778: 32778: template 32778: constexpr _Head& 32778: __get_helper(_Tuple_impl<__i, _Head, _Tail...>& __t) noexcept 32778: { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } 32778: 32778: template 32778: constexpr const _Head& 32778: __get_helper(const _Tuple_impl<__i, _Head, _Tail...>& __t) noexcept 32778: { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } 32778: 32778: 32778: template 32778: constexpr __tuple_element_t<__i, tuple<_Elements...>>& 32778: get(tuple<_Elements...>& __t) noexcept 32778: { return std::__get_helper<__i>(__t); } 32778: 32778: 32778: template 32778: constexpr const __tuple_element_t<__i, tuple<_Elements...>>& 32778: get(const tuple<_Elements...>& __t) noexcept 32778: { return std::__get_helper<__i>(__t); } 32778: 32778: 32778: template 32778: constexpr __tuple_element_t<__i, tuple<_Elements...>>&& 32778: get(tuple<_Elements...>&& __t) noexcept 32778: { 32778: typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; 32778: return std::forward<__element_type&&>(std::get<__i>(__t)); 32778: } 32778: 32778: 32778: template 32778: constexpr const __tuple_element_t<__i, tuple<_Elements...>>&& 32778: get(const tuple<_Elements...>&& __t) noexcept 32778: { 32778: typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; 32778: return std::forward(std::get<__i>(__t)); 32778: } 32778: # 1388 "/usr/include/c++/9/tuple" 3 32778: template 32778: struct __tuple_compare 32778: { 32778: static constexpr bool 32778: __eq(const _Tp& __t, const _Up& __u) 32778: { 32778: return bool(std::get<__i>(__t) == std::get<__i>(__u)) 32778: && __tuple_compare<_Tp, _Up, __i + 1, __size>::__eq(__t, __u); 32778: } 32778: 32778: static constexpr bool 32778: __less(const _Tp& __t, const _Up& __u) 32778: { 32778: return bool(std::get<__i>(__t) < std::get<__i>(__u)) 32778: || (!bool(std::get<__i>(__u) < std::get<__i>(__t)) 32778: && __tuple_compare<_Tp, _Up, __i + 1, __size>::__less(__t, __u)); 32778: } 32778: }; 32778: 32778: template 32778: struct __tuple_compare<_Tp, _Up, __size, __size> 32778: { 32778: static constexpr bool 32778: __eq(const _Tp&, const _Up&) { return true; } 32778: 32778: static constexpr bool 32778: __less(const _Tp&, const _Up&) { return false; } 32778: }; 32778: 32778: template 32778: constexpr bool 32778: operator==(const tuple<_TElements...>& __t, 32778: const tuple<_UElements...>& __u) 32778: { 32778: static_assert(sizeof...(_TElements) == sizeof...(_UElements), 32778: "tuple objects can only be compared if they have equal sizes."); 32778: using __compare = __tuple_compare, 32778: tuple<_UElements...>, 32778: 0, sizeof...(_TElements)>; 32778: return __compare::__eq(__t, __u); 32778: } 32778: 32778: template 32778: constexpr bool 32778: operator<(const tuple<_TElements...>& __t, 32778: const tuple<_UElements...>& __u) 32778: { 32778: static_assert(sizeof...(_TElements) == sizeof...(_UElements), 32778: "tuple objects can only be compared if they have equal sizes."); 32778: using __compare = __tuple_compare, 32778: tuple<_UElements...>, 32778: 0, sizeof...(_TElements)>; 32778: return __compare::__less(__t, __u); 32778: } 32778: 32778: template 32778: constexpr bool 32778: operator!=(const tuple<_TElements...>& __t, 32778: const tuple<_UElements...>& __u) 32778: { return !(__t == __u); } 32778: 32778: template 32778: constexpr bool 32778: operator>(const tuple<_TElements...>& __t, 32778: const tuple<_UElements...>& __u) 32778: { return __u < __t; } 32778: 32778: template 32778: constexpr bool 32778: operator<=(const tuple<_TElements...>& __t, 32778: const tuple<_UElements...>& __u) 32778: { return !(__u < __t); } 32778: 32778: template 32778: constexpr bool 32778: operator>=(const tuple<_TElements...>& __t, 32778: const tuple<_UElements...>& __u) 32778: { return !(__t < __u); } 32778: 32778: 32778: template 32778: constexpr tuple::__type...> 32778: make_tuple(_Elements&&... __args) 32778: { 32778: typedef tuple::__type...> 32778: __result_type; 32778: return __result_type(std::forward<_Elements>(__args)...); 32778: } 32778: 32778: 32778: 32778: 32778: template 32778: constexpr tuple<_Elements&&...> 32778: forward_as_tuple(_Elements&&... __args) noexcept 32778: { return tuple<_Elements&&...>(std::forward<_Elements>(__args)...); } 32778: 32778: template 32778: struct __make_tuple_impl; 32778: 32778: template 32778: struct __make_tuple_impl<_Idx, tuple<_Tp...>, _Tuple, _Nm> 32778: : __make_tuple_impl<_Idx + 1, 32778: tuple<_Tp..., __tuple_element_t<_Idx, _Tuple>>, 32778: _Tuple, _Nm> 32778: { }; 32778: 32778: template 32778: struct __make_tuple_impl<_Nm, tuple<_Tp...>, _Tuple, _Nm> 32778: { 32778: typedef tuple<_Tp...> __type; 32778: }; 32778: 32778: template 32778: struct __do_make_tuple 32778: : __make_tuple_impl<0, tuple<>, _Tuple, std::tuple_size<_Tuple>::value> 32778: { }; 32778: 32778: 32778: template 32778: struct __make_tuple 32778: : public __do_make_tuple<__remove_cvref_t<_Tuple>> 32778: { }; 32778: 32778: 32778: template 32778: struct __combine_tuples; 32778: 32778: template<> 32778: struct __combine_tuples<> 32778: { 32778: typedef tuple<> __type; 32778: }; 32778: 32778: template 32778: struct __combine_tuples> 32778: { 32778: typedef tuple<_Ts...> __type; 32778: }; 32778: 32778: template 32778: struct __combine_tuples, tuple<_T2s...>, _Rem...> 32778: { 32778: typedef typename __combine_tuples, 32778: _Rem...>::__type __type; 32778: }; 32778: 32778: 32778: template 32778: struct __tuple_cat_result 32778: { 32778: typedef typename __combine_tuples 32778: ::__type...>::__type __type; 32778: }; 32778: 32778: 32778: 32778: template 32778: struct __make_1st_indices; 32778: 32778: template<> 32778: struct __make_1st_indices<> 32778: { 32778: typedef std::_Index_tuple<> __type; 32778: }; 32778: 32778: template 32778: struct __make_1st_indices<_Tp, _Tpls...> 32778: { 32778: typedef typename std::_Build_index_tuple::type>::value>::__type __type; 32778: }; 32778: 32778: 32778: 32778: 32778: template 32778: struct __tuple_concater; 32778: 32778: template 32778: struct __tuple_concater<_Ret, std::_Index_tuple<_Is...>, _Tp, _Tpls...> 32778: { 32778: template 32778: static constexpr _Ret 32778: _S_do(_Tp&& __tp, _Tpls&&... __tps, _Us&&... __us) 32778: { 32778: typedef typename __make_1st_indices<_Tpls...>::__type __idx; 32778: typedef __tuple_concater<_Ret, __idx, _Tpls...> __next; 32778: return __next::_S_do(std::forward<_Tpls>(__tps)..., 32778: std::forward<_Us>(__us)..., 32778: std::get<_Is>(std::forward<_Tp>(__tp))...); 32778: } 32778: }; 32778: 32778: template 32778: struct __tuple_concater<_Ret, std::_Index_tuple<>> 32778: { 32778: template 32778: static constexpr _Ret 32778: _S_do(_Us&&... __us) 32778: { 32778: return _Ret(std::forward<_Us>(__us)...); 32778: } 32778: }; 32778: 32778: 32778: template...>::value>::type> 32778: constexpr auto 32778: tuple_cat(_Tpls&&... __tpls) 32778: -> typename __tuple_cat_result<_Tpls...>::__type 32778: { 32778: typedef typename __tuple_cat_result<_Tpls...>::__type __ret; 32778: typedef typename __make_1st_indices<_Tpls...>::__type __idx; 32778: typedef __tuple_concater<__ret, __idx, _Tpls...> __concater; 32778: return __concater::_S_do(std::forward<_Tpls>(__tpls)...); 32778: } 32778: 32778: 32778: 32778: 32778: template 32778: constexpr tuple<_Elements&...> 32778: tie(_Elements&... __args) noexcept 32778: { return tuple<_Elements&...>(__args...); } 32778: 32778: 32778: template 32778: inline 32778: 32778: 32778: 32778: 32778: 32778: void 32778: 32778: swap(tuple<_Elements...>& __x, tuple<_Elements...>& __y) 32778: noexcept(noexcept(__x.swap(__y))) 32778: { __x.swap(__y); } 32778: # 1638 "/usr/include/c++/9/tuple" 3 32778: struct _Swallow_assign 32778: { 32778: template 32778: const _Swallow_assign& 32778: operator=(const _Tp&) const 32778: { return *this; } 32778: }; 32778: 32778: 32778: 32778: constexpr _Swallow_assign ignore{}; 32778: 32778: 32778: template 32778: struct uses_allocator, _Alloc> : true_type { }; 32778: 32778: 32778: template 32778: template 32778: inline 32778: pair<_T1, _T2>:: 32778: pair(piecewise_construct_t, 32778: tuple<_Args1...> __first, tuple<_Args2...> __second) 32778: : pair(__first, __second, 32778: typename _Build_index_tuple::__type(), 32778: typename _Build_index_tuple::__type()) 32778: { } 32778: 32778: template 32778: template 32778: inline 32778: pair<_T1, _T2>:: 32778: pair(tuple<_Args1...>& __tuple1, tuple<_Args2...>& __tuple2, 32778: _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>) 32778: : first(std::forward<_Args1>(std::get<_Indexes1>(__tuple1))...), 32778: second(std::forward<_Args2>(std::get<_Indexes2>(__tuple2))...) 32778: { } 32778: # 1718 "/usr/include/c++/9/tuple" 3 32778: 32778: } 32778: # 38 "/usr/include/c++/9/bits/unique_ptr.h" 2 3 32778: 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: #pragma GCC diagnostic push 32778: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 32778: template class auto_ptr; 32778: #pragma GCC diagnostic pop 32778: 32778: 32778: 32778: template 32778: struct default_delete 32778: { 32778: 32778: constexpr default_delete() noexcept = default; 32778: 32778: 32778: 32778: 32778: 32778: 32778: template::value>::type> 32778: default_delete(const default_delete<_Up>&) noexcept { } 32778: 32778: 32778: void 32778: operator()(_Tp* __ptr) const 32778: { 32778: static_assert(!is_void<_Tp>::value, 32778: "can't delete pointer to incomplete type"); 32778: static_assert(sizeof(_Tp)>0, 32778: "can't delete pointer to incomplete type"); 32778: delete __ptr; 32778: } 32778: }; 32778: 32778: 32778: 32778: 32778: template 32778: struct default_delete<_Tp[]> 32778: { 32778: public: 32778: 32778: constexpr default_delete() noexcept = default; 32778: # 104 "/usr/include/c++/9/bits/unique_ptr.h" 3 32778: template::value>::type> 32778: default_delete(const default_delete<_Up[]>&) noexcept { } 32778: 32778: 32778: template 32778: typename enable_if::value>::type 32778: operator()(_Up* __ptr) const 32778: { 32778: static_assert(sizeof(_Tp)>0, 32778: "can't delete pointer to incomplete type"); 32778: delete [] __ptr; 32778: } 32778: }; 32778: 32778: template 32778: class __uniq_ptr_impl 32778: { 32778: template 32778: struct _Ptr 32778: { 32778: using type = _Up*; 32778: }; 32778: 32778: template 32778: struct 32778: _Ptr<_Up, _Ep, __void_t::type::pointer>> 32778: { 32778: using type = typename remove_reference<_Ep>::type::pointer; 32778: }; 32778: 32778: public: 32778: using _DeleterConstraint = enable_if< 32778: __and_<__not_>, 32778: is_default_constructible<_Dp>>::value>; 32778: 32778: using pointer = typename _Ptr<_Tp, _Dp>::type; 32778: 32778: static_assert( !is_rvalue_reference<_Dp>::value, 32778: "unique_ptr's deleter type must be a function object type" 32778: " or an lvalue reference type" ); 32778: 32778: __uniq_ptr_impl() = default; 32778: __uniq_ptr_impl(pointer __p) : _M_t() { _M_ptr() = __p; } 32778: 32778: template 32778: __uniq_ptr_impl(pointer __p, _Del&& __d) 32778: : _M_t(__p, std::forward<_Del>(__d)) { } 32778: 32778: pointer& _M_ptr() { return std::get<0>(_M_t); } 32778: pointer _M_ptr() const { return std::get<0>(_M_t); } 32778: _Dp& _M_deleter() { return std::get<1>(_M_t); } 32778: const _Dp& _M_deleter() const { return std::get<1>(_M_t); } 32778: 32778: void 32778: swap(__uniq_ptr_impl& __rhs) noexcept 32778: { 32778: using std::swap; 32778: swap(this->_M_ptr(), __rhs._M_ptr()); 32778: swap(this->_M_deleter(), __rhs._M_deleter()); 32778: } 32778: 32778: private: 32778: tuple _M_t; 32778: }; 32778: 32778: 32778: template > 32778: class unique_ptr 32778: { 32778: template 32778: using _DeleterConstraint = 32778: typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type; 32778: 32778: __uniq_ptr_impl<_Tp, _Dp> _M_t; 32778: 32778: public: 32778: using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer; 32778: using element_type = _Tp; 32778: using deleter_type = _Dp; 32778: 32778: private: 32778: 32778: 32778: template 32778: using __safe_conversion_up = __and_< 32778: is_convertible::pointer, pointer>, 32778: __not_> 32778: >; 32778: 32778: public: 32778: 32778: 32778: 32778: template> 32778: constexpr unique_ptr() noexcept 32778: : _M_t() 32778: { } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template> 32778: explicit 32778: unique_ptr(pointer __p) noexcept 32778: : _M_t(__p) 32778: { } 32778: # 222 "/usr/include/c++/9/bits/unique_ptr.h" 3 32778: template>> 32778: unique_ptr(pointer __p, const deleter_type& __d) noexcept 32778: : _M_t(__p, __d) { } 32778: # 234 "/usr/include/c++/9/bits/unique_ptr.h" 3 32778: template>> 32778: unique_ptr(pointer __p, 32778: __enable_if_t::value, 32778: _Del&&> __d) noexcept 32778: : _M_t(__p, std::move(__d)) 32778: { } 32778: 32778: template::type> 32778: unique_ptr(pointer, 32778: __enable_if_t::value, 32778: _DelUnref&&>) = delete; 32778: 32778: 32778: template> 32778: constexpr unique_ptr(nullptr_t) noexcept 32778: : _M_t() 32778: { } 32778: 32778: 32778: 32778: 32778: unique_ptr(unique_ptr&& __u) noexcept 32778: : _M_t(__u.release(), std::forward(__u.get_deleter())) { } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template, 32778: typename conditional::value, 32778: is_same<_Ep, _Dp>, 32778: is_convertible<_Ep, _Dp>>::type>> 32778: unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept 32778: : _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter())) 32778: { } 32778: 32778: 32778: #pragma GCC diagnostic push 32778: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 32778: 32778: template, is_same<_Dp, default_delete<_Tp>>>> 32778: unique_ptr(auto_ptr<_Up>&& __u) noexcept; 32778: #pragma GCC diagnostic pop 32778: 32778: 32778: 32778: ~unique_ptr() noexcept 32778: { 32778: static_assert(__is_invocable::value, 32778: "unique_ptr's deleter must be invocable with a pointer"); 32778: auto& __ptr = _M_t._M_ptr(); 32778: if (__ptr != nullptr) 32778: get_deleter()(std::move(__ptr)); 32778: __ptr = pointer(); 32778: } 32778: # 304 "/usr/include/c++/9/bits/unique_ptr.h" 3 32778: unique_ptr& 32778: operator=(unique_ptr&& __u) noexcept 32778: { 32778: reset(__u.release()); 32778: get_deleter() = std::forward(__u.get_deleter()); 32778: return *this; 32778: } 32778: # 319 "/usr/include/c++/9/bits/unique_ptr.h" 3 32778: template 32778: typename enable_if< __and_< 32778: __safe_conversion_up<_Up, _Ep>, 32778: is_assignable 32778: >::value, 32778: unique_ptr&>::type 32778: operator=(unique_ptr<_Up, _Ep>&& __u) noexcept 32778: { 32778: reset(__u.release()); 32778: get_deleter() = std::forward<_Ep>(__u.get_deleter()); 32778: return *this; 32778: } 32778: 32778: 32778: unique_ptr& 32778: operator=(nullptr_t) noexcept 32778: { 32778: reset(); 32778: return *this; 32778: } 32778: 32778: 32778: 32778: 32778: typename add_lvalue_reference::type 32778: operator*() const 32778: { 32778: ; 32778: return *get(); 32778: } 32778: 32778: 32778: pointer 32778: operator->() const noexcept 32778: { 32778: ; 32778: return get(); 32778: } 32778: 32778: 32778: pointer 32778: get() const noexcept 32778: { return _M_t._M_ptr(); } 32778: 32778: 32778: deleter_type& 32778: get_deleter() noexcept 32778: { return _M_t._M_deleter(); } 32778: 32778: 32778: const deleter_type& 32778: get_deleter() const noexcept 32778: { return _M_t._M_deleter(); } 32778: 32778: 32778: explicit operator bool() const noexcept 32778: { return get() == pointer() ? false : true; } 32778: 32778: 32778: 32778: 32778: pointer 32778: release() noexcept 32778: { 32778: pointer __p = get(); 32778: _M_t._M_ptr() = pointer(); 32778: return __p; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: void 32778: reset(pointer __p = pointer()) noexcept 32778: { 32778: static_assert(__is_invocable::value, 32778: "unique_ptr's deleter must be invocable with a pointer"); 32778: using std::swap; 32778: swap(_M_t._M_ptr(), __p); 32778: if (__p != pointer()) 32778: get_deleter()(std::move(__p)); 32778: } 32778: 32778: 32778: void 32778: swap(unique_ptr& __u) noexcept 32778: { 32778: static_assert(__is_swappable<_Dp>::value, "deleter must be swappable"); 32778: _M_t.swap(__u._M_t); 32778: } 32778: 32778: 32778: unique_ptr(const unique_ptr&) = delete; 32778: unique_ptr& operator=(const unique_ptr&) = delete; 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: template 32778: class unique_ptr<_Tp[], _Dp> 32778: { 32778: template 32778: using _DeleterConstraint = 32778: typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type; 32778: 32778: __uniq_ptr_impl<_Tp, _Dp> _M_t; 32778: 32778: template 32778: using __remove_cv = typename remove_cv<_Up>::type; 32778: 32778: 32778: template 32778: using __is_derived_Tp 32778: = __and_< is_base_of<_Tp, _Up>, 32778: __not_, __remove_cv<_Up>>> >; 32778: 32778: public: 32778: using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer; 32778: using element_type = _Tp; 32778: using deleter_type = _Dp; 32778: 32778: 32778: 32778: template, 32778: typename _UP_pointer = typename _UPtr::pointer, 32778: typename _UP_element_type = typename _UPtr::element_type> 32778: using __safe_conversion_up = __and_< 32778: is_array<_Up>, 32778: is_same, 32778: is_same<_UP_pointer, _UP_element_type*>, 32778: is_convertible<_UP_element_type(*)[], element_type(*)[]> 32778: >; 32778: 32778: 32778: template 32778: using __safe_conversion_raw = __and_< 32778: __or_<__or_, 32778: is_same<_Up, nullptr_t>>, 32778: __and_, 32778: is_same, 32778: is_convertible< 32778: typename remove_pointer<_Up>::type(*)[], 32778: element_type(*)[]> 32778: > 32778: > 32778: >; 32778: 32778: 32778: 32778: 32778: template> 32778: constexpr unique_ptr() noexcept 32778: : _M_t() 32778: { } 32778: # 487 "/usr/include/c++/9/bits/unique_ptr.h" 3 32778: template, 32778: typename = typename enable_if< 32778: __safe_conversion_raw<_Up>::value, bool>::type> 32778: explicit 32778: unique_ptr(_Up __p) noexcept 32778: : _M_t(__p) 32778: { } 32778: # 505 "/usr/include/c++/9/bits/unique_ptr.h" 3 32778: template, 32778: is_copy_constructible<_Del>>> 32778: unique_ptr(_Up __p, const deleter_type& __d) noexcept 32778: : _M_t(__p, __d) { } 32778: # 519 "/usr/include/c++/9/bits/unique_ptr.h" 3 32778: template, 32778: is_move_constructible<_Del>>> 32778: unique_ptr(_Up __p, 32778: __enable_if_t::value, 32778: _Del&&> __d) noexcept 32778: : _M_t(std::move(__p), std::move(__d)) 32778: { } 32778: 32778: template::type, 32778: typename = _Require<__safe_conversion_raw<_Up>>> 32778: unique_ptr(_Up, 32778: __enable_if_t::value, 32778: _DelUnref&&>) = delete; 32778: 32778: 32778: unique_ptr(unique_ptr&& __u) noexcept 32778: : _M_t(__u.release(), std::forward(__u.get_deleter())) { } 32778: 32778: 32778: template> 32778: constexpr unique_ptr(nullptr_t) noexcept 32778: : _M_t() 32778: { } 32778: 32778: template, 32778: typename conditional::value, 32778: is_same<_Ep, _Dp>, 32778: is_convertible<_Ep, _Dp>>::type>> 32778: unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept 32778: : _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter())) 32778: { } 32778: 32778: 32778: ~unique_ptr() 32778: { 32778: auto& __ptr = _M_t._M_ptr(); 32778: if (__ptr != nullptr) 32778: get_deleter()(__ptr); 32778: __ptr = pointer(); 32778: } 32778: # 571 "/usr/include/c++/9/bits/unique_ptr.h" 3 32778: unique_ptr& 32778: operator=(unique_ptr&& __u) noexcept 32778: { 32778: reset(__u.release()); 32778: get_deleter() = std::forward(__u.get_deleter()); 32778: return *this; 32778: } 32778: # 586 "/usr/include/c++/9/bits/unique_ptr.h" 3 32778: template 32778: typename 32778: enable_if<__and_<__safe_conversion_up<_Up, _Ep>, 32778: is_assignable 32778: >::value, 32778: unique_ptr&>::type 32778: operator=(unique_ptr<_Up, _Ep>&& __u) noexcept 32778: { 32778: reset(__u.release()); 32778: get_deleter() = std::forward<_Ep>(__u.get_deleter()); 32778: return *this; 32778: } 32778: 32778: 32778: unique_ptr& 32778: operator=(nullptr_t) noexcept 32778: { 32778: reset(); 32778: return *this; 32778: } 32778: 32778: 32778: 32778: 32778: typename std::add_lvalue_reference::type 32778: operator[](size_t __i) const 32778: { 32778: ; 32778: return get()[__i]; 32778: } 32778: 32778: 32778: pointer 32778: get() const noexcept 32778: { return _M_t._M_ptr(); } 32778: 32778: 32778: deleter_type& 32778: get_deleter() noexcept 32778: { return _M_t._M_deleter(); } 32778: 32778: 32778: const deleter_type& 32778: get_deleter() const noexcept 32778: { return _M_t._M_deleter(); } 32778: 32778: 32778: explicit operator bool() const noexcept 32778: { return get() == pointer() ? false : true; } 32778: 32778: 32778: 32778: 32778: pointer 32778: release() noexcept 32778: { 32778: pointer __p = get(); 32778: _M_t._M_ptr() = pointer(); 32778: return __p; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template , 32778: __and_, 32778: is_pointer<_Up>, 32778: is_convertible< 32778: typename remove_pointer<_Up>::type(*)[], 32778: element_type(*)[] 32778: > 32778: > 32778: > 32778: >> 32778: void 32778: reset(_Up __p) noexcept 32778: { 32778: pointer __ptr = __p; 32778: using std::swap; 32778: swap(_M_t._M_ptr(), __ptr); 32778: if (__ptr != nullptr) 32778: get_deleter()(__ptr); 32778: } 32778: 32778: void reset(nullptr_t = nullptr) noexcept 32778: { 32778: reset(pointer()); 32778: } 32778: 32778: 32778: void 32778: swap(unique_ptr& __u) noexcept 32778: { 32778: static_assert(__is_swappable<_Dp>::value, "deleter must be swappable"); 32778: _M_t.swap(__u._M_t); 32778: } 32778: 32778: 32778: unique_ptr(const unique_ptr&) = delete; 32778: unique_ptr& operator=(const unique_ptr&) = delete; 32778: }; 32778: 32778: template 32778: inline 32778: 32778: 32778: 32778: 32778: void 32778: 32778: swap(unique_ptr<_Tp, _Dp>& __x, 32778: unique_ptr<_Tp, _Dp>& __y) noexcept 32778: { __x.swap(__y); } 32778: # 712 "/usr/include/c++/9/bits/unique_ptr.h" 3 32778: template 32778: inline bool 32778: operator==(const unique_ptr<_Tp, _Dp>& __x, 32778: const unique_ptr<_Up, _Ep>& __y) 32778: { return __x.get() == __y.get(); } 32778: 32778: template 32778: inline bool 32778: operator==(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept 32778: { return !__x; } 32778: 32778: template 32778: inline bool 32778: operator==(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept 32778: { return !__x; } 32778: 32778: template 32778: inline bool 32778: operator!=(const unique_ptr<_Tp, _Dp>& __x, 32778: const unique_ptr<_Up, _Ep>& __y) 32778: { return __x.get() != __y.get(); } 32778: 32778: template 32778: inline bool 32778: operator!=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept 32778: { return (bool)__x; } 32778: 32778: template 32778: inline bool 32778: operator!=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept 32778: { return (bool)__x; } 32778: 32778: template 32778: inline bool 32778: operator<(const unique_ptr<_Tp, _Dp>& __x, 32778: const unique_ptr<_Up, _Ep>& __y) 32778: { 32778: typedef typename 32778: std::common_type::pointer, 32778: typename unique_ptr<_Up, _Ep>::pointer>::type _CT; 32778: return std::less<_CT>()(__x.get(), __y.get()); 32778: } 32778: 32778: template 32778: inline bool 32778: operator<(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 32778: { return std::less::pointer>()(__x.get(), 32778: nullptr); } 32778: 32778: template 32778: inline bool 32778: operator<(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 32778: { return std::less::pointer>()(nullptr, 32778: __x.get()); } 32778: 32778: template 32778: inline bool 32778: operator<=(const unique_ptr<_Tp, _Dp>& __x, 32778: const unique_ptr<_Up, _Ep>& __y) 32778: { return !(__y < __x); } 32778: 32778: template 32778: inline bool 32778: operator<=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 32778: { return !(nullptr < __x); } 32778: 32778: template 32778: inline bool 32778: operator<=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 32778: { return !(__x < nullptr); } 32778: 32778: template 32778: inline bool 32778: operator>(const unique_ptr<_Tp, _Dp>& __x, 32778: const unique_ptr<_Up, _Ep>& __y) 32778: { return (__y < __x); } 32778: 32778: template 32778: inline bool 32778: operator>(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 32778: { return std::less::pointer>()(nullptr, 32778: __x.get()); } 32778: 32778: template 32778: inline bool 32778: operator>(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 32778: { return std::less::pointer>()(__x.get(), 32778: nullptr); } 32778: 32778: template 32778: inline bool 32778: operator>=(const unique_ptr<_Tp, _Dp>& __x, 32778: const unique_ptr<_Up, _Ep>& __y) 32778: { return !(__x < __y); } 32778: 32778: template 32778: inline bool 32778: operator>=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 32778: { return !(__x < nullptr); } 32778: 32778: template 32778: inline bool 32778: operator>=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 32778: { return !(nullptr < __x); } 32778: 32778: 32778: template 32778: struct hash> 32778: : public __hash_base>, 32778: private __poison_hash::pointer> 32778: { 32778: size_t 32778: operator()(const unique_ptr<_Tp, _Dp>& __u) const noexcept 32778: { 32778: typedef unique_ptr<_Tp, _Dp> _UP; 32778: return std::hash()(__u.get()); 32778: } 32778: }; 32778: # 887 "/usr/include/c++/9/bits/unique_ptr.h" 3 32778: 32778: } 32778: # 81 "/usr/include/c++/9/memory" 2 3 32778: # 1 "/usr/include/c++/9/bits/shared_ptr.h" 1 3 32778: # 52 "/usr/include/c++/9/bits/shared_ptr.h" 3 32778: # 1 "/usr/include/c++/9/bits/shared_ptr_base.h" 1 3 32778: # 53 "/usr/include/c++/9/bits/shared_ptr_base.h" 3 32778: # 1 "/usr/include/c++/9/bits/allocated_ptr.h" 1 3 32778: # 40 "/usr/include/c++/9/bits/allocated_ptr.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: template 32778: struct __allocated_ptr 32778: { 32778: using pointer = typename allocator_traits<_Alloc>::pointer; 32778: using value_type = typename allocator_traits<_Alloc>::value_type; 32778: 32778: 32778: __allocated_ptr(_Alloc& __a, pointer __ptr) noexcept 32778: : _M_alloc(std::__addressof(__a)), _M_ptr(__ptr) 32778: { } 32778: 32778: 32778: template>> 32778: __allocated_ptr(_Alloc& __a, _Ptr __ptr) 32778: : _M_alloc(std::__addressof(__a)), 32778: _M_ptr(pointer_traits::pointer_to(*__ptr)) 32778: { } 32778: 32778: 32778: __allocated_ptr(__allocated_ptr&& __gd) noexcept 32778: : _M_alloc(__gd._M_alloc), _M_ptr(__gd._M_ptr) 32778: { __gd._M_ptr = nullptr; } 32778: 32778: 32778: ~__allocated_ptr() 32778: { 32778: if (_M_ptr != nullptr) 32778: std::allocator_traits<_Alloc>::deallocate(*_M_alloc, _M_ptr, 1); 32778: } 32778: 32778: 32778: __allocated_ptr& 32778: operator=(std::nullptr_t) noexcept 32778: { 32778: _M_ptr = nullptr; 32778: return *this; 32778: } 32778: 32778: 32778: value_type* get() { return std::__to_address(_M_ptr); } 32778: 32778: private: 32778: _Alloc* _M_alloc; 32778: pointer _M_ptr; 32778: }; 32778: 32778: 32778: template 32778: __allocated_ptr<_Alloc> 32778: __allocate_guarded(_Alloc& __a) 32778: { 32778: return { __a, std::allocator_traits<_Alloc>::allocate(__a, 1) }; 32778: } 32778: 32778: 32778: } 32778: # 54 "/usr/include/c++/9/bits/shared_ptr_base.h" 2 3 32778: # 1 "/usr/include/c++/9/bits/refwrap.h" 1 3 32778: # 33 "/usr/include/c++/9/bits/refwrap.h" 3 32778: 32778: # 34 "/usr/include/c++/9/bits/refwrap.h" 3 32778: # 43 "/usr/include/c++/9/bits/refwrap.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct _Maybe_unary_or_binary_function { }; 32778: 32778: 32778: template 32778: struct _Maybe_unary_or_binary_function<_Res, _T1> 32778: : std::unary_function<_T1, _Res> { }; 32778: 32778: 32778: template 32778: struct _Maybe_unary_or_binary_function<_Res, _T1, _T2> 32778: : std::binary_function<_T1, _T2, _Res> { }; 32778: 32778: template 32778: struct _Mem_fn_traits; 32778: 32778: template 32778: struct _Mem_fn_traits_base 32778: { 32778: using __result_type = _Res; 32778: using __maybe_type 32778: = _Maybe_unary_or_binary_function<_Res, _Class*, _ArgTypes...>; 32778: using __arity = integral_constant; 32778: }; 32778: # 97 "/usr/include/c++/9/bits/refwrap.h" 3 32778: template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) > : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) > : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const > : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) const > : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) volatile > : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) volatile > : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const volatile > : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) const volatile > : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = true_type; }; 32778: template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) &> : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) &> : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const &> : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) const &> : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) volatile &> : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) volatile &> : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const volatile &> : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) const volatile &> : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = true_type; }; 32778: template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) &&> : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) &&> : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const &&> : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) const &&> : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) volatile &&> : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) volatile &&> : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = true_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const volatile &&> : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) const volatile &&> : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = true_type; }; 32778: # 111 "/usr/include/c++/9/bits/refwrap.h" 3 32778: template> 32778: struct _Maybe_get_result_type 32778: { }; 32778: 32778: template 32778: struct _Maybe_get_result_type<_Functor, 32778: __void_t> 32778: { typedef typename _Functor::result_type result_type; }; 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct _Weak_result_type_impl 32778: : _Maybe_get_result_type<_Functor> 32778: { }; 32778: 32778: 32778: template 32778: struct _Weak_result_type_impl<_Res(_ArgTypes...) > 32778: { typedef _Res result_type; }; 32778: 32778: 32778: template 32778: struct _Weak_result_type_impl<_Res(_ArgTypes......) > 32778: { typedef _Res result_type; }; 32778: 32778: 32778: template 32778: struct _Weak_result_type_impl<_Res(*)(_ArgTypes...) > 32778: { typedef _Res result_type; }; 32778: 32778: 32778: template 32778: struct 32778: _Weak_result_type_impl<_Res(*)(_ArgTypes......) > 32778: { typedef _Res result_type; }; 32778: 32778: 32778: template::value> 32778: struct _Weak_result_type_memfun 32778: : _Weak_result_type_impl<_Functor> 32778: { }; 32778: 32778: 32778: template 32778: struct _Weak_result_type_memfun<_MemFunPtr, true> 32778: { 32778: using result_type = typename _Mem_fn_traits<_MemFunPtr>::__result_type; 32778: }; 32778: 32778: 32778: template 32778: struct _Weak_result_type_memfun<_Func _Class::*, false> 32778: { }; 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct _Weak_result_type 32778: : _Weak_result_type_memfun::type> 32778: { }; 32778: 32778: 32778: 32778: template> 32778: struct _Refwrap_base_arg1 32778: { }; 32778: 32778: 32778: template 32778: struct _Refwrap_base_arg1<_Tp, 32778: __void_t> 32778: { 32778: typedef typename _Tp::argument_type argument_type; 32778: }; 32778: 32778: 32778: template> 32778: struct _Refwrap_base_arg2 32778: { }; 32778: 32778: 32778: template 32778: struct _Refwrap_base_arg2<_Tp, 32778: __void_t> 32778: { 32778: typedef typename _Tp::first_argument_type first_argument_type; 32778: typedef typename _Tp::second_argument_type second_argument_type; 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct _Reference_wrapper_base 32778: : _Weak_result_type<_Tp>, _Refwrap_base_arg1<_Tp>, _Refwrap_base_arg2<_Tp> 32778: { }; 32778: 32778: 32778: template 32778: struct _Reference_wrapper_base<_Res(_T1) > 32778: : unary_function<_T1, _Res> 32778: { }; 32778: 32778: template 32778: struct _Reference_wrapper_base<_Res(_T1) const> 32778: : unary_function<_T1, _Res> 32778: { }; 32778: 32778: template 32778: struct _Reference_wrapper_base<_Res(_T1) volatile> 32778: : unary_function<_T1, _Res> 32778: { }; 32778: 32778: template 32778: struct _Reference_wrapper_base<_Res(_T1) const volatile> 32778: : unary_function<_T1, _Res> 32778: { }; 32778: 32778: 32778: template 32778: struct _Reference_wrapper_base<_Res(_T1, _T2) > 32778: : binary_function<_T1, _T2, _Res> 32778: { }; 32778: 32778: template 32778: struct _Reference_wrapper_base<_Res(_T1, _T2) const> 32778: : binary_function<_T1, _T2, _Res> 32778: { }; 32778: 32778: template 32778: struct _Reference_wrapper_base<_Res(_T1, _T2) volatile> 32778: : binary_function<_T1, _T2, _Res> 32778: { }; 32778: 32778: template 32778: struct _Reference_wrapper_base<_Res(_T1, _T2) const volatile> 32778: : binary_function<_T1, _T2, _Res> 32778: { }; 32778: 32778: 32778: template 32778: struct _Reference_wrapper_base<_Res(*)(_T1) > 32778: : unary_function<_T1, _Res> 32778: { }; 32778: 32778: 32778: template 32778: struct _Reference_wrapper_base<_Res(*)(_T1, _T2) > 32778: : binary_function<_T1, _T2, _Res> 32778: { }; 32778: 32778: template::value> 32778: struct _Reference_wrapper_base_memfun 32778: : _Reference_wrapper_base<_Tp> 32778: { }; 32778: 32778: template 32778: struct _Reference_wrapper_base_memfun<_MemFunPtr, true> 32778: : _Mem_fn_traits<_MemFunPtr>::__maybe_type 32778: { 32778: using result_type = typename _Mem_fn_traits<_MemFunPtr>::__result_type; 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: class reference_wrapper 32778: 32778: 32778: 32778: : public _Reference_wrapper_base_memfun::type> 32778: 32778: { 32778: _Tp* _M_data; 32778: 32778: static _Tp* _S_fun(_Tp& __r) noexcept { return std::__addressof(__r); } 32778: static void _S_fun(_Tp&&) = delete; 32778: 32778: template> 32778: using __not_same 32778: = typename enable_if::value>::type; 32778: 32778: public: 32778: typedef _Tp type; 32778: 32778: 32778: 32778: 32778: template, typename 32778: = decltype(reference_wrapper::_S_fun(std::declval<_Up>()))> 32778: reference_wrapper(_Up&& __uref) 32778: noexcept(noexcept(reference_wrapper::_S_fun(std::declval<_Up>()))) 32778: : _M_data(reference_wrapper::_S_fun(std::forward<_Up>(__uref))) 32778: { } 32778: 32778: reference_wrapper(const reference_wrapper&) = default; 32778: 32778: reference_wrapper& 32778: operator=(const reference_wrapper&) = default; 32778: 32778: operator _Tp&() const noexcept 32778: { return this->get(); } 32778: 32778: _Tp& 32778: get() const noexcept 32778: { return *_M_data; } 32778: 32778: template 32778: typename result_of<_Tp&(_Args&&...)>::type 32778: operator()(_Args&&... __args) const 32778: { 32778: 32778: 32778: 32778: 32778: return std::__invoke(get(), std::forward<_Args>(__args)...); 32778: } 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline reference_wrapper<_Tp> 32778: ref(_Tp& __t) noexcept 32778: { return reference_wrapper<_Tp>(__t); } 32778: 32778: 32778: template 32778: inline reference_wrapper 32778: cref(const _Tp& __t) noexcept 32778: { return reference_wrapper(__t); } 32778: 32778: template 32778: void ref(const _Tp&&) = delete; 32778: 32778: template 32778: void cref(const _Tp&&) = delete; 32778: 32778: 32778: template 32778: inline reference_wrapper<_Tp> 32778: ref(reference_wrapper<_Tp> __t) noexcept 32778: { return __t; } 32778: 32778: 32778: template 32778: inline reference_wrapper 32778: cref(reference_wrapper<_Tp> __t) noexcept 32778: { return { __t.get() }; } 32778: 32778: 32778: 32778: 32778: } 32778: # 55 "/usr/include/c++/9/bits/shared_ptr_base.h" 2 3 32778: 32778: # 1 "/usr/include/c++/9/ext/aligned_buffer.h" 1 3 32778: # 32 "/usr/include/c++/9/ext/aligned_buffer.h" 3 32778: 32778: # 33 "/usr/include/c++/9/ext/aligned_buffer.h" 3 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: namespace __gnu_cxx 32778: { 32778: 32778: 32778: 32778: 32778: template 32778: struct __aligned_membuf 32778: { 32778: 32778: 32778: 32778: 32778: 32778: struct _Tp2 { _Tp _M_t; }; 32778: 32778: alignas(__alignof__(_Tp2::_M_t)) unsigned char _M_storage[sizeof(_Tp)]; 32778: 32778: __aligned_membuf() = default; 32778: 32778: 32778: __aligned_membuf(std::nullptr_t) { } 32778: 32778: void* 32778: _M_addr() noexcept 32778: { return static_cast(&_M_storage); } 32778: 32778: const void* 32778: _M_addr() const noexcept 32778: { return static_cast(&_M_storage); } 32778: 32778: _Tp* 32778: _M_ptr() noexcept 32778: { return static_cast<_Tp*>(_M_addr()); } 32778: 32778: const _Tp* 32778: _M_ptr() const noexcept 32778: { return static_cast(_M_addr()); } 32778: }; 32778: # 89 "/usr/include/c++/9/ext/aligned_buffer.h" 3 32778: template 32778: struct __aligned_buffer 32778: : std::aligned_storage 32778: { 32778: typename 32778: std::aligned_storage::type _M_storage; 32778: 32778: __aligned_buffer() = default; 32778: 32778: 32778: __aligned_buffer(std::nullptr_t) { } 32778: 32778: void* 32778: _M_addr() noexcept 32778: { 32778: return static_cast(&_M_storage); 32778: } 32778: 32778: const void* 32778: _M_addr() const noexcept 32778: { 32778: return static_cast(&_M_storage); 32778: } 32778: 32778: _Tp* 32778: _M_ptr() noexcept 32778: { return static_cast<_Tp*>(_M_addr()); } 32778: 32778: const _Tp* 32778: _M_ptr() const noexcept 32778: { return static_cast(_M_addr()); } 32778: }; 32778: 32778: 32778: } 32778: # 57 "/usr/include/c++/9/bits/shared_ptr_base.h" 2 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: #pragma GCC diagnostic push 32778: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 32778: template class auto_ptr; 32778: #pragma GCC diagnostic pop 32778: 32778: 32778: 32778: 32778: 32778: 32778: class bad_weak_ptr : public std::exception 32778: { 32778: public: 32778: virtual char const* what() const noexcept; 32778: 32778: virtual ~bad_weak_ptr() noexcept; 32778: }; 32778: 32778: 32778: inline void 32778: __throw_bad_weak_ptr() 32778: { (throw (bad_weak_ptr())); } 32778: 32778: using __gnu_cxx::_Lock_policy; 32778: using __gnu_cxx::__default_lock_policy; 32778: using __gnu_cxx::_S_single; 32778: using __gnu_cxx::_S_mutex; 32778: using __gnu_cxx::_S_atomic; 32778: 32778: 32778: template<_Lock_policy _Lp> 32778: class _Mutex_base 32778: { 32778: protected: 32778: 32778: enum { _S_need_barriers = 0 }; 32778: }; 32778: 32778: template<> 32778: class _Mutex_base<_S_mutex> 32778: : public __gnu_cxx::__mutex 32778: { 32778: protected: 32778: 32778: 32778: 32778: enum { _S_need_barriers = 1 }; 32778: }; 32778: 32778: template<_Lock_policy _Lp = __default_lock_policy> 32778: class _Sp_counted_base 32778: : public _Mutex_base<_Lp> 32778: { 32778: public: 32778: _Sp_counted_base() noexcept 32778: : _M_use_count(1), _M_weak_count(1) { } 32778: 32778: virtual 32778: ~_Sp_counted_base() noexcept 32778: { } 32778: 32778: 32778: 32778: virtual void 32778: _M_dispose() noexcept = 0; 32778: 32778: 32778: virtual void 32778: _M_destroy() noexcept 32778: { delete this; } 32778: 32778: virtual void* 32778: _M_get_deleter(const std::type_info&) noexcept = 0; 32778: 32778: void 32778: _M_add_ref_copy() 32778: { __gnu_cxx::__atomic_add_dispatch(&_M_use_count, 1); } 32778: 32778: void 32778: _M_add_ref_lock(); 32778: 32778: bool 32778: _M_add_ref_lock_nothrow(); 32778: 32778: void 32778: _M_release() noexcept 32778: { 32778: 32778: ; 32778: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 32778: { 32778: ; 32778: _M_dispose(); 32778: 32778: 32778: 32778: 32778: if (_Mutex_base<_Lp>::_S_need_barriers) 32778: { 32778: __atomic_thread_fence (4); 32778: } 32778: 32778: 32778: ; 32778: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_weak_count, 32778: -1) == 1) 32778: { 32778: ; 32778: _M_destroy(); 32778: } 32778: } 32778: } 32778: 32778: void 32778: _M_weak_add_ref() noexcept 32778: { __gnu_cxx::__atomic_add_dispatch(&_M_weak_count, 1); } 32778: 32778: void 32778: _M_weak_release() noexcept 32778: { 32778: 32778: ; 32778: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_weak_count, -1) == 1) 32778: { 32778: ; 32778: if (_Mutex_base<_Lp>::_S_need_barriers) 32778: { 32778: 32778: 32778: __atomic_thread_fence (4); 32778: } 32778: _M_destroy(); 32778: } 32778: } 32778: 32778: long 32778: _M_get_use_count() const noexcept 32778: { 32778: 32778: 32778: return __atomic_load_n(&_M_use_count, 0); 32778: } 32778: 32778: private: 32778: _Sp_counted_base(_Sp_counted_base const&) = delete; 32778: _Sp_counted_base& operator=(_Sp_counted_base const&) = delete; 32778: 32778: _Atomic_word _M_use_count; 32778: _Atomic_word _M_weak_count; 32778: }; 32778: 32778: template<> 32778: inline void 32778: _Sp_counted_base<_S_single>:: 32778: _M_add_ref_lock() 32778: { 32778: if (_M_use_count == 0) 32778: __throw_bad_weak_ptr(); 32778: ++_M_use_count; 32778: } 32778: 32778: template<> 32778: inline void 32778: _Sp_counted_base<_S_mutex>:: 32778: _M_add_ref_lock() 32778: { 32778: __gnu_cxx::__scoped_lock sentry(*this); 32778: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, 1) == 0) 32778: { 32778: _M_use_count = 0; 32778: __throw_bad_weak_ptr(); 32778: } 32778: } 32778: 32778: template<> 32778: inline void 32778: _Sp_counted_base<_S_atomic>:: 32778: _M_add_ref_lock() 32778: { 32778: 32778: _Atomic_word __count = _M_get_use_count(); 32778: do 32778: { 32778: if (__count == 0) 32778: __throw_bad_weak_ptr(); 32778: 32778: 32778: } 32778: while (!__atomic_compare_exchange_n(&_M_use_count, &__count, __count + 1, 32778: true, 4, 32778: 0)); 32778: } 32778: 32778: template<> 32778: inline bool 32778: _Sp_counted_base<_S_single>:: 32778: _M_add_ref_lock_nothrow() 32778: { 32778: if (_M_use_count == 0) 32778: return false; 32778: ++_M_use_count; 32778: return true; 32778: } 32778: 32778: template<> 32778: inline bool 32778: _Sp_counted_base<_S_mutex>:: 32778: _M_add_ref_lock_nothrow() 32778: { 32778: __gnu_cxx::__scoped_lock sentry(*this); 32778: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, 1) == 0) 32778: { 32778: _M_use_count = 0; 32778: return false; 32778: } 32778: return true; 32778: } 32778: 32778: template<> 32778: inline bool 32778: _Sp_counted_base<_S_atomic>:: 32778: _M_add_ref_lock_nothrow() 32778: { 32778: 32778: _Atomic_word __count = _M_get_use_count(); 32778: do 32778: { 32778: if (__count == 0) 32778: return false; 32778: 32778: 32778: } 32778: while (!__atomic_compare_exchange_n(&_M_use_count, &__count, __count + 1, 32778: true, 4, 32778: 0)); 32778: return true; 32778: } 32778: 32778: template<> 32778: inline void 32778: _Sp_counted_base<_S_single>::_M_add_ref_copy() 32778: { ++_M_use_count; } 32778: 32778: template<> 32778: inline void 32778: _Sp_counted_base<_S_single>::_M_release() noexcept 32778: { 32778: if (--_M_use_count == 0) 32778: { 32778: _M_dispose(); 32778: if (--_M_weak_count == 0) 32778: _M_destroy(); 32778: } 32778: } 32778: 32778: template<> 32778: inline void 32778: _Sp_counted_base<_S_single>::_M_weak_add_ref() noexcept 32778: { ++_M_weak_count; } 32778: 32778: template<> 32778: inline void 32778: _Sp_counted_base<_S_single>::_M_weak_release() noexcept 32778: { 32778: if (--_M_weak_count == 0) 32778: _M_destroy(); 32778: } 32778: 32778: template<> 32778: inline long 32778: _Sp_counted_base<_S_single>::_M_get_use_count() const noexcept 32778: { return _M_use_count; } 32778: 32778: 32778: 32778: template 32778: class __shared_ptr; 32778: 32778: template 32778: class __weak_ptr; 32778: 32778: template 32778: class __enable_shared_from_this; 32778: 32778: template 32778: class shared_ptr; 32778: 32778: template 32778: class weak_ptr; 32778: 32778: template 32778: struct owner_less; 32778: 32778: template 32778: class enable_shared_from_this; 32778: 32778: template<_Lock_policy _Lp = __default_lock_policy> 32778: class __weak_count; 32778: 32778: template<_Lock_policy _Lp = __default_lock_policy> 32778: class __shared_count; 32778: 32778: 32778: 32778: template 32778: class _Sp_counted_ptr final : public _Sp_counted_base<_Lp> 32778: { 32778: public: 32778: explicit 32778: _Sp_counted_ptr(_Ptr __p) noexcept 32778: : _M_ptr(__p) { } 32778: 32778: virtual void 32778: _M_dispose() noexcept 32778: { delete _M_ptr; } 32778: 32778: virtual void 32778: _M_destroy() noexcept 32778: { delete this; } 32778: 32778: virtual void* 32778: _M_get_deleter(const std::type_info&) noexcept 32778: { return nullptr; } 32778: 32778: _Sp_counted_ptr(const _Sp_counted_ptr&) = delete; 32778: _Sp_counted_ptr& operator=(const _Sp_counted_ptr&) = delete; 32778: 32778: private: 32778: _Ptr _M_ptr; 32778: }; 32778: 32778: template<> 32778: inline void 32778: _Sp_counted_ptr::_M_dispose() noexcept { } 32778: 32778: template<> 32778: inline void 32778: _Sp_counted_ptr::_M_dispose() noexcept { } 32778: 32778: template<> 32778: inline void 32778: _Sp_counted_ptr::_M_dispose() noexcept { } 32778: 32778: template 32778: struct _Sp_ebo_helper; 32778: 32778: 32778: template 32778: struct _Sp_ebo_helper<_Nm, _Tp, true> : private _Tp 32778: { 32778: explicit _Sp_ebo_helper(const _Tp& __tp) : _Tp(__tp) { } 32778: explicit _Sp_ebo_helper(_Tp&& __tp) : _Tp(std::move(__tp)) { } 32778: 32778: static _Tp& 32778: _S_get(_Sp_ebo_helper& __eboh) { return static_cast<_Tp&>(__eboh); } 32778: }; 32778: 32778: 32778: template 32778: struct _Sp_ebo_helper<_Nm, _Tp, false> 32778: { 32778: explicit _Sp_ebo_helper(const _Tp& __tp) : _M_tp(__tp) { } 32778: explicit _Sp_ebo_helper(_Tp&& __tp) : _M_tp(std::move(__tp)) { } 32778: 32778: static _Tp& 32778: _S_get(_Sp_ebo_helper& __eboh) 32778: { return __eboh._M_tp; } 32778: 32778: private: 32778: _Tp _M_tp; 32778: }; 32778: 32778: 32778: template 32778: class _Sp_counted_deleter final : public _Sp_counted_base<_Lp> 32778: { 32778: class _Impl : _Sp_ebo_helper<0, _Deleter>, _Sp_ebo_helper<1, _Alloc> 32778: { 32778: typedef _Sp_ebo_helper<0, _Deleter> _Del_base; 32778: typedef _Sp_ebo_helper<1, _Alloc> _Alloc_base; 32778: 32778: public: 32778: _Impl(_Ptr __p, _Deleter __d, const _Alloc& __a) noexcept 32778: : _M_ptr(__p), _Del_base(std::move(__d)), _Alloc_base(__a) 32778: { } 32778: 32778: _Deleter& _M_del() noexcept { return _Del_base::_S_get(*this); } 32778: _Alloc& _M_alloc() noexcept { return _Alloc_base::_S_get(*this); } 32778: 32778: _Ptr _M_ptr; 32778: }; 32778: 32778: public: 32778: using __allocator_type = __alloc_rebind<_Alloc, _Sp_counted_deleter>; 32778: 32778: 32778: _Sp_counted_deleter(_Ptr __p, _Deleter __d) noexcept 32778: : _M_impl(__p, std::move(__d), _Alloc()) { } 32778: 32778: 32778: _Sp_counted_deleter(_Ptr __p, _Deleter __d, const _Alloc& __a) noexcept 32778: : _M_impl(__p, std::move(__d), __a) { } 32778: 32778: ~_Sp_counted_deleter() noexcept { } 32778: 32778: virtual void 32778: _M_dispose() noexcept 32778: { _M_impl._M_del()(_M_impl._M_ptr); } 32778: 32778: virtual void 32778: _M_destroy() noexcept 32778: { 32778: __allocator_type __a(_M_impl._M_alloc()); 32778: __allocated_ptr<__allocator_type> __guard_ptr{ __a, this }; 32778: this->~_Sp_counted_deleter(); 32778: } 32778: 32778: virtual void* 32778: _M_get_deleter(const std::type_info& __ti) noexcept 32778: { 32778: 32778: 32778: 32778: return __ti == typeid(_Deleter) 32778: ? std::__addressof(_M_impl._M_del()) 32778: : nullptr; 32778: 32778: 32778: 32778: } 32778: 32778: private: 32778: _Impl _M_impl; 32778: }; 32778: 32778: 32778: 32778: struct _Sp_make_shared_tag 32778: { 32778: private: 32778: template 32778: friend class _Sp_counted_ptr_inplace; 32778: 32778: static const type_info& 32778: _S_ti() noexcept __attribute__ ((__visibility__ ("default"))) 32778: { 32778: alignas(type_info) static constexpr char __tag[sizeof(type_info)] = { }; 32778: return reinterpret_cast(__tag); 32778: } 32778: 32778: static bool _S_eq(const type_info&) noexcept; 32778: }; 32778: 32778: template 32778: struct _Sp_alloc_shared_tag 32778: { 32778: const _Alloc& _M_a; 32778: }; 32778: 32778: template 32778: class _Sp_counted_ptr_inplace final : public _Sp_counted_base<_Lp> 32778: { 32778: class _Impl : _Sp_ebo_helper<0, _Alloc> 32778: { 32778: typedef _Sp_ebo_helper<0, _Alloc> _A_base; 32778: 32778: public: 32778: explicit _Impl(_Alloc __a) noexcept : _A_base(__a) { } 32778: 32778: _Alloc& _M_alloc() noexcept { return _A_base::_S_get(*this); } 32778: 32778: __gnu_cxx::__aligned_buffer<_Tp> _M_storage; 32778: }; 32778: 32778: public: 32778: using __allocator_type = __alloc_rebind<_Alloc, _Sp_counted_ptr_inplace>; 32778: 32778: 32778: template 32778: _Sp_counted_ptr_inplace(_Alloc __a, _Args&&... __args) 32778: : _M_impl(__a) 32778: { 32778: 32778: 32778: allocator_traits<_Alloc>::construct(__a, _M_ptr(), 32778: std::forward<_Args>(__args)...); 32778: } 32778: 32778: ~_Sp_counted_ptr_inplace() noexcept { } 32778: 32778: virtual void 32778: _M_dispose() noexcept 32778: { 32778: allocator_traits<_Alloc>::destroy(_M_impl._M_alloc(), _M_ptr()); 32778: } 32778: 32778: 32778: virtual void 32778: _M_destroy() noexcept 32778: { 32778: __allocator_type __a(_M_impl._M_alloc()); 32778: __allocated_ptr<__allocator_type> __guard_ptr{ __a, this }; 32778: this->~_Sp_counted_ptr_inplace(); 32778: } 32778: 32778: private: 32778: friend class __shared_count<_Lp>; 32778: 32778: 32778: 32778: virtual void* 32778: _M_get_deleter(const std::type_info& __ti) noexcept override 32778: { 32778: auto __ptr = const_cast::type*>(_M_ptr()); 32778: 32778: 32778: 32778: 32778: if (&__ti == &_Sp_make_shared_tag::_S_ti() 32778: || 32778: 32778: __ti == typeid(_Sp_make_shared_tag) 32778: 32778: 32778: 32778: ) 32778: return __ptr; 32778: return nullptr; 32778: } 32778: 32778: _Tp* _M_ptr() noexcept { return _M_impl._M_storage._M_ptr(); } 32778: 32778: _Impl _M_impl; 32778: }; 32778: 32778: 32778: struct __sp_array_delete 32778: { 32778: template 32778: void operator()(_Yp* __p) const { delete[] __p; } 32778: }; 32778: 32778: template<_Lock_policy _Lp> 32778: class __shared_count 32778: { 32778: template 32778: struct __not_alloc_shared_tag { using type = void; }; 32778: 32778: template 32778: struct __not_alloc_shared_tag<_Sp_alloc_shared_tag<_Tp>> { }; 32778: 32778: public: 32778: constexpr __shared_count() noexcept : _M_pi(0) 32778: { } 32778: 32778: template 32778: explicit 32778: __shared_count(_Ptr __p) : _M_pi(0) 32778: { 32778: try 32778: { 32778: _M_pi = new _Sp_counted_ptr<_Ptr, _Lp>(__p); 32778: } 32778: catch(...) 32778: { 32778: delete __p; 32778: throw; 32778: } 32778: } 32778: 32778: template 32778: __shared_count(_Ptr __p, false_type) 32778: : __shared_count(__p) 32778: { } 32778: 32778: template 32778: __shared_count(_Ptr __p, true_type) 32778: : __shared_count(__p, __sp_array_delete{}, allocator()) 32778: { } 32778: 32778: template::type> 32778: __shared_count(_Ptr __p, _Deleter __d) 32778: : __shared_count(__p, std::move(__d), allocator()) 32778: { } 32778: 32778: template::type> 32778: __shared_count(_Ptr __p, _Deleter __d, _Alloc __a) : _M_pi(0) 32778: { 32778: typedef _Sp_counted_deleter<_Ptr, _Deleter, _Alloc, _Lp> _Sp_cd_type; 32778: try 32778: { 32778: typename _Sp_cd_type::__allocator_type __a2(__a); 32778: auto __guard = std::__allocate_guarded(__a2); 32778: _Sp_cd_type* __mem = __guard.get(); 32778: ::new (__mem) _Sp_cd_type(__p, std::move(__d), std::move(__a)); 32778: _M_pi = __mem; 32778: __guard = nullptr; 32778: } 32778: catch(...) 32778: { 32778: __d(__p); 32778: throw; 32778: } 32778: } 32778: 32778: template 32778: __shared_count(_Tp*& __p, _Sp_alloc_shared_tag<_Alloc> __a, 32778: _Args&&... __args) 32778: { 32778: typedef _Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp> _Sp_cp_type; 32778: typename _Sp_cp_type::__allocator_type __a2(__a._M_a); 32778: auto __guard = std::__allocate_guarded(__a2); 32778: _Sp_cp_type* __mem = __guard.get(); 32778: auto __pi = ::new (__mem) 32778: _Sp_cp_type(__a._M_a, std::forward<_Args>(__args)...); 32778: __guard = nullptr; 32778: _M_pi = __pi; 32778: __p = __pi->_M_ptr(); 32778: } 32778: 32778: 32778: #pragma GCC diagnostic push 32778: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 32778: 32778: template 32778: explicit 32778: __shared_count(std::auto_ptr<_Tp>&& __r); 32778: #pragma GCC diagnostic pop 32778: 32778: 32778: 32778: template 32778: explicit 32778: __shared_count(std::unique_ptr<_Tp, _Del>&& __r) : _M_pi(0) 32778: { 32778: 32778: 32778: if (__r.get() == nullptr) 32778: return; 32778: 32778: using _Ptr = typename unique_ptr<_Tp, _Del>::pointer; 32778: using _Del2 = typename conditional::value, 32778: reference_wrapper::type>, 32778: _Del>::type; 32778: using _Sp_cd_type 32778: = _Sp_counted_deleter<_Ptr, _Del2, allocator, _Lp>; 32778: using _Alloc = allocator<_Sp_cd_type>; 32778: using _Alloc_traits = allocator_traits<_Alloc>; 32778: _Alloc __a; 32778: _Sp_cd_type* __mem = _Alloc_traits::allocate(__a, 1); 32778: _Alloc_traits::construct(__a, __mem, __r.release(), 32778: __r.get_deleter()); 32778: _M_pi = __mem; 32778: } 32778: 32778: 32778: explicit __shared_count(const __weak_count<_Lp>& __r); 32778: 32778: 32778: explicit __shared_count(const __weak_count<_Lp>& __r, std::nothrow_t); 32778: 32778: ~__shared_count() noexcept 32778: { 32778: if (_M_pi != nullptr) 32778: _M_pi->_M_release(); 32778: } 32778: 32778: __shared_count(const __shared_count& __r) noexcept 32778: : _M_pi(__r._M_pi) 32778: { 32778: if (_M_pi != 0) 32778: _M_pi->_M_add_ref_copy(); 32778: } 32778: 32778: __shared_count& 32778: operator=(const __shared_count& __r) noexcept 32778: { 32778: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 32778: if (__tmp != _M_pi) 32778: { 32778: if (__tmp != 0) 32778: __tmp->_M_add_ref_copy(); 32778: if (_M_pi != 0) 32778: _M_pi->_M_release(); 32778: _M_pi = __tmp; 32778: } 32778: return *this; 32778: } 32778: 32778: void 32778: _M_swap(__shared_count& __r) noexcept 32778: { 32778: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 32778: __r._M_pi = _M_pi; 32778: _M_pi = __tmp; 32778: } 32778: 32778: long 32778: _M_get_use_count() const noexcept 32778: { return _M_pi != 0 ? _M_pi->_M_get_use_count() : 0; } 32778: 32778: bool 32778: _M_unique() const noexcept 32778: { return this->_M_get_use_count() == 1; } 32778: 32778: void* 32778: _M_get_deleter(const std::type_info& __ti) const noexcept 32778: { return _M_pi ? _M_pi->_M_get_deleter(__ti) : nullptr; } 32778: 32778: bool 32778: _M_less(const __shared_count& __rhs) const noexcept 32778: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 32778: 32778: bool 32778: _M_less(const __weak_count<_Lp>& __rhs) const noexcept 32778: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 32778: 32778: 32778: friend inline bool 32778: operator==(const __shared_count& __a, const __shared_count& __b) noexcept 32778: { return __a._M_pi == __b._M_pi; } 32778: 32778: private: 32778: friend class __weak_count<_Lp>; 32778: 32778: _Sp_counted_base<_Lp>* _M_pi; 32778: }; 32778: 32778: 32778: template<_Lock_policy _Lp> 32778: class __weak_count 32778: { 32778: public: 32778: constexpr __weak_count() noexcept : _M_pi(nullptr) 32778: { } 32778: 32778: __weak_count(const __shared_count<_Lp>& __r) noexcept 32778: : _M_pi(__r._M_pi) 32778: { 32778: if (_M_pi != nullptr) 32778: _M_pi->_M_weak_add_ref(); 32778: } 32778: 32778: __weak_count(const __weak_count& __r) noexcept 32778: : _M_pi(__r._M_pi) 32778: { 32778: if (_M_pi != nullptr) 32778: _M_pi->_M_weak_add_ref(); 32778: } 32778: 32778: __weak_count(__weak_count&& __r) noexcept 32778: : _M_pi(__r._M_pi) 32778: { __r._M_pi = nullptr; } 32778: 32778: ~__weak_count() noexcept 32778: { 32778: if (_M_pi != nullptr) 32778: _M_pi->_M_weak_release(); 32778: } 32778: 32778: __weak_count& 32778: operator=(const __shared_count<_Lp>& __r) noexcept 32778: { 32778: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 32778: if (__tmp != nullptr) 32778: __tmp->_M_weak_add_ref(); 32778: if (_M_pi != nullptr) 32778: _M_pi->_M_weak_release(); 32778: _M_pi = __tmp; 32778: return *this; 32778: } 32778: 32778: __weak_count& 32778: operator=(const __weak_count& __r) noexcept 32778: { 32778: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 32778: if (__tmp != nullptr) 32778: __tmp->_M_weak_add_ref(); 32778: if (_M_pi != nullptr) 32778: _M_pi->_M_weak_release(); 32778: _M_pi = __tmp; 32778: return *this; 32778: } 32778: 32778: __weak_count& 32778: operator=(__weak_count&& __r) noexcept 32778: { 32778: if (_M_pi != nullptr) 32778: _M_pi->_M_weak_release(); 32778: _M_pi = __r._M_pi; 32778: __r._M_pi = nullptr; 32778: return *this; 32778: } 32778: 32778: void 32778: _M_swap(__weak_count& __r) noexcept 32778: { 32778: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 32778: __r._M_pi = _M_pi; 32778: _M_pi = __tmp; 32778: } 32778: 32778: long 32778: _M_get_use_count() const noexcept 32778: { return _M_pi != nullptr ? _M_pi->_M_get_use_count() : 0; } 32778: 32778: bool 32778: _M_less(const __weak_count& __rhs) const noexcept 32778: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 32778: 32778: bool 32778: _M_less(const __shared_count<_Lp>& __rhs) const noexcept 32778: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 32778: 32778: 32778: friend inline bool 32778: operator==(const __weak_count& __a, const __weak_count& __b) noexcept 32778: { return __a._M_pi == __b._M_pi; } 32778: 32778: private: 32778: friend class __shared_count<_Lp>; 32778: 32778: _Sp_counted_base<_Lp>* _M_pi; 32778: }; 32778: 32778: 32778: template<_Lock_policy _Lp> 32778: inline 32778: __shared_count<_Lp>::__shared_count(const __weak_count<_Lp>& __r) 32778: : _M_pi(__r._M_pi) 32778: { 32778: if (_M_pi != nullptr) 32778: _M_pi->_M_add_ref_lock(); 32778: else 32778: __throw_bad_weak_ptr(); 32778: } 32778: 32778: 32778: template<_Lock_policy _Lp> 32778: inline 32778: __shared_count<_Lp>:: 32778: __shared_count(const __weak_count<_Lp>& __r, std::nothrow_t) 32778: : _M_pi(__r._M_pi) 32778: { 32778: if (_M_pi != nullptr) 32778: if (!_M_pi->_M_add_ref_lock_nothrow()) 32778: _M_pi = nullptr; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct __sp_compatible_with 32778: : false_type 32778: { }; 32778: 32778: template 32778: struct __sp_compatible_with<_Yp*, _Tp*> 32778: : is_convertible<_Yp*, _Tp*>::type 32778: { }; 32778: 32778: template 32778: struct __sp_compatible_with<_Up(*)[_Nm], _Up(*)[]> 32778: : true_type 32778: { }; 32778: 32778: template 32778: struct __sp_compatible_with<_Up(*)[_Nm], const _Up(*)[]> 32778: : true_type 32778: { }; 32778: 32778: template 32778: struct __sp_compatible_with<_Up(*)[_Nm], volatile _Up(*)[]> 32778: : true_type 32778: { }; 32778: 32778: template 32778: struct __sp_compatible_with<_Up(*)[_Nm], const volatile _Up(*)[]> 32778: : true_type 32778: { }; 32778: 32778: 32778: template 32778: struct __sp_is_constructible_arrN 32778: : false_type 32778: { }; 32778: 32778: template 32778: struct __sp_is_constructible_arrN<_Up, _Nm, _Yp, __void_t<_Yp[_Nm]>> 32778: : is_convertible<_Yp(*)[_Nm], _Up(*)[_Nm]>::type 32778: { }; 32778: 32778: 32778: template 32778: struct __sp_is_constructible_arr 32778: : false_type 32778: { }; 32778: 32778: template 32778: struct __sp_is_constructible_arr<_Up, _Yp, __void_t<_Yp[]>> 32778: : is_convertible<_Yp(*)[], _Up(*)[]>::type 32778: { }; 32778: 32778: 32778: template 32778: struct __sp_is_constructible; 32778: 32778: 32778: template 32778: struct __sp_is_constructible<_Up[_Nm], _Yp> 32778: : __sp_is_constructible_arrN<_Up, _Nm, _Yp>::type 32778: { }; 32778: 32778: 32778: template 32778: struct __sp_is_constructible<_Up[], _Yp> 32778: : __sp_is_constructible_arr<_Up, _Yp>::type 32778: { }; 32778: 32778: 32778: template 32778: struct __sp_is_constructible 32778: : is_convertible<_Yp*, _Tp*>::type 32778: { }; 32778: 32778: 32778: 32778: template::value, bool = is_void<_Tp>::value> 32778: class __shared_ptr_access 32778: { 32778: public: 32778: using element_type = _Tp; 32778: 32778: element_type& 32778: operator*() const noexcept 32778: { 32778: ; 32778: return *_M_get(); 32778: } 32778: 32778: element_type* 32778: operator->() const noexcept 32778: { 32778: ; 32778: return _M_get(); 32778: } 32778: 32778: private: 32778: element_type* 32778: _M_get() const noexcept 32778: { return static_cast*>(this)->get(); } 32778: }; 32778: 32778: 32778: template 32778: class __shared_ptr_access<_Tp, _Lp, false, true> 32778: { 32778: public: 32778: using element_type = _Tp; 32778: 32778: element_type* 32778: operator->() const noexcept 32778: { 32778: auto __ptr = static_cast*>(this)->get(); 32778: ; 32778: return __ptr; 32778: } 32778: }; 32778: 32778: 32778: template 32778: class __shared_ptr_access<_Tp, _Lp, true, false> 32778: { 32778: public: 32778: using element_type = typename remove_extent<_Tp>::type; 32778: 32778: 32778: [[__deprecated__("shared_ptr::operator* is absent from C++17")]] 32778: element_type& 32778: operator*() const noexcept 32778: { 32778: ; 32778: return *_M_get(); 32778: } 32778: 32778: [[__deprecated__("shared_ptr::operator-> is absent from C++17")]] 32778: element_type* 32778: operator->() const noexcept 32778: { 32778: ; 32778: return _M_get(); 32778: } 32778: 32778: 32778: element_type& 32778: operator[](ptrdiff_t __i) const 32778: { 32778: ; 32778: ; 32778: return _M_get()[__i]; 32778: } 32778: 32778: private: 32778: element_type* 32778: _M_get() const noexcept 32778: { return static_cast*>(this)->get(); } 32778: }; 32778: 32778: template 32778: class __shared_ptr 32778: : public __shared_ptr_access<_Tp, _Lp> 32778: { 32778: public: 32778: using element_type = typename remove_extent<_Tp>::type; 32778: 32778: private: 32778: 32778: template 32778: using _SafeConv 32778: = typename enable_if<__sp_is_constructible<_Tp, _Yp>::value>::type; 32778: 32778: 32778: template 32778: using _Compatible = typename 32778: enable_if<__sp_compatible_with<_Yp*, _Tp*>::value, _Res>::type; 32778: 32778: 32778: template 32778: using _Assignable = _Compatible<_Yp, __shared_ptr&>; 32778: 32778: 32778: template::pointer> 32778: using _UniqCompatible = typename enable_if<__and_< 32778: __sp_compatible_with<_Yp*, _Tp*>, is_convertible<_Ptr, element_type*> 32778: >::value, _Res>::type; 32778: 32778: 32778: template 32778: using _UniqAssignable = _UniqCompatible<_Yp, _Del, __shared_ptr&>; 32778: 32778: public: 32778: 32778: 32778: 32778: 32778: 32778: constexpr __shared_ptr() noexcept 32778: : _M_ptr(0), _M_refcount() 32778: { } 32778: 32778: template> 32778: explicit 32778: __shared_ptr(_Yp* __p) 32778: : _M_ptr(__p), _M_refcount(__p, typename is_array<_Tp>::type()) 32778: { 32778: static_assert( !is_void<_Yp>::value, "incomplete type" ); 32778: static_assert( sizeof(_Yp) > 0, "incomplete type" ); 32778: _M_enable_shared_from_this_with(__p); 32778: } 32778: 32778: template> 32778: __shared_ptr(_Yp* __p, _Deleter __d) 32778: : _M_ptr(__p), _M_refcount(__p, std::move(__d)) 32778: { 32778: static_assert(__is_invocable<_Deleter&, _Yp*&>::value, 32778: "deleter expression d(p) is well-formed"); 32778: _M_enable_shared_from_this_with(__p); 32778: } 32778: 32778: template> 32778: __shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a) 32778: : _M_ptr(__p), _M_refcount(__p, std::move(__d), std::move(__a)) 32778: { 32778: static_assert(__is_invocable<_Deleter&, _Yp*&>::value, 32778: "deleter expression d(p) is well-formed"); 32778: _M_enable_shared_from_this_with(__p); 32778: } 32778: 32778: template 32778: __shared_ptr(nullptr_t __p, _Deleter __d) 32778: : _M_ptr(0), _M_refcount(__p, std::move(__d)) 32778: { } 32778: 32778: template 32778: __shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a) 32778: : _M_ptr(0), _M_refcount(__p, std::move(__d), std::move(__a)) 32778: { } 32778: 32778: template 32778: __shared_ptr(const __shared_ptr<_Yp, _Lp>& __r, 32778: element_type* __p) noexcept 32778: : _M_ptr(__p), _M_refcount(__r._M_refcount) 32778: { } 32778: 32778: __shared_ptr(const __shared_ptr&) noexcept = default; 32778: __shared_ptr& operator=(const __shared_ptr&) noexcept = default; 32778: ~__shared_ptr() = default; 32778: 32778: template> 32778: __shared_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept 32778: : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) 32778: { } 32778: 32778: __shared_ptr(__shared_ptr&& __r) noexcept 32778: : _M_ptr(__r._M_ptr), _M_refcount() 32778: { 32778: _M_refcount._M_swap(__r._M_refcount); 32778: __r._M_ptr = 0; 32778: } 32778: 32778: template> 32778: __shared_ptr(__shared_ptr<_Yp, _Lp>&& __r) noexcept 32778: : _M_ptr(__r._M_ptr), _M_refcount() 32778: { 32778: _M_refcount._M_swap(__r._M_refcount); 32778: __r._M_ptr = 0; 32778: } 32778: 32778: template> 32778: explicit __shared_ptr(const __weak_ptr<_Yp, _Lp>& __r) 32778: : _M_refcount(__r._M_refcount) 32778: { 32778: 32778: 32778: _M_ptr = __r._M_ptr; 32778: } 32778: 32778: 32778: template> 32778: __shared_ptr(unique_ptr<_Yp, _Del>&& __r) 32778: : _M_ptr(__r.get()), _M_refcount() 32778: { 32778: auto __raw = __to_address(__r.get()); 32778: _M_refcount = __shared_count<_Lp>(std::move(__r)); 32778: _M_enable_shared_from_this_with(__raw); 32778: } 32778: 32778: 32778: protected: 32778: 32778: template>, is_array<_Tp1>, 32778: is_convertible::pointer, _Tp*> 32778: >::value, bool>::type = true> 32778: __shared_ptr(unique_ptr<_Tp1, _Del>&& __r, __sp_array_delete) 32778: : _M_ptr(__r.get()), _M_refcount() 32778: { 32778: auto __raw = __to_address(__r.get()); 32778: _M_refcount = __shared_count<_Lp>(std::move(__r)); 32778: _M_enable_shared_from_this_with(__raw); 32778: } 32778: public: 32778: 32778: 32778: 32778: #pragma GCC diagnostic push 32778: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 32778: 32778: template> 32778: __shared_ptr(auto_ptr<_Yp>&& __r); 32778: #pragma GCC diagnostic pop 32778: 32778: 32778: constexpr __shared_ptr(nullptr_t) noexcept : __shared_ptr() { } 32778: 32778: template 32778: _Assignable<_Yp> 32778: operator=(const __shared_ptr<_Yp, _Lp>& __r) noexcept 32778: { 32778: _M_ptr = __r._M_ptr; 32778: _M_refcount = __r._M_refcount; 32778: return *this; 32778: } 32778: 32778: 32778: #pragma GCC diagnostic push 32778: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 32778: template 32778: _Assignable<_Yp> 32778: operator=(auto_ptr<_Yp>&& __r) 32778: { 32778: __shared_ptr(std::move(__r)).swap(*this); 32778: return *this; 32778: } 32778: #pragma GCC diagnostic pop 32778: 32778: 32778: __shared_ptr& 32778: operator=(__shared_ptr&& __r) noexcept 32778: { 32778: __shared_ptr(std::move(__r)).swap(*this); 32778: return *this; 32778: } 32778: 32778: template 32778: _Assignable<_Yp> 32778: operator=(__shared_ptr<_Yp, _Lp>&& __r) noexcept 32778: { 32778: __shared_ptr(std::move(__r)).swap(*this); 32778: return *this; 32778: } 32778: 32778: template 32778: _UniqAssignable<_Yp, _Del> 32778: operator=(unique_ptr<_Yp, _Del>&& __r) 32778: { 32778: __shared_ptr(std::move(__r)).swap(*this); 32778: return *this; 32778: } 32778: 32778: void 32778: reset() noexcept 32778: { __shared_ptr().swap(*this); } 32778: 32778: template 32778: _SafeConv<_Yp> 32778: reset(_Yp* __p) 32778: { 32778: 32778: ; 32778: __shared_ptr(__p).swap(*this); 32778: } 32778: 32778: template 32778: _SafeConv<_Yp> 32778: reset(_Yp* __p, _Deleter __d) 32778: { __shared_ptr(__p, std::move(__d)).swap(*this); } 32778: 32778: template 32778: _SafeConv<_Yp> 32778: reset(_Yp* __p, _Deleter __d, _Alloc __a) 32778: { __shared_ptr(__p, std::move(__d), std::move(__a)).swap(*this); } 32778: 32778: element_type* 32778: get() const noexcept 32778: { return _M_ptr; } 32778: 32778: explicit operator bool() const 32778: { return _M_ptr == 0 ? false : true; } 32778: 32778: bool 32778: unique() const noexcept 32778: { return _M_refcount._M_unique(); } 32778: 32778: long 32778: use_count() const noexcept 32778: { return _M_refcount._M_get_use_count(); } 32778: 32778: void 32778: swap(__shared_ptr<_Tp, _Lp>& __other) noexcept 32778: { 32778: std::swap(_M_ptr, __other._M_ptr); 32778: _M_refcount._M_swap(__other._M_refcount); 32778: } 32778: 32778: template 32778: bool 32778: owner_before(__shared_ptr<_Tp1, _Lp> const& __rhs) const noexcept 32778: { return _M_refcount._M_less(__rhs._M_refcount); } 32778: 32778: template 32778: bool 32778: owner_before(__weak_ptr<_Tp1, _Lp> const& __rhs) const noexcept 32778: { return _M_refcount._M_less(__rhs._M_refcount); } 32778: 32778: protected: 32778: 32778: template 32778: __shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args) 32778: : _M_ptr(), _M_refcount(_M_ptr, __tag, std::forward<_Args>(__args)...) 32778: { _M_enable_shared_from_this_with(_M_ptr); } 32778: 32778: template 32778: friend __shared_ptr<_Tp1, _Lp1> 32778: __allocate_shared(const _Alloc& __a, _Args&&... __args); 32778: 32778: 32778: 32778: __shared_ptr(const __weak_ptr<_Tp, _Lp>& __r, std::nothrow_t) 32778: : _M_refcount(__r._M_refcount, std::nothrow) 32778: { 32778: _M_ptr = _M_refcount._M_get_use_count() ? __r._M_ptr : nullptr; 32778: } 32778: 32778: friend class __weak_ptr<_Tp, _Lp>; 32778: 32778: private: 32778: 32778: template 32778: using __esft_base_t = decltype(__enable_shared_from_this_base( 32778: std::declval&>(), 32778: std::declval<_Yp*>())); 32778: 32778: 32778: template 32778: struct __has_esft_base 32778: : false_type { }; 32778: 32778: template 32778: struct __has_esft_base<_Yp, __void_t<__esft_base_t<_Yp>>> 32778: : __not_> { }; 32778: 32778: template::type> 32778: typename enable_if<__has_esft_base<_Yp2>::value>::type 32778: _M_enable_shared_from_this_with(_Yp* __p) noexcept 32778: { 32778: if (auto __base = __enable_shared_from_this_base(_M_refcount, __p)) 32778: __base->_M_weak_assign(const_cast<_Yp2*>(__p), _M_refcount); 32778: } 32778: 32778: template::type> 32778: typename enable_if::value>::type 32778: _M_enable_shared_from_this_with(_Yp*) noexcept 32778: { } 32778: 32778: void* 32778: _M_get_deleter(const std::type_info& __ti) const noexcept 32778: { return _M_refcount._M_get_deleter(__ti); } 32778: 32778: template friend class __shared_ptr; 32778: template friend class __weak_ptr; 32778: 32778: template 32778: friend _Del* get_deleter(const __shared_ptr<_Tp1, _Lp1>&) noexcept; 32778: 32778: template 32778: friend _Del* get_deleter(const shared_ptr<_Tp1>&) noexcept; 32778: 32778: element_type* _M_ptr; 32778: __shared_count<_Lp> _M_refcount; 32778: }; 32778: 32778: 32778: 32778: template 32778: inline bool 32778: operator==(const __shared_ptr<_Tp1, _Lp>& __a, 32778: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 32778: { return __a.get() == __b.get(); } 32778: 32778: template 32778: inline bool 32778: operator==(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 32778: { return !__a; } 32778: 32778: template 32778: inline bool 32778: operator==(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 32778: { return !__a; } 32778: 32778: template 32778: inline bool 32778: operator!=(const __shared_ptr<_Tp1, _Lp>& __a, 32778: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 32778: { return __a.get() != __b.get(); } 32778: 32778: template 32778: inline bool 32778: operator!=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 32778: { return (bool)__a; } 32778: 32778: template 32778: inline bool 32778: operator!=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 32778: { return (bool)__a; } 32778: 32778: template 32778: inline bool 32778: operator<(const __shared_ptr<_Tp, _Lp>& __a, 32778: const __shared_ptr<_Up, _Lp>& __b) noexcept 32778: { 32778: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 32778: using _Up_elt = typename __shared_ptr<_Up, _Lp>::element_type; 32778: using _Vp = typename common_type<_Tp_elt*, _Up_elt*>::type; 32778: return less<_Vp>()(__a.get(), __b.get()); 32778: } 32778: 32778: template 32778: inline bool 32778: operator<(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 32778: { 32778: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 32778: return less<_Tp_elt*>()(__a.get(), nullptr); 32778: } 32778: 32778: template 32778: inline bool 32778: operator<(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 32778: { 32778: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 32778: return less<_Tp_elt*>()(nullptr, __a.get()); 32778: } 32778: 32778: template 32778: inline bool 32778: operator<=(const __shared_ptr<_Tp1, _Lp>& __a, 32778: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 32778: { return !(__b < __a); } 32778: 32778: template 32778: inline bool 32778: operator<=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 32778: { return !(nullptr < __a); } 32778: 32778: template 32778: inline bool 32778: operator<=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 32778: { return !(__a < nullptr); } 32778: 32778: template 32778: inline bool 32778: operator>(const __shared_ptr<_Tp1, _Lp>& __a, 32778: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 32778: { return (__b < __a); } 32778: 32778: template 32778: inline bool 32778: operator>(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 32778: { return nullptr < __a; } 32778: 32778: template 32778: inline bool 32778: operator>(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 32778: { return __a < nullptr; } 32778: 32778: template 32778: inline bool 32778: operator>=(const __shared_ptr<_Tp1, _Lp>& __a, 32778: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 32778: { return !(__a < __b); } 32778: 32778: template 32778: inline bool 32778: operator>=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 32778: { return !(__a < nullptr); } 32778: 32778: template 32778: inline bool 32778: operator>=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 32778: { return !(nullptr < __a); } 32778: 32778: 32778: template 32778: inline void 32778: swap(__shared_ptr<_Tp, _Lp>& __a, __shared_ptr<_Tp, _Lp>& __b) noexcept 32778: { __a.swap(__b); } 32778: # 1530 "/usr/include/c++/9/bits/shared_ptr_base.h" 3 32778: template 32778: inline __shared_ptr<_Tp, _Lp> 32778: static_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 32778: { 32778: using _Sp = __shared_ptr<_Tp, _Lp>; 32778: return _Sp(__r, static_cast(__r.get())); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline __shared_ptr<_Tp, _Lp> 32778: const_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 32778: { 32778: using _Sp = __shared_ptr<_Tp, _Lp>; 32778: return _Sp(__r, const_cast(__r.get())); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline __shared_ptr<_Tp, _Lp> 32778: dynamic_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 32778: { 32778: using _Sp = __shared_ptr<_Tp, _Lp>; 32778: if (auto* __p = dynamic_cast(__r.get())) 32778: return _Sp(__r, __p); 32778: return _Sp(); 32778: } 32778: # 1576 "/usr/include/c++/9/bits/shared_ptr_base.h" 3 32778: template 32778: class __weak_ptr 32778: { 32778: template 32778: using _Compatible = typename 32778: enable_if<__sp_compatible_with<_Yp*, _Tp*>::value, _Res>::type; 32778: 32778: 32778: template 32778: using _Assignable = _Compatible<_Yp, __weak_ptr&>; 32778: 32778: public: 32778: using element_type = typename remove_extent<_Tp>::type; 32778: 32778: constexpr __weak_ptr() noexcept 32778: : _M_ptr(nullptr), _M_refcount() 32778: { } 32778: 32778: __weak_ptr(const __weak_ptr&) noexcept = default; 32778: 32778: ~__weak_ptr() = default; 32778: # 1612 "/usr/include/c++/9/bits/shared_ptr_base.h" 3 32778: template> 32778: __weak_ptr(const __weak_ptr<_Yp, _Lp>& __r) noexcept 32778: : _M_refcount(__r._M_refcount) 32778: { _M_ptr = __r.lock().get(); } 32778: 32778: template> 32778: __weak_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept 32778: : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) 32778: { } 32778: 32778: __weak_ptr(__weak_ptr&& __r) noexcept 32778: : _M_ptr(__r._M_ptr), _M_refcount(std::move(__r._M_refcount)) 32778: { __r._M_ptr = nullptr; } 32778: 32778: template> 32778: __weak_ptr(__weak_ptr<_Yp, _Lp>&& __r) noexcept 32778: : _M_ptr(__r.lock().get()), _M_refcount(std::move(__r._M_refcount)) 32778: { __r._M_ptr = nullptr; } 32778: 32778: __weak_ptr& 32778: operator=(const __weak_ptr& __r) noexcept = default; 32778: 32778: template 32778: _Assignable<_Yp> 32778: operator=(const __weak_ptr<_Yp, _Lp>& __r) noexcept 32778: { 32778: _M_ptr = __r.lock().get(); 32778: _M_refcount = __r._M_refcount; 32778: return *this; 32778: } 32778: 32778: template 32778: _Assignable<_Yp> 32778: operator=(const __shared_ptr<_Yp, _Lp>& __r) noexcept 32778: { 32778: _M_ptr = __r._M_ptr; 32778: _M_refcount = __r._M_refcount; 32778: return *this; 32778: } 32778: 32778: __weak_ptr& 32778: operator=(__weak_ptr&& __r) noexcept 32778: { 32778: _M_ptr = __r._M_ptr; 32778: _M_refcount = std::move(__r._M_refcount); 32778: __r._M_ptr = nullptr; 32778: return *this; 32778: } 32778: 32778: template 32778: _Assignable<_Yp> 32778: operator=(__weak_ptr<_Yp, _Lp>&& __r) noexcept 32778: { 32778: _M_ptr = __r.lock().get(); 32778: _M_refcount = std::move(__r._M_refcount); 32778: __r._M_ptr = nullptr; 32778: return *this; 32778: } 32778: 32778: __shared_ptr<_Tp, _Lp> 32778: lock() const noexcept 32778: { return __shared_ptr(*this, std::nothrow); } 32778: 32778: long 32778: use_count() const noexcept 32778: { return _M_refcount._M_get_use_count(); } 32778: 32778: bool 32778: expired() const noexcept 32778: { return _M_refcount._M_get_use_count() == 0; } 32778: 32778: template 32778: bool 32778: owner_before(const __shared_ptr<_Tp1, _Lp>& __rhs) const noexcept 32778: { return _M_refcount._M_less(__rhs._M_refcount); } 32778: 32778: template 32778: bool 32778: owner_before(const __weak_ptr<_Tp1, _Lp>& __rhs) const noexcept 32778: { return _M_refcount._M_less(__rhs._M_refcount); } 32778: 32778: void 32778: reset() noexcept 32778: { __weak_ptr().swap(*this); } 32778: 32778: void 32778: swap(__weak_ptr& __s) noexcept 32778: { 32778: std::swap(_M_ptr, __s._M_ptr); 32778: _M_refcount._M_swap(__s._M_refcount); 32778: } 32778: 32778: private: 32778: 32778: void 32778: _M_assign(_Tp* __ptr, const __shared_count<_Lp>& __refcount) noexcept 32778: { 32778: if (use_count() == 0) 32778: { 32778: _M_ptr = __ptr; 32778: _M_refcount = __refcount; 32778: } 32778: } 32778: 32778: template friend class __shared_ptr; 32778: template friend class __weak_ptr; 32778: friend class __enable_shared_from_this<_Tp, _Lp>; 32778: friend class enable_shared_from_this<_Tp>; 32778: 32778: element_type* _M_ptr; 32778: __weak_count<_Lp> _M_refcount; 32778: }; 32778: 32778: 32778: template 32778: inline void 32778: swap(__weak_ptr<_Tp, _Lp>& __a, __weak_ptr<_Tp, _Lp>& __b) noexcept 32778: { __a.swap(__b); } 32778: 32778: template 32778: struct _Sp_owner_less : public binary_function<_Tp, _Tp, bool> 32778: { 32778: bool 32778: operator()(const _Tp& __lhs, const _Tp& __rhs) const noexcept 32778: { return __lhs.owner_before(__rhs); } 32778: 32778: bool 32778: operator()(const _Tp& __lhs, const _Tp1& __rhs) const noexcept 32778: { return __lhs.owner_before(__rhs); } 32778: 32778: bool 32778: operator()(const _Tp1& __lhs, const _Tp& __rhs) const noexcept 32778: { return __lhs.owner_before(__rhs); } 32778: }; 32778: 32778: template<> 32778: struct _Sp_owner_less 32778: { 32778: template 32778: auto 32778: operator()(const _Tp& __lhs, const _Up& __rhs) const noexcept 32778: -> decltype(__lhs.owner_before(__rhs)) 32778: { return __lhs.owner_before(__rhs); } 32778: 32778: using is_transparent = void; 32778: }; 32778: 32778: template 32778: struct owner_less<__shared_ptr<_Tp, _Lp>> 32778: : public _Sp_owner_less<__shared_ptr<_Tp, _Lp>, __weak_ptr<_Tp, _Lp>> 32778: { }; 32778: 32778: template 32778: struct owner_less<__weak_ptr<_Tp, _Lp>> 32778: : public _Sp_owner_less<__weak_ptr<_Tp, _Lp>, __shared_ptr<_Tp, _Lp>> 32778: { }; 32778: 32778: 32778: template 32778: class __enable_shared_from_this 32778: { 32778: protected: 32778: constexpr __enable_shared_from_this() noexcept { } 32778: 32778: __enable_shared_from_this(const __enable_shared_from_this&) noexcept { } 32778: 32778: __enable_shared_from_this& 32778: operator=(const __enable_shared_from_this&) noexcept 32778: { return *this; } 32778: 32778: ~__enable_shared_from_this() { } 32778: 32778: public: 32778: __shared_ptr<_Tp, _Lp> 32778: shared_from_this() 32778: { return __shared_ptr<_Tp, _Lp>(this->_M_weak_this); } 32778: 32778: __shared_ptr 32778: shared_from_this() const 32778: { return __shared_ptr(this->_M_weak_this); } 32778: # 1803 "/usr/include/c++/9/bits/shared_ptr_base.h" 3 32778: private: 32778: template 32778: void 32778: _M_weak_assign(_Tp1* __p, const __shared_count<_Lp>& __n) const noexcept 32778: { _M_weak_this._M_assign(__p, __n); } 32778: 32778: friend const __enable_shared_from_this* 32778: __enable_shared_from_this_base(const __shared_count<_Lp>&, 32778: const __enable_shared_from_this* __p) 32778: { return __p; } 32778: 32778: template 32778: friend class __shared_ptr; 32778: 32778: mutable __weak_ptr<_Tp, _Lp> _M_weak_this; 32778: }; 32778: 32778: template 32778: inline __shared_ptr<_Tp, _Lp> 32778: __allocate_shared(const _Alloc& __a, _Args&&... __args) 32778: { 32778: return __shared_ptr<_Tp, _Lp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 32778: std::forward<_Args>(__args)...); 32778: } 32778: 32778: template 32778: inline __shared_ptr<_Tp, _Lp> 32778: __make_shared(_Args&&... __args) 32778: { 32778: typedef typename std::remove_const<_Tp>::type _Tp_nc; 32778: return std::__allocate_shared<_Tp, _Lp>(std::allocator<_Tp_nc>(), 32778: std::forward<_Args>(__args)...); 32778: } 32778: 32778: 32778: template 32778: struct hash<__shared_ptr<_Tp, _Lp>> 32778: : public __hash_base> 32778: { 32778: size_t 32778: operator()(const __shared_ptr<_Tp, _Lp>& __s) const noexcept 32778: { 32778: return hash::element_type*>()( 32778: __s.get()); 32778: } 32778: }; 32778: 32778: 32778: } 32778: # 53 "/usr/include/c++/9/bits/shared_ptr.h" 2 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline std::basic_ostream<_Ch, _Tr>& 32778: operator<<(std::basic_ostream<_Ch, _Tr>& __os, 32778: const __shared_ptr<_Tp, _Lp>& __p) 32778: { 32778: __os << __p.get(); 32778: return __os; 32778: } 32778: 32778: template 32778: inline _Del* 32778: get_deleter(const __shared_ptr<_Tp, _Lp>& __p) noexcept 32778: { 32778: 32778: return static_cast<_Del*>(__p._M_get_deleter(typeid(_Del))); 32778: 32778: 32778: 32778: } 32778: 32778: 32778: template 32778: inline _Del* 32778: get_deleter(const shared_ptr<_Tp>& __p) noexcept 32778: { 32778: 32778: return static_cast<_Del*>(__p._M_get_deleter(typeid(_Del))); 32778: 32778: 32778: 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: class shared_ptr : public __shared_ptr<_Tp> 32778: { 32778: template 32778: using _Constructible = typename enable_if< 32778: is_constructible<__shared_ptr<_Tp>, _Args...>::value 32778: >::type; 32778: 32778: template 32778: using _Assignable = typename enable_if< 32778: is_assignable<__shared_ptr<_Tp>&, _Arg>::value, shared_ptr& 32778: >::type; 32778: 32778: public: 32778: 32778: using element_type = typename __shared_ptr<_Tp>::element_type; 32778: # 127 "/usr/include/c++/9/bits/shared_ptr.h" 3 32778: constexpr shared_ptr() noexcept : __shared_ptr<_Tp>() { } 32778: 32778: shared_ptr(const shared_ptr&) noexcept = default; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template> 32778: explicit 32778: shared_ptr(_Yp* __p) : __shared_ptr<_Tp>(__p) { } 32778: # 154 "/usr/include/c++/9/bits/shared_ptr.h" 3 32778: template> 32778: shared_ptr(_Yp* __p, _Deleter __d) 32778: : __shared_ptr<_Tp>(__p, std::move(__d)) { } 32778: # 172 "/usr/include/c++/9/bits/shared_ptr.h" 3 32778: template 32778: shared_ptr(nullptr_t __p, _Deleter __d) 32778: : __shared_ptr<_Tp>(__p, std::move(__d)) { } 32778: # 191 "/usr/include/c++/9/bits/shared_ptr.h" 3 32778: template> 32778: shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a) 32778: : __shared_ptr<_Tp>(__p, std::move(__d), std::move(__a)) { } 32778: # 211 "/usr/include/c++/9/bits/shared_ptr.h" 3 32778: template 32778: shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a) 32778: : __shared_ptr<_Tp>(__p, std::move(__d), std::move(__a)) { } 32778: # 233 "/usr/include/c++/9/bits/shared_ptr.h" 3 32778: template 32778: shared_ptr(const shared_ptr<_Yp>& __r, element_type* __p) noexcept 32778: : __shared_ptr<_Tp>(__r, __p) { } 32778: # 244 "/usr/include/c++/9/bits/shared_ptr.h" 3 32778: template&>> 32778: shared_ptr(const shared_ptr<_Yp>& __r) noexcept 32778: : __shared_ptr<_Tp>(__r) { } 32778: 32778: 32778: 32778: 32778: 32778: 32778: shared_ptr(shared_ptr&& __r) noexcept 32778: : __shared_ptr<_Tp>(std::move(__r)) { } 32778: 32778: 32778: 32778: 32778: 32778: 32778: template>> 32778: shared_ptr(shared_ptr<_Yp>&& __r) noexcept 32778: : __shared_ptr<_Tp>(std::move(__r)) { } 32778: # 274 "/usr/include/c++/9/bits/shared_ptr.h" 3 32778: template&>> 32778: explicit shared_ptr(const weak_ptr<_Yp>& __r) 32778: : __shared_ptr<_Tp>(__r) { } 32778: 32778: 32778: #pragma GCC diagnostic push 32778: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 32778: template>> 32778: shared_ptr(auto_ptr<_Yp>&& __r); 32778: #pragma GCC diagnostic pop 32778: 32778: 32778: 32778: 32778: template>> 32778: shared_ptr(unique_ptr<_Yp, _Del>&& __r) 32778: : __shared_ptr<_Tp>(std::move(__r)) { } 32778: 32778: 32778: 32778: 32778: 32778: template, __sp_array_delete>* = 0> 32778: shared_ptr(unique_ptr<_Yp, _Del>&& __r) 32778: : __shared_ptr<_Tp>(std::move(__r), __sp_array_delete()) { } 32778: 32778: 32778: 32778: 32778: 32778: 32778: constexpr shared_ptr(nullptr_t) noexcept : shared_ptr() { } 32778: 32778: shared_ptr& operator=(const shared_ptr&) noexcept = default; 32778: 32778: template 32778: _Assignable&> 32778: operator=(const shared_ptr<_Yp>& __r) noexcept 32778: { 32778: this->__shared_ptr<_Tp>::operator=(__r); 32778: return *this; 32778: } 32778: 32778: 32778: #pragma GCC diagnostic push 32778: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 32778: template 32778: _Assignable> 32778: operator=(auto_ptr<_Yp>&& __r) 32778: { 32778: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 32778: return *this; 32778: } 32778: #pragma GCC diagnostic pop 32778: 32778: 32778: shared_ptr& 32778: operator=(shared_ptr&& __r) noexcept 32778: { 32778: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 32778: return *this; 32778: } 32778: 32778: template 32778: _Assignable> 32778: operator=(shared_ptr<_Yp>&& __r) noexcept 32778: { 32778: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 32778: return *this; 32778: } 32778: 32778: template 32778: _Assignable> 32778: operator=(unique_ptr<_Yp, _Del>&& __r) 32778: { 32778: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 32778: return *this; 32778: } 32778: 32778: private: 32778: 32778: template 32778: shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args) 32778: : __shared_ptr<_Tp>(__tag, std::forward<_Args>(__args)...) 32778: { } 32778: 32778: template 32778: friend shared_ptr<_Yp> 32778: allocate_shared(const _Alloc& __a, _Args&&... __args); 32778: 32778: 32778: shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t) 32778: : __shared_ptr<_Tp>(__r, std::nothrow) { } 32778: 32778: friend class weak_ptr<_Tp>; 32778: }; 32778: # 381 "/usr/include/c++/9/bits/shared_ptr.h" 3 32778: template 32778: inline bool 32778: operator==(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 32778: { return __a.get() == __b.get(); } 32778: 32778: template 32778: inline bool 32778: operator==(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 32778: { return !__a; } 32778: 32778: template 32778: inline bool 32778: operator==(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 32778: { return !__a; } 32778: 32778: template 32778: inline bool 32778: operator!=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 32778: { return __a.get() != __b.get(); } 32778: 32778: template 32778: inline bool 32778: operator!=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 32778: { return (bool)__a; } 32778: 32778: template 32778: inline bool 32778: operator!=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 32778: { return (bool)__a; } 32778: 32778: template 32778: inline bool 32778: operator<(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 32778: { 32778: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 32778: using _Up_elt = typename shared_ptr<_Up>::element_type; 32778: using _Vp = typename common_type<_Tp_elt*, _Up_elt*>::type; 32778: return less<_Vp>()(__a.get(), __b.get()); 32778: } 32778: 32778: template 32778: inline bool 32778: operator<(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 32778: { 32778: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 32778: return less<_Tp_elt*>()(__a.get(), nullptr); 32778: } 32778: 32778: template 32778: inline bool 32778: operator<(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 32778: { 32778: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 32778: return less<_Tp_elt*>()(nullptr, __a.get()); 32778: } 32778: 32778: template 32778: inline bool 32778: operator<=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 32778: { return !(__b < __a); } 32778: 32778: template 32778: inline bool 32778: operator<=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 32778: { return !(nullptr < __a); } 32778: 32778: template 32778: inline bool 32778: operator<=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 32778: { return !(__a < nullptr); } 32778: 32778: template 32778: inline bool 32778: operator>(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 32778: { return (__b < __a); } 32778: 32778: template 32778: inline bool 32778: operator>(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 32778: { return nullptr < __a; } 32778: 32778: template 32778: inline bool 32778: operator>(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 32778: { return __a < nullptr; } 32778: 32778: template 32778: inline bool 32778: operator>=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 32778: { return !(__a < __b); } 32778: 32778: template 32778: inline bool 32778: operator>=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 32778: { return !(__a < nullptr); } 32778: 32778: template 32778: inline bool 32778: operator>=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 32778: { return !(nullptr < __a); } 32778: 32778: 32778: template 32778: inline void 32778: swap(shared_ptr<_Tp>& __a, shared_ptr<_Tp>& __b) noexcept 32778: { __a.swap(__b); } 32778: 32778: 32778: template 32778: inline shared_ptr<_Tp> 32778: static_pointer_cast(const shared_ptr<_Up>& __r) noexcept 32778: { 32778: using _Sp = shared_ptr<_Tp>; 32778: return _Sp(__r, static_cast(__r.get())); 32778: } 32778: 32778: template 32778: inline shared_ptr<_Tp> 32778: const_pointer_cast(const shared_ptr<_Up>& __r) noexcept 32778: { 32778: using _Sp = shared_ptr<_Tp>; 32778: return _Sp(__r, const_cast(__r.get())); 32778: } 32778: 32778: template 32778: inline shared_ptr<_Tp> 32778: dynamic_pointer_cast(const shared_ptr<_Up>& __r) noexcept 32778: { 32778: using _Sp = shared_ptr<_Tp>; 32778: if (auto* __p = dynamic_cast(__r.get())) 32778: return _Sp(__r, __p); 32778: return _Sp(); 32778: } 32778: # 530 "/usr/include/c++/9/bits/shared_ptr.h" 3 32778: template 32778: class weak_ptr : public __weak_ptr<_Tp> 32778: { 32778: template 32778: using _Constructible = typename enable_if< 32778: is_constructible<__weak_ptr<_Tp>, _Arg>::value 32778: >::type; 32778: 32778: template 32778: using _Assignable = typename enable_if< 32778: is_assignable<__weak_ptr<_Tp>&, _Arg>::value, weak_ptr& 32778: >::type; 32778: 32778: public: 32778: constexpr weak_ptr() noexcept = default; 32778: 32778: template&>> 32778: weak_ptr(const shared_ptr<_Yp>& __r) noexcept 32778: : __weak_ptr<_Tp>(__r) { } 32778: 32778: weak_ptr(const weak_ptr&) noexcept = default; 32778: 32778: template&>> 32778: weak_ptr(const weak_ptr<_Yp>& __r) noexcept 32778: : __weak_ptr<_Tp>(__r) { } 32778: 32778: weak_ptr(weak_ptr&&) noexcept = default; 32778: 32778: template>> 32778: weak_ptr(weak_ptr<_Yp>&& __r) noexcept 32778: : __weak_ptr<_Tp>(std::move(__r)) { } 32778: 32778: weak_ptr& 32778: operator=(const weak_ptr& __r) noexcept = default; 32778: 32778: template 32778: _Assignable&> 32778: operator=(const weak_ptr<_Yp>& __r) noexcept 32778: { 32778: this->__weak_ptr<_Tp>::operator=(__r); 32778: return *this; 32778: } 32778: 32778: template 32778: _Assignable&> 32778: operator=(const shared_ptr<_Yp>& __r) noexcept 32778: { 32778: this->__weak_ptr<_Tp>::operator=(__r); 32778: return *this; 32778: } 32778: 32778: weak_ptr& 32778: operator=(weak_ptr&& __r) noexcept = default; 32778: 32778: template 32778: _Assignable> 32778: operator=(weak_ptr<_Yp>&& __r) noexcept 32778: { 32778: this->__weak_ptr<_Tp>::operator=(std::move(__r)); 32778: return *this; 32778: } 32778: 32778: shared_ptr<_Tp> 32778: lock() const noexcept 32778: { return shared_ptr<_Tp>(*this, std::nothrow); } 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline void 32778: swap(weak_ptr<_Tp>& __a, weak_ptr<_Tp>& __b) noexcept 32778: { __a.swap(__b); } 32778: 32778: 32778: 32778: template 32778: struct owner_less; 32778: 32778: 32778: template<> 32778: struct owner_less : _Sp_owner_less 32778: { }; 32778: 32778: 32778: template 32778: struct owner_less> 32778: : public _Sp_owner_less, weak_ptr<_Tp>> 32778: { }; 32778: 32778: 32778: template 32778: struct owner_less> 32778: : public _Sp_owner_less, shared_ptr<_Tp>> 32778: { }; 32778: 32778: 32778: 32778: 32778: template 32778: class enable_shared_from_this 32778: { 32778: protected: 32778: constexpr enable_shared_from_this() noexcept { } 32778: 32778: enable_shared_from_this(const enable_shared_from_this&) noexcept { } 32778: 32778: enable_shared_from_this& 32778: operator=(const enable_shared_from_this&) noexcept 32778: { return *this; } 32778: 32778: ~enable_shared_from_this() { } 32778: 32778: public: 32778: shared_ptr<_Tp> 32778: shared_from_this() 32778: { return shared_ptr<_Tp>(this->_M_weak_this); } 32778: 32778: shared_ptr 32778: shared_from_this() const 32778: { return shared_ptr(this->_M_weak_this); } 32778: # 668 "/usr/include/c++/9/bits/shared_ptr.h" 3 32778: private: 32778: template 32778: void 32778: _M_weak_assign(_Tp1* __p, const __shared_count<>& __n) const noexcept 32778: { _M_weak_this._M_assign(__p, __n); } 32778: 32778: 32778: friend const enable_shared_from_this* 32778: __enable_shared_from_this_base(const __shared_count<>&, 32778: const enable_shared_from_this* __p) 32778: { return __p; } 32778: 32778: template 32778: friend class __shared_ptr; 32778: 32778: mutable weak_ptr<_Tp> _M_weak_this; 32778: }; 32778: # 697 "/usr/include/c++/9/bits/shared_ptr.h" 3 32778: template 32778: inline shared_ptr<_Tp> 32778: allocate_shared(const _Alloc& __a, _Args&&... __args) 32778: { 32778: return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 32778: std::forward<_Args>(__args)...); 32778: } 32778: # 712 "/usr/include/c++/9/bits/shared_ptr.h" 3 32778: template 32778: inline shared_ptr<_Tp> 32778: make_shared(_Args&&... __args) 32778: { 32778: typedef typename std::remove_cv<_Tp>::type _Tp_nc; 32778: return std::allocate_shared<_Tp>(std::allocator<_Tp_nc>(), 32778: std::forward<_Args>(__args)...); 32778: } 32778: 32778: 32778: template 32778: struct hash> 32778: : public __hash_base> 32778: { 32778: size_t 32778: operator()(const shared_ptr<_Tp>& __s) const noexcept 32778: { 32778: return std::hash::element_type*>()(__s.get()); 32778: } 32778: }; 32778: # 756 "/usr/include/c++/9/bits/shared_ptr.h" 3 32778: 32778: } 32778: # 82 "/usr/include/c++/9/memory" 2 3 32778: # 1 "/usr/include/c++/9/bits/shared_ptr_atomic.h" 1 3 32778: # 33 "/usr/include/c++/9/bits/shared_ptr_atomic.h" 3 32778: # 1 "/usr/include/c++/9/bits/atomic_base.h" 1 3 32778: # 33 "/usr/include/c++/9/bits/atomic_base.h" 3 32778: 32778: # 34 "/usr/include/c++/9/bits/atomic_base.h" 3 32778: 32778: 32778: 32778: # 1 "/usr/include/c++/9/bits/atomic_lockfree_defines.h" 1 3 32778: # 33 "/usr/include/c++/9/bits/atomic_lockfree_defines.h" 3 32778: 32778: # 34 "/usr/include/c++/9/bits/atomic_lockfree_defines.h" 3 32778: # 38 "/usr/include/c++/9/bits/atomic_base.h" 2 3 32778: 32778: 32778: 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 73 "/usr/include/c++/9/bits/atomic_base.h" 3 32778: typedef enum memory_order 32778: { 32778: memory_order_relaxed, 32778: memory_order_consume, 32778: memory_order_acquire, 32778: memory_order_release, 32778: memory_order_acq_rel, 32778: memory_order_seq_cst 32778: } memory_order; 32778: 32778: 32778: enum __memory_order_modifier 32778: { 32778: __memory_order_mask = 0x0ffff, 32778: __memory_order_modifier_mask = 0xffff0000, 32778: __memory_order_hle_acquire = 0x10000, 32778: __memory_order_hle_release = 0x20000 32778: }; 32778: 32778: constexpr memory_order 32778: operator|(memory_order __m, __memory_order_modifier __mod) 32778: { 32778: return memory_order(int(__m) | int(__mod)); 32778: } 32778: 32778: constexpr memory_order 32778: operator&(memory_order __m, __memory_order_modifier __mod) 32778: { 32778: return memory_order(int(__m) & int(__mod)); 32778: } 32778: 32778: 32778: constexpr memory_order 32778: __cmpexch_failure_order2(memory_order __m) noexcept 32778: { 32778: return __m == memory_order_acq_rel ? memory_order_acquire 32778: : __m == memory_order_release ? memory_order_relaxed : __m; 32778: } 32778: 32778: constexpr memory_order 32778: __cmpexch_failure_order(memory_order __m) noexcept 32778: { 32778: return memory_order(__cmpexch_failure_order2(__m & __memory_order_mask) 32778: | __memory_order_modifier(__m & __memory_order_modifier_mask)); 32778: } 32778: 32778: inline __attribute__((__always_inline__)) void 32778: atomic_thread_fence(memory_order __m) noexcept 32778: { __atomic_thread_fence(int(__m)); } 32778: 32778: inline __attribute__((__always_inline__)) void 32778: atomic_signal_fence(memory_order __m) noexcept 32778: { __atomic_signal_fence(int(__m)); } 32778: 32778: 32778: template 32778: inline _Tp 32778: kill_dependency(_Tp __y) noexcept 32778: { 32778: _Tp __ret(__y); 32778: return __ret; 32778: } 32778: 32778: 32778: 32778: template 32778: struct __atomic_base; 32778: 32778: 32778: 32778: 32778: template 32778: struct atomic; 32778: 32778: template 32778: struct atomic<_Tp*>; 32778: 32778: 32778: 32778: typedef bool __atomic_flag_data_type; 32778: # 167 "/usr/include/c++/9/bits/atomic_base.h" 3 32778: extern "C" { 32778: 32778: struct __atomic_flag_base 32778: { 32778: __atomic_flag_data_type _M_i; 32778: }; 32778: 32778: } 32778: 32778: 32778: 32778: 32778: struct atomic_flag : public __atomic_flag_base 32778: { 32778: atomic_flag() noexcept = default; 32778: ~atomic_flag() noexcept = default; 32778: atomic_flag(const atomic_flag&) = delete; 32778: atomic_flag& operator=(const atomic_flag&) = delete; 32778: atomic_flag& operator=(const atomic_flag&) volatile = delete; 32778: 32778: 32778: constexpr atomic_flag(bool __i) noexcept 32778: : __atomic_flag_base{ _S_init(__i) } 32778: { } 32778: 32778: inline __attribute__((__always_inline__)) bool 32778: test_and_set(memory_order __m = memory_order_seq_cst) noexcept 32778: { 32778: return __atomic_test_and_set (&_M_i, int(__m)); 32778: } 32778: 32778: inline __attribute__((__always_inline__)) bool 32778: test_and_set(memory_order __m = memory_order_seq_cst) volatile noexcept 32778: { 32778: return __atomic_test_and_set (&_M_i, int(__m)); 32778: } 32778: 32778: inline __attribute__((__always_inline__)) void 32778: clear(memory_order __m = memory_order_seq_cst) noexcept 32778: { 32778: memory_order __b = __m & __memory_order_mask; 32778: ; 32778: ; 32778: ; 32778: 32778: __atomic_clear (&_M_i, int(__m)); 32778: } 32778: 32778: inline __attribute__((__always_inline__)) void 32778: clear(memory_order __m = memory_order_seq_cst) volatile noexcept 32778: { 32778: memory_order __b = __m & __memory_order_mask; 32778: ; 32778: ; 32778: ; 32778: 32778: __atomic_clear (&_M_i, int(__m)); 32778: } 32778: 32778: private: 32778: static constexpr __atomic_flag_data_type 32778: _S_init(bool __i) 32778: { return __i ? 1 : 0; } 32778: }; 32778: # 257 "/usr/include/c++/9/bits/atomic_base.h" 3 32778: template 32778: struct __atomic_base 32778: { 32778: using value_type = _ITp; 32778: using difference_type = value_type; 32778: 32778: private: 32778: typedef _ITp __int_type; 32778: 32778: static constexpr int _S_alignment = 32778: sizeof(_ITp) > alignof(_ITp) ? sizeof(_ITp) : alignof(_ITp); 32778: 32778: alignas(_S_alignment) __int_type _M_i; 32778: 32778: public: 32778: __atomic_base() noexcept = default; 32778: ~__atomic_base() noexcept = default; 32778: __atomic_base(const __atomic_base&) = delete; 32778: __atomic_base& operator=(const __atomic_base&) = delete; 32778: __atomic_base& operator=(const __atomic_base&) volatile = delete; 32778: 32778: 32778: constexpr __atomic_base(__int_type __i) noexcept : _M_i (__i) { } 32778: 32778: operator __int_type() const noexcept 32778: { return load(); } 32778: 32778: operator __int_type() const volatile noexcept 32778: { return load(); } 32778: 32778: __int_type 32778: operator=(__int_type __i) noexcept 32778: { 32778: store(__i); 32778: return __i; 32778: } 32778: 32778: __int_type 32778: operator=(__int_type __i) volatile noexcept 32778: { 32778: store(__i); 32778: return __i; 32778: } 32778: 32778: __int_type 32778: operator++(int) noexcept 32778: { return fetch_add(1); } 32778: 32778: __int_type 32778: operator++(int) volatile noexcept 32778: { return fetch_add(1); } 32778: 32778: __int_type 32778: operator--(int) noexcept 32778: { return fetch_sub(1); } 32778: 32778: __int_type 32778: operator--(int) volatile noexcept 32778: { return fetch_sub(1); } 32778: 32778: __int_type 32778: operator++() noexcept 32778: { return __atomic_add_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 32778: 32778: __int_type 32778: operator++() volatile noexcept 32778: { return __atomic_add_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 32778: 32778: __int_type 32778: operator--() noexcept 32778: { return __atomic_sub_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 32778: 32778: __int_type 32778: operator--() volatile noexcept 32778: { return __atomic_sub_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 32778: 32778: __int_type 32778: operator+=(__int_type __i) noexcept 32778: { return __atomic_add_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 32778: 32778: __int_type 32778: operator+=(__int_type __i) volatile noexcept 32778: { return __atomic_add_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 32778: 32778: __int_type 32778: operator-=(__int_type __i) noexcept 32778: { return __atomic_sub_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 32778: 32778: __int_type 32778: operator-=(__int_type __i) volatile noexcept 32778: { return __atomic_sub_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 32778: 32778: __int_type 32778: operator&=(__int_type __i) noexcept 32778: { return __atomic_and_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 32778: 32778: __int_type 32778: operator&=(__int_type __i) volatile noexcept 32778: { return __atomic_and_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 32778: 32778: __int_type 32778: operator|=(__int_type __i) noexcept 32778: { return __atomic_or_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 32778: 32778: __int_type 32778: operator|=(__int_type __i) volatile noexcept 32778: { return __atomic_or_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 32778: 32778: __int_type 32778: operator^=(__int_type __i) noexcept 32778: { return __atomic_xor_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 32778: 32778: __int_type 32778: operator^=(__int_type __i) volatile noexcept 32778: { return __atomic_xor_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 32778: 32778: bool 32778: is_lock_free() const noexcept 32778: { 32778: 32778: return __atomic_is_lock_free(sizeof(_M_i), 32778: reinterpret_cast(-_S_alignment)); 32778: } 32778: 32778: bool 32778: is_lock_free() const volatile noexcept 32778: { 32778: 32778: return __atomic_is_lock_free(sizeof(_M_i), 32778: reinterpret_cast(-_S_alignment)); 32778: } 32778: 32778: inline __attribute__((__always_inline__)) void 32778: store(__int_type __i, memory_order __m = memory_order_seq_cst) noexcept 32778: { 32778: memory_order __b = __m & __memory_order_mask; 32778: ; 32778: ; 32778: ; 32778: 32778: __atomic_store_n(&_M_i, __i, int(__m)); 32778: } 32778: 32778: inline __attribute__((__always_inline__)) void 32778: store(__int_type __i, 32778: memory_order __m = memory_order_seq_cst) volatile noexcept 32778: { 32778: memory_order __b = __m & __memory_order_mask; 32778: ; 32778: ; 32778: ; 32778: 32778: __atomic_store_n(&_M_i, __i, int(__m)); 32778: } 32778: 32778: inline __attribute__((__always_inline__)) __int_type 32778: load(memory_order __m = memory_order_seq_cst) const noexcept 32778: { 32778: memory_order __b = __m & __memory_order_mask; 32778: ; 32778: ; 32778: 32778: return __atomic_load_n(&_M_i, int(__m)); 32778: } 32778: 32778: inline __attribute__((__always_inline__)) __int_type 32778: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 32778: { 32778: memory_order __b = __m & __memory_order_mask; 32778: ; 32778: ; 32778: 32778: return __atomic_load_n(&_M_i, int(__m)); 32778: } 32778: 32778: inline __attribute__((__always_inline__)) __int_type 32778: exchange(__int_type __i, 32778: memory_order __m = memory_order_seq_cst) noexcept 32778: { 32778: return __atomic_exchange_n(&_M_i, __i, int(__m)); 32778: } 32778: 32778: 32778: inline __attribute__((__always_inline__)) __int_type 32778: exchange(__int_type __i, 32778: memory_order __m = memory_order_seq_cst) volatile noexcept 32778: { 32778: return __atomic_exchange_n(&_M_i, __i, int(__m)); 32778: } 32778: 32778: inline __attribute__((__always_inline__)) bool 32778: compare_exchange_weak(__int_type& __i1, __int_type __i2, 32778: memory_order __m1, memory_order __m2) noexcept 32778: { 32778: memory_order __b2 = __m2 & __memory_order_mask; 32778: memory_order __b1 = __m1 & __memory_order_mask; 32778: ; 32778: ; 32778: ; 32778: 32778: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, 32778: int(__m1), int(__m2)); 32778: } 32778: 32778: inline __attribute__((__always_inline__)) bool 32778: compare_exchange_weak(__int_type& __i1, __int_type __i2, 32778: memory_order __m1, 32778: memory_order __m2) volatile noexcept 32778: { 32778: memory_order __b2 = __m2 & __memory_order_mask; 32778: memory_order __b1 = __m1 & __memory_order_mask; 32778: ; 32778: ; 32778: ; 32778: 32778: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, 32778: int(__m1), int(__m2)); 32778: } 32778: 32778: inline __attribute__((__always_inline__)) bool 32778: compare_exchange_weak(__int_type& __i1, __int_type __i2, 32778: memory_order __m = memory_order_seq_cst) noexcept 32778: { 32778: return compare_exchange_weak(__i1, __i2, __m, 32778: __cmpexch_failure_order(__m)); 32778: } 32778: 32778: inline __attribute__((__always_inline__)) bool 32778: compare_exchange_weak(__int_type& __i1, __int_type __i2, 32778: memory_order __m = memory_order_seq_cst) volatile noexcept 32778: { 32778: return compare_exchange_weak(__i1, __i2, __m, 32778: __cmpexch_failure_order(__m)); 32778: } 32778: 32778: inline __attribute__((__always_inline__)) bool 32778: compare_exchange_strong(__int_type& __i1, __int_type __i2, 32778: memory_order __m1, memory_order __m2) noexcept 32778: { 32778: memory_order __b2 = __m2 & __memory_order_mask; 32778: memory_order __b1 = __m1 & __memory_order_mask; 32778: ; 32778: ; 32778: ; 32778: 32778: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, 32778: int(__m1), int(__m2)); 32778: } 32778: 32778: inline __attribute__((__always_inline__)) bool 32778: compare_exchange_strong(__int_type& __i1, __int_type __i2, 32778: memory_order __m1, 32778: memory_order __m2) volatile noexcept 32778: { 32778: memory_order __b2 = __m2 & __memory_order_mask; 32778: memory_order __b1 = __m1 & __memory_order_mask; 32778: 32778: ; 32778: ; 32778: ; 32778: 32778: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, 32778: int(__m1), int(__m2)); 32778: } 32778: 32778: inline __attribute__((__always_inline__)) bool 32778: compare_exchange_strong(__int_type& __i1, __int_type __i2, 32778: memory_order __m = memory_order_seq_cst) noexcept 32778: { 32778: return compare_exchange_strong(__i1, __i2, __m, 32778: __cmpexch_failure_order(__m)); 32778: } 32778: 32778: inline __attribute__((__always_inline__)) bool 32778: compare_exchange_strong(__int_type& __i1, __int_type __i2, 32778: memory_order __m = memory_order_seq_cst) volatile noexcept 32778: { 32778: return compare_exchange_strong(__i1, __i2, __m, 32778: __cmpexch_failure_order(__m)); 32778: } 32778: 32778: inline __attribute__((__always_inline__)) __int_type 32778: fetch_add(__int_type __i, 32778: memory_order __m = memory_order_seq_cst) noexcept 32778: { return __atomic_fetch_add(&_M_i, __i, int(__m)); } 32778: 32778: inline __attribute__((__always_inline__)) __int_type 32778: fetch_add(__int_type __i, 32778: memory_order __m = memory_order_seq_cst) volatile noexcept 32778: { return __atomic_fetch_add(&_M_i, __i, int(__m)); } 32778: 32778: inline __attribute__((__always_inline__)) __int_type 32778: fetch_sub(__int_type __i, 32778: memory_order __m = memory_order_seq_cst) noexcept 32778: { return __atomic_fetch_sub(&_M_i, __i, int(__m)); } 32778: 32778: inline __attribute__((__always_inline__)) __int_type 32778: fetch_sub(__int_type __i, 32778: memory_order __m = memory_order_seq_cst) volatile noexcept 32778: { return __atomic_fetch_sub(&_M_i, __i, int(__m)); } 32778: 32778: inline __attribute__((__always_inline__)) __int_type 32778: fetch_and(__int_type __i, 32778: memory_order __m = memory_order_seq_cst) noexcept 32778: { return __atomic_fetch_and(&_M_i, __i, int(__m)); } 32778: 32778: inline __attribute__((__always_inline__)) __int_type 32778: fetch_and(__int_type __i, 32778: memory_order __m = memory_order_seq_cst) volatile noexcept 32778: { return __atomic_fetch_and(&_M_i, __i, int(__m)); } 32778: 32778: inline __attribute__((__always_inline__)) __int_type 32778: fetch_or(__int_type __i, 32778: memory_order __m = memory_order_seq_cst) noexcept 32778: { return __atomic_fetch_or(&_M_i, __i, int(__m)); } 32778: 32778: inline __attribute__((__always_inline__)) __int_type 32778: fetch_or(__int_type __i, 32778: memory_order __m = memory_order_seq_cst) volatile noexcept 32778: { return __atomic_fetch_or(&_M_i, __i, int(__m)); } 32778: 32778: inline __attribute__((__always_inline__)) __int_type 32778: fetch_xor(__int_type __i, 32778: memory_order __m = memory_order_seq_cst) noexcept 32778: { return __atomic_fetch_xor(&_M_i, __i, int(__m)); } 32778: 32778: inline __attribute__((__always_inline__)) __int_type 32778: fetch_xor(__int_type __i, 32778: memory_order __m = memory_order_seq_cst) volatile noexcept 32778: { return __atomic_fetch_xor(&_M_i, __i, int(__m)); } 32778: }; 32778: 32778: 32778: 32778: template 32778: struct __atomic_base<_PTp*> 32778: { 32778: private: 32778: typedef _PTp* __pointer_type; 32778: 32778: __pointer_type _M_p; 32778: 32778: 32778: constexpr ptrdiff_t 32778: _M_type_size(ptrdiff_t __d) const { return __d * sizeof(_PTp); } 32778: 32778: constexpr ptrdiff_t 32778: _M_type_size(ptrdiff_t __d) const volatile { return __d * sizeof(_PTp); } 32778: 32778: public: 32778: __atomic_base() noexcept = default; 32778: ~__atomic_base() noexcept = default; 32778: __atomic_base(const __atomic_base&) = delete; 32778: __atomic_base& operator=(const __atomic_base&) = delete; 32778: __atomic_base& operator=(const __atomic_base&) volatile = delete; 32778: 32778: 32778: constexpr __atomic_base(__pointer_type __p) noexcept : _M_p (__p) { } 32778: 32778: operator __pointer_type() const noexcept 32778: { return load(); } 32778: 32778: operator __pointer_type() const volatile noexcept 32778: { return load(); } 32778: 32778: __pointer_type 32778: operator=(__pointer_type __p) noexcept 32778: { 32778: store(__p); 32778: return __p; 32778: } 32778: 32778: __pointer_type 32778: operator=(__pointer_type __p) volatile noexcept 32778: { 32778: store(__p); 32778: return __p; 32778: } 32778: 32778: __pointer_type 32778: operator++(int) noexcept 32778: { return fetch_add(1); } 32778: 32778: __pointer_type 32778: operator++(int) volatile noexcept 32778: { return fetch_add(1); } 32778: 32778: __pointer_type 32778: operator--(int) noexcept 32778: { return fetch_sub(1); } 32778: 32778: __pointer_type 32778: operator--(int) volatile noexcept 32778: { return fetch_sub(1); } 32778: 32778: __pointer_type 32778: operator++() noexcept 32778: { return __atomic_add_fetch(&_M_p, _M_type_size(1), 32778: int(memory_order_seq_cst)); } 32778: 32778: __pointer_type 32778: operator++() volatile noexcept 32778: { return __atomic_add_fetch(&_M_p, _M_type_size(1), 32778: int(memory_order_seq_cst)); } 32778: 32778: __pointer_type 32778: operator--() noexcept 32778: { return __atomic_sub_fetch(&_M_p, _M_type_size(1), 32778: int(memory_order_seq_cst)); } 32778: 32778: __pointer_type 32778: operator--() volatile noexcept 32778: { return __atomic_sub_fetch(&_M_p, _M_type_size(1), 32778: int(memory_order_seq_cst)); } 32778: 32778: __pointer_type 32778: operator+=(ptrdiff_t __d) noexcept 32778: { return __atomic_add_fetch(&_M_p, _M_type_size(__d), 32778: int(memory_order_seq_cst)); } 32778: 32778: __pointer_type 32778: operator+=(ptrdiff_t __d) volatile noexcept 32778: { return __atomic_add_fetch(&_M_p, _M_type_size(__d), 32778: int(memory_order_seq_cst)); } 32778: 32778: __pointer_type 32778: operator-=(ptrdiff_t __d) noexcept 32778: { return __atomic_sub_fetch(&_M_p, _M_type_size(__d), 32778: int(memory_order_seq_cst)); } 32778: 32778: __pointer_type 32778: operator-=(ptrdiff_t __d) volatile noexcept 32778: { return __atomic_sub_fetch(&_M_p, _M_type_size(__d), 32778: int(memory_order_seq_cst)); } 32778: 32778: bool 32778: is_lock_free() const noexcept 32778: { 32778: 32778: return __atomic_is_lock_free(sizeof(_M_p), 32778: reinterpret_cast(-__alignof(_M_p))); 32778: } 32778: 32778: bool 32778: is_lock_free() const volatile noexcept 32778: { 32778: 32778: return __atomic_is_lock_free(sizeof(_M_p), 32778: reinterpret_cast(-__alignof(_M_p))); 32778: } 32778: 32778: inline __attribute__((__always_inline__)) void 32778: store(__pointer_type __p, 32778: memory_order __m = memory_order_seq_cst) noexcept 32778: { 32778: memory_order __b = __m & __memory_order_mask; 32778: 32778: ; 32778: ; 32778: ; 32778: 32778: __atomic_store_n(&_M_p, __p, int(__m)); 32778: } 32778: 32778: inline __attribute__((__always_inline__)) void 32778: store(__pointer_type __p, 32778: memory_order __m = memory_order_seq_cst) volatile noexcept 32778: { 32778: memory_order __b = __m & __memory_order_mask; 32778: ; 32778: ; 32778: ; 32778: 32778: __atomic_store_n(&_M_p, __p, int(__m)); 32778: } 32778: 32778: inline __attribute__((__always_inline__)) __pointer_type 32778: load(memory_order __m = memory_order_seq_cst) const noexcept 32778: { 32778: memory_order __b = __m & __memory_order_mask; 32778: ; 32778: ; 32778: 32778: return __atomic_load_n(&_M_p, int(__m)); 32778: } 32778: 32778: inline __attribute__((__always_inline__)) __pointer_type 32778: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 32778: { 32778: memory_order __b = __m & __memory_order_mask; 32778: ; 32778: ; 32778: 32778: return __atomic_load_n(&_M_p, int(__m)); 32778: } 32778: 32778: inline __attribute__((__always_inline__)) __pointer_type 32778: exchange(__pointer_type __p, 32778: memory_order __m = memory_order_seq_cst) noexcept 32778: { 32778: return __atomic_exchange_n(&_M_p, __p, int(__m)); 32778: } 32778: 32778: 32778: inline __attribute__((__always_inline__)) __pointer_type 32778: exchange(__pointer_type __p, 32778: memory_order __m = memory_order_seq_cst) volatile noexcept 32778: { 32778: return __atomic_exchange_n(&_M_p, __p, int(__m)); 32778: } 32778: 32778: inline __attribute__((__always_inline__)) bool 32778: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 32778: memory_order __m1, 32778: memory_order __m2) noexcept 32778: { 32778: memory_order __b2 = __m2 & __memory_order_mask; 32778: memory_order __b1 = __m1 & __memory_order_mask; 32778: ; 32778: ; 32778: ; 32778: 32778: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0, 32778: int(__m1), int(__m2)); 32778: } 32778: 32778: inline __attribute__((__always_inline__)) bool 32778: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 32778: memory_order __m1, 32778: memory_order __m2) volatile noexcept 32778: { 32778: memory_order __b2 = __m2 & __memory_order_mask; 32778: memory_order __b1 = __m1 & __memory_order_mask; 32778: 32778: ; 32778: ; 32778: ; 32778: 32778: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0, 32778: int(__m1), int(__m2)); 32778: } 32778: 32778: inline __attribute__((__always_inline__)) __pointer_type 32778: fetch_add(ptrdiff_t __d, 32778: memory_order __m = memory_order_seq_cst) noexcept 32778: { return __atomic_fetch_add(&_M_p, _M_type_size(__d), int(__m)); } 32778: 32778: inline __attribute__((__always_inline__)) __pointer_type 32778: fetch_add(ptrdiff_t __d, 32778: memory_order __m = memory_order_seq_cst) volatile noexcept 32778: { return __atomic_fetch_add(&_M_p, _M_type_size(__d), int(__m)); } 32778: 32778: inline __attribute__((__always_inline__)) __pointer_type 32778: fetch_sub(ptrdiff_t __d, 32778: memory_order __m = memory_order_seq_cst) noexcept 32778: { return __atomic_fetch_sub(&_M_p, _M_type_size(__d), int(__m)); } 32778: 32778: inline __attribute__((__always_inline__)) __pointer_type 32778: fetch_sub(ptrdiff_t __d, 32778: memory_order __m = memory_order_seq_cst) volatile noexcept 32778: { return __atomic_fetch_sub(&_M_p, _M_type_size(__d), int(__m)); } 32778: }; 32778: 32778: 32778: 32778: 32778: } 32778: # 34 "/usr/include/c++/9/bits/shared_ptr_atomic.h" 2 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: struct _Sp_locker 32778: { 32778: _Sp_locker(const _Sp_locker&) = delete; 32778: _Sp_locker& operator=(const _Sp_locker&) = delete; 32778: 32778: 32778: explicit 32778: _Sp_locker(const void*) noexcept; 32778: _Sp_locker(const void*, const void*) noexcept; 32778: ~_Sp_locker(); 32778: 32778: private: 32778: unsigned char _M_key1; 32778: unsigned char _M_key2; 32778: 32778: 32778: 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline bool 32778: atomic_is_lock_free(const __shared_ptr<_Tp, _Lp>* __p) 32778: { 32778: 32778: return __gthread_active_p() == 0; 32778: 32778: 32778: 32778: } 32778: 32778: template 32778: inline bool 32778: atomic_is_lock_free(const shared_ptr<_Tp>* __p) 32778: { return std::atomic_is_lock_free<_Tp, __default_lock_policy>(__p); } 32778: # 96 "/usr/include/c++/9/bits/shared_ptr_atomic.h" 3 32778: template 32778: inline shared_ptr<_Tp> 32778: atomic_load_explicit(const shared_ptr<_Tp>* __p, memory_order) 32778: { 32778: _Sp_locker __lock{__p}; 32778: return *__p; 32778: } 32778: 32778: template 32778: inline shared_ptr<_Tp> 32778: atomic_load(const shared_ptr<_Tp>* __p) 32778: { return std::atomic_load_explicit(__p, memory_order_seq_cst); } 32778: 32778: template 32778: inline __shared_ptr<_Tp, _Lp> 32778: atomic_load_explicit(const __shared_ptr<_Tp, _Lp>* __p, memory_order) 32778: { 32778: _Sp_locker __lock{__p}; 32778: return *__p; 32778: } 32778: 32778: template 32778: inline __shared_ptr<_Tp, _Lp> 32778: atomic_load(const __shared_ptr<_Tp, _Lp>* __p) 32778: { return std::atomic_load_explicit(__p, memory_order_seq_cst); } 32778: # 132 "/usr/include/c++/9/bits/shared_ptr_atomic.h" 3 32778: template 32778: inline void 32778: atomic_store_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, 32778: memory_order) 32778: { 32778: _Sp_locker __lock{__p}; 32778: __p->swap(__r); 32778: } 32778: 32778: template 32778: inline void 32778: atomic_store(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r) 32778: { std::atomic_store_explicit(__p, std::move(__r), memory_order_seq_cst); } 32778: 32778: template 32778: inline void 32778: atomic_store_explicit(__shared_ptr<_Tp, _Lp>* __p, 32778: __shared_ptr<_Tp, _Lp> __r, 32778: memory_order) 32778: { 32778: _Sp_locker __lock{__p}; 32778: __p->swap(__r); 32778: } 32778: 32778: template 32778: inline void 32778: atomic_store(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp> __r) 32778: { std::atomic_store_explicit(__p, std::move(__r), memory_order_seq_cst); } 32778: # 169 "/usr/include/c++/9/bits/shared_ptr_atomic.h" 3 32778: template 32778: inline shared_ptr<_Tp> 32778: atomic_exchange_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, 32778: memory_order) 32778: { 32778: _Sp_locker __lock{__p}; 32778: __p->swap(__r); 32778: return __r; 32778: } 32778: 32778: template 32778: inline shared_ptr<_Tp> 32778: atomic_exchange(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r) 32778: { 32778: return std::atomic_exchange_explicit(__p, std::move(__r), 32778: memory_order_seq_cst); 32778: } 32778: 32778: template 32778: inline __shared_ptr<_Tp, _Lp> 32778: atomic_exchange_explicit(__shared_ptr<_Tp, _Lp>* __p, 32778: __shared_ptr<_Tp, _Lp> __r, 32778: memory_order) 32778: { 32778: _Sp_locker __lock{__p}; 32778: __p->swap(__r); 32778: return __r; 32778: } 32778: 32778: template 32778: inline __shared_ptr<_Tp, _Lp> 32778: atomic_exchange(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp> __r) 32778: { 32778: return std::atomic_exchange_explicit(__p, std::move(__r), 32778: memory_order_seq_cst); 32778: } 32778: # 218 "/usr/include/c++/9/bits/shared_ptr_atomic.h" 3 32778: template 32778: bool 32778: atomic_compare_exchange_strong_explicit(shared_ptr<_Tp>* __p, 32778: shared_ptr<_Tp>* __v, 32778: shared_ptr<_Tp> __w, 32778: memory_order, 32778: memory_order) 32778: { 32778: shared_ptr<_Tp> __x; 32778: _Sp_locker __lock{__p, __v}; 32778: owner_less> __less; 32778: if (*__p == *__v && !__less(*__p, *__v) && !__less(*__v, *__p)) 32778: { 32778: __x = std::move(*__p); 32778: *__p = std::move(__w); 32778: return true; 32778: } 32778: __x = std::move(*__v); 32778: *__v = *__p; 32778: return false; 32778: } 32778: 32778: template 32778: inline bool 32778: atomic_compare_exchange_strong(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v, 32778: shared_ptr<_Tp> __w) 32778: { 32778: return std::atomic_compare_exchange_strong_explicit(__p, __v, 32778: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 32778: } 32778: 32778: template 32778: inline bool 32778: atomic_compare_exchange_weak_explicit(shared_ptr<_Tp>* __p, 32778: shared_ptr<_Tp>* __v, 32778: shared_ptr<_Tp> __w, 32778: memory_order __success, 32778: memory_order __failure) 32778: { 32778: return std::atomic_compare_exchange_strong_explicit(__p, __v, 32778: std::move(__w), __success, __failure); 32778: } 32778: 32778: template 32778: inline bool 32778: atomic_compare_exchange_weak(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v, 32778: shared_ptr<_Tp> __w) 32778: { 32778: return std::atomic_compare_exchange_weak_explicit(__p, __v, 32778: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 32778: } 32778: 32778: template 32778: bool 32778: atomic_compare_exchange_strong_explicit(__shared_ptr<_Tp, _Lp>* __p, 32778: __shared_ptr<_Tp, _Lp>* __v, 32778: __shared_ptr<_Tp, _Lp> __w, 32778: memory_order, 32778: memory_order) 32778: { 32778: __shared_ptr<_Tp, _Lp> __x; 32778: _Sp_locker __lock{__p, __v}; 32778: owner_less<__shared_ptr<_Tp, _Lp>> __less; 32778: if (*__p == *__v && !__less(*__p, *__v) && !__less(*__v, *__p)) 32778: { 32778: __x = std::move(*__p); 32778: *__p = std::move(__w); 32778: return true; 32778: } 32778: __x = std::move(*__v); 32778: *__v = *__p; 32778: return false; 32778: } 32778: 32778: template 32778: inline bool 32778: atomic_compare_exchange_strong(__shared_ptr<_Tp, _Lp>* __p, 32778: __shared_ptr<_Tp, _Lp>* __v, 32778: __shared_ptr<_Tp, _Lp> __w) 32778: { 32778: return std::atomic_compare_exchange_strong_explicit(__p, __v, 32778: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 32778: } 32778: 32778: template 32778: inline bool 32778: atomic_compare_exchange_weak_explicit(__shared_ptr<_Tp, _Lp>* __p, 32778: __shared_ptr<_Tp, _Lp>* __v, 32778: __shared_ptr<_Tp, _Lp> __w, 32778: memory_order __success, 32778: memory_order __failure) 32778: { 32778: return std::atomic_compare_exchange_strong_explicit(__p, __v, 32778: std::move(__w), __success, __failure); 32778: } 32778: 32778: template 32778: inline bool 32778: atomic_compare_exchange_weak(__shared_ptr<_Tp, _Lp>* __p, 32778: __shared_ptr<_Tp, _Lp>* __v, 32778: __shared_ptr<_Tp, _Lp> __w) 32778: { 32778: return std::atomic_compare_exchange_weak_explicit(__p, __v, 32778: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: } 32778: # 83 "/usr/include/c++/9/memory" 2 3 32778: 32778: # 1 "/usr/include/c++/9/backward/auto_ptr.h" 1 3 32778: # 36 "/usr/include/c++/9/backward/auto_ptr.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 47 "/usr/include/c++/9/backward/auto_ptr.h" 3 32778: template 32778: struct auto_ptr_ref 32778: { 32778: _Tp1* _M_ptr; 32778: 32778: explicit 32778: auto_ptr_ref(_Tp1* __p): _M_ptr(__p) { } 32778: } __attribute__ ((__deprecated__)); 32778: 32778: #pragma GCC diagnostic push 32778: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 32778: # 88 "/usr/include/c++/9/backward/auto_ptr.h" 3 32778: template 32778: class auto_ptr 32778: { 32778: private: 32778: _Tp* _M_ptr; 32778: 32778: public: 32778: 32778: typedef _Tp element_type; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: explicit 32778: auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { } 32778: # 114 "/usr/include/c++/9/backward/auto_ptr.h" 3 32778: auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { } 32778: # 126 "/usr/include/c++/9/backward/auto_ptr.h" 3 32778: template 32778: auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { } 32778: # 137 "/usr/include/c++/9/backward/auto_ptr.h" 3 32778: auto_ptr& 32778: operator=(auto_ptr& __a) throw() 32778: { 32778: reset(__a.release()); 32778: return *this; 32778: } 32778: # 154 "/usr/include/c++/9/backward/auto_ptr.h" 3 32778: template 32778: auto_ptr& 32778: operator=(auto_ptr<_Tp1>& __a) throw() 32778: { 32778: reset(__a.release()); 32778: return *this; 32778: } 32778: # 172 "/usr/include/c++/9/backward/auto_ptr.h" 3 32778: ~auto_ptr() { delete _M_ptr; } 32778: # 182 "/usr/include/c++/9/backward/auto_ptr.h" 3 32778: element_type& 32778: operator*() const throw() 32778: { 32778: ; 32778: return *_M_ptr; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: element_type* 32778: operator->() const throw() 32778: { 32778: ; 32778: return _M_ptr; 32778: } 32778: # 212 "/usr/include/c++/9/backward/auto_ptr.h" 3 32778: element_type* 32778: get() const throw() { return _M_ptr; } 32778: # 226 "/usr/include/c++/9/backward/auto_ptr.h" 3 32778: element_type* 32778: release() throw() 32778: { 32778: element_type* __tmp = _M_ptr; 32778: _M_ptr = 0; 32778: return __tmp; 32778: } 32778: # 241 "/usr/include/c++/9/backward/auto_ptr.h" 3 32778: void 32778: reset(element_type* __p = 0) throw() 32778: { 32778: if (__p != _M_ptr) 32778: { 32778: delete _M_ptr; 32778: _M_ptr = __p; 32778: } 32778: } 32778: # 266 "/usr/include/c++/9/backward/auto_ptr.h" 3 32778: auto_ptr(auto_ptr_ref __ref) throw() 32778: : _M_ptr(__ref._M_ptr) { } 32778: 32778: auto_ptr& 32778: operator=(auto_ptr_ref __ref) throw() 32778: { 32778: if (__ref._M_ptr != this->get()) 32778: { 32778: delete _M_ptr; 32778: _M_ptr = __ref._M_ptr; 32778: } 32778: return *this; 32778: } 32778: 32778: template 32778: operator auto_ptr_ref<_Tp1>() throw() 32778: { return auto_ptr_ref<_Tp1>(this->release()); } 32778: 32778: template 32778: operator auto_ptr<_Tp1>() throw() 32778: { return auto_ptr<_Tp1>(this->release()); } 32778: } __attribute__ ((__deprecated__)); 32778: 32778: 32778: 32778: template<> 32778: class auto_ptr 32778: { 32778: public: 32778: typedef void element_type; 32778: } __attribute__ ((__deprecated__)); 32778: 32778: 32778: template<_Lock_policy _Lp> 32778: template 32778: inline 32778: __shared_count<_Lp>::__shared_count(std::auto_ptr<_Tp>&& __r) 32778: : _M_pi(new _Sp_counted_ptr<_Tp*, _Lp>(__r.get())) 32778: { __r.release(); } 32778: 32778: template 32778: template 32778: inline 32778: __shared_ptr<_Tp, _Lp>::__shared_ptr(std::auto_ptr<_Tp1>&& __r) 32778: : _M_ptr(__r.get()), _M_refcount() 32778: { 32778: 32778: static_assert( sizeof(_Tp1) > 0, "incomplete type" ); 32778: _Tp1* __tmp = __r.get(); 32778: _M_refcount = __shared_count<_Lp>(std::move(__r)); 32778: _M_enable_shared_from_this_with(__tmp); 32778: } 32778: 32778: template 32778: template 32778: inline 32778: shared_ptr<_Tp>::shared_ptr(std::auto_ptr<_Tp1>&& __r) 32778: : __shared_ptr<_Tp>(std::move(__r)) { } 32778: 32778: template 32778: template 32778: inline 32778: unique_ptr<_Tp, _Dp>::unique_ptr(auto_ptr<_Up>&& __u) noexcept 32778: : _M_t(__u.release(), deleter_type()) { } 32778: 32778: 32778: #pragma GCC diagnostic pop 32778: 32778: 32778: } 32778: # 85 "/usr/include/c++/9/memory" 2 3 32778: # 97 "/usr/include/c++/9/memory" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 117 "/usr/include/c++/9/memory" 3 32778: inline void* 32778: align(size_t __align, size_t __size, void*& __ptr, size_t& __space) noexcept 32778: { 32778: 32778: const auto __intptr = reinterpret_cast(__ptr); 32778: 32778: 32778: 32778: 32778: 32778: 32778: const auto __aligned = (__intptr - 1u + __align) & -__align; 32778: const auto __diff = __aligned - __intptr; 32778: if ((__size + __diff) > __space) 32778: return nullptr; 32778: else 32778: { 32778: __space -= __diff; 32778: return __ptr = reinterpret_cast(__aligned); 32778: } 32778: } 32778: 32778: 32778: 32778: enum class pointer_safety { relaxed, preferred, strict }; 32778: 32778: inline void 32778: declare_reachable(void*) { } 32778: 32778: template 32778: inline _Tp* 32778: undeclare_reachable(_Tp* __p) { return __p; } 32778: 32778: inline void 32778: declare_no_pointers(char*, size_t) { } 32778: 32778: inline void 32778: undeclare_no_pointers(char*, size_t) { } 32778: 32778: inline pointer_safety 32778: get_pointer_safety() noexcept { return pointer_safety::relaxed; } 32778: # 365 "/usr/include/c++/9/memory" 3 32778: 32778: } 32778: # 15 "/<>/include/HepMC3/GenParticle_fwd.h" 2 32778: # 1 "/usr/include/c++/9/vector" 1 3 32778: # 58 "/usr/include/c++/9/vector" 3 32778: 32778: # 59 "/usr/include/c++/9/vector" 3 32778: # 67 "/usr/include/c++/9/vector" 3 32778: # 1 "/usr/include/c++/9/bits/stl_vector.h" 1 3 32778: # 74 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: template 32778: struct _Vector_base 32778: { 32778: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 32778: rebind<_Tp>::other _Tp_alloc_type; 32778: typedef typename __gnu_cxx::__alloc_traits<_Tp_alloc_type>::pointer 32778: pointer; 32778: 32778: struct _Vector_impl_data 32778: { 32778: pointer _M_start; 32778: pointer _M_finish; 32778: pointer _M_end_of_storage; 32778: 32778: _Vector_impl_data() noexcept 32778: : _M_start(), _M_finish(), _M_end_of_storage() 32778: { } 32778: 32778: 32778: _Vector_impl_data(_Vector_impl_data&& __x) noexcept 32778: : _M_start(__x._M_start), _M_finish(__x._M_finish), 32778: _M_end_of_storage(__x._M_end_of_storage) 32778: { __x._M_start = __x._M_finish = __x._M_end_of_storage = pointer(); } 32778: 32778: 32778: void 32778: _M_copy_data(_Vector_impl_data const& __x) noexcept 32778: { 32778: _M_start = __x._M_start; 32778: _M_finish = __x._M_finish; 32778: _M_end_of_storage = __x._M_end_of_storage; 32778: } 32778: 32778: void 32778: _M_swap_data(_Vector_impl_data& __x) noexcept 32778: { 32778: 32778: 32778: _Vector_impl_data __tmp; 32778: __tmp._M_copy_data(*this); 32778: _M_copy_data(__x); 32778: __x._M_copy_data(__tmp); 32778: } 32778: }; 32778: 32778: struct _Vector_impl 32778: : public _Tp_alloc_type, public _Vector_impl_data 32778: { 32778: _Vector_impl() noexcept(is_nothrow_default_constructible<_Tp_alloc_type>::value) 32778: 32778: : _Tp_alloc_type() 32778: { } 32778: 32778: _Vector_impl(_Tp_alloc_type const& __a) noexcept 32778: : _Tp_alloc_type(__a) 32778: { } 32778: 32778: 32778: 32778: 32778: _Vector_impl(_Vector_impl&& __x) noexcept 32778: : _Tp_alloc_type(std::move(__x)), _Vector_impl_data(std::move(__x)) 32778: { } 32778: 32778: _Vector_impl(_Tp_alloc_type&& __a) noexcept 32778: : _Tp_alloc_type(std::move(__a)) 32778: { } 32778: 32778: _Vector_impl(_Tp_alloc_type&& __a, _Vector_impl&& __rv) noexcept 32778: : _Tp_alloc_type(std::move(__a)), _Vector_impl_data(std::move(__rv)) 32778: { } 32778: # 267 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: }; 32778: 32778: public: 32778: typedef _Alloc allocator_type; 32778: 32778: _Tp_alloc_type& 32778: _M_get_Tp_allocator() noexcept 32778: { return this->_M_impl; } 32778: 32778: const _Tp_alloc_type& 32778: _M_get_Tp_allocator() const noexcept 32778: { return this->_M_impl; } 32778: 32778: allocator_type 32778: get_allocator() const noexcept 32778: { return allocator_type(_M_get_Tp_allocator()); } 32778: 32778: 32778: _Vector_base() = default; 32778: 32778: 32778: 32778: 32778: _Vector_base(const allocator_type& __a) noexcept 32778: : _M_impl(__a) { } 32778: 32778: 32778: 32778: _Vector_base(size_t __n) 32778: : _M_impl() 32778: { _M_create_storage(__n); } 32778: 32778: 32778: _Vector_base(size_t __n, const allocator_type& __a) 32778: : _M_impl(__a) 32778: { _M_create_storage(__n); } 32778: 32778: 32778: _Vector_base(_Vector_base&&) = default; 32778: 32778: 32778: 32778: _Vector_base(_Tp_alloc_type&& __a) noexcept 32778: : _M_impl(std::move(__a)) { } 32778: 32778: _Vector_base(_Vector_base&& __x, const allocator_type& __a) 32778: : _M_impl(__a) 32778: { 32778: if (__x.get_allocator() == __a) 32778: this->_M_impl._M_swap_data(__x._M_impl); 32778: else 32778: { 32778: size_t __n = __x._M_impl._M_finish - __x._M_impl._M_start; 32778: _M_create_storage(__n); 32778: } 32778: } 32778: 32778: 32778: _Vector_base(const allocator_type& __a, _Vector_base&& __x) 32778: : _M_impl(_Tp_alloc_type(__a), std::move(__x._M_impl)) 32778: { } 32778: 32778: 32778: ~_Vector_base() noexcept 32778: { 32778: _M_deallocate(_M_impl._M_start, 32778: _M_impl._M_end_of_storage - _M_impl._M_start); 32778: } 32778: 32778: public: 32778: _Vector_impl _M_impl; 32778: 32778: pointer 32778: _M_allocate(size_t __n) 32778: { 32778: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tr; 32778: return __n != 0 ? _Tr::allocate(_M_impl, __n) : pointer(); 32778: } 32778: 32778: void 32778: _M_deallocate(pointer __p, size_t __n) 32778: { 32778: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tr; 32778: if (__p) 32778: _Tr::deallocate(_M_impl, __p, __n); 32778: } 32778: 32778: protected: 32778: void 32778: _M_create_storage(size_t __n) 32778: { 32778: this->_M_impl._M_start = this->_M_allocate(__n); 32778: this->_M_impl._M_finish = this->_M_impl._M_start; 32778: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 32778: } 32778: }; 32778: # 385 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: template > 32778: class vector : protected _Vector_base<_Tp, _Alloc> 32778: { 32778: # 398 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: static_assert(is_same::type, _Tp>::value, 32778: "std::vector must have a non-const, non-volatile value_type"); 32778: 32778: static_assert(is_same::value, 32778: "std::vector must have the same value_type as its allocator"); 32778: 32778: 32778: 32778: typedef _Vector_base<_Tp, _Alloc> _Base; 32778: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 32778: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Alloc_traits; 32778: 32778: public: 32778: typedef _Tp value_type; 32778: typedef typename _Base::pointer pointer; 32778: typedef typename _Alloc_traits::const_pointer const_pointer; 32778: typedef typename _Alloc_traits::reference reference; 32778: typedef typename _Alloc_traits::const_reference const_reference; 32778: typedef __gnu_cxx::__normal_iterator iterator; 32778: typedef __gnu_cxx::__normal_iterator 32778: const_iterator; 32778: typedef std::reverse_iterator const_reverse_iterator; 32778: typedef std::reverse_iterator reverse_iterator; 32778: typedef size_t size_type; 32778: typedef ptrdiff_t difference_type; 32778: typedef _Alloc allocator_type; 32778: 32778: private: 32778: 32778: static constexpr bool 32778: _S_nothrow_relocate(true_type) 32778: { 32778: return noexcept(std::__relocate_a(std::declval(), 32778: std::declval(), 32778: std::declval(), 32778: std::declval<_Tp_alloc_type&>())); 32778: } 32778: 32778: static constexpr bool 32778: _S_nothrow_relocate(false_type) 32778: { return false; } 32778: 32778: static constexpr bool 32778: _S_use_relocate() 32778: { 32778: 32778: 32778: 32778: return _S_nothrow_relocate(__is_move_insertable<_Tp_alloc_type>{}); 32778: } 32778: 32778: static pointer 32778: _S_do_relocate(pointer __first, pointer __last, pointer __result, 32778: _Tp_alloc_type& __alloc, true_type) noexcept 32778: { 32778: return std::__relocate_a(__first, __last, __result, __alloc); 32778: } 32778: 32778: static pointer 32778: _S_do_relocate(pointer, pointer, pointer __result, 32778: _Tp_alloc_type&, false_type) noexcept 32778: { return __result; } 32778: 32778: static pointer 32778: _S_relocate(pointer __first, pointer __last, pointer __result, 32778: _Tp_alloc_type& __alloc) noexcept 32778: { 32778: using __do_it = __bool_constant<_S_use_relocate()>; 32778: return _S_do_relocate(__first, __last, __result, __alloc, __do_it{}); 32778: } 32778: 32778: 32778: protected: 32778: using _Base::_M_allocate; 32778: using _Base::_M_deallocate; 32778: using _Base::_M_impl; 32778: using _Base::_M_get_Tp_allocator; 32778: 32778: public: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: vector() = default; 32778: # 493 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: explicit 32778: vector(const allocator_type& __a) noexcept 32778: : _Base(__a) { } 32778: # 506 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: explicit 32778: vector(size_type __n, const allocator_type& __a = allocator_type()) 32778: : _Base(_S_check_init_len(__n, __a), __a) 32778: { _M_default_initialize(__n); } 32778: # 519 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: vector(size_type __n, const value_type& __value, 32778: const allocator_type& __a = allocator_type()) 32778: : _Base(_S_check_init_len(__n, __a), __a) 32778: { _M_fill_initialize(__n, __value); } 32778: # 550 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: vector(const vector& __x) 32778: : _Base(__x.size(), 32778: _Alloc_traits::_S_select_on_copy(__x._M_get_Tp_allocator())) 32778: { 32778: this->_M_impl._M_finish = 32778: std::__uninitialized_copy_a(__x.begin(), __x.end(), 32778: this->_M_impl._M_start, 32778: _M_get_Tp_allocator()); 32778: } 32778: # 569 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: vector(vector&&) noexcept = default; 32778: 32778: 32778: vector(const vector& __x, const allocator_type& __a) 32778: : _Base(__x.size(), __a) 32778: { 32778: this->_M_impl._M_finish = 32778: std::__uninitialized_copy_a(__x.begin(), __x.end(), 32778: this->_M_impl._M_start, 32778: _M_get_Tp_allocator()); 32778: } 32778: 32778: private: 32778: vector(vector&& __rv, const allocator_type& __m, true_type) noexcept 32778: : _Base(__m, std::move(__rv)) 32778: { } 32778: 32778: vector(vector&& __rv, const allocator_type& __m, false_type) 32778: : _Base(__m) 32778: { 32778: if (__rv.get_allocator() == __m) 32778: this->_M_impl._M_swap_data(__rv._M_impl); 32778: else if (!__rv.empty()) 32778: { 32778: this->_M_create_storage(__rv.size()); 32778: this->_M_impl._M_finish = 32778: std::__uninitialized_move_a(__rv.begin(), __rv.end(), 32778: this->_M_impl._M_start, 32778: _M_get_Tp_allocator()); 32778: __rv.clear(); 32778: } 32778: } 32778: 32778: public: 32778: 32778: vector(vector&& __rv, const allocator_type& __m) 32778: noexcept( noexcept( 32778: vector(std::declval(), std::declval(), 32778: std::declval())) ) 32778: : vector(std::move(__rv), __m, typename _Alloc_traits::is_always_equal{}) 32778: { } 32778: # 622 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: vector(initializer_list __l, 32778: const allocator_type& __a = allocator_type()) 32778: : _Base(__a) 32778: { 32778: _M_range_initialize(__l.begin(), __l.end(), 32778: random_access_iterator_tag()); 32778: } 32778: # 648 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: template> 32778: vector(_InputIterator __first, _InputIterator __last, 32778: const allocator_type& __a = allocator_type()) 32778: : _Base(__a) 32778: { 32778: _M_range_initialize(__first, __last, 32778: std::__iterator_category(__first)); 32778: } 32778: # 675 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: ~vector() noexcept 32778: { 32778: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 32778: _M_get_Tp_allocator()); 32778: ; 32778: } 32778: # 691 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: vector& 32778: operator=(const vector& __x); 32778: # 705 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: vector& 32778: operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move()) 32778: { 32778: constexpr bool __move_storage = 32778: _Alloc_traits::_S_propagate_on_move_assign() 32778: || _Alloc_traits::_S_always_equal(); 32778: _M_move_assign(std::move(__x), __bool_constant<__move_storage>()); 32778: return *this; 32778: } 32778: # 726 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: vector& 32778: operator=(initializer_list __l) 32778: { 32778: this->_M_assign_aux(__l.begin(), __l.end(), 32778: random_access_iterator_tag()); 32778: return *this; 32778: } 32778: # 745 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: void 32778: assign(size_type __n, const value_type& __val) 32778: { _M_fill_assign(__n, __val); } 32778: # 762 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: template> 32778: void 32778: assign(_InputIterator __first, _InputIterator __last) 32778: { _M_assign_dispatch(__first, __last, __false_type()); } 32778: # 790 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: void 32778: assign(initializer_list __l) 32778: { 32778: this->_M_assign_aux(__l.begin(), __l.end(), 32778: random_access_iterator_tag()); 32778: } 32778: 32778: 32778: 32778: using _Base::get_allocator; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: iterator 32778: begin() noexcept 32778: { return iterator(this->_M_impl._M_start); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_iterator 32778: begin() const noexcept 32778: { return const_iterator(this->_M_impl._M_start); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: iterator 32778: end() noexcept 32778: { return iterator(this->_M_impl._M_finish); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_iterator 32778: end() const noexcept 32778: { return const_iterator(this->_M_impl._M_finish); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: reverse_iterator 32778: rbegin() noexcept 32778: { return reverse_iterator(end()); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_reverse_iterator 32778: rbegin() const noexcept 32778: { return const_reverse_iterator(end()); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: reverse_iterator 32778: rend() noexcept 32778: { return reverse_iterator(begin()); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_reverse_iterator 32778: rend() const noexcept 32778: { return const_reverse_iterator(begin()); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_iterator 32778: cbegin() const noexcept 32778: { return const_iterator(this->_M_impl._M_start); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_iterator 32778: cend() const noexcept 32778: { return const_iterator(this->_M_impl._M_finish); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_reverse_iterator 32778: crbegin() const noexcept 32778: { return const_reverse_iterator(end()); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_reverse_iterator 32778: crend() const noexcept 32778: { return const_reverse_iterator(begin()); } 32778: 32778: 32778: 32778: 32778: size_type 32778: size() const noexcept 32778: { return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); } 32778: 32778: 32778: size_type 32778: max_size() const noexcept 32778: { return _S_max_size(_M_get_Tp_allocator()); } 32778: # 933 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: void 32778: resize(size_type __new_size) 32778: { 32778: if (__new_size > size()) 32778: _M_default_append(__new_size - size()); 32778: else if (__new_size < size()) 32778: _M_erase_at_end(this->_M_impl._M_start + __new_size); 32778: } 32778: # 953 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: void 32778: resize(size_type __new_size, const value_type& __x) 32778: { 32778: if (__new_size > size()) 32778: _M_fill_insert(end(), __new_size - size(), __x); 32778: else if (__new_size < size()) 32778: _M_erase_at_end(this->_M_impl._M_start + __new_size); 32778: } 32778: # 985 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: void 32778: shrink_to_fit() 32778: { _M_shrink_to_fit(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: size_type 32778: capacity() const noexcept 32778: { return size_type(this->_M_impl._M_end_of_storage 32778: - this->_M_impl._M_start); } 32778: 32778: 32778: 32778: 32778: 32778: bool 32778: empty() const noexcept 32778: { return begin() == end(); } 32778: # 1024 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: void 32778: reserve(size_type __n); 32778: # 1039 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: reference 32778: operator[](size_type __n) noexcept 32778: { 32778: ; 32778: return *(this->_M_impl._M_start + __n); 32778: } 32778: # 1057 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: const_reference 32778: operator[](size_type __n) const noexcept 32778: { 32778: ; 32778: return *(this->_M_impl._M_start + __n); 32778: } 32778: 32778: protected: 32778: 32778: void 32778: _M_range_check(size_type __n) const 32778: { 32778: if (__n >= this->size()) 32778: __throw_out_of_range_fmt(("vector::_M_range_check: __n " "(which is %zu) >= this->size() " "(which is %zu)") 32778: 32778: , 32778: __n, this->size()); 32778: } 32778: 32778: public: 32778: # 1088 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: reference 32778: at(size_type __n) 32778: { 32778: _M_range_check(__n); 32778: return (*this)[__n]; 32778: } 32778: # 1106 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: const_reference 32778: at(size_type __n) const 32778: { 32778: _M_range_check(__n); 32778: return (*this)[__n]; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: reference 32778: front() noexcept 32778: { 32778: ; 32778: return *begin(); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: const_reference 32778: front() const noexcept 32778: { 32778: ; 32778: return *begin(); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: reference 32778: back() noexcept 32778: { 32778: ; 32778: return *(end() - 1); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: const_reference 32778: back() const noexcept 32778: { 32778: ; 32778: return *(end() - 1); 32778: } 32778: # 1164 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: _Tp* 32778: data() noexcept 32778: { return _M_data_ptr(this->_M_impl._M_start); } 32778: 32778: const _Tp* 32778: data() const noexcept 32778: { return _M_data_ptr(this->_M_impl._M_start); } 32778: # 1183 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: void 32778: push_back(const value_type& __x) 32778: { 32778: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 32778: { 32778: ; 32778: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 32778: __x); 32778: ++this->_M_impl._M_finish; 32778: ; 32778: } 32778: else 32778: _M_realloc_insert(end(), __x); 32778: } 32778: 32778: 32778: void 32778: push_back(value_type&& __x) 32778: { emplace_back(std::move(__x)); } 32778: 32778: template 32778: 32778: 32778: 32778: void 32778: 32778: emplace_back(_Args&&... __args); 32778: # 1221 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: void 32778: pop_back() noexcept 32778: { 32778: ; 32778: --this->_M_impl._M_finish; 32778: _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); 32778: ; 32778: } 32778: # 1243 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: template 32778: iterator 32778: emplace(const_iterator __position, _Args&&... __args) 32778: { return _M_emplace_aux(__position, std::forward<_Args>(__args)...); } 32778: # 1259 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: iterator 32778: insert(const_iterator __position, const value_type& __x); 32778: # 1289 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: iterator 32778: insert(const_iterator __position, value_type&& __x) 32778: { return _M_insert_rval(__position, std::move(__x)); } 32778: # 1306 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: iterator 32778: insert(const_iterator __position, initializer_list __l) 32778: { 32778: auto __offset = __position - cbegin(); 32778: _M_range_insert(begin() + __offset, __l.begin(), __l.end(), 32778: std::random_access_iterator_tag()); 32778: return begin() + __offset; 32778: } 32778: # 1331 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: iterator 32778: insert(const_iterator __position, size_type __n, const value_type& __x) 32778: { 32778: difference_type __offset = __position - cbegin(); 32778: _M_fill_insert(begin() + __offset, __n, __x); 32778: return begin() + __offset; 32778: } 32778: # 1373 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: template> 32778: iterator 32778: insert(const_iterator __position, _InputIterator __first, 32778: _InputIterator __last) 32778: { 32778: difference_type __offset = __position - cbegin(); 32778: _M_insert_dispatch(begin() + __offset, 32778: __first, __last, __false_type()); 32778: return begin() + __offset; 32778: } 32778: # 1425 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: iterator 32778: 32778: erase(const_iterator __position) 32778: { return _M_erase(begin() + (__position - cbegin())); } 32778: # 1452 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: iterator 32778: 32778: erase(const_iterator __first, const_iterator __last) 32778: { 32778: const auto __beg = begin(); 32778: const auto __cbeg = cbegin(); 32778: return _M_erase(__beg + (__first - __cbeg), __beg + (__last - __cbeg)); 32778: } 32778: # 1476 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: void 32778: swap(vector& __x) noexcept 32778: { 32778: 32778: 32778: ; 32778: 32778: this->_M_impl._M_swap_data(__x._M_impl); 32778: _Alloc_traits::_S_on_swap(_M_get_Tp_allocator(), 32778: __x._M_get_Tp_allocator()); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: void 32778: clear() noexcept 32778: { _M_erase_at_end(this->_M_impl._M_start); } 32778: 32778: protected: 32778: 32778: 32778: 32778: 32778: template 32778: pointer 32778: _M_allocate_and_copy(size_type __n, 32778: _ForwardIterator __first, _ForwardIterator __last) 32778: { 32778: pointer __result = this->_M_allocate(__n); 32778: try 32778: { 32778: std::__uninitialized_copy_a(__first, __last, __result, 32778: _M_get_Tp_allocator()); 32778: return __result; 32778: } 32778: catch(...) 32778: { 32778: _M_deallocate(__result, __n); 32778: throw; 32778: } 32778: } 32778: # 1553 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: template 32778: void 32778: _M_range_initialize(_InputIterator __first, _InputIterator __last, 32778: std::input_iterator_tag) 32778: { 32778: try { 32778: for (; __first != __last; ++__first) 32778: 32778: emplace_back(*__first); 32778: 32778: 32778: 32778: } catch(...) { 32778: clear(); 32778: throw; 32778: } 32778: } 32778: 32778: 32778: template 32778: void 32778: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 32778: std::forward_iterator_tag) 32778: { 32778: const size_type __n = std::distance(__first, __last); 32778: this->_M_impl._M_start 32778: = this->_M_allocate(_S_check_init_len(__n, _M_get_Tp_allocator())); 32778: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 32778: this->_M_impl._M_finish = 32778: std::__uninitialized_copy_a(__first, __last, 32778: this->_M_impl._M_start, 32778: _M_get_Tp_allocator()); 32778: } 32778: 32778: 32778: 32778: void 32778: _M_fill_initialize(size_type __n, const value_type& __value) 32778: { 32778: this->_M_impl._M_finish = 32778: std::__uninitialized_fill_n_a(this->_M_impl._M_start, __n, __value, 32778: _M_get_Tp_allocator()); 32778: } 32778: 32778: 32778: 32778: void 32778: _M_default_initialize(size_type __n) 32778: { 32778: this->_M_impl._M_finish = 32778: std::__uninitialized_default_n_a(this->_M_impl._M_start, __n, 32778: _M_get_Tp_allocator()); 32778: } 32778: # 1615 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: template 32778: void 32778: _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) 32778: { _M_fill_assign(__n, __val); } 32778: 32778: 32778: template 32778: void 32778: _M_assign_dispatch(_InputIterator __first, _InputIterator __last, 32778: __false_type) 32778: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 32778: 32778: 32778: template 32778: void 32778: _M_assign_aux(_InputIterator __first, _InputIterator __last, 32778: std::input_iterator_tag); 32778: 32778: 32778: template 32778: void 32778: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 32778: std::forward_iterator_tag); 32778: 32778: 32778: 32778: void 32778: _M_fill_assign(size_type __n, const value_type& __val); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: void 32778: _M_insert_dispatch(iterator __pos, _Integer __n, _Integer __val, 32778: __true_type) 32778: { _M_fill_insert(__pos, __n, __val); } 32778: 32778: 32778: template 32778: void 32778: _M_insert_dispatch(iterator __pos, _InputIterator __first, 32778: _InputIterator __last, __false_type) 32778: { 32778: _M_range_insert(__pos, __first, __last, 32778: std::__iterator_category(__first)); 32778: } 32778: 32778: 32778: template 32778: void 32778: _M_range_insert(iterator __pos, _InputIterator __first, 32778: _InputIterator __last, std::input_iterator_tag); 32778: 32778: 32778: template 32778: void 32778: _M_range_insert(iterator __pos, _ForwardIterator __first, 32778: _ForwardIterator __last, std::forward_iterator_tag); 32778: 32778: 32778: 32778: void 32778: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x); 32778: 32778: 32778: 32778: void 32778: _M_default_append(size_type __n); 32778: 32778: bool 32778: _M_shrink_to_fit(); 32778: # 1702 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: struct _Temporary_value 32778: { 32778: template 32778: explicit 32778: _Temporary_value(vector* __vec, _Args&&... __args) : _M_this(__vec) 32778: { 32778: _Alloc_traits::construct(_M_this->_M_impl, _M_ptr(), 32778: std::forward<_Args>(__args)...); 32778: } 32778: 32778: ~_Temporary_value() 32778: { _Alloc_traits::destroy(_M_this->_M_impl, _M_ptr()); } 32778: 32778: value_type& 32778: _M_val() { return *_M_ptr(); } 32778: 32778: private: 32778: _Tp* 32778: _M_ptr() { return reinterpret_cast<_Tp*>(&__buf); } 32778: 32778: vector* _M_this; 32778: typename aligned_storage::type __buf; 32778: }; 32778: 32778: 32778: 32778: template 32778: void 32778: _M_insert_aux(iterator __position, _Arg&& __arg); 32778: 32778: template 32778: void 32778: _M_realloc_insert(iterator __position, _Args&&... __args); 32778: 32778: 32778: iterator 32778: _M_insert_rval(const_iterator __position, value_type&& __v); 32778: 32778: 32778: template 32778: iterator 32778: _M_emplace_aux(const_iterator __position, _Args&&... __args); 32778: 32778: 32778: iterator 32778: _M_emplace_aux(const_iterator __position, value_type&& __v) 32778: { return _M_insert_rval(__position, std::move(__v)); } 32778: 32778: 32778: 32778: size_type 32778: _M_check_len(size_type __n, const char* __s) const 32778: { 32778: if (max_size() - size() < __n) 32778: __throw_length_error((__s)); 32778: 32778: const size_type __len = size() + (std::max)(size(), __n); 32778: return (__len < size() || __len > max_size()) ? max_size() : __len; 32778: } 32778: 32778: 32778: static size_type 32778: _S_check_init_len(size_type __n, const allocator_type& __a) 32778: { 32778: if (__n > _S_max_size(_Tp_alloc_type(__a))) 32778: __throw_length_error( 32778: ("cannot create std::vector larger than max_size()")); 32778: return __n; 32778: } 32778: 32778: static size_type 32778: _S_max_size(const _Tp_alloc_type& __a) noexcept 32778: { 32778: 32778: 32778: 32778: const size_t __diffmax 32778: = __gnu_cxx::__numeric_traits::__max / sizeof(_Tp); 32778: const size_t __allocmax = _Alloc_traits::max_size(__a); 32778: return (std::min)(__diffmax, __allocmax); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: void 32778: _M_erase_at_end(pointer __pos) noexcept 32778: { 32778: if (size_type __n = this->_M_impl._M_finish - __pos) 32778: { 32778: std::_Destroy(__pos, this->_M_impl._M_finish, 32778: _M_get_Tp_allocator()); 32778: this->_M_impl._M_finish = __pos; 32778: ; 32778: } 32778: } 32778: 32778: iterator 32778: _M_erase(iterator __position); 32778: 32778: iterator 32778: _M_erase(iterator __first, iterator __last); 32778: 32778: 32778: private: 32778: 32778: 32778: 32778: void 32778: _M_move_assign(vector&& __x, true_type) noexcept 32778: { 32778: vector __tmp(get_allocator()); 32778: this->_M_impl._M_swap_data(__x._M_impl); 32778: __tmp._M_impl._M_swap_data(__x._M_impl); 32778: std::__alloc_on_move(_M_get_Tp_allocator(), __x._M_get_Tp_allocator()); 32778: } 32778: 32778: 32778: 32778: void 32778: _M_move_assign(vector&& __x, false_type) 32778: { 32778: if (__x._M_get_Tp_allocator() == this->_M_get_Tp_allocator()) 32778: _M_move_assign(std::move(__x), true_type()); 32778: else 32778: { 32778: 32778: 32778: this->assign(std::__make_move_if_noexcept_iterator(__x.begin()), 32778: std::__make_move_if_noexcept_iterator(__x.end())); 32778: __x.clear(); 32778: } 32778: } 32778: 32778: 32778: template 32778: _Up* 32778: _M_data_ptr(_Up* __ptr) const noexcept 32778: { return __ptr; } 32778: 32778: 32778: template 32778: typename std::pointer_traits<_Ptr>::element_type* 32778: _M_data_ptr(_Ptr __ptr) const 32778: { return empty() ? nullptr : std::__to_address(__ptr); } 32778: # 1864 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: }; 32778: # 1886 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: template 32778: inline bool 32778: operator==(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 32778: { return (__x.size() == __y.size() 32778: && std::equal(__x.begin(), __x.end(), __y.begin())); } 32778: # 1903 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: template 32778: inline bool 32778: operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 32778: { return std::lexicographical_compare(__x.begin(), __x.end(), 32778: __y.begin(), __y.end()); } 32778: 32778: 32778: template 32778: inline bool 32778: operator!=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 32778: { return !(__x == __y); } 32778: 32778: 32778: template 32778: inline bool 32778: operator>(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 32778: { return __y < __x; } 32778: 32778: 32778: template 32778: inline bool 32778: operator<=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 32778: { return !(__y < __x); } 32778: 32778: 32778: template 32778: inline bool 32778: operator>=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 32778: { return !(__x < __y); } 32778: 32778: 32778: template 32778: inline void 32778: swap(vector<_Tp, _Alloc>& __x, vector<_Tp, _Alloc>& __y) 32778: noexcept(noexcept(__x.swap(__y))) 32778: { __x.swap(__y); } 32778: 32778: 32778: # 1956 "/usr/include/c++/9/bits/stl_vector.h" 3 32778: 32778: } 32778: # 68 "/usr/include/c++/9/vector" 2 3 32778: # 1 "/usr/include/c++/9/bits/stl_bvector.h" 1 3 32778: # 64 "/usr/include/c++/9/bits/stl_bvector.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: typedef unsigned long _Bit_type; 32778: enum { _S_word_bit = int(8 * sizeof(_Bit_type)) }; 32778: 32778: struct _Bit_reference 32778: { 32778: _Bit_type * _M_p; 32778: _Bit_type _M_mask; 32778: 32778: _Bit_reference(_Bit_type * __x, _Bit_type __y) 32778: : _M_p(__x), _M_mask(__y) { } 32778: 32778: _Bit_reference() noexcept : _M_p(0), _M_mask(0) { } 32778: 32778: 32778: _Bit_reference(const _Bit_reference&) = default; 32778: 32778: 32778: operator bool() const noexcept 32778: { return !!(*_M_p & _M_mask); } 32778: 32778: _Bit_reference& 32778: operator=(bool __x) noexcept 32778: { 32778: if (__x) 32778: *_M_p |= _M_mask; 32778: else 32778: *_M_p &= ~_M_mask; 32778: return *this; 32778: } 32778: 32778: _Bit_reference& 32778: operator=(const _Bit_reference& __x) noexcept 32778: { return *this = bool(__x); } 32778: 32778: bool 32778: operator==(const _Bit_reference& __x) const 32778: { return bool(*this) == bool(__x); } 32778: 32778: bool 32778: operator<(const _Bit_reference& __x) const 32778: { return !bool(*this) && bool(__x); } 32778: 32778: void 32778: flip() noexcept 32778: { *_M_p ^= _M_mask; } 32778: }; 32778: 32778: 32778: inline void 32778: swap(_Bit_reference __x, _Bit_reference __y) noexcept 32778: { 32778: bool __tmp = __x; 32778: __x = __y; 32778: __y = __tmp; 32778: } 32778: 32778: inline void 32778: swap(_Bit_reference __x, bool& __y) noexcept 32778: { 32778: bool __tmp = __x; 32778: __x = __y; 32778: __y = __tmp; 32778: } 32778: 32778: inline void 32778: swap(bool& __x, _Bit_reference __y) noexcept 32778: { 32778: bool __tmp = __x; 32778: __x = __y; 32778: __y = __tmp; 32778: } 32778: 32778: 32778: struct _Bit_iterator_base 32778: : public std::iterator 32778: { 32778: _Bit_type * _M_p; 32778: unsigned int _M_offset; 32778: 32778: _Bit_iterator_base(_Bit_type * __x, unsigned int __y) 32778: : _M_p(__x), _M_offset(__y) { } 32778: 32778: void 32778: _M_bump_up() 32778: { 32778: if (_M_offset++ == int(_S_word_bit) - 1) 32778: { 32778: _M_offset = 0; 32778: ++_M_p; 32778: } 32778: } 32778: 32778: void 32778: _M_bump_down() 32778: { 32778: if (_M_offset-- == 0) 32778: { 32778: _M_offset = int(_S_word_bit) - 1; 32778: --_M_p; 32778: } 32778: } 32778: 32778: void 32778: _M_incr(ptrdiff_t __i) 32778: { 32778: difference_type __n = __i + _M_offset; 32778: _M_p += __n / int(_S_word_bit); 32778: __n = __n % int(_S_word_bit); 32778: if (__n < 0) 32778: { 32778: __n += int(_S_word_bit); 32778: --_M_p; 32778: } 32778: _M_offset = static_cast(__n); 32778: } 32778: 32778: bool 32778: operator==(const _Bit_iterator_base& __i) const 32778: { return _M_p == __i._M_p && _M_offset == __i._M_offset; } 32778: 32778: bool 32778: operator<(const _Bit_iterator_base& __i) const 32778: { 32778: return _M_p < __i._M_p 32778: || (_M_p == __i._M_p && _M_offset < __i._M_offset); 32778: } 32778: 32778: bool 32778: operator!=(const _Bit_iterator_base& __i) const 32778: { return !(*this == __i); } 32778: 32778: bool 32778: operator>(const _Bit_iterator_base& __i) const 32778: { return __i < *this; } 32778: 32778: bool 32778: operator<=(const _Bit_iterator_base& __i) const 32778: { return !(__i < *this); } 32778: 32778: bool 32778: operator>=(const _Bit_iterator_base& __i) const 32778: { return !(*this < __i); } 32778: }; 32778: 32778: inline ptrdiff_t 32778: operator-(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 32778: { 32778: return (int(_S_word_bit) * (__x._M_p - __y._M_p) 32778: + __x._M_offset - __y._M_offset); 32778: } 32778: 32778: struct _Bit_iterator : public _Bit_iterator_base 32778: { 32778: typedef _Bit_reference reference; 32778: typedef _Bit_reference* pointer; 32778: typedef _Bit_iterator iterator; 32778: 32778: _Bit_iterator() : _Bit_iterator_base(0, 0) { } 32778: 32778: _Bit_iterator(_Bit_type * __x, unsigned int __y) 32778: : _Bit_iterator_base(__x, __y) { } 32778: 32778: iterator 32778: _M_const_cast() const 32778: { return *this; } 32778: 32778: reference 32778: operator*() const 32778: { return reference(_M_p, 1UL << _M_offset); } 32778: 32778: iterator& 32778: operator++() 32778: { 32778: _M_bump_up(); 32778: return *this; 32778: } 32778: 32778: iterator 32778: operator++(int) 32778: { 32778: iterator __tmp = *this; 32778: _M_bump_up(); 32778: return __tmp; 32778: } 32778: 32778: iterator& 32778: operator--() 32778: { 32778: _M_bump_down(); 32778: return *this; 32778: } 32778: 32778: iterator 32778: operator--(int) 32778: { 32778: iterator __tmp = *this; 32778: _M_bump_down(); 32778: return __tmp; 32778: } 32778: 32778: iterator& 32778: operator+=(difference_type __i) 32778: { 32778: _M_incr(__i); 32778: return *this; 32778: } 32778: 32778: iterator& 32778: operator-=(difference_type __i) 32778: { 32778: *this += -__i; 32778: return *this; 32778: } 32778: 32778: iterator 32778: operator+(difference_type __i) const 32778: { 32778: iterator __tmp = *this; 32778: return __tmp += __i; 32778: } 32778: 32778: iterator 32778: operator-(difference_type __i) const 32778: { 32778: iterator __tmp = *this; 32778: return __tmp -= __i; 32778: } 32778: 32778: reference 32778: operator[](difference_type __i) const 32778: { return *(*this + __i); } 32778: }; 32778: 32778: inline _Bit_iterator 32778: operator+(ptrdiff_t __n, const _Bit_iterator& __x) 32778: { return __x + __n; } 32778: 32778: struct _Bit_const_iterator : public _Bit_iterator_base 32778: { 32778: typedef bool reference; 32778: typedef bool const_reference; 32778: typedef const bool* pointer; 32778: typedef _Bit_const_iterator const_iterator; 32778: 32778: _Bit_const_iterator() : _Bit_iterator_base(0, 0) { } 32778: 32778: _Bit_const_iterator(_Bit_type * __x, unsigned int __y) 32778: : _Bit_iterator_base(__x, __y) { } 32778: 32778: _Bit_const_iterator(const _Bit_iterator& __x) 32778: : _Bit_iterator_base(__x._M_p, __x._M_offset) { } 32778: 32778: _Bit_iterator 32778: _M_const_cast() const 32778: { return _Bit_iterator(_M_p, _M_offset); } 32778: 32778: const_reference 32778: operator*() const 32778: { return _Bit_reference(_M_p, 1UL << _M_offset); } 32778: 32778: const_iterator& 32778: operator++() 32778: { 32778: _M_bump_up(); 32778: return *this; 32778: } 32778: 32778: const_iterator 32778: operator++(int) 32778: { 32778: const_iterator __tmp = *this; 32778: _M_bump_up(); 32778: return __tmp; 32778: } 32778: 32778: const_iterator& 32778: operator--() 32778: { 32778: _M_bump_down(); 32778: return *this; 32778: } 32778: 32778: const_iterator 32778: operator--(int) 32778: { 32778: const_iterator __tmp = *this; 32778: _M_bump_down(); 32778: return __tmp; 32778: } 32778: 32778: const_iterator& 32778: operator+=(difference_type __i) 32778: { 32778: _M_incr(__i); 32778: return *this; 32778: } 32778: 32778: const_iterator& 32778: operator-=(difference_type __i) 32778: { 32778: *this += -__i; 32778: return *this; 32778: } 32778: 32778: const_iterator 32778: operator+(difference_type __i) const 32778: { 32778: const_iterator __tmp = *this; 32778: return __tmp += __i; 32778: } 32778: 32778: const_iterator 32778: operator-(difference_type __i) const 32778: { 32778: const_iterator __tmp = *this; 32778: return __tmp -= __i; 32778: } 32778: 32778: const_reference 32778: operator[](difference_type __i) const 32778: { return *(*this + __i); } 32778: }; 32778: 32778: inline _Bit_const_iterator 32778: operator+(ptrdiff_t __n, const _Bit_const_iterator& __x) 32778: { return __x + __n; } 32778: 32778: inline void 32778: __fill_bvector(_Bit_type * __v, 32778: unsigned int __first, unsigned int __last, bool __x) 32778: { 32778: const _Bit_type __fmask = ~0ul << __first; 32778: const _Bit_type __lmask = ~0ul >> (_S_word_bit - __last); 32778: const _Bit_type __mask = __fmask & __lmask; 32778: 32778: if (__x) 32778: *__v |= __mask; 32778: else 32778: *__v &= ~__mask; 32778: } 32778: 32778: inline void 32778: fill(_Bit_iterator __first, _Bit_iterator __last, const bool& __x) 32778: { 32778: if (__first._M_p != __last._M_p) 32778: { 32778: _Bit_type* __first_p = __first._M_p; 32778: if (__first._M_offset != 0) 32778: __fill_bvector(__first_p++, __first._M_offset, _S_word_bit, __x); 32778: 32778: __builtin_memset(__first_p, __x ? ~0 : 0, 32778: (__last._M_p - __first_p) * sizeof(_Bit_type)); 32778: 32778: if (__last._M_offset != 0) 32778: __fill_bvector(__last._M_p, 0, __last._M_offset, __x); 32778: } 32778: else if (__first._M_offset != __last._M_offset) 32778: __fill_bvector(__first._M_p, __first._M_offset, __last._M_offset, __x); 32778: } 32778: 32778: template 32778: struct _Bvector_base 32778: { 32778: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 32778: rebind<_Bit_type>::other _Bit_alloc_type; 32778: typedef typename __gnu_cxx::__alloc_traits<_Bit_alloc_type> 32778: _Bit_alloc_traits; 32778: typedef typename _Bit_alloc_traits::pointer _Bit_pointer; 32778: 32778: struct _Bvector_impl_data 32778: { 32778: _Bit_iterator _M_start; 32778: _Bit_iterator _M_finish; 32778: _Bit_pointer _M_end_of_storage; 32778: 32778: _Bvector_impl_data() noexcept 32778: : _M_start(), _M_finish(), _M_end_of_storage() 32778: { } 32778: 32778: 32778: _Bvector_impl_data(_Bvector_impl_data&& __x) noexcept 32778: : _M_start(__x._M_start), _M_finish(__x._M_finish) 32778: , _M_end_of_storage(__x._M_end_of_storage) 32778: { __x._M_reset(); } 32778: 32778: void 32778: _M_move_data(_Bvector_impl_data&& __x) noexcept 32778: { 32778: this->_M_start = __x._M_start; 32778: this->_M_finish = __x._M_finish; 32778: this->_M_end_of_storage = __x._M_end_of_storage; 32778: __x._M_reset(); 32778: } 32778: 32778: 32778: void 32778: _M_reset() noexcept 32778: { 32778: _M_start = _M_finish = _Bit_iterator(); 32778: _M_end_of_storage = _Bit_pointer(); 32778: } 32778: }; 32778: 32778: struct _Bvector_impl 32778: : public _Bit_alloc_type, public _Bvector_impl_data 32778: { 32778: public: 32778: _Bvector_impl() noexcept(is_nothrow_default_constructible<_Bit_alloc_type>::value) 32778: 32778: : _Bit_alloc_type() 32778: { } 32778: 32778: _Bvector_impl(const _Bit_alloc_type& __a) noexcept 32778: : _Bit_alloc_type(__a) 32778: { } 32778: 32778: 32778: _Bvector_impl(_Bvector_impl&&) = default; 32778: 32778: 32778: _Bit_type* 32778: _M_end_addr() const noexcept 32778: { 32778: if (this->_M_end_of_storage) 32778: return std::__addressof(this->_M_end_of_storage[-1]) + 1; 32778: return 0; 32778: } 32778: }; 32778: 32778: public: 32778: typedef _Alloc allocator_type; 32778: 32778: _Bit_alloc_type& 32778: _M_get_Bit_allocator() noexcept 32778: { return this->_M_impl; } 32778: 32778: const _Bit_alloc_type& 32778: _M_get_Bit_allocator() const noexcept 32778: { return this->_M_impl; } 32778: 32778: allocator_type 32778: get_allocator() const noexcept 32778: { return allocator_type(_M_get_Bit_allocator()); } 32778: 32778: 32778: _Bvector_base() = default; 32778: 32778: 32778: 32778: 32778: _Bvector_base(const allocator_type& __a) 32778: : _M_impl(__a) { } 32778: 32778: 32778: _Bvector_base(_Bvector_base&&) = default; 32778: 32778: 32778: ~_Bvector_base() 32778: { this->_M_deallocate(); } 32778: 32778: protected: 32778: _Bvector_impl _M_impl; 32778: 32778: _Bit_pointer 32778: _M_allocate(size_t __n) 32778: { return _Bit_alloc_traits::allocate(_M_impl, _S_nword(__n)); } 32778: 32778: void 32778: _M_deallocate() 32778: { 32778: if (_M_impl._M_start._M_p) 32778: { 32778: const size_t __n = _M_impl._M_end_addr() - _M_impl._M_start._M_p; 32778: _Bit_alloc_traits::deallocate(_M_impl, 32778: _M_impl._M_end_of_storage - __n, 32778: __n); 32778: _M_impl._M_reset(); 32778: } 32778: } 32778: 32778: 32778: void 32778: _M_move_data(_Bvector_base&& __x) noexcept 32778: { _M_impl._M_move_data(std::move(__x._M_impl)); } 32778: 32778: 32778: static size_t 32778: _S_nword(size_t __n) 32778: { return (__n + int(_S_word_bit) - 1) / int(_S_word_bit); } 32778: }; 32778: 32778: 32778: 32778: } 32778: 32778: 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: # 591 "/usr/include/c++/9/bits/stl_bvector.h" 3 32778: template 32778: class vector : protected _Bvector_base<_Alloc> 32778: { 32778: typedef _Bvector_base<_Alloc> _Base; 32778: typedef typename _Base::_Bit_pointer _Bit_pointer; 32778: typedef typename _Base::_Bit_alloc_traits _Bit_alloc_traits; 32778: 32778: 32778: friend struct std::hash; 32778: 32778: 32778: public: 32778: typedef bool value_type; 32778: typedef size_t size_type; 32778: typedef ptrdiff_t difference_type; 32778: typedef _Bit_reference reference; 32778: typedef bool const_reference; 32778: typedef _Bit_reference* pointer; 32778: typedef const bool* const_pointer; 32778: typedef _Bit_iterator iterator; 32778: typedef _Bit_const_iterator const_iterator; 32778: typedef std::reverse_iterator const_reverse_iterator; 32778: typedef std::reverse_iterator reverse_iterator; 32778: typedef _Alloc allocator_type; 32778: 32778: allocator_type 32778: get_allocator() const 32778: { return _Base::get_allocator(); } 32778: 32778: protected: 32778: using _Base::_M_allocate; 32778: using _Base::_M_deallocate; 32778: using _Base::_S_nword; 32778: using _Base::_M_get_Bit_allocator; 32778: 32778: public: 32778: 32778: vector() = default; 32778: 32778: 32778: 32778: 32778: explicit 32778: vector(const allocator_type& __a) 32778: : _Base(__a) { } 32778: 32778: 32778: explicit 32778: vector(size_type __n, const allocator_type& __a = allocator_type()) 32778: : vector(__n, false, __a) 32778: { } 32778: 32778: vector(size_type __n, const bool& __value, 32778: const allocator_type& __a = allocator_type()) 32778: 32778: 32778: 32778: 32778: 32778: : _Base(__a) 32778: { 32778: _M_initialize(__n); 32778: _M_initialize_value(__value); 32778: } 32778: 32778: vector(const vector& __x) 32778: : _Base(_Bit_alloc_traits::_S_select_on_copy(__x._M_get_Bit_allocator())) 32778: { 32778: _M_initialize(__x.size()); 32778: _M_copy_aligned(__x.begin(), __x.end(), this->_M_impl._M_start); 32778: } 32778: 32778: 32778: vector(vector&&) = default; 32778: 32778: vector(vector&& __x, const allocator_type& __a) 32778: noexcept(_Bit_alloc_traits::_S_always_equal()) 32778: : _Base(__a) 32778: { 32778: if (__x.get_allocator() == __a) 32778: this->_M_move_data(std::move(__x)); 32778: else 32778: { 32778: _M_initialize(__x.size()); 32778: _M_copy_aligned(__x.begin(), __x.end(), begin()); 32778: __x.clear(); 32778: } 32778: } 32778: 32778: vector(const vector& __x, const allocator_type& __a) 32778: : _Base(__a) 32778: { 32778: _M_initialize(__x.size()); 32778: _M_copy_aligned(__x.begin(), __x.end(), this->_M_impl._M_start); 32778: } 32778: 32778: vector(initializer_list __l, 32778: const allocator_type& __a = allocator_type()) 32778: : _Base(__a) 32778: { 32778: _M_initialize_range(__l.begin(), __l.end(), 32778: random_access_iterator_tag()); 32778: } 32778: 32778: 32778: 32778: template> 32778: vector(_InputIterator __first, _InputIterator __last, 32778: const allocator_type& __a = allocator_type()) 32778: : _Base(__a) 32778: { _M_initialize_dispatch(__first, __last, __false_type()); } 32778: # 714 "/usr/include/c++/9/bits/stl_bvector.h" 3 32778: ~vector() noexcept { } 32778: 32778: vector& 32778: operator=(const vector& __x) 32778: { 32778: if (&__x == this) 32778: return *this; 32778: 32778: if (_Bit_alloc_traits::_S_propagate_on_copy_assign()) 32778: { 32778: if (this->_M_get_Bit_allocator() != __x._M_get_Bit_allocator()) 32778: { 32778: this->_M_deallocate(); 32778: std::__alloc_on_copy(_M_get_Bit_allocator(), 32778: __x._M_get_Bit_allocator()); 32778: _M_initialize(__x.size()); 32778: } 32778: else 32778: std::__alloc_on_copy(_M_get_Bit_allocator(), 32778: __x._M_get_Bit_allocator()); 32778: } 32778: 32778: if (__x.size() > capacity()) 32778: { 32778: this->_M_deallocate(); 32778: _M_initialize(__x.size()); 32778: } 32778: this->_M_impl._M_finish = _M_copy_aligned(__x.begin(), __x.end(), 32778: begin()); 32778: return *this; 32778: } 32778: 32778: 32778: vector& 32778: operator=(vector&& __x) noexcept(_Bit_alloc_traits::_S_nothrow_move()) 32778: { 32778: if (_Bit_alloc_traits::_S_propagate_on_move_assign() 32778: || this->_M_get_Bit_allocator() == __x._M_get_Bit_allocator()) 32778: { 32778: this->_M_deallocate(); 32778: this->_M_move_data(std::move(__x)); 32778: std::__alloc_on_move(_M_get_Bit_allocator(), 32778: __x._M_get_Bit_allocator()); 32778: } 32778: else 32778: { 32778: if (__x.size() > capacity()) 32778: { 32778: this->_M_deallocate(); 32778: _M_initialize(__x.size()); 32778: } 32778: this->_M_impl._M_finish = _M_copy_aligned(__x.begin(), __x.end(), 32778: begin()); 32778: __x.clear(); 32778: } 32778: return *this; 32778: } 32778: 32778: vector& 32778: operator=(initializer_list __l) 32778: { 32778: this->assign (__l.begin(), __l.end()); 32778: return *this; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: void 32778: assign(size_type __n, const bool& __x) 32778: { _M_fill_assign(__n, __x); } 32778: 32778: 32778: template> 32778: void 32778: assign(_InputIterator __first, _InputIterator __last) 32778: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 32778: # 805 "/usr/include/c++/9/bits/stl_bvector.h" 3 32778: void 32778: assign(initializer_list __l) 32778: { _M_assign_aux(__l.begin(), __l.end(), random_access_iterator_tag()); } 32778: 32778: 32778: iterator 32778: begin() noexcept 32778: { return iterator(this->_M_impl._M_start._M_p, 0); } 32778: 32778: const_iterator 32778: begin() const noexcept 32778: { return const_iterator(this->_M_impl._M_start._M_p, 0); } 32778: 32778: iterator 32778: end() noexcept 32778: { return this->_M_impl._M_finish; } 32778: 32778: const_iterator 32778: end() const noexcept 32778: { return this->_M_impl._M_finish; } 32778: 32778: reverse_iterator 32778: rbegin() noexcept 32778: { return reverse_iterator(end()); } 32778: 32778: const_reverse_iterator 32778: rbegin() const noexcept 32778: { return const_reverse_iterator(end()); } 32778: 32778: reverse_iterator 32778: rend() noexcept 32778: { return reverse_iterator(begin()); } 32778: 32778: const_reverse_iterator 32778: rend() const noexcept 32778: { return const_reverse_iterator(begin()); } 32778: 32778: 32778: const_iterator 32778: cbegin() const noexcept 32778: { return const_iterator(this->_M_impl._M_start._M_p, 0); } 32778: 32778: const_iterator 32778: cend() const noexcept 32778: { return this->_M_impl._M_finish; } 32778: 32778: const_reverse_iterator 32778: crbegin() const noexcept 32778: { return const_reverse_iterator(end()); } 32778: 32778: const_reverse_iterator 32778: crend() const noexcept 32778: { return const_reverse_iterator(begin()); } 32778: 32778: 32778: size_type 32778: size() const noexcept 32778: { return size_type(end() - begin()); } 32778: 32778: size_type 32778: max_size() const noexcept 32778: { 32778: const size_type __isize = 32778: __gnu_cxx::__numeric_traits::__max 32778: - int(_S_word_bit) + 1; 32778: const size_type __asize 32778: = _Bit_alloc_traits::max_size(_M_get_Bit_allocator()); 32778: return (__asize <= __isize / int(_S_word_bit) 32778: ? __asize * int(_S_word_bit) : __isize); 32778: } 32778: 32778: size_type 32778: capacity() const noexcept 32778: { return size_type(const_iterator(this->_M_impl._M_end_addr(), 0) 32778: - begin()); } 32778: 32778: bool 32778: empty() const noexcept 32778: { return begin() == end(); } 32778: 32778: reference 32778: operator[](size_type __n) 32778: { 32778: return *iterator(this->_M_impl._M_start._M_p 32778: + __n / int(_S_word_bit), __n % int(_S_word_bit)); 32778: } 32778: 32778: const_reference 32778: operator[](size_type __n) const 32778: { 32778: return *const_iterator(this->_M_impl._M_start._M_p 32778: + __n / int(_S_word_bit), __n % int(_S_word_bit)); 32778: } 32778: 32778: protected: 32778: void 32778: _M_range_check(size_type __n) const 32778: { 32778: if (__n >= this->size()) 32778: __throw_out_of_range_fmt(("vector::_M_range_check: __n " "(which is %zu) >= this->size() " "(which is %zu)") 32778: 32778: , 32778: __n, this->size()); 32778: } 32778: 32778: public: 32778: reference 32778: at(size_type __n) 32778: { _M_range_check(__n); return (*this)[__n]; } 32778: 32778: const_reference 32778: at(size_type __n) const 32778: { _M_range_check(__n); return (*this)[__n]; } 32778: 32778: void 32778: reserve(size_type __n) 32778: { 32778: if (__n > max_size()) 32778: __throw_length_error(("vector::reserve")); 32778: if (capacity() < __n) 32778: _M_reallocate(__n); 32778: } 32778: 32778: reference 32778: front() 32778: { return *begin(); } 32778: 32778: const_reference 32778: front() const 32778: { return *begin(); } 32778: 32778: reference 32778: back() 32778: { return *(end() - 1); } 32778: 32778: const_reference 32778: back() const 32778: { return *(end() - 1); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: void 32778: data() noexcept { } 32778: 32778: void 32778: push_back(bool __x) 32778: { 32778: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr()) 32778: *this->_M_impl._M_finish++ = __x; 32778: else 32778: _M_insert_aux(end(), __x); 32778: } 32778: 32778: void 32778: swap(vector& __x) noexcept 32778: { 32778: std::swap(this->_M_impl._M_start, __x._M_impl._M_start); 32778: std::swap(this->_M_impl._M_finish, __x._M_impl._M_finish); 32778: std::swap(this->_M_impl._M_end_of_storage, 32778: __x._M_impl._M_end_of_storage); 32778: _Bit_alloc_traits::_S_on_swap(_M_get_Bit_allocator(), 32778: __x._M_get_Bit_allocator()); 32778: } 32778: 32778: 32778: static void 32778: swap(reference __x, reference __y) noexcept 32778: { 32778: bool __tmp = __x; 32778: __x = __y; 32778: __y = __tmp; 32778: } 32778: 32778: iterator 32778: 32778: insert(const_iterator __position, const bool& __x = bool()) 32778: 32778: 32778: 32778: { 32778: const difference_type __n = __position - begin(); 32778: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr() 32778: && __position == end()) 32778: *this->_M_impl._M_finish++ = __x; 32778: else 32778: _M_insert_aux(__position._M_const_cast(), __x); 32778: return begin() + __n; 32778: } 32778: 32778: 32778: template> 32778: iterator 32778: insert(const_iterator __position, 32778: _InputIterator __first, _InputIterator __last) 32778: { 32778: difference_type __offset = __position - cbegin(); 32778: _M_insert_dispatch(__position._M_const_cast(), 32778: __first, __last, __false_type()); 32778: return begin() + __offset; 32778: } 32778: # 1021 "/usr/include/c++/9/bits/stl_bvector.h" 3 32778: iterator 32778: insert(const_iterator __position, size_type __n, const bool& __x) 32778: { 32778: difference_type __offset = __position - cbegin(); 32778: _M_fill_insert(__position._M_const_cast(), __n, __x); 32778: return begin() + __offset; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: iterator 32778: insert(const_iterator __p, initializer_list __l) 32778: { return this->insert(__p, __l.begin(), __l.end()); } 32778: 32778: 32778: void 32778: pop_back() 32778: { --this->_M_impl._M_finish; } 32778: 32778: iterator 32778: 32778: erase(const_iterator __position) 32778: 32778: 32778: 32778: { return _M_erase(__position._M_const_cast()); } 32778: 32778: iterator 32778: 32778: erase(const_iterator __first, const_iterator __last) 32778: 32778: 32778: 32778: { return _M_erase(__first._M_const_cast(), __last._M_const_cast()); } 32778: 32778: void 32778: resize(size_type __new_size, bool __x = bool()) 32778: { 32778: if (__new_size < size()) 32778: _M_erase_at_end(begin() + difference_type(__new_size)); 32778: else 32778: insert(end(), __new_size - size(), __x); 32778: } 32778: 32778: 32778: void 32778: shrink_to_fit() 32778: { _M_shrink_to_fit(); } 32778: 32778: 32778: void 32778: flip() noexcept 32778: { 32778: _Bit_type * const __end = this->_M_impl._M_end_addr(); 32778: for (_Bit_type * __p = this->_M_impl._M_start._M_p; __p != __end; ++__p) 32778: *__p = ~*__p; 32778: } 32778: 32778: void 32778: clear() noexcept 32778: { _M_erase_at_end(begin()); } 32778: 32778: 32778: template 32778: 32778: 32778: 32778: void 32778: 32778: emplace_back(_Args&&... __args) 32778: { 32778: push_back(bool(__args...)); 32778: 32778: 32778: 32778: } 32778: 32778: template 32778: iterator 32778: emplace(const_iterator __pos, _Args&&... __args) 32778: { return insert(__pos, bool(__args...)); } 32778: 32778: 32778: protected: 32778: 32778: iterator 32778: _M_copy_aligned(const_iterator __first, const_iterator __last, 32778: iterator __result) 32778: { 32778: _Bit_type* __q = std::copy(__first._M_p, __last._M_p, __result._M_p); 32778: return std::copy(const_iterator(__last._M_p, 0), __last, 32778: iterator(__q, 0)); 32778: } 32778: 32778: void 32778: _M_initialize(size_type __n) 32778: { 32778: if (__n) 32778: { 32778: _Bit_pointer __q = this->_M_allocate(__n); 32778: this->_M_impl._M_end_of_storage = __q + _S_nword(__n); 32778: this->_M_impl._M_start = iterator(std::__addressof(*__q), 0); 32778: } 32778: else 32778: { 32778: this->_M_impl._M_end_of_storage = _Bit_pointer(); 32778: this->_M_impl._M_start = iterator(0, 0); 32778: } 32778: this->_M_impl._M_finish = this->_M_impl._M_start + difference_type(__n); 32778: 32778: } 32778: 32778: void 32778: _M_initialize_value(bool __x) 32778: { 32778: if (_Bit_type* __p = this->_M_impl._M_start._M_p) 32778: __builtin_memset(__p, __x ? ~0 : 0, 32778: (this->_M_impl._M_end_addr() - __p) 32778: * sizeof(_Bit_type)); 32778: } 32778: 32778: void 32778: _M_reallocate(size_type __n); 32778: 32778: 32778: bool 32778: _M_shrink_to_fit(); 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: void 32778: _M_initialize_dispatch(_Integer __n, _Integer __x, __true_type) 32778: { 32778: _M_initialize(static_cast(__n)); 32778: _M_initialize_value(__x); 32778: } 32778: 32778: template 32778: void 32778: _M_initialize_dispatch(_InputIterator __first, _InputIterator __last, 32778: __false_type) 32778: { _M_initialize_range(__first, __last, 32778: std::__iterator_category(__first)); } 32778: 32778: template 32778: void 32778: _M_initialize_range(_InputIterator __first, _InputIterator __last, 32778: std::input_iterator_tag) 32778: { 32778: for (; __first != __last; ++__first) 32778: push_back(*__first); 32778: } 32778: 32778: template 32778: void 32778: _M_initialize_range(_ForwardIterator __first, _ForwardIterator __last, 32778: std::forward_iterator_tag) 32778: { 32778: const size_type __n = std::distance(__first, __last); 32778: _M_initialize(__n); 32778: std::copy(__first, __last, this->_M_impl._M_start); 32778: } 32778: # 1207 "/usr/include/c++/9/bits/stl_bvector.h" 3 32778: void 32778: _M_fill_assign(size_t __n, bool __x) 32778: { 32778: if (__n > size()) 32778: { 32778: _M_initialize_value(__x); 32778: insert(end(), __n - size(), __x); 32778: } 32778: else 32778: { 32778: _M_erase_at_end(begin() + __n); 32778: _M_initialize_value(__x); 32778: } 32778: } 32778: 32778: template 32778: void 32778: _M_assign_aux(_InputIterator __first, _InputIterator __last, 32778: std::input_iterator_tag) 32778: { 32778: iterator __cur = begin(); 32778: for (; __first != __last && __cur != end(); ++__cur, (void)++__first) 32778: *__cur = *__first; 32778: if (__first == __last) 32778: _M_erase_at_end(__cur); 32778: else 32778: insert(end(), __first, __last); 32778: } 32778: 32778: template 32778: void 32778: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 32778: std::forward_iterator_tag) 32778: { 32778: const size_type __len = std::distance(__first, __last); 32778: if (__len < size()) 32778: _M_erase_at_end(std::copy(__first, __last, begin())); 32778: else 32778: { 32778: _ForwardIterator __mid = __first; 32778: std::advance(__mid, size()); 32778: std::copy(__first, __mid, begin()); 32778: insert(end(), __mid, __last); 32778: } 32778: } 32778: 32778: 32778: 32778: 32778: 32778: template 32778: void 32778: _M_insert_dispatch(iterator __pos, _Integer __n, _Integer __x, 32778: __true_type) 32778: { _M_fill_insert(__pos, __n, __x); } 32778: 32778: template 32778: void 32778: _M_insert_dispatch(iterator __pos, 32778: _InputIterator __first, _InputIterator __last, 32778: __false_type) 32778: { _M_insert_range(__pos, __first, __last, 32778: std::__iterator_category(__first)); } 32778: 32778: void 32778: _M_fill_insert(iterator __position, size_type __n, bool __x); 32778: 32778: template 32778: void 32778: _M_insert_range(iterator __pos, _InputIterator __first, 32778: _InputIterator __last, std::input_iterator_tag) 32778: { 32778: for (; __first != __last; ++__first) 32778: { 32778: __pos = insert(__pos, *__first); 32778: ++__pos; 32778: } 32778: } 32778: 32778: template 32778: void 32778: _M_insert_range(iterator __position, _ForwardIterator __first, 32778: _ForwardIterator __last, std::forward_iterator_tag); 32778: 32778: void 32778: _M_insert_aux(iterator __position, bool __x); 32778: 32778: size_type 32778: _M_check_len(size_type __n, const char* __s) const 32778: { 32778: if (max_size() - size() < __n) 32778: __throw_length_error((__s)); 32778: 32778: const size_type __len = size() + std::max(size(), __n); 32778: return (__len < size() || __len > max_size()) ? max_size() : __len; 32778: } 32778: 32778: void 32778: _M_erase_at_end(iterator __pos) 32778: { this->_M_impl._M_finish = __pos; } 32778: 32778: iterator 32778: _M_erase(iterator __pos); 32778: 32778: iterator 32778: _M_erase(iterator __first, iterator __last); 32778: }; 32778: 32778: 32778: 32778: } 32778: 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: template 32778: struct hash> 32778: : public __hash_base> 32778: { 32778: size_t 32778: operator()(const std::vector&) const noexcept; 32778: }; 32778: 32778: 32778: } 32778: # 69 "/usr/include/c++/9/vector" 2 3 32778: 32778: 32778: 32778: # 1 "/usr/include/c++/9/bits/vector.tcc" 1 3 32778: # 59 "/usr/include/c++/9/bits/vector.tcc" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: template 32778: void 32778: vector<_Tp, _Alloc>:: 32778: reserve(size_type __n) 32778: { 32778: if (__n > this->max_size()) 32778: __throw_length_error(("vector::reserve")); 32778: if (this->capacity() < __n) 32778: { 32778: const size_type __old_size = size(); 32778: pointer __tmp; 32778: 32778: if (_S_use_relocate()) 32778: { 32778: __tmp = this->_M_allocate(__n); 32778: _S_relocate(this->_M_impl._M_start, this->_M_impl._M_finish, 32778: __tmp, _M_get_Tp_allocator()); 32778: } 32778: else 32778: 32778: { 32778: __tmp = _M_allocate_and_copy(__n, 32778: std::__make_move_if_noexcept_iterator(this->_M_impl._M_start), 32778: std::__make_move_if_noexcept_iterator(this->_M_impl._M_finish)); 32778: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 32778: _M_get_Tp_allocator()); 32778: } 32778: ; 32778: _M_deallocate(this->_M_impl._M_start, 32778: this->_M_impl._M_end_of_storage 32778: - this->_M_impl._M_start); 32778: this->_M_impl._M_start = __tmp; 32778: this->_M_impl._M_finish = __tmp + __old_size; 32778: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 32778: } 32778: } 32778: 32778: 32778: template 32778: template 32778: 32778: 32778: 32778: void 32778: 32778: vector<_Tp, _Alloc>:: 32778: emplace_back(_Args&&... __args) 32778: { 32778: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 32778: { 32778: ; 32778: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 32778: std::forward<_Args>(__args)...); 32778: ++this->_M_impl._M_finish; 32778: ; 32778: } 32778: else 32778: _M_realloc_insert(end(), std::forward<_Args>(__args)...); 32778: 32778: 32778: 32778: } 32778: 32778: 32778: template 32778: typename vector<_Tp, _Alloc>::iterator 32778: vector<_Tp, _Alloc>:: 32778: 32778: insert(const_iterator __position, const value_type& __x) 32778: 32778: 32778: 32778: { 32778: const size_type __n = __position - begin(); 32778: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 32778: if (__position == end()) 32778: { 32778: ; 32778: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 32778: __x); 32778: ++this->_M_impl._M_finish; 32778: ; 32778: } 32778: else 32778: { 32778: 32778: const auto __pos = begin() + (__position - cbegin()); 32778: 32778: 32778: _Temporary_value __x_copy(this, __x); 32778: _M_insert_aux(__pos, std::move(__x_copy._M_val())); 32778: 32778: 32778: 32778: } 32778: else 32778: 32778: _M_realloc_insert(begin() + (__position - cbegin()), __x); 32778: 32778: 32778: 32778: 32778: return iterator(this->_M_impl._M_start + __n); 32778: } 32778: 32778: template 32778: typename vector<_Tp, _Alloc>::iterator 32778: vector<_Tp, _Alloc>:: 32778: _M_erase(iterator __position) 32778: { 32778: if (__position + 1 != end()) 32778: std::move(__position + 1, end(), __position); 32778: --this->_M_impl._M_finish; 32778: _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); 32778: ; 32778: return __position; 32778: } 32778: 32778: template 32778: typename vector<_Tp, _Alloc>::iterator 32778: vector<_Tp, _Alloc>:: 32778: _M_erase(iterator __first, iterator __last) 32778: { 32778: if (__first != __last) 32778: { 32778: if (__last != end()) 32778: std::move(__last, end(), __first); 32778: _M_erase_at_end(__first.base() + (end() - __last)); 32778: } 32778: return __first; 32778: } 32778: 32778: template 32778: vector<_Tp, _Alloc>& 32778: vector<_Tp, _Alloc>:: 32778: operator=(const vector<_Tp, _Alloc>& __x) 32778: { 32778: if (&__x != this) 32778: { 32778: ; 32778: 32778: if (_Alloc_traits::_S_propagate_on_copy_assign()) 32778: { 32778: if (!_Alloc_traits::_S_always_equal() 32778: && _M_get_Tp_allocator() != __x._M_get_Tp_allocator()) 32778: { 32778: 32778: this->clear(); 32778: _M_deallocate(this->_M_impl._M_start, 32778: this->_M_impl._M_end_of_storage 32778: - this->_M_impl._M_start); 32778: this->_M_impl._M_start = nullptr; 32778: this->_M_impl._M_finish = nullptr; 32778: this->_M_impl._M_end_of_storage = nullptr; 32778: } 32778: std::__alloc_on_copy(_M_get_Tp_allocator(), 32778: __x._M_get_Tp_allocator()); 32778: } 32778: 32778: const size_type __xlen = __x.size(); 32778: if (__xlen > capacity()) 32778: { 32778: pointer __tmp = _M_allocate_and_copy(__xlen, __x.begin(), 32778: __x.end()); 32778: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 32778: _M_get_Tp_allocator()); 32778: _M_deallocate(this->_M_impl._M_start, 32778: this->_M_impl._M_end_of_storage 32778: - this->_M_impl._M_start); 32778: this->_M_impl._M_start = __tmp; 32778: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __xlen; 32778: } 32778: else if (size() >= __xlen) 32778: { 32778: std::_Destroy(std::copy(__x.begin(), __x.end(), begin()), 32778: end(), _M_get_Tp_allocator()); 32778: } 32778: else 32778: { 32778: std::copy(__x._M_impl._M_start, __x._M_impl._M_start + size(), 32778: this->_M_impl._M_start); 32778: std::__uninitialized_copy_a(__x._M_impl._M_start + size(), 32778: __x._M_impl._M_finish, 32778: this->_M_impl._M_finish, 32778: _M_get_Tp_allocator()); 32778: } 32778: this->_M_impl._M_finish = this->_M_impl._M_start + __xlen; 32778: } 32778: return *this; 32778: } 32778: 32778: template 32778: void 32778: vector<_Tp, _Alloc>:: 32778: _M_fill_assign(size_t __n, const value_type& __val) 32778: { 32778: if (__n > capacity()) 32778: { 32778: vector __tmp(__n, __val, _M_get_Tp_allocator()); 32778: __tmp._M_impl._M_swap_data(this->_M_impl); 32778: } 32778: else if (__n > size()) 32778: { 32778: std::fill(begin(), end(), __val); 32778: const size_type __add = __n - size(); 32778: ; 32778: this->_M_impl._M_finish = 32778: std::__uninitialized_fill_n_a(this->_M_impl._M_finish, 32778: __add, __val, _M_get_Tp_allocator()); 32778: ; 32778: } 32778: else 32778: _M_erase_at_end(std::fill_n(this->_M_impl._M_start, __n, __val)); 32778: } 32778: 32778: template 32778: template 32778: void 32778: vector<_Tp, _Alloc>:: 32778: _M_assign_aux(_InputIterator __first, _InputIterator __last, 32778: std::input_iterator_tag) 32778: { 32778: pointer __cur(this->_M_impl._M_start); 32778: for (; __first != __last && __cur != this->_M_impl._M_finish; 32778: ++__cur, (void)++__first) 32778: *__cur = *__first; 32778: if (__first == __last) 32778: _M_erase_at_end(__cur); 32778: else 32778: _M_range_insert(end(), __first, __last, 32778: std::__iterator_category(__first)); 32778: } 32778: 32778: template 32778: template 32778: void 32778: vector<_Tp, _Alloc>:: 32778: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 32778: std::forward_iterator_tag) 32778: { 32778: const size_type __len = std::distance(__first, __last); 32778: 32778: if (__len > capacity()) 32778: { 32778: _S_check_init_len(__len, _M_get_Tp_allocator()); 32778: pointer __tmp(_M_allocate_and_copy(__len, __first, __last)); 32778: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 32778: _M_get_Tp_allocator()); 32778: ; 32778: _M_deallocate(this->_M_impl._M_start, 32778: this->_M_impl._M_end_of_storage 32778: - this->_M_impl._M_start); 32778: this->_M_impl._M_start = __tmp; 32778: this->_M_impl._M_finish = this->_M_impl._M_start + __len; 32778: this->_M_impl._M_end_of_storage = this->_M_impl._M_finish; 32778: } 32778: else if (size() >= __len) 32778: _M_erase_at_end(std::copy(__first, __last, this->_M_impl._M_start)); 32778: else 32778: { 32778: _ForwardIterator __mid = __first; 32778: std::advance(__mid, size()); 32778: std::copy(__first, __mid, this->_M_impl._M_start); 32778: const size_type __attribute__((__unused__)) __n = __len - size(); 32778: ; 32778: this->_M_impl._M_finish = 32778: std::__uninitialized_copy_a(__mid, __last, 32778: this->_M_impl._M_finish, 32778: _M_get_Tp_allocator()); 32778: ; 32778: } 32778: } 32778: 32778: 32778: template 32778: auto 32778: vector<_Tp, _Alloc>:: 32778: _M_insert_rval(const_iterator __position, value_type&& __v) -> iterator 32778: { 32778: const auto __n = __position - cbegin(); 32778: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 32778: if (__position == cend()) 32778: { 32778: ; 32778: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 32778: std::move(__v)); 32778: ++this->_M_impl._M_finish; 32778: ; 32778: } 32778: else 32778: _M_insert_aux(begin() + __n, std::move(__v)); 32778: else 32778: _M_realloc_insert(begin() + __n, std::move(__v)); 32778: 32778: return iterator(this->_M_impl._M_start + __n); 32778: } 32778: 32778: template 32778: template 32778: auto 32778: vector<_Tp, _Alloc>:: 32778: _M_emplace_aux(const_iterator __position, _Args&&... __args) 32778: -> iterator 32778: { 32778: const auto __n = __position - cbegin(); 32778: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 32778: if (__position == cend()) 32778: { 32778: ; 32778: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 32778: std::forward<_Args>(__args)...); 32778: ++this->_M_impl._M_finish; 32778: ; 32778: } 32778: else 32778: { 32778: 32778: 32778: 32778: _Temporary_value __tmp(this, std::forward<_Args>(__args)...); 32778: _M_insert_aux(begin() + __n, std::move(__tmp._M_val())); 32778: } 32778: else 32778: _M_realloc_insert(begin() + __n, std::forward<_Args>(__args)...); 32778: 32778: return iterator(this->_M_impl._M_start + __n); 32778: } 32778: 32778: template 32778: template 32778: void 32778: vector<_Tp, _Alloc>:: 32778: _M_insert_aux(iterator __position, _Arg&& __arg) 32778: 32778: 32778: 32778: 32778: 32778: 32778: { 32778: ; 32778: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 32778: std::move(*(this->_M_impl._M_finish - 1))); 32778: ++this->_M_impl._M_finish; 32778: ; 32778: 32778: 32778: 32778: std::move_backward(__position.base(), this->_M_impl._M_finish - 2, this->_M_impl._M_finish - 1) 32778: 32778: ; 32778: 32778: 32778: 32778: *__position = std::forward<_Arg>(__arg); 32778: 32778: } 32778: 32778: 32778: template 32778: template 32778: void 32778: vector<_Tp, _Alloc>:: 32778: _M_realloc_insert(iterator __position, _Args&&... __args) 32778: 32778: 32778: 32778: 32778: 32778: 32778: { 32778: const size_type __len = 32778: _M_check_len(size_type(1), "vector::_M_realloc_insert"); 32778: pointer __old_start = this->_M_impl._M_start; 32778: pointer __old_finish = this->_M_impl._M_finish; 32778: const size_type __elems_before = __position - begin(); 32778: pointer __new_start(this->_M_allocate(__len)); 32778: pointer __new_finish(__new_start); 32778: try 32778: { 32778: 32778: 32778: 32778: 32778: 32778: _Alloc_traits::construct(this->_M_impl, 32778: __new_start + __elems_before, 32778: 32778: std::forward<_Args>(__args)...); 32778: 32778: 32778: 32778: __new_finish = pointer(); 32778: 32778: 32778: if (_S_use_relocate()) 32778: { 32778: __new_finish = _S_relocate(__old_start, __position.base(), 32778: __new_start, _M_get_Tp_allocator()); 32778: 32778: ++__new_finish; 32778: 32778: __new_finish = _S_relocate(__position.base(), __old_finish, 32778: __new_finish, _M_get_Tp_allocator()); 32778: } 32778: else 32778: 32778: { 32778: __new_finish 32778: = std::__uninitialized_move_if_noexcept_a 32778: (__old_start, __position.base(), 32778: __new_start, _M_get_Tp_allocator()); 32778: 32778: ++__new_finish; 32778: 32778: __new_finish 32778: = std::__uninitialized_move_if_noexcept_a 32778: (__position.base(), __old_finish, 32778: __new_finish, _M_get_Tp_allocator()); 32778: } 32778: } 32778: catch(...) 32778: { 32778: if (!__new_finish) 32778: _Alloc_traits::destroy(this->_M_impl, 32778: __new_start + __elems_before); 32778: else 32778: std::_Destroy(__new_start, __new_finish, _M_get_Tp_allocator()); 32778: _M_deallocate(__new_start, __len); 32778: throw; 32778: } 32778: 32778: if (!_S_use_relocate()) 32778: 32778: std::_Destroy(__old_start, __old_finish, _M_get_Tp_allocator()); 32778: ; 32778: _M_deallocate(__old_start, 32778: this->_M_impl._M_end_of_storage - __old_start); 32778: this->_M_impl._M_start = __new_start; 32778: this->_M_impl._M_finish = __new_finish; 32778: this->_M_impl._M_end_of_storage = __new_start + __len; 32778: } 32778: 32778: template 32778: void 32778: vector<_Tp, _Alloc>:: 32778: _M_fill_insert(iterator __position, size_type __n, const value_type& __x) 32778: { 32778: if (__n != 0) 32778: { 32778: if (size_type(this->_M_impl._M_end_of_storage 32778: - this->_M_impl._M_finish) >= __n) 32778: { 32778: 32778: 32778: 32778: _Temporary_value __tmp(this, __x); 32778: value_type& __x_copy = __tmp._M_val(); 32778: 32778: const size_type __elems_after = end() - __position; 32778: pointer __old_finish(this->_M_impl._M_finish); 32778: if (__elems_after > __n) 32778: { 32778: ; 32778: std::__uninitialized_move_a(this->_M_impl._M_finish - __n, 32778: this->_M_impl._M_finish, 32778: this->_M_impl._M_finish, 32778: _M_get_Tp_allocator()); 32778: this->_M_impl._M_finish += __n; 32778: ; 32778: std::move_backward(__position.base(), __old_finish - __n, __old_finish) 32778: ; 32778: std::fill(__position.base(), __position.base() + __n, 32778: __x_copy); 32778: } 32778: else 32778: { 32778: ; 32778: this->_M_impl._M_finish = 32778: std::__uninitialized_fill_n_a(this->_M_impl._M_finish, 32778: __n - __elems_after, 32778: __x_copy, 32778: _M_get_Tp_allocator()); 32778: ; 32778: std::__uninitialized_move_a(__position.base(), __old_finish, 32778: this->_M_impl._M_finish, 32778: _M_get_Tp_allocator()); 32778: this->_M_impl._M_finish += __elems_after; 32778: ; 32778: std::fill(__position.base(), __old_finish, __x_copy); 32778: } 32778: } 32778: else 32778: { 32778: const size_type __len = 32778: _M_check_len(__n, "vector::_M_fill_insert"); 32778: const size_type __elems_before = __position - begin(); 32778: pointer __new_start(this->_M_allocate(__len)); 32778: pointer __new_finish(__new_start); 32778: try 32778: { 32778: 32778: std::__uninitialized_fill_n_a(__new_start + __elems_before, 32778: __n, __x, 32778: _M_get_Tp_allocator()); 32778: __new_finish = pointer(); 32778: 32778: __new_finish 32778: = std::__uninitialized_move_if_noexcept_a 32778: (this->_M_impl._M_start, __position.base(), 32778: __new_start, _M_get_Tp_allocator()); 32778: 32778: __new_finish += __n; 32778: 32778: __new_finish 32778: = std::__uninitialized_move_if_noexcept_a 32778: (__position.base(), this->_M_impl._M_finish, 32778: __new_finish, _M_get_Tp_allocator()); 32778: } 32778: catch(...) 32778: { 32778: if (!__new_finish) 32778: std::_Destroy(__new_start + __elems_before, 32778: __new_start + __elems_before + __n, 32778: _M_get_Tp_allocator()); 32778: else 32778: std::_Destroy(__new_start, __new_finish, 32778: _M_get_Tp_allocator()); 32778: _M_deallocate(__new_start, __len); 32778: throw; 32778: } 32778: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 32778: _M_get_Tp_allocator()); 32778: ; 32778: _M_deallocate(this->_M_impl._M_start, 32778: this->_M_impl._M_end_of_storage 32778: - this->_M_impl._M_start); 32778: this->_M_impl._M_start = __new_start; 32778: this->_M_impl._M_finish = __new_finish; 32778: this->_M_impl._M_end_of_storage = __new_start + __len; 32778: } 32778: } 32778: } 32778: 32778: 32778: template 32778: void 32778: vector<_Tp, _Alloc>:: 32778: _M_default_append(size_type __n) 32778: { 32778: if (__n != 0) 32778: { 32778: const size_type __size = size(); 32778: size_type __navail = size_type(this->_M_impl._M_end_of_storage 32778: - this->_M_impl._M_finish); 32778: 32778: if (__size > max_size() || __navail > max_size() - __size) 32778: __builtin_unreachable(); 32778: 32778: if (__navail >= __n) 32778: { 32778: ; 32778: this->_M_impl._M_finish = 32778: std::__uninitialized_default_n_a(this->_M_impl._M_finish, 32778: __n, _M_get_Tp_allocator()); 32778: ; 32778: } 32778: else 32778: { 32778: const size_type __len = 32778: _M_check_len(__n, "vector::_M_default_append"); 32778: pointer __new_start(this->_M_allocate(__len)); 32778: if (_S_use_relocate()) 32778: { 32778: try 32778: { 32778: std::__uninitialized_default_n_a(__new_start + __size, 32778: __n, _M_get_Tp_allocator()); 32778: } 32778: catch(...) 32778: { 32778: _M_deallocate(__new_start, __len); 32778: throw; 32778: } 32778: _S_relocate(this->_M_impl._M_start, this->_M_impl._M_finish, 32778: __new_start, _M_get_Tp_allocator()); 32778: } 32778: else 32778: { 32778: pointer __destroy_from = pointer(); 32778: try 32778: { 32778: std::__uninitialized_default_n_a(__new_start + __size, 32778: __n, _M_get_Tp_allocator()); 32778: __destroy_from = __new_start + __size; 32778: std::__uninitialized_move_if_noexcept_a( 32778: this->_M_impl._M_start, this->_M_impl._M_finish, 32778: __new_start, _M_get_Tp_allocator()); 32778: } 32778: catch(...) 32778: { 32778: if (__destroy_from) 32778: std::_Destroy(__destroy_from, __destroy_from + __n, 32778: _M_get_Tp_allocator()); 32778: _M_deallocate(__new_start, __len); 32778: throw; 32778: } 32778: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 32778: _M_get_Tp_allocator()); 32778: } 32778: ; 32778: _M_deallocate(this->_M_impl._M_start, 32778: this->_M_impl._M_end_of_storage 32778: - this->_M_impl._M_start); 32778: this->_M_impl._M_start = __new_start; 32778: this->_M_impl._M_finish = __new_start + __size + __n; 32778: this->_M_impl._M_end_of_storage = __new_start + __len; 32778: } 32778: } 32778: } 32778: 32778: template 32778: bool 32778: vector<_Tp, _Alloc>:: 32778: _M_shrink_to_fit() 32778: { 32778: if (capacity() == size()) 32778: return false; 32778: ; 32778: return std::__shrink_to_fit_aux::_S_do_it(*this); 32778: } 32778: 32778: 32778: template 32778: template 32778: void 32778: vector<_Tp, _Alloc>:: 32778: _M_range_insert(iterator __pos, _InputIterator __first, 32778: _InputIterator __last, std::input_iterator_tag) 32778: { 32778: if (__pos == end()) 32778: { 32778: for (; __first != __last; ++__first) 32778: insert(end(), *__first); 32778: } 32778: else if (__first != __last) 32778: { 32778: vector __tmp(__first, __last, _M_get_Tp_allocator()); 32778: insert(__pos, 32778: std::make_move_iterator(__tmp.begin()), 32778: std::make_move_iterator(__tmp.end())); 32778: } 32778: } 32778: 32778: template 32778: template 32778: void 32778: vector<_Tp, _Alloc>:: 32778: _M_range_insert(iterator __position, _ForwardIterator __first, 32778: _ForwardIterator __last, std::forward_iterator_tag) 32778: { 32778: if (__first != __last) 32778: { 32778: const size_type __n = std::distance(__first, __last); 32778: if (size_type(this->_M_impl._M_end_of_storage 32778: - this->_M_impl._M_finish) >= __n) 32778: { 32778: const size_type __elems_after = end() - __position; 32778: pointer __old_finish(this->_M_impl._M_finish); 32778: if (__elems_after > __n) 32778: { 32778: ; 32778: std::__uninitialized_move_a(this->_M_impl._M_finish - __n, 32778: this->_M_impl._M_finish, 32778: this->_M_impl._M_finish, 32778: _M_get_Tp_allocator()); 32778: this->_M_impl._M_finish += __n; 32778: ; 32778: std::move_backward(__position.base(), __old_finish - __n, __old_finish) 32778: ; 32778: std::copy(__first, __last, __position); 32778: } 32778: else 32778: { 32778: _ForwardIterator __mid = __first; 32778: std::advance(__mid, __elems_after); 32778: ; 32778: std::__uninitialized_copy_a(__mid, __last, 32778: this->_M_impl._M_finish, 32778: _M_get_Tp_allocator()); 32778: this->_M_impl._M_finish += __n - __elems_after; 32778: ; 32778: std::__uninitialized_move_a(__position.base(), 32778: __old_finish, 32778: this->_M_impl._M_finish, 32778: _M_get_Tp_allocator()); 32778: this->_M_impl._M_finish += __elems_after; 32778: ; 32778: std::copy(__first, __mid, __position); 32778: } 32778: } 32778: else 32778: { 32778: const size_type __len = 32778: _M_check_len(__n, "vector::_M_range_insert"); 32778: pointer __new_start(this->_M_allocate(__len)); 32778: pointer __new_finish(__new_start); 32778: try 32778: { 32778: __new_finish 32778: = std::__uninitialized_move_if_noexcept_a 32778: (this->_M_impl._M_start, __position.base(), 32778: __new_start, _M_get_Tp_allocator()); 32778: __new_finish 32778: = std::__uninitialized_copy_a(__first, __last, 32778: __new_finish, 32778: _M_get_Tp_allocator()); 32778: __new_finish 32778: = std::__uninitialized_move_if_noexcept_a 32778: (__position.base(), this->_M_impl._M_finish, 32778: __new_finish, _M_get_Tp_allocator()); 32778: } 32778: catch(...) 32778: { 32778: std::_Destroy(__new_start, __new_finish, 32778: _M_get_Tp_allocator()); 32778: _M_deallocate(__new_start, __len); 32778: throw; 32778: } 32778: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 32778: _M_get_Tp_allocator()); 32778: ; 32778: _M_deallocate(this->_M_impl._M_start, 32778: this->_M_impl._M_end_of_storage 32778: - this->_M_impl._M_start); 32778: this->_M_impl._M_start = __new_start; 32778: this->_M_impl._M_finish = __new_finish; 32778: this->_M_impl._M_end_of_storage = __new_start + __len; 32778: } 32778: } 32778: } 32778: 32778: 32778: 32778: template 32778: void 32778: vector:: 32778: _M_reallocate(size_type __n) 32778: { 32778: _Bit_pointer __q = this->_M_allocate(__n); 32778: iterator __start(std::__addressof(*__q), 0); 32778: iterator __finish(_M_copy_aligned(begin(), end(), __start)); 32778: this->_M_deallocate(); 32778: this->_M_impl._M_start = __start; 32778: this->_M_impl._M_finish = __finish; 32778: this->_M_impl._M_end_of_storage = __q + _S_nword(__n); 32778: } 32778: 32778: template 32778: void 32778: vector:: 32778: _M_fill_insert(iterator __position, size_type __n, bool __x) 32778: { 32778: if (__n == 0) 32778: return; 32778: if (capacity() - size() >= __n) 32778: { 32778: std::copy_backward(__position, end(), 32778: this->_M_impl._M_finish + difference_type(__n)); 32778: std::fill(__position, __position + difference_type(__n), __x); 32778: this->_M_impl._M_finish += difference_type(__n); 32778: } 32778: else 32778: { 32778: const size_type __len = 32778: _M_check_len(__n, "vector::_M_fill_insert"); 32778: _Bit_pointer __q = this->_M_allocate(__len); 32778: iterator __start(std::__addressof(*__q), 0); 32778: iterator __i = _M_copy_aligned(begin(), __position, __start); 32778: std::fill(__i, __i + difference_type(__n), __x); 32778: iterator __finish = std::copy(__position, end(), 32778: __i + difference_type(__n)); 32778: this->_M_deallocate(); 32778: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 32778: this->_M_impl._M_start = __start; 32778: this->_M_impl._M_finish = __finish; 32778: } 32778: } 32778: 32778: template 32778: template 32778: void 32778: vector:: 32778: _M_insert_range(iterator __position, _ForwardIterator __first, 32778: _ForwardIterator __last, std::forward_iterator_tag) 32778: { 32778: if (__first != __last) 32778: { 32778: size_type __n = std::distance(__first, __last); 32778: if (capacity() - size() >= __n) 32778: { 32778: std::copy_backward(__position, end(), 32778: this->_M_impl._M_finish 32778: + difference_type(__n)); 32778: std::copy(__first, __last, __position); 32778: this->_M_impl._M_finish += difference_type(__n); 32778: } 32778: else 32778: { 32778: const size_type __len = 32778: _M_check_len(__n, "vector::_M_insert_range"); 32778: _Bit_pointer __q = this->_M_allocate(__len); 32778: iterator __start(std::__addressof(*__q), 0); 32778: iterator __i = _M_copy_aligned(begin(), __position, __start); 32778: __i = std::copy(__first, __last, __i); 32778: iterator __finish = std::copy(__position, end(), __i); 32778: this->_M_deallocate(); 32778: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 32778: this->_M_impl._M_start = __start; 32778: this->_M_impl._M_finish = __finish; 32778: } 32778: } 32778: } 32778: 32778: template 32778: void 32778: vector:: 32778: _M_insert_aux(iterator __position, bool __x) 32778: { 32778: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr()) 32778: { 32778: std::copy_backward(__position, this->_M_impl._M_finish, 32778: this->_M_impl._M_finish + 1); 32778: *__position = __x; 32778: ++this->_M_impl._M_finish; 32778: } 32778: else 32778: { 32778: const size_type __len = 32778: _M_check_len(size_type(1), "vector::_M_insert_aux"); 32778: _Bit_pointer __q = this->_M_allocate(__len); 32778: iterator __start(std::__addressof(*__q), 0); 32778: iterator __i = _M_copy_aligned(begin(), __position, __start); 32778: *__i++ = __x; 32778: iterator __finish = std::copy(__position, end(), __i); 32778: this->_M_deallocate(); 32778: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 32778: this->_M_impl._M_start = __start; 32778: this->_M_impl._M_finish = __finish; 32778: } 32778: } 32778: 32778: template 32778: typename vector::iterator 32778: vector:: 32778: _M_erase(iterator __position) 32778: { 32778: if (__position + 1 != end()) 32778: std::copy(__position + 1, end(), __position); 32778: --this->_M_impl._M_finish; 32778: return __position; 32778: } 32778: 32778: template 32778: typename vector::iterator 32778: vector:: 32778: _M_erase(iterator __first, iterator __last) 32778: { 32778: if (__first != __last) 32778: _M_erase_at_end(std::copy(__last, end(), __first)); 32778: return __first; 32778: } 32778: 32778: 32778: template 32778: bool 32778: vector:: 32778: _M_shrink_to_fit() 32778: { 32778: if (capacity() - size() < int(_S_word_bit)) 32778: return false; 32778: try 32778: { 32778: _M_reallocate(size()); 32778: return true; 32778: } 32778: catch(...) 32778: { return false; } 32778: } 32778: 32778: 32778: 32778: 32778: } 32778: 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: template 32778: size_t 32778: hash>:: 32778: operator()(const std::vector& __b) const noexcept 32778: { 32778: size_t __hash = 0; 32778: using std::_S_word_bit; 32778: using std::_Bit_type; 32778: 32778: const size_t __words = __b.size() / _S_word_bit; 32778: if (__words) 32778: { 32778: const size_t __clength = __words * sizeof(_Bit_type); 32778: __hash = std::_Hash_impl::hash(__b._M_impl._M_start._M_p, __clength); 32778: } 32778: 32778: const size_t __extrabits = __b.size() % _S_word_bit; 32778: if (__extrabits) 32778: { 32778: _Bit_type __hiword = *__b._M_impl._M_finish._M_p; 32778: __hiword &= ~((~static_cast<_Bit_type>(0)) << __extrabits); 32778: 32778: const size_t __clength 32778: = (__extrabits + 8 - 1) / 8; 32778: if (__words) 32778: __hash = std::_Hash_impl::hash(&__hiword, __clength, __hash); 32778: else 32778: __hash = std::_Hash_impl::hash(&__hiword, __clength); 32778: } 32778: 32778: return __hash; 32778: } 32778: 32778: 32778: } 32778: # 73 "/usr/include/c++/9/vector" 2 3 32778: # 16 "/<>/include/HepMC3/GenParticle_fwd.h" 2 32778: 32778: 32778: # 17 "/<>/include/HepMC3/GenParticle_fwd.h" 32778: namespace HepMC3 { 32778: 32778: class GenParticle; 32778: 32778: using GenParticlePtr = std::shared_ptr; 32778: using ConstGenParticlePtr = std::shared_ptr; 32778: 32778: using GenParticles = std::vector; 32778: using ConstGenParticles = std::vector; 32778: 32778: 32778: 32778: 32778: template 32778: using GenParticles_type = typename std::conditional::value, ConstGenParticles, GenParticles>::type; 32778: 32778: } 32778: # 21 "/<>/include/HepMC3/GenParticle.h" 2 32778: # 1 "/<>/include/HepMC3/GenVertex_fwd.h" 1 32778: # 16 "/<>/include/HepMC3/GenVertex_fwd.h" 32778: namespace HepMC3 { 32778: 32778: class GenVertex; 32778: 32778: using GenVertexPtr = std::shared_ptr; 32778: using ConstGenVertexPtr = std::shared_ptr; 32778: 32778: template 32778: using GenVertex_type = typename std::conditional::value, ConstGenVertexPtr, GenVertexPtr>::type; 32778: 32778: } 32778: # 22 "/<>/include/HepMC3/GenParticle.h" 2 32778: 32778: namespace HepMC3 { 32778: 32778: 32778: using namespace std; 32778: 32778: class GenEvent; 32778: class Attribute; 32778: 32778: class GenParticle : public std::enable_shared_from_this { 32778: 32778: friend class GenVertex; 32778: friend class GenEvent; 32778: 32778: 32778: 32778: 32778: public: 32778: 32778: GenParticle( const FourVector &momentum = FourVector::ZERO_VECTOR(), int pid = 0, int status = 0 ); 32778: 32778: 32778: GenParticle( const GenParticleData &data ); 32778: 32778: 32778: 32778: 32778: public: 32778: 32778: bool in_event() const { return (bool)(m_event); } 32778: 32778: 32778: 32778: 32778: public: 32778: 32778: GenEvent* parent_event() { return m_event; } 32778: const GenEvent* parent_event() const { return m_event; } 32778: int id() const { return m_id; } 32778: const GenParticleData& data() const { return m_data; } 32778: 32778: 32778: ConstGenVertexPtr production_vertex() const; 32778: ConstGenVertexPtr end_vertex() const; 32778: 32778: GenVertexPtr production_vertex(); 32778: GenVertexPtr end_vertex(); 32778: 32778: 32778: 32778: vector parents(); 32778: 32778: 32778: 32778: vector parents() const; 32778: 32778: 32778: 32778: vector children(); 32778: 32778: 32778: 32778: vector children() const; 32778: 32778: int pid() const { return m_data.pid; } 32778: int abs_pid() const { return abs(pid()); } 32778: int status() const { return m_data.status; } 32778: const FourVector& momentum() const { return m_data.momentum; } 32778: bool is_generated_mass_set() const { return m_data.is_mass_set; } 32778: 32778: 32778: 32778: 32778: 32778: double generated_mass() const; 32778: 32778: 32778: void set_pid(int pid); 32778: void set_status(int status); 32778: void set_momentum(const FourVector& momentum); 32778: void set_generated_mass(double m); 32778: void unset_generated_mass(); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: bool add_attribute(const string& name, shared_ptr att); 32778: 32778: 32778: vector attribute_names() const; 32778: 32778: 32778: void remove_attribute(const string& name); 32778: 32778: 32778: template 32778: shared_ptr attribute(const string& name) const; 32778: 32778: 32778: string attribute_as_string(const string& name) const; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: int pdg_id() const { return pid(); } 32778: 32778: 32778: 32778: void set_pdg_id(const int& pidin) { set_pid(pidin); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: private: 32778: GenEvent *m_event; 32778: int m_id; 32778: GenParticleData m_data; 32778: 32778: weak_ptr m_production_vertex; 32778: weak_ptr m_end_vertex; 32778: 32778: }; 32778: 32778: } 32778: 32778: # 1 "/<>/include/HepMC3/GenEvent.h" 1 32778: # 13 "/<>/include/HepMC3/GenEvent.h" 32778: # 1 "/<>/include/HepMC3/Units.h" 1 32778: # 19 "/<>/include/HepMC3/Units.h" 32778: # 1 "/<>/include/HepMC3/Errors.h" 1 32778: # 13 "/<>/include/HepMC3/Errors.h" 32778: # 1 "/usr/include/c++/9/iostream" 1 3 32778: # 36 "/usr/include/c++/9/iostream" 3 32778: 32778: # 37 "/usr/include/c++/9/iostream" 3 32778: 32778: 32778: # 1 "/usr/include/c++/9/ostream" 1 3 32778: # 36 "/usr/include/c++/9/ostream" 3 32778: 32778: # 37 "/usr/include/c++/9/ostream" 3 32778: 32778: # 1 "/usr/include/c++/9/ios" 1 3 32778: # 36 "/usr/include/c++/9/ios" 3 32778: 32778: # 37 "/usr/include/c++/9/ios" 3 32778: 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/c++/9/bits/ios_base.h" 1 3 32778: # 37 "/usr/include/c++/9/bits/ios_base.h" 3 32778: 32778: # 38 "/usr/include/c++/9/bits/ios_base.h" 3 32778: 32778: 32778: 32778: # 1 "/usr/include/c++/9/bits/locale_classes.h" 1 3 32778: # 37 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: 32778: # 38 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: 32778: 32778: 32778: 32778: 32778: 32778: # 43 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 62 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: class locale 32778: { 32778: public: 32778: 32778: 32778: typedef int category; 32778: 32778: 32778: class facet; 32778: class id; 32778: class _Impl; 32778: 32778: friend class facet; 32778: friend class _Impl; 32778: 32778: template 32778: friend bool 32778: has_facet(const locale&) throw(); 32778: 32778: template 32778: friend const _Facet& 32778: use_facet(const locale&); 32778: 32778: template 32778: friend struct __use_cache; 32778: # 98 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: static const category none = 0; 32778: static const category ctype = 1L << 0; 32778: static const category numeric = 1L << 1; 32778: static const category collate = 1L << 2; 32778: static const category time = 1L << 3; 32778: static const category monetary = 1L << 4; 32778: static const category messages = 1L << 5; 32778: static const category all = (ctype | numeric | collate | 32778: time | monetary | messages); 32778: # 117 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: locale() throw(); 32778: # 126 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: locale(const locale& __other) throw(); 32778: # 136 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: explicit 32778: locale(const char* __s); 32778: # 151 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: locale(const locale& __base, const char* __s, category __cat); 32778: # 162 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: explicit 32778: locale(const std::string& __s) : locale(__s.c_str()) { } 32778: # 177 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: locale(const locale& __base, const std::string& __s, category __cat) 32778: : locale(__base, __s.c_str(), __cat) { } 32778: # 192 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: locale(const locale& __base, const locale& __add, category __cat); 32778: # 205 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: template 32778: locale(const locale& __other, _Facet* __f); 32778: 32778: 32778: ~locale() throw(); 32778: # 219 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: const locale& 32778: operator=(const locale& __other) throw(); 32778: # 234 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: template 32778: locale 32778: combine(const locale& __other) const; 32778: 32778: 32778: 32778: 32778: 32778: 32778: __attribute ((__abi_tag__ ("cxx11"))) 32778: string 32778: name() const; 32778: # 254 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: bool 32778: operator==(const locale& __other) const throw(); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: bool 32778: operator!=(const locale& __other) const throw() 32778: { return !(this->operator==(__other)); } 32778: # 282 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: template 32778: bool 32778: operator()(const basic_string<_Char, _Traits, _Alloc>& __s1, 32778: const basic_string<_Char, _Traits, _Alloc>& __s2) const; 32778: # 298 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: static locale 32778: global(const locale& __loc); 32778: 32778: 32778: 32778: 32778: static const locale& 32778: classic(); 32778: 32778: private: 32778: 32778: _Impl* _M_impl; 32778: 32778: 32778: static _Impl* _S_classic; 32778: 32778: 32778: static _Impl* _S_global; 32778: 32778: 32778: 32778: 32778: 32778: static const char* const* const _S_categories; 32778: # 333 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: enum { _S_categories_size = 6 + 6 }; 32778: 32778: 32778: static __gthread_once_t _S_once; 32778: 32778: 32778: explicit 32778: locale(_Impl*) throw(); 32778: 32778: static void 32778: _S_initialize(); 32778: 32778: static void 32778: _S_initialize_once() throw(); 32778: 32778: static category 32778: _S_normalize_category(category); 32778: 32778: void 32778: _M_coalesce(const locale& __base, const locale& __add, category __cat); 32778: 32778: 32778: static const id* const _S_twinned_facets[]; 32778: 32778: }; 32778: # 371 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: class locale::facet 32778: { 32778: private: 32778: friend class locale; 32778: friend class locale::_Impl; 32778: 32778: mutable _Atomic_word _M_refcount; 32778: 32778: 32778: static __c_locale _S_c_locale; 32778: 32778: 32778: static const char _S_c_name[2]; 32778: 32778: 32778: static __gthread_once_t _S_once; 32778: 32778: 32778: static void 32778: _S_initialize_once(); 32778: 32778: protected: 32778: # 402 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: explicit 32778: facet(size_t __refs = 0) throw() : _M_refcount(__refs ? 1 : 0) 32778: { } 32778: 32778: 32778: virtual 32778: ~facet(); 32778: 32778: static void 32778: _S_create_c_locale(__c_locale& __cloc, const char* __s, 32778: __c_locale __old = 0); 32778: 32778: static __c_locale 32778: _S_clone_c_locale(__c_locale& __cloc) throw(); 32778: 32778: static void 32778: _S_destroy_c_locale(__c_locale& __cloc); 32778: 32778: static __c_locale 32778: _S_lc_ctype_c_locale(__c_locale __cloc, const char* __s); 32778: 32778: 32778: 32778: static __c_locale 32778: _S_get_c_locale(); 32778: 32778: __attribute__ ((__const__)) static const char* 32778: _S_get_c_name() throw(); 32778: # 438 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: facet(const facet&) = delete; 32778: 32778: facet& 32778: operator=(const facet&) = delete; 32778: 32778: 32778: private: 32778: void 32778: _M_add_reference() const throw() 32778: { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 32778: 32778: void 32778: _M_remove_reference() const throw() 32778: { 32778: 32778: ; 32778: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) 32778: { 32778: ; 32778: try 32778: { delete this; } 32778: catch(...) 32778: { } 32778: } 32778: } 32778: 32778: const facet* _M_sso_shim(const id*) const; 32778: const facet* _M_cow_shim(const id*) const; 32778: 32778: protected: 32778: class __shim; 32778: }; 32778: # 483 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: class locale::id 32778: { 32778: private: 32778: friend class locale; 32778: friend class locale::_Impl; 32778: 32778: template 32778: friend const _Facet& 32778: use_facet(const locale&); 32778: 32778: template 32778: friend bool 32778: has_facet(const locale&) throw(); 32778: 32778: 32778: 32778: 32778: mutable size_t _M_index; 32778: 32778: 32778: static _Atomic_word _S_refcount; 32778: 32778: void 32778: operator=(const id&); 32778: 32778: id(const id&); 32778: 32778: public: 32778: 32778: 32778: 32778: id() { } 32778: 32778: size_t 32778: _M_id() const throw(); 32778: }; 32778: 32778: 32778: 32778: class locale::_Impl 32778: { 32778: public: 32778: 32778: friend class locale; 32778: friend class locale::facet; 32778: 32778: template 32778: friend bool 32778: has_facet(const locale&) throw(); 32778: 32778: template 32778: friend const _Facet& 32778: use_facet(const locale&); 32778: 32778: template 32778: friend struct __use_cache; 32778: 32778: private: 32778: 32778: _Atomic_word _M_refcount; 32778: const facet** _M_facets; 32778: size_t _M_facets_size; 32778: const facet** _M_caches; 32778: char** _M_names; 32778: static const locale::id* const _S_id_ctype[]; 32778: static const locale::id* const _S_id_numeric[]; 32778: static const locale::id* const _S_id_collate[]; 32778: static const locale::id* const _S_id_time[]; 32778: static const locale::id* const _S_id_monetary[]; 32778: static const locale::id* const _S_id_messages[]; 32778: static const locale::id* const* const _S_facet_categories[]; 32778: 32778: void 32778: _M_add_reference() throw() 32778: { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 32778: 32778: void 32778: _M_remove_reference() throw() 32778: { 32778: 32778: ; 32778: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) 32778: { 32778: ; 32778: try 32778: { delete this; } 32778: catch(...) 32778: { } 32778: } 32778: } 32778: 32778: _Impl(const _Impl&, size_t); 32778: _Impl(const char*, size_t); 32778: _Impl(size_t) throw(); 32778: 32778: ~_Impl() throw(); 32778: 32778: _Impl(const _Impl&); 32778: 32778: void 32778: operator=(const _Impl&); 32778: 32778: bool 32778: _M_check_same_name() 32778: { 32778: bool __ret = true; 32778: if (_M_names[1]) 32778: 32778: for (size_t __i = 0; __ret && __i < _S_categories_size - 1; ++__i) 32778: __ret = __builtin_strcmp(_M_names[__i], _M_names[__i + 1]) == 0; 32778: return __ret; 32778: } 32778: 32778: void 32778: _M_replace_categories(const _Impl*, category); 32778: 32778: void 32778: _M_replace_category(const _Impl*, const locale::id* const*); 32778: 32778: void 32778: _M_replace_facet(const _Impl*, const locale::id*); 32778: 32778: void 32778: _M_install_facet(const locale::id*, const facet*); 32778: 32778: template 32778: void 32778: _M_init_facet(_Facet* __facet) 32778: { _M_install_facet(&_Facet::id, __facet); } 32778: 32778: template 32778: void 32778: _M_init_facet_unchecked(_Facet* __facet) 32778: { 32778: __facet->_M_add_reference(); 32778: _M_facets[_Facet::id._M_id()] = __facet; 32778: } 32778: 32778: void 32778: _M_install_cache(const facet*, size_t); 32778: 32778: void _M_init_extra(facet**); 32778: void _M_init_extra(void*, void*, const char*, const char*); 32778: }; 32778: # 641 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: template 32778: class __cxx11:: collate : public locale::facet 32778: { 32778: public: 32778: 32778: 32778: 32778: typedef _CharT char_type; 32778: typedef basic_string<_CharT> string_type; 32778: 32778: 32778: protected: 32778: 32778: 32778: __c_locale _M_c_locale_collate; 32778: 32778: public: 32778: 32778: static locale::id id; 32778: # 668 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: explicit 32778: collate(size_t __refs = 0) 32778: : facet(__refs), _M_c_locale_collate(_S_get_c_locale()) 32778: { } 32778: # 682 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: explicit 32778: collate(__c_locale __cloc, size_t __refs = 0) 32778: : facet(__refs), _M_c_locale_collate(_S_clone_c_locale(__cloc)) 32778: { } 32778: # 699 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: int 32778: compare(const _CharT* __lo1, const _CharT* __hi1, 32778: const _CharT* __lo2, const _CharT* __hi2) const 32778: { return this->do_compare(__lo1, __hi1, __lo2, __hi2); } 32778: # 718 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: string_type 32778: transform(const _CharT* __lo, const _CharT* __hi) const 32778: { return this->do_transform(__lo, __hi); } 32778: # 732 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: long 32778: hash(const _CharT* __lo, const _CharT* __hi) const 32778: { return this->do_hash(__lo, __hi); } 32778: 32778: 32778: int 32778: _M_compare(const _CharT*, const _CharT*) const throw(); 32778: 32778: size_t 32778: _M_transform(_CharT*, const _CharT*, size_t) const throw(); 32778: 32778: protected: 32778: 32778: virtual 32778: ~collate() 32778: { _S_destroy_c_locale(_M_c_locale_collate); } 32778: # 761 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: virtual int 32778: do_compare(const _CharT* __lo1, const _CharT* __hi1, 32778: const _CharT* __lo2, const _CharT* __hi2) const; 32778: # 775 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: virtual string_type 32778: do_transform(const _CharT* __lo, const _CharT* __hi) const; 32778: # 788 "/usr/include/c++/9/bits/locale_classes.h" 3 32778: virtual long 32778: do_hash(const _CharT* __lo, const _CharT* __hi) const; 32778: }; 32778: 32778: template 32778: locale::id collate<_CharT>::id; 32778: 32778: 32778: template<> 32778: int 32778: collate::_M_compare(const char*, const char*) const throw(); 32778: 32778: template<> 32778: size_t 32778: collate::_M_transform(char*, const char*, size_t) const throw(); 32778: 32778: 32778: template<> 32778: int 32778: collate::_M_compare(const wchar_t*, const wchar_t*) const throw(); 32778: 32778: template<> 32778: size_t 32778: collate::_M_transform(wchar_t*, const wchar_t*, size_t) const throw(); 32778: 32778: 32778: 32778: template 32778: class __cxx11:: collate_byname : public collate<_CharT> 32778: { 32778: public: 32778: 32778: 32778: typedef _CharT char_type; 32778: typedef basic_string<_CharT> string_type; 32778: 32778: 32778: explicit 32778: collate_byname(const char* __s, size_t __refs = 0) 32778: : collate<_CharT>(__refs) 32778: { 32778: if (__builtin_strcmp(__s, "C") != 0 32778: && __builtin_strcmp(__s, "POSIX") != 0) 32778: { 32778: this->_S_destroy_c_locale(this->_M_c_locale_collate); 32778: this->_S_create_c_locale(this->_M_c_locale_collate, __s); 32778: } 32778: } 32778: 32778: 32778: explicit 32778: collate_byname(const string& __s, size_t __refs = 0) 32778: : collate_byname(__s.c_str(), __refs) { } 32778: 32778: 32778: protected: 32778: virtual 32778: ~collate_byname() { } 32778: }; 32778: 32778: 32778: } 32778: 32778: # 1 "/usr/include/c++/9/bits/locale_classes.tcc" 1 3 32778: # 37 "/usr/include/c++/9/bits/locale_classes.tcc" 3 32778: 32778: # 38 "/usr/include/c++/9/bits/locale_classes.tcc" 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: template 32778: locale:: 32778: locale(const locale& __other, _Facet* __f) 32778: { 32778: _M_impl = new _Impl(*__other._M_impl, 1); 32778: 32778: try 32778: { _M_impl->_M_install_facet(&_Facet::id, __f); } 32778: catch(...) 32778: { 32778: _M_impl->_M_remove_reference(); 32778: throw; 32778: } 32778: delete [] _M_impl->_M_names[0]; 32778: _M_impl->_M_names[0] = 0; 32778: } 32778: 32778: template 32778: locale 32778: locale:: 32778: combine(const locale& __other) const 32778: { 32778: _Impl* __tmp = new _Impl(*_M_impl, 1); 32778: try 32778: { 32778: __tmp->_M_replace_facet(__other._M_impl, &_Facet::id); 32778: } 32778: catch(...) 32778: { 32778: __tmp->_M_remove_reference(); 32778: throw; 32778: } 32778: return locale(__tmp); 32778: } 32778: 32778: template 32778: bool 32778: locale:: 32778: operator()(const basic_string<_CharT, _Traits, _Alloc>& __s1, 32778: const basic_string<_CharT, _Traits, _Alloc>& __s2) const 32778: { 32778: typedef std::collate<_CharT> __collate_type; 32778: const __collate_type& __collate = use_facet<__collate_type>(*this); 32778: return (__collate.compare(__s1.data(), __s1.data() + __s1.length(), 32778: __s2.data(), __s2.data() + __s2.length()) < 0); 32778: } 32778: # 102 "/usr/include/c++/9/bits/locale_classes.tcc" 3 32778: template 32778: bool 32778: has_facet(const locale& __loc) throw() 32778: { 32778: const size_t __i = _Facet::id._M_id(); 32778: const locale::facet** __facets = __loc._M_impl->_M_facets; 32778: return (__i < __loc._M_impl->_M_facets_size 32778: 32778: && dynamic_cast(__facets[__i])); 32778: 32778: 32778: 32778: } 32778: # 130 "/usr/include/c++/9/bits/locale_classes.tcc" 3 32778: template 32778: const _Facet& 32778: use_facet(const locale& __loc) 32778: { 32778: const size_t __i = _Facet::id._M_id(); 32778: const locale::facet** __facets = __loc._M_impl->_M_facets; 32778: if (__i >= __loc._M_impl->_M_facets_size || !__facets[__i]) 32778: __throw_bad_cast(); 32778: 32778: return dynamic_cast(*__facets[__i]); 32778: 32778: 32778: 32778: } 32778: 32778: 32778: 32778: template 32778: int 32778: collate<_CharT>::_M_compare(const _CharT*, const _CharT*) const throw () 32778: { return 0; } 32778: 32778: 32778: template 32778: size_t 32778: collate<_CharT>::_M_transform(_CharT*, const _CharT*, size_t) const throw () 32778: { return 0; } 32778: 32778: template 32778: int 32778: collate<_CharT>:: 32778: do_compare(const _CharT* __lo1, const _CharT* __hi1, 32778: const _CharT* __lo2, const _CharT* __hi2) const 32778: { 32778: 32778: 32778: const string_type __one(__lo1, __hi1); 32778: const string_type __two(__lo2, __hi2); 32778: 32778: const _CharT* __p = __one.c_str(); 32778: const _CharT* __pend = __one.data() + __one.length(); 32778: const _CharT* __q = __two.c_str(); 32778: const _CharT* __qend = __two.data() + __two.length(); 32778: 32778: 32778: 32778: 32778: for (;;) 32778: { 32778: const int __res = _M_compare(__p, __q); 32778: if (__res) 32778: return __res; 32778: 32778: __p += char_traits<_CharT>::length(__p); 32778: __q += char_traits<_CharT>::length(__q); 32778: if (__p == __pend && __q == __qend) 32778: return 0; 32778: else if (__p == __pend) 32778: return -1; 32778: else if (__q == __qend) 32778: return 1; 32778: 32778: __p++; 32778: __q++; 32778: } 32778: } 32778: 32778: template 32778: typename collate<_CharT>::string_type 32778: collate<_CharT>:: 32778: do_transform(const _CharT* __lo, const _CharT* __hi) const 32778: { 32778: string_type __ret; 32778: 32778: 32778: const string_type __str(__lo, __hi); 32778: 32778: const _CharT* __p = __str.c_str(); 32778: const _CharT* __pend = __str.data() + __str.length(); 32778: 32778: size_t __len = (__hi - __lo) * 2; 32778: 32778: _CharT* __c = new _CharT[__len]; 32778: 32778: try 32778: { 32778: 32778: 32778: 32778: for (;;) 32778: { 32778: 32778: size_t __res = _M_transform(__c, __p, __len); 32778: 32778: 32778: if (__res >= __len) 32778: { 32778: __len = __res + 1; 32778: delete [] __c, __c = 0; 32778: __c = new _CharT[__len]; 32778: __res = _M_transform(__c, __p, __len); 32778: } 32778: 32778: __ret.append(__c, __res); 32778: __p += char_traits<_CharT>::length(__p); 32778: if (__p == __pend) 32778: break; 32778: 32778: __p++; 32778: __ret.push_back(_CharT()); 32778: } 32778: } 32778: catch(...) 32778: { 32778: delete [] __c; 32778: throw; 32778: } 32778: 32778: delete [] __c; 32778: 32778: return __ret; 32778: } 32778: 32778: template 32778: long 32778: collate<_CharT>:: 32778: do_hash(const _CharT* __lo, const _CharT* __hi) const 32778: { 32778: unsigned long __val = 0; 32778: for (; __lo < __hi; ++__lo) 32778: __val = 32778: *__lo + ((__val << 7) 32778: | (__val >> (__gnu_cxx::__numeric_traits:: 32778: __digits - 7))); 32778: return static_cast(__val); 32778: } 32778: 32778: 32778: 32778: 32778: extern template class collate; 32778: extern template class collate_byname; 32778: 32778: extern template 32778: const collate& 32778: use_facet >(const locale&); 32778: 32778: extern template 32778: bool 32778: has_facet >(const locale&); 32778: 32778: 32778: extern template class collate; 32778: extern template class collate_byname; 32778: 32778: extern template 32778: const collate& 32778: use_facet >(const locale&); 32778: 32778: extern template 32778: bool 32778: has_facet >(const locale&); 32778: 32778: 32778: 32778: 32778: } 32778: # 852 "/usr/include/c++/9/bits/locale_classes.h" 2 3 32778: # 42 "/usr/include/c++/9/bits/ios_base.h" 2 3 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/c++/9/system_error" 1 3 32778: # 32 "/usr/include/c++/9/system_error" 3 32778: 32778: # 33 "/usr/include/c++/9/system_error" 3 32778: 32778: 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/c++/9/bits/error_constants.h" 1 3 32778: # 34 "/usr/include/riscv64-linux-gnu/c++/9/bits/error_constants.h" 3 32778: # 1 "/usr/include/c++/9/cerrno" 1 3 32778: # 39 "/usr/include/c++/9/cerrno" 3 32778: 32778: # 40 "/usr/include/c++/9/cerrno" 3 32778: # 35 "/usr/include/riscv64-linux-gnu/c++/9/bits/error_constants.h" 2 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: enum class errc 32778: { 32778: address_family_not_supported = 97, 32778: address_in_use = 98, 32778: address_not_available = 99, 32778: already_connected = 106, 32778: argument_list_too_long = 7, 32778: argument_out_of_domain = 33, 32778: bad_address = 14, 32778: bad_file_descriptor = 9, 32778: 32778: 32778: bad_message = 74, 32778: 32778: 32778: broken_pipe = 32, 32778: connection_aborted = 103, 32778: connection_already_in_progress = 114, 32778: connection_refused = 111, 32778: connection_reset = 104, 32778: cross_device_link = 18, 32778: destination_address_required = 89, 32778: device_or_resource_busy = 16, 32778: directory_not_empty = 39, 32778: executable_format_error = 8, 32778: file_exists = 17, 32778: file_too_large = 27, 32778: filename_too_long = 36, 32778: function_not_supported = 38, 32778: host_unreachable = 113, 32778: 32778: 32778: identifier_removed = 43, 32778: 32778: 32778: illegal_byte_sequence = 84, 32778: inappropriate_io_control_operation = 25, 32778: interrupted = 4, 32778: invalid_argument = 22, 32778: invalid_seek = 29, 32778: io_error = 5, 32778: is_a_directory = 21, 32778: message_size = 90, 32778: network_down = 100, 32778: network_reset = 102, 32778: network_unreachable = 101, 32778: no_buffer_space = 105, 32778: no_child_process = 10, 32778: 32778: 32778: no_link = 67, 32778: 32778: 32778: no_lock_available = 37, 32778: 32778: 32778: no_message_available = 61, 32778: 32778: 32778: no_message = 42, 32778: no_protocol_option = 92, 32778: no_space_on_device = 28, 32778: 32778: 32778: no_stream_resources = 63, 32778: 32778: 32778: no_such_device_or_address = 6, 32778: no_such_device = 19, 32778: no_such_file_or_directory = 2, 32778: no_such_process = 3, 32778: not_a_directory = 20, 32778: not_a_socket = 88, 32778: 32778: 32778: not_a_stream = 60, 32778: 32778: 32778: not_connected = 107, 32778: not_enough_memory = 12, 32778: 32778: 32778: not_supported = 95, 32778: 32778: 32778: 32778: operation_canceled = 125, 32778: 32778: 32778: operation_in_progress = 115, 32778: operation_not_permitted = 1, 32778: operation_not_supported = 95, 32778: operation_would_block = 11, 32778: 32778: 32778: owner_dead = 130, 32778: 32778: 32778: permission_denied = 13, 32778: 32778: 32778: protocol_error = 71, 32778: 32778: 32778: protocol_not_supported = 93, 32778: read_only_file_system = 30, 32778: resource_deadlock_would_occur = 35, 32778: resource_unavailable_try_again = 11, 32778: result_out_of_range = 34, 32778: 32778: 32778: state_not_recoverable = 131, 32778: 32778: 32778: 32778: stream_timeout = 62, 32778: 32778: 32778: 32778: text_file_busy = 26, 32778: 32778: 32778: timed_out = 110, 32778: too_many_files_open_in_system = 23, 32778: too_many_files_open = 24, 32778: too_many_links = 31, 32778: too_many_symbolic_link_levels = 40, 32778: 32778: 32778: value_too_large = 75, 32778: 32778: 32778: wrong_protocol_type = 91 32778: }; 32778: 32778: 32778: } 32778: # 40 "/usr/include/c++/9/system_error" 2 3 32778: 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: class error_code; 32778: class error_condition; 32778: class system_error; 32778: 32778: 32778: template 32778: struct is_error_code_enum : public false_type { }; 32778: 32778: 32778: template 32778: struct is_error_condition_enum : public false_type { }; 32778: 32778: template<> 32778: struct is_error_condition_enum 32778: : public true_type { }; 32778: # 71 "/usr/include/c++/9/system_error" 3 32778: inline namespace _V2 { 32778: 32778: 32778: class error_category 32778: { 32778: public: 32778: constexpr error_category() noexcept = default; 32778: 32778: virtual ~error_category(); 32778: 32778: error_category(const error_category&) = delete; 32778: error_category& operator=(const error_category&) = delete; 32778: 32778: virtual const char* 32778: name() const noexcept = 0; 32778: 32778: 32778: 32778: 32778: 32778: 32778: private: 32778: __attribute ((__abi_tag__ ("cxx11"))) 32778: virtual __cow_string 32778: _M_message(int) const; 32778: 32778: public: 32778: __attribute ((__abi_tag__ ("cxx11"))) 32778: virtual string 32778: message(int) const = 0; 32778: # 110 "/usr/include/c++/9/system_error" 3 32778: public: 32778: virtual error_condition 32778: default_error_condition(int __i) const noexcept; 32778: 32778: virtual bool 32778: equivalent(int __i, const error_condition& __cond) const noexcept; 32778: 32778: virtual bool 32778: equivalent(const error_code& __code, int __i) const noexcept; 32778: 32778: bool 32778: operator<(const error_category& __other) const noexcept 32778: { return less()(this, &__other); } 32778: 32778: bool 32778: operator==(const error_category& __other) const noexcept 32778: { return this == &__other; } 32778: 32778: bool 32778: operator!=(const error_category& __other) const noexcept 32778: { return this != &__other; } 32778: }; 32778: 32778: 32778: __attribute__ ((__const__)) const error_category& system_category() noexcept; 32778: __attribute__ ((__const__)) const error_category& generic_category() noexcept; 32778: 32778: } 32778: 32778: error_code make_error_code(errc) noexcept; 32778: 32778: template 32778: struct hash; 32778: 32778: 32778: 32778: struct error_code 32778: { 32778: error_code() noexcept 32778: : _M_value(0), _M_cat(&system_category()) { } 32778: 32778: error_code(int __v, const error_category& __cat) noexcept 32778: : _M_value(__v), _M_cat(&__cat) { } 32778: 32778: template::value>::type> 32778: error_code(_ErrorCodeEnum __e) noexcept 32778: { *this = make_error_code(__e); } 32778: 32778: void 32778: assign(int __v, const error_category& __cat) noexcept 32778: { 32778: _M_value = __v; 32778: _M_cat = &__cat; 32778: } 32778: 32778: void 32778: clear() noexcept 32778: { assign(0, system_category()); } 32778: 32778: 32778: template 32778: typename enable_if::value, 32778: error_code&>::type 32778: operator=(_ErrorCodeEnum __e) noexcept 32778: { return *this = make_error_code(__e); } 32778: 32778: int 32778: value() const noexcept { return _M_value; } 32778: 32778: const error_category& 32778: category() const noexcept { return *_M_cat; } 32778: 32778: error_condition 32778: default_error_condition() const noexcept; 32778: 32778: __attribute ((__abi_tag__ ("cxx11"))) 32778: string 32778: message() const 32778: { return category().message(value()); } 32778: 32778: explicit operator bool() const noexcept 32778: { return _M_value != 0; } 32778: 32778: 32778: private: 32778: friend class hash; 32778: 32778: int _M_value; 32778: const error_category* _M_cat; 32778: }; 32778: 32778: 32778: inline error_code 32778: make_error_code(errc __e) noexcept 32778: { return error_code(static_cast(__e), generic_category()); } 32778: 32778: inline bool 32778: operator<(const error_code& __lhs, const error_code& __rhs) noexcept 32778: { 32778: return (__lhs.category() < __rhs.category() 32778: || (__lhs.category() == __rhs.category() 32778: && __lhs.value() < __rhs.value())); 32778: } 32778: 32778: template 32778: basic_ostream<_CharT, _Traits>& 32778: operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) 32778: { return (__os << __e.category().name() << ':' << __e.value()); } 32778: 32778: error_condition make_error_condition(errc) noexcept; 32778: 32778: 32778: 32778: struct error_condition 32778: { 32778: error_condition() noexcept 32778: : _M_value(0), _M_cat(&generic_category()) { } 32778: 32778: error_condition(int __v, const error_category& __cat) noexcept 32778: : _M_value(__v), _M_cat(&__cat) { } 32778: 32778: template::value>::type> 32778: error_condition(_ErrorConditionEnum __e) noexcept 32778: { *this = make_error_condition(__e); } 32778: 32778: void 32778: assign(int __v, const error_category& __cat) noexcept 32778: { 32778: _M_value = __v; 32778: _M_cat = &__cat; 32778: } 32778: 32778: 32778: template 32778: typename enable_if::value, error_condition&>::type 32778: operator=(_ErrorConditionEnum __e) noexcept 32778: { return *this = make_error_condition(__e); } 32778: 32778: void 32778: clear() noexcept 32778: { assign(0, generic_category()); } 32778: 32778: 32778: int 32778: value() const noexcept { return _M_value; } 32778: 32778: const error_category& 32778: category() const noexcept { return *_M_cat; } 32778: 32778: __attribute ((__abi_tag__ ("cxx11"))) 32778: string 32778: message() const 32778: { return category().message(value()); } 32778: 32778: explicit operator bool() const noexcept 32778: { return _M_value != 0; } 32778: 32778: 32778: private: 32778: int _M_value; 32778: const error_category* _M_cat; 32778: }; 32778: 32778: 32778: inline error_condition 32778: make_error_condition(errc __e) noexcept 32778: { return error_condition(static_cast(__e), generic_category()); } 32778: 32778: inline bool 32778: operator<(const error_condition& __lhs, 32778: const error_condition& __rhs) noexcept 32778: { 32778: return (__lhs.category() < __rhs.category() 32778: || (__lhs.category() == __rhs.category() 32778: && __lhs.value() < __rhs.value())); 32778: } 32778: 32778: 32778: inline bool 32778: operator==(const error_code& __lhs, const error_code& __rhs) noexcept 32778: { return (__lhs.category() == __rhs.category() 32778: && __lhs.value() == __rhs.value()); } 32778: 32778: inline bool 32778: operator==(const error_code& __lhs, const error_condition& __rhs) noexcept 32778: { 32778: return (__lhs.category().equivalent(__lhs.value(), __rhs) 32778: || __rhs.category().equivalent(__lhs, __rhs.value())); 32778: } 32778: 32778: inline bool 32778: operator==(const error_condition& __lhs, const error_code& __rhs) noexcept 32778: { 32778: return (__rhs.category().equivalent(__rhs.value(), __lhs) 32778: || __lhs.category().equivalent(__rhs, __lhs.value())); 32778: } 32778: 32778: inline bool 32778: operator==(const error_condition& __lhs, 32778: const error_condition& __rhs) noexcept 32778: { 32778: return (__lhs.category() == __rhs.category() 32778: && __lhs.value() == __rhs.value()); 32778: } 32778: 32778: inline bool 32778: operator!=(const error_code& __lhs, const error_code& __rhs) noexcept 32778: { return !(__lhs == __rhs); } 32778: 32778: inline bool 32778: operator!=(const error_code& __lhs, const error_condition& __rhs) noexcept 32778: { return !(__lhs == __rhs); } 32778: 32778: inline bool 32778: operator!=(const error_condition& __lhs, const error_code& __rhs) noexcept 32778: { return !(__lhs == __rhs); } 32778: 32778: inline bool 32778: operator!=(const error_condition& __lhs, 32778: const error_condition& __rhs) noexcept 32778: { return !(__lhs == __rhs); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: class system_error : public std::runtime_error 32778: { 32778: private: 32778: error_code _M_code; 32778: 32778: public: 32778: system_error(error_code __ec = error_code()) 32778: : runtime_error(__ec.message()), _M_code(__ec) { } 32778: 32778: system_error(error_code __ec, const string& __what) 32778: : runtime_error(__what + ": " + __ec.message()), _M_code(__ec) { } 32778: 32778: system_error(error_code __ec, const char* __what) 32778: : runtime_error(__what + (": " + __ec.message())), _M_code(__ec) { } 32778: 32778: system_error(int __v, const error_category& __ecat, const char* __what) 32778: : system_error(error_code(__v, __ecat), __what) { } 32778: 32778: system_error(int __v, const error_category& __ecat) 32778: : runtime_error(error_code(__v, __ecat).message()), 32778: _M_code(__v, __ecat) { } 32778: 32778: system_error(int __v, const error_category& __ecat, const string& __what) 32778: : runtime_error(__what + ": " + error_code(__v, __ecat).message()), 32778: _M_code(__v, __ecat) { } 32778: 32778: 32778: system_error (const system_error &) = default; 32778: system_error &operator= (const system_error &) = default; 32778: 32778: 32778: virtual ~system_error() noexcept; 32778: 32778: const error_code& 32778: code() const noexcept { return _M_code; } 32778: }; 32778: 32778: 32778: } 32778: 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: template<> 32778: struct hash 32778: : public __hash_base 32778: { 32778: size_t 32778: operator()(const error_code& __e) const noexcept 32778: { 32778: const size_t __tmp = std::_Hash_impl::hash(__e._M_value); 32778: return std::_Hash_impl::__hash_combine(__e._M_cat, __tmp); 32778: } 32778: }; 32778: # 419 "/usr/include/c++/9/system_error" 3 32778: 32778: } 32778: # 47 "/usr/include/c++/9/bits/ios_base.h" 2 3 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: enum _Ios_Fmtflags 32778: { 32778: _S_boolalpha = 1L << 0, 32778: _S_dec = 1L << 1, 32778: _S_fixed = 1L << 2, 32778: _S_hex = 1L << 3, 32778: _S_internal = 1L << 4, 32778: _S_left = 1L << 5, 32778: _S_oct = 1L << 6, 32778: _S_right = 1L << 7, 32778: _S_scientific = 1L << 8, 32778: _S_showbase = 1L << 9, 32778: _S_showpoint = 1L << 10, 32778: _S_showpos = 1L << 11, 32778: _S_skipws = 1L << 12, 32778: _S_unitbuf = 1L << 13, 32778: _S_uppercase = 1L << 14, 32778: _S_adjustfield = _S_left | _S_right | _S_internal, 32778: _S_basefield = _S_dec | _S_oct | _S_hex, 32778: _S_floatfield = _S_scientific | _S_fixed, 32778: _S_ios_fmtflags_end = 1L << 16, 32778: _S_ios_fmtflags_max = 0x7fffffff, 32778: _S_ios_fmtflags_min = ~0x7fffffff 32778: }; 32778: 32778: inline constexpr _Ios_Fmtflags 32778: operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b) 32778: { return _Ios_Fmtflags(static_cast(__a) & static_cast(__b)); } 32778: 32778: inline constexpr _Ios_Fmtflags 32778: operator|(_Ios_Fmtflags __a, _Ios_Fmtflags __b) 32778: { return _Ios_Fmtflags(static_cast(__a) | static_cast(__b)); } 32778: 32778: inline constexpr _Ios_Fmtflags 32778: operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b) 32778: { return _Ios_Fmtflags(static_cast(__a) ^ static_cast(__b)); } 32778: 32778: inline constexpr _Ios_Fmtflags 32778: operator~(_Ios_Fmtflags __a) 32778: { return _Ios_Fmtflags(~static_cast(__a)); } 32778: 32778: inline const _Ios_Fmtflags& 32778: operator|=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) 32778: { return __a = __a | __b; } 32778: 32778: inline const _Ios_Fmtflags& 32778: operator&=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) 32778: { return __a = __a & __b; } 32778: 32778: inline const _Ios_Fmtflags& 32778: operator^=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) 32778: { return __a = __a ^ __b; } 32778: 32778: 32778: enum _Ios_Openmode 32778: { 32778: _S_app = 1L << 0, 32778: _S_ate = 1L << 1, 32778: _S_bin = 1L << 2, 32778: _S_in = 1L << 3, 32778: _S_out = 1L << 4, 32778: _S_trunc = 1L << 5, 32778: _S_ios_openmode_end = 1L << 16, 32778: _S_ios_openmode_max = 0x7fffffff, 32778: _S_ios_openmode_min = ~0x7fffffff 32778: }; 32778: 32778: inline constexpr _Ios_Openmode 32778: operator&(_Ios_Openmode __a, _Ios_Openmode __b) 32778: { return _Ios_Openmode(static_cast(__a) & static_cast(__b)); } 32778: 32778: inline constexpr _Ios_Openmode 32778: operator|(_Ios_Openmode __a, _Ios_Openmode __b) 32778: { return _Ios_Openmode(static_cast(__a) | static_cast(__b)); } 32778: 32778: inline constexpr _Ios_Openmode 32778: operator^(_Ios_Openmode __a, _Ios_Openmode __b) 32778: { return _Ios_Openmode(static_cast(__a) ^ static_cast(__b)); } 32778: 32778: inline constexpr _Ios_Openmode 32778: operator~(_Ios_Openmode __a) 32778: { return _Ios_Openmode(~static_cast(__a)); } 32778: 32778: inline const _Ios_Openmode& 32778: operator|=(_Ios_Openmode& __a, _Ios_Openmode __b) 32778: { return __a = __a | __b; } 32778: 32778: inline const _Ios_Openmode& 32778: operator&=(_Ios_Openmode& __a, _Ios_Openmode __b) 32778: { return __a = __a & __b; } 32778: 32778: inline const _Ios_Openmode& 32778: operator^=(_Ios_Openmode& __a, _Ios_Openmode __b) 32778: { return __a = __a ^ __b; } 32778: 32778: 32778: enum _Ios_Iostate 32778: { 32778: _S_goodbit = 0, 32778: _S_badbit = 1L << 0, 32778: _S_eofbit = 1L << 1, 32778: _S_failbit = 1L << 2, 32778: _S_ios_iostate_end = 1L << 16, 32778: _S_ios_iostate_max = 0x7fffffff, 32778: _S_ios_iostate_min = ~0x7fffffff 32778: }; 32778: 32778: inline constexpr _Ios_Iostate 32778: operator&(_Ios_Iostate __a, _Ios_Iostate __b) 32778: { return _Ios_Iostate(static_cast(__a) & static_cast(__b)); } 32778: 32778: inline constexpr _Ios_Iostate 32778: operator|(_Ios_Iostate __a, _Ios_Iostate __b) 32778: { return _Ios_Iostate(static_cast(__a) | static_cast(__b)); } 32778: 32778: inline constexpr _Ios_Iostate 32778: operator^(_Ios_Iostate __a, _Ios_Iostate __b) 32778: { return _Ios_Iostate(static_cast(__a) ^ static_cast(__b)); } 32778: 32778: inline constexpr _Ios_Iostate 32778: operator~(_Ios_Iostate __a) 32778: { return _Ios_Iostate(~static_cast(__a)); } 32778: 32778: inline const _Ios_Iostate& 32778: operator|=(_Ios_Iostate& __a, _Ios_Iostate __b) 32778: { return __a = __a | __b; } 32778: 32778: inline const _Ios_Iostate& 32778: operator&=(_Ios_Iostate& __a, _Ios_Iostate __b) 32778: { return __a = __a & __b; } 32778: 32778: inline const _Ios_Iostate& 32778: operator^=(_Ios_Iostate& __a, _Ios_Iostate __b) 32778: { return __a = __a ^ __b; } 32778: 32778: 32778: enum _Ios_Seekdir 32778: { 32778: _S_beg = 0, 32778: _S_cur = 1, 32778: _S_end = 2, 32778: _S_ios_seekdir_end = 1L << 16 32778: }; 32778: 32778: 32778: 32778: enum class io_errc { stream = 1 }; 32778: 32778: template <> struct is_error_code_enum : public true_type { }; 32778: 32778: const error_category& iostream_category() noexcept; 32778: 32778: inline error_code 32778: make_error_code(io_errc __e) noexcept 32778: { return error_code(static_cast(__e), iostream_category()); } 32778: 32778: inline error_condition 32778: make_error_condition(io_errc __e) noexcept 32778: { return error_condition(static_cast(__e), iostream_category()); } 32778: # 228 "/usr/include/c++/9/bits/ios_base.h" 3 32778: class ios_base 32778: { 32778: # 246 "/usr/include/c++/9/bits/ios_base.h" 3 32778: public: 32778: # 255 "/usr/include/c++/9/bits/ios_base.h" 3 32778: class __attribute ((__abi_tag__ ("cxx11"))) failure : public system_error 32778: { 32778: public: 32778: explicit 32778: failure(const string& __str); 32778: 32778: 32778: explicit 32778: failure(const string&, const error_code&); 32778: 32778: explicit 32778: failure(const char*, const error_code& = io_errc::stream); 32778: 32778: 32778: virtual 32778: ~failure() throw(); 32778: 32778: virtual const char* 32778: what() const throw(); 32778: }; 32778: # 323 "/usr/include/c++/9/bits/ios_base.h" 3 32778: typedef _Ios_Fmtflags fmtflags; 32778: 32778: 32778: static const fmtflags boolalpha = _S_boolalpha; 32778: 32778: 32778: static const fmtflags dec = _S_dec; 32778: 32778: 32778: static const fmtflags fixed = _S_fixed; 32778: 32778: 32778: static const fmtflags hex = _S_hex; 32778: 32778: 32778: 32778: 32778: static const fmtflags internal = _S_internal; 32778: 32778: 32778: 32778: static const fmtflags left = _S_left; 32778: 32778: 32778: static const fmtflags oct = _S_oct; 32778: 32778: 32778: 32778: static const fmtflags right = _S_right; 32778: 32778: 32778: static const fmtflags scientific = _S_scientific; 32778: 32778: 32778: 32778: static const fmtflags showbase = _S_showbase; 32778: 32778: 32778: 32778: static const fmtflags showpoint = _S_showpoint; 32778: 32778: 32778: static const fmtflags showpos = _S_showpos; 32778: 32778: 32778: static const fmtflags skipws = _S_skipws; 32778: 32778: 32778: static const fmtflags unitbuf = _S_unitbuf; 32778: 32778: 32778: 32778: static const fmtflags uppercase = _S_uppercase; 32778: 32778: 32778: static const fmtflags adjustfield = _S_adjustfield; 32778: 32778: 32778: static const fmtflags basefield = _S_basefield; 32778: 32778: 32778: static const fmtflags floatfield = _S_floatfield; 32778: # 398 "/usr/include/c++/9/bits/ios_base.h" 3 32778: typedef _Ios_Iostate iostate; 32778: 32778: 32778: 32778: static const iostate badbit = _S_badbit; 32778: 32778: 32778: static const iostate eofbit = _S_eofbit; 32778: 32778: 32778: 32778: 32778: static const iostate failbit = _S_failbit; 32778: 32778: 32778: static const iostate goodbit = _S_goodbit; 32778: # 429 "/usr/include/c++/9/bits/ios_base.h" 3 32778: typedef _Ios_Openmode openmode; 32778: 32778: 32778: static const openmode app = _S_app; 32778: 32778: 32778: static const openmode ate = _S_ate; 32778: 32778: 32778: 32778: 32778: static const openmode binary = _S_bin; 32778: 32778: 32778: static const openmode in = _S_in; 32778: 32778: 32778: static const openmode out = _S_out; 32778: 32778: 32778: static const openmode trunc = _S_trunc; 32778: # 461 "/usr/include/c++/9/bits/ios_base.h" 3 32778: typedef _Ios_Seekdir seekdir; 32778: 32778: 32778: static const seekdir beg = _S_beg; 32778: 32778: 32778: static const seekdir cur = _S_cur; 32778: 32778: 32778: static const seekdir end = _S_end; 32778: 32778: 32778: 32778: typedef int io_state; 32778: typedef int open_mode; 32778: typedef int seek_dir; 32778: 32778: typedef std::streampos streampos; 32778: typedef std::streamoff streamoff; 32778: # 489 "/usr/include/c++/9/bits/ios_base.h" 3 32778: enum event 32778: { 32778: erase_event, 32778: imbue_event, 32778: copyfmt_event 32778: }; 32778: # 506 "/usr/include/c++/9/bits/ios_base.h" 3 32778: typedef void (*event_callback) (event __e, ios_base& __b, int __i); 32778: # 518 "/usr/include/c++/9/bits/ios_base.h" 3 32778: void 32778: register_callback(event_callback __fn, int __index); 32778: 32778: protected: 32778: streamsize _M_precision; 32778: streamsize _M_width; 32778: fmtflags _M_flags; 32778: iostate _M_exception; 32778: iostate _M_streambuf_state; 32778: 32778: 32778: 32778: struct _Callback_list 32778: { 32778: 32778: _Callback_list* _M_next; 32778: ios_base::event_callback _M_fn; 32778: int _M_index; 32778: _Atomic_word _M_refcount; 32778: 32778: _Callback_list(ios_base::event_callback __fn, int __index, 32778: _Callback_list* __cb) 32778: : _M_next(__cb), _M_fn(__fn), _M_index(__index), _M_refcount(0) { } 32778: 32778: void 32778: _M_add_reference() { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 32778: 32778: 32778: int 32778: _M_remove_reference() 32778: { 32778: 32778: ; 32778: int __res = __gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1); 32778: if (__res == 0) 32778: { 32778: ; 32778: } 32778: return __res; 32778: } 32778: }; 32778: 32778: _Callback_list* _M_callbacks; 32778: 32778: void 32778: _M_call_callbacks(event __ev) throw(); 32778: 32778: void 32778: _M_dispose_callbacks(void) throw(); 32778: 32778: 32778: struct _Words 32778: { 32778: void* _M_pword; 32778: long _M_iword; 32778: _Words() : _M_pword(0), _M_iword(0) { } 32778: }; 32778: 32778: 32778: _Words _M_word_zero; 32778: 32778: 32778: 32778: enum { _S_local_word_size = 8 }; 32778: _Words _M_local_word[_S_local_word_size]; 32778: 32778: 32778: int _M_word_size; 32778: _Words* _M_word; 32778: 32778: _Words& 32778: _M_grow_words(int __index, bool __iword); 32778: 32778: 32778: locale _M_ios_locale; 32778: 32778: void 32778: _M_init() throw(); 32778: 32778: public: 32778: 32778: 32778: 32778: 32778: 32778: class Init 32778: { 32778: friend class ios_base; 32778: public: 32778: Init(); 32778: ~Init(); 32778: 32778: 32778: Init(const Init&) = default; 32778: Init& operator=(const Init&) = default; 32778: 32778: 32778: private: 32778: static _Atomic_word _S_refcount; 32778: static bool _S_synced_with_stdio; 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: fmtflags 32778: flags() const 32778: { return _M_flags; } 32778: # 636 "/usr/include/c++/9/bits/ios_base.h" 3 32778: fmtflags 32778: flags(fmtflags __fmtfl) 32778: { 32778: fmtflags __old = _M_flags; 32778: _M_flags = __fmtfl; 32778: return __old; 32778: } 32778: # 652 "/usr/include/c++/9/bits/ios_base.h" 3 32778: fmtflags 32778: setf(fmtflags __fmtfl) 32778: { 32778: fmtflags __old = _M_flags; 32778: _M_flags |= __fmtfl; 32778: return __old; 32778: } 32778: # 669 "/usr/include/c++/9/bits/ios_base.h" 3 32778: fmtflags 32778: setf(fmtflags __fmtfl, fmtflags __mask) 32778: { 32778: fmtflags __old = _M_flags; 32778: _M_flags &= ~__mask; 32778: _M_flags |= (__fmtfl & __mask); 32778: return __old; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: void 32778: unsetf(fmtflags __mask) 32778: { _M_flags &= ~__mask; } 32778: # 695 "/usr/include/c++/9/bits/ios_base.h" 3 32778: streamsize 32778: precision() const 32778: { return _M_precision; } 32778: 32778: 32778: 32778: 32778: 32778: 32778: streamsize 32778: precision(streamsize __prec) 32778: { 32778: streamsize __old = _M_precision; 32778: _M_precision = __prec; 32778: return __old; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: streamsize 32778: width() const 32778: { return _M_width; } 32778: 32778: 32778: 32778: 32778: 32778: 32778: streamsize 32778: width(streamsize __wide) 32778: { 32778: streamsize __old = _M_width; 32778: _M_width = __wide; 32778: return __old; 32778: } 32778: # 746 "/usr/include/c++/9/bits/ios_base.h" 3 32778: static bool 32778: sync_with_stdio(bool __sync = true); 32778: # 758 "/usr/include/c++/9/bits/ios_base.h" 3 32778: locale 32778: imbue(const locale& __loc) throw(); 32778: # 769 "/usr/include/c++/9/bits/ios_base.h" 3 32778: locale 32778: getloc() const 32778: { return _M_ios_locale; } 32778: # 780 "/usr/include/c++/9/bits/ios_base.h" 3 32778: const locale& 32778: _M_getloc() const 32778: { return _M_ios_locale; } 32778: # 799 "/usr/include/c++/9/bits/ios_base.h" 3 32778: static int 32778: xalloc() throw(); 32778: # 815 "/usr/include/c++/9/bits/ios_base.h" 3 32778: long& 32778: iword(int __ix) 32778: { 32778: _Words& __word = ((unsigned)__ix < (unsigned)_M_word_size) 32778: ? _M_word[__ix] : _M_grow_words(__ix, true); 32778: return __word._M_iword; 32778: } 32778: # 836 "/usr/include/c++/9/bits/ios_base.h" 3 32778: void*& 32778: pword(int __ix) 32778: { 32778: _Words& __word = ((unsigned)__ix < (unsigned)_M_word_size) 32778: ? _M_word[__ix] : _M_grow_words(__ix, false); 32778: return __word._M_pword; 32778: } 32778: # 853 "/usr/include/c++/9/bits/ios_base.h" 3 32778: virtual ~ios_base(); 32778: 32778: protected: 32778: ios_base() throw (); 32778: # 867 "/usr/include/c++/9/bits/ios_base.h" 3 32778: public: 32778: ios_base(const ios_base&) = delete; 32778: 32778: ios_base& 32778: operator=(const ios_base&) = delete; 32778: 32778: protected: 32778: void 32778: _M_move(ios_base&) noexcept; 32778: 32778: void 32778: _M_swap(ios_base& __rhs) noexcept; 32778: 32778: }; 32778: 32778: 32778: 32778: inline ios_base& 32778: boolalpha(ios_base& __base) 32778: { 32778: __base.setf(ios_base::boolalpha); 32778: return __base; 32778: } 32778: 32778: 32778: inline ios_base& 32778: noboolalpha(ios_base& __base) 32778: { 32778: __base.unsetf(ios_base::boolalpha); 32778: return __base; 32778: } 32778: 32778: 32778: inline ios_base& 32778: showbase(ios_base& __base) 32778: { 32778: __base.setf(ios_base::showbase); 32778: return __base; 32778: } 32778: 32778: 32778: inline ios_base& 32778: noshowbase(ios_base& __base) 32778: { 32778: __base.unsetf(ios_base::showbase); 32778: return __base; 32778: } 32778: 32778: 32778: inline ios_base& 32778: showpoint(ios_base& __base) 32778: { 32778: __base.setf(ios_base::showpoint); 32778: return __base; 32778: } 32778: 32778: 32778: inline ios_base& 32778: noshowpoint(ios_base& __base) 32778: { 32778: __base.unsetf(ios_base::showpoint); 32778: return __base; 32778: } 32778: 32778: 32778: inline ios_base& 32778: showpos(ios_base& __base) 32778: { 32778: __base.setf(ios_base::showpos); 32778: return __base; 32778: } 32778: 32778: 32778: inline ios_base& 32778: noshowpos(ios_base& __base) 32778: { 32778: __base.unsetf(ios_base::showpos); 32778: return __base; 32778: } 32778: 32778: 32778: inline ios_base& 32778: skipws(ios_base& __base) 32778: { 32778: __base.setf(ios_base::skipws); 32778: return __base; 32778: } 32778: 32778: 32778: inline ios_base& 32778: noskipws(ios_base& __base) 32778: { 32778: __base.unsetf(ios_base::skipws); 32778: return __base; 32778: } 32778: 32778: 32778: inline ios_base& 32778: uppercase(ios_base& __base) 32778: { 32778: __base.setf(ios_base::uppercase); 32778: return __base; 32778: } 32778: 32778: 32778: inline ios_base& 32778: nouppercase(ios_base& __base) 32778: { 32778: __base.unsetf(ios_base::uppercase); 32778: return __base; 32778: } 32778: 32778: 32778: inline ios_base& 32778: unitbuf(ios_base& __base) 32778: { 32778: __base.setf(ios_base::unitbuf); 32778: return __base; 32778: } 32778: 32778: 32778: inline ios_base& 32778: nounitbuf(ios_base& __base) 32778: { 32778: __base.unsetf(ios_base::unitbuf); 32778: return __base; 32778: } 32778: 32778: 32778: 32778: inline ios_base& 32778: internal(ios_base& __base) 32778: { 32778: __base.setf(ios_base::internal, ios_base::adjustfield); 32778: return __base; 32778: } 32778: 32778: 32778: inline ios_base& 32778: left(ios_base& __base) 32778: { 32778: __base.setf(ios_base::left, ios_base::adjustfield); 32778: return __base; 32778: } 32778: 32778: 32778: inline ios_base& 32778: right(ios_base& __base) 32778: { 32778: __base.setf(ios_base::right, ios_base::adjustfield); 32778: return __base; 32778: } 32778: 32778: 32778: 32778: inline ios_base& 32778: dec(ios_base& __base) 32778: { 32778: __base.setf(ios_base::dec, ios_base::basefield); 32778: return __base; 32778: } 32778: 32778: 32778: inline ios_base& 32778: hex(ios_base& __base) 32778: { 32778: __base.setf(ios_base::hex, ios_base::basefield); 32778: return __base; 32778: } 32778: 32778: 32778: inline ios_base& 32778: oct(ios_base& __base) 32778: { 32778: __base.setf(ios_base::oct, ios_base::basefield); 32778: return __base; 32778: } 32778: 32778: 32778: 32778: inline ios_base& 32778: fixed(ios_base& __base) 32778: { 32778: __base.setf(ios_base::fixed, ios_base::floatfield); 32778: return __base; 32778: } 32778: 32778: 32778: inline ios_base& 32778: scientific(ios_base& __base) 32778: { 32778: __base.setf(ios_base::scientific, ios_base::floatfield); 32778: return __base; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: inline ios_base& 32778: hexfloat(ios_base& __base) 32778: { 32778: __base.setf(ios_base::fixed | ios_base::scientific, ios_base::floatfield); 32778: return __base; 32778: } 32778: 32778: 32778: inline ios_base& 32778: defaultfloat(ios_base& __base) 32778: { 32778: __base.unsetf(ios_base::floatfield); 32778: return __base; 32778: } 32778: 32778: 32778: 32778: } 32778: # 43 "/usr/include/c++/9/ios" 2 3 32778: # 1 "/usr/include/c++/9/streambuf" 1 3 32778: # 36 "/usr/include/c++/9/streambuf" 3 32778: 32778: # 37 "/usr/include/c++/9/streambuf" 3 32778: # 45 "/usr/include/c++/9/streambuf" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: template 32778: streamsize 32778: __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>*, 32778: basic_streambuf<_CharT, _Traits>*, bool&); 32778: # 121 "/usr/include/c++/9/streambuf" 3 32778: template 32778: class basic_streambuf 32778: { 32778: public: 32778: 32778: 32778: 32778: 32778: 32778: 32778: typedef _CharT char_type; 32778: typedef _Traits traits_type; 32778: typedef typename traits_type::int_type int_type; 32778: typedef typename traits_type::pos_type pos_type; 32778: typedef typename traits_type::off_type off_type; 32778: 32778: 32778: 32778: 32778: typedef basic_streambuf __streambuf_type; 32778: 32778: 32778: friend class basic_ios; 32778: friend class basic_istream; 32778: friend class basic_ostream; 32778: friend class istreambuf_iterator; 32778: friend class ostreambuf_iterator; 32778: 32778: friend streamsize 32778: __copy_streambufs_eof<>(basic_streambuf*, basic_streambuf*, bool&); 32778: 32778: template 32778: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 32778: _CharT2*>::__type 32778: __copy_move_a2(istreambuf_iterator<_CharT2>, 32778: istreambuf_iterator<_CharT2>, _CharT2*); 32778: 32778: template 32778: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 32778: istreambuf_iterator<_CharT2> >::__type 32778: find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 32778: const _CharT2&); 32778: 32778: template 32778: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 32778: void>::__type 32778: advance(istreambuf_iterator<_CharT2>&, _Distance); 32778: 32778: template 32778: friend basic_istream<_CharT2, _Traits2>& 32778: operator>>(basic_istream<_CharT2, _Traits2>&, _CharT2*); 32778: 32778: template 32778: friend basic_istream<_CharT2, _Traits2>& 32778: operator>>(basic_istream<_CharT2, _Traits2>&, 32778: basic_string<_CharT2, _Traits2, _Alloc>&); 32778: 32778: template 32778: friend basic_istream<_CharT2, _Traits2>& 32778: getline(basic_istream<_CharT2, _Traits2>&, 32778: basic_string<_CharT2, _Traits2, _Alloc>&, _CharT2); 32778: 32778: protected: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: char_type* _M_in_beg; 32778: char_type* _M_in_cur; 32778: char_type* _M_in_end; 32778: char_type* _M_out_beg; 32778: char_type* _M_out_cur; 32778: char_type* _M_out_end; 32778: 32778: 32778: locale _M_buf_locale; 32778: 32778: public: 32778: 32778: virtual 32778: ~basic_streambuf() 32778: { } 32778: # 215 "/usr/include/c++/9/streambuf" 3 32778: locale 32778: pubimbue(const locale& __loc) 32778: { 32778: locale __tmp(this->getloc()); 32778: this->imbue(__loc); 32778: _M_buf_locale = __loc; 32778: return __tmp; 32778: } 32778: # 232 "/usr/include/c++/9/streambuf" 3 32778: locale 32778: getloc() const 32778: { return _M_buf_locale; } 32778: # 245 "/usr/include/c++/9/streambuf" 3 32778: basic_streambuf* 32778: pubsetbuf(char_type* __s, streamsize __n) 32778: { return this->setbuf(__s, __n); } 32778: # 257 "/usr/include/c++/9/streambuf" 3 32778: pos_type 32778: pubseekoff(off_type __off, ios_base::seekdir __way, 32778: ios_base::openmode __mode = ios_base::in | ios_base::out) 32778: { return this->seekoff(__off, __way, __mode); } 32778: # 269 "/usr/include/c++/9/streambuf" 3 32778: pos_type 32778: pubseekpos(pos_type __sp, 32778: ios_base::openmode __mode = ios_base::in | ios_base::out) 32778: { return this->seekpos(__sp, __mode); } 32778: 32778: 32778: 32778: 32778: int 32778: pubsync() { return this->sync(); } 32778: # 290 "/usr/include/c++/9/streambuf" 3 32778: streamsize 32778: in_avail() 32778: { 32778: const streamsize __ret = this->egptr() - this->gptr(); 32778: return __ret ? __ret : this->showmanyc(); 32778: } 32778: # 304 "/usr/include/c++/9/streambuf" 3 32778: int_type 32778: snextc() 32778: { 32778: int_type __ret = traits_type::eof(); 32778: if (__builtin_expect(!traits_type::eq_int_type(this->sbumpc(), 32778: __ret), true)) 32778: __ret = this->sgetc(); 32778: return __ret; 32778: } 32778: # 322 "/usr/include/c++/9/streambuf" 3 32778: int_type 32778: sbumpc() 32778: { 32778: int_type __ret; 32778: if (__builtin_expect(this->gptr() < this->egptr(), true)) 32778: { 32778: __ret = traits_type::to_int_type(*this->gptr()); 32778: this->gbump(1); 32778: } 32778: else 32778: __ret = this->uflow(); 32778: return __ret; 32778: } 32778: # 344 "/usr/include/c++/9/streambuf" 3 32778: int_type 32778: sgetc() 32778: { 32778: int_type __ret; 32778: if (__builtin_expect(this->gptr() < this->egptr(), true)) 32778: __ret = traits_type::to_int_type(*this->gptr()); 32778: else 32778: __ret = this->underflow(); 32778: return __ret; 32778: } 32778: # 363 "/usr/include/c++/9/streambuf" 3 32778: streamsize 32778: sgetn(char_type* __s, streamsize __n) 32778: { return this->xsgetn(__s, __n); } 32778: # 378 "/usr/include/c++/9/streambuf" 3 32778: int_type 32778: sputbackc(char_type __c) 32778: { 32778: int_type __ret; 32778: const bool __testpos = this->eback() < this->gptr(); 32778: if (__builtin_expect(!__testpos || 32778: !traits_type::eq(__c, this->gptr()[-1]), false)) 32778: __ret = this->pbackfail(traits_type::to_int_type(__c)); 32778: else 32778: { 32778: this->gbump(-1); 32778: __ret = traits_type::to_int_type(*this->gptr()); 32778: } 32778: return __ret; 32778: } 32778: # 403 "/usr/include/c++/9/streambuf" 3 32778: int_type 32778: sungetc() 32778: { 32778: int_type __ret; 32778: if (__builtin_expect(this->eback() < this->gptr(), true)) 32778: { 32778: this->gbump(-1); 32778: __ret = traits_type::to_int_type(*this->gptr()); 32778: } 32778: else 32778: __ret = this->pbackfail(); 32778: return __ret; 32778: } 32778: # 430 "/usr/include/c++/9/streambuf" 3 32778: int_type 32778: sputc(char_type __c) 32778: { 32778: int_type __ret; 32778: if (__builtin_expect(this->pptr() < this->epptr(), true)) 32778: { 32778: *this->pptr() = __c; 32778: this->pbump(1); 32778: __ret = traits_type::to_int_type(__c); 32778: } 32778: else 32778: __ret = this->overflow(traits_type::to_int_type(__c)); 32778: return __ret; 32778: } 32778: # 456 "/usr/include/c++/9/streambuf" 3 32778: streamsize 32778: sputn(const char_type* __s, streamsize __n) 32778: { return this->xsputn(__s, __n); } 32778: 32778: protected: 32778: # 470 "/usr/include/c++/9/streambuf" 3 32778: basic_streambuf() 32778: : _M_in_beg(0), _M_in_cur(0), _M_in_end(0), 32778: _M_out_beg(0), _M_out_cur(0), _M_out_end(0), 32778: _M_buf_locale(locale()) 32778: { } 32778: # 488 "/usr/include/c++/9/streambuf" 3 32778: char_type* 32778: eback() const { return _M_in_beg; } 32778: 32778: char_type* 32778: gptr() const { return _M_in_cur; } 32778: 32778: char_type* 32778: egptr() const { return _M_in_end; } 32778: # 504 "/usr/include/c++/9/streambuf" 3 32778: void 32778: gbump(int __n) { _M_in_cur += __n; } 32778: # 515 "/usr/include/c++/9/streambuf" 3 32778: void 32778: setg(char_type* __gbeg, char_type* __gnext, char_type* __gend) 32778: { 32778: _M_in_beg = __gbeg; 32778: _M_in_cur = __gnext; 32778: _M_in_end = __gend; 32778: } 32778: # 535 "/usr/include/c++/9/streambuf" 3 32778: char_type* 32778: pbase() const { return _M_out_beg; } 32778: 32778: char_type* 32778: pptr() const { return _M_out_cur; } 32778: 32778: char_type* 32778: epptr() const { return _M_out_end; } 32778: # 551 "/usr/include/c++/9/streambuf" 3 32778: void 32778: pbump(int __n) { _M_out_cur += __n; } 32778: # 561 "/usr/include/c++/9/streambuf" 3 32778: void 32778: setp(char_type* __pbeg, char_type* __pend) 32778: { 32778: _M_out_beg = _M_out_cur = __pbeg; 32778: _M_out_end = __pend; 32778: } 32778: # 582 "/usr/include/c++/9/streambuf" 3 32778: virtual void 32778: imbue(const locale& __loc __attribute__ ((__unused__))) 32778: { } 32778: # 597 "/usr/include/c++/9/streambuf" 3 32778: virtual basic_streambuf* 32778: setbuf(char_type*, streamsize) 32778: { return this; } 32778: # 608 "/usr/include/c++/9/streambuf" 3 32778: virtual pos_type 32778: seekoff(off_type, ios_base::seekdir, 32778: ios_base::openmode = ios_base::in | ios_base::out) 32778: { return pos_type(off_type(-1)); } 32778: # 620 "/usr/include/c++/9/streambuf" 3 32778: virtual pos_type 32778: seekpos(pos_type, 32778: ios_base::openmode = ios_base::in | ios_base::out) 32778: { return pos_type(off_type(-1)); } 32778: # 633 "/usr/include/c++/9/streambuf" 3 32778: virtual int 32778: sync() { return 0; } 32778: # 655 "/usr/include/c++/9/streambuf" 3 32778: virtual streamsize 32778: showmanyc() { return 0; } 32778: # 671 "/usr/include/c++/9/streambuf" 3 32778: virtual streamsize 32778: xsgetn(char_type* __s, streamsize __n); 32778: # 693 "/usr/include/c++/9/streambuf" 3 32778: virtual int_type 32778: underflow() 32778: { return traits_type::eof(); } 32778: # 706 "/usr/include/c++/9/streambuf" 3 32778: virtual int_type 32778: uflow() 32778: { 32778: int_type __ret = traits_type::eof(); 32778: const bool __testeof = traits_type::eq_int_type(this->underflow(), 32778: __ret); 32778: if (!__testeof) 32778: { 32778: __ret = traits_type::to_int_type(*this->gptr()); 32778: this->gbump(1); 32778: } 32778: return __ret; 32778: } 32778: # 730 "/usr/include/c++/9/streambuf" 3 32778: virtual int_type 32778: pbackfail(int_type __c __attribute__ ((__unused__)) = traits_type::eof()) 32778: { return traits_type::eof(); } 32778: # 748 "/usr/include/c++/9/streambuf" 3 32778: virtual streamsize 32778: xsputn(const char_type* __s, streamsize __n); 32778: # 774 "/usr/include/c++/9/streambuf" 3 32778: virtual int_type 32778: overflow(int_type __c __attribute__ ((__unused__)) = traits_type::eof()) 32778: { return traits_type::eof(); } 32778: 32778: 32778: 32778: public: 32778: # 790 "/usr/include/c++/9/streambuf" 3 32778: [[__deprecated__("stossc is deprecated, use sbumpc instead")]] 32778: 32778: void 32778: stossc() 32778: { 32778: if (this->gptr() < this->egptr()) 32778: this->gbump(1); 32778: else 32778: this->uflow(); 32778: } 32778: 32778: 32778: 32778: void 32778: __safe_gbump(streamsize __n) { _M_in_cur += __n; } 32778: 32778: void 32778: __safe_pbump(streamsize __n) { _M_out_cur += __n; } 32778: 32778: 32778: 32778: 32778: protected: 32778: 32778: basic_streambuf(const basic_streambuf&); 32778: 32778: basic_streambuf& 32778: operator=(const basic_streambuf&); 32778: 32778: 32778: void 32778: swap(basic_streambuf& __sb) 32778: { 32778: std::swap(_M_in_beg, __sb._M_in_beg); 32778: std::swap(_M_in_cur, __sb._M_in_cur); 32778: std::swap(_M_in_end, __sb._M_in_end); 32778: std::swap(_M_out_beg, __sb._M_out_beg); 32778: std::swap(_M_out_cur, __sb._M_out_cur); 32778: std::swap(_M_out_end, __sb._M_out_end); 32778: std::swap(_M_buf_locale, __sb._M_buf_locale); 32778: } 32778: 32778: }; 32778: 32778: 32778: template 32778: std::basic_streambuf<_CharT, _Traits>:: 32778: basic_streambuf(const basic_streambuf&) = default; 32778: 32778: template 32778: std::basic_streambuf<_CharT, _Traits>& 32778: std::basic_streambuf<_CharT, _Traits>:: 32778: operator=(const basic_streambuf&) = default; 32778: 32778: 32778: 32778: template<> 32778: streamsize 32778: __copy_streambufs_eof(basic_streambuf* __sbin, 32778: basic_streambuf* __sbout, bool& __ineof); 32778: 32778: template<> 32778: streamsize 32778: __copy_streambufs_eof(basic_streambuf* __sbin, 32778: basic_streambuf* __sbout, bool& __ineof); 32778: 32778: 32778: 32778: 32778: 32778: } 32778: 32778: # 1 "/usr/include/c++/9/bits/streambuf.tcc" 1 3 32778: # 37 "/usr/include/c++/9/bits/streambuf.tcc" 3 32778: 32778: # 38 "/usr/include/c++/9/bits/streambuf.tcc" 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: template 32778: streamsize 32778: basic_streambuf<_CharT, _Traits>:: 32778: xsgetn(char_type* __s, streamsize __n) 32778: { 32778: streamsize __ret = 0; 32778: while (__ret < __n) 32778: { 32778: const streamsize __buf_len = this->egptr() - this->gptr(); 32778: if (__buf_len) 32778: { 32778: const streamsize __remaining = __n - __ret; 32778: const streamsize __len = std::min(__buf_len, __remaining); 32778: traits_type::copy(__s, this->gptr(), __len); 32778: __ret += __len; 32778: __s += __len; 32778: this->__safe_gbump(__len); 32778: } 32778: 32778: if (__ret < __n) 32778: { 32778: const int_type __c = this->uflow(); 32778: if (!traits_type::eq_int_type(__c, traits_type::eof())) 32778: { 32778: traits_type::assign(*__s++, traits_type::to_char_type(__c)); 32778: ++__ret; 32778: } 32778: else 32778: break; 32778: } 32778: } 32778: return __ret; 32778: } 32778: 32778: template 32778: streamsize 32778: basic_streambuf<_CharT, _Traits>:: 32778: xsputn(const char_type* __s, streamsize __n) 32778: { 32778: streamsize __ret = 0; 32778: while (__ret < __n) 32778: { 32778: const streamsize __buf_len = this->epptr() - this->pptr(); 32778: if (__buf_len) 32778: { 32778: const streamsize __remaining = __n - __ret; 32778: const streamsize __len = std::min(__buf_len, __remaining); 32778: traits_type::copy(this->pptr(), __s, __len); 32778: __ret += __len; 32778: __s += __len; 32778: this->__safe_pbump(__len); 32778: } 32778: 32778: if (__ret < __n) 32778: { 32778: int_type __c = this->overflow(traits_type::to_int_type(*__s)); 32778: if (!traits_type::eq_int_type(__c, traits_type::eof())) 32778: { 32778: ++__ret; 32778: ++__s; 32778: } 32778: else 32778: break; 32778: } 32778: } 32778: return __ret; 32778: } 32778: 32778: 32778: 32778: 32778: template 32778: streamsize 32778: __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>* __sbin, 32778: basic_streambuf<_CharT, _Traits>* __sbout, 32778: bool& __ineof) 32778: { 32778: streamsize __ret = 0; 32778: __ineof = true; 32778: typename _Traits::int_type __c = __sbin->sgetc(); 32778: while (!_Traits::eq_int_type(__c, _Traits::eof())) 32778: { 32778: __c = __sbout->sputc(_Traits::to_char_type(__c)); 32778: if (_Traits::eq_int_type(__c, _Traits::eof())) 32778: { 32778: __ineof = false; 32778: break; 32778: } 32778: ++__ret; 32778: __c = __sbin->snextc(); 32778: } 32778: return __ret; 32778: } 32778: 32778: template 32778: inline streamsize 32778: __copy_streambufs(basic_streambuf<_CharT, _Traits>* __sbin, 32778: basic_streambuf<_CharT, _Traits>* __sbout) 32778: { 32778: bool __ineof; 32778: return __copy_streambufs_eof(__sbin, __sbout, __ineof); 32778: } 32778: 32778: 32778: 32778: 32778: extern template class basic_streambuf; 32778: extern template 32778: streamsize 32778: __copy_streambufs(basic_streambuf*, 32778: basic_streambuf*); 32778: extern template 32778: streamsize 32778: __copy_streambufs_eof(basic_streambuf*, 32778: basic_streambuf*, bool&); 32778: 32778: 32778: extern template class basic_streambuf; 32778: extern template 32778: streamsize 32778: __copy_streambufs(basic_streambuf*, 32778: basic_streambuf*); 32778: extern template 32778: streamsize 32778: __copy_streambufs_eof(basic_streambuf*, 32778: basic_streambuf*, bool&); 32778: 32778: 32778: 32778: 32778: } 32778: # 863 "/usr/include/c++/9/streambuf" 2 3 32778: # 44 "/usr/include/c++/9/ios" 2 3 32778: # 1 "/usr/include/c++/9/bits/basic_ios.h" 1 3 32778: # 33 "/usr/include/c++/9/bits/basic_ios.h" 3 32778: 32778: # 34 "/usr/include/c++/9/bits/basic_ios.h" 3 32778: 32778: 32778: 32778: # 1 "/usr/include/c++/9/bits/locale_facets.h" 1 3 32778: # 37 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: 32778: # 38 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: 32778: # 1 "/usr/include/c++/9/cwctype" 1 3 32778: # 39 "/usr/include/c++/9/cwctype" 3 32778: 32778: # 40 "/usr/include/c++/9/cwctype" 3 32778: # 50 "/usr/include/c++/9/cwctype" 3 32778: # 1 "/usr/include/wctype.h" 1 3 4 32778: # 38 "/usr/include/wctype.h" 3 4 32778: # 1 "/usr/include/riscv64-linux-gnu/bits/wctype-wchar.h" 1 3 4 32778: # 38 "/usr/include/riscv64-linux-gnu/bits/wctype-wchar.h" 3 4 32778: typedef unsigned long int wctype_t; 32778: # 56 "/usr/include/riscv64-linux-gnu/bits/wctype-wchar.h" 3 4 32778: enum 32778: { 32778: __ISwupper = 0, 32778: __ISwlower = 1, 32778: __ISwalpha = 2, 32778: __ISwdigit = 3, 32778: __ISwxdigit = 4, 32778: __ISwspace = 5, 32778: __ISwprint = 6, 32778: __ISwgraph = 7, 32778: __ISwblank = 8, 32778: __ISwcntrl = 9, 32778: __ISwpunct = 10, 32778: __ISwalnum = 11, 32778: 32778: _ISwupper = ((__ISwupper) < 8 ? (int) ((1UL << (__ISwupper)) << 24) : ((__ISwupper) < 16 ? (int) ((1UL << (__ISwupper)) << 8) : ((__ISwupper) < 24 ? (int) ((1UL << (__ISwupper)) >> 8) : (int) ((1UL << (__ISwupper)) >> 24)))), 32778: _ISwlower = ((__ISwlower) < 8 ? (int) ((1UL << (__ISwlower)) << 24) : ((__ISwlower) < 16 ? (int) ((1UL << (__ISwlower)) << 8) : ((__ISwlower) < 24 ? (int) ((1UL << (__ISwlower)) >> 8) : (int) ((1UL << (__ISwlower)) >> 24)))), 32778: _ISwalpha = ((__ISwalpha) < 8 ? (int) ((1UL << (__ISwalpha)) << 24) : ((__ISwalpha) < 16 ? (int) ((1UL << (__ISwalpha)) << 8) : ((__ISwalpha) < 24 ? (int) ((1UL << (__ISwalpha)) >> 8) : (int) ((1UL << (__ISwalpha)) >> 24)))), 32778: _ISwdigit = ((__ISwdigit) < 8 ? (int) ((1UL << (__ISwdigit)) << 24) : ((__ISwdigit) < 16 ? (int) ((1UL << (__ISwdigit)) << 8) : ((__ISwdigit) < 24 ? (int) ((1UL << (__ISwdigit)) >> 8) : (int) ((1UL << (__ISwdigit)) >> 24)))), 32778: _ISwxdigit = ((__ISwxdigit) < 8 ? (int) ((1UL << (__ISwxdigit)) << 24) : ((__ISwxdigit) < 16 ? (int) ((1UL << (__ISwxdigit)) << 8) : ((__ISwxdigit) < 24 ? (int) ((1UL << (__ISwxdigit)) >> 8) : (int) ((1UL << (__ISwxdigit)) >> 24)))), 32778: _ISwspace = ((__ISwspace) < 8 ? (int) ((1UL << (__ISwspace)) << 24) : ((__ISwspace) < 16 ? (int) ((1UL << (__ISwspace)) << 8) : ((__ISwspace) < 24 ? (int) ((1UL << (__ISwspace)) >> 8) : (int) ((1UL << (__ISwspace)) >> 24)))), 32778: _ISwprint = ((__ISwprint) < 8 ? (int) ((1UL << (__ISwprint)) << 24) : ((__ISwprint) < 16 ? (int) ((1UL << (__ISwprint)) << 8) : ((__ISwprint) < 24 ? (int) ((1UL << (__ISwprint)) >> 8) : (int) ((1UL << (__ISwprint)) >> 24)))), 32778: _ISwgraph = ((__ISwgraph) < 8 ? (int) ((1UL << (__ISwgraph)) << 24) : ((__ISwgraph) < 16 ? (int) ((1UL << (__ISwgraph)) << 8) : ((__ISwgraph) < 24 ? (int) ((1UL << (__ISwgraph)) >> 8) : (int) ((1UL << (__ISwgraph)) >> 24)))), 32778: _ISwblank = ((__ISwblank) < 8 ? (int) ((1UL << (__ISwblank)) << 24) : ((__ISwblank) < 16 ? (int) ((1UL << (__ISwblank)) << 8) : ((__ISwblank) < 24 ? (int) ((1UL << (__ISwblank)) >> 8) : (int) ((1UL << (__ISwblank)) >> 24)))), 32778: _ISwcntrl = ((__ISwcntrl) < 8 ? (int) ((1UL << (__ISwcntrl)) << 24) : ((__ISwcntrl) < 16 ? (int) ((1UL << (__ISwcntrl)) << 8) : ((__ISwcntrl) < 24 ? (int) ((1UL << (__ISwcntrl)) >> 8) : (int) ((1UL << (__ISwcntrl)) >> 24)))), 32778: _ISwpunct = ((__ISwpunct) < 8 ? (int) ((1UL << (__ISwpunct)) << 24) : ((__ISwpunct) < 16 ? (int) ((1UL << (__ISwpunct)) << 8) : ((__ISwpunct) < 24 ? (int) ((1UL << (__ISwpunct)) >> 8) : (int) ((1UL << (__ISwpunct)) >> 24)))), 32778: _ISwalnum = ((__ISwalnum) < 8 ? (int) ((1UL << (__ISwalnum)) << 24) : ((__ISwalnum) < 16 ? (int) ((1UL << (__ISwalnum)) << 8) : ((__ISwalnum) < 24 ? (int) ((1UL << (__ISwalnum)) >> 8) : (int) ((1UL << (__ISwalnum)) >> 24)))) 32778: }; 32778: 32778: 32778: 32778: extern "C" { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int iswalnum (wint_t __wc) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern int iswalpha (wint_t __wc) throw (); 32778: 32778: 32778: extern int iswcntrl (wint_t __wc) throw (); 32778: 32778: 32778: 32778: extern int iswdigit (wint_t __wc) throw (); 32778: 32778: 32778: 32778: extern int iswgraph (wint_t __wc) throw (); 32778: 32778: 32778: 32778: 32778: extern int iswlower (wint_t __wc) throw (); 32778: 32778: 32778: extern int iswprint (wint_t __wc) throw (); 32778: 32778: 32778: 32778: 32778: extern int iswpunct (wint_t __wc) throw (); 32778: 32778: 32778: 32778: 32778: extern int iswspace (wint_t __wc) throw (); 32778: 32778: 32778: 32778: 32778: extern int iswupper (wint_t __wc) throw (); 32778: 32778: 32778: 32778: 32778: extern int iswxdigit (wint_t __wc) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern int iswblank (wint_t __wc) throw (); 32778: # 155 "/usr/include/riscv64-linux-gnu/bits/wctype-wchar.h" 3 4 32778: extern wctype_t wctype (const char *__property) throw (); 32778: 32778: 32778: 32778: extern int iswctype (wint_t __wc, wctype_t __desc) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern wint_t towlower (wint_t __wc) throw (); 32778: 32778: 32778: extern wint_t towupper (wint_t __wc) throw (); 32778: 32778: } 32778: # 39 "/usr/include/wctype.h" 2 3 4 32778: 32778: 32778: 32778: 32778: 32778: extern "C" { 32778: 32778: 32778: 32778: typedef const __int32_t *wctrans_t; 32778: 32778: 32778: 32778: extern wctrans_t wctrans (const char *__property) throw (); 32778: 32778: 32778: extern wint_t towctrans (wint_t __wc, wctrans_t __desc) throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern int iswalnum_l (wint_t __wc, locale_t __locale) throw (); 32778: 32778: 32778: 32778: 32778: 32778: extern int iswalpha_l (wint_t __wc, locale_t __locale) throw (); 32778: 32778: 32778: extern int iswcntrl_l (wint_t __wc, locale_t __locale) throw (); 32778: 32778: 32778: 32778: extern int iswdigit_l (wint_t __wc, locale_t __locale) throw (); 32778: 32778: 32778: 32778: extern int iswgraph_l (wint_t __wc, locale_t __locale) throw (); 32778: 32778: 32778: 32778: 32778: extern int iswlower_l (wint_t __wc, locale_t __locale) throw (); 32778: 32778: 32778: extern int iswprint_l (wint_t __wc, locale_t __locale) throw (); 32778: 32778: 32778: 32778: 32778: extern int iswpunct_l (wint_t __wc, locale_t __locale) throw (); 32778: 32778: 32778: 32778: 32778: extern int iswspace_l (wint_t __wc, locale_t __locale) throw (); 32778: 32778: 32778: 32778: 32778: extern int iswupper_l (wint_t __wc, locale_t __locale) throw (); 32778: 32778: 32778: 32778: 32778: extern int iswxdigit_l (wint_t __wc, locale_t __locale) throw (); 32778: 32778: 32778: 32778: 32778: extern int iswblank_l (wint_t __wc, locale_t __locale) throw (); 32778: 32778: 32778: 32778: extern wctype_t wctype_l (const char *__property, locale_t __locale) 32778: throw (); 32778: 32778: 32778: 32778: extern int iswctype_l (wint_t __wc, wctype_t __desc, locale_t __locale) 32778: throw (); 32778: 32778: 32778: 32778: 32778: 32778: 32778: extern wint_t towlower_l (wint_t __wc, locale_t __locale) throw (); 32778: 32778: 32778: extern wint_t towupper_l (wint_t __wc, locale_t __locale) throw (); 32778: 32778: 32778: 32778: extern wctrans_t wctrans_l (const char *__property, locale_t __locale) 32778: throw (); 32778: 32778: 32778: extern wint_t towctrans_l (wint_t __wc, wctrans_t __desc, 32778: locale_t __locale) throw (); 32778: 32778: 32778: 32778: } 32778: # 51 "/usr/include/c++/9/cwctype" 2 3 32778: # 80 "/usr/include/c++/9/cwctype" 3 32778: namespace std 32778: { 32778: using ::wctrans_t; 32778: using ::wctype_t; 32778: using ::wint_t; 32778: 32778: using ::iswalnum; 32778: using ::iswalpha; 32778: 32778: using ::iswblank; 32778: 32778: using ::iswcntrl; 32778: using ::iswctype; 32778: using ::iswdigit; 32778: using ::iswgraph; 32778: using ::iswlower; 32778: using ::iswprint; 32778: using ::iswpunct; 32778: using ::iswspace; 32778: using ::iswupper; 32778: using ::iswxdigit; 32778: using ::towctrans; 32778: using ::towlower; 32778: using ::towupper; 32778: using ::wctrans; 32778: using ::wctype; 32778: } 32778: # 40 "/usr/include/c++/9/bits/locale_facets.h" 2 3 32778: # 1 "/usr/include/c++/9/cctype" 1 3 32778: # 39 "/usr/include/c++/9/cctype" 3 32778: 32778: # 40 "/usr/include/c++/9/cctype" 3 32778: # 41 "/usr/include/c++/9/bits/locale_facets.h" 2 3 32778: # 1 "/usr/include/riscv64-linux-gnu/c++/9/bits/ctype_base.h" 1 3 32778: # 36 "/usr/include/riscv64-linux-gnu/c++/9/bits/ctype_base.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: struct ctype_base 32778: { 32778: 32778: typedef const int* __to_type; 32778: 32778: 32778: 32778: typedef unsigned short mask; 32778: static const mask upper = _ISupper; 32778: static const mask lower = _ISlower; 32778: static const mask alpha = _ISalpha; 32778: static const mask digit = _ISdigit; 32778: static const mask xdigit = _ISxdigit; 32778: static const mask space = _ISspace; 32778: static const mask print = _ISprint; 32778: static const mask graph = _ISalpha | _ISdigit | _ISpunct; 32778: static const mask cntrl = _IScntrl; 32778: static const mask punct = _ISpunct; 32778: static const mask alnum = _ISalpha | _ISdigit; 32778: 32778: static const mask blank = _ISblank; 32778: 32778: }; 32778: 32778: 32778: } 32778: # 42 "/usr/include/c++/9/bits/locale_facets.h" 2 3 32778: 32778: 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/c++/9/bits/streambuf_iterator.h" 1 3 32778: # 33 "/usr/include/c++/9/bits/streambuf_iterator.h" 3 32778: 32778: # 34 "/usr/include/c++/9/bits/streambuf_iterator.h" 3 32778: 32778: 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 49 "/usr/include/c++/9/bits/streambuf_iterator.h" 3 32778: template 32778: class istreambuf_iterator 32778: : public iterator 32778: 32778: 32778: 32778: { 32778: public: 32778: 32778: 32778: 32778: typedef _CharT char_type; 32778: typedef _Traits traits_type; 32778: typedef typename _Traits::int_type int_type; 32778: typedef basic_streambuf<_CharT, _Traits> streambuf_type; 32778: typedef basic_istream<_CharT, _Traits> istream_type; 32778: 32778: 32778: template 32778: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 32778: ostreambuf_iterator<_CharT2> >::__type 32778: copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 32778: ostreambuf_iterator<_CharT2>); 32778: 32778: template 32778: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 32778: _CharT2*>::__type 32778: __copy_move_a2(istreambuf_iterator<_CharT2>, 32778: istreambuf_iterator<_CharT2>, _CharT2*); 32778: 32778: template 32778: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 32778: istreambuf_iterator<_CharT2> >::__type 32778: find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 32778: const _CharT2&); 32778: 32778: template 32778: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 32778: void>::__type 32778: advance(istreambuf_iterator<_CharT2>&, _Distance); 32778: 32778: private: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: mutable streambuf_type* _M_sbuf; 32778: int_type _M_c; 32778: 32778: public: 32778: 32778: constexpr istreambuf_iterator() noexcept 32778: : _M_sbuf(0), _M_c(traits_type::eof()) { } 32778: 32778: 32778: istreambuf_iterator(const istreambuf_iterator&) noexcept = default; 32778: 32778: ~istreambuf_iterator() = default; 32778: 32778: 32778: 32778: istreambuf_iterator(istream_type& __s) noexcept 32778: : _M_sbuf(__s.rdbuf()), _M_c(traits_type::eof()) { } 32778: 32778: 32778: istreambuf_iterator(streambuf_type* __s) noexcept 32778: : _M_sbuf(__s), _M_c(traits_type::eof()) { } 32778: 32778: 32778: istreambuf_iterator& 32778: operator=(const istreambuf_iterator&) noexcept = default; 32778: 32778: 32778: 32778: 32778: 32778: char_type 32778: operator*() const 32778: { 32778: int_type __c = _M_get(); 32778: # 144 "/usr/include/c++/9/bits/streambuf_iterator.h" 3 32778: return traits_type::to_char_type(__c); 32778: } 32778: 32778: 32778: istreambuf_iterator& 32778: operator++() 32778: { 32778: 32778: 32778: 32778: ; 32778: 32778: _M_sbuf->sbumpc(); 32778: _M_c = traits_type::eof(); 32778: return *this; 32778: } 32778: 32778: 32778: istreambuf_iterator 32778: operator++(int) 32778: { 32778: 32778: 32778: 32778: ; 32778: 32778: istreambuf_iterator __old = *this; 32778: __old._M_c = _M_sbuf->sbumpc(); 32778: _M_c = traits_type::eof(); 32778: return __old; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: bool 32778: equal(const istreambuf_iterator& __b) const 32778: { return _M_at_eof() == __b._M_at_eof(); } 32778: 32778: private: 32778: int_type 32778: _M_get() const 32778: { 32778: int_type __ret = _M_c; 32778: if (_M_sbuf && _S_is_eof(__ret) && _S_is_eof(__ret = _M_sbuf->sgetc())) 32778: _M_sbuf = 0; 32778: return __ret; 32778: } 32778: 32778: bool 32778: _M_at_eof() const 32778: { return _S_is_eof(_M_get()); } 32778: 32778: static bool 32778: _S_is_eof(int_type __c) 32778: { 32778: const int_type __eof = traits_type::eof(); 32778: return traits_type::eq_int_type(__c, __eof); 32778: } 32778: }; 32778: 32778: template 32778: inline bool 32778: operator==(const istreambuf_iterator<_CharT, _Traits>& __a, 32778: const istreambuf_iterator<_CharT, _Traits>& __b) 32778: { return __a.equal(__b); } 32778: 32778: template 32778: inline bool 32778: operator!=(const istreambuf_iterator<_CharT, _Traits>& __a, 32778: const istreambuf_iterator<_CharT, _Traits>& __b) 32778: { return !__a.equal(__b); } 32778: 32778: 32778: template 32778: class ostreambuf_iterator 32778: : public iterator 32778: { 32778: public: 32778: 32778: 32778: 32778: typedef _CharT char_type; 32778: typedef _Traits traits_type; 32778: typedef basic_streambuf<_CharT, _Traits> streambuf_type; 32778: typedef basic_ostream<_CharT, _Traits> ostream_type; 32778: 32778: 32778: template 32778: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 32778: ostreambuf_iterator<_CharT2> >::__type 32778: copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 32778: ostreambuf_iterator<_CharT2>); 32778: 32778: private: 32778: streambuf_type* _M_sbuf; 32778: bool _M_failed; 32778: 32778: public: 32778: 32778: ostreambuf_iterator(ostream_type& __s) noexcept 32778: : _M_sbuf(__s.rdbuf()), _M_failed(!_M_sbuf) { } 32778: 32778: 32778: ostreambuf_iterator(streambuf_type* __s) noexcept 32778: : _M_sbuf(__s), _M_failed(!_M_sbuf) { } 32778: 32778: 32778: ostreambuf_iterator& 32778: operator=(_CharT __c) 32778: { 32778: if (!_M_failed && 32778: _Traits::eq_int_type(_M_sbuf->sputc(__c), _Traits::eof())) 32778: _M_failed = true; 32778: return *this; 32778: } 32778: 32778: 32778: ostreambuf_iterator& 32778: operator*() 32778: { return *this; } 32778: 32778: 32778: ostreambuf_iterator& 32778: operator++(int) 32778: { return *this; } 32778: 32778: 32778: ostreambuf_iterator& 32778: operator++() 32778: { return *this; } 32778: 32778: 32778: bool 32778: failed() const noexcept 32778: { return _M_failed; } 32778: 32778: ostreambuf_iterator& 32778: _M_put(const _CharT* __ws, streamsize __len) 32778: { 32778: if (__builtin_expect(!_M_failed, true) 32778: && __builtin_expect(this->_M_sbuf->sputn(__ws, __len) != __len, 32778: false)) 32778: _M_failed = true; 32778: return *this; 32778: } 32778: }; 32778: 32778: 32778: template 32778: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 32778: ostreambuf_iterator<_CharT> >::__type 32778: copy(istreambuf_iterator<_CharT> __first, 32778: istreambuf_iterator<_CharT> __last, 32778: ostreambuf_iterator<_CharT> __result) 32778: { 32778: if (__first._M_sbuf && !__last._M_sbuf && !__result._M_failed) 32778: { 32778: bool __ineof; 32778: __copy_streambufs_eof(__first._M_sbuf, __result._M_sbuf, __ineof); 32778: if (!__ineof) 32778: __result._M_failed = true; 32778: } 32778: return __result; 32778: } 32778: 32778: template 32778: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 32778: ostreambuf_iterator<_CharT> >::__type 32778: __copy_move_a2(_CharT* __first, _CharT* __last, 32778: ostreambuf_iterator<_CharT> __result) 32778: { 32778: const streamsize __num = __last - __first; 32778: if (__num > 0) 32778: __result._M_put(__first, __num); 32778: return __result; 32778: } 32778: 32778: template 32778: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 32778: ostreambuf_iterator<_CharT> >::__type 32778: __copy_move_a2(const _CharT* __first, const _CharT* __last, 32778: ostreambuf_iterator<_CharT> __result) 32778: { 32778: const streamsize __num = __last - __first; 32778: if (__num > 0) 32778: __result._M_put(__first, __num); 32778: return __result; 32778: } 32778: 32778: template 32778: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 32778: _CharT*>::__type 32778: __copy_move_a2(istreambuf_iterator<_CharT> __first, 32778: istreambuf_iterator<_CharT> __last, _CharT* __result) 32778: { 32778: typedef istreambuf_iterator<_CharT> __is_iterator_type; 32778: typedef typename __is_iterator_type::traits_type traits_type; 32778: typedef typename __is_iterator_type::streambuf_type streambuf_type; 32778: typedef typename traits_type::int_type int_type; 32778: 32778: if (__first._M_sbuf && !__last._M_sbuf) 32778: { 32778: streambuf_type* __sb = __first._M_sbuf; 32778: int_type __c = __sb->sgetc(); 32778: while (!traits_type::eq_int_type(__c, traits_type::eof())) 32778: { 32778: const streamsize __n = __sb->egptr() - __sb->gptr(); 32778: if (__n > 1) 32778: { 32778: traits_type::copy(__result, __sb->gptr(), __n); 32778: __sb->__safe_gbump(__n); 32778: __result += __n; 32778: __c = __sb->underflow(); 32778: } 32778: else 32778: { 32778: *__result++ = traits_type::to_char_type(__c); 32778: __c = __sb->snextc(); 32778: } 32778: } 32778: } 32778: return __result; 32778: } 32778: 32778: template 32778: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 32778: istreambuf_iterator<_CharT> >::__type 32778: find(istreambuf_iterator<_CharT> __first, 32778: istreambuf_iterator<_CharT> __last, const _CharT& __val) 32778: { 32778: typedef istreambuf_iterator<_CharT> __is_iterator_type; 32778: typedef typename __is_iterator_type::traits_type traits_type; 32778: typedef typename __is_iterator_type::streambuf_type streambuf_type; 32778: typedef typename traits_type::int_type int_type; 32778: const int_type __eof = traits_type::eof(); 32778: 32778: if (__first._M_sbuf && !__last._M_sbuf) 32778: { 32778: const int_type __ival = traits_type::to_int_type(__val); 32778: streambuf_type* __sb = __first._M_sbuf; 32778: int_type __c = __sb->sgetc(); 32778: while (!traits_type::eq_int_type(__c, __eof) 32778: && !traits_type::eq_int_type(__c, __ival)) 32778: { 32778: streamsize __n = __sb->egptr() - __sb->gptr(); 32778: if (__n > 1) 32778: { 32778: const _CharT* __p = traits_type::find(__sb->gptr(), 32778: __n, __val); 32778: if (__p) 32778: __n = __p - __sb->gptr(); 32778: __sb->__safe_gbump(__n); 32778: __c = __sb->sgetc(); 32778: } 32778: else 32778: __c = __sb->snextc(); 32778: } 32778: 32778: __first._M_c = __eof; 32778: } 32778: 32778: return __first; 32778: } 32778: 32778: template 32778: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 32778: void>::__type 32778: advance(istreambuf_iterator<_CharT>& __i, _Distance __n) 32778: { 32778: if (__n == 0) 32778: return; 32778: 32778: ; 32778: 32778: 32778: ; 32778: 32778: typedef istreambuf_iterator<_CharT> __is_iterator_type; 32778: typedef typename __is_iterator_type::traits_type traits_type; 32778: typedef typename __is_iterator_type::streambuf_type streambuf_type; 32778: typedef typename traits_type::int_type int_type; 32778: const int_type __eof = traits_type::eof(); 32778: 32778: streambuf_type* __sb = __i._M_sbuf; 32778: while (__n > 0) 32778: { 32778: streamsize __size = __sb->egptr() - __sb->gptr(); 32778: if (__size > __n) 32778: { 32778: __sb->__safe_gbump(__n); 32778: break; 32778: } 32778: 32778: __sb->__safe_gbump(__size); 32778: __n -= __size; 32778: if (traits_type::eq_int_type(__sb->underflow(), __eof)) 32778: { 32778: 32778: 32778: ; 32778: break; 32778: } 32778: } 32778: 32778: __i._M_c = __eof; 32778: } 32778: 32778: 32778: 32778: 32778: } 32778: # 49 "/usr/include/c++/9/bits/locale_facets.h" 2 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 71 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: template 32778: void 32778: __convert_to_v(const char*, _Tp&, ios_base::iostate&, 32778: const __c_locale&) throw(); 32778: 32778: 32778: template<> 32778: void 32778: __convert_to_v(const char*, float&, ios_base::iostate&, 32778: const __c_locale&) throw(); 32778: 32778: template<> 32778: void 32778: __convert_to_v(const char*, double&, ios_base::iostate&, 32778: const __c_locale&) throw(); 32778: 32778: template<> 32778: void 32778: __convert_to_v(const char*, long double&, ios_base::iostate&, 32778: const __c_locale&) throw(); 32778: 32778: 32778: 32778: template 32778: struct __pad 32778: { 32778: static void 32778: _S_pad(ios_base& __io, _CharT __fill, _CharT* __news, 32778: const _CharT* __olds, streamsize __newlen, streamsize __oldlen); 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: _CharT* 32778: __add_grouping(_CharT* __s, _CharT __sep, 32778: const char* __gbeg, size_t __gsize, 32778: const _CharT* __first, const _CharT* __last); 32778: 32778: 32778: 32778: 32778: template 32778: inline 32778: ostreambuf_iterator<_CharT> 32778: __write(ostreambuf_iterator<_CharT> __s, const _CharT* __ws, int __len) 32778: { 32778: __s._M_put(__ws, __len); 32778: return __s; 32778: } 32778: 32778: 32778: template 32778: inline 32778: _OutIter 32778: __write(_OutIter __s, const _CharT* __ws, int __len) 32778: { 32778: for (int __j = 0; __j < __len; __j++, ++__s) 32778: *__s = __ws[__j]; 32778: return __s; 32778: } 32778: # 149 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: template 32778: class __ctype_abstract_base : public locale::facet, public ctype_base 32778: { 32778: public: 32778: 32778: 32778: typedef _CharT char_type; 32778: # 168 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: bool 32778: is(mask __m, char_type __c) const 32778: { return this->do_is(__m, __c); } 32778: # 185 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: const char_type* 32778: is(const char_type *__lo, const char_type *__hi, mask *__vec) const 32778: { return this->do_is(__lo, __hi, __vec); } 32778: # 201 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: const char_type* 32778: scan_is(mask __m, const char_type* __lo, const char_type* __hi) const 32778: { return this->do_scan_is(__m, __lo, __hi); } 32778: # 217 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: const char_type* 32778: scan_not(mask __m, const char_type* __lo, const char_type* __hi) const 32778: { return this->do_scan_not(__m, __lo, __hi); } 32778: # 231 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: char_type 32778: toupper(char_type __c) const 32778: { return this->do_toupper(__c); } 32778: # 246 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: const char_type* 32778: toupper(char_type *__lo, const char_type* __hi) const 32778: { return this->do_toupper(__lo, __hi); } 32778: # 260 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: char_type 32778: tolower(char_type __c) const 32778: { return this->do_tolower(__c); } 32778: # 275 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: const char_type* 32778: tolower(char_type* __lo, const char_type* __hi) const 32778: { return this->do_tolower(__lo, __hi); } 32778: # 292 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: char_type 32778: widen(char __c) const 32778: { return this->do_widen(__c); } 32778: # 311 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: const char* 32778: widen(const char* __lo, const char* __hi, char_type* __to) const 32778: { return this->do_widen(__lo, __hi, __to); } 32778: # 330 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: char 32778: narrow(char_type __c, char __dfault) const 32778: { return this->do_narrow(__c, __dfault); } 32778: # 352 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: const char_type* 32778: narrow(const char_type* __lo, const char_type* __hi, 32778: char __dfault, char* __to) const 32778: { return this->do_narrow(__lo, __hi, __dfault, __to); } 32778: 32778: protected: 32778: explicit 32778: __ctype_abstract_base(size_t __refs = 0): facet(__refs) { } 32778: 32778: virtual 32778: ~__ctype_abstract_base() { } 32778: # 377 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual bool 32778: do_is(mask __m, char_type __c) const = 0; 32778: # 396 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual const char_type* 32778: do_is(const char_type* __lo, const char_type* __hi, 32778: mask* __vec) const = 0; 32778: # 415 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual const char_type* 32778: do_scan_is(mask __m, const char_type* __lo, 32778: const char_type* __hi) const = 0; 32778: # 434 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual const char_type* 32778: do_scan_not(mask __m, const char_type* __lo, 32778: const char_type* __hi) const = 0; 32778: # 452 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual char_type 32778: do_toupper(char_type __c) const = 0; 32778: # 469 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual const char_type* 32778: do_toupper(char_type* __lo, const char_type* __hi) const = 0; 32778: # 485 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual char_type 32778: do_tolower(char_type __c) const = 0; 32778: # 502 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual const char_type* 32778: do_tolower(char_type* __lo, const char_type* __hi) const = 0; 32778: # 521 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual char_type 32778: do_widen(char __c) const = 0; 32778: # 542 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual const char* 32778: do_widen(const char* __lo, const char* __hi, char_type* __to) const = 0; 32778: # 563 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual char 32778: do_narrow(char_type __c, char __dfault) const = 0; 32778: # 588 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual const char_type* 32778: do_narrow(const char_type* __lo, const char_type* __hi, 32778: char __dfault, char* __to) const = 0; 32778: }; 32778: # 611 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: template 32778: class ctype : public __ctype_abstract_base<_CharT> 32778: { 32778: public: 32778: 32778: typedef _CharT char_type; 32778: typedef typename __ctype_abstract_base<_CharT>::mask mask; 32778: 32778: 32778: static locale::id id; 32778: 32778: explicit 32778: ctype(size_t __refs = 0) : __ctype_abstract_base<_CharT>(__refs) { } 32778: 32778: protected: 32778: virtual 32778: ~ctype(); 32778: 32778: virtual bool 32778: do_is(mask __m, char_type __c) const; 32778: 32778: virtual const char_type* 32778: do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; 32778: 32778: virtual const char_type* 32778: do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; 32778: 32778: virtual const char_type* 32778: do_scan_not(mask __m, const char_type* __lo, 32778: const char_type* __hi) const; 32778: 32778: virtual char_type 32778: do_toupper(char_type __c) const; 32778: 32778: virtual const char_type* 32778: do_toupper(char_type* __lo, const char_type* __hi) const; 32778: 32778: virtual char_type 32778: do_tolower(char_type __c) const; 32778: 32778: virtual const char_type* 32778: do_tolower(char_type* __lo, const char_type* __hi) const; 32778: 32778: virtual char_type 32778: do_widen(char __c) const; 32778: 32778: virtual const char* 32778: do_widen(const char* __lo, const char* __hi, char_type* __dest) const; 32778: 32778: virtual char 32778: do_narrow(char_type, char __dfault) const; 32778: 32778: virtual const char_type* 32778: do_narrow(const char_type* __lo, const char_type* __hi, 32778: char __dfault, char* __to) const; 32778: }; 32778: 32778: template 32778: locale::id ctype<_CharT>::id; 32778: # 680 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: template<> 32778: class ctype : public locale::facet, public ctype_base 32778: { 32778: public: 32778: 32778: 32778: typedef char char_type; 32778: 32778: protected: 32778: 32778: __c_locale _M_c_locale_ctype; 32778: bool _M_del; 32778: __to_type _M_toupper; 32778: __to_type _M_tolower; 32778: const mask* _M_table; 32778: mutable char _M_widen_ok; 32778: mutable char _M_widen[1 + static_cast(-1)]; 32778: mutable char _M_narrow[1 + static_cast(-1)]; 32778: mutable char _M_narrow_ok; 32778: 32778: 32778: public: 32778: 32778: static locale::id id; 32778: 32778: static const size_t table_size = 1 + static_cast(-1); 32778: # 717 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: explicit 32778: ctype(const mask* __table = 0, bool __del = false, size_t __refs = 0); 32778: # 730 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: explicit 32778: ctype(__c_locale __cloc, const mask* __table = 0, bool __del = false, 32778: size_t __refs = 0); 32778: # 743 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: inline bool 32778: is(mask __m, char __c) const; 32778: # 758 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: inline const char* 32778: is(const char* __lo, const char* __hi, mask* __vec) const; 32778: # 772 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: inline const char* 32778: scan_is(mask __m, const char* __lo, const char* __hi) const; 32778: # 786 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: inline const char* 32778: scan_not(mask __m, const char* __lo, const char* __hi) const; 32778: # 801 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: char_type 32778: toupper(char_type __c) const 32778: { return this->do_toupper(__c); } 32778: # 818 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: const char_type* 32778: toupper(char_type *__lo, const char_type* __hi) const 32778: { return this->do_toupper(__lo, __hi); } 32778: # 834 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: char_type 32778: tolower(char_type __c) const 32778: { return this->do_tolower(__c); } 32778: # 851 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: const char_type* 32778: tolower(char_type* __lo, const char_type* __hi) const 32778: { return this->do_tolower(__lo, __hi); } 32778: # 871 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: char_type 32778: widen(char __c) const 32778: { 32778: if (_M_widen_ok) 32778: return _M_widen[static_cast(__c)]; 32778: this->_M_widen_init(); 32778: return this->do_widen(__c); 32778: } 32778: # 898 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: const char* 32778: widen(const char* __lo, const char* __hi, char_type* __to) const 32778: { 32778: if (_M_widen_ok == 1) 32778: { 32778: if (__builtin_expect(__hi != __lo, true)) 32778: __builtin_memcpy(__to, __lo, __hi - __lo); 32778: return __hi; 32778: } 32778: if (!_M_widen_ok) 32778: _M_widen_init(); 32778: return this->do_widen(__lo, __hi, __to); 32778: } 32778: # 930 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: char 32778: narrow(char_type __c, char __dfault) const 32778: { 32778: if (_M_narrow[static_cast(__c)]) 32778: return _M_narrow[static_cast(__c)]; 32778: const char __t = do_narrow(__c, __dfault); 32778: if (__t != __dfault) 32778: _M_narrow[static_cast(__c)] = __t; 32778: return __t; 32778: } 32778: # 963 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: const char_type* 32778: narrow(const char_type* __lo, const char_type* __hi, 32778: char __dfault, char* __to) const 32778: { 32778: if (__builtin_expect(_M_narrow_ok == 1, true)) 32778: { 32778: if (__builtin_expect(__hi != __lo, true)) 32778: __builtin_memcpy(__to, __lo, __hi - __lo); 32778: return __hi; 32778: } 32778: if (!_M_narrow_ok) 32778: _M_narrow_init(); 32778: return this->do_narrow(__lo, __hi, __dfault, __to); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: const mask* 32778: table() const throw() 32778: { return _M_table; } 32778: 32778: 32778: static const mask* 32778: classic_table() throw(); 32778: protected: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: virtual 32778: ~ctype(); 32778: # 1013 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual char_type 32778: do_toupper(char_type __c) const; 32778: # 1030 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual const char_type* 32778: do_toupper(char_type* __lo, const char_type* __hi) const; 32778: # 1046 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual char_type 32778: do_tolower(char_type __c) const; 32778: # 1063 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual const char_type* 32778: do_tolower(char_type* __lo, const char_type* __hi) const; 32778: # 1083 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual char_type 32778: do_widen(char __c) const 32778: { return __c; } 32778: # 1106 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual const char* 32778: do_widen(const char* __lo, const char* __hi, char_type* __to) const 32778: { 32778: if (__builtin_expect(__hi != __lo, true)) 32778: __builtin_memcpy(__to, __lo, __hi - __lo); 32778: return __hi; 32778: } 32778: # 1133 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual char 32778: do_narrow(char_type __c, char __dfault __attribute__((__unused__))) const 32778: { return __c; } 32778: # 1159 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual const char_type* 32778: do_narrow(const char_type* __lo, const char_type* __hi, 32778: char __dfault __attribute__((__unused__)), char* __to) const 32778: { 32778: if (__builtin_expect(__hi != __lo, true)) 32778: __builtin_memcpy(__to, __lo, __hi - __lo); 32778: return __hi; 32778: } 32778: 32778: private: 32778: void _M_narrow_init() const; 32778: void _M_widen_init() const; 32778: }; 32778: # 1185 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: template<> 32778: class ctype : public __ctype_abstract_base 32778: { 32778: public: 32778: 32778: 32778: typedef wchar_t char_type; 32778: typedef wctype_t __wmask_type; 32778: 32778: protected: 32778: __c_locale _M_c_locale_ctype; 32778: 32778: 32778: bool _M_narrow_ok; 32778: char _M_narrow[128]; 32778: wint_t _M_widen[1 + static_cast(-1)]; 32778: 32778: 32778: mask _M_bit[16]; 32778: __wmask_type _M_wmask[16]; 32778: 32778: public: 32778: 32778: 32778: static locale::id id; 32778: # 1218 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: explicit 32778: ctype(size_t __refs = 0); 32778: # 1229 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: explicit 32778: ctype(__c_locale __cloc, size_t __refs = 0); 32778: 32778: protected: 32778: __wmask_type 32778: _M_convert_to_wmask(const mask __m) const throw(); 32778: 32778: 32778: virtual 32778: ~ctype(); 32778: # 1253 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual bool 32778: do_is(mask __m, char_type __c) const; 32778: # 1272 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual const char_type* 32778: do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; 32778: # 1290 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual const char_type* 32778: do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; 32778: # 1308 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual const char_type* 32778: do_scan_not(mask __m, const char_type* __lo, 32778: const char_type* __hi) const; 32778: # 1325 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual char_type 32778: do_toupper(char_type __c) const; 32778: # 1342 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual const char_type* 32778: do_toupper(char_type* __lo, const char_type* __hi) const; 32778: # 1358 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual char_type 32778: do_tolower(char_type __c) const; 32778: # 1375 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual const char_type* 32778: do_tolower(char_type* __lo, const char_type* __hi) const; 32778: # 1395 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual char_type 32778: do_widen(char __c) const; 32778: # 1417 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual const char* 32778: do_widen(const char* __lo, const char* __hi, char_type* __to) const; 32778: # 1440 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual char 32778: do_narrow(char_type __c, char __dfault) const; 32778: # 1466 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual const char_type* 32778: do_narrow(const char_type* __lo, const char_type* __hi, 32778: char __dfault, char* __to) const; 32778: 32778: 32778: void 32778: _M_initialize_ctype() throw(); 32778: }; 32778: 32778: 32778: 32778: template 32778: class ctype_byname : public ctype<_CharT> 32778: { 32778: public: 32778: typedef typename ctype<_CharT>::mask mask; 32778: 32778: explicit 32778: ctype_byname(const char* __s, size_t __refs = 0); 32778: 32778: 32778: explicit 32778: ctype_byname(const string& __s, size_t __refs = 0) 32778: : ctype_byname(__s.c_str(), __refs) { } 32778: 32778: 32778: protected: 32778: virtual 32778: ~ctype_byname() { } 32778: }; 32778: 32778: 32778: template<> 32778: class ctype_byname : public ctype 32778: { 32778: public: 32778: explicit 32778: ctype_byname(const char* __s, size_t __refs = 0); 32778: 32778: 32778: explicit 32778: ctype_byname(const string& __s, size_t __refs = 0); 32778: 32778: 32778: protected: 32778: virtual 32778: ~ctype_byname(); 32778: }; 32778: 32778: 32778: template<> 32778: class ctype_byname : public ctype 32778: { 32778: public: 32778: explicit 32778: ctype_byname(const char* __s, size_t __refs = 0); 32778: 32778: 32778: explicit 32778: ctype_byname(const string& __s, size_t __refs = 0); 32778: 32778: 32778: protected: 32778: virtual 32778: ~ctype_byname(); 32778: }; 32778: 32778: 32778: 32778: } 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/c++/9/bits/ctype_inline.h" 1 3 32778: # 37 "/usr/include/riscv64-linux-gnu/c++/9/bits/ctype_inline.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: bool 32778: ctype:: 32778: is(mask __m, char __c) const 32778: { return _M_table[static_cast(__c)] & __m; } 32778: 32778: const char* 32778: ctype:: 32778: is(const char* __low, const char* __high, mask* __vec) const 32778: { 32778: while (__low < __high) 32778: *__vec++ = _M_table[static_cast(*__low++)]; 32778: return __high; 32778: } 32778: 32778: const char* 32778: ctype:: 32778: scan_is(mask __m, const char* __low, const char* __high) const 32778: { 32778: while (__low < __high 32778: && !(_M_table[static_cast(*__low)] & __m)) 32778: ++__low; 32778: return __low; 32778: } 32778: 32778: const char* 32778: ctype:: 32778: scan_not(mask __m, const char* __low, const char* __high) const 32778: { 32778: while (__low < __high 32778: && (_M_table[static_cast(*__low)] & __m) != 0) 32778: ++__low; 32778: return __low; 32778: } 32778: 32778: 32778: } 32778: # 1539 "/usr/include/c++/9/bits/locale_facets.h" 2 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: class __num_base 32778: { 32778: public: 32778: 32778: 32778: enum 32778: { 32778: _S_ominus, 32778: _S_oplus, 32778: _S_ox, 32778: _S_oX, 32778: _S_odigits, 32778: _S_odigits_end = _S_odigits + 16, 32778: _S_oudigits = _S_odigits_end, 32778: _S_oudigits_end = _S_oudigits + 16, 32778: _S_oe = _S_odigits + 14, 32778: _S_oE = _S_oudigits + 14, 32778: _S_oend = _S_oudigits_end 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: static const char* _S_atoms_out; 32778: 32778: 32778: 32778: static const char* _S_atoms_in; 32778: 32778: enum 32778: { 32778: _S_iminus, 32778: _S_iplus, 32778: _S_ix, 32778: _S_iX, 32778: _S_izero, 32778: _S_ie = _S_izero + 14, 32778: _S_iE = _S_izero + 20, 32778: _S_iend = 26 32778: }; 32778: 32778: 32778: 32778: static void 32778: _S_format_float(const ios_base& __io, char* __fptr, char __mod) throw(); 32778: }; 32778: 32778: template 32778: struct __numpunct_cache : public locale::facet 32778: { 32778: const char* _M_grouping; 32778: size_t _M_grouping_size; 32778: bool _M_use_grouping; 32778: const _CharT* _M_truename; 32778: size_t _M_truename_size; 32778: const _CharT* _M_falsename; 32778: size_t _M_falsename_size; 32778: _CharT _M_decimal_point; 32778: _CharT _M_thousands_sep; 32778: 32778: 32778: 32778: 32778: 32778: _CharT _M_atoms_out[__num_base::_S_oend]; 32778: 32778: 32778: 32778: 32778: 32778: _CharT _M_atoms_in[__num_base::_S_iend]; 32778: 32778: bool _M_allocated; 32778: 32778: __numpunct_cache(size_t __refs = 0) 32778: : facet(__refs), _M_grouping(0), _M_grouping_size(0), 32778: _M_use_grouping(false), 32778: _M_truename(0), _M_truename_size(0), _M_falsename(0), 32778: _M_falsename_size(0), _M_decimal_point(_CharT()), 32778: _M_thousands_sep(_CharT()), _M_allocated(false) 32778: { } 32778: 32778: ~__numpunct_cache(); 32778: 32778: void 32778: _M_cache(const locale& __loc); 32778: 32778: private: 32778: __numpunct_cache& 32778: operator=(const __numpunct_cache&); 32778: 32778: explicit 32778: __numpunct_cache(const __numpunct_cache&); 32778: }; 32778: 32778: template 32778: __numpunct_cache<_CharT>::~__numpunct_cache() 32778: { 32778: if (_M_allocated) 32778: { 32778: delete [] _M_grouping; 32778: delete [] _M_truename; 32778: delete [] _M_falsename; 32778: } 32778: } 32778: 32778: namespace __cxx11 { 32778: # 1669 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: template 32778: class numpunct : public locale::facet 32778: { 32778: public: 32778: 32778: 32778: 32778: typedef _CharT char_type; 32778: typedef basic_string<_CharT> string_type; 32778: 32778: typedef __numpunct_cache<_CharT> __cache_type; 32778: 32778: protected: 32778: __cache_type* _M_data; 32778: 32778: public: 32778: 32778: static locale::id id; 32778: 32778: 32778: 32778: 32778: 32778: 32778: explicit 32778: numpunct(size_t __refs = 0) 32778: : facet(__refs), _M_data(0) 32778: { _M_initialize_numpunct(); } 32778: # 1707 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: explicit 32778: numpunct(__cache_type* __cache, size_t __refs = 0) 32778: : facet(__refs), _M_data(__cache) 32778: { _M_initialize_numpunct(); } 32778: # 1721 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: explicit 32778: numpunct(__c_locale __cloc, size_t __refs = 0) 32778: : facet(__refs), _M_data(0) 32778: { _M_initialize_numpunct(__cloc); } 32778: # 1735 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: char_type 32778: decimal_point() const 32778: { return this->do_decimal_point(); } 32778: # 1748 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: char_type 32778: thousands_sep() const 32778: { return this->do_thousands_sep(); } 32778: # 1779 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: string 32778: grouping() const 32778: { return this->do_grouping(); } 32778: # 1792 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: string_type 32778: truename() const 32778: { return this->do_truename(); } 32778: # 1805 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: string_type 32778: falsename() const 32778: { return this->do_falsename(); } 32778: 32778: protected: 32778: 32778: virtual 32778: ~numpunct(); 32778: # 1822 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual char_type 32778: do_decimal_point() const 32778: { return _M_data->_M_decimal_point; } 32778: # 1834 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual char_type 32778: do_thousands_sep() const 32778: { return _M_data->_M_thousands_sep; } 32778: # 1847 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual string 32778: do_grouping() const 32778: { return _M_data->_M_grouping; } 32778: # 1860 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual string_type 32778: do_truename() const 32778: { return _M_data->_M_truename; } 32778: # 1873 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual string_type 32778: do_falsename() const 32778: { return _M_data->_M_falsename; } 32778: 32778: 32778: void 32778: _M_initialize_numpunct(__c_locale __cloc = 0); 32778: }; 32778: 32778: template 32778: locale::id numpunct<_CharT>::id; 32778: 32778: template<> 32778: numpunct::~numpunct(); 32778: 32778: template<> 32778: void 32778: numpunct::_M_initialize_numpunct(__c_locale __cloc); 32778: 32778: 32778: template<> 32778: numpunct::~numpunct(); 32778: 32778: template<> 32778: void 32778: numpunct::_M_initialize_numpunct(__c_locale __cloc); 32778: 32778: 32778: 32778: template 32778: class numpunct_byname : public numpunct<_CharT> 32778: { 32778: public: 32778: typedef _CharT char_type; 32778: typedef basic_string<_CharT> string_type; 32778: 32778: explicit 32778: numpunct_byname(const char* __s, size_t __refs = 0) 32778: : numpunct<_CharT>(__refs) 32778: { 32778: if (__builtin_strcmp(__s, "C") != 0 32778: && __builtin_strcmp(__s, "POSIX") != 0) 32778: { 32778: __c_locale __tmp; 32778: this->_S_create_c_locale(__tmp, __s); 32778: this->_M_initialize_numpunct(__tmp); 32778: this->_S_destroy_c_locale(__tmp); 32778: } 32778: } 32778: 32778: 32778: explicit 32778: numpunct_byname(const string& __s, size_t __refs = 0) 32778: : numpunct_byname(__s.c_str(), __refs) { } 32778: 32778: 32778: protected: 32778: virtual 32778: ~numpunct_byname() { } 32778: }; 32778: 32778: } 32778: 32778: 32778: # 1951 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: template 32778: class num_get : public locale::facet 32778: { 32778: public: 32778: 32778: 32778: 32778: typedef _CharT char_type; 32778: typedef _InIter iter_type; 32778: 32778: 32778: 32778: static locale::id id; 32778: # 1972 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: explicit 32778: num_get(size_t __refs = 0) : facet(__refs) { } 32778: # 1998 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: iter_type 32778: get(iter_type __in, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, bool& __v) const 32778: { return this->do_get(__in, __end, __io, __err, __v); } 32778: # 2035 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: iter_type 32778: get(iter_type __in, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, long& __v) const 32778: { return this->do_get(__in, __end, __io, __err, __v); } 32778: 32778: iter_type 32778: get(iter_type __in, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, unsigned short& __v) const 32778: { return this->do_get(__in, __end, __io, __err, __v); } 32778: 32778: iter_type 32778: get(iter_type __in, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, unsigned int& __v) const 32778: { return this->do_get(__in, __end, __io, __err, __v); } 32778: 32778: iter_type 32778: get(iter_type __in, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, unsigned long& __v) const 32778: { return this->do_get(__in, __end, __io, __err, __v); } 32778: 32778: 32778: iter_type 32778: get(iter_type __in, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, long long& __v) const 32778: { return this->do_get(__in, __end, __io, __err, __v); } 32778: 32778: iter_type 32778: get(iter_type __in, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, unsigned long long& __v) const 32778: { return this->do_get(__in, __end, __io, __err, __v); } 32778: # 2095 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: iter_type 32778: get(iter_type __in, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, float& __v) const 32778: { return this->do_get(__in, __end, __io, __err, __v); } 32778: 32778: iter_type 32778: get(iter_type __in, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, double& __v) const 32778: { return this->do_get(__in, __end, __io, __err, __v); } 32778: 32778: iter_type 32778: get(iter_type __in, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, long double& __v) const 32778: { return this->do_get(__in, __end, __io, __err, __v); } 32778: # 2138 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: iter_type 32778: get(iter_type __in, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, void*& __v) const 32778: { return this->do_get(__in, __end, __io, __err, __v); } 32778: 32778: protected: 32778: 32778: virtual ~num_get() { } 32778: 32778: __attribute ((__abi_tag__ ("cxx11"))) 32778: iter_type 32778: _M_extract_float(iter_type, iter_type, ios_base&, ios_base::iostate&, 32778: string&) const; 32778: 32778: template 32778: __attribute ((__abi_tag__ ("cxx11"))) 32778: iter_type 32778: _M_extract_int(iter_type, iter_type, ios_base&, ios_base::iostate&, 32778: _ValueT&) const; 32778: 32778: template 32778: typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, int>::__type 32778: _M_find(const _CharT2*, size_t __len, _CharT2 __c) const 32778: { 32778: int __ret = -1; 32778: if (__len <= 10) 32778: { 32778: if (__c >= _CharT2('0') && __c < _CharT2(_CharT2('0') + __len)) 32778: __ret = __c - _CharT2('0'); 32778: } 32778: else 32778: { 32778: if (__c >= _CharT2('0') && __c <= _CharT2('9')) 32778: __ret = __c - _CharT2('0'); 32778: else if (__c >= _CharT2('a') && __c <= _CharT2('f')) 32778: __ret = 10 + (__c - _CharT2('a')); 32778: else if (__c >= _CharT2('A') && __c <= _CharT2('F')) 32778: __ret = 10 + (__c - _CharT2('A')); 32778: } 32778: return __ret; 32778: } 32778: 32778: template 32778: typename __gnu_cxx::__enable_if::__value, 32778: int>::__type 32778: _M_find(const _CharT2* __zero, size_t __len, _CharT2 __c) const 32778: { 32778: int __ret = -1; 32778: const char_type* __q = char_traits<_CharT2>::find(__zero, __len, __c); 32778: if (__q) 32778: { 32778: __ret = __q - __zero; 32778: if (__ret > 15) 32778: __ret -= 6; 32778: } 32778: return __ret; 32778: } 32778: # 2211 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual iter_type 32778: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, bool&) const; 32778: 32778: virtual iter_type 32778: do_get(iter_type __beg, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, long& __v) const 32778: { return _M_extract_int(__beg, __end, __io, __err, __v); } 32778: 32778: virtual iter_type 32778: do_get(iter_type __beg, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, unsigned short& __v) const 32778: { return _M_extract_int(__beg, __end, __io, __err, __v); } 32778: 32778: virtual iter_type 32778: do_get(iter_type __beg, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, unsigned int& __v) const 32778: { return _M_extract_int(__beg, __end, __io, __err, __v); } 32778: 32778: virtual iter_type 32778: do_get(iter_type __beg, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, unsigned long& __v) const 32778: { return _M_extract_int(__beg, __end, __io, __err, __v); } 32778: 32778: 32778: virtual iter_type 32778: do_get(iter_type __beg, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, long long& __v) const 32778: { return _M_extract_int(__beg, __end, __io, __err, __v); } 32778: 32778: virtual iter_type 32778: do_get(iter_type __beg, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, unsigned long long& __v) const 32778: { return _M_extract_int(__beg, __end, __io, __err, __v); } 32778: 32778: 32778: virtual iter_type 32778: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, float&) const; 32778: 32778: virtual iter_type 32778: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 32778: double&) const; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: virtual iter_type 32778: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 32778: long double&) const; 32778: 32778: 32778: virtual iter_type 32778: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, void*&) const; 32778: # 2274 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: }; 32778: 32778: template 32778: locale::id num_get<_CharT, _InIter>::id; 32778: # 2292 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: template 32778: class num_put : public locale::facet 32778: { 32778: public: 32778: 32778: 32778: 32778: typedef _CharT char_type; 32778: typedef _OutIter iter_type; 32778: 32778: 32778: 32778: static locale::id id; 32778: # 2313 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: explicit 32778: num_put(size_t __refs = 0) : facet(__refs) { } 32778: # 2331 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: iter_type 32778: put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const 32778: { return this->do_put(__s, __io, __fill, __v); } 32778: # 2373 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: iter_type 32778: put(iter_type __s, ios_base& __io, char_type __fill, long __v) const 32778: { return this->do_put(__s, __io, __fill, __v); } 32778: 32778: iter_type 32778: put(iter_type __s, ios_base& __io, char_type __fill, 32778: unsigned long __v) const 32778: { return this->do_put(__s, __io, __fill, __v); } 32778: 32778: 32778: iter_type 32778: put(iter_type __s, ios_base& __io, char_type __fill, long long __v) const 32778: { return this->do_put(__s, __io, __fill, __v); } 32778: 32778: iter_type 32778: put(iter_type __s, ios_base& __io, char_type __fill, 32778: unsigned long long __v) const 32778: { return this->do_put(__s, __io, __fill, __v); } 32778: # 2436 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: iter_type 32778: put(iter_type __s, ios_base& __io, char_type __fill, double __v) const 32778: { return this->do_put(__s, __io, __fill, __v); } 32778: 32778: iter_type 32778: put(iter_type __s, ios_base& __io, char_type __fill, 32778: long double __v) const 32778: { return this->do_put(__s, __io, __fill, __v); } 32778: # 2461 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: iter_type 32778: put(iter_type __s, ios_base& __io, char_type __fill, 32778: const void* __v) const 32778: { return this->do_put(__s, __io, __fill, __v); } 32778: 32778: protected: 32778: template 32778: iter_type 32778: _M_insert_float(iter_type, ios_base& __io, char_type __fill, 32778: char __mod, _ValueT __v) const; 32778: 32778: void 32778: _M_group_float(const char* __grouping, size_t __grouping_size, 32778: char_type __sep, const char_type* __p, char_type* __new, 32778: char_type* __cs, int& __len) const; 32778: 32778: template 32778: iter_type 32778: _M_insert_int(iter_type, ios_base& __io, char_type __fill, 32778: _ValueT __v) const; 32778: 32778: void 32778: _M_group_int(const char* __grouping, size_t __grouping_size, 32778: char_type __sep, ios_base& __io, char_type* __new, 32778: char_type* __cs, int& __len) const; 32778: 32778: void 32778: _M_pad(char_type __fill, streamsize __w, ios_base& __io, 32778: char_type* __new, const char_type* __cs, int& __len) const; 32778: 32778: 32778: virtual 32778: ~num_put() { } 32778: # 2509 "/usr/include/c++/9/bits/locale_facets.h" 3 32778: virtual iter_type 32778: do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const; 32778: 32778: virtual iter_type 32778: do_put(iter_type __s, ios_base& __io, char_type __fill, long __v) const 32778: { return _M_insert_int(__s, __io, __fill, __v); } 32778: 32778: virtual iter_type 32778: do_put(iter_type __s, ios_base& __io, char_type __fill, 32778: unsigned long __v) const 32778: { return _M_insert_int(__s, __io, __fill, __v); } 32778: 32778: 32778: virtual iter_type 32778: do_put(iter_type __s, ios_base& __io, char_type __fill, 32778: long long __v) const 32778: { return _M_insert_int(__s, __io, __fill, __v); } 32778: 32778: virtual iter_type 32778: do_put(iter_type __s, ios_base& __io, char_type __fill, 32778: unsigned long long __v) const 32778: { return _M_insert_int(__s, __io, __fill, __v); } 32778: 32778: 32778: virtual iter_type 32778: do_put(iter_type, ios_base&, char_type, double) const; 32778: 32778: 32778: 32778: 32778: 32778: 32778: virtual iter_type 32778: do_put(iter_type, ios_base&, char_type, long double) const; 32778: 32778: 32778: virtual iter_type 32778: do_put(iter_type, ios_base&, char_type, const void*) const; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: }; 32778: 32778: template 32778: locale::id num_put<_CharT, _OutIter>::id; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline bool 32778: isspace(_CharT __c, const locale& __loc) 32778: { return use_facet >(__loc).is(ctype_base::space, __c); } 32778: 32778: 32778: template 32778: inline bool 32778: isprint(_CharT __c, const locale& __loc) 32778: { return use_facet >(__loc).is(ctype_base::print, __c); } 32778: 32778: 32778: template 32778: inline bool 32778: iscntrl(_CharT __c, const locale& __loc) 32778: { return use_facet >(__loc).is(ctype_base::cntrl, __c); } 32778: 32778: 32778: template 32778: inline bool 32778: isupper(_CharT __c, const locale& __loc) 32778: { return use_facet >(__loc).is(ctype_base::upper, __c); } 32778: 32778: 32778: template 32778: inline bool 32778: islower(_CharT __c, const locale& __loc) 32778: { return use_facet >(__loc).is(ctype_base::lower, __c); } 32778: 32778: 32778: template 32778: inline bool 32778: isalpha(_CharT __c, const locale& __loc) 32778: { return use_facet >(__loc).is(ctype_base::alpha, __c); } 32778: 32778: 32778: template 32778: inline bool 32778: isdigit(_CharT __c, const locale& __loc) 32778: { return use_facet >(__loc).is(ctype_base::digit, __c); } 32778: 32778: 32778: template 32778: inline bool 32778: ispunct(_CharT __c, const locale& __loc) 32778: { return use_facet >(__loc).is(ctype_base::punct, __c); } 32778: 32778: 32778: template 32778: inline bool 32778: isxdigit(_CharT __c, const locale& __loc) 32778: { return use_facet >(__loc).is(ctype_base::xdigit, __c); } 32778: 32778: 32778: template 32778: inline bool 32778: isalnum(_CharT __c, const locale& __loc) 32778: { return use_facet >(__loc).is(ctype_base::alnum, __c); } 32778: 32778: 32778: template 32778: inline bool 32778: isgraph(_CharT __c, const locale& __loc) 32778: { return use_facet >(__loc).is(ctype_base::graph, __c); } 32778: 32778: 32778: 32778: template 32778: inline bool 32778: isblank(_CharT __c, const locale& __loc) 32778: { return use_facet >(__loc).is(ctype_base::blank, __c); } 32778: 32778: 32778: 32778: template 32778: inline _CharT 32778: toupper(_CharT __c, const locale& __loc) 32778: { return use_facet >(__loc).toupper(__c); } 32778: 32778: 32778: template 32778: inline _CharT 32778: tolower(_CharT __c, const locale& __loc) 32778: { return use_facet >(__loc).tolower(__c); } 32778: 32778: 32778: } 32778: 32778: # 1 "/usr/include/c++/9/bits/locale_facets.tcc" 1 3 32778: # 33 "/usr/include/c++/9/bits/locale_facets.tcc" 3 32778: 32778: # 34 "/usr/include/c++/9/bits/locale_facets.tcc" 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: template 32778: struct __use_cache 32778: { 32778: const _Facet* 32778: operator() (const locale& __loc) const; 32778: }; 32778: 32778: 32778: template 32778: struct __use_cache<__numpunct_cache<_CharT> > 32778: { 32778: const __numpunct_cache<_CharT>* 32778: operator() (const locale& __loc) const 32778: { 32778: const size_t __i = numpunct<_CharT>::id._M_id(); 32778: const locale::facet** __caches = __loc._M_impl->_M_caches; 32778: if (!__caches[__i]) 32778: { 32778: __numpunct_cache<_CharT>* __tmp = 0; 32778: try 32778: { 32778: __tmp = new __numpunct_cache<_CharT>; 32778: __tmp->_M_cache(__loc); 32778: } 32778: catch(...) 32778: { 32778: delete __tmp; 32778: throw; 32778: } 32778: __loc._M_impl->_M_install_cache(__tmp, __i); 32778: } 32778: return static_cast*>(__caches[__i]); 32778: } 32778: }; 32778: 32778: template 32778: void 32778: __numpunct_cache<_CharT>::_M_cache(const locale& __loc) 32778: { 32778: const numpunct<_CharT>& __np = use_facet >(__loc); 32778: 32778: char* __grouping = 0; 32778: _CharT* __truename = 0; 32778: _CharT* __falsename = 0; 32778: try 32778: { 32778: const string& __g = __np.grouping(); 32778: _M_grouping_size = __g.size(); 32778: __grouping = new char[_M_grouping_size]; 32778: __g.copy(__grouping, _M_grouping_size); 32778: _M_use_grouping = (_M_grouping_size 32778: && static_cast(__grouping[0]) > 0 32778: && (__grouping[0] 32778: != __gnu_cxx::__numeric_traits::__max)); 32778: 32778: const basic_string<_CharT>& __tn = __np.truename(); 32778: _M_truename_size = __tn.size(); 32778: __truename = new _CharT[_M_truename_size]; 32778: __tn.copy(__truename, _M_truename_size); 32778: 32778: const basic_string<_CharT>& __fn = __np.falsename(); 32778: _M_falsename_size = __fn.size(); 32778: __falsename = new _CharT[_M_falsename_size]; 32778: __fn.copy(__falsename, _M_falsename_size); 32778: 32778: _M_decimal_point = __np.decimal_point(); 32778: _M_thousands_sep = __np.thousands_sep(); 32778: 32778: const ctype<_CharT>& __ct = use_facet >(__loc); 32778: __ct.widen(__num_base::_S_atoms_out, 32778: __num_base::_S_atoms_out 32778: + __num_base::_S_oend, _M_atoms_out); 32778: __ct.widen(__num_base::_S_atoms_in, 32778: __num_base::_S_atoms_in 32778: + __num_base::_S_iend, _M_atoms_in); 32778: 32778: _M_grouping = __grouping; 32778: _M_truename = __truename; 32778: _M_falsename = __falsename; 32778: _M_allocated = true; 32778: } 32778: catch(...) 32778: { 32778: delete [] __grouping; 32778: delete [] __truename; 32778: delete [] __falsename; 32778: throw; 32778: } 32778: } 32778: # 139 "/usr/include/c++/9/bits/locale_facets.tcc" 3 32778: __attribute__ ((__pure__)) bool 32778: __verify_grouping(const char* __grouping, size_t __grouping_size, 32778: const string& __grouping_tmp) throw (); 32778: 32778: 32778: 32778: template 32778: __attribute ((__abi_tag__ ("cxx11"))) 32778: _InIter 32778: num_get<_CharT, _InIter>:: 32778: _M_extract_float(_InIter __beg, _InIter __end, ios_base& __io, 32778: ios_base::iostate& __err, string& __xtrc) const 32778: { 32778: typedef char_traits<_CharT> __traits_type; 32778: typedef __numpunct_cache<_CharT> __cache_type; 32778: __use_cache<__cache_type> __uc; 32778: const locale& __loc = __io._M_getloc(); 32778: const __cache_type* __lc = __uc(__loc); 32778: const _CharT* __lit = __lc->_M_atoms_in; 32778: char_type __c = char_type(); 32778: 32778: 32778: bool __testeof = __beg == __end; 32778: 32778: 32778: if (!__testeof) 32778: { 32778: __c = *__beg; 32778: const bool __plus = __c == __lit[__num_base::_S_iplus]; 32778: if ((__plus || __c == __lit[__num_base::_S_iminus]) 32778: && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 32778: && !(__c == __lc->_M_decimal_point)) 32778: { 32778: __xtrc += __plus ? '+' : '-'; 32778: if (++__beg != __end) 32778: __c = *__beg; 32778: else 32778: __testeof = true; 32778: } 32778: } 32778: 32778: 32778: bool __found_mantissa = false; 32778: int __sep_pos = 0; 32778: while (!__testeof) 32778: { 32778: if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 32778: || __c == __lc->_M_decimal_point) 32778: break; 32778: else if (__c == __lit[__num_base::_S_izero]) 32778: { 32778: if (!__found_mantissa) 32778: { 32778: __xtrc += '0'; 32778: __found_mantissa = true; 32778: } 32778: ++__sep_pos; 32778: 32778: if (++__beg != __end) 32778: __c = *__beg; 32778: else 32778: __testeof = true; 32778: } 32778: else 32778: break; 32778: } 32778: 32778: 32778: bool __found_dec = false; 32778: bool __found_sci = false; 32778: string __found_grouping; 32778: if (__lc->_M_use_grouping) 32778: __found_grouping.reserve(32); 32778: const char_type* __lit_zero = __lit + __num_base::_S_izero; 32778: 32778: if (!__lc->_M_allocated) 32778: 32778: while (!__testeof) 32778: { 32778: const int __digit = _M_find(__lit_zero, 10, __c); 32778: if (__digit != -1) 32778: { 32778: __xtrc += '0' + __digit; 32778: __found_mantissa = true; 32778: } 32778: else if (__c == __lc->_M_decimal_point 32778: && !__found_dec && !__found_sci) 32778: { 32778: __xtrc += '.'; 32778: __found_dec = true; 32778: } 32778: else if ((__c == __lit[__num_base::_S_ie] 32778: || __c == __lit[__num_base::_S_iE]) 32778: && !__found_sci && __found_mantissa) 32778: { 32778: 32778: __xtrc += 'e'; 32778: __found_sci = true; 32778: 32778: 32778: if (++__beg != __end) 32778: { 32778: __c = *__beg; 32778: const bool __plus = __c == __lit[__num_base::_S_iplus]; 32778: if (__plus || __c == __lit[__num_base::_S_iminus]) 32778: __xtrc += __plus ? '+' : '-'; 32778: else 32778: continue; 32778: } 32778: else 32778: { 32778: __testeof = true; 32778: break; 32778: } 32778: } 32778: else 32778: break; 32778: 32778: if (++__beg != __end) 32778: __c = *__beg; 32778: else 32778: __testeof = true; 32778: } 32778: else 32778: while (!__testeof) 32778: { 32778: 32778: 32778: if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 32778: { 32778: if (!__found_dec && !__found_sci) 32778: { 32778: 32778: 32778: if (__sep_pos) 32778: { 32778: __found_grouping += static_cast(__sep_pos); 32778: __sep_pos = 0; 32778: } 32778: else 32778: { 32778: 32778: 32778: __xtrc.clear(); 32778: break; 32778: } 32778: } 32778: else 32778: break; 32778: } 32778: else if (__c == __lc->_M_decimal_point) 32778: { 32778: if (!__found_dec && !__found_sci) 32778: { 32778: 32778: 32778: 32778: if (__found_grouping.size()) 32778: __found_grouping += static_cast(__sep_pos); 32778: __xtrc += '.'; 32778: __found_dec = true; 32778: } 32778: else 32778: break; 32778: } 32778: else 32778: { 32778: const char_type* __q = 32778: __traits_type::find(__lit_zero, 10, __c); 32778: if (__q) 32778: { 32778: __xtrc += '0' + (__q - __lit_zero); 32778: __found_mantissa = true; 32778: ++__sep_pos; 32778: } 32778: else if ((__c == __lit[__num_base::_S_ie] 32778: || __c == __lit[__num_base::_S_iE]) 32778: && !__found_sci && __found_mantissa) 32778: { 32778: 32778: if (__found_grouping.size() && !__found_dec) 32778: __found_grouping += static_cast(__sep_pos); 32778: __xtrc += 'e'; 32778: __found_sci = true; 32778: 32778: 32778: if (++__beg != __end) 32778: { 32778: __c = *__beg; 32778: const bool __plus = __c == __lit[__num_base::_S_iplus]; 32778: if ((__plus || __c == __lit[__num_base::_S_iminus]) 32778: && !(__lc->_M_use_grouping 32778: && __c == __lc->_M_thousands_sep) 32778: && !(__c == __lc->_M_decimal_point)) 32778: __xtrc += __plus ? '+' : '-'; 32778: else 32778: continue; 32778: } 32778: else 32778: { 32778: __testeof = true; 32778: break; 32778: } 32778: } 32778: else 32778: break; 32778: } 32778: 32778: if (++__beg != __end) 32778: __c = *__beg; 32778: else 32778: __testeof = true; 32778: } 32778: 32778: 32778: 32778: if (__found_grouping.size()) 32778: { 32778: 32778: if (!__found_dec && !__found_sci) 32778: __found_grouping += static_cast(__sep_pos); 32778: 32778: if (!std::__verify_grouping(__lc->_M_grouping, 32778: __lc->_M_grouping_size, 32778: __found_grouping)) 32778: __err = ios_base::failbit; 32778: } 32778: 32778: return __beg; 32778: } 32778: 32778: template 32778: template 32778: __attribute ((__abi_tag__ ("cxx11"))) 32778: _InIter 32778: num_get<_CharT, _InIter>:: 32778: _M_extract_int(_InIter __beg, _InIter __end, ios_base& __io, 32778: ios_base::iostate& __err, _ValueT& __v) const 32778: { 32778: typedef char_traits<_CharT> __traits_type; 32778: using __gnu_cxx::__add_unsigned; 32778: typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; 32778: typedef __numpunct_cache<_CharT> __cache_type; 32778: __use_cache<__cache_type> __uc; 32778: const locale& __loc = __io._M_getloc(); 32778: const __cache_type* __lc = __uc(__loc); 32778: const _CharT* __lit = __lc->_M_atoms_in; 32778: char_type __c = char_type(); 32778: 32778: 32778: const ios_base::fmtflags __basefield = __io.flags() 32778: & ios_base::basefield; 32778: const bool __oct = __basefield == ios_base::oct; 32778: int __base = __oct ? 8 : (__basefield == ios_base::hex ? 16 : 10); 32778: 32778: 32778: bool __testeof = __beg == __end; 32778: 32778: 32778: bool __negative = false; 32778: if (!__testeof) 32778: { 32778: __c = *__beg; 32778: __negative = __c == __lit[__num_base::_S_iminus]; 32778: if ((__negative || __c == __lit[__num_base::_S_iplus]) 32778: && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 32778: && !(__c == __lc->_M_decimal_point)) 32778: { 32778: if (++__beg != __end) 32778: __c = *__beg; 32778: else 32778: __testeof = true; 32778: } 32778: } 32778: 32778: 32778: 32778: bool __found_zero = false; 32778: int __sep_pos = 0; 32778: while (!__testeof) 32778: { 32778: if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 32778: || __c == __lc->_M_decimal_point) 32778: break; 32778: else if (__c == __lit[__num_base::_S_izero] 32778: && (!__found_zero || __base == 10)) 32778: { 32778: __found_zero = true; 32778: ++__sep_pos; 32778: if (__basefield == 0) 32778: __base = 8; 32778: if (__base == 8) 32778: __sep_pos = 0; 32778: } 32778: else if (__found_zero 32778: && (__c == __lit[__num_base::_S_ix] 32778: || __c == __lit[__num_base::_S_iX])) 32778: { 32778: if (__basefield == 0) 32778: __base = 16; 32778: if (__base == 16) 32778: { 32778: __found_zero = false; 32778: __sep_pos = 0; 32778: } 32778: else 32778: break; 32778: } 32778: else 32778: break; 32778: 32778: if (++__beg != __end) 32778: { 32778: __c = *__beg; 32778: if (!__found_zero) 32778: break; 32778: } 32778: else 32778: __testeof = true; 32778: } 32778: 32778: 32778: 32778: const size_t __len = (__base == 16 ? __num_base::_S_iend 32778: - __num_base::_S_izero : __base); 32778: 32778: 32778: typedef __gnu_cxx::__numeric_traits<_ValueT> __num_traits; 32778: string __found_grouping; 32778: if (__lc->_M_use_grouping) 32778: __found_grouping.reserve(32); 32778: bool __testfail = false; 32778: bool __testoverflow = false; 32778: const __unsigned_type __max = 32778: (__negative && __num_traits::__is_signed) 32778: ? -static_cast<__unsigned_type>(__num_traits::__min) 32778: : __num_traits::__max; 32778: const __unsigned_type __smax = __max / __base; 32778: __unsigned_type __result = 0; 32778: int __digit = 0; 32778: const char_type* __lit_zero = __lit + __num_base::_S_izero; 32778: 32778: if (!__lc->_M_allocated) 32778: 32778: while (!__testeof) 32778: { 32778: __digit = _M_find(__lit_zero, __len, __c); 32778: if (__digit == -1) 32778: break; 32778: 32778: if (__result > __smax) 32778: __testoverflow = true; 32778: else 32778: { 32778: __result *= __base; 32778: __testoverflow |= __result > __max - __digit; 32778: __result += __digit; 32778: ++__sep_pos; 32778: } 32778: 32778: if (++__beg != __end) 32778: __c = *__beg; 32778: else 32778: __testeof = true; 32778: } 32778: else 32778: while (!__testeof) 32778: { 32778: 32778: 32778: if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 32778: { 32778: 32778: 32778: if (__sep_pos) 32778: { 32778: __found_grouping += static_cast(__sep_pos); 32778: __sep_pos = 0; 32778: } 32778: else 32778: { 32778: __testfail = true; 32778: break; 32778: } 32778: } 32778: else if (__c == __lc->_M_decimal_point) 32778: break; 32778: else 32778: { 32778: const char_type* __q = 32778: __traits_type::find(__lit_zero, __len, __c); 32778: if (!__q) 32778: break; 32778: 32778: __digit = __q - __lit_zero; 32778: if (__digit > 15) 32778: __digit -= 6; 32778: if (__result > __smax) 32778: __testoverflow = true; 32778: else 32778: { 32778: __result *= __base; 32778: __testoverflow |= __result > __max - __digit; 32778: __result += __digit; 32778: ++__sep_pos; 32778: } 32778: } 32778: 32778: if (++__beg != __end) 32778: __c = *__beg; 32778: else 32778: __testeof = true; 32778: } 32778: 32778: 32778: 32778: if (__found_grouping.size()) 32778: { 32778: 32778: __found_grouping += static_cast(__sep_pos); 32778: 32778: if (!std::__verify_grouping(__lc->_M_grouping, 32778: __lc->_M_grouping_size, 32778: __found_grouping)) 32778: __err = ios_base::failbit; 32778: } 32778: 32778: 32778: 32778: if ((!__sep_pos && !__found_zero && !__found_grouping.size()) 32778: || __testfail) 32778: { 32778: __v = 0; 32778: __err = ios_base::failbit; 32778: } 32778: else if (__testoverflow) 32778: { 32778: if (__negative && __num_traits::__is_signed) 32778: __v = __num_traits::__min; 32778: else 32778: __v = __num_traits::__max; 32778: __err = ios_base::failbit; 32778: } 32778: else 32778: __v = __negative ? -__result : __result; 32778: 32778: if (__testeof) 32778: __err |= ios_base::eofbit; 32778: return __beg; 32778: } 32778: 32778: 32778: 32778: template 32778: _InIter 32778: num_get<_CharT, _InIter>:: 32778: do_get(iter_type __beg, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, bool& __v) const 32778: { 32778: if (!(__io.flags() & ios_base::boolalpha)) 32778: { 32778: 32778: 32778: 32778: long __l = -1; 32778: __beg = _M_extract_int(__beg, __end, __io, __err, __l); 32778: if (__l == 0 || __l == 1) 32778: __v = bool(__l); 32778: else 32778: { 32778: 32778: 32778: __v = true; 32778: __err = ios_base::failbit; 32778: if (__beg == __end) 32778: __err |= ios_base::eofbit; 32778: } 32778: } 32778: else 32778: { 32778: 32778: typedef __numpunct_cache<_CharT> __cache_type; 32778: __use_cache<__cache_type> __uc; 32778: const locale& __loc = __io._M_getloc(); 32778: const __cache_type* __lc = __uc(__loc); 32778: 32778: bool __testf = true; 32778: bool __testt = true; 32778: bool __donef = __lc->_M_falsename_size == 0; 32778: bool __donet = __lc->_M_truename_size == 0; 32778: bool __testeof = false; 32778: size_t __n = 0; 32778: while (!__donef || !__donet) 32778: { 32778: if (__beg == __end) 32778: { 32778: __testeof = true; 32778: break; 32778: } 32778: 32778: const char_type __c = *__beg; 32778: 32778: if (!__donef) 32778: __testf = __c == __lc->_M_falsename[__n]; 32778: 32778: if (!__testf && __donet) 32778: break; 32778: 32778: if (!__donet) 32778: __testt = __c == __lc->_M_truename[__n]; 32778: 32778: if (!__testt && __donef) 32778: break; 32778: 32778: if (!__testt && !__testf) 32778: break; 32778: 32778: ++__n; 32778: ++__beg; 32778: 32778: __donef = !__testf || __n >= __lc->_M_falsename_size; 32778: __donet = !__testt || __n >= __lc->_M_truename_size; 32778: } 32778: if (__testf && __n == __lc->_M_falsename_size && __n) 32778: { 32778: __v = false; 32778: if (__testt && __n == __lc->_M_truename_size) 32778: __err = ios_base::failbit; 32778: else 32778: __err = __testeof ? ios_base::eofbit : ios_base::goodbit; 32778: } 32778: else if (__testt && __n == __lc->_M_truename_size && __n) 32778: { 32778: __v = true; 32778: __err = __testeof ? ios_base::eofbit : ios_base::goodbit; 32778: } 32778: else 32778: { 32778: 32778: 32778: __v = false; 32778: __err = ios_base::failbit; 32778: if (__testeof) 32778: __err |= ios_base::eofbit; 32778: } 32778: } 32778: return __beg; 32778: } 32778: 32778: template 32778: _InIter 32778: num_get<_CharT, _InIter>:: 32778: do_get(iter_type __beg, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, float& __v) const 32778: { 32778: string __xtrc; 32778: __xtrc.reserve(32); 32778: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 32778: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 32778: if (__beg == __end) 32778: __err |= ios_base::eofbit; 32778: return __beg; 32778: } 32778: 32778: template 32778: _InIter 32778: num_get<_CharT, _InIter>:: 32778: do_get(iter_type __beg, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, double& __v) const 32778: { 32778: string __xtrc; 32778: __xtrc.reserve(32); 32778: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 32778: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 32778: if (__beg == __end) 32778: __err |= ios_base::eofbit; 32778: return __beg; 32778: } 32778: # 735 "/usr/include/c++/9/bits/locale_facets.tcc" 3 32778: template 32778: _InIter 32778: num_get<_CharT, _InIter>:: 32778: do_get(iter_type __beg, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, long double& __v) const 32778: { 32778: string __xtrc; 32778: __xtrc.reserve(32); 32778: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 32778: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 32778: if (__beg == __end) 32778: __err |= ios_base::eofbit; 32778: return __beg; 32778: } 32778: 32778: template 32778: _InIter 32778: num_get<_CharT, _InIter>:: 32778: do_get(iter_type __beg, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, void*& __v) const 32778: { 32778: 32778: typedef ios_base::fmtflags fmtflags; 32778: const fmtflags __fmt = __io.flags(); 32778: __io.flags((__fmt & ~ios_base::basefield) | ios_base::hex); 32778: 32778: typedef __gnu_cxx::__conditional_type<(sizeof(void*) 32778: <= sizeof(unsigned long)), 32778: unsigned long, unsigned long long>::__type _UIntPtrType; 32778: 32778: _UIntPtrType __ul; 32778: __beg = _M_extract_int(__beg, __end, __io, __err, __ul); 32778: 32778: 32778: __io.flags(__fmt); 32778: 32778: __v = reinterpret_cast(__ul); 32778: return __beg; 32778: } 32778: 32778: 32778: 32778: template 32778: void 32778: num_put<_CharT, _OutIter>:: 32778: _M_pad(_CharT __fill, streamsize __w, ios_base& __io, 32778: _CharT* __new, const _CharT* __cs, int& __len) const 32778: { 32778: 32778: 32778: __pad<_CharT, char_traits<_CharT> >::_S_pad(__io, __fill, __new, 32778: __cs, __w, __len); 32778: __len = static_cast(__w); 32778: } 32778: 32778: 32778: 32778: template 32778: int 32778: __int_to_char(_CharT* __bufend, _ValueT __v, const _CharT* __lit, 32778: ios_base::fmtflags __flags, bool __dec) 32778: { 32778: _CharT* __buf = __bufend; 32778: if (__builtin_expect(__dec, true)) 32778: { 32778: 32778: do 32778: { 32778: *--__buf = __lit[(__v % 10) + __num_base::_S_odigits]; 32778: __v /= 10; 32778: } 32778: while (__v != 0); 32778: } 32778: else if ((__flags & ios_base::basefield) == ios_base::oct) 32778: { 32778: 32778: do 32778: { 32778: *--__buf = __lit[(__v & 0x7) + __num_base::_S_odigits]; 32778: __v >>= 3; 32778: } 32778: while (__v != 0); 32778: } 32778: else 32778: { 32778: 32778: const bool __uppercase = __flags & ios_base::uppercase; 32778: const int __case_offset = __uppercase ? __num_base::_S_oudigits 32778: : __num_base::_S_odigits; 32778: do 32778: { 32778: *--__buf = __lit[(__v & 0xf) + __case_offset]; 32778: __v >>= 4; 32778: } 32778: while (__v != 0); 32778: } 32778: return __bufend - __buf; 32778: } 32778: 32778: 32778: 32778: template 32778: void 32778: num_put<_CharT, _OutIter>:: 32778: _M_group_int(const char* __grouping, size_t __grouping_size, _CharT __sep, 32778: ios_base&, _CharT* __new, _CharT* __cs, int& __len) const 32778: { 32778: _CharT* __p = std::__add_grouping(__new, __sep, __grouping, 32778: __grouping_size, __cs, __cs + __len); 32778: __len = __p - __new; 32778: } 32778: 32778: template 32778: template 32778: _OutIter 32778: num_put<_CharT, _OutIter>:: 32778: _M_insert_int(_OutIter __s, ios_base& __io, _CharT __fill, 32778: _ValueT __v) const 32778: { 32778: using __gnu_cxx::__add_unsigned; 32778: typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; 32778: typedef __numpunct_cache<_CharT> __cache_type; 32778: __use_cache<__cache_type> __uc; 32778: const locale& __loc = __io._M_getloc(); 32778: const __cache_type* __lc = __uc(__loc); 32778: const _CharT* __lit = __lc->_M_atoms_out; 32778: const ios_base::fmtflags __flags = __io.flags(); 32778: 32778: 32778: const int __ilen = 5 * sizeof(_ValueT); 32778: _CharT* __cs = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 32778: * __ilen)); 32778: 32778: 32778: 32778: const ios_base::fmtflags __basefield = __flags & ios_base::basefield; 32778: const bool __dec = (__basefield != ios_base::oct 32778: && __basefield != ios_base::hex); 32778: const __unsigned_type __u = ((__v > 0 || !__dec) 32778: ? __unsigned_type(__v) 32778: : -__unsigned_type(__v)); 32778: int __len = __int_to_char(__cs + __ilen, __u, __lit, __flags, __dec); 32778: __cs += __ilen - __len; 32778: 32778: 32778: if (__lc->_M_use_grouping) 32778: { 32778: 32778: 32778: _CharT* __cs2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 32778: * (__len + 1) 32778: * 2)); 32778: _M_group_int(__lc->_M_grouping, __lc->_M_grouping_size, 32778: __lc->_M_thousands_sep, __io, __cs2 + 2, __cs, __len); 32778: __cs = __cs2 + 2; 32778: } 32778: 32778: 32778: if (__builtin_expect(__dec, true)) 32778: { 32778: 32778: if (__v >= 0) 32778: { 32778: if (bool(__flags & ios_base::showpos) 32778: && __gnu_cxx::__numeric_traits<_ValueT>::__is_signed) 32778: *--__cs = __lit[__num_base::_S_oplus], ++__len; 32778: } 32778: else 32778: *--__cs = __lit[__num_base::_S_ominus], ++__len; 32778: } 32778: else if (bool(__flags & ios_base::showbase) && __v) 32778: { 32778: if (__basefield == ios_base::oct) 32778: *--__cs = __lit[__num_base::_S_odigits], ++__len; 32778: else 32778: { 32778: 32778: const bool __uppercase = __flags & ios_base::uppercase; 32778: *--__cs = __lit[__num_base::_S_ox + __uppercase]; 32778: 32778: *--__cs = __lit[__num_base::_S_odigits]; 32778: __len += 2; 32778: } 32778: } 32778: 32778: 32778: const streamsize __w = __io.width(); 32778: if (__w > static_cast(__len)) 32778: { 32778: _CharT* __cs3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 32778: * __w)); 32778: _M_pad(__fill, __w, __io, __cs3, __cs, __len); 32778: __cs = __cs3; 32778: } 32778: __io.width(0); 32778: 32778: 32778: 32778: return std::__write(__s, __cs, __len); 32778: } 32778: 32778: template 32778: void 32778: num_put<_CharT, _OutIter>:: 32778: _M_group_float(const char* __grouping, size_t __grouping_size, 32778: _CharT __sep, const _CharT* __p, _CharT* __new, 32778: _CharT* __cs, int& __len) const 32778: { 32778: 32778: 32778: 32778: const int __declen = __p ? __p - __cs : __len; 32778: _CharT* __p2 = std::__add_grouping(__new, __sep, __grouping, 32778: __grouping_size, 32778: __cs, __cs + __declen); 32778: 32778: 32778: int __newlen = __p2 - __new; 32778: if (__p) 32778: { 32778: char_traits<_CharT>::copy(__p2, __p, __len - __declen); 32778: __newlen += __len - __declen; 32778: } 32778: __len = __newlen; 32778: } 32778: # 971 "/usr/include/c++/9/bits/locale_facets.tcc" 3 32778: template 32778: template 32778: _OutIter 32778: num_put<_CharT, _OutIter>:: 32778: _M_insert_float(_OutIter __s, ios_base& __io, _CharT __fill, char __mod, 32778: _ValueT __v) const 32778: { 32778: typedef __numpunct_cache<_CharT> __cache_type; 32778: __use_cache<__cache_type> __uc; 32778: const locale& __loc = __io._M_getloc(); 32778: const __cache_type* __lc = __uc(__loc); 32778: 32778: 32778: const streamsize __prec = __io.precision() < 0 ? 6 : __io.precision(); 32778: 32778: const int __max_digits = 32778: __gnu_cxx::__numeric_traits<_ValueT>::__digits10; 32778: 32778: 32778: int __len; 32778: 32778: char __fbuf[16]; 32778: __num_base::_S_format_float(__io, __fbuf, __mod); 32778: 32778: 32778: 32778: const bool __use_prec = 32778: (__io.flags() & ios_base::floatfield) != ios_base::floatfield; 32778: 32778: 32778: 32778: int __cs_size = __max_digits * 3; 32778: char* __cs = static_cast(__builtin_alloca(__cs_size)); 32778: if (__use_prec) 32778: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 32778: __fbuf, __prec, __v); 32778: else 32778: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 32778: __fbuf, __v); 32778: 32778: 32778: if (__len >= __cs_size) 32778: { 32778: __cs_size = __len + 1; 32778: __cs = static_cast(__builtin_alloca(__cs_size)); 32778: if (__use_prec) 32778: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 32778: __fbuf, __prec, __v); 32778: else 32778: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 32778: __fbuf, __v); 32778: } 32778: # 1044 "/usr/include/c++/9/bits/locale_facets.tcc" 3 32778: const ctype<_CharT>& __ctype = use_facet >(__loc); 32778: 32778: _CharT* __ws = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 32778: * __len)); 32778: __ctype.widen(__cs, __cs + __len, __ws); 32778: 32778: 32778: _CharT* __wp = 0; 32778: const char* __p = char_traits::find(__cs, __len, '.'); 32778: if (__p) 32778: { 32778: __wp = __ws + (__p - __cs); 32778: *__wp = __lc->_M_decimal_point; 32778: } 32778: 32778: 32778: 32778: 32778: if (__lc->_M_use_grouping 32778: && (__wp || __len < 3 || (__cs[1] <= '9' && __cs[2] <= '9' 32778: && __cs[1] >= '0' && __cs[2] >= '0'))) 32778: { 32778: 32778: 32778: _CharT* __ws2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 32778: * __len * 2)); 32778: 32778: streamsize __off = 0; 32778: if (__cs[0] == '-' || __cs[0] == '+') 32778: { 32778: __off = 1; 32778: __ws2[0] = __ws[0]; 32778: __len -= 1; 32778: } 32778: 32778: _M_group_float(__lc->_M_grouping, __lc->_M_grouping_size, 32778: __lc->_M_thousands_sep, __wp, __ws2 + __off, 32778: __ws + __off, __len); 32778: __len += __off; 32778: 32778: __ws = __ws2; 32778: } 32778: 32778: 32778: const streamsize __w = __io.width(); 32778: if (__w > static_cast(__len)) 32778: { 32778: _CharT* __ws3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 32778: * __w)); 32778: _M_pad(__fill, __w, __io, __ws3, __ws, __len); 32778: __ws = __ws3; 32778: } 32778: __io.width(0); 32778: 32778: 32778: 32778: return std::__write(__s, __ws, __len); 32778: } 32778: 32778: template 32778: _OutIter 32778: num_put<_CharT, _OutIter>:: 32778: do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const 32778: { 32778: const ios_base::fmtflags __flags = __io.flags(); 32778: if ((__flags & ios_base::boolalpha) == 0) 32778: { 32778: const long __l = __v; 32778: __s = _M_insert_int(__s, __io, __fill, __l); 32778: } 32778: else 32778: { 32778: typedef __numpunct_cache<_CharT> __cache_type; 32778: __use_cache<__cache_type> __uc; 32778: const locale& __loc = __io._M_getloc(); 32778: const __cache_type* __lc = __uc(__loc); 32778: 32778: const _CharT* __name = __v ? __lc->_M_truename 32778: : __lc->_M_falsename; 32778: int __len = __v ? __lc->_M_truename_size 32778: : __lc->_M_falsename_size; 32778: 32778: const streamsize __w = __io.width(); 32778: if (__w > static_cast(__len)) 32778: { 32778: const streamsize __plen = __w - __len; 32778: _CharT* __ps 32778: = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 32778: * __plen)); 32778: 32778: char_traits<_CharT>::assign(__ps, __plen, __fill); 32778: __io.width(0); 32778: 32778: if ((__flags & ios_base::adjustfield) == ios_base::left) 32778: { 32778: __s = std::__write(__s, __name, __len); 32778: __s = std::__write(__s, __ps, __plen); 32778: } 32778: else 32778: { 32778: __s = std::__write(__s, __ps, __plen); 32778: __s = std::__write(__s, __name, __len); 32778: } 32778: return __s; 32778: } 32778: __io.width(0); 32778: __s = std::__write(__s, __name, __len); 32778: } 32778: return __s; 32778: } 32778: 32778: template 32778: _OutIter 32778: num_put<_CharT, _OutIter>:: 32778: do_put(iter_type __s, ios_base& __io, char_type __fill, double __v) const 32778: { return _M_insert_float(__s, __io, __fill, char(), __v); } 32778: # 1169 "/usr/include/c++/9/bits/locale_facets.tcc" 3 32778: template 32778: _OutIter 32778: num_put<_CharT, _OutIter>:: 32778: do_put(iter_type __s, ios_base& __io, char_type __fill, 32778: long double __v) const 32778: { return _M_insert_float(__s, __io, __fill, 'L', __v); } 32778: 32778: template 32778: _OutIter 32778: num_put<_CharT, _OutIter>:: 32778: do_put(iter_type __s, ios_base& __io, char_type __fill, 32778: const void* __v) const 32778: { 32778: const ios_base::fmtflags __flags = __io.flags(); 32778: const ios_base::fmtflags __fmt = ~(ios_base::basefield 32778: | ios_base::uppercase); 32778: __io.flags((__flags & __fmt) | (ios_base::hex | ios_base::showbase)); 32778: 32778: typedef __gnu_cxx::__conditional_type<(sizeof(const void*) 32778: <= sizeof(unsigned long)), 32778: unsigned long, unsigned long long>::__type _UIntPtrType; 32778: 32778: __s = _M_insert_int(__s, __io, __fill, 32778: reinterpret_cast<_UIntPtrType>(__v)); 32778: __io.flags(__flags); 32778: return __s; 32778: } 32778: 32778: 32778: # 1206 "/usr/include/c++/9/bits/locale_facets.tcc" 3 32778: template 32778: void 32778: __pad<_CharT, _Traits>::_S_pad(ios_base& __io, _CharT __fill, 32778: _CharT* __news, const _CharT* __olds, 32778: streamsize __newlen, streamsize __oldlen) 32778: { 32778: const size_t __plen = static_cast(__newlen - __oldlen); 32778: const ios_base::fmtflags __adjust = __io.flags() & ios_base::adjustfield; 32778: 32778: 32778: if (__adjust == ios_base::left) 32778: { 32778: _Traits::copy(__news, __olds, __oldlen); 32778: _Traits::assign(__news + __oldlen, __plen, __fill); 32778: return; 32778: } 32778: 32778: size_t __mod = 0; 32778: if (__adjust == ios_base::internal) 32778: { 32778: 32778: 32778: 32778: const locale& __loc = __io._M_getloc(); 32778: const ctype<_CharT>& __ctype = use_facet >(__loc); 32778: 32778: if (__ctype.widen('-') == __olds[0] 32778: || __ctype.widen('+') == __olds[0]) 32778: { 32778: __news[0] = __olds[0]; 32778: __mod = 1; 32778: ++__news; 32778: } 32778: else if (__ctype.widen('0') == __olds[0] 32778: && __oldlen > 1 32778: && (__ctype.widen('x') == __olds[1] 32778: || __ctype.widen('X') == __olds[1])) 32778: { 32778: __news[0] = __olds[0]; 32778: __news[1] = __olds[1]; 32778: __mod = 2; 32778: __news += 2; 32778: } 32778: 32778: } 32778: _Traits::assign(__news, __plen, __fill); 32778: _Traits::copy(__news + __plen, __olds + __mod, __oldlen - __mod); 32778: } 32778: 32778: template 32778: _CharT* 32778: __add_grouping(_CharT* __s, _CharT __sep, 32778: const char* __gbeg, size_t __gsize, 32778: const _CharT* __first, const _CharT* __last) 32778: { 32778: size_t __idx = 0; 32778: size_t __ctr = 0; 32778: 32778: while (__last - __first > __gbeg[__idx] 32778: && static_cast(__gbeg[__idx]) > 0 32778: && __gbeg[__idx] != __gnu_cxx::__numeric_traits::__max) 32778: { 32778: __last -= __gbeg[__idx]; 32778: __idx < __gsize - 1 ? ++__idx : ++__ctr; 32778: } 32778: 32778: while (__first != __last) 32778: *__s++ = *__first++; 32778: 32778: while (__ctr--) 32778: { 32778: *__s++ = __sep; 32778: for (char __i = __gbeg[__idx]; __i > 0; --__i) 32778: *__s++ = *__first++; 32778: } 32778: 32778: while (__idx--) 32778: { 32778: *__s++ = __sep; 32778: for (char __i = __gbeg[__idx]; __i > 0; --__i) 32778: *__s++ = *__first++; 32778: } 32778: 32778: return __s; 32778: } 32778: 32778: 32778: 32778: 32778: extern template class __cxx11:: numpunct; 32778: extern template class __cxx11:: numpunct_byname; 32778: extern template class num_get; 32778: extern template class num_put; 32778: extern template class ctype_byname; 32778: 32778: extern template 32778: const ctype& 32778: use_facet >(const locale&); 32778: 32778: extern template 32778: const numpunct& 32778: use_facet >(const locale&); 32778: 32778: extern template 32778: const num_put& 32778: use_facet >(const locale&); 32778: 32778: extern template 32778: const num_get& 32778: use_facet >(const locale&); 32778: 32778: extern template 32778: bool 32778: has_facet >(const locale&); 32778: 32778: extern template 32778: bool 32778: has_facet >(const locale&); 32778: 32778: extern template 32778: bool 32778: has_facet >(const locale&); 32778: 32778: extern template 32778: bool 32778: has_facet >(const locale&); 32778: 32778: 32778: extern template class __cxx11:: numpunct; 32778: extern template class __cxx11:: numpunct_byname; 32778: extern template class num_get; 32778: extern template class num_put; 32778: extern template class ctype_byname; 32778: 32778: extern template 32778: const ctype& 32778: use_facet >(const locale&); 32778: 32778: extern template 32778: const numpunct& 32778: use_facet >(const locale&); 32778: 32778: extern template 32778: const num_put& 32778: use_facet >(const locale&); 32778: 32778: extern template 32778: const num_get& 32778: use_facet >(const locale&); 32778: 32778: extern template 32778: bool 32778: has_facet >(const locale&); 32778: 32778: extern template 32778: bool 32778: has_facet >(const locale&); 32778: 32778: extern template 32778: bool 32778: has_facet >(const locale&); 32778: 32778: extern template 32778: bool 32778: has_facet >(const locale&); 32778: 32778: 32778: 32778: 32778: } 32778: # 2656 "/usr/include/c++/9/bits/locale_facets.h" 2 3 32778: # 38 "/usr/include/c++/9/bits/basic_ios.h" 2 3 32778: 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: template 32778: inline const _Facet& 32778: __check_facet(const _Facet* __f) 32778: { 32778: if (!__f) 32778: __throw_bad_cast(); 32778: return *__f; 32778: } 32778: # 66 "/usr/include/c++/9/bits/basic_ios.h" 3 32778: template 32778: class basic_ios : public ios_base 32778: { 32778: public: 32778: 32778: 32778: 32778: 32778: 32778: 32778: typedef _CharT char_type; 32778: typedef typename _Traits::int_type int_type; 32778: typedef typename _Traits::pos_type pos_type; 32778: typedef typename _Traits::off_type off_type; 32778: typedef _Traits traits_type; 32778: 32778: 32778: 32778: 32778: 32778: 32778: typedef ctype<_CharT> __ctype_type; 32778: typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > 32778: __num_put_type; 32778: typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > 32778: __num_get_type; 32778: 32778: 32778: 32778: protected: 32778: basic_ostream<_CharT, _Traits>* _M_tie; 32778: mutable char_type _M_fill; 32778: mutable bool _M_fill_init; 32778: basic_streambuf<_CharT, _Traits>* _M_streambuf; 32778: 32778: 32778: const __ctype_type* _M_ctype; 32778: 32778: const __num_put_type* _M_num_put; 32778: 32778: const __num_get_type* _M_num_get; 32778: 32778: public: 32778: # 117 "/usr/include/c++/9/bits/basic_ios.h" 3 32778: explicit operator bool() const 32778: { return !this->fail(); } 32778: 32778: 32778: 32778: 32778: 32778: bool 32778: operator!() const 32778: { return this->fail(); } 32778: # 136 "/usr/include/c++/9/bits/basic_ios.h" 3 32778: iostate 32778: rdstate() const 32778: { return _M_streambuf_state; } 32778: # 147 "/usr/include/c++/9/bits/basic_ios.h" 3 32778: void 32778: clear(iostate __state = goodbit); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: void 32778: setstate(iostate __state) 32778: { this->clear(this->rdstate() | __state); } 32778: 32778: 32778: 32778: 32778: void 32778: _M_setstate(iostate __state) 32778: { 32778: 32778: 32778: _M_streambuf_state |= __state; 32778: if (this->exceptions() & __state) 32778: throw; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: bool 32778: good() const 32778: { return this->rdstate() == 0; } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: bool 32778: eof() const 32778: { return (this->rdstate() & eofbit) != 0; } 32778: # 200 "/usr/include/c++/9/bits/basic_ios.h" 3 32778: bool 32778: fail() const 32778: { return (this->rdstate() & (badbit | failbit)) != 0; } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: bool 32778: bad() const 32778: { return (this->rdstate() & badbit) != 0; } 32778: # 221 "/usr/include/c++/9/bits/basic_ios.h" 3 32778: iostate 32778: exceptions() const 32778: { return _M_exception; } 32778: # 256 "/usr/include/c++/9/bits/basic_ios.h" 3 32778: void 32778: exceptions(iostate __except) 32778: { 32778: _M_exception = __except; 32778: this->clear(_M_streambuf_state); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: explicit 32778: basic_ios(basic_streambuf<_CharT, _Traits>* __sb) 32778: : ios_base(), _M_tie(0), _M_fill(), _M_fill_init(false), _M_streambuf(0), 32778: _M_ctype(0), _M_num_put(0), _M_num_get(0) 32778: { this->init(__sb); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: virtual 32778: ~basic_ios() { } 32778: # 294 "/usr/include/c++/9/bits/basic_ios.h" 3 32778: basic_ostream<_CharT, _Traits>* 32778: tie() const 32778: { return _M_tie; } 32778: # 306 "/usr/include/c++/9/bits/basic_ios.h" 3 32778: basic_ostream<_CharT, _Traits>* 32778: tie(basic_ostream<_CharT, _Traits>* __tiestr) 32778: { 32778: basic_ostream<_CharT, _Traits>* __old = _M_tie; 32778: _M_tie = __tiestr; 32778: return __old; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: basic_streambuf<_CharT, _Traits>* 32778: rdbuf() const 32778: { return _M_streambuf; } 32778: # 346 "/usr/include/c++/9/bits/basic_ios.h" 3 32778: basic_streambuf<_CharT, _Traits>* 32778: rdbuf(basic_streambuf<_CharT, _Traits>* __sb); 32778: # 360 "/usr/include/c++/9/bits/basic_ios.h" 3 32778: basic_ios& 32778: copyfmt(const basic_ios& __rhs); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: char_type 32778: fill() const 32778: { 32778: if (!_M_fill_init) 32778: { 32778: _M_fill = this->widen(' '); 32778: _M_fill_init = true; 32778: } 32778: return _M_fill; 32778: } 32778: # 389 "/usr/include/c++/9/bits/basic_ios.h" 3 32778: char_type 32778: fill(char_type __ch) 32778: { 32778: char_type __old = this->fill(); 32778: _M_fill = __ch; 32778: return __old; 32778: } 32778: # 409 "/usr/include/c++/9/bits/basic_ios.h" 3 32778: locale 32778: imbue(const locale& __loc); 32778: # 429 "/usr/include/c++/9/bits/basic_ios.h" 3 32778: char 32778: narrow(char_type __c, char __dfault) const 32778: { return __check_facet(_M_ctype).narrow(__c, __dfault); } 32778: # 448 "/usr/include/c++/9/bits/basic_ios.h" 3 32778: char_type 32778: widen(char __c) const 32778: { return __check_facet(_M_ctype).widen(__c); } 32778: 32778: protected: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: basic_ios() 32778: : ios_base(), _M_tie(0), _M_fill(char_type()), _M_fill_init(false), 32778: _M_streambuf(0), _M_ctype(0), _M_num_put(0), _M_num_get(0) 32778: { } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: void 32778: init(basic_streambuf<_CharT, _Traits>* __sb); 32778: 32778: 32778: basic_ios(const basic_ios&) = delete; 32778: basic_ios& operator=(const basic_ios&) = delete; 32778: 32778: void 32778: move(basic_ios& __rhs) 32778: { 32778: ios_base::_M_move(__rhs); 32778: _M_cache_locale(_M_ios_locale); 32778: this->tie(__rhs.tie(nullptr)); 32778: _M_fill = __rhs._M_fill; 32778: _M_fill_init = __rhs._M_fill_init; 32778: _M_streambuf = nullptr; 32778: } 32778: 32778: void 32778: move(basic_ios&& __rhs) 32778: { this->move(__rhs); } 32778: 32778: void 32778: swap(basic_ios& __rhs) noexcept 32778: { 32778: ios_base::_M_swap(__rhs); 32778: _M_cache_locale(_M_ios_locale); 32778: __rhs._M_cache_locale(__rhs._M_ios_locale); 32778: std::swap(_M_tie, __rhs._M_tie); 32778: std::swap(_M_fill, __rhs._M_fill); 32778: std::swap(_M_fill_init, __rhs._M_fill_init); 32778: } 32778: 32778: void 32778: set_rdbuf(basic_streambuf<_CharT, _Traits>* __sb) 32778: { _M_streambuf = __sb; } 32778: 32778: 32778: void 32778: _M_cache_locale(const locale& __loc); 32778: }; 32778: 32778: 32778: } 32778: 32778: # 1 "/usr/include/c++/9/bits/basic_ios.tcc" 1 3 32778: # 33 "/usr/include/c++/9/bits/basic_ios.tcc" 3 32778: 32778: # 34 "/usr/include/c++/9/bits/basic_ios.tcc" 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: template 32778: void 32778: basic_ios<_CharT, _Traits>::clear(iostate __state) 32778: { 32778: if (this->rdbuf()) 32778: _M_streambuf_state = __state; 32778: else 32778: _M_streambuf_state = __state | badbit; 32778: if (this->exceptions() & this->rdstate()) 32778: __throw_ios_failure(("basic_ios::clear")); 32778: } 32778: 32778: template 32778: basic_streambuf<_CharT, _Traits>* 32778: basic_ios<_CharT, _Traits>::rdbuf(basic_streambuf<_CharT, _Traits>* __sb) 32778: { 32778: basic_streambuf<_CharT, _Traits>* __old = _M_streambuf; 32778: _M_streambuf = __sb; 32778: this->clear(); 32778: return __old; 32778: } 32778: 32778: template 32778: basic_ios<_CharT, _Traits>& 32778: basic_ios<_CharT, _Traits>::copyfmt(const basic_ios& __rhs) 32778: { 32778: 32778: 32778: if (this != &__rhs) 32778: { 32778: 32778: 32778: 32778: 32778: _Words* __words = (__rhs._M_word_size <= _S_local_word_size) ? 32778: _M_local_word : new _Words[__rhs._M_word_size]; 32778: 32778: 32778: _Callback_list* __cb = __rhs._M_callbacks; 32778: if (__cb) 32778: __cb->_M_add_reference(); 32778: _M_call_callbacks(erase_event); 32778: if (_M_word != _M_local_word) 32778: { 32778: delete [] _M_word; 32778: _M_word = 0; 32778: } 32778: _M_dispose_callbacks(); 32778: 32778: 32778: _M_callbacks = __cb; 32778: for (int __i = 0; __i < __rhs._M_word_size; ++__i) 32778: __words[__i] = __rhs._M_word[__i]; 32778: _M_word = __words; 32778: _M_word_size = __rhs._M_word_size; 32778: 32778: this->flags(__rhs.flags()); 32778: this->width(__rhs.width()); 32778: this->precision(__rhs.precision()); 32778: this->tie(__rhs.tie()); 32778: this->fill(__rhs.fill()); 32778: _M_ios_locale = __rhs.getloc(); 32778: _M_cache_locale(_M_ios_locale); 32778: 32778: _M_call_callbacks(copyfmt_event); 32778: 32778: 32778: this->exceptions(__rhs.exceptions()); 32778: } 32778: return *this; 32778: } 32778: 32778: 32778: template 32778: locale 32778: basic_ios<_CharT, _Traits>::imbue(const locale& __loc) 32778: { 32778: locale __old(this->getloc()); 32778: ios_base::imbue(__loc); 32778: _M_cache_locale(__loc); 32778: if (this->rdbuf() != 0) 32778: this->rdbuf()->pubimbue(__loc); 32778: return __old; 32778: } 32778: 32778: template 32778: void 32778: basic_ios<_CharT, _Traits>::init(basic_streambuf<_CharT, _Traits>* __sb) 32778: { 32778: 32778: ios_base::_M_init(); 32778: 32778: 32778: _M_cache_locale(_M_ios_locale); 32778: # 146 "/usr/include/c++/9/bits/basic_ios.tcc" 3 32778: _M_fill = _CharT(); 32778: _M_fill_init = false; 32778: 32778: _M_tie = 0; 32778: _M_exception = goodbit; 32778: _M_streambuf = __sb; 32778: _M_streambuf_state = __sb ? goodbit : badbit; 32778: } 32778: 32778: template 32778: void 32778: basic_ios<_CharT, _Traits>::_M_cache_locale(const locale& __loc) 32778: { 32778: if (__builtin_expect(has_facet<__ctype_type>(__loc), true)) 32778: _M_ctype = std::__addressof(use_facet<__ctype_type>(__loc)); 32778: else 32778: _M_ctype = 0; 32778: 32778: if (__builtin_expect(has_facet<__num_put_type>(__loc), true)) 32778: _M_num_put = std::__addressof(use_facet<__num_put_type>(__loc)); 32778: else 32778: _M_num_put = 0; 32778: 32778: if (__builtin_expect(has_facet<__num_get_type>(__loc), true)) 32778: _M_num_get = std::__addressof(use_facet<__num_get_type>(__loc)); 32778: else 32778: _M_num_get = 0; 32778: } 32778: 32778: 32778: 32778: 32778: extern template class basic_ios; 32778: 32778: 32778: extern template class basic_ios; 32778: 32778: 32778: 32778: 32778: } 32778: # 517 "/usr/include/c++/9/bits/basic_ios.h" 2 3 32778: # 45 "/usr/include/c++/9/ios" 2 3 32778: # 39 "/usr/include/c++/9/ostream" 2 3 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 57 "/usr/include/c++/9/ostream" 3 32778: template 32778: class basic_ostream : virtual public basic_ios<_CharT, _Traits> 32778: { 32778: public: 32778: 32778: typedef _CharT char_type; 32778: typedef typename _Traits::int_type int_type; 32778: typedef typename _Traits::pos_type pos_type; 32778: typedef typename _Traits::off_type off_type; 32778: typedef _Traits traits_type; 32778: 32778: 32778: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 32778: typedef basic_ios<_CharT, _Traits> __ios_type; 32778: typedef basic_ostream<_CharT, _Traits> __ostream_type; 32778: typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > 32778: __num_put_type; 32778: typedef ctype<_CharT> __ctype_type; 32778: # 83 "/usr/include/c++/9/ostream" 3 32778: explicit 32778: basic_ostream(__streambuf_type* __sb) 32778: { this->init(__sb); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: virtual 32778: ~basic_ostream() { } 32778: 32778: 32778: class sentry; 32778: friend class sentry; 32778: # 107 "/usr/include/c++/9/ostream" 3 32778: __ostream_type& 32778: operator<<(__ostream_type& (*__pf)(__ostream_type&)) 32778: { 32778: 32778: 32778: 32778: return __pf(*this); 32778: } 32778: 32778: __ostream_type& 32778: operator<<(__ios_type& (*__pf)(__ios_type&)) 32778: { 32778: 32778: 32778: 32778: __pf(*this); 32778: return *this; 32778: } 32778: 32778: __ostream_type& 32778: operator<<(ios_base& (*__pf) (ios_base&)) 32778: { 32778: 32778: 32778: 32778: __pf(*this); 32778: return *this; 32778: } 32778: # 165 "/usr/include/c++/9/ostream" 3 32778: __ostream_type& 32778: operator<<(long __n) 32778: { return _M_insert(__n); } 32778: 32778: __ostream_type& 32778: operator<<(unsigned long __n) 32778: { return _M_insert(__n); } 32778: 32778: __ostream_type& 32778: operator<<(bool __n) 32778: { return _M_insert(__n); } 32778: 32778: __ostream_type& 32778: operator<<(short __n); 32778: 32778: __ostream_type& 32778: operator<<(unsigned short __n) 32778: { 32778: 32778: 32778: return _M_insert(static_cast(__n)); 32778: } 32778: 32778: __ostream_type& 32778: operator<<(int __n); 32778: 32778: __ostream_type& 32778: operator<<(unsigned int __n) 32778: { 32778: 32778: 32778: return _M_insert(static_cast(__n)); 32778: } 32778: 32778: 32778: __ostream_type& 32778: operator<<(long long __n) 32778: { return _M_insert(__n); } 32778: 32778: __ostream_type& 32778: operator<<(unsigned long long __n) 32778: { return _M_insert(__n); } 32778: # 219 "/usr/include/c++/9/ostream" 3 32778: __ostream_type& 32778: operator<<(double __f) 32778: { return _M_insert(__f); } 32778: 32778: __ostream_type& 32778: operator<<(float __f) 32778: { 32778: 32778: 32778: return _M_insert(static_cast(__f)); 32778: } 32778: 32778: __ostream_type& 32778: operator<<(long double __f) 32778: { return _M_insert(__f); } 32778: # 244 "/usr/include/c++/9/ostream" 3 32778: __ostream_type& 32778: operator<<(const void* __p) 32778: { return _M_insert(__p); } 32778: # 275 "/usr/include/c++/9/ostream" 3 32778: __ostream_type& 32778: operator<<(__streambuf_type* __sb); 32778: # 308 "/usr/include/c++/9/ostream" 3 32778: __ostream_type& 32778: put(char_type __c); 32778: 32778: 32778: 32778: 32778: 32778: 32778: void 32778: _M_write(const char_type* __s, streamsize __n) 32778: { 32778: const streamsize __put = this->rdbuf()->sputn(__s, __n); 32778: if (__put != __n) 32778: this->setstate(ios_base::badbit); 32778: } 32778: # 340 "/usr/include/c++/9/ostream" 3 32778: __ostream_type& 32778: write(const char_type* __s, streamsize __n); 32778: # 353 "/usr/include/c++/9/ostream" 3 32778: __ostream_type& 32778: flush(); 32778: # 363 "/usr/include/c++/9/ostream" 3 32778: pos_type 32778: tellp(); 32778: # 374 "/usr/include/c++/9/ostream" 3 32778: __ostream_type& 32778: seekp(pos_type); 32778: # 386 "/usr/include/c++/9/ostream" 3 32778: __ostream_type& 32778: seekp(off_type, ios_base::seekdir); 32778: 32778: protected: 32778: basic_ostream() 32778: { this->init(0); } 32778: 32778: 32778: 32778: basic_ostream(basic_iostream<_CharT, _Traits>&) { } 32778: 32778: basic_ostream(const basic_ostream&) = delete; 32778: 32778: basic_ostream(basic_ostream&& __rhs) 32778: : __ios_type() 32778: { __ios_type::move(__rhs); } 32778: 32778: 32778: 32778: basic_ostream& operator=(const basic_ostream&) = delete; 32778: 32778: basic_ostream& 32778: operator=(basic_ostream&& __rhs) 32778: { 32778: swap(__rhs); 32778: return *this; 32778: } 32778: 32778: void 32778: swap(basic_ostream& __rhs) 32778: { __ios_type::swap(__rhs); } 32778: 32778: 32778: template 32778: __ostream_type& 32778: _M_insert(_ValueT __v); 32778: }; 32778: # 431 "/usr/include/c++/9/ostream" 3 32778: template 32778: class basic_ostream<_CharT, _Traits>::sentry 32778: { 32778: 32778: bool _M_ok; 32778: basic_ostream<_CharT, _Traits>& _M_os; 32778: 32778: public: 32778: # 450 "/usr/include/c++/9/ostream" 3 32778: explicit 32778: sentry(basic_ostream<_CharT, _Traits>& __os); 32778: 32778: #pragma GCC diagnostic push 32778: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: ~sentry() 32778: { 32778: 32778: if (bool(_M_os.flags() & ios_base::unitbuf) && !uncaught_exception()) 32778: { 32778: 32778: if (_M_os.rdbuf() && _M_os.rdbuf()->pubsync() == -1) 32778: _M_os.setstate(ios_base::badbit); 32778: } 32778: } 32778: #pragma GCC diagnostic pop 32778: # 482 "/usr/include/c++/9/ostream" 3 32778: explicit 32778: 32778: operator bool() const 32778: { return _M_ok; } 32778: }; 32778: # 504 "/usr/include/c++/9/ostream" 3 32778: template 32778: inline basic_ostream<_CharT, _Traits>& 32778: operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) 32778: { return __ostream_insert(__out, &__c, 1); } 32778: 32778: template 32778: inline basic_ostream<_CharT, _Traits>& 32778: operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) 32778: { return (__out << __out.widen(__c)); } 32778: 32778: 32778: template 32778: inline basic_ostream& 32778: operator<<(basic_ostream& __out, char __c) 32778: { return __ostream_insert(__out, &__c, 1); } 32778: 32778: 32778: template 32778: inline basic_ostream& 32778: operator<<(basic_ostream& __out, signed char __c) 32778: { return (__out << static_cast(__c)); } 32778: 32778: template 32778: inline basic_ostream& 32778: operator<<(basic_ostream& __out, unsigned char __c) 32778: { return (__out << static_cast(__c)); } 32778: # 546 "/usr/include/c++/9/ostream" 3 32778: template 32778: inline basic_ostream<_CharT, _Traits>& 32778: operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) 32778: { 32778: if (!__s) 32778: __out.setstate(ios_base::badbit); 32778: else 32778: __ostream_insert(__out, __s, 32778: static_cast(_Traits::length(__s))); 32778: return __out; 32778: } 32778: 32778: template 32778: basic_ostream<_CharT, _Traits> & 32778: operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s); 32778: 32778: 32778: template 32778: inline basic_ostream& 32778: operator<<(basic_ostream& __out, const char* __s) 32778: { 32778: if (!__s) 32778: __out.setstate(ios_base::badbit); 32778: else 32778: __ostream_insert(__out, __s, 32778: static_cast(_Traits::length(__s))); 32778: return __out; 32778: } 32778: 32778: 32778: template 32778: inline basic_ostream& 32778: operator<<(basic_ostream& __out, const signed char* __s) 32778: { return (__out << reinterpret_cast(__s)); } 32778: 32778: template 32778: inline basic_ostream & 32778: operator<<(basic_ostream& __out, const unsigned char* __s) 32778: { return (__out << reinterpret_cast(__s)); } 32778: # 597 "/usr/include/c++/9/ostream" 3 32778: template 32778: inline basic_ostream<_CharT, _Traits>& 32778: endl(basic_ostream<_CharT, _Traits>& __os) 32778: { return flush(__os.put(__os.widen('\n'))); } 32778: # 609 "/usr/include/c++/9/ostream" 3 32778: template 32778: inline basic_ostream<_CharT, _Traits>& 32778: ends(basic_ostream<_CharT, _Traits>& __os) 32778: { return __os.put(_CharT()); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline basic_ostream<_CharT, _Traits>& 32778: flush(basic_ostream<_CharT, _Traits>& __os) 32778: { return __os.flush(); } 32778: 32778: 32778: template 32778: basic_ostream<_Ch, _Up>& 32778: __is_convertible_to_basic_ostream_test(basic_ostream<_Ch, _Up>*); 32778: 32778: template 32778: struct __is_convertible_to_basic_ostream_impl 32778: { 32778: using __ostream_type = void; 32778: }; 32778: 32778: template 32778: using __do_is_convertible_to_basic_ostream_impl = 32778: decltype(__is_convertible_to_basic_ostream_test 32778: (declval::type*>())); 32778: 32778: template 32778: struct __is_convertible_to_basic_ostream_impl 32778: <_Tp, 32778: __void_t<__do_is_convertible_to_basic_ostream_impl<_Tp>>> 32778: { 32778: using __ostream_type = 32778: __do_is_convertible_to_basic_ostream_impl<_Tp>; 32778: }; 32778: 32778: template 32778: struct __is_convertible_to_basic_ostream 32778: : __is_convertible_to_basic_ostream_impl<_Tp> 32778: { 32778: public: 32778: using type = __not_::__ostream_type>>; 32778: constexpr static bool value = type::value; 32778: }; 32778: 32778: template 32778: struct __is_insertable : false_type {}; 32778: 32778: template 32778: struct __is_insertable<_Ostream, _Tp, 32778: __void_t() 32778: << declval())>> 32778: : true_type {}; 32778: 32778: template 32778: using __rvalue_ostream_type = 32778: typename __is_convertible_to_basic_ostream< 32778: _Ostream>::__ostream_type; 32778: # 683 "/usr/include/c++/9/ostream" 3 32778: template 32778: inline 32778: typename enable_if<__and_<__not_>, 32778: __is_convertible_to_basic_ostream<_Ostream>, 32778: __is_insertable< 32778: __rvalue_ostream_type<_Ostream>, 32778: const _Tp&>>::value, 32778: __rvalue_ostream_type<_Ostream>>::type 32778: operator<<(_Ostream&& __os, const _Tp& __x) 32778: { 32778: __rvalue_ostream_type<_Ostream> __ret_os = __os; 32778: __ret_os << __x; 32778: return __ret_os; 32778: } 32778: 32778: 32778: 32778: } 32778: 32778: # 1 "/usr/include/c++/9/bits/ostream.tcc" 1 3 32778: # 37 "/usr/include/c++/9/bits/ostream.tcc" 3 32778: 32778: # 38 "/usr/include/c++/9/bits/ostream.tcc" 3 32778: 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: template 32778: basic_ostream<_CharT, _Traits>::sentry:: 32778: sentry(basic_ostream<_CharT, _Traits>& __os) 32778: : _M_ok(false), _M_os(__os) 32778: { 32778: 32778: if (__os.tie() && __os.good()) 32778: __os.tie()->flush(); 32778: 32778: if (__os.good()) 32778: _M_ok = true; 32778: else 32778: __os.setstate(ios_base::failbit); 32778: } 32778: 32778: template 32778: template 32778: basic_ostream<_CharT, _Traits>& 32778: basic_ostream<_CharT, _Traits>:: 32778: _M_insert(_ValueT __v) 32778: { 32778: sentry __cerb(*this); 32778: if (__cerb) 32778: { 32778: ios_base::iostate __err = ios_base::goodbit; 32778: try 32778: { 32778: const __num_put_type& __np = __check_facet(this->_M_num_put); 32778: if (__np.put(*this, *this, this->fill(), __v).failed()) 32778: __err |= ios_base::badbit; 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::badbit); } 32778: if (__err) 32778: this->setstate(__err); 32778: } 32778: return *this; 32778: } 32778: 32778: template 32778: basic_ostream<_CharT, _Traits>& 32778: basic_ostream<_CharT, _Traits>:: 32778: operator<<(short __n) 32778: { 32778: 32778: 32778: const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; 32778: if (__fmt == ios_base::oct || __fmt == ios_base::hex) 32778: return _M_insert(static_cast(static_cast(__n))); 32778: else 32778: return _M_insert(static_cast(__n)); 32778: } 32778: 32778: template 32778: basic_ostream<_CharT, _Traits>& 32778: basic_ostream<_CharT, _Traits>:: 32778: operator<<(int __n) 32778: { 32778: 32778: 32778: const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; 32778: if (__fmt == ios_base::oct || __fmt == ios_base::hex) 32778: return _M_insert(static_cast(static_cast(__n))); 32778: else 32778: return _M_insert(static_cast(__n)); 32778: } 32778: 32778: template 32778: basic_ostream<_CharT, _Traits>& 32778: basic_ostream<_CharT, _Traits>:: 32778: operator<<(__streambuf_type* __sbin) 32778: { 32778: ios_base::iostate __err = ios_base::goodbit; 32778: sentry __cerb(*this); 32778: if (__cerb && __sbin) 32778: { 32778: try 32778: { 32778: if (!__copy_streambufs(__sbin, this->rdbuf())) 32778: __err |= ios_base::failbit; 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::failbit); } 32778: } 32778: else if (!__sbin) 32778: __err |= ios_base::badbit; 32778: if (__err) 32778: this->setstate(__err); 32778: return *this; 32778: } 32778: 32778: template 32778: basic_ostream<_CharT, _Traits>& 32778: basic_ostream<_CharT, _Traits>:: 32778: put(char_type __c) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: sentry __cerb(*this); 32778: if (__cerb) 32778: { 32778: ios_base::iostate __err = ios_base::goodbit; 32778: try 32778: { 32778: const int_type __put = this->rdbuf()->sputc(__c); 32778: if (traits_type::eq_int_type(__put, traits_type::eof())) 32778: __err |= ios_base::badbit; 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::badbit); } 32778: if (__err) 32778: this->setstate(__err); 32778: } 32778: return *this; 32778: } 32778: 32778: template 32778: basic_ostream<_CharT, _Traits>& 32778: basic_ostream<_CharT, _Traits>:: 32778: write(const _CharT* __s, streamsize __n) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: sentry __cerb(*this); 32778: if (__cerb) 32778: { 32778: try 32778: { _M_write(__s, __n); } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::badbit); } 32778: } 32778: return *this; 32778: } 32778: 32778: template 32778: basic_ostream<_CharT, _Traits>& 32778: basic_ostream<_CharT, _Traits>:: 32778: flush() 32778: { 32778: 32778: 32778: 32778: ios_base::iostate __err = ios_base::goodbit; 32778: try 32778: { 32778: if (this->rdbuf() && this->rdbuf()->pubsync() == -1) 32778: __err |= ios_base::badbit; 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::badbit); } 32778: if (__err) 32778: this->setstate(__err); 32778: return *this; 32778: } 32778: 32778: template 32778: typename basic_ostream<_CharT, _Traits>::pos_type 32778: basic_ostream<_CharT, _Traits>:: 32778: tellp() 32778: { 32778: pos_type __ret = pos_type(-1); 32778: try 32778: { 32778: if (!this->fail()) 32778: __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, ios_base::out); 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::badbit); } 32778: return __ret; 32778: } 32778: 32778: template 32778: basic_ostream<_CharT, _Traits>& 32778: basic_ostream<_CharT, _Traits>:: 32778: seekp(pos_type __pos) 32778: { 32778: ios_base::iostate __err = ios_base::goodbit; 32778: try 32778: { 32778: if (!this->fail()) 32778: { 32778: 32778: 32778: const pos_type __p = this->rdbuf()->pubseekpos(__pos, 32778: ios_base::out); 32778: 32778: 32778: if (__p == pos_type(off_type(-1))) 32778: __err |= ios_base::failbit; 32778: } 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::badbit); } 32778: if (__err) 32778: this->setstate(__err); 32778: return *this; 32778: } 32778: 32778: template 32778: basic_ostream<_CharT, _Traits>& 32778: basic_ostream<_CharT, _Traits>:: 32778: seekp(off_type __off, ios_base::seekdir __dir) 32778: { 32778: ios_base::iostate __err = ios_base::goodbit; 32778: try 32778: { 32778: if (!this->fail()) 32778: { 32778: 32778: 32778: const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, 32778: ios_base::out); 32778: 32778: 32778: if (__p == pos_type(off_type(-1))) 32778: __err |= ios_base::failbit; 32778: } 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::badbit); } 32778: if (__err) 32778: this->setstate(__err); 32778: return *this; 32778: } 32778: 32778: template 32778: basic_ostream<_CharT, _Traits>& 32778: operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s) 32778: { 32778: if (!__s) 32778: __out.setstate(ios_base::badbit); 32778: else 32778: { 32778: 32778: 32778: const size_t __clen = char_traits::length(__s); 32778: try 32778: { 32778: struct __ptr_guard 32778: { 32778: _CharT *__p; 32778: __ptr_guard (_CharT *__ip): __p(__ip) { } 32778: ~__ptr_guard() { delete[] __p; } 32778: _CharT* __get() { return __p; } 32778: } __pg (new _CharT[__clen]); 32778: 32778: _CharT *__ws = __pg.__get(); 32778: for (size_t __i = 0; __i < __clen; ++__i) 32778: __ws[__i] = __out.widen(__s[__i]); 32778: __ostream_insert(__out, __ws, __clen); 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: __out._M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { __out._M_setstate(ios_base::badbit); } 32778: } 32778: return __out; 32778: } 32778: 32778: 32778: 32778: 32778: extern template class basic_ostream; 32778: extern template ostream& endl(ostream&); 32778: extern template ostream& ends(ostream&); 32778: extern template ostream& flush(ostream&); 32778: extern template ostream& operator<<(ostream&, char); 32778: extern template ostream& operator<<(ostream&, unsigned char); 32778: extern template ostream& operator<<(ostream&, signed char); 32778: extern template ostream& operator<<(ostream&, const char*); 32778: extern template ostream& operator<<(ostream&, const unsigned char*); 32778: extern template ostream& operator<<(ostream&, const signed char*); 32778: 32778: extern template ostream& ostream::_M_insert(long); 32778: extern template ostream& ostream::_M_insert(unsigned long); 32778: extern template ostream& ostream::_M_insert(bool); 32778: 32778: extern template ostream& ostream::_M_insert(long long); 32778: extern template ostream& ostream::_M_insert(unsigned long long); 32778: 32778: extern template ostream& ostream::_M_insert(double); 32778: extern template ostream& ostream::_M_insert(long double); 32778: extern template ostream& ostream::_M_insert(const void*); 32778: 32778: 32778: extern template class basic_ostream; 32778: extern template wostream& endl(wostream&); 32778: extern template wostream& ends(wostream&); 32778: extern template wostream& flush(wostream&); 32778: extern template wostream& operator<<(wostream&, wchar_t); 32778: extern template wostream& operator<<(wostream&, char); 32778: extern template wostream& operator<<(wostream&, const wchar_t*); 32778: extern template wostream& operator<<(wostream&, const char*); 32778: 32778: extern template wostream& wostream::_M_insert(long); 32778: extern template wostream& wostream::_M_insert(unsigned long); 32778: extern template wostream& wostream::_M_insert(bool); 32778: 32778: extern template wostream& wostream::_M_insert(long long); 32778: extern template wostream& wostream::_M_insert(unsigned long long); 32778: 32778: extern template wostream& wostream::_M_insert(double); 32778: extern template wostream& wostream::_M_insert(long double); 32778: extern template wostream& wostream::_M_insert(const void*); 32778: 32778: 32778: 32778: 32778: } 32778: # 703 "/usr/include/c++/9/ostream" 2 3 32778: # 40 "/usr/include/c++/9/iostream" 2 3 32778: # 1 "/usr/include/c++/9/istream" 1 3 32778: # 36 "/usr/include/c++/9/istream" 3 32778: 32778: # 37 "/usr/include/c++/9/istream" 3 32778: 32778: 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 57 "/usr/include/c++/9/istream" 3 32778: template 32778: class basic_istream : virtual public basic_ios<_CharT, _Traits> 32778: { 32778: public: 32778: 32778: typedef _CharT char_type; 32778: typedef typename _Traits::int_type int_type; 32778: typedef typename _Traits::pos_type pos_type; 32778: typedef typename _Traits::off_type off_type; 32778: typedef _Traits traits_type; 32778: 32778: 32778: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 32778: typedef basic_ios<_CharT, _Traits> __ios_type; 32778: typedef basic_istream<_CharT, _Traits> __istream_type; 32778: typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > 32778: __num_get_type; 32778: typedef ctype<_CharT> __ctype_type; 32778: 32778: protected: 32778: 32778: 32778: 32778: 32778: 32778: streamsize _M_gcount; 32778: 32778: public: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: explicit 32778: basic_istream(__streambuf_type* __sb) 32778: : _M_gcount(streamsize(0)) 32778: { this->init(__sb); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: virtual 32778: ~basic_istream() 32778: { _M_gcount = streamsize(0); } 32778: 32778: 32778: class sentry; 32778: friend class sentry; 32778: # 119 "/usr/include/c++/9/istream" 3 32778: __istream_type& 32778: operator>>(__istream_type& (*__pf)(__istream_type&)) 32778: { return __pf(*this); } 32778: 32778: __istream_type& 32778: operator>>(__ios_type& (*__pf)(__ios_type&)) 32778: { 32778: __pf(*this); 32778: return *this; 32778: } 32778: 32778: __istream_type& 32778: operator>>(ios_base& (*__pf)(ios_base&)) 32778: { 32778: __pf(*this); 32778: return *this; 32778: } 32778: # 167 "/usr/include/c++/9/istream" 3 32778: __istream_type& 32778: operator>>(bool& __n) 32778: { return _M_extract(__n); } 32778: 32778: __istream_type& 32778: operator>>(short& __n); 32778: 32778: __istream_type& 32778: operator>>(unsigned short& __n) 32778: { return _M_extract(__n); } 32778: 32778: __istream_type& 32778: operator>>(int& __n); 32778: 32778: __istream_type& 32778: operator>>(unsigned int& __n) 32778: { return _M_extract(__n); } 32778: 32778: __istream_type& 32778: operator>>(long& __n) 32778: { return _M_extract(__n); } 32778: 32778: __istream_type& 32778: operator>>(unsigned long& __n) 32778: { return _M_extract(__n); } 32778: 32778: 32778: __istream_type& 32778: operator>>(long long& __n) 32778: { return _M_extract(__n); } 32778: 32778: __istream_type& 32778: operator>>(unsigned long long& __n) 32778: { return _M_extract(__n); } 32778: # 213 "/usr/include/c++/9/istream" 3 32778: __istream_type& 32778: operator>>(float& __f) 32778: { return _M_extract(__f); } 32778: 32778: __istream_type& 32778: operator>>(double& __f) 32778: { return _M_extract(__f); } 32778: 32778: __istream_type& 32778: operator>>(long double& __f) 32778: { return _M_extract(__f); } 32778: # 234 "/usr/include/c++/9/istream" 3 32778: __istream_type& 32778: operator>>(void*& __p) 32778: { return _M_extract(__p); } 32778: # 258 "/usr/include/c++/9/istream" 3 32778: __istream_type& 32778: operator>>(__streambuf_type* __sb); 32778: # 268 "/usr/include/c++/9/istream" 3 32778: streamsize 32778: gcount() const 32778: { return _M_gcount; } 32778: # 301 "/usr/include/c++/9/istream" 3 32778: int_type 32778: get(); 32778: # 315 "/usr/include/c++/9/istream" 3 32778: __istream_type& 32778: get(char_type& __c); 32778: # 342 "/usr/include/c++/9/istream" 3 32778: __istream_type& 32778: get(char_type* __s, streamsize __n, char_type __delim); 32778: # 353 "/usr/include/c++/9/istream" 3 32778: __istream_type& 32778: get(char_type* __s, streamsize __n) 32778: { return this->get(__s, __n, this->widen('\n')); } 32778: # 376 "/usr/include/c++/9/istream" 3 32778: __istream_type& 32778: get(__streambuf_type& __sb, char_type __delim); 32778: # 386 "/usr/include/c++/9/istream" 3 32778: __istream_type& 32778: get(__streambuf_type& __sb) 32778: { return this->get(__sb, this->widen('\n')); } 32778: # 415 "/usr/include/c++/9/istream" 3 32778: __istream_type& 32778: getline(char_type* __s, streamsize __n, char_type __delim); 32778: # 426 "/usr/include/c++/9/istream" 3 32778: __istream_type& 32778: getline(char_type* __s, streamsize __n) 32778: { return this->getline(__s, __n, this->widen('\n')); } 32778: # 450 "/usr/include/c++/9/istream" 3 32778: __istream_type& 32778: ignore(streamsize __n, int_type __delim); 32778: 32778: __istream_type& 32778: ignore(streamsize __n); 32778: 32778: __istream_type& 32778: ignore(); 32778: # 467 "/usr/include/c++/9/istream" 3 32778: int_type 32778: peek(); 32778: # 485 "/usr/include/c++/9/istream" 3 32778: __istream_type& 32778: read(char_type* __s, streamsize __n); 32778: # 504 "/usr/include/c++/9/istream" 3 32778: streamsize 32778: readsome(char_type* __s, streamsize __n); 32778: # 521 "/usr/include/c++/9/istream" 3 32778: __istream_type& 32778: putback(char_type __c); 32778: # 537 "/usr/include/c++/9/istream" 3 32778: __istream_type& 32778: unget(); 32778: # 555 "/usr/include/c++/9/istream" 3 32778: int 32778: sync(); 32778: # 570 "/usr/include/c++/9/istream" 3 32778: pos_type 32778: tellg(); 32778: # 585 "/usr/include/c++/9/istream" 3 32778: __istream_type& 32778: seekg(pos_type); 32778: # 601 "/usr/include/c++/9/istream" 3 32778: __istream_type& 32778: seekg(off_type, ios_base::seekdir); 32778: 32778: 32778: protected: 32778: basic_istream() 32778: : _M_gcount(streamsize(0)) 32778: { this->init(0); } 32778: 32778: 32778: basic_istream(const basic_istream&) = delete; 32778: 32778: basic_istream(basic_istream&& __rhs) 32778: : __ios_type(), _M_gcount(__rhs._M_gcount) 32778: { 32778: __ios_type::move(__rhs); 32778: __rhs._M_gcount = 0; 32778: } 32778: 32778: 32778: 32778: basic_istream& operator=(const basic_istream&) = delete; 32778: 32778: basic_istream& 32778: operator=(basic_istream&& __rhs) 32778: { 32778: swap(__rhs); 32778: return *this; 32778: } 32778: 32778: void 32778: swap(basic_istream& __rhs) 32778: { 32778: __ios_type::swap(__rhs); 32778: std::swap(_M_gcount, __rhs._M_gcount); 32778: } 32778: 32778: 32778: template 32778: __istream_type& 32778: _M_extract(_ValueT& __v); 32778: }; 32778: 32778: 32778: template<> 32778: basic_istream& 32778: basic_istream:: 32778: getline(char_type* __s, streamsize __n, char_type __delim); 32778: 32778: template<> 32778: basic_istream& 32778: basic_istream:: 32778: ignore(streamsize __n); 32778: 32778: template<> 32778: basic_istream& 32778: basic_istream:: 32778: ignore(streamsize __n, int_type __delim); 32778: 32778: 32778: template<> 32778: basic_istream& 32778: basic_istream:: 32778: getline(char_type* __s, streamsize __n, char_type __delim); 32778: 32778: template<> 32778: basic_istream& 32778: basic_istream:: 32778: ignore(streamsize __n); 32778: 32778: template<> 32778: basic_istream& 32778: basic_istream:: 32778: ignore(streamsize __n, int_type __delim); 32778: # 685 "/usr/include/c++/9/istream" 3 32778: template 32778: class basic_istream<_CharT, _Traits>::sentry 32778: { 32778: 32778: bool _M_ok; 32778: 32778: public: 32778: 32778: typedef _Traits traits_type; 32778: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 32778: typedef basic_istream<_CharT, _Traits> __istream_type; 32778: typedef typename __istream_type::__ctype_type __ctype_type; 32778: typedef typename _Traits::int_type __int_type; 32778: # 721 "/usr/include/c++/9/istream" 3 32778: explicit 32778: sentry(basic_istream<_CharT, _Traits>& __is, bool __noskipws = false); 32778: # 732 "/usr/include/c++/9/istream" 3 32778: explicit 32778: 32778: operator bool() const 32778: { return _M_ok; } 32778: }; 32778: # 750 "/usr/include/c++/9/istream" 3 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c); 32778: 32778: template 32778: inline basic_istream& 32778: operator>>(basic_istream& __in, unsigned char& __c) 32778: { return (__in >> reinterpret_cast(__c)); } 32778: 32778: template 32778: inline basic_istream& 32778: operator>>(basic_istream& __in, signed char& __c) 32778: { return (__in >> reinterpret_cast(__c)); } 32778: # 792 "/usr/include/c++/9/istream" 3 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s); 32778: 32778: 32778: template<> 32778: basic_istream& 32778: operator>>(basic_istream& __in, char* __s); 32778: 32778: template 32778: inline basic_istream& 32778: operator>>(basic_istream& __in, unsigned char* __s) 32778: { return (__in >> reinterpret_cast(__s)); } 32778: 32778: template 32778: inline basic_istream& 32778: operator>>(basic_istream& __in, signed char* __s) 32778: { return (__in >> reinterpret_cast(__s)); } 32778: # 823 "/usr/include/c++/9/istream" 3 32778: template 32778: class basic_iostream 32778: : public basic_istream<_CharT, _Traits>, 32778: public basic_ostream<_CharT, _Traits> 32778: { 32778: public: 32778: 32778: 32778: 32778: typedef _CharT char_type; 32778: typedef typename _Traits::int_type int_type; 32778: typedef typename _Traits::pos_type pos_type; 32778: typedef typename _Traits::off_type off_type; 32778: typedef _Traits traits_type; 32778: 32778: 32778: typedef basic_istream<_CharT, _Traits> __istream_type; 32778: typedef basic_ostream<_CharT, _Traits> __ostream_type; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: explicit 32778: basic_iostream(basic_streambuf<_CharT, _Traits>* __sb) 32778: : __istream_type(__sb), __ostream_type(__sb) { } 32778: 32778: 32778: 32778: 32778: virtual 32778: ~basic_iostream() { } 32778: 32778: protected: 32778: basic_iostream() 32778: : __istream_type(), __ostream_type() { } 32778: 32778: 32778: basic_iostream(const basic_iostream&) = delete; 32778: 32778: basic_iostream(basic_iostream&& __rhs) 32778: : __istream_type(std::move(__rhs)), __ostream_type(*this) 32778: { } 32778: 32778: 32778: 32778: basic_iostream& operator=(const basic_iostream&) = delete; 32778: 32778: basic_iostream& 32778: operator=(basic_iostream&& __rhs) 32778: { 32778: swap(__rhs); 32778: return *this; 32778: } 32778: 32778: void 32778: swap(basic_iostream& __rhs) 32778: { __istream_type::swap(__rhs); } 32778: 32778: }; 32778: # 906 "/usr/include/c++/9/istream" 3 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: ws(basic_istream<_CharT, _Traits>& __is); 32778: 32778: 32778: template 32778: basic_istream<_Ch, _Up>& 32778: __is_convertible_to_basic_istream_test(basic_istream<_Ch, _Up>*); 32778: 32778: template 32778: struct __is_convertible_to_basic_istream_impl 32778: { 32778: using __istream_type = void; 32778: }; 32778: 32778: template 32778: using __do_is_convertible_to_basic_istream_impl = 32778: decltype(__is_convertible_to_basic_istream_test 32778: (declval::type*>())); 32778: 32778: template 32778: struct __is_convertible_to_basic_istream_impl 32778: <_Tp, 32778: __void_t<__do_is_convertible_to_basic_istream_impl<_Tp>>> 32778: { 32778: using __istream_type = 32778: __do_is_convertible_to_basic_istream_impl<_Tp>; 32778: }; 32778: 32778: template 32778: struct __is_convertible_to_basic_istream 32778: : __is_convertible_to_basic_istream_impl<_Tp> 32778: { 32778: public: 32778: using type = __not_::__istream_type>>; 32778: constexpr static bool value = type::value; 32778: }; 32778: 32778: template 32778: struct __is_extractable : false_type {}; 32778: 32778: template 32778: struct __is_extractable<_Istream, _Tp, 32778: __void_t() 32778: >> declval<_Tp>())>> 32778: : true_type {}; 32778: 32778: template 32778: using __rvalue_istream_type = 32778: typename __is_convertible_to_basic_istream< 32778: _Istream>::__istream_type; 32778: # 972 "/usr/include/c++/9/istream" 3 32778: template 32778: inline 32778: typename enable_if<__and_<__not_>, 32778: __is_convertible_to_basic_istream<_Istream>, 32778: __is_extractable< 32778: __rvalue_istream_type<_Istream>, 32778: _Tp&&>>::value, 32778: __rvalue_istream_type<_Istream>>::type 32778: operator>>(_Istream&& __is, _Tp&& __x) 32778: { 32778: __rvalue_istream_type<_Istream> __ret_is = __is; 32778: __ret_is >> std::forward<_Tp>(__x); 32778: return __ret_is; 32778: } 32778: 32778: 32778: 32778: } 32778: 32778: # 1 "/usr/include/c++/9/bits/istream.tcc" 1 3 32778: # 37 "/usr/include/c++/9/bits/istream.tcc" 3 32778: 32778: # 38 "/usr/include/c++/9/bits/istream.tcc" 3 32778: 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: template 32778: basic_istream<_CharT, _Traits>::sentry:: 32778: sentry(basic_istream<_CharT, _Traits>& __in, bool __noskip) : _M_ok(false) 32778: { 32778: ios_base::iostate __err = ios_base::goodbit; 32778: if (__in.good()) 32778: try 32778: { 32778: if (__in.tie()) 32778: __in.tie()->flush(); 32778: if (!__noskip && bool(__in.flags() & ios_base::skipws)) 32778: { 32778: const __int_type __eof = traits_type::eof(); 32778: __streambuf_type* __sb = __in.rdbuf(); 32778: __int_type __c = __sb->sgetc(); 32778: 32778: const __ctype_type& __ct = __check_facet(__in._M_ctype); 32778: while (!traits_type::eq_int_type(__c, __eof) 32778: && __ct.is(ctype_base::space, 32778: traits_type::to_char_type(__c))) 32778: __c = __sb->snextc(); 32778: 32778: 32778: 32778: 32778: if (traits_type::eq_int_type(__c, __eof)) 32778: __err |= ios_base::eofbit; 32778: } 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: __in._M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { __in._M_setstate(ios_base::badbit); } 32778: 32778: if (__in.good() && __err == ios_base::goodbit) 32778: _M_ok = true; 32778: else 32778: { 32778: __err |= ios_base::failbit; 32778: __in.setstate(__err); 32778: } 32778: } 32778: 32778: template 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: basic_istream<_CharT, _Traits>:: 32778: _M_extract(_ValueT& __v) 32778: { 32778: sentry __cerb(*this, false); 32778: if (__cerb) 32778: { 32778: ios_base::iostate __err = ios_base::goodbit; 32778: try 32778: { 32778: const __num_get_type& __ng = __check_facet(this->_M_num_get); 32778: __ng.get(*this, 0, *this, __err, __v); 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::badbit); } 32778: if (__err) 32778: this->setstate(__err); 32778: } 32778: return *this; 32778: } 32778: 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: basic_istream<_CharT, _Traits>:: 32778: operator>>(short& __n) 32778: { 32778: 32778: 32778: sentry __cerb(*this, false); 32778: if (__cerb) 32778: { 32778: ios_base::iostate __err = ios_base::goodbit; 32778: try 32778: { 32778: long __l; 32778: const __num_get_type& __ng = __check_facet(this->_M_num_get); 32778: __ng.get(*this, 0, *this, __err, __l); 32778: 32778: 32778: 32778: if (__l < __gnu_cxx::__numeric_traits::__min) 32778: { 32778: __err |= ios_base::failbit; 32778: __n = __gnu_cxx::__numeric_traits::__min; 32778: } 32778: else if (__l > __gnu_cxx::__numeric_traits::__max) 32778: { 32778: __err |= ios_base::failbit; 32778: __n = __gnu_cxx::__numeric_traits::__max; 32778: } 32778: else 32778: __n = short(__l); 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::badbit); } 32778: if (__err) 32778: this->setstate(__err); 32778: } 32778: return *this; 32778: } 32778: 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: basic_istream<_CharT, _Traits>:: 32778: operator>>(int& __n) 32778: { 32778: 32778: 32778: sentry __cerb(*this, false); 32778: if (__cerb) 32778: { 32778: ios_base::iostate __err = ios_base::goodbit; 32778: try 32778: { 32778: long __l; 32778: const __num_get_type& __ng = __check_facet(this->_M_num_get); 32778: __ng.get(*this, 0, *this, __err, __l); 32778: 32778: 32778: 32778: if (__l < __gnu_cxx::__numeric_traits::__min) 32778: { 32778: __err |= ios_base::failbit; 32778: __n = __gnu_cxx::__numeric_traits::__min; 32778: } 32778: else if (__l > __gnu_cxx::__numeric_traits::__max) 32778: { 32778: __err |= ios_base::failbit; 32778: __n = __gnu_cxx::__numeric_traits::__max; 32778: } 32778: else 32778: __n = int(__l); 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::badbit); } 32778: if (__err) 32778: this->setstate(__err); 32778: } 32778: return *this; 32778: } 32778: 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: basic_istream<_CharT, _Traits>:: 32778: operator>>(__streambuf_type* __sbout) 32778: { 32778: ios_base::iostate __err = ios_base::goodbit; 32778: sentry __cerb(*this, false); 32778: if (__cerb && __sbout) 32778: { 32778: try 32778: { 32778: bool __ineof; 32778: if (!__copy_streambufs_eof(this->rdbuf(), __sbout, __ineof)) 32778: __err |= ios_base::failbit; 32778: if (__ineof) 32778: __err |= ios_base::eofbit; 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::failbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::failbit); } 32778: } 32778: else if (!__sbout) 32778: __err |= ios_base::failbit; 32778: if (__err) 32778: this->setstate(__err); 32778: return *this; 32778: } 32778: 32778: template 32778: typename basic_istream<_CharT, _Traits>::int_type 32778: basic_istream<_CharT, _Traits>:: 32778: get(void) 32778: { 32778: const int_type __eof = traits_type::eof(); 32778: int_type __c = __eof; 32778: _M_gcount = 0; 32778: ios_base::iostate __err = ios_base::goodbit; 32778: sentry __cerb(*this, true); 32778: if (__cerb) 32778: { 32778: try 32778: { 32778: __c = this->rdbuf()->sbumpc(); 32778: 32778: if (!traits_type::eq_int_type(__c, __eof)) 32778: _M_gcount = 1; 32778: else 32778: __err |= ios_base::eofbit; 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::badbit); } 32778: } 32778: if (!_M_gcount) 32778: __err |= ios_base::failbit; 32778: if (__err) 32778: this->setstate(__err); 32778: return __c; 32778: } 32778: 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: basic_istream<_CharT, _Traits>:: 32778: get(char_type& __c) 32778: { 32778: _M_gcount = 0; 32778: ios_base::iostate __err = ios_base::goodbit; 32778: sentry __cerb(*this, true); 32778: if (__cerb) 32778: { 32778: try 32778: { 32778: const int_type __cb = this->rdbuf()->sbumpc(); 32778: 32778: if (!traits_type::eq_int_type(__cb, traits_type::eof())) 32778: { 32778: _M_gcount = 1; 32778: __c = traits_type::to_char_type(__cb); 32778: } 32778: else 32778: __err |= ios_base::eofbit; 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::badbit); } 32778: } 32778: if (!_M_gcount) 32778: __err |= ios_base::failbit; 32778: if (__err) 32778: this->setstate(__err); 32778: return *this; 32778: } 32778: 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: basic_istream<_CharT, _Traits>:: 32778: get(char_type* __s, streamsize __n, char_type __delim) 32778: { 32778: _M_gcount = 0; 32778: ios_base::iostate __err = ios_base::goodbit; 32778: sentry __cerb(*this, true); 32778: if (__cerb) 32778: { 32778: try 32778: { 32778: const int_type __idelim = traits_type::to_int_type(__delim); 32778: const int_type __eof = traits_type::eof(); 32778: __streambuf_type* __sb = this->rdbuf(); 32778: int_type __c = __sb->sgetc(); 32778: 32778: while (_M_gcount + 1 < __n 32778: && !traits_type::eq_int_type(__c, __eof) 32778: && !traits_type::eq_int_type(__c, __idelim)) 32778: { 32778: *__s++ = traits_type::to_char_type(__c); 32778: ++_M_gcount; 32778: __c = __sb->snextc(); 32778: } 32778: if (traits_type::eq_int_type(__c, __eof)) 32778: __err |= ios_base::eofbit; 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::badbit); } 32778: } 32778: 32778: 32778: if (__n > 0) 32778: *__s = char_type(); 32778: if (!_M_gcount) 32778: __err |= ios_base::failbit; 32778: if (__err) 32778: this->setstate(__err); 32778: return *this; 32778: } 32778: 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: basic_istream<_CharT, _Traits>:: 32778: get(__streambuf_type& __sb, char_type __delim) 32778: { 32778: _M_gcount = 0; 32778: ios_base::iostate __err = ios_base::goodbit; 32778: sentry __cerb(*this, true); 32778: if (__cerb) 32778: { 32778: try 32778: { 32778: const int_type __idelim = traits_type::to_int_type(__delim); 32778: const int_type __eof = traits_type::eof(); 32778: __streambuf_type* __this_sb = this->rdbuf(); 32778: int_type __c = __this_sb->sgetc(); 32778: char_type __c2 = traits_type::to_char_type(__c); 32778: 32778: while (!traits_type::eq_int_type(__c, __eof) 32778: && !traits_type::eq_int_type(__c, __idelim) 32778: && !traits_type::eq_int_type(__sb.sputc(__c2), __eof)) 32778: { 32778: ++_M_gcount; 32778: __c = __this_sb->snextc(); 32778: __c2 = traits_type::to_char_type(__c); 32778: } 32778: if (traits_type::eq_int_type(__c, __eof)) 32778: __err |= ios_base::eofbit; 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::badbit); } 32778: } 32778: if (!_M_gcount) 32778: __err |= ios_base::failbit; 32778: if (__err) 32778: this->setstate(__err); 32778: return *this; 32778: } 32778: 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: basic_istream<_CharT, _Traits>:: 32778: getline(char_type* __s, streamsize __n, char_type __delim) 32778: { 32778: _M_gcount = 0; 32778: ios_base::iostate __err = ios_base::goodbit; 32778: sentry __cerb(*this, true); 32778: if (__cerb) 32778: { 32778: try 32778: { 32778: const int_type __idelim = traits_type::to_int_type(__delim); 32778: const int_type __eof = traits_type::eof(); 32778: __streambuf_type* __sb = this->rdbuf(); 32778: int_type __c = __sb->sgetc(); 32778: 32778: while (_M_gcount + 1 < __n 32778: && !traits_type::eq_int_type(__c, __eof) 32778: && !traits_type::eq_int_type(__c, __idelim)) 32778: { 32778: *__s++ = traits_type::to_char_type(__c); 32778: __c = __sb->snextc(); 32778: ++_M_gcount; 32778: } 32778: if (traits_type::eq_int_type(__c, __eof)) 32778: __err |= ios_base::eofbit; 32778: else 32778: { 32778: if (traits_type::eq_int_type(__c, __idelim)) 32778: { 32778: __sb->sbumpc(); 32778: ++_M_gcount; 32778: } 32778: else 32778: __err |= ios_base::failbit; 32778: } 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::badbit); } 32778: } 32778: 32778: 32778: if (__n > 0) 32778: *__s = char_type(); 32778: if (!_M_gcount) 32778: __err |= ios_base::failbit; 32778: if (__err) 32778: this->setstate(__err); 32778: return *this; 32778: } 32778: 32778: 32778: 32778: 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: basic_istream<_CharT, _Traits>:: 32778: ignore(void) 32778: { 32778: _M_gcount = 0; 32778: sentry __cerb(*this, true); 32778: if (__cerb) 32778: { 32778: ios_base::iostate __err = ios_base::goodbit; 32778: try 32778: { 32778: const int_type __eof = traits_type::eof(); 32778: __streambuf_type* __sb = this->rdbuf(); 32778: 32778: if (traits_type::eq_int_type(__sb->sbumpc(), __eof)) 32778: __err |= ios_base::eofbit; 32778: else 32778: _M_gcount = 1; 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::badbit); } 32778: if (__err) 32778: this->setstate(__err); 32778: } 32778: return *this; 32778: } 32778: 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: basic_istream<_CharT, _Traits>:: 32778: ignore(streamsize __n) 32778: { 32778: _M_gcount = 0; 32778: sentry __cerb(*this, true); 32778: if (__cerb && __n > 0) 32778: { 32778: ios_base::iostate __err = ios_base::goodbit; 32778: try 32778: { 32778: const int_type __eof = traits_type::eof(); 32778: __streambuf_type* __sb = this->rdbuf(); 32778: int_type __c = __sb->sgetc(); 32778: # 521 "/usr/include/c++/9/bits/istream.tcc" 3 32778: bool __large_ignore = false; 32778: while (true) 32778: { 32778: while (_M_gcount < __n 32778: && !traits_type::eq_int_type(__c, __eof)) 32778: { 32778: ++_M_gcount; 32778: __c = __sb->snextc(); 32778: } 32778: if (__n == __gnu_cxx::__numeric_traits::__max 32778: && !traits_type::eq_int_type(__c, __eof)) 32778: { 32778: _M_gcount = 32778: __gnu_cxx::__numeric_traits::__min; 32778: __large_ignore = true; 32778: } 32778: else 32778: break; 32778: } 32778: 32778: if (__large_ignore) 32778: _M_gcount = __gnu_cxx::__numeric_traits::__max; 32778: 32778: if (traits_type::eq_int_type(__c, __eof)) 32778: __err |= ios_base::eofbit; 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::badbit); } 32778: if (__err) 32778: this->setstate(__err); 32778: } 32778: return *this; 32778: } 32778: 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: basic_istream<_CharT, _Traits>:: 32778: ignore(streamsize __n, int_type __delim) 32778: { 32778: _M_gcount = 0; 32778: sentry __cerb(*this, true); 32778: if (__cerb && __n > 0) 32778: { 32778: ios_base::iostate __err = ios_base::goodbit; 32778: try 32778: { 32778: const int_type __eof = traits_type::eof(); 32778: __streambuf_type* __sb = this->rdbuf(); 32778: int_type __c = __sb->sgetc(); 32778: 32778: 32778: bool __large_ignore = false; 32778: while (true) 32778: { 32778: while (_M_gcount < __n 32778: && !traits_type::eq_int_type(__c, __eof) 32778: && !traits_type::eq_int_type(__c, __delim)) 32778: { 32778: ++_M_gcount; 32778: __c = __sb->snextc(); 32778: } 32778: if (__n == __gnu_cxx::__numeric_traits::__max 32778: && !traits_type::eq_int_type(__c, __eof) 32778: && !traits_type::eq_int_type(__c, __delim)) 32778: { 32778: _M_gcount = 32778: __gnu_cxx::__numeric_traits::__min; 32778: __large_ignore = true; 32778: } 32778: else 32778: break; 32778: } 32778: 32778: if (__large_ignore) 32778: _M_gcount = __gnu_cxx::__numeric_traits::__max; 32778: 32778: if (traits_type::eq_int_type(__c, __eof)) 32778: __err |= ios_base::eofbit; 32778: else if (traits_type::eq_int_type(__c, __delim)) 32778: { 32778: if (_M_gcount 32778: < __gnu_cxx::__numeric_traits::__max) 32778: ++_M_gcount; 32778: __sb->sbumpc(); 32778: } 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::badbit); } 32778: if (__err) 32778: this->setstate(__err); 32778: } 32778: return *this; 32778: } 32778: 32778: template 32778: typename basic_istream<_CharT, _Traits>::int_type 32778: basic_istream<_CharT, _Traits>:: 32778: peek(void) 32778: { 32778: int_type __c = traits_type::eof(); 32778: _M_gcount = 0; 32778: sentry __cerb(*this, true); 32778: if (__cerb) 32778: { 32778: ios_base::iostate __err = ios_base::goodbit; 32778: try 32778: { 32778: __c = this->rdbuf()->sgetc(); 32778: if (traits_type::eq_int_type(__c, traits_type::eof())) 32778: __err |= ios_base::eofbit; 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::badbit); } 32778: if (__err) 32778: this->setstate(__err); 32778: } 32778: return __c; 32778: } 32778: 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: basic_istream<_CharT, _Traits>:: 32778: read(char_type* __s, streamsize __n) 32778: { 32778: _M_gcount = 0; 32778: sentry __cerb(*this, true); 32778: if (__cerb) 32778: { 32778: ios_base::iostate __err = ios_base::goodbit; 32778: try 32778: { 32778: _M_gcount = this->rdbuf()->sgetn(__s, __n); 32778: if (_M_gcount != __n) 32778: __err |= (ios_base::eofbit | ios_base::failbit); 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::badbit); } 32778: if (__err) 32778: this->setstate(__err); 32778: } 32778: return *this; 32778: } 32778: 32778: template 32778: streamsize 32778: basic_istream<_CharT, _Traits>:: 32778: readsome(char_type* __s, streamsize __n) 32778: { 32778: _M_gcount = 0; 32778: sentry __cerb(*this, true); 32778: if (__cerb) 32778: { 32778: ios_base::iostate __err = ios_base::goodbit; 32778: try 32778: { 32778: 32778: const streamsize __num = this->rdbuf()->in_avail(); 32778: if (__num > 0) 32778: _M_gcount = this->rdbuf()->sgetn(__s, std::min(__num, __n)); 32778: else if (__num == -1) 32778: __err |= ios_base::eofbit; 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::badbit); } 32778: if (__err) 32778: this->setstate(__err); 32778: } 32778: return _M_gcount; 32778: } 32778: 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: basic_istream<_CharT, _Traits>:: 32778: putback(char_type __c) 32778: { 32778: 32778: 32778: _M_gcount = 0; 32778: 32778: this->clear(this->rdstate() & ~ios_base::eofbit); 32778: sentry __cerb(*this, true); 32778: if (__cerb) 32778: { 32778: ios_base::iostate __err = ios_base::goodbit; 32778: try 32778: { 32778: const int_type __eof = traits_type::eof(); 32778: __streambuf_type* __sb = this->rdbuf(); 32778: if (!__sb 32778: || traits_type::eq_int_type(__sb->sputbackc(__c), __eof)) 32778: __err |= ios_base::badbit; 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::badbit); } 32778: if (__err) 32778: this->setstate(__err); 32778: } 32778: return *this; 32778: } 32778: 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: basic_istream<_CharT, _Traits>:: 32778: unget(void) 32778: { 32778: 32778: 32778: _M_gcount = 0; 32778: 32778: this->clear(this->rdstate() & ~ios_base::eofbit); 32778: sentry __cerb(*this, true); 32778: if (__cerb) 32778: { 32778: ios_base::iostate __err = ios_base::goodbit; 32778: try 32778: { 32778: const int_type __eof = traits_type::eof(); 32778: __streambuf_type* __sb = this->rdbuf(); 32778: if (!__sb 32778: || traits_type::eq_int_type(__sb->sungetc(), __eof)) 32778: __err |= ios_base::badbit; 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::badbit); } 32778: if (__err) 32778: this->setstate(__err); 32778: } 32778: return *this; 32778: } 32778: 32778: template 32778: int 32778: basic_istream<_CharT, _Traits>:: 32778: sync(void) 32778: { 32778: 32778: 32778: int __ret = -1; 32778: sentry __cerb(*this, true); 32778: if (__cerb) 32778: { 32778: ios_base::iostate __err = ios_base::goodbit; 32778: try 32778: { 32778: __streambuf_type* __sb = this->rdbuf(); 32778: if (__sb) 32778: { 32778: if (__sb->pubsync() == -1) 32778: __err |= ios_base::badbit; 32778: else 32778: __ret = 0; 32778: } 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::badbit); } 32778: if (__err) 32778: this->setstate(__err); 32778: } 32778: return __ret; 32778: } 32778: 32778: template 32778: typename basic_istream<_CharT, _Traits>::pos_type 32778: basic_istream<_CharT, _Traits>:: 32778: tellg(void) 32778: { 32778: 32778: 32778: pos_type __ret = pos_type(-1); 32778: sentry __cerb(*this, true); 32778: if (__cerb) 32778: { 32778: try 32778: { 32778: if (!this->fail()) 32778: __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, 32778: ios_base::in); 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::badbit); } 32778: } 32778: return __ret; 32778: } 32778: 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: basic_istream<_CharT, _Traits>:: 32778: seekg(pos_type __pos) 32778: { 32778: 32778: 32778: 32778: this->clear(this->rdstate() & ~ios_base::eofbit); 32778: sentry __cerb(*this, true); 32778: if (__cerb) 32778: { 32778: ios_base::iostate __err = ios_base::goodbit; 32778: try 32778: { 32778: if (!this->fail()) 32778: { 32778: 32778: const pos_type __p = this->rdbuf()->pubseekpos(__pos, 32778: ios_base::in); 32778: 32778: 32778: if (__p == pos_type(off_type(-1))) 32778: __err |= ios_base::failbit; 32778: } 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::badbit); } 32778: if (__err) 32778: this->setstate(__err); 32778: } 32778: return *this; 32778: } 32778: 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: basic_istream<_CharT, _Traits>:: 32778: seekg(off_type __off, ios_base::seekdir __dir) 32778: { 32778: 32778: 32778: 32778: this->clear(this->rdstate() & ~ios_base::eofbit); 32778: sentry __cerb(*this, true); 32778: if (__cerb) 32778: { 32778: ios_base::iostate __err = ios_base::goodbit; 32778: try 32778: { 32778: if (!this->fail()) 32778: { 32778: 32778: const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, 32778: ios_base::in); 32778: 32778: 32778: if (__p == pos_type(off_type(-1))) 32778: __err |= ios_base::failbit; 32778: } 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: this->_M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { this->_M_setstate(ios_base::badbit); } 32778: if (__err) 32778: this->setstate(__err); 32778: } 32778: return *this; 32778: } 32778: 32778: 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) 32778: { 32778: typedef basic_istream<_CharT, _Traits> __istream_type; 32778: typedef typename __istream_type::int_type __int_type; 32778: 32778: typename __istream_type::sentry __cerb(__in, false); 32778: if (__cerb) 32778: { 32778: ios_base::iostate __err = ios_base::goodbit; 32778: try 32778: { 32778: const __int_type __cb = __in.rdbuf()->sbumpc(); 32778: if (!_Traits::eq_int_type(__cb, _Traits::eof())) 32778: __c = _Traits::to_char_type(__cb); 32778: else 32778: __err |= (ios_base::eofbit | ios_base::failbit); 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: __in._M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { __in._M_setstate(ios_base::badbit); } 32778: if (__err) 32778: __in.setstate(__err); 32778: } 32778: return __in; 32778: } 32778: 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) 32778: { 32778: typedef basic_istream<_CharT, _Traits> __istream_type; 32778: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 32778: typedef typename _Traits::int_type int_type; 32778: typedef _CharT char_type; 32778: typedef ctype<_CharT> __ctype_type; 32778: 32778: streamsize __extracted = 0; 32778: ios_base::iostate __err = ios_base::goodbit; 32778: typename __istream_type::sentry __cerb(__in, false); 32778: if (__cerb) 32778: { 32778: try 32778: { 32778: 32778: streamsize __num = __in.width(); 32778: if (__num <= 0) 32778: __num = __gnu_cxx::__numeric_traits::__max; 32778: 32778: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 32778: 32778: const int_type __eof = _Traits::eof(); 32778: __streambuf_type* __sb = __in.rdbuf(); 32778: int_type __c = __sb->sgetc(); 32778: 32778: while (__extracted < __num - 1 32778: && !_Traits::eq_int_type(__c, __eof) 32778: && !__ct.is(ctype_base::space, 32778: _Traits::to_char_type(__c))) 32778: { 32778: *__s++ = _Traits::to_char_type(__c); 32778: ++__extracted; 32778: __c = __sb->snextc(); 32778: } 32778: if (_Traits::eq_int_type(__c, __eof)) 32778: __err |= ios_base::eofbit; 32778: 32778: 32778: 32778: *__s = char_type(); 32778: __in.width(0); 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: __in._M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { __in._M_setstate(ios_base::badbit); } 32778: } 32778: if (!__extracted) 32778: __err |= ios_base::failbit; 32778: if (__err) 32778: __in.setstate(__err); 32778: return __in; 32778: } 32778: 32778: 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: ws(basic_istream<_CharT, _Traits>& __in) 32778: { 32778: typedef basic_istream<_CharT, _Traits> __istream_type; 32778: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 32778: typedef typename __istream_type::int_type __int_type; 32778: typedef ctype<_CharT> __ctype_type; 32778: 32778: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 32778: const __int_type __eof = _Traits::eof(); 32778: __streambuf_type* __sb = __in.rdbuf(); 32778: __int_type __c = __sb->sgetc(); 32778: 32778: while (!_Traits::eq_int_type(__c, __eof) 32778: && __ct.is(ctype_base::space, _Traits::to_char_type(__c))) 32778: __c = __sb->snextc(); 32778: 32778: if (_Traits::eq_int_type(__c, __eof)) 32778: __in.setstate(ios_base::eofbit); 32778: return __in; 32778: } 32778: 32778: 32778: 32778: 32778: extern template class basic_istream; 32778: extern template istream& ws(istream&); 32778: extern template istream& operator>>(istream&, char&); 32778: extern template istream& operator>>(istream&, char*); 32778: extern template istream& operator>>(istream&, unsigned char&); 32778: extern template istream& operator>>(istream&, signed char&); 32778: extern template istream& operator>>(istream&, unsigned char*); 32778: extern template istream& operator>>(istream&, signed char*); 32778: 32778: extern template istream& istream::_M_extract(unsigned short&); 32778: extern template istream& istream::_M_extract(unsigned int&); 32778: extern template istream& istream::_M_extract(long&); 32778: extern template istream& istream::_M_extract(unsigned long&); 32778: extern template istream& istream::_M_extract(bool&); 32778: 32778: extern template istream& istream::_M_extract(long long&); 32778: extern template istream& istream::_M_extract(unsigned long long&); 32778: 32778: extern template istream& istream::_M_extract(float&); 32778: extern template istream& istream::_M_extract(double&); 32778: extern template istream& istream::_M_extract(long double&); 32778: extern template istream& istream::_M_extract(void*&); 32778: 32778: extern template class basic_iostream; 32778: 32778: 32778: extern template class basic_istream; 32778: extern template wistream& ws(wistream&); 32778: extern template wistream& operator>>(wistream&, wchar_t&); 32778: extern template wistream& operator>>(wistream&, wchar_t*); 32778: 32778: extern template wistream& wistream::_M_extract(unsigned short&); 32778: extern template wistream& wistream::_M_extract(unsigned int&); 32778: extern template wistream& wistream::_M_extract(long&); 32778: extern template wistream& wistream::_M_extract(unsigned long&); 32778: extern template wistream& wistream::_M_extract(bool&); 32778: 32778: extern template wistream& wistream::_M_extract(long long&); 32778: extern template wistream& wistream::_M_extract(unsigned long long&); 32778: 32778: extern template wistream& wistream::_M_extract(float&); 32778: extern template wistream& wistream::_M_extract(double&); 32778: extern template wistream& wistream::_M_extract(long double&); 32778: extern template wistream& wistream::_M_extract(void*&); 32778: 32778: extern template class basic_iostream; 32778: 32778: 32778: 32778: 32778: } 32778: # 992 "/usr/include/c++/9/istream" 2 3 32778: # 41 "/usr/include/c++/9/iostream" 2 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 60 "/usr/include/c++/9/iostream" 3 32778: extern istream cin; 32778: extern ostream cout; 32778: extern ostream cerr; 32778: extern ostream clog; 32778: 32778: 32778: extern wistream wcin; 32778: extern wostream wcout; 32778: extern wostream wcerr; 32778: extern wostream wclog; 32778: 32778: 32778: 32778: 32778: static ios_base::Init __ioinit; 32778: 32778: 32778: } 32778: # 14 "/<>/include/HepMC3/Errors.h" 2 32778: 32778: 32778: 32778: # 16 "/<>/include/HepMC3/Errors.h" 32778: namespace HepMC3 { 32778: # 51 "/<>/include/HepMC3/Errors.h" 32778: struct Exception : public std::runtime_error { 32778: Exception(const std::string& msg) : std::runtime_error(msg) {} 32778: }; 32778: 32778: 32778: struct WeightError : public Exception { 32778: WeightError(const std::string& msg) : Exception(msg) {} 32778: }; 32778: 32778: 32778: 32778: 32778: } 32778: # 20 "/<>/include/HepMC3/Units.h" 2 32778: # 1 "/<>/include/HepMC3/Setup.h" 1 32778: # 14 "/<>/include/HepMC3/Setup.h" 32778: namespace HepMC3 { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: class Setup { 32778: 32778: 32778: Setup() {} 32778: 32778: ~Setup() {} 32778: 32778: 32778: public: 32778: 32778: 32778: 32778: 32778: 32778: static bool print_errors(); 32778: 32778: static void set_print_errors(const bool flag); 32778: 32778: 32778: static bool print_warnings(); 32778: 32778: static void set_print_warnings(const bool flag); 32778: 32778: 32778: static int debug_level(); 32778: 32778: static void set_debug_level(const int level); 32778: 32778: 32778: 32778: 32778: 32778: static const unsigned int DEFAULT_DOUBLE_ALMOST_EQUAL_MAXULPS; 32778: 32778: 32778: static const double DOUBLE_EPSILON; 32778: 32778: 32778: 32778: 32778: private: 32778: 32778: static bool m_is_printing_errors; 32778: static bool m_is_printing_warnings; 32778: static int m_debug_level; 32778: }; 32778: 32778: 32778: } 32778: # 21 "/<>/include/HepMC3/Units.h" 2 32778: 32778: 32778: namespace HepMC3 { 32778: 32778: 32778: class Units { 32778: public: 32778: 32778: enum MomentumUnit { MEV, GEV }; 32778: 32778: 32778: enum LengthUnit { MM, CM }; 32778: 32778: public: 32778: 32778: static MomentumUnit momentum_unit( const std::string& name ) { 32778: if( name.compare(0,3,"GEV") == 0 ) return GEV; 32778: if( name.compare(0,3,"MEV") == 0 ) return MEV; 32778: 32778: if ( Setup::print_errors() ) { std::cerr << "ERROR::" << "Units::momentum_unit: unrecognised unit name: '" << name <<"', setting to GEV" << std::endl; } 32778: 32778: return GEV; 32778: } 32778: 32778: 32778: static LengthUnit length_unit( const std::string& name ) { 32778: if( name.compare(0,2,"CM") == 0 ) return CM; 32778: if( name.compare(0,2,"MM") == 0 ) return MM; 32778: 32778: if ( Setup::print_errors() ) { std::cerr << "ERROR::" << "Units::length_unit: unrecognised unit name: '" << name <<"', setting to CM" << std::endl; } 32778: 32778: return CM; 32778: } 32778: 32778: 32778: static std::string name( MomentumUnit u ) { 32778: switch(u) { 32778: case MEV: 32778: return "MEV"; 32778: case GEV: 32778: return "GEV"; 32778: } 32778: 32778: return ""; 32778: } 32778: 32778: 32778: static std::string name( LengthUnit u ) { 32778: switch(u) { 32778: case MM: 32778: return "MM"; 32778: case CM: 32778: return "CM"; 32778: } 32778: 32778: return ""; 32778: } 32778: 32778: 32778: template 32778: static void convert( T &m, MomentumUnit from, MomentumUnit to ) { 32778: if( from == to ) return; 32778: 32778: if( from == GEV ) { 32778: 32778: m *= 1000.; 32778: } 32778: else if( from == MEV ) { 32778: 32778: m *= 0.001; 32778: } 32778: } 32778: 32778: 32778: template 32778: static void convert( T &m, LengthUnit from, LengthUnit to ) { 32778: if( from == to ) return; 32778: 32778: if( from == CM ) { 32778: 32778: m *= 10.0; 32778: } 32778: else if( from == MM ) { 32778: 32778: m *= 0.1; 32778: } 32778: } 32778: 32778: }; 32778: 32778: } 32778: # 14 "/<>/include/HepMC3/GenEvent.h" 2 32778: 32778: 32778: # 1 "/<>/include/HepMC3/GenPdfInfo_fwd.h" 1 32778: # 16 "/<>/include/HepMC3/GenPdfInfo_fwd.h" 32778: namespace HepMC3 { 32778: 32778: class GenPdfInfo; 32778: 32778: using GenPdfInfoPtr = std::shared_ptr; 32778: using ConstGenPdfInfoPtr = std::shared_ptr; 32778: 32778: } 32778: # 17 "/<>/include/HepMC3/GenEvent.h" 2 32778: # 1 "/<>/include/HepMC3/GenHeavyIon_fwd.h" 1 32778: # 16 "/<>/include/HepMC3/GenHeavyIon_fwd.h" 32778: namespace HepMC3 { 32778: 32778: class GenHeavyIon; 32778: 32778: using GenHeavyIonPtr = std::shared_ptr; 32778: using ConstGenHeavyIonPtr = std::shared_ptr; 32778: 32778: } 32778: # 18 "/<>/include/HepMC3/GenEvent.h" 2 32778: # 1 "/<>/include/HepMC3/GenCrossSection_fwd.h" 1 32778: # 16 "/<>/include/HepMC3/GenCrossSection_fwd.h" 32778: namespace HepMC3 { 32778: 32778: class GenCrossSection; 32778: 32778: using GenCrossSectionPtr = std::shared_ptr; 32778: using ConstGenCrossSectionPtr = std::shared_ptr; 32778: 32778: } 32778: # 19 "/<>/include/HepMC3/GenEvent.h" 2 32778: 32778: 32778: 32778: # 1 "/<>/include/HepMC3/GenHeavyIon.h" 1 32778: # 21 "/<>/include/HepMC3/GenHeavyIon.h" 32778: # 1 "/usr/include/c++/9/map" 1 3 32778: # 58 "/usr/include/c++/9/map" 3 32778: 32778: # 59 "/usr/include/c++/9/map" 3 32778: 32778: # 1 "/usr/include/c++/9/bits/stl_tree.h" 1 3 32778: # 61 "/usr/include/c++/9/bits/stl_tree.h" 3 32778: 32778: # 62 "/usr/include/c++/9/bits/stl_tree.h" 3 32778: # 75 "/usr/include/c++/9/bits/stl_tree.h" 3 32778: 32778: # 75 "/usr/include/c++/9/bits/stl_tree.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 99 "/usr/include/c++/9/bits/stl_tree.h" 3 32778: enum _Rb_tree_color { _S_red = false, _S_black = true }; 32778: 32778: struct _Rb_tree_node_base 32778: { 32778: typedef _Rb_tree_node_base* _Base_ptr; 32778: typedef const _Rb_tree_node_base* _Const_Base_ptr; 32778: 32778: _Rb_tree_color _M_color; 32778: _Base_ptr _M_parent; 32778: _Base_ptr _M_left; 32778: _Base_ptr _M_right; 32778: 32778: static _Base_ptr 32778: _S_minimum(_Base_ptr __x) noexcept 32778: { 32778: while (__x->_M_left != 0) __x = __x->_M_left; 32778: return __x; 32778: } 32778: 32778: static _Const_Base_ptr 32778: _S_minimum(_Const_Base_ptr __x) noexcept 32778: { 32778: while (__x->_M_left != 0) __x = __x->_M_left; 32778: return __x; 32778: } 32778: 32778: static _Base_ptr 32778: _S_maximum(_Base_ptr __x) noexcept 32778: { 32778: while (__x->_M_right != 0) __x = __x->_M_right; 32778: return __x; 32778: } 32778: 32778: static _Const_Base_ptr 32778: _S_maximum(_Const_Base_ptr __x) noexcept 32778: { 32778: while (__x->_M_right != 0) __x = __x->_M_right; 32778: return __x; 32778: } 32778: }; 32778: 32778: 32778: template 32778: struct _Rb_tree_key_compare 32778: { 32778: _Key_compare _M_key_compare; 32778: 32778: _Rb_tree_key_compare() 32778: noexcept(is_nothrow_default_constructible<_Key_compare>::value) 32778: 32778: : _M_key_compare() 32778: { } 32778: 32778: _Rb_tree_key_compare(const _Key_compare& __comp) 32778: : _M_key_compare(__comp) 32778: { } 32778: 32778: 32778: 32778: _Rb_tree_key_compare(const _Rb_tree_key_compare&) = default; 32778: 32778: _Rb_tree_key_compare(_Rb_tree_key_compare&& __x) 32778: noexcept(is_nothrow_copy_constructible<_Key_compare>::value) 32778: : _M_key_compare(__x._M_key_compare) 32778: { } 32778: 32778: }; 32778: 32778: 32778: struct _Rb_tree_header 32778: { 32778: _Rb_tree_node_base _M_header; 32778: size_t _M_node_count; 32778: 32778: _Rb_tree_header() noexcept 32778: { 32778: _M_header._M_color = _S_red; 32778: _M_reset(); 32778: } 32778: 32778: 32778: _Rb_tree_header(_Rb_tree_header&& __x) noexcept 32778: { 32778: if (__x._M_header._M_parent != nullptr) 32778: _M_move_data(__x); 32778: else 32778: { 32778: _M_header._M_color = _S_red; 32778: _M_reset(); 32778: } 32778: } 32778: 32778: 32778: void 32778: _M_move_data(_Rb_tree_header& __from) 32778: { 32778: _M_header._M_color = __from._M_header._M_color; 32778: _M_header._M_parent = __from._M_header._M_parent; 32778: _M_header._M_left = __from._M_header._M_left; 32778: _M_header._M_right = __from._M_header._M_right; 32778: _M_header._M_parent->_M_parent = &_M_header; 32778: _M_node_count = __from._M_node_count; 32778: 32778: __from._M_reset(); 32778: } 32778: 32778: void 32778: _M_reset() 32778: { 32778: _M_header._M_parent = 0; 32778: _M_header._M_left = &_M_header; 32778: _M_header._M_right = &_M_header; 32778: _M_node_count = 0; 32778: } 32778: }; 32778: 32778: template 32778: struct _Rb_tree_node : public _Rb_tree_node_base 32778: { 32778: typedef _Rb_tree_node<_Val>* _Link_type; 32778: # 231 "/usr/include/c++/9/bits/stl_tree.h" 3 32778: __gnu_cxx::__aligned_membuf<_Val> _M_storage; 32778: 32778: _Val* 32778: _M_valptr() 32778: { return _M_storage._M_ptr(); } 32778: 32778: const _Val* 32778: _M_valptr() const 32778: { return _M_storage._M_ptr(); } 32778: 32778: }; 32778: 32778: __attribute__ ((__pure__)) _Rb_tree_node_base* 32778: _Rb_tree_increment(_Rb_tree_node_base* __x) throw (); 32778: 32778: __attribute__ ((__pure__)) const _Rb_tree_node_base* 32778: _Rb_tree_increment(const _Rb_tree_node_base* __x) throw (); 32778: 32778: __attribute__ ((__pure__)) _Rb_tree_node_base* 32778: _Rb_tree_decrement(_Rb_tree_node_base* __x) throw (); 32778: 32778: __attribute__ ((__pure__)) const _Rb_tree_node_base* 32778: _Rb_tree_decrement(const _Rb_tree_node_base* __x) throw (); 32778: 32778: template 32778: struct _Rb_tree_iterator 32778: { 32778: typedef _Tp value_type; 32778: typedef _Tp& reference; 32778: typedef _Tp* pointer; 32778: 32778: typedef bidirectional_iterator_tag iterator_category; 32778: typedef ptrdiff_t difference_type; 32778: 32778: typedef _Rb_tree_iterator<_Tp> _Self; 32778: typedef _Rb_tree_node_base::_Base_ptr _Base_ptr; 32778: typedef _Rb_tree_node<_Tp>* _Link_type; 32778: 32778: _Rb_tree_iterator() noexcept 32778: : _M_node() { } 32778: 32778: explicit 32778: _Rb_tree_iterator(_Base_ptr __x) noexcept 32778: : _M_node(__x) { } 32778: 32778: reference 32778: operator*() const noexcept 32778: { return *static_cast<_Link_type>(_M_node)->_M_valptr(); } 32778: 32778: pointer 32778: operator->() const noexcept 32778: { return static_cast<_Link_type> (_M_node)->_M_valptr(); } 32778: 32778: _Self& 32778: operator++() noexcept 32778: { 32778: _M_node = _Rb_tree_increment(_M_node); 32778: return *this; 32778: } 32778: 32778: _Self 32778: operator++(int) noexcept 32778: { 32778: _Self __tmp = *this; 32778: _M_node = _Rb_tree_increment(_M_node); 32778: return __tmp; 32778: } 32778: 32778: _Self& 32778: operator--() noexcept 32778: { 32778: _M_node = _Rb_tree_decrement(_M_node); 32778: return *this; 32778: } 32778: 32778: _Self 32778: operator--(int) noexcept 32778: { 32778: _Self __tmp = *this; 32778: _M_node = _Rb_tree_decrement(_M_node); 32778: return __tmp; 32778: } 32778: 32778: friend bool 32778: operator==(const _Self& __x, const _Self& __y) noexcept 32778: { return __x._M_node == __y._M_node; } 32778: 32778: friend bool 32778: operator!=(const _Self& __x, const _Self& __y) noexcept 32778: { return __x._M_node != __y._M_node; } 32778: 32778: _Base_ptr _M_node; 32778: }; 32778: 32778: template 32778: struct _Rb_tree_const_iterator 32778: { 32778: typedef _Tp value_type; 32778: typedef const _Tp& reference; 32778: typedef const _Tp* pointer; 32778: 32778: typedef _Rb_tree_iterator<_Tp> iterator; 32778: 32778: typedef bidirectional_iterator_tag iterator_category; 32778: typedef ptrdiff_t difference_type; 32778: 32778: typedef _Rb_tree_const_iterator<_Tp> _Self; 32778: typedef _Rb_tree_node_base::_Const_Base_ptr _Base_ptr; 32778: typedef const _Rb_tree_node<_Tp>* _Link_type; 32778: 32778: _Rb_tree_const_iterator() noexcept 32778: : _M_node() { } 32778: 32778: explicit 32778: _Rb_tree_const_iterator(_Base_ptr __x) noexcept 32778: : _M_node(__x) { } 32778: 32778: _Rb_tree_const_iterator(const iterator& __it) noexcept 32778: : _M_node(__it._M_node) { } 32778: 32778: iterator 32778: _M_const_cast() const noexcept 32778: { return iterator(const_cast(_M_node)); } 32778: 32778: reference 32778: operator*() const noexcept 32778: { return *static_cast<_Link_type>(_M_node)->_M_valptr(); } 32778: 32778: pointer 32778: operator->() const noexcept 32778: { return static_cast<_Link_type>(_M_node)->_M_valptr(); } 32778: 32778: _Self& 32778: operator++() noexcept 32778: { 32778: _M_node = _Rb_tree_increment(_M_node); 32778: return *this; 32778: } 32778: 32778: _Self 32778: operator++(int) noexcept 32778: { 32778: _Self __tmp = *this; 32778: _M_node = _Rb_tree_increment(_M_node); 32778: return __tmp; 32778: } 32778: 32778: _Self& 32778: operator--() noexcept 32778: { 32778: _M_node = _Rb_tree_decrement(_M_node); 32778: return *this; 32778: } 32778: 32778: _Self 32778: operator--(int) noexcept 32778: { 32778: _Self __tmp = *this; 32778: _M_node = _Rb_tree_decrement(_M_node); 32778: return __tmp; 32778: } 32778: 32778: friend bool 32778: operator==(const _Self& __x, const _Self& __y) noexcept 32778: { return __x._M_node == __y._M_node; } 32778: 32778: friend bool 32778: operator!=(const _Self& __x, const _Self& __y) noexcept 32778: { return __x._M_node != __y._M_node; } 32778: 32778: _Base_ptr _M_node; 32778: }; 32778: 32778: void 32778: _Rb_tree_insert_and_rebalance(const bool __insert_left, 32778: _Rb_tree_node_base* __x, 32778: _Rb_tree_node_base* __p, 32778: _Rb_tree_node_base& __header) throw (); 32778: 32778: _Rb_tree_node_base* 32778: _Rb_tree_rebalance_for_erase(_Rb_tree_node_base* const __z, 32778: _Rb_tree_node_base& __header) throw (); 32778: # 434 "/usr/include/c++/9/bits/stl_tree.h" 3 32778: template > 32778: class _Rb_tree 32778: { 32778: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 32778: rebind<_Rb_tree_node<_Val> >::other _Node_allocator; 32778: 32778: typedef __gnu_cxx::__alloc_traits<_Node_allocator> _Alloc_traits; 32778: 32778: protected: 32778: typedef _Rb_tree_node_base* _Base_ptr; 32778: typedef const _Rb_tree_node_base* _Const_Base_ptr; 32778: typedef _Rb_tree_node<_Val>* _Link_type; 32778: typedef const _Rb_tree_node<_Val>* _Const_Link_type; 32778: 32778: private: 32778: 32778: 32778: struct _Reuse_or_alloc_node 32778: { 32778: _Reuse_or_alloc_node(_Rb_tree& __t) 32778: : _M_root(__t._M_root()), _M_nodes(__t._M_rightmost()), _M_t(__t) 32778: { 32778: if (_M_root) 32778: { 32778: _M_root->_M_parent = 0; 32778: 32778: if (_M_nodes->_M_left) 32778: _M_nodes = _M_nodes->_M_left; 32778: } 32778: else 32778: _M_nodes = 0; 32778: } 32778: 32778: 32778: _Reuse_or_alloc_node(const _Reuse_or_alloc_node&) = delete; 32778: 32778: 32778: ~_Reuse_or_alloc_node() 32778: { _M_t._M_erase(static_cast<_Link_type>(_M_root)); } 32778: 32778: template 32778: _Link_type 32778: 32778: 32778: 32778: operator()(_Arg&& __arg) 32778: 32778: { 32778: _Link_type __node = static_cast<_Link_type>(_M_extract()); 32778: if (__node) 32778: { 32778: _M_t._M_destroy_node(__node); 32778: _M_t._M_construct_node(__node, std::forward<_Arg>(__arg)); 32778: return __node; 32778: } 32778: 32778: return _M_t._M_create_node(std::forward<_Arg>(__arg)); 32778: } 32778: 32778: private: 32778: _Base_ptr 32778: _M_extract() 32778: { 32778: if (!_M_nodes) 32778: return _M_nodes; 32778: 32778: _Base_ptr __node = _M_nodes; 32778: _M_nodes = _M_nodes->_M_parent; 32778: if (_M_nodes) 32778: { 32778: if (_M_nodes->_M_right == __node) 32778: { 32778: _M_nodes->_M_right = 0; 32778: 32778: if (_M_nodes->_M_left) 32778: { 32778: _M_nodes = _M_nodes->_M_left; 32778: 32778: while (_M_nodes->_M_right) 32778: _M_nodes = _M_nodes->_M_right; 32778: 32778: if (_M_nodes->_M_left) 32778: _M_nodes = _M_nodes->_M_left; 32778: } 32778: } 32778: else 32778: _M_nodes->_M_left = 0; 32778: } 32778: else 32778: _M_root = 0; 32778: 32778: return __node; 32778: } 32778: 32778: _Base_ptr _M_root; 32778: _Base_ptr _M_nodes; 32778: _Rb_tree& _M_t; 32778: }; 32778: 32778: 32778: 32778: struct _Alloc_node 32778: { 32778: _Alloc_node(_Rb_tree& __t) 32778: : _M_t(__t) { } 32778: 32778: template 32778: _Link_type 32778: 32778: 32778: 32778: operator()(_Arg&& __arg) const 32778: 32778: { return _M_t._M_create_node(std::forward<_Arg>(__arg)); } 32778: 32778: private: 32778: _Rb_tree& _M_t; 32778: }; 32778: 32778: public: 32778: typedef _Key key_type; 32778: typedef _Val value_type; 32778: typedef value_type* pointer; 32778: typedef const value_type* const_pointer; 32778: typedef value_type& reference; 32778: typedef const value_type& const_reference; 32778: typedef size_t size_type; 32778: typedef ptrdiff_t difference_type; 32778: typedef _Alloc allocator_type; 32778: 32778: _Node_allocator& 32778: _M_get_Node_allocator() noexcept 32778: { return this->_M_impl; } 32778: 32778: const _Node_allocator& 32778: _M_get_Node_allocator() const noexcept 32778: { return this->_M_impl; } 32778: 32778: allocator_type 32778: get_allocator() const noexcept 32778: { return allocator_type(_M_get_Node_allocator()); } 32778: 32778: protected: 32778: _Link_type 32778: _M_get_node() 32778: { return _Alloc_traits::allocate(_M_get_Node_allocator(), 1); } 32778: 32778: void 32778: _M_put_node(_Link_type __p) noexcept 32778: { _Alloc_traits::deallocate(_M_get_Node_allocator(), __p, 1); } 32778: # 607 "/usr/include/c++/9/bits/stl_tree.h" 3 32778: template 32778: void 32778: _M_construct_node(_Link_type __node, _Args&&... __args) 32778: { 32778: try 32778: { 32778: ::new(__node) _Rb_tree_node<_Val>; 32778: _Alloc_traits::construct(_M_get_Node_allocator(), 32778: __node->_M_valptr(), 32778: std::forward<_Args>(__args)...); 32778: } 32778: catch(...) 32778: { 32778: __node->~_Rb_tree_node<_Val>(); 32778: _M_put_node(__node); 32778: throw; 32778: } 32778: } 32778: 32778: template 32778: _Link_type 32778: _M_create_node(_Args&&... __args) 32778: { 32778: _Link_type __tmp = _M_get_node(); 32778: _M_construct_node(__tmp, std::forward<_Args>(__args)...); 32778: return __tmp; 32778: } 32778: 32778: 32778: void 32778: _M_destroy_node(_Link_type __p) noexcept 32778: { 32778: 32778: 32778: 32778: _Alloc_traits::destroy(_M_get_Node_allocator(), __p->_M_valptr()); 32778: __p->~_Rb_tree_node<_Val>(); 32778: 32778: } 32778: 32778: void 32778: _M_drop_node(_Link_type __p) noexcept 32778: { 32778: _M_destroy_node(__p); 32778: _M_put_node(__p); 32778: } 32778: 32778: template 32778: _Link_type 32778: _M_clone_node(_Const_Link_type __x, _NodeGen& __node_gen) 32778: { 32778: _Link_type __tmp = __node_gen(*__x->_M_valptr()); 32778: __tmp->_M_color = __x->_M_color; 32778: __tmp->_M_left = 0; 32778: __tmp->_M_right = 0; 32778: return __tmp; 32778: } 32778: 32778: protected: 32778: 32778: 32778: 32778: 32778: template 32778: 32778: struct _Rb_tree_impl 32778: : public _Node_allocator 32778: , public _Rb_tree_key_compare<_Key_compare> 32778: , public _Rb_tree_header 32778: { 32778: typedef _Rb_tree_key_compare<_Key_compare> _Base_key_compare; 32778: 32778: _Rb_tree_impl() 32778: noexcept(is_nothrow_default_constructible<_Node_allocator>::value && is_nothrow_default_constructible<_Base_key_compare>::value) 32778: 32778: 32778: : _Node_allocator() 32778: { } 32778: 32778: _Rb_tree_impl(const _Rb_tree_impl& __x) 32778: : _Node_allocator(_Alloc_traits::_S_select_on_copy(__x)) 32778: , _Base_key_compare(__x._M_key_compare) 32778: { } 32778: 32778: 32778: 32778: 32778: 32778: 32778: _Rb_tree_impl(_Rb_tree_impl&&) = default; 32778: 32778: explicit 32778: _Rb_tree_impl(_Node_allocator&& __a) 32778: : _Node_allocator(std::move(__a)) 32778: { } 32778: 32778: _Rb_tree_impl(_Rb_tree_impl&& __x, _Node_allocator&& __a) 32778: : _Node_allocator(std::move(__a)), 32778: _Base_key_compare(std::move(__x)), 32778: _Rb_tree_header(std::move(__x)) 32778: { } 32778: 32778: _Rb_tree_impl(const _Key_compare& __comp, _Node_allocator&& __a) 32778: : _Node_allocator(std::move(__a)), _Base_key_compare(__comp) 32778: { } 32778: 32778: }; 32778: 32778: _Rb_tree_impl<_Compare> _M_impl; 32778: 32778: protected: 32778: _Base_ptr& 32778: _M_root() noexcept 32778: { return this->_M_impl._M_header._M_parent; } 32778: 32778: _Const_Base_ptr 32778: _M_root() const noexcept 32778: { return this->_M_impl._M_header._M_parent; } 32778: 32778: _Base_ptr& 32778: _M_leftmost() noexcept 32778: { return this->_M_impl._M_header._M_left; } 32778: 32778: _Const_Base_ptr 32778: _M_leftmost() const noexcept 32778: { return this->_M_impl._M_header._M_left; } 32778: 32778: _Base_ptr& 32778: _M_rightmost() noexcept 32778: { return this->_M_impl._M_header._M_right; } 32778: 32778: _Const_Base_ptr 32778: _M_rightmost() const noexcept 32778: { return this->_M_impl._M_header._M_right; } 32778: 32778: _Link_type 32778: _M_begin() noexcept 32778: { return static_cast<_Link_type>(this->_M_impl._M_header._M_parent); } 32778: 32778: _Const_Link_type 32778: _M_begin() const noexcept 32778: { 32778: return static_cast<_Const_Link_type> 32778: (this->_M_impl._M_header._M_parent); 32778: } 32778: 32778: _Base_ptr 32778: _M_end() noexcept 32778: { return &this->_M_impl._M_header; } 32778: 32778: _Const_Base_ptr 32778: _M_end() const noexcept 32778: { return &this->_M_impl._M_header; } 32778: 32778: static const_reference 32778: _S_value(_Const_Link_type __x) 32778: { return *__x->_M_valptr(); } 32778: 32778: static const _Key& 32778: _S_key(_Const_Link_type __x) 32778: { 32778: 32778: 32778: 32778: static_assert(__is_invocable<_Compare&, const _Key&, const _Key&>{}, 32778: "comparison object must be invocable " 32778: "with two arguments of key type"); 32778: # 785 "/usr/include/c++/9/bits/stl_tree.h" 3 32778: return _KeyOfValue()(*__x->_M_valptr()); 32778: } 32778: 32778: static _Link_type 32778: _S_left(_Base_ptr __x) noexcept 32778: { return static_cast<_Link_type>(__x->_M_left); } 32778: 32778: static _Const_Link_type 32778: _S_left(_Const_Base_ptr __x) noexcept 32778: { return static_cast<_Const_Link_type>(__x->_M_left); } 32778: 32778: static _Link_type 32778: _S_right(_Base_ptr __x) noexcept 32778: { return static_cast<_Link_type>(__x->_M_right); } 32778: 32778: static _Const_Link_type 32778: _S_right(_Const_Base_ptr __x) noexcept 32778: { return static_cast<_Const_Link_type>(__x->_M_right); } 32778: 32778: static const_reference 32778: _S_value(_Const_Base_ptr __x) 32778: { return *static_cast<_Const_Link_type>(__x)->_M_valptr(); } 32778: 32778: static const _Key& 32778: _S_key(_Const_Base_ptr __x) 32778: { return _S_key(static_cast<_Const_Link_type>(__x)); } 32778: 32778: static _Base_ptr 32778: _S_minimum(_Base_ptr __x) noexcept 32778: { return _Rb_tree_node_base::_S_minimum(__x); } 32778: 32778: static _Const_Base_ptr 32778: _S_minimum(_Const_Base_ptr __x) noexcept 32778: { return _Rb_tree_node_base::_S_minimum(__x); } 32778: 32778: static _Base_ptr 32778: _S_maximum(_Base_ptr __x) noexcept 32778: { return _Rb_tree_node_base::_S_maximum(__x); } 32778: 32778: static _Const_Base_ptr 32778: _S_maximum(_Const_Base_ptr __x) noexcept 32778: { return _Rb_tree_node_base::_S_maximum(__x); } 32778: 32778: public: 32778: typedef _Rb_tree_iterator iterator; 32778: typedef _Rb_tree_const_iterator const_iterator; 32778: 32778: typedef std::reverse_iterator reverse_iterator; 32778: typedef std::reverse_iterator const_reverse_iterator; 32778: # 842 "/usr/include/c++/9/bits/stl_tree.h" 3 32778: pair<_Base_ptr, _Base_ptr> 32778: _M_get_insert_unique_pos(const key_type& __k); 32778: 32778: pair<_Base_ptr, _Base_ptr> 32778: _M_get_insert_equal_pos(const key_type& __k); 32778: 32778: pair<_Base_ptr, _Base_ptr> 32778: _M_get_insert_hint_unique_pos(const_iterator __pos, 32778: const key_type& __k); 32778: 32778: pair<_Base_ptr, _Base_ptr> 32778: _M_get_insert_hint_equal_pos(const_iterator __pos, 32778: const key_type& __k); 32778: 32778: private: 32778: 32778: template 32778: iterator 32778: _M_insert_(_Base_ptr __x, _Base_ptr __y, _Arg&& __v, _NodeGen&); 32778: 32778: iterator 32778: _M_insert_node(_Base_ptr __x, _Base_ptr __y, _Link_type __z); 32778: 32778: template 32778: iterator 32778: _M_insert_lower(_Base_ptr __y, _Arg&& __v); 32778: 32778: template 32778: iterator 32778: _M_insert_equal_lower(_Arg&& __x); 32778: 32778: iterator 32778: _M_insert_lower_node(_Base_ptr __p, _Link_type __z); 32778: 32778: iterator 32778: _M_insert_equal_lower_node(_Link_type __z); 32778: # 893 "/usr/include/c++/9/bits/stl_tree.h" 3 32778: template 32778: _Link_type 32778: _M_copy(_Const_Link_type __x, _Base_ptr __p, _NodeGen&); 32778: 32778: template 32778: _Link_type 32778: _M_copy(const _Rb_tree& __x, _NodeGen& __gen) 32778: { 32778: _Link_type __root = _M_copy(__x._M_begin(), _M_end(), __gen); 32778: _M_leftmost() = _S_minimum(__root); 32778: _M_rightmost() = _S_maximum(__root); 32778: _M_impl._M_node_count = __x._M_impl._M_node_count; 32778: return __root; 32778: } 32778: 32778: _Link_type 32778: _M_copy(const _Rb_tree& __x) 32778: { 32778: _Alloc_node __an(*this); 32778: return _M_copy(__x, __an); 32778: } 32778: 32778: void 32778: _M_erase(_Link_type __x); 32778: 32778: iterator 32778: _M_lower_bound(_Link_type __x, _Base_ptr __y, 32778: const _Key& __k); 32778: 32778: const_iterator 32778: _M_lower_bound(_Const_Link_type __x, _Const_Base_ptr __y, 32778: const _Key& __k) const; 32778: 32778: iterator 32778: _M_upper_bound(_Link_type __x, _Base_ptr __y, 32778: const _Key& __k); 32778: 32778: const_iterator 32778: _M_upper_bound(_Const_Link_type __x, _Const_Base_ptr __y, 32778: const _Key& __k) const; 32778: 32778: public: 32778: 32778: 32778: 32778: 32778: _Rb_tree() = default; 32778: 32778: 32778: _Rb_tree(const _Compare& __comp, 32778: const allocator_type& __a = allocator_type()) 32778: : _M_impl(__comp, _Node_allocator(__a)) { } 32778: 32778: _Rb_tree(const _Rb_tree& __x) 32778: : _M_impl(__x._M_impl) 32778: { 32778: if (__x._M_root() != 0) 32778: _M_root() = _M_copy(__x); 32778: } 32778: 32778: 32778: _Rb_tree(const allocator_type& __a) 32778: : _M_impl(_Node_allocator(__a)) 32778: { } 32778: 32778: _Rb_tree(const _Rb_tree& __x, const allocator_type& __a) 32778: : _M_impl(__x._M_impl._M_key_compare, _Node_allocator(__a)) 32778: { 32778: if (__x._M_root() != nullptr) 32778: _M_root() = _M_copy(__x); 32778: } 32778: 32778: _Rb_tree(_Rb_tree&&) = default; 32778: 32778: _Rb_tree(_Rb_tree&& __x, const allocator_type& __a) 32778: : _Rb_tree(std::move(__x), _Node_allocator(__a)) 32778: { } 32778: 32778: private: 32778: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a, true_type) 32778: noexcept(is_nothrow_default_constructible<_Compare>::value) 32778: : _M_impl(std::move(__x._M_impl), std::move(__a)) 32778: { } 32778: 32778: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a, false_type) 32778: : _M_impl(__x._M_impl._M_key_compare, std::move(__a)) 32778: { 32778: if (__x._M_root() != nullptr) 32778: _M_move_data(__x, false_type{}); 32778: } 32778: 32778: public: 32778: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a) 32778: noexcept( noexcept( 32778: _Rb_tree(std::declval<_Rb_tree&&>(), std::declval<_Node_allocator&&>(), 32778: std::declval())) ) 32778: : _Rb_tree(std::move(__x), std::move(__a), 32778: typename _Alloc_traits::is_always_equal{}) 32778: { } 32778: 32778: 32778: ~_Rb_tree() noexcept 32778: { _M_erase(_M_begin()); } 32778: 32778: _Rb_tree& 32778: operator=(const _Rb_tree& __x); 32778: 32778: 32778: _Compare 32778: key_comp() const 32778: { return _M_impl._M_key_compare; } 32778: 32778: iterator 32778: begin() noexcept 32778: { return iterator(this->_M_impl._M_header._M_left); } 32778: 32778: const_iterator 32778: begin() const noexcept 32778: { return const_iterator(this->_M_impl._M_header._M_left); } 32778: 32778: iterator 32778: end() noexcept 32778: { return iterator(&this->_M_impl._M_header); } 32778: 32778: const_iterator 32778: end() const noexcept 32778: { return const_iterator(&this->_M_impl._M_header); } 32778: 32778: reverse_iterator 32778: rbegin() noexcept 32778: { return reverse_iterator(end()); } 32778: 32778: const_reverse_iterator 32778: rbegin() const noexcept 32778: { return const_reverse_iterator(end()); } 32778: 32778: reverse_iterator 32778: rend() noexcept 32778: { return reverse_iterator(begin()); } 32778: 32778: const_reverse_iterator 32778: rend() const noexcept 32778: { return const_reverse_iterator(begin()); } 32778: 32778: bool 32778: empty() const noexcept 32778: { return _M_impl._M_node_count == 0; } 32778: 32778: size_type 32778: size() const noexcept 32778: { return _M_impl._M_node_count; } 32778: 32778: size_type 32778: max_size() const noexcept 32778: { return _Alloc_traits::max_size(_M_get_Node_allocator()); } 32778: 32778: void 32778: swap(_Rb_tree& __t) 32778: noexcept(__is_nothrow_swappable<_Compare>::value); 32778: 32778: 32778: 32778: template 32778: pair 32778: _M_insert_unique(_Arg&& __x); 32778: 32778: template 32778: iterator 32778: _M_insert_equal(_Arg&& __x); 32778: 32778: template 32778: iterator 32778: _M_insert_unique_(const_iterator __pos, _Arg&& __x, _NodeGen&); 32778: 32778: template 32778: iterator 32778: _M_insert_unique_(const_iterator __pos, _Arg&& __x) 32778: { 32778: _Alloc_node __an(*this); 32778: return _M_insert_unique_(__pos, std::forward<_Arg>(__x), __an); 32778: } 32778: 32778: template 32778: iterator 32778: _M_insert_equal_(const_iterator __pos, _Arg&& __x, _NodeGen&); 32778: 32778: template 32778: iterator 32778: _M_insert_equal_(const_iterator __pos, _Arg&& __x) 32778: { 32778: _Alloc_node __an(*this); 32778: return _M_insert_equal_(__pos, std::forward<_Arg>(__x), __an); 32778: } 32778: 32778: template 32778: pair 32778: _M_emplace_unique(_Args&&... __args); 32778: 32778: template 32778: iterator 32778: _M_emplace_equal(_Args&&... __args); 32778: 32778: template 32778: iterator 32778: _M_emplace_hint_unique(const_iterator __pos, _Args&&... __args); 32778: 32778: template 32778: iterator 32778: _M_emplace_hint_equal(const_iterator __pos, _Args&&... __args); 32778: 32778: template 32778: using __same_value_type 32778: = is_same::value_type>; 32778: 32778: template 32778: __enable_if_t<__same_value_type<_InputIterator>::value> 32778: _M_insert_range_unique(_InputIterator __first, _InputIterator __last) 32778: { 32778: _Alloc_node __an(*this); 32778: for (; __first != __last; ++__first) 32778: _M_insert_unique_(end(), *__first, __an); 32778: } 32778: 32778: template 32778: __enable_if_t::value> 32778: _M_insert_range_unique(_InputIterator __first, _InputIterator __last) 32778: { 32778: for (; __first != __last; ++__first) 32778: _M_emplace_unique(*__first); 32778: } 32778: 32778: template 32778: __enable_if_t<__same_value_type<_InputIterator>::value> 32778: _M_insert_range_equal(_InputIterator __first, _InputIterator __last) 32778: { 32778: _Alloc_node __an(*this); 32778: for (; __first != __last; ++__first) 32778: _M_insert_equal_(end(), *__first, __an); 32778: } 32778: 32778: template 32778: __enable_if_t::value> 32778: _M_insert_range_equal(_InputIterator __first, _InputIterator __last) 32778: { 32778: _Alloc_node __an(*this); 32778: for (; __first != __last; ++__first) 32778: _M_emplace_equal(*__first); 32778: } 32778: # 1190 "/usr/include/c++/9/bits/stl_tree.h" 3 32778: private: 32778: void 32778: _M_erase_aux(const_iterator __position); 32778: 32778: void 32778: _M_erase_aux(const_iterator __first, const_iterator __last); 32778: 32778: public: 32778: 32778: 32778: 32778: __attribute ((__abi_tag__ ("cxx11"))) 32778: iterator 32778: erase(const_iterator __position) 32778: { 32778: ; 32778: const_iterator __result = __position; 32778: ++__result; 32778: _M_erase_aux(__position); 32778: return __result._M_const_cast(); 32778: } 32778: 32778: 32778: __attribute ((__abi_tag__ ("cxx11"))) 32778: iterator 32778: erase(iterator __position) 32778: { 32778: ; 32778: iterator __result = __position; 32778: ++__result; 32778: _M_erase_aux(__position); 32778: return __result; 32778: } 32778: # 1238 "/usr/include/c++/9/bits/stl_tree.h" 3 32778: size_type 32778: erase(const key_type& __x); 32778: 32778: 32778: 32778: 32778: __attribute ((__abi_tag__ ("cxx11"))) 32778: iterator 32778: erase(const_iterator __first, const_iterator __last) 32778: { 32778: _M_erase_aux(__first, __last); 32778: return __last._M_const_cast(); 32778: } 32778: # 1260 "/usr/include/c++/9/bits/stl_tree.h" 3 32778: void 32778: erase(const key_type* __first, const key_type* __last); 32778: 32778: void 32778: clear() noexcept 32778: { 32778: _M_erase(_M_begin()); 32778: _M_impl._M_reset(); 32778: } 32778: 32778: 32778: iterator 32778: find(const key_type& __k); 32778: 32778: const_iterator 32778: find(const key_type& __k) const; 32778: 32778: size_type 32778: count(const key_type& __k) const; 32778: 32778: iterator 32778: lower_bound(const key_type& __k) 32778: { return _M_lower_bound(_M_begin(), _M_end(), __k); } 32778: 32778: const_iterator 32778: lower_bound(const key_type& __k) const 32778: { return _M_lower_bound(_M_begin(), _M_end(), __k); } 32778: 32778: iterator 32778: upper_bound(const key_type& __k) 32778: { return _M_upper_bound(_M_begin(), _M_end(), __k); } 32778: 32778: const_iterator 32778: upper_bound(const key_type& __k) const 32778: { return _M_upper_bound(_M_begin(), _M_end(), __k); } 32778: 32778: pair 32778: equal_range(const key_type& __k); 32778: 32778: pair 32778: equal_range(const key_type& __k) const; 32778: # 1411 "/usr/include/c++/9/bits/stl_tree.h" 3 32778: bool 32778: __rb_verify() const; 32778: 32778: 32778: _Rb_tree& 32778: operator=(_Rb_tree&&) 32778: noexcept(_Alloc_traits::_S_nothrow_move() 32778: && is_nothrow_move_assignable<_Compare>::value); 32778: 32778: template 32778: void 32778: _M_assign_unique(_Iterator, _Iterator); 32778: 32778: template 32778: void 32778: _M_assign_equal(_Iterator, _Iterator); 32778: 32778: private: 32778: 32778: void 32778: _M_move_data(_Rb_tree& __x, true_type) 32778: { _M_impl._M_move_data(__x._M_impl); } 32778: 32778: 32778: 32778: void 32778: _M_move_data(_Rb_tree&, false_type); 32778: 32778: 32778: void 32778: _M_move_assign(_Rb_tree&, true_type); 32778: 32778: 32778: 32778: void 32778: _M_move_assign(_Rb_tree&, false_type); 32778: # 1615 "/usr/include/c++/9/bits/stl_tree.h" 3 32778: friend bool 32778: operator==(const _Rb_tree& __x, const _Rb_tree& __y) 32778: { 32778: return __x.size() == __y.size() 32778: && std::equal(__x.begin(), __x.end(), __y.begin()); 32778: } 32778: 32778: friend bool 32778: operator<(const _Rb_tree& __x, const _Rb_tree& __y) 32778: { 32778: return std::lexicographical_compare(__x.begin(), __x.end(), 32778: __y.begin(), __y.end()); 32778: } 32778: 32778: friend bool __attribute__ ((__deprecated__)) 32778: operator!=(const _Rb_tree& __x, const _Rb_tree& __y) 32778: { return !(__x == __y); } 32778: 32778: friend bool __attribute__ ((__deprecated__)) 32778: operator>(const _Rb_tree& __x, const _Rb_tree& __y) 32778: { return __y < __x; } 32778: 32778: friend bool __attribute__ ((__deprecated__)) 32778: operator<=(const _Rb_tree& __x, const _Rb_tree& __y) 32778: { return !(__y < __x); } 32778: 32778: friend bool __attribute__ ((__deprecated__)) 32778: operator>=(const _Rb_tree& __x, const _Rb_tree& __y) 32778: { return !(__x < __y); } 32778: }; 32778: 32778: template 32778: inline void 32778: swap(_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y) 32778: { __x.swap(__y); } 32778: 32778: 32778: template 32778: void 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: _M_move_data(_Rb_tree& __x, false_type) 32778: { 32778: if (_M_get_Node_allocator() == __x._M_get_Node_allocator()) 32778: _M_move_data(__x, true_type()); 32778: else 32778: { 32778: _Alloc_node __an(*this); 32778: auto __lbd = 32778: [&__an](const value_type& __cval) 32778: { 32778: auto& __val = const_cast(__cval); 32778: return __an(std::move_if_noexcept(__val)); 32778: }; 32778: _M_root() = _M_copy(__x, __lbd); 32778: } 32778: } 32778: 32778: template 32778: inline void 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: _M_move_assign(_Rb_tree& __x, true_type) 32778: { 32778: clear(); 32778: if (__x._M_root() != nullptr) 32778: _M_move_data(__x, true_type()); 32778: std::__alloc_on_move(_M_get_Node_allocator(), 32778: __x._M_get_Node_allocator()); 32778: } 32778: 32778: template 32778: void 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: _M_move_assign(_Rb_tree& __x, false_type) 32778: { 32778: if (_M_get_Node_allocator() == __x._M_get_Node_allocator()) 32778: return _M_move_assign(__x, true_type{}); 32778: 32778: 32778: 32778: _Reuse_or_alloc_node __roan(*this); 32778: _M_impl._M_reset(); 32778: if (__x._M_root() != nullptr) 32778: { 32778: auto __lbd = 32778: [&__roan](const value_type& __cval) 32778: { 32778: auto& __val = const_cast(__cval); 32778: return __roan(std::move_if_noexcept(__val)); 32778: }; 32778: _M_root() = _M_copy(__x, __lbd); 32778: __x.clear(); 32778: } 32778: } 32778: 32778: template 32778: inline _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: operator=(_Rb_tree&& __x) 32778: noexcept(_Alloc_traits::_S_nothrow_move() 32778: && is_nothrow_move_assignable<_Compare>::value) 32778: { 32778: _M_impl._M_key_compare = std::move(__x._M_impl._M_key_compare); 32778: _M_move_assign(__x, __bool_constant<_Alloc_traits::_S_nothrow_move()>()); 32778: return *this; 32778: } 32778: 32778: template 32778: template 32778: void 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: _M_assign_unique(_Iterator __first, _Iterator __last) 32778: { 32778: _Reuse_or_alloc_node __roan(*this); 32778: _M_impl._M_reset(); 32778: for (; __first != __last; ++__first) 32778: _M_insert_unique_(end(), *__first, __roan); 32778: } 32778: 32778: template 32778: template 32778: void 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: _M_assign_equal(_Iterator __first, _Iterator __last) 32778: { 32778: _Reuse_or_alloc_node __roan(*this); 32778: _M_impl._M_reset(); 32778: for (; __first != __last; ++__first) 32778: _M_insert_equal_(end(), *__first, __roan); 32778: } 32778: 32778: 32778: template 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: operator=(const _Rb_tree& __x) 32778: { 32778: if (this != &__x) 32778: { 32778: 32778: 32778: if (_Alloc_traits::_S_propagate_on_copy_assign()) 32778: { 32778: auto& __this_alloc = this->_M_get_Node_allocator(); 32778: auto& __that_alloc = __x._M_get_Node_allocator(); 32778: if (!_Alloc_traits::_S_always_equal() 32778: && __this_alloc != __that_alloc) 32778: { 32778: 32778: 32778: clear(); 32778: std::__alloc_on_copy(__this_alloc, __that_alloc); 32778: } 32778: } 32778: 32778: 32778: _Reuse_or_alloc_node __roan(*this); 32778: _M_impl._M_reset(); 32778: _M_impl._M_key_compare = __x._M_impl._M_key_compare; 32778: if (__x._M_root() != 0) 32778: _M_root() = _M_copy(__x, __roan); 32778: } 32778: 32778: return *this; 32778: } 32778: 32778: template 32778: 32778: template 32778: 32778: 32778: 32778: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: _M_insert_(_Base_ptr __x, _Base_ptr __p, 32778: 32778: _Arg&& __v, 32778: 32778: 32778: 32778: _NodeGen& __node_gen) 32778: { 32778: bool __insert_left = (__x != 0 || __p == _M_end() 32778: || _M_impl._M_key_compare(_KeyOfValue()(__v), 32778: _S_key(__p))); 32778: 32778: _Link_type __z = __node_gen(std::forward<_Arg>(__v)); 32778: 32778: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 32778: this->_M_impl._M_header); 32778: ++_M_impl._M_node_count; 32778: return iterator(__z); 32778: } 32778: 32778: template 32778: 32778: template 32778: 32778: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: 32778: _M_insert_lower(_Base_ptr __p, _Arg&& __v) 32778: 32778: 32778: 32778: { 32778: bool __insert_left = (__p == _M_end() 32778: || !_M_impl._M_key_compare(_S_key(__p), 32778: _KeyOfValue()(__v))); 32778: 32778: _Link_type __z = _M_create_node(std::forward<_Arg>(__v)); 32778: 32778: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 32778: this->_M_impl._M_header); 32778: ++_M_impl._M_node_count; 32778: return iterator(__z); 32778: } 32778: 32778: template 32778: 32778: template 32778: 32778: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: 32778: _M_insert_equal_lower(_Arg&& __v) 32778: 32778: 32778: 32778: { 32778: _Link_type __x = _M_begin(); 32778: _Base_ptr __y = _M_end(); 32778: while (__x != 0) 32778: { 32778: __y = __x; 32778: __x = !_M_impl._M_key_compare(_S_key(__x), _KeyOfValue()(__v)) ? 32778: _S_left(__x) : _S_right(__x); 32778: } 32778: return _M_insert_lower(__y, std::forward<_Arg>(__v)); 32778: } 32778: 32778: template 32778: template 32778: typename _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>::_Link_type 32778: _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>:: 32778: _M_copy(_Const_Link_type __x, _Base_ptr __p, _NodeGen& __node_gen) 32778: { 32778: 32778: _Link_type __top = _M_clone_node(__x, __node_gen); 32778: __top->_M_parent = __p; 32778: 32778: try 32778: { 32778: if (__x->_M_right) 32778: __top->_M_right = _M_copy(_S_right(__x), __top, __node_gen); 32778: __p = __top; 32778: __x = _S_left(__x); 32778: 32778: while (__x != 0) 32778: { 32778: _Link_type __y = _M_clone_node(__x, __node_gen); 32778: __p->_M_left = __y; 32778: __y->_M_parent = __p; 32778: if (__x->_M_right) 32778: __y->_M_right = _M_copy(_S_right(__x), __y, __node_gen); 32778: __p = __y; 32778: __x = _S_left(__x); 32778: } 32778: } 32778: catch(...) 32778: { 32778: _M_erase(__top); 32778: throw; 32778: } 32778: return __top; 32778: } 32778: 32778: template 32778: void 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: _M_erase(_Link_type __x) 32778: { 32778: 32778: while (__x != 0) 32778: { 32778: _M_erase(_S_right(__x)); 32778: _Link_type __y = _S_left(__x); 32778: _M_drop_node(__x); 32778: __x = __y; 32778: } 32778: } 32778: 32778: template 32778: typename _Rb_tree<_Key, _Val, _KeyOfValue, 32778: _Compare, _Alloc>::iterator 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: _M_lower_bound(_Link_type __x, _Base_ptr __y, 32778: const _Key& __k) 32778: { 32778: while (__x != 0) 32778: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 32778: __y = __x, __x = _S_left(__x); 32778: else 32778: __x = _S_right(__x); 32778: return iterator(__y); 32778: } 32778: 32778: template 32778: typename _Rb_tree<_Key, _Val, _KeyOfValue, 32778: _Compare, _Alloc>::const_iterator 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: _M_lower_bound(_Const_Link_type __x, _Const_Base_ptr __y, 32778: const _Key& __k) const 32778: { 32778: while (__x != 0) 32778: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 32778: __y = __x, __x = _S_left(__x); 32778: else 32778: __x = _S_right(__x); 32778: return const_iterator(__y); 32778: } 32778: 32778: template 32778: typename _Rb_tree<_Key, _Val, _KeyOfValue, 32778: _Compare, _Alloc>::iterator 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: _M_upper_bound(_Link_type __x, _Base_ptr __y, 32778: const _Key& __k) 32778: { 32778: while (__x != 0) 32778: if (_M_impl._M_key_compare(__k, _S_key(__x))) 32778: __y = __x, __x = _S_left(__x); 32778: else 32778: __x = _S_right(__x); 32778: return iterator(__y); 32778: } 32778: 32778: template 32778: typename _Rb_tree<_Key, _Val, _KeyOfValue, 32778: _Compare, _Alloc>::const_iterator 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: _M_upper_bound(_Const_Link_type __x, _Const_Base_ptr __y, 32778: const _Key& __k) const 32778: { 32778: while (__x != 0) 32778: if (_M_impl._M_key_compare(__k, _S_key(__x))) 32778: __y = __x, __x = _S_left(__x); 32778: else 32778: __x = _S_right(__x); 32778: return const_iterator(__y); 32778: } 32778: 32778: template 32778: pair::iterator, 32778: typename _Rb_tree<_Key, _Val, _KeyOfValue, 32778: _Compare, _Alloc>::iterator> 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: equal_range(const _Key& __k) 32778: { 32778: _Link_type __x = _M_begin(); 32778: _Base_ptr __y = _M_end(); 32778: while (__x != 0) 32778: { 32778: if (_M_impl._M_key_compare(_S_key(__x), __k)) 32778: __x = _S_right(__x); 32778: else if (_M_impl._M_key_compare(__k, _S_key(__x))) 32778: __y = __x, __x = _S_left(__x); 32778: else 32778: { 32778: _Link_type __xu(__x); 32778: _Base_ptr __yu(__y); 32778: __y = __x, __x = _S_left(__x); 32778: __xu = _S_right(__xu); 32778: return pair(_M_lower_bound(__x, __y, __k), 32778: _M_upper_bound(__xu, __yu, __k)); 32778: } 32778: } 32778: return pair(iterator(__y), 32778: iterator(__y)); 32778: } 32778: 32778: template 32778: pair::const_iterator, 32778: typename _Rb_tree<_Key, _Val, _KeyOfValue, 32778: _Compare, _Alloc>::const_iterator> 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: equal_range(const _Key& __k) const 32778: { 32778: _Const_Link_type __x = _M_begin(); 32778: _Const_Base_ptr __y = _M_end(); 32778: while (__x != 0) 32778: { 32778: if (_M_impl._M_key_compare(_S_key(__x), __k)) 32778: __x = _S_right(__x); 32778: else if (_M_impl._M_key_compare(__k, _S_key(__x))) 32778: __y = __x, __x = _S_left(__x); 32778: else 32778: { 32778: _Const_Link_type __xu(__x); 32778: _Const_Base_ptr __yu(__y); 32778: __y = __x, __x = _S_left(__x); 32778: __xu = _S_right(__xu); 32778: return pair(_M_lower_bound(__x, __y, __k), 32778: _M_upper_bound(__xu, __yu, __k)); 32778: } 32778: } 32778: return pair(const_iterator(__y), 32778: const_iterator(__y)); 32778: } 32778: 32778: template 32778: void 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: swap(_Rb_tree& __t) 32778: noexcept(__is_nothrow_swappable<_Compare>::value) 32778: { 32778: if (_M_root() == 0) 32778: { 32778: if (__t._M_root() != 0) 32778: _M_impl._M_move_data(__t._M_impl); 32778: } 32778: else if (__t._M_root() == 0) 32778: __t._M_impl._M_move_data(_M_impl); 32778: else 32778: { 32778: std::swap(_M_root(),__t._M_root()); 32778: std::swap(_M_leftmost(),__t._M_leftmost()); 32778: std::swap(_M_rightmost(),__t._M_rightmost()); 32778: 32778: _M_root()->_M_parent = _M_end(); 32778: __t._M_root()->_M_parent = __t._M_end(); 32778: std::swap(this->_M_impl._M_node_count, __t._M_impl._M_node_count); 32778: } 32778: 32778: std::swap(this->_M_impl._M_key_compare, __t._M_impl._M_key_compare); 32778: 32778: _Alloc_traits::_S_on_swap(_M_get_Node_allocator(), 32778: __t._M_get_Node_allocator()); 32778: } 32778: 32778: template 32778: pair::_Base_ptr, 32778: typename _Rb_tree<_Key, _Val, _KeyOfValue, 32778: _Compare, _Alloc>::_Base_ptr> 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: _M_get_insert_unique_pos(const key_type& __k) 32778: { 32778: typedef pair<_Base_ptr, _Base_ptr> _Res; 32778: _Link_type __x = _M_begin(); 32778: _Base_ptr __y = _M_end(); 32778: bool __comp = true; 32778: while (__x != 0) 32778: { 32778: __y = __x; 32778: __comp = _M_impl._M_key_compare(__k, _S_key(__x)); 32778: __x = __comp ? _S_left(__x) : _S_right(__x); 32778: } 32778: iterator __j = iterator(__y); 32778: if (__comp) 32778: { 32778: if (__j == begin()) 32778: return _Res(__x, __y); 32778: else 32778: --__j; 32778: } 32778: if (_M_impl._M_key_compare(_S_key(__j._M_node), __k)) 32778: return _Res(__x, __y); 32778: return _Res(__j._M_node, 0); 32778: } 32778: 32778: template 32778: pair::_Base_ptr, 32778: typename _Rb_tree<_Key, _Val, _KeyOfValue, 32778: _Compare, _Alloc>::_Base_ptr> 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: _M_get_insert_equal_pos(const key_type& __k) 32778: { 32778: typedef pair<_Base_ptr, _Base_ptr> _Res; 32778: _Link_type __x = _M_begin(); 32778: _Base_ptr __y = _M_end(); 32778: while (__x != 0) 32778: { 32778: __y = __x; 32778: __x = _M_impl._M_key_compare(__k, _S_key(__x)) ? 32778: _S_left(__x) : _S_right(__x); 32778: } 32778: return _Res(__x, __y); 32778: } 32778: 32778: template 32778: 32778: template 32778: 32778: pair::iterator, bool> 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: 32778: _M_insert_unique(_Arg&& __v) 32778: 32778: 32778: 32778: { 32778: typedef pair _Res; 32778: pair<_Base_ptr, _Base_ptr> __res 32778: = _M_get_insert_unique_pos(_KeyOfValue()(__v)); 32778: 32778: if (__res.second) 32778: { 32778: _Alloc_node __an(*this); 32778: return _Res(_M_insert_(__res.first, __res.second, 32778: std::forward<_Arg>(__v), __an), 32778: true); 32778: } 32778: 32778: return _Res(iterator(__res.first), false); 32778: } 32778: 32778: template 32778: 32778: template 32778: 32778: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: 32778: _M_insert_equal(_Arg&& __v) 32778: 32778: 32778: 32778: { 32778: pair<_Base_ptr, _Base_ptr> __res 32778: = _M_get_insert_equal_pos(_KeyOfValue()(__v)); 32778: _Alloc_node __an(*this); 32778: return _M_insert_(__res.first, __res.second, 32778: std::forward<_Arg>(__v), __an); 32778: } 32778: 32778: template 32778: pair::_Base_ptr, 32778: typename _Rb_tree<_Key, _Val, _KeyOfValue, 32778: _Compare, _Alloc>::_Base_ptr> 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: _M_get_insert_hint_unique_pos(const_iterator __position, 32778: const key_type& __k) 32778: { 32778: iterator __pos = __position._M_const_cast(); 32778: typedef pair<_Base_ptr, _Base_ptr> _Res; 32778: 32778: 32778: if (__pos._M_node == _M_end()) 32778: { 32778: if (size() > 0 32778: && _M_impl._M_key_compare(_S_key(_M_rightmost()), __k)) 32778: return _Res(0, _M_rightmost()); 32778: else 32778: return _M_get_insert_unique_pos(__k); 32778: } 32778: else if (_M_impl._M_key_compare(__k, _S_key(__pos._M_node))) 32778: { 32778: 32778: iterator __before = __pos; 32778: if (__pos._M_node == _M_leftmost()) 32778: return _Res(_M_leftmost(), _M_leftmost()); 32778: else if (_M_impl._M_key_compare(_S_key((--__before)._M_node), __k)) 32778: { 32778: if (_S_right(__before._M_node) == 0) 32778: return _Res(0, __before._M_node); 32778: else 32778: return _Res(__pos._M_node, __pos._M_node); 32778: } 32778: else 32778: return _M_get_insert_unique_pos(__k); 32778: } 32778: else if (_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) 32778: { 32778: 32778: iterator __after = __pos; 32778: if (__pos._M_node == _M_rightmost()) 32778: return _Res(0, _M_rightmost()); 32778: else if (_M_impl._M_key_compare(__k, _S_key((++__after)._M_node))) 32778: { 32778: if (_S_right(__pos._M_node) == 0) 32778: return _Res(0, __pos._M_node); 32778: else 32778: return _Res(__after._M_node, __after._M_node); 32778: } 32778: else 32778: return _M_get_insert_unique_pos(__k); 32778: } 32778: else 32778: 32778: return _Res(__pos._M_node, 0); 32778: } 32778: 32778: template 32778: 32778: template 32778: 32778: 32778: 32778: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: _M_insert_unique_(const_iterator __position, 32778: 32778: _Arg&& __v, 32778: 32778: 32778: 32778: _NodeGen& __node_gen) 32778: { 32778: pair<_Base_ptr, _Base_ptr> __res 32778: = _M_get_insert_hint_unique_pos(__position, _KeyOfValue()(__v)); 32778: 32778: if (__res.second) 32778: return _M_insert_(__res.first, __res.second, 32778: std::forward<_Arg>(__v), 32778: __node_gen); 32778: return iterator(__res.first); 32778: } 32778: 32778: template 32778: pair::_Base_ptr, 32778: typename _Rb_tree<_Key, _Val, _KeyOfValue, 32778: _Compare, _Alloc>::_Base_ptr> 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: _M_get_insert_hint_equal_pos(const_iterator __position, const key_type& __k) 32778: { 32778: iterator __pos = __position._M_const_cast(); 32778: typedef pair<_Base_ptr, _Base_ptr> _Res; 32778: 32778: 32778: if (__pos._M_node == _M_end()) 32778: { 32778: if (size() > 0 32778: && !_M_impl._M_key_compare(__k, _S_key(_M_rightmost()))) 32778: return _Res(0, _M_rightmost()); 32778: else 32778: return _M_get_insert_equal_pos(__k); 32778: } 32778: else if (!_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) 32778: { 32778: 32778: iterator __before = __pos; 32778: if (__pos._M_node == _M_leftmost()) 32778: return _Res(_M_leftmost(), _M_leftmost()); 32778: else if (!_M_impl._M_key_compare(__k, _S_key((--__before)._M_node))) 32778: { 32778: if (_S_right(__before._M_node) == 0) 32778: return _Res(0, __before._M_node); 32778: else 32778: return _Res(__pos._M_node, __pos._M_node); 32778: } 32778: else 32778: return _M_get_insert_equal_pos(__k); 32778: } 32778: else 32778: { 32778: 32778: iterator __after = __pos; 32778: if (__pos._M_node == _M_rightmost()) 32778: return _Res(0, _M_rightmost()); 32778: else if (!_M_impl._M_key_compare(_S_key((++__after)._M_node), __k)) 32778: { 32778: if (_S_right(__pos._M_node) == 0) 32778: return _Res(0, __pos._M_node); 32778: else 32778: return _Res(__after._M_node, __after._M_node); 32778: } 32778: else 32778: return _Res(0, 0); 32778: } 32778: } 32778: 32778: template 32778: 32778: template 32778: 32778: 32778: 32778: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: _M_insert_equal_(const_iterator __position, 32778: 32778: _Arg&& __v, 32778: 32778: 32778: 32778: _NodeGen& __node_gen) 32778: { 32778: pair<_Base_ptr, _Base_ptr> __res 32778: = _M_get_insert_hint_equal_pos(__position, _KeyOfValue()(__v)); 32778: 32778: if (__res.second) 32778: return _M_insert_(__res.first, __res.second, 32778: std::forward<_Arg>(__v), 32778: __node_gen); 32778: 32778: return _M_insert_equal_lower(std::forward<_Arg>(__v)); 32778: } 32778: 32778: 32778: template 32778: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: _M_insert_node(_Base_ptr __x, _Base_ptr __p, _Link_type __z) 32778: { 32778: bool __insert_left = (__x != 0 || __p == _M_end() 32778: || _M_impl._M_key_compare(_S_key(__z), 32778: _S_key(__p))); 32778: 32778: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 32778: this->_M_impl._M_header); 32778: ++_M_impl._M_node_count; 32778: return iterator(__z); 32778: } 32778: 32778: template 32778: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: _M_insert_lower_node(_Base_ptr __p, _Link_type __z) 32778: { 32778: bool __insert_left = (__p == _M_end() 32778: || !_M_impl._M_key_compare(_S_key(__p), 32778: _S_key(__z))); 32778: 32778: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 32778: this->_M_impl._M_header); 32778: ++_M_impl._M_node_count; 32778: return iterator(__z); 32778: } 32778: 32778: template 32778: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: _M_insert_equal_lower_node(_Link_type __z) 32778: { 32778: _Link_type __x = _M_begin(); 32778: _Base_ptr __y = _M_end(); 32778: while (__x != 0) 32778: { 32778: __y = __x; 32778: __x = !_M_impl._M_key_compare(_S_key(__x), _S_key(__z)) ? 32778: _S_left(__x) : _S_right(__x); 32778: } 32778: return _M_insert_lower_node(__y, __z); 32778: } 32778: 32778: template 32778: template 32778: pair::iterator, bool> 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: _M_emplace_unique(_Args&&... __args) 32778: { 32778: _Link_type __z = _M_create_node(std::forward<_Args>(__args)...); 32778: 32778: try 32778: { 32778: typedef pair _Res; 32778: auto __res = _M_get_insert_unique_pos(_S_key(__z)); 32778: if (__res.second) 32778: return _Res(_M_insert_node(__res.first, __res.second, __z), true); 32778: 32778: _M_drop_node(__z); 32778: return _Res(iterator(__res.first), false); 32778: } 32778: catch(...) 32778: { 32778: _M_drop_node(__z); 32778: throw; 32778: } 32778: } 32778: 32778: template 32778: template 32778: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: _M_emplace_equal(_Args&&... __args) 32778: { 32778: _Link_type __z = _M_create_node(std::forward<_Args>(__args)...); 32778: 32778: try 32778: { 32778: auto __res = _M_get_insert_equal_pos(_S_key(__z)); 32778: return _M_insert_node(__res.first, __res.second, __z); 32778: } 32778: catch(...) 32778: { 32778: _M_drop_node(__z); 32778: throw; 32778: } 32778: } 32778: 32778: template 32778: template 32778: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: _M_emplace_hint_unique(const_iterator __pos, _Args&&... __args) 32778: { 32778: _Link_type __z = _M_create_node(std::forward<_Args>(__args)...); 32778: 32778: try 32778: { 32778: auto __res = _M_get_insert_hint_unique_pos(__pos, _S_key(__z)); 32778: 32778: if (__res.second) 32778: return _M_insert_node(__res.first, __res.second, __z); 32778: 32778: _M_drop_node(__z); 32778: return iterator(__res.first); 32778: } 32778: catch(...) 32778: { 32778: _M_drop_node(__z); 32778: throw; 32778: } 32778: } 32778: 32778: template 32778: template 32778: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: _M_emplace_hint_equal(const_iterator __pos, _Args&&... __args) 32778: { 32778: _Link_type __z = _M_create_node(std::forward<_Args>(__args)...); 32778: 32778: try 32778: { 32778: auto __res = _M_get_insert_hint_equal_pos(__pos, _S_key(__z)); 32778: 32778: if (__res.second) 32778: return _M_insert_node(__res.first, __res.second, __z); 32778: 32778: return _M_insert_equal_lower_node(__z); 32778: } 32778: catch(...) 32778: { 32778: _M_drop_node(__z); 32778: throw; 32778: } 32778: } 32778: 32778: 32778: 32778: template 32778: void 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: _M_erase_aux(const_iterator __position) 32778: { 32778: _Link_type __y = 32778: static_cast<_Link_type>(_Rb_tree_rebalance_for_erase 32778: (const_cast<_Base_ptr>(__position._M_node), 32778: this->_M_impl._M_header)); 32778: _M_drop_node(__y); 32778: --_M_impl._M_node_count; 32778: } 32778: 32778: template 32778: void 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: _M_erase_aux(const_iterator __first, const_iterator __last) 32778: { 32778: if (__first == begin() && __last == end()) 32778: clear(); 32778: else 32778: while (__first != __last) 32778: _M_erase_aux(__first++); 32778: } 32778: 32778: template 32778: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: erase(const _Key& __x) 32778: { 32778: pair __p = equal_range(__x); 32778: const size_type __old_size = size(); 32778: _M_erase_aux(__p.first, __p.second); 32778: return __old_size - size(); 32778: } 32778: 32778: template 32778: void 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: erase(const _Key* __first, const _Key* __last) 32778: { 32778: while (__first != __last) 32778: erase(*__first++); 32778: } 32778: 32778: template 32778: typename _Rb_tree<_Key, _Val, _KeyOfValue, 32778: _Compare, _Alloc>::iterator 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: find(const _Key& __k) 32778: { 32778: iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); 32778: return (__j == end() 32778: || _M_impl._M_key_compare(__k, 32778: _S_key(__j._M_node))) ? end() : __j; 32778: } 32778: 32778: template 32778: typename _Rb_tree<_Key, _Val, _KeyOfValue, 32778: _Compare, _Alloc>::const_iterator 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: find(const _Key& __k) const 32778: { 32778: const_iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); 32778: return (__j == end() 32778: || _M_impl._M_key_compare(__k, 32778: _S_key(__j._M_node))) ? end() : __j; 32778: } 32778: 32778: template 32778: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type 32778: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 32778: count(const _Key& __k) const 32778: { 32778: pair __p = equal_range(__k); 32778: const size_type __n = std::distance(__p.first, __p.second); 32778: return __n; 32778: } 32778: 32778: __attribute__ ((__pure__)) unsigned int 32778: _Rb_tree_black_count(const _Rb_tree_node_base* __node, 32778: const _Rb_tree_node_base* __root) throw (); 32778: 32778: template 32778: bool 32778: _Rb_tree<_Key,_Val,_KeyOfValue,_Compare,_Alloc>::__rb_verify() const 32778: { 32778: if (_M_impl._M_node_count == 0 || begin() == end()) 32778: return _M_impl._M_node_count == 0 && begin() == end() 32778: && this->_M_impl._M_header._M_left == _M_end() 32778: && this->_M_impl._M_header._M_right == _M_end(); 32778: 32778: unsigned int __len = _Rb_tree_black_count(_M_leftmost(), _M_root()); 32778: for (const_iterator __it = begin(); __it != end(); ++__it) 32778: { 32778: _Const_Link_type __x = static_cast<_Const_Link_type>(__it._M_node); 32778: _Const_Link_type __L = _S_left(__x); 32778: _Const_Link_type __R = _S_right(__x); 32778: 32778: if (__x->_M_color == _S_red) 32778: if ((__L && __L->_M_color == _S_red) 32778: || (__R && __R->_M_color == _S_red)) 32778: return false; 32778: 32778: if (__L && _M_impl._M_key_compare(_S_key(__x), _S_key(__L))) 32778: return false; 32778: if (__R && _M_impl._M_key_compare(_S_key(__R), _S_key(__x))) 32778: return false; 32778: 32778: if (!__L && !__R && _Rb_tree_black_count(__x, _M_root()) != __len) 32778: return false; 32778: } 32778: 32778: if (_M_leftmost() != _Rb_tree_node_base::_S_minimum(_M_root())) 32778: return false; 32778: if (_M_rightmost() != _Rb_tree_node_base::_S_maximum(_M_root())) 32778: return false; 32778: return true; 32778: } 32778: # 2645 "/usr/include/c++/9/bits/stl_tree.h" 3 32778: 32778: } 32778: # 61 "/usr/include/c++/9/map" 2 3 32778: # 1 "/usr/include/c++/9/bits/stl_map.h" 1 3 32778: # 66 "/usr/include/c++/9/bits/stl_map.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: template 32778: class multimap; 32778: # 98 "/usr/include/c++/9/bits/stl_map.h" 3 32778: template , 32778: typename _Alloc = std::allocator > > 32778: class map 32778: { 32778: public: 32778: typedef _Key key_type; 32778: typedef _Tp mapped_type; 32778: typedef std::pair value_type; 32778: typedef _Compare key_compare; 32778: typedef _Alloc allocator_type; 32778: 32778: private: 32778: # 122 "/usr/include/c++/9/bits/stl_map.h" 3 32778: static_assert(is_same::value, 32778: "std::map must have the same value_type as its allocator"); 32778: 32778: 32778: public: 32778: class value_compare 32778: : public std::binary_function 32778: { 32778: friend class map<_Key, _Tp, _Compare, _Alloc>; 32778: protected: 32778: _Compare comp; 32778: 32778: value_compare(_Compare __c) 32778: : comp(__c) { } 32778: 32778: public: 32778: bool operator()(const value_type& __x, const value_type& __y) const 32778: { return comp(__x.first, __y.first); } 32778: }; 32778: 32778: private: 32778: 32778: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 32778: rebind::other _Pair_alloc_type; 32778: 32778: typedef _Rb_tree, 32778: key_compare, _Pair_alloc_type> _Rep_type; 32778: 32778: 32778: _Rep_type _M_t; 32778: 32778: typedef __gnu_cxx::__alloc_traits<_Pair_alloc_type> _Alloc_traits; 32778: 32778: public: 32778: 32778: 32778: typedef typename _Alloc_traits::pointer pointer; 32778: typedef typename _Alloc_traits::const_pointer const_pointer; 32778: typedef typename _Alloc_traits::reference reference; 32778: typedef typename _Alloc_traits::const_reference const_reference; 32778: typedef typename _Rep_type::iterator iterator; 32778: typedef typename _Rep_type::const_iterator const_iterator; 32778: typedef typename _Rep_type::size_type size_type; 32778: typedef typename _Rep_type::difference_type difference_type; 32778: typedef typename _Rep_type::reverse_iterator reverse_iterator; 32778: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 32778: # 183 "/usr/include/c++/9/bits/stl_map.h" 3 32778: map() = default; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: explicit 32778: map(const _Compare& __comp, 32778: const allocator_type& __a = allocator_type()) 32778: : _M_t(__comp, _Pair_alloc_type(__a)) { } 32778: # 205 "/usr/include/c++/9/bits/stl_map.h" 3 32778: map(const map&) = default; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: map(map&&) = default; 32778: # 226 "/usr/include/c++/9/bits/stl_map.h" 3 32778: map(initializer_list __l, 32778: const _Compare& __comp = _Compare(), 32778: const allocator_type& __a = allocator_type()) 32778: : _M_t(__comp, _Pair_alloc_type(__a)) 32778: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 32778: 32778: 32778: explicit 32778: map(const allocator_type& __a) 32778: : _M_t(_Pair_alloc_type(__a)) { } 32778: 32778: 32778: map(const map& __m, const allocator_type& __a) 32778: : _M_t(__m._M_t, _Pair_alloc_type(__a)) { } 32778: 32778: 32778: map(map&& __m, const allocator_type& __a) 32778: noexcept(is_nothrow_copy_constructible<_Compare>::value 32778: && _Alloc_traits::_S_always_equal()) 32778: : _M_t(std::move(__m._M_t), _Pair_alloc_type(__a)) { } 32778: 32778: 32778: map(initializer_list __l, const allocator_type& __a) 32778: : _M_t(_Pair_alloc_type(__a)) 32778: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 32778: 32778: 32778: template 32778: map(_InputIterator __first, _InputIterator __last, 32778: const allocator_type& __a) 32778: : _M_t(_Pair_alloc_type(__a)) 32778: { _M_t._M_insert_range_unique(__first, __last); } 32778: # 270 "/usr/include/c++/9/bits/stl_map.h" 3 32778: template 32778: map(_InputIterator __first, _InputIterator __last) 32778: : _M_t() 32778: { _M_t._M_insert_range_unique(__first, __last); } 32778: # 287 "/usr/include/c++/9/bits/stl_map.h" 3 32778: template 32778: map(_InputIterator __first, _InputIterator __last, 32778: const _Compare& __comp, 32778: const allocator_type& __a = allocator_type()) 32778: : _M_t(__comp, _Pair_alloc_type(__a)) 32778: { _M_t._M_insert_range_unique(__first, __last); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: ~map() = default; 32778: # 316 "/usr/include/c++/9/bits/stl_map.h" 3 32778: map& 32778: operator=(const map&) = default; 32778: 32778: 32778: map& 32778: operator=(map&&) = default; 32778: # 334 "/usr/include/c++/9/bits/stl_map.h" 3 32778: map& 32778: operator=(initializer_list __l) 32778: { 32778: _M_t._M_assign_unique(__l.begin(), __l.end()); 32778: return *this; 32778: } 32778: 32778: 32778: 32778: allocator_type 32778: get_allocator() const noexcept 32778: { return allocator_type(_M_t.get_allocator()); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: iterator 32778: begin() noexcept 32778: { return _M_t.begin(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_iterator 32778: begin() const noexcept 32778: { return _M_t.begin(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: iterator 32778: end() noexcept 32778: { return _M_t.end(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_iterator 32778: end() const noexcept 32778: { return _M_t.end(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: reverse_iterator 32778: rbegin() noexcept 32778: { return _M_t.rbegin(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_reverse_iterator 32778: rbegin() const noexcept 32778: { return _M_t.rbegin(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: reverse_iterator 32778: rend() noexcept 32778: { return _M_t.rend(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_reverse_iterator 32778: rend() const noexcept 32778: { return _M_t.rend(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_iterator 32778: cbegin() const noexcept 32778: { return _M_t.begin(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_iterator 32778: cend() const noexcept 32778: { return _M_t.end(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_reverse_iterator 32778: crbegin() const noexcept 32778: { return _M_t.rbegin(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_reverse_iterator 32778: crend() const noexcept 32778: { return _M_t.rend(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: bool 32778: empty() const noexcept 32778: { return _M_t.empty(); } 32778: 32778: 32778: size_type 32778: size() const noexcept 32778: { return _M_t.size(); } 32778: 32778: 32778: size_type 32778: max_size() const noexcept 32778: { return _M_t.max_size(); } 32778: # 489 "/usr/include/c++/9/bits/stl_map.h" 3 32778: mapped_type& 32778: operator[](const key_type& __k) 32778: { 32778: 32778: 32778: 32778: iterator __i = lower_bound(__k); 32778: 32778: if (__i == end() || key_comp()(__k, (*__i).first)) 32778: 32778: __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, 32778: std::tuple(__k), 32778: std::tuple<>()); 32778: 32778: 32778: 32778: return (*__i).second; 32778: } 32778: 32778: 32778: mapped_type& 32778: operator[](key_type&& __k) 32778: { 32778: 32778: 32778: 32778: iterator __i = lower_bound(__k); 32778: 32778: if (__i == end() || key_comp()(__k, (*__i).first)) 32778: __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, 32778: std::forward_as_tuple(std::move(__k)), 32778: std::tuple<>()); 32778: return (*__i).second; 32778: } 32778: # 534 "/usr/include/c++/9/bits/stl_map.h" 3 32778: mapped_type& 32778: at(const key_type& __k) 32778: { 32778: iterator __i = lower_bound(__k); 32778: if (__i == end() || key_comp()(__k, (*__i).first)) 32778: __throw_out_of_range(("map::at")); 32778: return (*__i).second; 32778: } 32778: 32778: const mapped_type& 32778: at(const key_type& __k) const 32778: { 32778: const_iterator __i = lower_bound(__k); 32778: if (__i == end() || key_comp()(__k, (*__i).first)) 32778: __throw_out_of_range(("map::at")); 32778: return (*__i).second; 32778: } 32778: # 572 "/usr/include/c++/9/bits/stl_map.h" 3 32778: template 32778: std::pair 32778: emplace(_Args&&... __args) 32778: { return _M_t._M_emplace_unique(std::forward<_Args>(__args)...); } 32778: # 602 "/usr/include/c++/9/bits/stl_map.h" 3 32778: template 32778: iterator 32778: emplace_hint(const_iterator __pos, _Args&&... __args) 32778: { 32778: return _M_t._M_emplace_hint_unique(__pos, 32778: std::forward<_Args>(__args)...); 32778: } 32778: # 800 "/usr/include/c++/9/bits/stl_map.h" 3 32778: std::pair 32778: insert(const value_type& __x) 32778: { return _M_t._M_insert_unique(__x); } 32778: 32778: 32778: 32778: 32778: std::pair 32778: insert(value_type&& __x) 32778: { return _M_t._M_insert_unique(std::move(__x)); } 32778: 32778: template 32778: __enable_if_t::value, 32778: pair> 32778: insert(_Pair&& __x) 32778: { return _M_t._M_emplace_unique(std::forward<_Pair>(__x)); } 32778: # 827 "/usr/include/c++/9/bits/stl_map.h" 3 32778: void 32778: insert(std::initializer_list __list) 32778: { insert(__list.begin(), __list.end()); } 32778: # 856 "/usr/include/c++/9/bits/stl_map.h" 3 32778: iterator 32778: 32778: insert(const_iterator __position, const value_type& __x) 32778: 32778: 32778: 32778: { return _M_t._M_insert_unique_(__position, __x); } 32778: 32778: 32778: 32778: 32778: iterator 32778: insert(const_iterator __position, value_type&& __x) 32778: { return _M_t._M_insert_unique_(__position, std::move(__x)); } 32778: 32778: template 32778: __enable_if_t::value, iterator> 32778: insert(const_iterator __position, _Pair&& __x) 32778: { 32778: return _M_t._M_emplace_hint_unique(__position, 32778: std::forward<_Pair>(__x)); 32778: } 32778: # 889 "/usr/include/c++/9/bits/stl_map.h" 3 32778: template 32778: void 32778: insert(_InputIterator __first, _InputIterator __last) 32778: { _M_t._M_insert_range_unique(__first, __last); } 32778: # 1029 "/usr/include/c++/9/bits/stl_map.h" 3 32778: iterator 32778: erase(const_iterator __position) 32778: { return _M_t.erase(__position); } 32778: 32778: 32778: __attribute ((__abi_tag__ ("cxx11"))) 32778: iterator 32778: erase(iterator __position) 32778: { return _M_t.erase(__position); } 32778: # 1066 "/usr/include/c++/9/bits/stl_map.h" 3 32778: size_type 32778: erase(const key_type& __x) 32778: { return _M_t.erase(__x); } 32778: # 1086 "/usr/include/c++/9/bits/stl_map.h" 3 32778: iterator 32778: erase(const_iterator __first, const_iterator __last) 32778: { return _M_t.erase(__first, __last); } 32778: # 1120 "/usr/include/c++/9/bits/stl_map.h" 3 32778: void 32778: swap(map& __x) 32778: noexcept(__is_nothrow_swappable<_Compare>::value) 32778: { _M_t.swap(__x._M_t); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: void 32778: clear() noexcept 32778: { _M_t.clear(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: key_compare 32778: key_comp() const 32778: { return _M_t.key_comp(); } 32778: 32778: 32778: 32778: 32778: 32778: value_compare 32778: value_comp() const 32778: { return value_compare(_M_t.key_comp()); } 32778: # 1167 "/usr/include/c++/9/bits/stl_map.h" 3 32778: iterator 32778: find(const key_type& __x) 32778: { return _M_t.find(__x); } 32778: # 1192 "/usr/include/c++/9/bits/stl_map.h" 3 32778: const_iterator 32778: find(const key_type& __x) const 32778: { return _M_t.find(__x); } 32778: # 1213 "/usr/include/c++/9/bits/stl_map.h" 3 32778: size_type 32778: count(const key_type& __x) const 32778: { return _M_t.find(__x) == _M_t.end() ? 0 : 1; } 32778: # 1256 "/usr/include/c++/9/bits/stl_map.h" 3 32778: iterator 32778: lower_bound(const key_type& __x) 32778: { return _M_t.lower_bound(__x); } 32778: # 1281 "/usr/include/c++/9/bits/stl_map.h" 3 32778: const_iterator 32778: lower_bound(const key_type& __x) const 32778: { return _M_t.lower_bound(__x); } 32778: # 1301 "/usr/include/c++/9/bits/stl_map.h" 3 32778: iterator 32778: upper_bound(const key_type& __x) 32778: { return _M_t.upper_bound(__x); } 32778: # 1321 "/usr/include/c++/9/bits/stl_map.h" 3 32778: const_iterator 32778: upper_bound(const key_type& __x) const 32778: { return _M_t.upper_bound(__x); } 32778: # 1350 "/usr/include/c++/9/bits/stl_map.h" 3 32778: std::pair 32778: equal_range(const key_type& __x) 32778: { return _M_t.equal_range(__x); } 32778: # 1379 "/usr/include/c++/9/bits/stl_map.h" 3 32778: std::pair 32778: equal_range(const key_type& __x) const 32778: { return _M_t.equal_range(__x); } 32778: # 1396 "/usr/include/c++/9/bits/stl_map.h" 3 32778: template 32778: friend bool 32778: operator==(const map<_K1, _T1, _C1, _A1>&, 32778: const map<_K1, _T1, _C1, _A1>&); 32778: 32778: template 32778: friend bool 32778: operator<(const map<_K1, _T1, _C1, _A1>&, 32778: const map<_K1, _T1, _C1, _A1>&); 32778: }; 32778: # 1453 "/usr/include/c++/9/bits/stl_map.h" 3 32778: template 32778: inline bool 32778: operator==(const map<_Key, _Tp, _Compare, _Alloc>& __x, 32778: const map<_Key, _Tp, _Compare, _Alloc>& __y) 32778: { return __x._M_t == __y._M_t; } 32778: # 1470 "/usr/include/c++/9/bits/stl_map.h" 3 32778: template 32778: inline bool 32778: operator<(const map<_Key, _Tp, _Compare, _Alloc>& __x, 32778: const map<_Key, _Tp, _Compare, _Alloc>& __y) 32778: { return __x._M_t < __y._M_t; } 32778: 32778: 32778: template 32778: inline bool 32778: operator!=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 32778: const map<_Key, _Tp, _Compare, _Alloc>& __y) 32778: { return !(__x == __y); } 32778: 32778: 32778: template 32778: inline bool 32778: operator>(const map<_Key, _Tp, _Compare, _Alloc>& __x, 32778: const map<_Key, _Tp, _Compare, _Alloc>& __y) 32778: { return __y < __x; } 32778: 32778: 32778: template 32778: inline bool 32778: operator<=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 32778: const map<_Key, _Tp, _Compare, _Alloc>& __y) 32778: { return !(__y < __x); } 32778: 32778: 32778: template 32778: inline bool 32778: operator>=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 32778: const map<_Key, _Tp, _Compare, _Alloc>& __y) 32778: { return !(__x < __y); } 32778: 32778: 32778: template 32778: inline void 32778: swap(map<_Key, _Tp, _Compare, _Alloc>& __x, 32778: map<_Key, _Tp, _Compare, _Alloc>& __y) 32778: noexcept(noexcept(__x.swap(__y))) 32778: { __x.swap(__y); } 32778: 32778: 32778: # 1535 "/usr/include/c++/9/bits/stl_map.h" 3 32778: 32778: } 32778: # 62 "/usr/include/c++/9/map" 2 3 32778: # 1 "/usr/include/c++/9/bits/stl_multimap.h" 1 3 32778: # 64 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: template 32778: class map; 32778: # 96 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: template , 32778: typename _Alloc = std::allocator > > 32778: class multimap 32778: { 32778: public: 32778: typedef _Key key_type; 32778: typedef _Tp mapped_type; 32778: typedef std::pair value_type; 32778: typedef _Compare key_compare; 32778: typedef _Alloc allocator_type; 32778: 32778: private: 32778: # 121 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: static_assert(is_same::value, 32778: "std::multimap must have the same value_type as its allocator"); 32778: 32778: 32778: public: 32778: class value_compare 32778: : public std::binary_function 32778: { 32778: friend class multimap<_Key, _Tp, _Compare, _Alloc>; 32778: protected: 32778: _Compare comp; 32778: 32778: value_compare(_Compare __c) 32778: : comp(__c) { } 32778: 32778: public: 32778: bool operator()(const value_type& __x, const value_type& __y) const 32778: { return comp(__x.first, __y.first); } 32778: }; 32778: 32778: private: 32778: 32778: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 32778: rebind::other _Pair_alloc_type; 32778: 32778: typedef _Rb_tree, 32778: key_compare, _Pair_alloc_type> _Rep_type; 32778: 32778: _Rep_type _M_t; 32778: 32778: typedef __gnu_cxx::__alloc_traits<_Pair_alloc_type> _Alloc_traits; 32778: 32778: public: 32778: 32778: 32778: typedef typename _Alloc_traits::pointer pointer; 32778: typedef typename _Alloc_traits::const_pointer const_pointer; 32778: typedef typename _Alloc_traits::reference reference; 32778: typedef typename _Alloc_traits::const_reference const_reference; 32778: typedef typename _Rep_type::iterator iterator; 32778: typedef typename _Rep_type::const_iterator const_iterator; 32778: typedef typename _Rep_type::size_type size_type; 32778: typedef typename _Rep_type::difference_type difference_type; 32778: typedef typename _Rep_type::reverse_iterator reverse_iterator; 32778: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 32778: # 180 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: multimap() = default; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: explicit 32778: multimap(const _Compare& __comp, 32778: const allocator_type& __a = allocator_type()) 32778: : _M_t(__comp, _Pair_alloc_type(__a)) { } 32778: # 202 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: multimap(const multimap&) = default; 32778: # 211 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: multimap(multimap&&) = default; 32778: # 223 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: multimap(initializer_list __l, 32778: const _Compare& __comp = _Compare(), 32778: const allocator_type& __a = allocator_type()) 32778: : _M_t(__comp, _Pair_alloc_type(__a)) 32778: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 32778: 32778: 32778: explicit 32778: multimap(const allocator_type& __a) 32778: : _M_t(_Pair_alloc_type(__a)) { } 32778: 32778: 32778: multimap(const multimap& __m, const allocator_type& __a) 32778: : _M_t(__m._M_t, _Pair_alloc_type(__a)) { } 32778: 32778: 32778: multimap(multimap&& __m, const allocator_type& __a) 32778: noexcept(is_nothrow_copy_constructible<_Compare>::value 32778: && _Alloc_traits::_S_always_equal()) 32778: : _M_t(std::move(__m._M_t), _Pair_alloc_type(__a)) { } 32778: 32778: 32778: multimap(initializer_list __l, const allocator_type& __a) 32778: : _M_t(_Pair_alloc_type(__a)) 32778: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 32778: 32778: 32778: template 32778: multimap(_InputIterator __first, _InputIterator __last, 32778: const allocator_type& __a) 32778: : _M_t(_Pair_alloc_type(__a)) 32778: { _M_t._M_insert_range_equal(__first, __last); } 32778: # 266 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: template 32778: multimap(_InputIterator __first, _InputIterator __last) 32778: : _M_t() 32778: { _M_t._M_insert_range_equal(__first, __last); } 32778: # 282 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: template 32778: multimap(_InputIterator __first, _InputIterator __last, 32778: const _Compare& __comp, 32778: const allocator_type& __a = allocator_type()) 32778: : _M_t(__comp, _Pair_alloc_type(__a)) 32778: { _M_t._M_insert_range_equal(__first, __last); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: ~multimap() = default; 32778: # 311 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: multimap& 32778: operator=(const multimap&) = default; 32778: 32778: 32778: multimap& 32778: operator=(multimap&&) = default; 32778: # 329 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: multimap& 32778: operator=(initializer_list __l) 32778: { 32778: _M_t._M_assign_equal(__l.begin(), __l.end()); 32778: return *this; 32778: } 32778: 32778: 32778: 32778: allocator_type 32778: get_allocator() const noexcept 32778: { return allocator_type(_M_t.get_allocator()); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: iterator 32778: begin() noexcept 32778: { return _M_t.begin(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_iterator 32778: begin() const noexcept 32778: { return _M_t.begin(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: iterator 32778: end() noexcept 32778: { return _M_t.end(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_iterator 32778: end() const noexcept 32778: { return _M_t.end(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: reverse_iterator 32778: rbegin() noexcept 32778: { return _M_t.rbegin(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_reverse_iterator 32778: rbegin() const noexcept 32778: { return _M_t.rbegin(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: reverse_iterator 32778: rend() noexcept 32778: { return _M_t.rend(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_reverse_iterator 32778: rend() const noexcept 32778: { return _M_t.rend(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_iterator 32778: cbegin() const noexcept 32778: { return _M_t.begin(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_iterator 32778: cend() const noexcept 32778: { return _M_t.end(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_reverse_iterator 32778: crbegin() const noexcept 32778: { return _M_t.rbegin(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: const_reverse_iterator 32778: crend() const noexcept 32778: { return _M_t.rend(); } 32778: 32778: 32778: 32778: 32778: bool 32778: empty() const noexcept 32778: { return _M_t.empty(); } 32778: 32778: 32778: size_type 32778: size() const noexcept 32778: { return _M_t.size(); } 32778: 32778: 32778: size_type 32778: max_size() const noexcept 32778: { return _M_t.max_size(); } 32778: # 487 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: template 32778: iterator 32778: emplace(_Args&&... __args) 32778: { return _M_t._M_emplace_equal(std::forward<_Args>(__args)...); } 32778: # 514 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: template 32778: iterator 32778: emplace_hint(const_iterator __pos, _Args&&... __args) 32778: { 32778: return _M_t._M_emplace_hint_equal(__pos, 32778: std::forward<_Args>(__args)...); 32778: } 32778: # 536 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: iterator 32778: insert(const value_type& __x) 32778: { return _M_t._M_insert_equal(__x); } 32778: 32778: 32778: 32778: 32778: iterator 32778: insert(value_type&& __x) 32778: { return _M_t._M_insert_equal(std::move(__x)); } 32778: 32778: template 32778: __enable_if_t::value, iterator> 32778: insert(_Pair&& __x) 32778: { return _M_t._M_emplace_equal(std::forward<_Pair>(__x)); } 32778: # 575 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: iterator 32778: 32778: insert(const_iterator __position, const value_type& __x) 32778: 32778: 32778: 32778: { return _M_t._M_insert_equal_(__position, __x); } 32778: 32778: 32778: 32778: 32778: iterator 32778: insert(const_iterator __position, value_type&& __x) 32778: { return _M_t._M_insert_equal_(__position, std::move(__x)); } 32778: 32778: template 32778: __enable_if_t::value, iterator> 32778: insert(const_iterator __position, _Pair&& __x) 32778: { 32778: return _M_t._M_emplace_hint_equal(__position, 32778: std::forward<_Pair>(__x)); 32778: } 32778: # 609 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: template 32778: void 32778: insert(_InputIterator __first, _InputIterator __last) 32778: { _M_t._M_insert_range_equal(__first, __last); } 32778: # 622 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: void 32778: insert(initializer_list __l) 32778: { this->insert(__l.begin(), __l.end()); } 32778: # 699 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: iterator 32778: erase(const_iterator __position) 32778: { return _M_t.erase(__position); } 32778: 32778: 32778: __attribute ((__abi_tag__ ("cxx11"))) 32778: iterator 32778: erase(iterator __position) 32778: { return _M_t.erase(__position); } 32778: # 736 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: size_type 32778: erase(const key_type& __x) 32778: { return _M_t.erase(__x); } 32778: # 757 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: iterator 32778: erase(const_iterator __first, const_iterator __last) 32778: { return _M_t.erase(__first, __last); } 32778: # 794 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: void 32778: swap(multimap& __x) 32778: noexcept(__is_nothrow_swappable<_Compare>::value) 32778: { _M_t.swap(__x._M_t); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: void 32778: clear() noexcept 32778: { _M_t.clear(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: key_compare 32778: key_comp() const 32778: { return _M_t.key_comp(); } 32778: 32778: 32778: 32778: 32778: 32778: value_compare 32778: value_comp() const 32778: { return value_compare(_M_t.key_comp()); } 32778: # 840 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: iterator 32778: find(const key_type& __x) 32778: { return _M_t.find(__x); } 32778: # 864 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: const_iterator 32778: find(const key_type& __x) const 32778: { return _M_t.find(__x); } 32778: # 882 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: size_type 32778: count(const key_type& __x) const 32778: { return _M_t.count(__x); } 32778: # 925 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: iterator 32778: lower_bound(const key_type& __x) 32778: { return _M_t.lower_bound(__x); } 32778: # 950 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: const_iterator 32778: lower_bound(const key_type& __x) const 32778: { return _M_t.lower_bound(__x); } 32778: # 970 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: iterator 32778: upper_bound(const key_type& __x) 32778: { return _M_t.upper_bound(__x); } 32778: # 990 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: const_iterator 32778: upper_bound(const key_type& __x) const 32778: { return _M_t.upper_bound(__x); } 32778: # 1017 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: std::pair 32778: equal_range(const key_type& __x) 32778: { return _M_t.equal_range(__x); } 32778: # 1044 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: std::pair 32778: equal_range(const key_type& __x) const 32778: { return _M_t.equal_range(__x); } 32778: # 1061 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: template 32778: friend bool 32778: operator==(const multimap<_K1, _T1, _C1, _A1>&, 32778: const multimap<_K1, _T1, _C1, _A1>&); 32778: 32778: template 32778: friend bool 32778: operator<(const multimap<_K1, _T1, _C1, _A1>&, 32778: const multimap<_K1, _T1, _C1, _A1>&); 32778: }; 32778: # 1117 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: template 32778: inline bool 32778: operator==(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 32778: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 32778: { return __x._M_t == __y._M_t; } 32778: # 1134 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: template 32778: inline bool 32778: operator<(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 32778: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 32778: { return __x._M_t < __y._M_t; } 32778: 32778: 32778: template 32778: inline bool 32778: operator!=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 32778: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 32778: { return !(__x == __y); } 32778: 32778: 32778: template 32778: inline bool 32778: operator>(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 32778: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 32778: { return __y < __x; } 32778: 32778: 32778: template 32778: inline bool 32778: operator<=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 32778: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 32778: { return !(__y < __x); } 32778: 32778: 32778: template 32778: inline bool 32778: operator>=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 32778: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 32778: { return !(__x < __y); } 32778: 32778: 32778: template 32778: inline void 32778: swap(multimap<_Key, _Tp, _Compare, _Alloc>& __x, 32778: multimap<_Key, _Tp, _Compare, _Alloc>& __y) 32778: noexcept(noexcept(__x.swap(__y))) 32778: { __x.swap(__y); } 32778: 32778: 32778: # 1199 "/usr/include/c++/9/bits/stl_multimap.h" 3 32778: 32778: } 32778: # 63 "/usr/include/c++/9/map" 2 3 32778: 32778: # 1 "/usr/include/c++/9/bits/erase_if.h" 1 3 32778: # 33 "/usr/include/c++/9/bits/erase_if.h" 3 32778: 32778: # 34 "/usr/include/c++/9/bits/erase_if.h" 3 32778: # 65 "/usr/include/c++/9/map" 2 3 32778: # 22 "/<>/include/HepMC3/GenHeavyIon.h" 2 32778: # 1 "/<>/include/HepMC3/Attribute.h" 1 32778: # 22 "/<>/include/HepMC3/Attribute.h" 32778: # 1 "/usr/include/c++/9/cstdio" 1 3 32778: # 39 "/usr/include/c++/9/cstdio" 3 32778: 32778: # 40 "/usr/include/c++/9/cstdio" 3 32778: # 23 "/<>/include/HepMC3/Attribute.h" 2 32778: 32778: # 1 "/usr/include/c++/9/limits" 1 3 32778: # 40 "/usr/include/c++/9/limits" 3 32778: 32778: # 41 "/usr/include/c++/9/limits" 3 32778: # 158 "/usr/include/c++/9/limits" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: enum float_round_style 32778: { 32778: round_indeterminate = -1, 32778: round_toward_zero = 0, 32778: round_to_nearest = 1, 32778: round_toward_infinity = 2, 32778: round_toward_neg_infinity = 3 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: enum float_denorm_style 32778: { 32778: 32778: denorm_indeterminate = -1, 32778: 32778: denorm_absent = 0, 32778: 32778: denorm_present = 1 32778: }; 32778: # 202 "/usr/include/c++/9/limits" 3 32778: struct __numeric_limits_base 32778: { 32778: 32778: 32778: static constexpr bool is_specialized = false; 32778: 32778: 32778: 32778: 32778: static constexpr int digits = 0; 32778: 32778: 32778: static constexpr int digits10 = 0; 32778: 32778: 32778: 32778: 32778: static constexpr int max_digits10 = 0; 32778: 32778: 32778: 32778: static constexpr bool is_signed = false; 32778: 32778: 32778: static constexpr bool is_integer = false; 32778: 32778: 32778: 32778: 32778: static constexpr bool is_exact = false; 32778: 32778: 32778: 32778: static constexpr int radix = 0; 32778: 32778: 32778: 32778: static constexpr int min_exponent = 0; 32778: 32778: 32778: 32778: static constexpr int min_exponent10 = 0; 32778: 32778: 32778: 32778: 32778: static constexpr int max_exponent = 0; 32778: 32778: 32778: 32778: static constexpr int max_exponent10 = 0; 32778: 32778: 32778: static constexpr bool has_infinity = false; 32778: 32778: 32778: 32778: static constexpr bool has_quiet_NaN = false; 32778: 32778: 32778: 32778: static constexpr bool has_signaling_NaN = false; 32778: 32778: 32778: static constexpr float_denorm_style has_denorm = denorm_absent; 32778: 32778: 32778: 32778: static constexpr bool has_denorm_loss = false; 32778: 32778: 32778: 32778: static constexpr bool is_iec559 = false; 32778: 32778: 32778: 32778: 32778: static constexpr bool is_bounded = false; 32778: # 288 "/usr/include/c++/9/limits" 3 32778: static constexpr bool is_modulo = false; 32778: 32778: 32778: static constexpr bool traps = false; 32778: 32778: 32778: static constexpr bool tinyness_before = false; 32778: 32778: 32778: 32778: 32778: static constexpr float_round_style round_style = 32778: round_toward_zero; 32778: }; 32778: # 311 "/usr/include/c++/9/limits" 3 32778: template 32778: struct numeric_limits : public __numeric_limits_base 32778: { 32778: 32778: 32778: static constexpr _Tp 32778: min() noexcept { return _Tp(); } 32778: 32778: 32778: static constexpr _Tp 32778: max() noexcept { return _Tp(); } 32778: 32778: 32778: 32778: 32778: static constexpr _Tp 32778: lowest() noexcept { return _Tp(); } 32778: 32778: 32778: 32778: 32778: static constexpr _Tp 32778: epsilon() noexcept { return _Tp(); } 32778: 32778: 32778: static constexpr _Tp 32778: round_error() noexcept { return _Tp(); } 32778: 32778: 32778: static constexpr _Tp 32778: infinity() noexcept { return _Tp(); } 32778: 32778: 32778: 32778: static constexpr _Tp 32778: quiet_NaN() noexcept { return _Tp(); } 32778: 32778: 32778: 32778: static constexpr _Tp 32778: signaling_NaN() noexcept { return _Tp(); } 32778: 32778: 32778: 32778: 32778: static constexpr _Tp 32778: denorm_min() noexcept { return _Tp(); } 32778: }; 32778: 32778: 32778: 32778: 32778: template 32778: struct numeric_limits 32778: : public numeric_limits<_Tp> { }; 32778: 32778: template 32778: struct numeric_limits 32778: : public numeric_limits<_Tp> { }; 32778: 32778: template 32778: struct numeric_limits 32778: : public numeric_limits<_Tp> { }; 32778: # 383 "/usr/include/c++/9/limits" 3 32778: template<> 32778: struct numeric_limits 32778: { 32778: static constexpr bool is_specialized = true; 32778: 32778: static constexpr bool 32778: min() noexcept { return false; } 32778: 32778: static constexpr bool 32778: max() noexcept { return true; } 32778: 32778: 32778: static constexpr bool 32778: lowest() noexcept { return min(); } 32778: 32778: static constexpr int digits = 1; 32778: static constexpr int digits10 = 0; 32778: 32778: static constexpr int max_digits10 = 0; 32778: 32778: static constexpr bool is_signed = false; 32778: static constexpr bool is_integer = true; 32778: static constexpr bool is_exact = true; 32778: static constexpr int radix = 2; 32778: 32778: static constexpr bool 32778: epsilon() noexcept { return false; } 32778: 32778: static constexpr bool 32778: round_error() noexcept { return false; } 32778: 32778: static constexpr int min_exponent = 0; 32778: static constexpr int min_exponent10 = 0; 32778: static constexpr int max_exponent = 0; 32778: static constexpr int max_exponent10 = 0; 32778: 32778: static constexpr bool has_infinity = false; 32778: static constexpr bool has_quiet_NaN = false; 32778: static constexpr bool has_signaling_NaN = false; 32778: static constexpr float_denorm_style has_denorm 32778: = denorm_absent; 32778: static constexpr bool has_denorm_loss = false; 32778: 32778: static constexpr bool 32778: infinity() noexcept { return false; } 32778: 32778: static constexpr bool 32778: quiet_NaN() noexcept { return false; } 32778: 32778: static constexpr bool 32778: signaling_NaN() noexcept { return false; } 32778: 32778: static constexpr bool 32778: denorm_min() noexcept { return false; } 32778: 32778: static constexpr bool is_iec559 = false; 32778: static constexpr bool is_bounded = true; 32778: static constexpr bool is_modulo = false; 32778: 32778: 32778: 32778: 32778: static constexpr bool traps = true; 32778: static constexpr bool tinyness_before = false; 32778: static constexpr float_round_style round_style 32778: = round_toward_zero; 32778: }; 32778: 32778: 32778: template<> 32778: struct numeric_limits 32778: { 32778: static constexpr bool is_specialized = true; 32778: 32778: static constexpr char 32778: min() noexcept { return (((char)(-1) < 0) ? -(((char)(-1) < 0) ? (((((char)1 << ((sizeof(char) * 8 - ((char)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char)0) - 1 : (char)0); } 32778: 32778: static constexpr char 32778: max() noexcept { return (((char)(-1) < 0) ? (((((char)1 << ((sizeof(char) * 8 - ((char)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char)0); } 32778: 32778: 32778: static constexpr char 32778: lowest() noexcept { return min(); } 32778: 32778: 32778: static constexpr int digits = (sizeof(char) * 8 - ((char)(-1) < 0)); 32778: static constexpr int digits10 = ((sizeof(char) * 8 - ((char)(-1) < 0)) * 643L / 2136); 32778: 32778: static constexpr int max_digits10 = 0; 32778: 32778: static constexpr bool is_signed = ((char)(-1) < 0); 32778: static constexpr bool is_integer = true; 32778: static constexpr bool is_exact = true; 32778: static constexpr int radix = 2; 32778: 32778: static constexpr char 32778: epsilon() noexcept { return 0; } 32778: 32778: static constexpr char 32778: round_error() noexcept { return 0; } 32778: 32778: static constexpr int min_exponent = 0; 32778: static constexpr int min_exponent10 = 0; 32778: static constexpr int max_exponent = 0; 32778: static constexpr int max_exponent10 = 0; 32778: 32778: static constexpr bool has_infinity = false; 32778: static constexpr bool has_quiet_NaN = false; 32778: static constexpr bool has_signaling_NaN = false; 32778: static constexpr float_denorm_style has_denorm 32778: = denorm_absent; 32778: static constexpr bool has_denorm_loss = false; 32778: 32778: static constexpr 32778: char infinity() noexcept { return char(); } 32778: 32778: static constexpr char 32778: quiet_NaN() noexcept { return char(); } 32778: 32778: static constexpr char 32778: signaling_NaN() noexcept { return char(); } 32778: 32778: static constexpr char 32778: denorm_min() noexcept { return static_cast(0); } 32778: 32778: static constexpr bool is_iec559 = false; 32778: static constexpr bool is_bounded = true; 32778: static constexpr bool is_modulo = !is_signed; 32778: 32778: static constexpr bool traps = true; 32778: static constexpr bool tinyness_before = false; 32778: static constexpr float_round_style round_style 32778: = round_toward_zero; 32778: }; 32778: 32778: 32778: template<> 32778: struct numeric_limits 32778: { 32778: static constexpr bool is_specialized = true; 32778: 32778: static constexpr signed char 32778: min() noexcept { return -0x7f - 1; } 32778: 32778: static constexpr signed char 32778: max() noexcept { return 0x7f; } 32778: 32778: 32778: static constexpr signed char 32778: lowest() noexcept { return min(); } 32778: 32778: 32778: static constexpr int digits = (sizeof(signed char) * 8 - ((signed char)(-1) < 0)); 32778: static constexpr int digits10 32778: = ((sizeof(signed char) * 8 - ((signed char)(-1) < 0)) * 643L / 2136); 32778: 32778: static constexpr int max_digits10 = 0; 32778: 32778: static constexpr bool is_signed = true; 32778: static constexpr bool is_integer = true; 32778: static constexpr bool is_exact = true; 32778: static constexpr int radix = 2; 32778: 32778: static constexpr signed char 32778: epsilon() noexcept { return 0; } 32778: 32778: static constexpr signed char 32778: round_error() noexcept { return 0; } 32778: 32778: static constexpr int min_exponent = 0; 32778: static constexpr int min_exponent10 = 0; 32778: static constexpr int max_exponent = 0; 32778: static constexpr int max_exponent10 = 0; 32778: 32778: static constexpr bool has_infinity = false; 32778: static constexpr bool has_quiet_NaN = false; 32778: static constexpr bool has_signaling_NaN = false; 32778: static constexpr float_denorm_style has_denorm 32778: = denorm_absent; 32778: static constexpr bool has_denorm_loss = false; 32778: 32778: static constexpr signed char 32778: infinity() noexcept { return static_cast(0); } 32778: 32778: static constexpr signed char 32778: quiet_NaN() noexcept { return static_cast(0); } 32778: 32778: static constexpr signed char 32778: signaling_NaN() noexcept 32778: { return static_cast(0); } 32778: 32778: static constexpr signed char 32778: denorm_min() noexcept 32778: { return static_cast(0); } 32778: 32778: static constexpr bool is_iec559 = false; 32778: static constexpr bool is_bounded = true; 32778: static constexpr bool is_modulo = false; 32778: 32778: static constexpr bool traps = true; 32778: static constexpr bool tinyness_before = false; 32778: static constexpr float_round_style round_style 32778: = round_toward_zero; 32778: }; 32778: 32778: 32778: template<> 32778: struct numeric_limits 32778: { 32778: static constexpr bool is_specialized = true; 32778: 32778: static constexpr unsigned char 32778: min() noexcept { return 0; } 32778: 32778: static constexpr unsigned char 32778: max() noexcept { return 0x7f * 2U + 1; } 32778: 32778: 32778: static constexpr unsigned char 32778: lowest() noexcept { return min(); } 32778: 32778: 32778: static constexpr int digits 32778: = (sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)); 32778: static constexpr int digits10 32778: = ((sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)) * 643L / 2136); 32778: 32778: static constexpr int max_digits10 = 0; 32778: 32778: static constexpr bool is_signed = false; 32778: static constexpr bool is_integer = true; 32778: static constexpr bool is_exact = true; 32778: static constexpr int radix = 2; 32778: 32778: static constexpr unsigned char 32778: epsilon() noexcept { return 0; } 32778: 32778: static constexpr unsigned char 32778: round_error() noexcept { return 0; } 32778: 32778: static constexpr int min_exponent = 0; 32778: static constexpr int min_exponent10 = 0; 32778: static constexpr int max_exponent = 0; 32778: static constexpr int max_exponent10 = 0; 32778: 32778: static constexpr bool has_infinity = false; 32778: static constexpr bool has_quiet_NaN = false; 32778: static constexpr bool has_signaling_NaN = false; 32778: static constexpr float_denorm_style has_denorm 32778: = denorm_absent; 32778: static constexpr bool has_denorm_loss = false; 32778: 32778: static constexpr unsigned char 32778: infinity() noexcept 32778: { return static_cast(0); } 32778: 32778: static constexpr unsigned char 32778: quiet_NaN() noexcept 32778: { return static_cast(0); } 32778: 32778: static constexpr unsigned char 32778: signaling_NaN() noexcept 32778: { return static_cast(0); } 32778: 32778: static constexpr unsigned char 32778: denorm_min() noexcept 32778: { return static_cast(0); } 32778: 32778: static constexpr bool is_iec559 = false; 32778: static constexpr bool is_bounded = true; 32778: static constexpr bool is_modulo = true; 32778: 32778: static constexpr bool traps = true; 32778: static constexpr bool tinyness_before = false; 32778: static constexpr float_round_style round_style 32778: = round_toward_zero; 32778: }; 32778: 32778: 32778: template<> 32778: struct numeric_limits 32778: { 32778: static constexpr bool is_specialized = true; 32778: 32778: static constexpr wchar_t 32778: min() noexcept { 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); } 32778: 32778: static constexpr wchar_t 32778: max() noexcept { return (((wchar_t)(-1) < 0) ? (((((wchar_t)1 << ((sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(wchar_t)0); } 32778: 32778: 32778: static constexpr wchar_t 32778: lowest() noexcept { return min(); } 32778: 32778: 32778: static constexpr int digits = (sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)); 32778: static constexpr int digits10 32778: = ((sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)) * 643L / 2136); 32778: 32778: static constexpr int max_digits10 = 0; 32778: 32778: static constexpr bool is_signed = ((wchar_t)(-1) < 0); 32778: static constexpr bool is_integer = true; 32778: static constexpr bool is_exact = true; 32778: static constexpr int radix = 2; 32778: 32778: static constexpr wchar_t 32778: epsilon() noexcept { return 0; } 32778: 32778: static constexpr wchar_t 32778: round_error() noexcept { return 0; } 32778: 32778: static constexpr int min_exponent = 0; 32778: static constexpr int min_exponent10 = 0; 32778: static constexpr int max_exponent = 0; 32778: static constexpr int max_exponent10 = 0; 32778: 32778: static constexpr bool has_infinity = false; 32778: static constexpr bool has_quiet_NaN = false; 32778: static constexpr bool has_signaling_NaN = false; 32778: static constexpr float_denorm_style has_denorm 32778: = denorm_absent; 32778: static constexpr bool has_denorm_loss = false; 32778: 32778: static constexpr wchar_t 32778: infinity() noexcept { return wchar_t(); } 32778: 32778: static constexpr wchar_t 32778: quiet_NaN() noexcept { return wchar_t(); } 32778: 32778: static constexpr wchar_t 32778: signaling_NaN() noexcept { return wchar_t(); } 32778: 32778: static constexpr wchar_t 32778: denorm_min() noexcept { return wchar_t(); } 32778: 32778: static constexpr bool is_iec559 = false; 32778: static constexpr bool is_bounded = true; 32778: static constexpr bool is_modulo = !is_signed; 32778: 32778: static constexpr bool traps = true; 32778: static constexpr bool tinyness_before = false; 32778: static constexpr float_round_style round_style 32778: = round_toward_zero; 32778: }; 32778: # 796 "/usr/include/c++/9/limits" 3 32778: template<> 32778: struct numeric_limits 32778: { 32778: static constexpr bool is_specialized = true; 32778: 32778: static constexpr char16_t 32778: min() noexcept { return (((char16_t)(-1) < 0) ? -(((char16_t)(-1) < 0) ? (((((char16_t)1 << ((sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char16_t)0) - 1 : (char16_t)0); } 32778: 32778: static constexpr char16_t 32778: max() noexcept { return (((char16_t)(-1) < 0) ? (((((char16_t)1 << ((sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char16_t)0); } 32778: 32778: static constexpr char16_t 32778: lowest() noexcept { return min(); } 32778: 32778: static constexpr int digits = (sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)); 32778: static constexpr int digits10 = ((sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)) * 643L / 2136); 32778: static constexpr int max_digits10 = 0; 32778: static constexpr bool is_signed = ((char16_t)(-1) < 0); 32778: static constexpr bool is_integer = true; 32778: static constexpr bool is_exact = true; 32778: static constexpr int radix = 2; 32778: 32778: static constexpr char16_t 32778: epsilon() noexcept { return 0; } 32778: 32778: static constexpr char16_t 32778: round_error() noexcept { return 0; } 32778: 32778: static constexpr int min_exponent = 0; 32778: static constexpr int min_exponent10 = 0; 32778: static constexpr int max_exponent = 0; 32778: static constexpr int max_exponent10 = 0; 32778: 32778: static constexpr bool has_infinity = false; 32778: static constexpr bool has_quiet_NaN = false; 32778: static constexpr bool has_signaling_NaN = false; 32778: static constexpr float_denorm_style has_denorm = denorm_absent; 32778: static constexpr bool has_denorm_loss = false; 32778: 32778: static constexpr char16_t 32778: infinity() noexcept { return char16_t(); } 32778: 32778: static constexpr char16_t 32778: quiet_NaN() noexcept { return char16_t(); } 32778: 32778: static constexpr char16_t 32778: signaling_NaN() noexcept { return char16_t(); } 32778: 32778: static constexpr char16_t 32778: denorm_min() noexcept { return char16_t(); } 32778: 32778: static constexpr bool is_iec559 = false; 32778: static constexpr bool is_bounded = true; 32778: static constexpr bool is_modulo = !is_signed; 32778: 32778: static constexpr bool traps = true; 32778: static constexpr bool tinyness_before = false; 32778: static constexpr float_round_style round_style = round_toward_zero; 32778: }; 32778: 32778: 32778: template<> 32778: struct numeric_limits 32778: { 32778: static constexpr bool is_specialized = true; 32778: 32778: static constexpr char32_t 32778: min() noexcept { return (((char32_t)(-1) < 0) ? -(((char32_t)(-1) < 0) ? (((((char32_t)1 << ((sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char32_t)0) - 1 : (char32_t)0); } 32778: 32778: static constexpr char32_t 32778: max() noexcept { return (((char32_t)(-1) < 0) ? (((((char32_t)1 << ((sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char32_t)0); } 32778: 32778: static constexpr char32_t 32778: lowest() noexcept { return min(); } 32778: 32778: static constexpr int digits = (sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)); 32778: static constexpr int digits10 = ((sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)) * 643L / 2136); 32778: static constexpr int max_digits10 = 0; 32778: static constexpr bool is_signed = ((char32_t)(-1) < 0); 32778: static constexpr bool is_integer = true; 32778: static constexpr bool is_exact = true; 32778: static constexpr int radix = 2; 32778: 32778: static constexpr char32_t 32778: epsilon() noexcept { return 0; } 32778: 32778: static constexpr char32_t 32778: round_error() noexcept { return 0; } 32778: 32778: static constexpr int min_exponent = 0; 32778: static constexpr int min_exponent10 = 0; 32778: static constexpr int max_exponent = 0; 32778: static constexpr int max_exponent10 = 0; 32778: 32778: static constexpr bool has_infinity = false; 32778: static constexpr bool has_quiet_NaN = false; 32778: static constexpr bool has_signaling_NaN = false; 32778: static constexpr float_denorm_style has_denorm = denorm_absent; 32778: static constexpr bool has_denorm_loss = false; 32778: 32778: static constexpr char32_t 32778: infinity() noexcept { return char32_t(); } 32778: 32778: static constexpr char32_t 32778: quiet_NaN() noexcept { return char32_t(); } 32778: 32778: static constexpr char32_t 32778: signaling_NaN() noexcept { return char32_t(); } 32778: 32778: static constexpr char32_t 32778: denorm_min() noexcept { return char32_t(); } 32778: 32778: static constexpr bool is_iec559 = false; 32778: static constexpr bool is_bounded = true; 32778: static constexpr bool is_modulo = !is_signed; 32778: 32778: static constexpr bool traps = true; 32778: static constexpr bool tinyness_before = false; 32778: static constexpr float_round_style round_style = round_toward_zero; 32778: }; 32778: 32778: 32778: 32778: template<> 32778: struct numeric_limits 32778: { 32778: static constexpr bool is_specialized = true; 32778: 32778: static constexpr short 32778: min() noexcept { return -0x7fff - 1; } 32778: 32778: static constexpr short 32778: max() noexcept { return 0x7fff; } 32778: 32778: 32778: static constexpr short 32778: lowest() noexcept { return min(); } 32778: 32778: 32778: static constexpr int digits = (sizeof(short) * 8 - ((short)(-1) < 0)); 32778: static constexpr int digits10 = ((sizeof(short) * 8 - ((short)(-1) < 0)) * 643L / 2136); 32778: 32778: static constexpr int max_digits10 = 0; 32778: 32778: static constexpr bool is_signed = true; 32778: static constexpr bool is_integer = true; 32778: static constexpr bool is_exact = true; 32778: static constexpr int radix = 2; 32778: 32778: static constexpr short 32778: epsilon() noexcept { return 0; } 32778: 32778: static constexpr short 32778: round_error() noexcept { return 0; } 32778: 32778: static constexpr int min_exponent = 0; 32778: static constexpr int min_exponent10 = 0; 32778: static constexpr int max_exponent = 0; 32778: static constexpr int max_exponent10 = 0; 32778: 32778: static constexpr bool has_infinity = false; 32778: static constexpr bool has_quiet_NaN = false; 32778: static constexpr bool has_signaling_NaN = false; 32778: static constexpr float_denorm_style has_denorm 32778: = denorm_absent; 32778: static constexpr bool has_denorm_loss = false; 32778: 32778: static constexpr short 32778: infinity() noexcept { return short(); } 32778: 32778: static constexpr short 32778: quiet_NaN() noexcept { return short(); } 32778: 32778: static constexpr short 32778: signaling_NaN() noexcept { return short(); } 32778: 32778: static constexpr short 32778: denorm_min() noexcept { return short(); } 32778: 32778: static constexpr bool is_iec559 = false; 32778: static constexpr bool is_bounded = true; 32778: static constexpr bool is_modulo = false; 32778: 32778: static constexpr bool traps = true; 32778: static constexpr bool tinyness_before = false; 32778: static constexpr float_round_style round_style 32778: = round_toward_zero; 32778: }; 32778: 32778: 32778: template<> 32778: struct numeric_limits 32778: { 32778: static constexpr bool is_specialized = true; 32778: 32778: static constexpr unsigned short 32778: min() noexcept { return 0; } 32778: 32778: static constexpr unsigned short 32778: max() noexcept { return 0x7fff * 2U + 1; } 32778: 32778: 32778: static constexpr unsigned short 32778: lowest() noexcept { return min(); } 32778: 32778: 32778: static constexpr int digits 32778: = (sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)); 32778: static constexpr int digits10 32778: = ((sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)) * 643L / 2136); 32778: 32778: static constexpr int max_digits10 = 0; 32778: 32778: static constexpr bool is_signed = false; 32778: static constexpr bool is_integer = true; 32778: static constexpr bool is_exact = true; 32778: static constexpr int radix = 2; 32778: 32778: static constexpr unsigned short 32778: epsilon() noexcept { return 0; } 32778: 32778: static constexpr unsigned short 32778: round_error() noexcept { return 0; } 32778: 32778: static constexpr int min_exponent = 0; 32778: static constexpr int min_exponent10 = 0; 32778: static constexpr int max_exponent = 0; 32778: static constexpr int max_exponent10 = 0; 32778: 32778: static constexpr bool has_infinity = false; 32778: static constexpr bool has_quiet_NaN = false; 32778: static constexpr bool has_signaling_NaN = false; 32778: static constexpr float_denorm_style has_denorm 32778: = denorm_absent; 32778: static constexpr bool has_denorm_loss = false; 32778: 32778: static constexpr unsigned short 32778: infinity() noexcept 32778: { return static_cast(0); } 32778: 32778: static constexpr unsigned short 32778: quiet_NaN() noexcept 32778: { return static_cast(0); } 32778: 32778: static constexpr unsigned short 32778: signaling_NaN() noexcept 32778: { return static_cast(0); } 32778: 32778: static constexpr unsigned short 32778: denorm_min() noexcept 32778: { return static_cast(0); } 32778: 32778: static constexpr bool is_iec559 = false; 32778: static constexpr bool is_bounded = true; 32778: static constexpr bool is_modulo = true; 32778: 32778: static constexpr bool traps = true; 32778: static constexpr bool tinyness_before = false; 32778: static constexpr float_round_style round_style 32778: = round_toward_zero; 32778: }; 32778: 32778: 32778: template<> 32778: struct numeric_limits 32778: { 32778: static constexpr bool is_specialized = true; 32778: 32778: static constexpr int 32778: min() noexcept { return -0x7fffffff - 1; } 32778: 32778: static constexpr int 32778: max() noexcept { return 0x7fffffff; } 32778: 32778: 32778: static constexpr int 32778: lowest() noexcept { return min(); } 32778: 32778: 32778: static constexpr int digits = (sizeof(int) * 8 - ((int)(-1) < 0)); 32778: static constexpr int digits10 = ((sizeof(int) * 8 - ((int)(-1) < 0)) * 643L / 2136); 32778: 32778: static constexpr int max_digits10 = 0; 32778: 32778: static constexpr bool is_signed = true; 32778: static constexpr bool is_integer = true; 32778: static constexpr bool is_exact = true; 32778: static constexpr int radix = 2; 32778: 32778: static constexpr int 32778: epsilon() noexcept { return 0; } 32778: 32778: static constexpr int 32778: round_error() noexcept { return 0; } 32778: 32778: static constexpr int min_exponent = 0; 32778: static constexpr int min_exponent10 = 0; 32778: static constexpr int max_exponent = 0; 32778: static constexpr int max_exponent10 = 0; 32778: 32778: static constexpr bool has_infinity = false; 32778: static constexpr bool has_quiet_NaN = false; 32778: static constexpr bool has_signaling_NaN = false; 32778: static constexpr float_denorm_style has_denorm 32778: = denorm_absent; 32778: static constexpr bool has_denorm_loss = false; 32778: 32778: static constexpr int 32778: infinity() noexcept { return static_cast(0); } 32778: 32778: static constexpr int 32778: quiet_NaN() noexcept { return static_cast(0); } 32778: 32778: static constexpr int 32778: signaling_NaN() noexcept { return static_cast(0); } 32778: 32778: static constexpr int 32778: denorm_min() noexcept { return static_cast(0); } 32778: 32778: static constexpr bool is_iec559 = false; 32778: static constexpr bool is_bounded = true; 32778: static constexpr bool is_modulo = false; 32778: 32778: static constexpr bool traps = true; 32778: static constexpr bool tinyness_before = false; 32778: static constexpr float_round_style round_style 32778: = round_toward_zero; 32778: }; 32778: 32778: 32778: template<> 32778: struct numeric_limits 32778: { 32778: static constexpr bool is_specialized = true; 32778: 32778: static constexpr unsigned int 32778: min() noexcept { return 0; } 32778: 32778: static constexpr unsigned int 32778: max() noexcept { return 0x7fffffff * 2U + 1; } 32778: 32778: 32778: static constexpr unsigned int 32778: lowest() noexcept { return min(); } 32778: 32778: 32778: static constexpr int digits 32778: = (sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)); 32778: static constexpr int digits10 32778: = ((sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)) * 643L / 2136); 32778: 32778: static constexpr int max_digits10 = 0; 32778: 32778: static constexpr bool is_signed = false; 32778: static constexpr bool is_integer = true; 32778: static constexpr bool is_exact = true; 32778: static constexpr int radix = 2; 32778: 32778: static constexpr unsigned int 32778: epsilon() noexcept { return 0; } 32778: 32778: static constexpr unsigned int 32778: round_error() noexcept { return 0; } 32778: 32778: static constexpr int min_exponent = 0; 32778: static constexpr int min_exponent10 = 0; 32778: static constexpr int max_exponent = 0; 32778: static constexpr int max_exponent10 = 0; 32778: 32778: static constexpr bool has_infinity = false; 32778: static constexpr bool has_quiet_NaN = false; 32778: static constexpr bool has_signaling_NaN = false; 32778: static constexpr float_denorm_style has_denorm 32778: = denorm_absent; 32778: static constexpr bool has_denorm_loss = false; 32778: 32778: static constexpr unsigned int 32778: infinity() noexcept { return static_cast(0); } 32778: 32778: static constexpr unsigned int 32778: quiet_NaN() noexcept 32778: { return static_cast(0); } 32778: 32778: static constexpr unsigned int 32778: signaling_NaN() noexcept 32778: { return static_cast(0); } 32778: 32778: static constexpr unsigned int 32778: denorm_min() noexcept 32778: { return static_cast(0); } 32778: 32778: static constexpr bool is_iec559 = false; 32778: static constexpr bool is_bounded = true; 32778: static constexpr bool is_modulo = true; 32778: 32778: static constexpr bool traps = true; 32778: static constexpr bool tinyness_before = false; 32778: static constexpr float_round_style round_style 32778: = round_toward_zero; 32778: }; 32778: 32778: 32778: template<> 32778: struct numeric_limits 32778: { 32778: static constexpr bool is_specialized = true; 32778: 32778: static constexpr long 32778: min() noexcept { return -0x7fffffffffffffffL - 1; } 32778: 32778: static constexpr long 32778: max() noexcept { return 0x7fffffffffffffffL; } 32778: 32778: 32778: static constexpr long 32778: lowest() noexcept { return min(); } 32778: 32778: 32778: static constexpr int digits = (sizeof(long) * 8 - ((long)(-1) < 0)); 32778: static constexpr int digits10 = ((sizeof(long) * 8 - ((long)(-1) < 0)) * 643L / 2136); 32778: 32778: static constexpr int max_digits10 = 0; 32778: 32778: static constexpr bool is_signed = true; 32778: static constexpr bool is_integer = true; 32778: static constexpr bool is_exact = true; 32778: static constexpr int radix = 2; 32778: 32778: static constexpr long 32778: epsilon() noexcept { return 0; } 32778: 32778: static constexpr long 32778: round_error() noexcept { return 0; } 32778: 32778: static constexpr int min_exponent = 0; 32778: static constexpr int min_exponent10 = 0; 32778: static constexpr int max_exponent = 0; 32778: static constexpr int max_exponent10 = 0; 32778: 32778: static constexpr bool has_infinity = false; 32778: static constexpr bool has_quiet_NaN = false; 32778: static constexpr bool has_signaling_NaN = false; 32778: static constexpr float_denorm_style has_denorm 32778: = denorm_absent; 32778: static constexpr bool has_denorm_loss = false; 32778: 32778: static constexpr long 32778: infinity() noexcept { return static_cast(0); } 32778: 32778: static constexpr long 32778: quiet_NaN() noexcept { return static_cast(0); } 32778: 32778: static constexpr long 32778: signaling_NaN() noexcept { return static_cast(0); } 32778: 32778: static constexpr long 32778: denorm_min() noexcept { return static_cast(0); } 32778: 32778: static constexpr bool is_iec559 = false; 32778: static constexpr bool is_bounded = true; 32778: static constexpr bool is_modulo = false; 32778: 32778: static constexpr bool traps = true; 32778: static constexpr bool tinyness_before = false; 32778: static constexpr float_round_style round_style 32778: = round_toward_zero; 32778: }; 32778: 32778: 32778: template<> 32778: struct numeric_limits 32778: { 32778: static constexpr bool is_specialized = true; 32778: 32778: static constexpr unsigned long 32778: min() noexcept { return 0; } 32778: 32778: static constexpr unsigned long 32778: max() noexcept { return 0x7fffffffffffffffL * 2UL + 1; } 32778: 32778: 32778: static constexpr unsigned long 32778: lowest() noexcept { return min(); } 32778: 32778: 32778: static constexpr int digits 32778: = (sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)); 32778: static constexpr int digits10 32778: = ((sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)) * 643L / 2136); 32778: 32778: static constexpr int max_digits10 = 0; 32778: 32778: static constexpr bool is_signed = false; 32778: static constexpr bool is_integer = true; 32778: static constexpr bool is_exact = true; 32778: static constexpr int radix = 2; 32778: 32778: static constexpr unsigned long 32778: epsilon() noexcept { return 0; } 32778: 32778: static constexpr unsigned long 32778: round_error() noexcept { return 0; } 32778: 32778: static constexpr int min_exponent = 0; 32778: static constexpr int min_exponent10 = 0; 32778: static constexpr int max_exponent = 0; 32778: static constexpr int max_exponent10 = 0; 32778: 32778: static constexpr bool has_infinity = false; 32778: static constexpr bool has_quiet_NaN = false; 32778: static constexpr bool has_signaling_NaN = false; 32778: static constexpr float_denorm_style has_denorm 32778: = denorm_absent; 32778: static constexpr bool has_denorm_loss = false; 32778: 32778: static constexpr unsigned long 32778: infinity() noexcept 32778: { return static_cast(0); } 32778: 32778: static constexpr unsigned long 32778: quiet_NaN() noexcept 32778: { return static_cast(0); } 32778: 32778: static constexpr unsigned long 32778: signaling_NaN() noexcept 32778: { return static_cast(0); } 32778: 32778: static constexpr unsigned long 32778: denorm_min() noexcept 32778: { return static_cast(0); } 32778: 32778: static constexpr bool is_iec559 = false; 32778: static constexpr bool is_bounded = true; 32778: static constexpr bool is_modulo = true; 32778: 32778: static constexpr bool traps = true; 32778: static constexpr bool tinyness_before = false; 32778: static constexpr float_round_style round_style 32778: = round_toward_zero; 32778: }; 32778: 32778: 32778: template<> 32778: struct numeric_limits 32778: { 32778: static constexpr bool is_specialized = true; 32778: 32778: static constexpr long long 32778: min() noexcept { return -0x7fffffffffffffffLL - 1; } 32778: 32778: static constexpr long long 32778: max() noexcept { return 0x7fffffffffffffffLL; } 32778: 32778: 32778: static constexpr long long 32778: lowest() noexcept { return min(); } 32778: 32778: 32778: static constexpr int digits 32778: = (sizeof(long long) * 8 - ((long long)(-1) < 0)); 32778: static constexpr int digits10 32778: = ((sizeof(long long) * 8 - ((long long)(-1) < 0)) * 643L / 2136); 32778: 32778: static constexpr int max_digits10 = 0; 32778: 32778: static constexpr bool is_signed = true; 32778: static constexpr bool is_integer = true; 32778: static constexpr bool is_exact = true; 32778: static constexpr int radix = 2; 32778: 32778: static constexpr long long 32778: epsilon() noexcept { return 0; } 32778: 32778: static constexpr long long 32778: round_error() noexcept { return 0; } 32778: 32778: static constexpr int min_exponent = 0; 32778: static constexpr int min_exponent10 = 0; 32778: static constexpr int max_exponent = 0; 32778: static constexpr int max_exponent10 = 0; 32778: 32778: static constexpr bool has_infinity = false; 32778: static constexpr bool has_quiet_NaN = false; 32778: static constexpr bool has_signaling_NaN = false; 32778: static constexpr float_denorm_style has_denorm 32778: = denorm_absent; 32778: static constexpr bool has_denorm_loss = false; 32778: 32778: static constexpr long long 32778: infinity() noexcept { return static_cast(0); } 32778: 32778: static constexpr long long 32778: quiet_NaN() noexcept { return static_cast(0); } 32778: 32778: static constexpr long long 32778: signaling_NaN() noexcept 32778: { return static_cast(0); } 32778: 32778: static constexpr long long 32778: denorm_min() noexcept { return static_cast(0); } 32778: 32778: static constexpr bool is_iec559 = false; 32778: static constexpr bool is_bounded = true; 32778: static constexpr bool is_modulo = false; 32778: 32778: static constexpr bool traps = true; 32778: static constexpr bool tinyness_before = false; 32778: static constexpr float_round_style round_style 32778: = round_toward_zero; 32778: }; 32778: 32778: 32778: template<> 32778: struct numeric_limits 32778: { 32778: static constexpr bool is_specialized = true; 32778: 32778: static constexpr unsigned long long 32778: min() noexcept { return 0; } 32778: 32778: static constexpr unsigned long long 32778: max() noexcept { return 0x7fffffffffffffffLL * 2ULL + 1; } 32778: 32778: 32778: static constexpr unsigned long long 32778: lowest() noexcept { return min(); } 32778: 32778: 32778: static constexpr int digits 32778: = (sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)); 32778: static constexpr int digits10 32778: = ((sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)) * 643L / 2136); 32778: 32778: static constexpr int max_digits10 = 0; 32778: 32778: static constexpr bool is_signed = false; 32778: static constexpr bool is_integer = true; 32778: static constexpr bool is_exact = true; 32778: static constexpr int radix = 2; 32778: 32778: static constexpr unsigned long long 32778: epsilon() noexcept { return 0; } 32778: 32778: static constexpr unsigned long long 32778: round_error() noexcept { return 0; } 32778: 32778: static constexpr int min_exponent = 0; 32778: static constexpr int min_exponent10 = 0; 32778: static constexpr int max_exponent = 0; 32778: static constexpr int max_exponent10 = 0; 32778: 32778: static constexpr bool has_infinity = false; 32778: static constexpr bool has_quiet_NaN = false; 32778: static constexpr bool has_signaling_NaN = false; 32778: static constexpr float_denorm_style has_denorm 32778: = denorm_absent; 32778: static constexpr bool has_denorm_loss = false; 32778: 32778: static constexpr unsigned long long 32778: infinity() noexcept 32778: { return static_cast(0); } 32778: 32778: static constexpr unsigned long long 32778: quiet_NaN() noexcept 32778: { return static_cast(0); } 32778: 32778: static constexpr unsigned long long 32778: signaling_NaN() noexcept 32778: { return static_cast(0); } 32778: 32778: static constexpr unsigned long long 32778: denorm_min() noexcept 32778: { return static_cast(0); } 32778: 32778: static constexpr bool is_iec559 = false; 32778: static constexpr bool is_bounded = true; 32778: static constexpr bool is_modulo = true; 32778: 32778: static constexpr bool traps = true; 32778: static constexpr bool tinyness_before = false; 32778: static constexpr float_round_style round_style 32778: = round_toward_zero; 32778: }; 32778: # 1659 "/usr/include/c++/9/limits" 3 32778: template<> 32778: struct numeric_limits 32778: { 32778: static constexpr bool is_specialized = true; 32778: 32778: static constexpr float 32778: min() noexcept { return 1.17549435082228750796873653722224568e-38F; } 32778: 32778: static constexpr float 32778: max() noexcept { return 3.40282346638528859811704183484516925e+38F; } 32778: 32778: 32778: static constexpr float 32778: lowest() noexcept { return -3.40282346638528859811704183484516925e+38F; } 32778: 32778: 32778: static constexpr int digits = 24; 32778: static constexpr int digits10 = 6; 32778: 32778: static constexpr int max_digits10 32778: = (2 + (24) * 643L / 2136); 32778: 32778: static constexpr bool is_signed = true; 32778: static constexpr bool is_integer = false; 32778: static constexpr bool is_exact = false; 32778: static constexpr int radix = 2; 32778: 32778: static constexpr float 32778: epsilon() noexcept { return 1.19209289550781250000000000000000000e-7F; } 32778: 32778: static constexpr float 32778: round_error() noexcept { return 0.5F; } 32778: 32778: static constexpr int min_exponent = (-125); 32778: static constexpr int min_exponent10 = (-37); 32778: static constexpr int max_exponent = 128; 32778: static constexpr int max_exponent10 = 38; 32778: 32778: static constexpr bool has_infinity = 1; 32778: static constexpr bool has_quiet_NaN = 1; 32778: static constexpr bool has_signaling_NaN = has_quiet_NaN; 32778: static constexpr float_denorm_style has_denorm 32778: = bool(1) ? denorm_present : denorm_absent; 32778: static constexpr bool has_denorm_loss 32778: = false; 32778: 32778: static constexpr float 32778: infinity() noexcept { return __builtin_huge_valf(); } 32778: 32778: static constexpr float 32778: quiet_NaN() noexcept { return __builtin_nanf(""); } 32778: 32778: static constexpr float 32778: signaling_NaN() noexcept { return __builtin_nansf(""); } 32778: 32778: static constexpr float 32778: denorm_min() noexcept { return 1.40129846432481707092372958328991613e-45F; } 32778: 32778: static constexpr bool is_iec559 32778: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 32778: static constexpr bool is_bounded = true; 32778: static constexpr bool is_modulo = false; 32778: 32778: static constexpr bool traps = false; 32778: static constexpr bool tinyness_before 32778: = false; 32778: static constexpr float_round_style round_style 32778: = round_to_nearest; 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: template<> 32778: struct numeric_limits 32778: { 32778: static constexpr bool is_specialized = true; 32778: 32778: static constexpr double 32778: min() noexcept { return double(2.22507385850720138309023271733240406e-308L); } 32778: 32778: static constexpr double 32778: max() noexcept { return double(1.79769313486231570814527423731704357e+308L); } 32778: 32778: 32778: static constexpr double 32778: lowest() noexcept { return -double(1.79769313486231570814527423731704357e+308L); } 32778: 32778: 32778: static constexpr int digits = 53; 32778: static constexpr int digits10 = 15; 32778: 32778: static constexpr int max_digits10 32778: = (2 + (53) * 643L / 2136); 32778: 32778: static constexpr bool is_signed = true; 32778: static constexpr bool is_integer = false; 32778: static constexpr bool is_exact = false; 32778: static constexpr int radix = 2; 32778: 32778: static constexpr double 32778: epsilon() noexcept { return double(2.22044604925031308084726333618164062e-16L); } 32778: 32778: static constexpr double 32778: round_error() noexcept { return 0.5; } 32778: 32778: static constexpr int min_exponent = (-1021); 32778: static constexpr int min_exponent10 = (-307); 32778: static constexpr int max_exponent = 1024; 32778: static constexpr int max_exponent10 = 308; 32778: 32778: static constexpr bool has_infinity = 1; 32778: static constexpr bool has_quiet_NaN = 1; 32778: static constexpr bool has_signaling_NaN = has_quiet_NaN; 32778: static constexpr float_denorm_style has_denorm 32778: = bool(1) ? denorm_present : denorm_absent; 32778: static constexpr bool has_denorm_loss 32778: = false; 32778: 32778: static constexpr double 32778: infinity() noexcept { return __builtin_huge_val(); } 32778: 32778: static constexpr double 32778: quiet_NaN() noexcept { return __builtin_nan(""); } 32778: 32778: static constexpr double 32778: signaling_NaN() noexcept { return __builtin_nans(""); } 32778: 32778: static constexpr double 32778: denorm_min() noexcept { return double(4.94065645841246544176568792868221372e-324L); } 32778: 32778: static constexpr bool is_iec559 32778: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 32778: static constexpr bool is_bounded = true; 32778: static constexpr bool is_modulo = false; 32778: 32778: static constexpr bool traps = false; 32778: static constexpr bool tinyness_before 32778: = false; 32778: static constexpr float_round_style round_style 32778: = round_to_nearest; 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: template<> 32778: struct numeric_limits 32778: { 32778: static constexpr bool is_specialized = true; 32778: 32778: static constexpr long double 32778: min() noexcept { return 3.36210314311209350626267781732175260e-4932L; } 32778: 32778: static constexpr long double 32778: max() noexcept { return 1.18973149535723176508575932662800702e+4932L; } 32778: 32778: 32778: static constexpr long double 32778: lowest() noexcept { return -1.18973149535723176508575932662800702e+4932L; } 32778: 32778: 32778: static constexpr int digits = 113; 32778: static constexpr int digits10 = 33; 32778: 32778: static constexpr int max_digits10 32778: = (2 + (113) * 643L / 2136); 32778: 32778: static constexpr bool is_signed = true; 32778: static constexpr bool is_integer = false; 32778: static constexpr bool is_exact = false; 32778: static constexpr int radix = 2; 32778: 32778: static constexpr long double 32778: epsilon() noexcept { return 1.92592994438723585305597794258492732e-34L; } 32778: 32778: static constexpr long double 32778: round_error() noexcept { return 0.5L; } 32778: 32778: static constexpr int min_exponent = (-16381); 32778: static constexpr int min_exponent10 = (-4931); 32778: static constexpr int max_exponent = 16384; 32778: static constexpr int max_exponent10 = 4932; 32778: 32778: static constexpr bool has_infinity = 1; 32778: static constexpr bool has_quiet_NaN = 1; 32778: static constexpr bool has_signaling_NaN = has_quiet_NaN; 32778: static constexpr float_denorm_style has_denorm 32778: = bool(1) ? denorm_present : denorm_absent; 32778: static constexpr bool has_denorm_loss 32778: = false; 32778: 32778: static constexpr long double 32778: infinity() noexcept { return __builtin_huge_vall(); } 32778: 32778: static constexpr long double 32778: quiet_NaN() noexcept { return __builtin_nanl(""); } 32778: 32778: static constexpr long double 32778: signaling_NaN() noexcept { return __builtin_nansl(""); } 32778: 32778: static constexpr long double 32778: denorm_min() noexcept { return 6.47517511943802511092443895822764655e-4966L; } 32778: 32778: static constexpr bool is_iec559 32778: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 32778: static constexpr bool is_bounded = true; 32778: static constexpr bool is_modulo = false; 32778: 32778: static constexpr bool traps = false; 32778: static constexpr bool tinyness_before = 32778: false; 32778: static constexpr float_round_style round_style = 32778: round_to_nearest; 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: } 32778: # 25 "/<>/include/HepMC3/Attribute.h" 2 32778: # 1 "/usr/include/c++/9/sstream" 1 3 32778: # 36 "/usr/include/c++/9/sstream" 3 32778: 32778: # 37 "/usr/include/c++/9/sstream" 3 32778: 32778: 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: namespace __cxx11 { 32778: # 64 "/usr/include/c++/9/sstream" 3 32778: template 32778: class basic_stringbuf : public basic_streambuf<_CharT, _Traits> 32778: { 32778: struct __xfer_bufptrs; 32778: public: 32778: 32778: typedef _CharT char_type; 32778: typedef _Traits traits_type; 32778: 32778: 32778: typedef _Alloc allocator_type; 32778: typedef typename traits_type::int_type int_type; 32778: typedef typename traits_type::pos_type pos_type; 32778: typedef typename traits_type::off_type off_type; 32778: 32778: typedef basic_streambuf __streambuf_type; 32778: typedef basic_string __string_type; 32778: typedef typename __string_type::size_type __size_type; 32778: 32778: protected: 32778: 32778: ios_base::openmode _M_mode; 32778: 32778: 32778: __string_type _M_string; 32778: 32778: public: 32778: # 99 "/usr/include/c++/9/sstream" 3 32778: basic_stringbuf() 32778: : __streambuf_type(), _M_mode(ios_base::in | ios_base::out), _M_string() 32778: { } 32778: # 110 "/usr/include/c++/9/sstream" 3 32778: explicit 32778: basic_stringbuf(ios_base::openmode __mode) 32778: : __streambuf_type(), _M_mode(__mode), _M_string() 32778: { } 32778: # 123 "/usr/include/c++/9/sstream" 3 32778: explicit 32778: basic_stringbuf(const __string_type& __str, 32778: ios_base::openmode __mode = ios_base::in | ios_base::out) 32778: : __streambuf_type(), _M_mode(), 32778: _M_string(__str.data(), __str.size(), __str.get_allocator()) 32778: { _M_stringbuf_init(__mode); } 32778: 32778: 32778: basic_stringbuf(const basic_stringbuf&) = delete; 32778: 32778: basic_stringbuf(basic_stringbuf&& __rhs) 32778: : basic_stringbuf(std::move(__rhs), __xfer_bufptrs(__rhs, this)) 32778: { __rhs._M_sync(const_cast(__rhs._M_string.data()), 0, 0); } 32778: 32778: 32778: 32778: basic_stringbuf& 32778: operator=(const basic_stringbuf&) = delete; 32778: 32778: basic_stringbuf& 32778: operator=(basic_stringbuf&& __rhs) 32778: { 32778: __xfer_bufptrs __st{__rhs, this}; 32778: const __streambuf_type& __base = __rhs; 32778: __streambuf_type::operator=(__base); 32778: this->pubimbue(__rhs.getloc()); 32778: _M_mode = __rhs._M_mode; 32778: _M_string = std::move(__rhs._M_string); 32778: __rhs._M_sync(const_cast(__rhs._M_string.data()), 0, 0); 32778: return *this; 32778: } 32778: 32778: void 32778: swap(basic_stringbuf& __rhs) 32778: { 32778: __xfer_bufptrs __l_st{*this, std::__addressof(__rhs)}; 32778: __xfer_bufptrs __r_st{__rhs, this}; 32778: __streambuf_type& __base = __rhs; 32778: __streambuf_type::swap(__base); 32778: __rhs.pubimbue(this->pubimbue(__rhs.getloc())); 32778: std::swap(_M_mode, __rhs._M_mode); 32778: std::swap(_M_string, __rhs._M_string); 32778: } 32778: # 177 "/usr/include/c++/9/sstream" 3 32778: __string_type 32778: str() const 32778: { 32778: __string_type __ret(_M_string.get_allocator()); 32778: if (this->pptr()) 32778: { 32778: 32778: if (this->pptr() > this->egptr()) 32778: __ret.assign(this->pbase(), this->pptr()); 32778: else 32778: __ret.assign(this->pbase(), this->egptr()); 32778: } 32778: else 32778: __ret = _M_string; 32778: return __ret; 32778: } 32778: # 201 "/usr/include/c++/9/sstream" 3 32778: void 32778: str(const __string_type& __s) 32778: { 32778: 32778: 32778: _M_string.assign(__s.data(), __s.size()); 32778: _M_stringbuf_init(_M_mode); 32778: } 32778: 32778: protected: 32778: 32778: void 32778: _M_stringbuf_init(ios_base::openmode __mode) 32778: { 32778: _M_mode = __mode; 32778: __size_type __len = 0; 32778: if (_M_mode & (ios_base::ate | ios_base::app)) 32778: __len = _M_string.size(); 32778: _M_sync(const_cast(_M_string.data()), 0, __len); 32778: } 32778: 32778: virtual streamsize 32778: showmanyc() 32778: { 32778: streamsize __ret = -1; 32778: if (_M_mode & ios_base::in) 32778: { 32778: _M_update_egptr(); 32778: __ret = this->egptr() - this->gptr(); 32778: } 32778: return __ret; 32778: } 32778: 32778: virtual int_type 32778: underflow(); 32778: 32778: virtual int_type 32778: pbackfail(int_type __c = traits_type::eof()); 32778: 32778: virtual int_type 32778: overflow(int_type __c = traits_type::eof()); 32778: # 254 "/usr/include/c++/9/sstream" 3 32778: virtual __streambuf_type* 32778: setbuf(char_type* __s, streamsize __n) 32778: { 32778: if (__s && __n >= 0) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: _M_string.clear(); 32778: 32778: 32778: _M_sync(__s, __n, 0); 32778: } 32778: return this; 32778: } 32778: 32778: virtual pos_type 32778: seekoff(off_type __off, ios_base::seekdir __way, 32778: ios_base::openmode __mode = ios_base::in | ios_base::out); 32778: 32778: virtual pos_type 32778: seekpos(pos_type __sp, 32778: ios_base::openmode __mode = ios_base::in | ios_base::out); 32778: 32778: 32778: 32778: 32778: void 32778: _M_sync(char_type* __base, __size_type __i, __size_type __o); 32778: 32778: 32778: 32778: void 32778: _M_update_egptr() 32778: { 32778: const bool __testin = _M_mode & ios_base::in; 32778: if (this->pptr() && this->pptr() > this->egptr()) 32778: { 32778: if (__testin) 32778: this->setg(this->eback(), this->gptr(), this->pptr()); 32778: else 32778: this->setg(this->pptr(), this->pptr(), this->pptr()); 32778: } 32778: } 32778: 32778: 32778: 32778: void 32778: _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off); 32778: 32778: private: 32778: 32778: 32778: 32778: 32778: struct __xfer_bufptrs 32778: { 32778: __xfer_bufptrs(const basic_stringbuf& __from, basic_stringbuf* __to) 32778: : _M_to{__to}, _M_goff{-1, -1, -1}, _M_poff{-1, -1, -1} 32778: { 32778: const _CharT* const __str = __from._M_string.data(); 32778: const _CharT* __end = nullptr; 32778: if (__from.eback()) 32778: { 32778: _M_goff[0] = __from.eback() - __str; 32778: _M_goff[1] = __from.gptr() - __str; 32778: _M_goff[2] = __from.egptr() - __str; 32778: __end = __from.egptr(); 32778: } 32778: if (__from.pbase()) 32778: { 32778: _M_poff[0] = __from.pbase() - __str; 32778: _M_poff[1] = __from.pptr() - __from.pbase(); 32778: _M_poff[2] = __from.epptr() - __str; 32778: if (__from.pptr() > __end) 32778: __end = __from.pptr(); 32778: } 32778: 32778: 32778: if (__end) 32778: { 32778: 32778: 32778: auto& __mut_from = const_cast(__from); 32778: __mut_from._M_string._M_length(__end - __str); 32778: } 32778: } 32778: 32778: ~__xfer_bufptrs() 32778: { 32778: char_type* __str = const_cast(_M_to->_M_string.data()); 32778: if (_M_goff[0] != -1) 32778: _M_to->setg(__str+_M_goff[0], __str+_M_goff[1], __str+_M_goff[2]); 32778: if (_M_poff[0] != -1) 32778: _M_to->_M_pbump(__str+_M_poff[0], __str+_M_poff[2], _M_poff[1]); 32778: } 32778: 32778: basic_stringbuf* _M_to; 32778: off_type _M_goff[3]; 32778: off_type _M_poff[3]; 32778: }; 32778: # 368 "/usr/include/c++/9/sstream" 3 32778: basic_stringbuf(basic_stringbuf&& __rhs, __xfer_bufptrs&&) 32778: : __streambuf_type(static_cast(__rhs)), 32778: _M_mode(__rhs._M_mode), _M_string(std::move(__rhs._M_string)) 32778: { } 32778: 32778: }; 32778: # 391 "/usr/include/c++/9/sstream" 3 32778: template 32778: class basic_istringstream : public basic_istream<_CharT, _Traits> 32778: { 32778: public: 32778: 32778: typedef _CharT char_type; 32778: typedef _Traits traits_type; 32778: 32778: 32778: typedef _Alloc allocator_type; 32778: typedef typename traits_type::int_type int_type; 32778: typedef typename traits_type::pos_type pos_type; 32778: typedef typename traits_type::off_type off_type; 32778: 32778: 32778: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 32778: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 32778: typedef basic_istream __istream_type; 32778: 32778: private: 32778: __stringbuf_type _M_stringbuf; 32778: 32778: public: 32778: # 425 "/usr/include/c++/9/sstream" 3 32778: basic_istringstream() 32778: : __istream_type(), _M_stringbuf(ios_base::in) 32778: { this->init(&_M_stringbuf); } 32778: # 441 "/usr/include/c++/9/sstream" 3 32778: explicit 32778: basic_istringstream(ios_base::openmode __mode) 32778: : __istream_type(), _M_stringbuf(__mode | ios_base::in) 32778: { this->init(&_M_stringbuf); } 32778: # 459 "/usr/include/c++/9/sstream" 3 32778: explicit 32778: basic_istringstream(const __string_type& __str, 32778: ios_base::openmode __mode = ios_base::in) 32778: : __istream_type(), _M_stringbuf(__str, __mode | ios_base::in) 32778: { this->init(&_M_stringbuf); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: ~basic_istringstream() 32778: { } 32778: 32778: 32778: basic_istringstream(const basic_istringstream&) = delete; 32778: 32778: basic_istringstream(basic_istringstream&& __rhs) 32778: : __istream_type(std::move(__rhs)), 32778: _M_stringbuf(std::move(__rhs._M_stringbuf)) 32778: { __istream_type::set_rdbuf(&_M_stringbuf); } 32778: 32778: 32778: 32778: basic_istringstream& 32778: operator=(const basic_istringstream&) = delete; 32778: 32778: basic_istringstream& 32778: operator=(basic_istringstream&& __rhs) 32778: { 32778: __istream_type::operator=(std::move(__rhs)); 32778: _M_stringbuf = std::move(__rhs._M_stringbuf); 32778: return *this; 32778: } 32778: 32778: void 32778: swap(basic_istringstream& __rhs) 32778: { 32778: __istream_type::swap(__rhs); 32778: _M_stringbuf.swap(__rhs._M_stringbuf); 32778: } 32778: # 510 "/usr/include/c++/9/sstream" 3 32778: __stringbuf_type* 32778: rdbuf() const 32778: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 32778: 32778: 32778: 32778: 32778: 32778: __string_type 32778: str() const 32778: { return _M_stringbuf.str(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: void 32778: str(const __string_type& __s) 32778: { _M_stringbuf.str(__s); } 32778: }; 32778: # 549 "/usr/include/c++/9/sstream" 3 32778: template 32778: class basic_ostringstream : public basic_ostream<_CharT, _Traits> 32778: { 32778: public: 32778: 32778: typedef _CharT char_type; 32778: typedef _Traits traits_type; 32778: 32778: 32778: typedef _Alloc allocator_type; 32778: typedef typename traits_type::int_type int_type; 32778: typedef typename traits_type::pos_type pos_type; 32778: typedef typename traits_type::off_type off_type; 32778: 32778: 32778: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 32778: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 32778: typedef basic_ostream __ostream_type; 32778: 32778: private: 32778: __stringbuf_type _M_stringbuf; 32778: 32778: public: 32778: # 583 "/usr/include/c++/9/sstream" 3 32778: basic_ostringstream() 32778: : __ostream_type(), _M_stringbuf(ios_base::out) 32778: { this->init(&_M_stringbuf); } 32778: # 599 "/usr/include/c++/9/sstream" 3 32778: explicit 32778: basic_ostringstream(ios_base::openmode __mode) 32778: : __ostream_type(), _M_stringbuf(__mode | ios_base::out) 32778: { this->init(&_M_stringbuf); } 32778: # 617 "/usr/include/c++/9/sstream" 3 32778: explicit 32778: basic_ostringstream(const __string_type& __str, 32778: ios_base::openmode __mode = ios_base::out) 32778: : __ostream_type(), _M_stringbuf(__str, __mode | ios_base::out) 32778: { this->init(&_M_stringbuf); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: ~basic_ostringstream() 32778: { } 32778: 32778: 32778: basic_ostringstream(const basic_ostringstream&) = delete; 32778: 32778: basic_ostringstream(basic_ostringstream&& __rhs) 32778: : __ostream_type(std::move(__rhs)), 32778: _M_stringbuf(std::move(__rhs._M_stringbuf)) 32778: { __ostream_type::set_rdbuf(&_M_stringbuf); } 32778: 32778: 32778: 32778: basic_ostringstream& 32778: operator=(const basic_ostringstream&) = delete; 32778: 32778: basic_ostringstream& 32778: operator=(basic_ostringstream&& __rhs) 32778: { 32778: __ostream_type::operator=(std::move(__rhs)); 32778: _M_stringbuf = std::move(__rhs._M_stringbuf); 32778: return *this; 32778: } 32778: 32778: void 32778: swap(basic_ostringstream& __rhs) 32778: { 32778: __ostream_type::swap(__rhs); 32778: _M_stringbuf.swap(__rhs._M_stringbuf); 32778: } 32778: # 668 "/usr/include/c++/9/sstream" 3 32778: __stringbuf_type* 32778: rdbuf() const 32778: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 32778: 32778: 32778: 32778: 32778: 32778: __string_type 32778: str() const 32778: { return _M_stringbuf.str(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: void 32778: str(const __string_type& __s) 32778: { _M_stringbuf.str(__s); } 32778: }; 32778: # 707 "/usr/include/c++/9/sstream" 3 32778: template 32778: class basic_stringstream : public basic_iostream<_CharT, _Traits> 32778: { 32778: public: 32778: 32778: typedef _CharT char_type; 32778: typedef _Traits traits_type; 32778: 32778: 32778: typedef _Alloc allocator_type; 32778: typedef typename traits_type::int_type int_type; 32778: typedef typename traits_type::pos_type pos_type; 32778: typedef typename traits_type::off_type off_type; 32778: 32778: 32778: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 32778: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 32778: typedef basic_iostream __iostream_type; 32778: 32778: private: 32778: __stringbuf_type _M_stringbuf; 32778: 32778: public: 32778: # 741 "/usr/include/c++/9/sstream" 3 32778: basic_stringstream() 32778: : __iostream_type(), _M_stringbuf(ios_base::out | ios_base::in) 32778: { this->init(&_M_stringbuf); } 32778: # 755 "/usr/include/c++/9/sstream" 3 32778: explicit 32778: basic_stringstream(ios_base::openmode __m) 32778: : __iostream_type(), _M_stringbuf(__m) 32778: { this->init(&_M_stringbuf); } 32778: # 771 "/usr/include/c++/9/sstream" 3 32778: explicit 32778: basic_stringstream(const __string_type& __str, 32778: ios_base::openmode __m = ios_base::out | ios_base::in) 32778: : __iostream_type(), _M_stringbuf(__str, __m) 32778: { this->init(&_M_stringbuf); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: ~basic_stringstream() 32778: { } 32778: 32778: 32778: basic_stringstream(const basic_stringstream&) = delete; 32778: 32778: basic_stringstream(basic_stringstream&& __rhs) 32778: : __iostream_type(std::move(__rhs)), 32778: _M_stringbuf(std::move(__rhs._M_stringbuf)) 32778: { __iostream_type::set_rdbuf(&_M_stringbuf); } 32778: 32778: 32778: 32778: basic_stringstream& 32778: operator=(const basic_stringstream&) = delete; 32778: 32778: basic_stringstream& 32778: operator=(basic_stringstream&& __rhs) 32778: { 32778: __iostream_type::operator=(std::move(__rhs)); 32778: _M_stringbuf = std::move(__rhs._M_stringbuf); 32778: return *this; 32778: } 32778: 32778: void 32778: swap(basic_stringstream& __rhs) 32778: { 32778: __iostream_type::swap(__rhs); 32778: _M_stringbuf.swap(__rhs._M_stringbuf); 32778: } 32778: # 822 "/usr/include/c++/9/sstream" 3 32778: __stringbuf_type* 32778: rdbuf() const 32778: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 32778: 32778: 32778: 32778: 32778: 32778: __string_type 32778: str() const 32778: { return _M_stringbuf.str(); } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: void 32778: str(const __string_type& __s) 32778: { _M_stringbuf.str(__s); } 32778: }; 32778: 32778: 32778: 32778: template 32778: inline void 32778: swap(basic_stringbuf<_CharT, _Traits, _Allocator>& __x, 32778: basic_stringbuf<_CharT, _Traits, _Allocator>& __y) 32778: { __x.swap(__y); } 32778: 32778: 32778: template 32778: inline void 32778: swap(basic_istringstream<_CharT, _Traits, _Allocator>& __x, 32778: basic_istringstream<_CharT, _Traits, _Allocator>& __y) 32778: { __x.swap(__y); } 32778: 32778: 32778: template 32778: inline void 32778: swap(basic_ostringstream<_CharT, _Traits, _Allocator>& __x, 32778: basic_ostringstream<_CharT, _Traits, _Allocator>& __y) 32778: { __x.swap(__y); } 32778: 32778: 32778: template 32778: inline void 32778: swap(basic_stringstream<_CharT, _Traits, _Allocator>& __x, 32778: basic_stringstream<_CharT, _Traits, _Allocator>& __y) 32778: { __x.swap(__y); } 32778: 32778: 32778: } 32778: 32778: } 32778: 32778: # 1 "/usr/include/c++/9/bits/sstream.tcc" 1 3 32778: # 37 "/usr/include/c++/9/bits/sstream.tcc" 3 32778: 32778: # 38 "/usr/include/c++/9/bits/sstream.tcc" 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: template 32778: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 32778: basic_stringbuf<_CharT, _Traits, _Alloc>:: 32778: pbackfail(int_type __c) 32778: { 32778: int_type __ret = traits_type::eof(); 32778: if (this->eback() < this->gptr()) 32778: { 32778: 32778: 32778: const bool __testeof = traits_type::eq_int_type(__c, __ret); 32778: if (!__testeof) 32778: { 32778: const bool __testeq = traits_type::eq(traits_type:: 32778: to_char_type(__c), 32778: this->gptr()[-1]); 32778: const bool __testout = this->_M_mode & ios_base::out; 32778: if (__testeq || __testout) 32778: { 32778: this->gbump(-1); 32778: if (!__testeq) 32778: *this->gptr() = traits_type::to_char_type(__c); 32778: __ret = __c; 32778: } 32778: } 32778: else 32778: { 32778: this->gbump(-1); 32778: __ret = traits_type::not_eof(__c); 32778: } 32778: } 32778: return __ret; 32778: } 32778: 32778: template 32778: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 32778: basic_stringbuf<_CharT, _Traits, _Alloc>:: 32778: overflow(int_type __c) 32778: { 32778: const bool __testout = this->_M_mode & ios_base::out; 32778: if (__builtin_expect(!__testout, false)) 32778: return traits_type::eof(); 32778: 32778: const bool __testeof = traits_type::eq_int_type(__c, traits_type::eof()); 32778: if (__builtin_expect(__testeof, false)) 32778: return traits_type::not_eof(__c); 32778: 32778: const __size_type __capacity = _M_string.capacity(); 32778: 32778: 32778: if ((this->epptr() - this->pbase()) < __capacity) 32778: { 32778: 32778: char_type* __base = const_cast(_M_string.data()); 32778: _M_pbump(__base, __base + __capacity, this->pptr() - this->pbase()); 32778: if (_M_mode & ios_base::in) 32778: { 32778: const __size_type __nget = this->gptr() - this->eback(); 32778: const __size_type __eget = this->egptr() - this->eback(); 32778: this->setg(__base, __base + __nget, __base + __eget + 1); 32778: } 32778: *this->pptr() = traits_type::to_char_type(__c); 32778: this->pbump(1); 32778: return __c; 32778: } 32778: 32778: 32778: const __size_type __max_size = _M_string.max_size(); 32778: const bool __testput = this->pptr() < this->epptr(); 32778: if (__builtin_expect(!__testput && __capacity == __max_size, false)) 32778: return traits_type::eof(); 32778: 32778: 32778: 32778: const char_type __conv = traits_type::to_char_type(__c); 32778: if (!__testput) 32778: { 32778: # 129 "/usr/include/c++/9/bits/sstream.tcc" 3 32778: const __size_type __opt_len = std::max(__size_type(2 * __capacity), 32778: __size_type(512)); 32778: const __size_type __len = std::min(__opt_len, __max_size); 32778: __string_type __tmp(_M_string.get_allocator()); 32778: __tmp.reserve(__len); 32778: if (this->pbase()) 32778: __tmp.assign(this->pbase(), this->epptr() - this->pbase()); 32778: __tmp.push_back(__conv); 32778: _M_string.swap(__tmp); 32778: _M_sync(const_cast(_M_string.data()), 32778: this->gptr() - this->eback(), this->pptr() - this->pbase()); 32778: } 32778: else 32778: *this->pptr() = __conv; 32778: this->pbump(1); 32778: return __c; 32778: } 32778: 32778: template 32778: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 32778: basic_stringbuf<_CharT, _Traits, _Alloc>:: 32778: underflow() 32778: { 32778: int_type __ret = traits_type::eof(); 32778: const bool __testin = this->_M_mode & ios_base::in; 32778: if (__testin) 32778: { 32778: 32778: _M_update_egptr(); 32778: 32778: if (this->gptr() < this->egptr()) 32778: __ret = traits_type::to_int_type(*this->gptr()); 32778: } 32778: return __ret; 32778: } 32778: 32778: template 32778: typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type 32778: basic_stringbuf<_CharT, _Traits, _Alloc>:: 32778: seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode __mode) 32778: { 32778: pos_type __ret = pos_type(off_type(-1)); 32778: bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; 32778: bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; 32778: const bool __testboth = __testin && __testout && __way != ios_base::cur; 32778: __testin &= !(__mode & ios_base::out); 32778: __testout &= !(__mode & ios_base::in); 32778: 32778: 32778: 32778: const char_type* __beg = __testin ? this->eback() : this->pbase(); 32778: if ((__beg || !__off) && (__testin || __testout || __testboth)) 32778: { 32778: _M_update_egptr(); 32778: 32778: off_type __newoffi = __off; 32778: off_type __newoffo = __newoffi; 32778: if (__way == ios_base::cur) 32778: { 32778: __newoffi += this->gptr() - __beg; 32778: __newoffo += this->pptr() - __beg; 32778: } 32778: else if (__way == ios_base::end) 32778: __newoffo = __newoffi += this->egptr() - __beg; 32778: 32778: if ((__testin || __testboth) 32778: && __newoffi >= 0 32778: && this->egptr() - __beg >= __newoffi) 32778: { 32778: this->setg(this->eback(), this->eback() + __newoffi, 32778: this->egptr()); 32778: __ret = pos_type(__newoffi); 32778: } 32778: if ((__testout || __testboth) 32778: && __newoffo >= 0 32778: && this->egptr() - __beg >= __newoffo) 32778: { 32778: _M_pbump(this->pbase(), this->epptr(), __newoffo); 32778: __ret = pos_type(__newoffo); 32778: } 32778: } 32778: return __ret; 32778: } 32778: 32778: template 32778: typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type 32778: basic_stringbuf<_CharT, _Traits, _Alloc>:: 32778: seekpos(pos_type __sp, ios_base::openmode __mode) 32778: { 32778: pos_type __ret = pos_type(off_type(-1)); 32778: const bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; 32778: const bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; 32778: 32778: const char_type* __beg = __testin ? this->eback() : this->pbase(); 32778: if ((__beg || !off_type(__sp)) && (__testin || __testout)) 32778: { 32778: _M_update_egptr(); 32778: 32778: const off_type __pos(__sp); 32778: const bool __testpos = (0 <= __pos 32778: && __pos <= this->egptr() - __beg); 32778: if (__testpos) 32778: { 32778: if (__testin) 32778: this->setg(this->eback(), this->eback() + __pos, 32778: this->egptr()); 32778: if (__testout) 32778: _M_pbump(this->pbase(), this->epptr(), __pos); 32778: __ret = __sp; 32778: } 32778: } 32778: return __ret; 32778: } 32778: 32778: template 32778: void 32778: basic_stringbuf<_CharT, _Traits, _Alloc>:: 32778: _M_sync(char_type* __base, __size_type __i, __size_type __o) 32778: { 32778: const bool __testin = _M_mode & ios_base::in; 32778: const bool __testout = _M_mode & ios_base::out; 32778: char_type* __endg = __base + _M_string.size(); 32778: char_type* __endp = __base + _M_string.capacity(); 32778: 32778: if (__base != _M_string.data()) 32778: { 32778: 32778: __endg += __i; 32778: __i = 0; 32778: __endp = __endg; 32778: } 32778: 32778: if (__testin) 32778: this->setg(__base, __base + __i, __endg); 32778: if (__testout) 32778: { 32778: _M_pbump(__base, __endp, __o); 32778: 32778: 32778: 32778: if (!__testin) 32778: this->setg(__endg, __endg, __endg); 32778: } 32778: } 32778: 32778: template 32778: void 32778: basic_stringbuf<_CharT, _Traits, _Alloc>:: 32778: _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off) 32778: { 32778: this->setp(__pbeg, __pend); 32778: while (__off > __gnu_cxx::__numeric_traits::__max) 32778: { 32778: this->pbump(__gnu_cxx::__numeric_traits::__max); 32778: __off -= __gnu_cxx::__numeric_traits::__max; 32778: } 32778: this->pbump(__off); 32778: } 32778: 32778: 32778: 32778: 32778: extern template class basic_stringbuf; 32778: extern template class basic_istringstream; 32778: extern template class basic_ostringstream; 32778: extern template class basic_stringstream; 32778: 32778: 32778: extern template class basic_stringbuf; 32778: extern template class basic_istringstream; 32778: extern template class basic_ostringstream; 32778: extern template class basic_stringstream; 32778: 32778: 32778: 32778: 32778: } 32778: # 880 "/usr/include/c++/9/sstream" 2 3 32778: # 26 "/<>/include/HepMC3/Attribute.h" 2 32778: # 1 "/usr/include/c++/9/iomanip" 1 3 32778: # 36 "/usr/include/c++/9/iomanip" 3 32778: 32778: # 37 "/usr/include/c++/9/iomanip" 3 32778: 32778: 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/c++/9/locale" 1 3 32778: # 36 "/usr/include/c++/9/locale" 3 32778: 32778: # 37 "/usr/include/c++/9/locale" 3 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/c++/9/bits/locale_facets_nonio.h" 1 3 32778: # 37 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: 32778: # 38 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: 32778: # 1 "/usr/include/c++/9/ctime" 1 3 32778: # 39 "/usr/include/c++/9/ctime" 3 32778: 32778: # 40 "/usr/include/c++/9/ctime" 3 32778: # 58 "/usr/include/c++/9/ctime" 3 32778: namespace std 32778: { 32778: using ::clock_t; 32778: using ::time_t; 32778: using ::tm; 32778: 32778: using ::clock; 32778: using ::difftime; 32778: using ::mktime; 32778: using ::time; 32778: using ::asctime; 32778: using ::ctime; 32778: using ::gmtime; 32778: using ::localtime; 32778: using ::strftime; 32778: } 32778: # 40 "/usr/include/c++/9/bits/locale_facets_nonio.h" 2 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 52 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: class time_base 32778: { 32778: public: 32778: enum dateorder { no_order, dmy, mdy, ymd, ydm }; 32778: }; 32778: 32778: template 32778: struct __timepunct_cache : public locale::facet 32778: { 32778: 32778: static const _CharT* _S_timezones[14]; 32778: 32778: const _CharT* _M_date_format; 32778: const _CharT* _M_date_era_format; 32778: const _CharT* _M_time_format; 32778: const _CharT* _M_time_era_format; 32778: const _CharT* _M_date_time_format; 32778: const _CharT* _M_date_time_era_format; 32778: const _CharT* _M_am; 32778: const _CharT* _M_pm; 32778: const _CharT* _M_am_pm_format; 32778: 32778: 32778: const _CharT* _M_day1; 32778: const _CharT* _M_day2; 32778: const _CharT* _M_day3; 32778: const _CharT* _M_day4; 32778: const _CharT* _M_day5; 32778: const _CharT* _M_day6; 32778: const _CharT* _M_day7; 32778: 32778: 32778: const _CharT* _M_aday1; 32778: const _CharT* _M_aday2; 32778: const _CharT* _M_aday3; 32778: const _CharT* _M_aday4; 32778: const _CharT* _M_aday5; 32778: const _CharT* _M_aday6; 32778: const _CharT* _M_aday7; 32778: 32778: 32778: const _CharT* _M_month01; 32778: const _CharT* _M_month02; 32778: const _CharT* _M_month03; 32778: const _CharT* _M_month04; 32778: const _CharT* _M_month05; 32778: const _CharT* _M_month06; 32778: const _CharT* _M_month07; 32778: const _CharT* _M_month08; 32778: const _CharT* _M_month09; 32778: const _CharT* _M_month10; 32778: const _CharT* _M_month11; 32778: const _CharT* _M_month12; 32778: 32778: 32778: const _CharT* _M_amonth01; 32778: const _CharT* _M_amonth02; 32778: const _CharT* _M_amonth03; 32778: const _CharT* _M_amonth04; 32778: const _CharT* _M_amonth05; 32778: const _CharT* _M_amonth06; 32778: const _CharT* _M_amonth07; 32778: const _CharT* _M_amonth08; 32778: const _CharT* _M_amonth09; 32778: const _CharT* _M_amonth10; 32778: const _CharT* _M_amonth11; 32778: const _CharT* _M_amonth12; 32778: 32778: bool _M_allocated; 32778: 32778: __timepunct_cache(size_t __refs = 0) : facet(__refs), 32778: _M_date_format(0), _M_date_era_format(0), _M_time_format(0), 32778: _M_time_era_format(0), _M_date_time_format(0), 32778: _M_date_time_era_format(0), _M_am(0), _M_pm(0), 32778: _M_am_pm_format(0), _M_day1(0), _M_day2(0), _M_day3(0), 32778: _M_day4(0), _M_day5(0), _M_day6(0), _M_day7(0), 32778: _M_aday1(0), _M_aday2(0), _M_aday3(0), _M_aday4(0), 32778: _M_aday5(0), _M_aday6(0), _M_aday7(0), _M_month01(0), 32778: _M_month02(0), _M_month03(0), _M_month04(0), _M_month05(0), 32778: _M_month06(0), _M_month07(0), _M_month08(0), _M_month09(0), 32778: _M_month10(0), _M_month11(0), _M_month12(0), _M_amonth01(0), 32778: _M_amonth02(0), _M_amonth03(0), _M_amonth04(0), 32778: _M_amonth05(0), _M_amonth06(0), _M_amonth07(0), 32778: _M_amonth08(0), _M_amonth09(0), _M_amonth10(0), 32778: _M_amonth11(0), _M_amonth12(0), _M_allocated(false) 32778: { } 32778: 32778: ~__timepunct_cache(); 32778: 32778: private: 32778: __timepunct_cache& 32778: operator=(const __timepunct_cache&); 32778: 32778: explicit 32778: __timepunct_cache(const __timepunct_cache&); 32778: }; 32778: 32778: template 32778: __timepunct_cache<_CharT>::~__timepunct_cache() 32778: { 32778: if (_M_allocated) 32778: { 32778: 32778: } 32778: } 32778: 32778: 32778: template<> 32778: const char* 32778: __timepunct_cache::_S_timezones[14]; 32778: 32778: 32778: template<> 32778: const wchar_t* 32778: __timepunct_cache::_S_timezones[14]; 32778: 32778: 32778: 32778: template 32778: const _CharT* __timepunct_cache<_CharT>::_S_timezones[14]; 32778: 32778: template 32778: class __timepunct : public locale::facet 32778: { 32778: public: 32778: 32778: typedef _CharT __char_type; 32778: typedef __timepunct_cache<_CharT> __cache_type; 32778: 32778: protected: 32778: __cache_type* _M_data; 32778: __c_locale _M_c_locale_timepunct; 32778: const char* _M_name_timepunct; 32778: 32778: public: 32778: 32778: static locale::id id; 32778: 32778: explicit 32778: __timepunct(size_t __refs = 0); 32778: 32778: explicit 32778: __timepunct(__cache_type* __cache, size_t __refs = 0); 32778: # 206 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: explicit 32778: __timepunct(__c_locale __cloc, const char* __s, size_t __refs = 0); 32778: 32778: 32778: 32778: void 32778: _M_put(_CharT* __s, size_t __maxlen, const _CharT* __format, 32778: const tm* __tm) const throw (); 32778: 32778: void 32778: _M_date_formats(const _CharT** __date) const 32778: { 32778: 32778: __date[0] = _M_data->_M_date_format; 32778: __date[1] = _M_data->_M_date_era_format; 32778: } 32778: 32778: void 32778: _M_time_formats(const _CharT** __time) const 32778: { 32778: 32778: __time[0] = _M_data->_M_time_format; 32778: __time[1] = _M_data->_M_time_era_format; 32778: } 32778: 32778: void 32778: _M_date_time_formats(const _CharT** __dt) const 32778: { 32778: 32778: __dt[0] = _M_data->_M_date_time_format; 32778: __dt[1] = _M_data->_M_date_time_era_format; 32778: } 32778: 32778: 32778: void 32778: _M_am_pm_format(const _CharT*) const 32778: { } 32778: 32778: 32778: void 32778: _M_am_pm(const _CharT** __ampm) const 32778: { 32778: __ampm[0] = _M_data->_M_am; 32778: __ampm[1] = _M_data->_M_pm; 32778: } 32778: 32778: void 32778: _M_days(const _CharT** __days) const 32778: { 32778: __days[0] = _M_data->_M_day1; 32778: __days[1] = _M_data->_M_day2; 32778: __days[2] = _M_data->_M_day3; 32778: __days[3] = _M_data->_M_day4; 32778: __days[4] = _M_data->_M_day5; 32778: __days[5] = _M_data->_M_day6; 32778: __days[6] = _M_data->_M_day7; 32778: } 32778: 32778: void 32778: _M_days_abbreviated(const _CharT** __days) const 32778: { 32778: __days[0] = _M_data->_M_aday1; 32778: __days[1] = _M_data->_M_aday2; 32778: __days[2] = _M_data->_M_aday3; 32778: __days[3] = _M_data->_M_aday4; 32778: __days[4] = _M_data->_M_aday5; 32778: __days[5] = _M_data->_M_aday6; 32778: __days[6] = _M_data->_M_aday7; 32778: } 32778: 32778: void 32778: _M_months(const _CharT** __months) const 32778: { 32778: __months[0] = _M_data->_M_month01; 32778: __months[1] = _M_data->_M_month02; 32778: __months[2] = _M_data->_M_month03; 32778: __months[3] = _M_data->_M_month04; 32778: __months[4] = _M_data->_M_month05; 32778: __months[5] = _M_data->_M_month06; 32778: __months[6] = _M_data->_M_month07; 32778: __months[7] = _M_data->_M_month08; 32778: __months[8] = _M_data->_M_month09; 32778: __months[9] = _M_data->_M_month10; 32778: __months[10] = _M_data->_M_month11; 32778: __months[11] = _M_data->_M_month12; 32778: } 32778: 32778: void 32778: _M_months_abbreviated(const _CharT** __months) const 32778: { 32778: __months[0] = _M_data->_M_amonth01; 32778: __months[1] = _M_data->_M_amonth02; 32778: __months[2] = _M_data->_M_amonth03; 32778: __months[3] = _M_data->_M_amonth04; 32778: __months[4] = _M_data->_M_amonth05; 32778: __months[5] = _M_data->_M_amonth06; 32778: __months[6] = _M_data->_M_amonth07; 32778: __months[7] = _M_data->_M_amonth08; 32778: __months[8] = _M_data->_M_amonth09; 32778: __months[9] = _M_data->_M_amonth10; 32778: __months[10] = _M_data->_M_amonth11; 32778: __months[11] = _M_data->_M_amonth12; 32778: } 32778: 32778: protected: 32778: virtual 32778: ~__timepunct(); 32778: 32778: 32778: void 32778: _M_initialize_timepunct(__c_locale __cloc = 0); 32778: }; 32778: 32778: template 32778: locale::id __timepunct<_CharT>::id; 32778: 32778: 32778: template<> 32778: void 32778: __timepunct::_M_initialize_timepunct(__c_locale __cloc); 32778: 32778: template<> 32778: void 32778: __timepunct::_M_put(char*, size_t, const char*, const tm*) const throw (); 32778: 32778: 32778: template<> 32778: void 32778: __timepunct::_M_initialize_timepunct(__c_locale __cloc); 32778: 32778: template<> 32778: void 32778: __timepunct::_M_put(wchar_t*, size_t, const wchar_t*, 32778: const tm*) const throw (); 32778: 32778: 32778: 32778: } 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/c++/9/bits/time_members.h" 1 3 32778: # 37 "/usr/include/riscv64-linux-gnu/c++/9/bits/time_members.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: template 32778: __timepunct<_CharT>::__timepunct(size_t __refs) 32778: : facet(__refs), _M_data(0), _M_c_locale_timepunct(0), 32778: _M_name_timepunct(_S_get_c_name()) 32778: { _M_initialize_timepunct(); } 32778: 32778: template 32778: __timepunct<_CharT>::__timepunct(__cache_type* __cache, size_t __refs) 32778: : facet(__refs), _M_data(__cache), _M_c_locale_timepunct(0), 32778: _M_name_timepunct(_S_get_c_name()) 32778: { _M_initialize_timepunct(); } 32778: 32778: template 32778: __timepunct<_CharT>::__timepunct(__c_locale __cloc, const char* __s, 32778: size_t __refs) 32778: : facet(__refs), _M_data(0), _M_c_locale_timepunct(0), 32778: _M_name_timepunct(0) 32778: { 32778: if (__builtin_strcmp(__s, _S_get_c_name()) != 0) 32778: { 32778: const size_t __len = __builtin_strlen(__s) + 1; 32778: char* __tmp = new char[__len]; 32778: __builtin_memcpy(__tmp, __s, __len); 32778: _M_name_timepunct = __tmp; 32778: } 32778: else 32778: _M_name_timepunct = _S_get_c_name(); 32778: 32778: try 32778: { _M_initialize_timepunct(__cloc); } 32778: catch(...) 32778: { 32778: if (_M_name_timepunct != _S_get_c_name()) 32778: delete [] _M_name_timepunct; 32778: throw; 32778: } 32778: } 32778: 32778: template 32778: __timepunct<_CharT>::~__timepunct() 32778: { 32778: if (_M_name_timepunct != _S_get_c_name()) 32778: delete [] _M_name_timepunct; 32778: delete _M_data; 32778: _S_destroy_c_locale(_M_c_locale_timepunct); 32778: } 32778: 32778: 32778: } 32778: # 347 "/usr/include/c++/9/bits/locale_facets_nonio.h" 2 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: namespace __cxx11 { 32778: # 367 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: template 32778: class time_get : public locale::facet, public time_base 32778: { 32778: public: 32778: 32778: 32778: 32778: typedef _CharT char_type; 32778: typedef _InIter iter_type; 32778: 32778: 32778: 32778: static locale::id id; 32778: # 388 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: explicit 32778: time_get(size_t __refs = 0) 32778: : facet (__refs) { } 32778: # 405 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: dateorder 32778: date_order() const 32778: { return this->do_date_order(); } 32778: # 429 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: iter_type 32778: get_time(iter_type __beg, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, tm* __tm) const 32778: { return this->do_get_time(__beg, __end, __io, __err, __tm); } 32778: # 454 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: iter_type 32778: get_date(iter_type __beg, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, tm* __tm) const 32778: { return this->do_get_date(__beg, __end, __io, __err, __tm); } 32778: # 482 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: iter_type 32778: get_weekday(iter_type __beg, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, tm* __tm) const 32778: { return this->do_get_weekday(__beg, __end, __io, __err, __tm); } 32778: # 511 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: iter_type 32778: get_monthname(iter_type __beg, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, tm* __tm) const 32778: { return this->do_get_monthname(__beg, __end, __io, __err, __tm); } 32778: # 537 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: iter_type 32778: get_year(iter_type __beg, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, tm* __tm) const 32778: { return this->do_get_year(__beg, __end, __io, __err, __tm); } 32778: # 558 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: inline 32778: iter_type get(iter_type __s, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, tm* __tm, char __format, 32778: char __modifier = 0) const 32778: { 32778: return this->do_get(__s, __end, __io, __err, __tm, __format, 32778: __modifier); 32778: } 32778: # 585 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: iter_type get(iter_type __s, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, tm* __tm, const char_type* __fmt, 32778: const char_type* __fmtend) const; 32778: 32778: 32778: protected: 32778: 32778: virtual 32778: ~time_get() { } 32778: # 605 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: virtual dateorder 32778: do_date_order() const; 32778: # 623 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: virtual iter_type 32778: do_get_time(iter_type __beg, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, tm* __tm) const; 32778: # 642 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: virtual iter_type 32778: do_get_date(iter_type __beg, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, tm* __tm) const; 32778: # 661 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: virtual iter_type 32778: do_get_weekday(iter_type __beg, iter_type __end, ios_base&, 32778: ios_base::iostate& __err, tm* __tm) const; 32778: # 680 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: virtual iter_type 32778: do_get_monthname(iter_type __beg, iter_type __end, ios_base&, 32778: ios_base::iostate& __err, tm* __tm) const; 32778: # 699 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: virtual iter_type 32778: do_get_year(iter_type __beg, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, tm* __tm) const; 32778: # 722 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: virtual 32778: 32778: iter_type 32778: do_get(iter_type __s, iter_type __end, ios_base& __f, 32778: ios_base::iostate& __err, tm* __tm, 32778: char __format, char __modifier) const; 32778: 32778: 32778: 32778: iter_type 32778: _M_extract_num(iter_type __beg, iter_type __end, int& __member, 32778: int __min, int __max, size_t __len, 32778: ios_base& __io, ios_base::iostate& __err) const; 32778: 32778: 32778: iter_type 32778: _M_extract_name(iter_type __beg, iter_type __end, int& __member, 32778: const _CharT** __names, size_t __indexlen, 32778: ios_base& __io, ios_base::iostate& __err) const; 32778: 32778: 32778: iter_type 32778: _M_extract_wday_or_month(iter_type __beg, iter_type __end, int& __member, 32778: const _CharT** __names, size_t __indexlen, 32778: ios_base& __io, ios_base::iostate& __err) const; 32778: 32778: 32778: iter_type 32778: _M_extract_via_format(iter_type __beg, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, tm* __tm, 32778: const _CharT* __format) const; 32778: }; 32778: 32778: template 32778: locale::id time_get<_CharT, _InIter>::id; 32778: 32778: 32778: template 32778: class time_get_byname : public time_get<_CharT, _InIter> 32778: { 32778: public: 32778: 32778: typedef _CharT char_type; 32778: typedef _InIter iter_type; 32778: 32778: explicit 32778: time_get_byname(const char*, size_t __refs = 0) 32778: : time_get<_CharT, _InIter>(__refs) { } 32778: 32778: 32778: explicit 32778: time_get_byname(const string& __s, size_t __refs = 0) 32778: : time_get_byname(__s.c_str(), __refs) { } 32778: 32778: 32778: protected: 32778: virtual 32778: ~time_get_byname() { } 32778: }; 32778: 32778: } 32778: # 796 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: template 32778: class time_put : public locale::facet 32778: { 32778: public: 32778: 32778: 32778: 32778: typedef _CharT char_type; 32778: typedef _OutIter iter_type; 32778: 32778: 32778: 32778: static locale::id id; 32778: # 817 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: explicit 32778: time_put(size_t __refs = 0) 32778: : facet(__refs) { } 32778: # 836 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: iter_type 32778: put(iter_type __s, ios_base& __io, char_type __fill, const tm* __tm, 32778: const _CharT* __beg, const _CharT* __end) const; 32778: # 856 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: iter_type 32778: put(iter_type __s, ios_base& __io, char_type __fill, 32778: const tm* __tm, char __format, char __mod = 0) const 32778: { return this->do_put(__s, __io, __fill, __tm, __format, __mod); } 32778: 32778: protected: 32778: 32778: virtual 32778: ~time_put() 32778: { } 32778: # 883 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: virtual iter_type 32778: do_put(iter_type __s, ios_base& __io, char_type __fill, const tm* __tm, 32778: char __format, char __mod) const; 32778: }; 32778: 32778: template 32778: locale::id time_put<_CharT, _OutIter>::id; 32778: 32778: 32778: template 32778: class time_put_byname : public time_put<_CharT, _OutIter> 32778: { 32778: public: 32778: 32778: typedef _CharT char_type; 32778: typedef _OutIter iter_type; 32778: 32778: explicit 32778: time_put_byname(const char*, size_t __refs = 0) 32778: : time_put<_CharT, _OutIter>(__refs) 32778: { } 32778: 32778: 32778: explicit 32778: time_put_byname(const string& __s, size_t __refs = 0) 32778: : time_put_byname(__s.c_str(), __refs) { } 32778: 32778: 32778: protected: 32778: virtual 32778: ~time_put_byname() { } 32778: }; 32778: # 928 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: class money_base 32778: { 32778: public: 32778: enum part { none, space, symbol, sign, value }; 32778: struct pattern { char field[4]; }; 32778: 32778: static const pattern _S_default_pattern; 32778: 32778: enum 32778: { 32778: _S_minus, 32778: _S_zero, 32778: _S_end = 11 32778: }; 32778: 32778: 32778: 32778: static const char* _S_atoms; 32778: 32778: 32778: 32778: __attribute__ ((__const__)) static pattern 32778: _S_construct_pattern(char __precedes, char __space, char __posn) throw (); 32778: }; 32778: 32778: template 32778: struct __moneypunct_cache : public locale::facet 32778: { 32778: const char* _M_grouping; 32778: size_t _M_grouping_size; 32778: bool _M_use_grouping; 32778: _CharT _M_decimal_point; 32778: _CharT _M_thousands_sep; 32778: const _CharT* _M_curr_symbol; 32778: size_t _M_curr_symbol_size; 32778: const _CharT* _M_positive_sign; 32778: size_t _M_positive_sign_size; 32778: const _CharT* _M_negative_sign; 32778: size_t _M_negative_sign_size; 32778: int _M_frac_digits; 32778: money_base::pattern _M_pos_format; 32778: money_base::pattern _M_neg_format; 32778: 32778: 32778: 32778: 32778: _CharT _M_atoms[money_base::_S_end]; 32778: 32778: bool _M_allocated; 32778: 32778: __moneypunct_cache(size_t __refs = 0) : facet(__refs), 32778: _M_grouping(0), _M_grouping_size(0), _M_use_grouping(false), 32778: _M_decimal_point(_CharT()), _M_thousands_sep(_CharT()), 32778: _M_curr_symbol(0), _M_curr_symbol_size(0), 32778: _M_positive_sign(0), _M_positive_sign_size(0), 32778: _M_negative_sign(0), _M_negative_sign_size(0), 32778: _M_frac_digits(0), 32778: _M_pos_format(money_base::pattern()), 32778: _M_neg_format(money_base::pattern()), _M_allocated(false) 32778: { } 32778: 32778: ~__moneypunct_cache(); 32778: 32778: void 32778: _M_cache(const locale& __loc); 32778: 32778: private: 32778: __moneypunct_cache& 32778: operator=(const __moneypunct_cache&); 32778: 32778: explicit 32778: __moneypunct_cache(const __moneypunct_cache&); 32778: }; 32778: 32778: template 32778: __moneypunct_cache<_CharT, _Intl>::~__moneypunct_cache() 32778: { 32778: if (_M_allocated) 32778: { 32778: delete [] _M_grouping; 32778: delete [] _M_curr_symbol; 32778: delete [] _M_positive_sign; 32778: delete [] _M_negative_sign; 32778: } 32778: } 32778: 32778: namespace __cxx11 { 32778: # 1023 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: template 32778: class moneypunct : public locale::facet, public money_base 32778: { 32778: public: 32778: 32778: 32778: 32778: typedef _CharT char_type; 32778: typedef basic_string<_CharT> string_type; 32778: 32778: typedef __moneypunct_cache<_CharT, _Intl> __cache_type; 32778: 32778: private: 32778: __cache_type* _M_data; 32778: 32778: public: 32778: 32778: 32778: static const bool intl = _Intl; 32778: 32778: static locale::id id; 32778: # 1052 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: explicit 32778: moneypunct(size_t __refs = 0) 32778: : facet(__refs), _M_data(0) 32778: { _M_initialize_moneypunct(); } 32778: # 1065 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: explicit 32778: moneypunct(__cache_type* __cache, size_t __refs = 0) 32778: : facet(__refs), _M_data(__cache) 32778: { _M_initialize_moneypunct(); } 32778: # 1080 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: explicit 32778: moneypunct(__c_locale __cloc, const char* __s, size_t __refs = 0) 32778: : facet(__refs), _M_data(0) 32778: { _M_initialize_moneypunct(__cloc, __s); } 32778: # 1094 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: char_type 32778: decimal_point() const 32778: { return this->do_decimal_point(); } 32778: # 1107 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: char_type 32778: thousands_sep() const 32778: { return this->do_thousands_sep(); } 32778: # 1137 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: string 32778: grouping() const 32778: { return this->do_grouping(); } 32778: # 1150 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: string_type 32778: curr_symbol() const 32778: { return this->do_curr_symbol(); } 32778: # 1167 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: string_type 32778: positive_sign() const 32778: { return this->do_positive_sign(); } 32778: # 1184 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: string_type 32778: negative_sign() const 32778: { return this->do_negative_sign(); } 32778: # 1200 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: int 32778: frac_digits() const 32778: { return this->do_frac_digits(); } 32778: # 1236 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: pattern 32778: pos_format() const 32778: { return this->do_pos_format(); } 32778: 32778: pattern 32778: neg_format() const 32778: { return this->do_neg_format(); } 32778: 32778: 32778: protected: 32778: 32778: virtual 32778: ~moneypunct(); 32778: # 1258 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: virtual char_type 32778: do_decimal_point() const 32778: { return _M_data->_M_decimal_point; } 32778: # 1270 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: virtual char_type 32778: do_thousands_sep() const 32778: { return _M_data->_M_thousands_sep; } 32778: # 1283 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: virtual string 32778: do_grouping() const 32778: { return _M_data->_M_grouping; } 32778: # 1296 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: virtual string_type 32778: do_curr_symbol() const 32778: { return _M_data->_M_curr_symbol; } 32778: # 1309 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: virtual string_type 32778: do_positive_sign() const 32778: { return _M_data->_M_positive_sign; } 32778: # 1322 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: virtual string_type 32778: do_negative_sign() const 32778: { return _M_data->_M_negative_sign; } 32778: # 1336 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: virtual int 32778: do_frac_digits() const 32778: { return _M_data->_M_frac_digits; } 32778: # 1350 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: virtual pattern 32778: do_pos_format() const 32778: { return _M_data->_M_pos_format; } 32778: # 1364 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: virtual pattern 32778: do_neg_format() const 32778: { return _M_data->_M_neg_format; } 32778: 32778: 32778: void 32778: _M_initialize_moneypunct(__c_locale __cloc = 0, 32778: const char* __name = 0); 32778: }; 32778: 32778: template 32778: locale::id moneypunct<_CharT, _Intl>::id; 32778: 32778: template 32778: const bool moneypunct<_CharT, _Intl>::intl; 32778: 32778: template<> 32778: moneypunct::~moneypunct(); 32778: 32778: template<> 32778: moneypunct::~moneypunct(); 32778: 32778: template<> 32778: void 32778: moneypunct::_M_initialize_moneypunct(__c_locale, const char*); 32778: 32778: template<> 32778: void 32778: moneypunct::_M_initialize_moneypunct(__c_locale, const char*); 32778: 32778: 32778: template<> 32778: moneypunct::~moneypunct(); 32778: 32778: template<> 32778: moneypunct::~moneypunct(); 32778: 32778: template<> 32778: void 32778: moneypunct::_M_initialize_moneypunct(__c_locale, 32778: const char*); 32778: 32778: template<> 32778: void 32778: moneypunct::_M_initialize_moneypunct(__c_locale, 32778: const char*); 32778: 32778: 32778: 32778: template 32778: class moneypunct_byname : public moneypunct<_CharT, _Intl> 32778: { 32778: public: 32778: typedef _CharT char_type; 32778: typedef basic_string<_CharT> string_type; 32778: 32778: static const bool intl = _Intl; 32778: 32778: explicit 32778: moneypunct_byname(const char* __s, size_t __refs = 0) 32778: : moneypunct<_CharT, _Intl>(__refs) 32778: { 32778: if (__builtin_strcmp(__s, "C") != 0 32778: && __builtin_strcmp(__s, "POSIX") != 0) 32778: { 32778: __c_locale __tmp; 32778: this->_S_create_c_locale(__tmp, __s); 32778: this->_M_initialize_moneypunct(__tmp); 32778: this->_S_destroy_c_locale(__tmp); 32778: } 32778: } 32778: 32778: 32778: explicit 32778: moneypunct_byname(const string& __s, size_t __refs = 0) 32778: : moneypunct_byname(__s.c_str(), __refs) { } 32778: 32778: 32778: protected: 32778: virtual 32778: ~moneypunct_byname() { } 32778: }; 32778: 32778: template 32778: const bool moneypunct_byname<_CharT, _Intl>::intl; 32778: 32778: } 32778: 32778: namespace __cxx11 { 32778: # 1467 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: template 32778: class money_get : public locale::facet 32778: { 32778: public: 32778: 32778: 32778: 32778: typedef _CharT char_type; 32778: typedef _InIter iter_type; 32778: typedef basic_string<_CharT> string_type; 32778: 32778: 32778: 32778: static locale::id id; 32778: # 1489 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: explicit 32778: money_get(size_t __refs = 0) : facet(__refs) { } 32778: # 1519 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: iter_type 32778: get(iter_type __s, iter_type __end, bool __intl, ios_base& __io, 32778: ios_base::iostate& __err, long double& __units) const 32778: { return this->do_get(__s, __end, __intl, __io, __err, __units); } 32778: # 1550 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: iter_type 32778: get(iter_type __s, iter_type __end, bool __intl, ios_base& __io, 32778: ios_base::iostate& __err, string_type& __digits) const 32778: { return this->do_get(__s, __end, __intl, __io, __err, __digits); } 32778: 32778: protected: 32778: 32778: virtual 32778: ~money_get() { } 32778: # 1574 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: virtual iter_type 32778: do_get(iter_type __s, iter_type __end, bool __intl, ios_base& __io, 32778: ios_base::iostate& __err, long double& __units) const; 32778: # 1586 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: virtual iter_type 32778: do_get(iter_type __s, iter_type __end, bool __intl, ios_base& __io, 32778: ios_base::iostate& __err, string_type& __digits) const; 32778: # 1598 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: template 32778: iter_type 32778: _M_extract(iter_type __s, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, string& __digits) const; 32778: }; 32778: 32778: template 32778: locale::id money_get<_CharT, _InIter>::id; 32778: # 1620 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: template 32778: class money_put : public locale::facet 32778: { 32778: public: 32778: 32778: 32778: typedef _CharT char_type; 32778: typedef _OutIter iter_type; 32778: typedef basic_string<_CharT> string_type; 32778: 32778: 32778: 32778: static locale::id id; 32778: # 1641 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: explicit 32778: money_put(size_t __refs = 0) : facet(__refs) { } 32778: # 1661 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: iter_type 32778: put(iter_type __s, bool __intl, ios_base& __io, 32778: char_type __fill, long double __units) const 32778: { return this->do_put(__s, __intl, __io, __fill, __units); } 32778: # 1684 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: iter_type 32778: put(iter_type __s, bool __intl, ios_base& __io, 32778: char_type __fill, const string_type& __digits) const 32778: { return this->do_put(__s, __intl, __io, __fill, __digits); } 32778: 32778: protected: 32778: 32778: virtual 32778: ~money_put() { } 32778: # 1719 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: virtual iter_type 32778: do_put(iter_type __s, bool __intl, ios_base& __io, char_type __fill, 32778: long double __units) const; 32778: # 1743 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: virtual iter_type 32778: do_put(iter_type __s, bool __intl, ios_base& __io, char_type __fill, 32778: const string_type& __digits) const; 32778: # 1755 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: template 32778: iter_type 32778: _M_insert(iter_type __s, ios_base& __io, char_type __fill, 32778: const string_type& __digits) const; 32778: }; 32778: 32778: template 32778: locale::id money_put<_CharT, _OutIter>::id; 32778: 32778: } 32778: 32778: 32778: 32778: 32778: 32778: struct messages_base 32778: { 32778: typedef int catalog; 32778: }; 32778: 32778: namespace __cxx11 { 32778: # 1798 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: template 32778: class messages : public locale::facet, public messages_base 32778: { 32778: public: 32778: 32778: 32778: 32778: typedef _CharT char_type; 32778: typedef basic_string<_CharT> string_type; 32778: 32778: 32778: protected: 32778: 32778: 32778: __c_locale _M_c_locale_messages; 32778: const char* _M_name_messages; 32778: 32778: public: 32778: 32778: static locale::id id; 32778: # 1826 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: explicit 32778: messages(size_t __refs = 0); 32778: # 1840 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: explicit 32778: messages(__c_locale __cloc, const char* __s, size_t __refs = 0); 32778: # 1853 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: catalog 32778: open(const basic_string& __s, const locale& __loc) const 32778: { return this->do_open(__s, __loc); } 32778: # 1871 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: catalog 32778: open(const basic_string&, const locale&, const char*) const; 32778: # 1889 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: string_type 32778: get(catalog __c, int __set, int __msgid, const string_type& __s) const 32778: { return this->do_get(__c, __set, __msgid, __s); } 32778: # 1900 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: void 32778: close(catalog __c) const 32778: { return this->do_close(__c); } 32778: 32778: protected: 32778: 32778: virtual 32778: ~messages(); 32778: # 1920 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: virtual catalog 32778: do_open(const basic_string&, const locale&) const; 32778: # 1939 "/usr/include/c++/9/bits/locale_facets_nonio.h" 3 32778: virtual string_type 32778: do_get(catalog, int, int, const string_type& __dfault) const; 32778: 32778: 32778: 32778: 32778: 32778: 32778: virtual void 32778: do_close(catalog) const; 32778: 32778: 32778: char* 32778: _M_convert_to_char(const string_type& __msg) const 32778: { 32778: 32778: return reinterpret_cast(const_cast<_CharT*>(__msg.c_str())); 32778: } 32778: 32778: 32778: string_type 32778: _M_convert_from_char(char*) const 32778: { 32778: 32778: return string_type(); 32778: } 32778: }; 32778: 32778: template 32778: locale::id messages<_CharT>::id; 32778: 32778: 32778: template<> 32778: string 32778: messages::do_get(catalog, int, int, const string&) const; 32778: 32778: 32778: template<> 32778: wstring 32778: messages::do_get(catalog, int, int, const wstring&) const; 32778: 32778: 32778: 32778: template 32778: class messages_byname : public messages<_CharT> 32778: { 32778: public: 32778: typedef _CharT char_type; 32778: typedef basic_string<_CharT> string_type; 32778: 32778: explicit 32778: messages_byname(const char* __s, size_t __refs = 0); 32778: 32778: 32778: explicit 32778: messages_byname(const string& __s, size_t __refs = 0) 32778: : messages_byname(__s.c_str(), __refs) { } 32778: 32778: 32778: protected: 32778: virtual 32778: ~messages_byname() 32778: { } 32778: }; 32778: 32778: } 32778: 32778: 32778: } 32778: 32778: 32778: # 1 "/usr/include/riscv64-linux-gnu/c++/9/bits/messages_members.h" 1 3 32778: # 36 "/usr/include/riscv64-linux-gnu/c++/9/bits/messages_members.h" 3 32778: # 1 "/usr/include/libintl.h" 1 3 4 32778: # 34 "/usr/include/libintl.h" 3 4 32778: extern "C" { 32778: 32778: 32778: 32778: 32778: extern char *gettext (const char *__msgid) 32778: throw () __attribute__ ((__format_arg__ (1))); 32778: 32778: 32778: 32778: extern char *dgettext (const char *__domainname, const char *__msgid) 32778: throw () __attribute__ ((__format_arg__ (2))); 32778: extern char *__dgettext (const char *__domainname, const char *__msgid) 32778: throw () __attribute__ ((__format_arg__ (2))); 32778: 32778: 32778: 32778: extern char *dcgettext (const char *__domainname, 32778: const char *__msgid, int __category) 32778: throw () __attribute__ ((__format_arg__ (2))); 32778: extern char *__dcgettext (const char *__domainname, 32778: const char *__msgid, int __category) 32778: throw () __attribute__ ((__format_arg__ (2))); 32778: 32778: 32778: 32778: 32778: extern char *ngettext (const char *__msgid1, const char *__msgid2, 32778: unsigned long int __n) 32778: throw () __attribute__ ((__format_arg__ (1))) __attribute__ ((__format_arg__ (2))); 32778: 32778: 32778: 32778: extern char *dngettext (const char *__domainname, const char *__msgid1, 32778: const char *__msgid2, unsigned long int __n) 32778: throw () __attribute__ ((__format_arg__ (2))) __attribute__ ((__format_arg__ (3))); 32778: 32778: 32778: 32778: extern char *dcngettext (const char *__domainname, const char *__msgid1, 32778: const char *__msgid2, unsigned long int __n, 32778: int __category) 32778: throw () __attribute__ ((__format_arg__ (2))) __attribute__ ((__format_arg__ (3))); 32778: 32778: 32778: 32778: 32778: 32778: extern char *textdomain (const char *__domainname) throw (); 32778: 32778: 32778: 32778: extern char *bindtextdomain (const char *__domainname, 32778: const char *__dirname) throw (); 32778: 32778: 32778: 32778: extern char *bind_textdomain_codeset (const char *__domainname, 32778: const char *__codeset) throw (); 32778: # 121 "/usr/include/libintl.h" 3 4 32778: } 32778: # 37 "/usr/include/riscv64-linux-gnu/c++/9/bits/messages_members.h" 2 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: template 32778: messages<_CharT>::messages(size_t __refs) 32778: : facet(__refs), _M_c_locale_messages(_S_get_c_locale()), 32778: _M_name_messages(_S_get_c_name()) 32778: { } 32778: 32778: template 32778: messages<_CharT>::messages(__c_locale __cloc, const char* __s, 32778: size_t __refs) 32778: : facet(__refs), _M_c_locale_messages(0), _M_name_messages(0) 32778: { 32778: if (__builtin_strcmp(__s, _S_get_c_name()) != 0) 32778: { 32778: const size_t __len = __builtin_strlen(__s) + 1; 32778: char* __tmp = new char[__len]; 32778: __builtin_memcpy(__tmp, __s, __len); 32778: _M_name_messages = __tmp; 32778: } 32778: else 32778: _M_name_messages = _S_get_c_name(); 32778: 32778: 32778: _M_c_locale_messages = _S_clone_c_locale(__cloc); 32778: } 32778: 32778: template 32778: typename messages<_CharT>::catalog 32778: messages<_CharT>::open(const basic_string& __s, const locale& __loc, 32778: const char* __dir) const 32778: { 32778: bindtextdomain(__s.c_str(), __dir); 32778: return this->do_open(__s, __loc); 32778: } 32778: 32778: 32778: template 32778: messages<_CharT>::~messages() 32778: { 32778: if (_M_name_messages != _S_get_c_name()) 32778: delete [] _M_name_messages; 32778: _S_destroy_c_locale(_M_c_locale_messages); 32778: } 32778: 32778: template 32778: typename messages<_CharT>::catalog 32778: messages<_CharT>::do_open(const basic_string& __s, 32778: const locale&) const 32778: { 32778: 32778: 32778: textdomain(__s.c_str()); 32778: return 0; 32778: } 32778: 32778: template 32778: void 32778: messages<_CharT>::do_close(catalog) const 32778: { } 32778: 32778: 32778: template 32778: messages_byname<_CharT>::messages_byname(const char* __s, size_t __refs) 32778: : messages<_CharT>(__refs) 32778: { 32778: if (this->_M_name_messages != locale::facet::_S_get_c_name()) 32778: { 32778: delete [] this->_M_name_messages; 32778: if (__builtin_strcmp(__s, locale::facet::_S_get_c_name()) != 0) 32778: { 32778: const size_t __len = __builtin_strlen(__s) + 1; 32778: char* __tmp = new char[__len]; 32778: __builtin_memcpy(__tmp, __s, __len); 32778: this->_M_name_messages = __tmp; 32778: } 32778: else 32778: this->_M_name_messages = locale::facet::_S_get_c_name(); 32778: } 32778: 32778: if (__builtin_strcmp(__s, "C") != 0 32778: && __builtin_strcmp(__s, "POSIX") != 0) 32778: { 32778: this->_S_destroy_c_locale(this->_M_c_locale_messages); 32778: this->_S_create_c_locale(this->_M_c_locale_messages, __s); 32778: } 32778: } 32778: 32778: 32778: template<> 32778: typename messages::catalog 32778: messages::do_open(const basic_string&, 32778: const locale&) const; 32778: 32778: template<> 32778: void 32778: messages::do_close(catalog) const; 32778: 32778: 32778: template<> 32778: typename messages::catalog 32778: messages::do_open(const basic_string&, 32778: const locale&) const; 32778: 32778: template<> 32778: void 32778: messages::do_close(catalog) const; 32778: 32778: 32778: 32778: } 32778: # 2011 "/usr/include/c++/9/bits/locale_facets_nonio.h" 2 3 32778: 32778: 32778: # 1 "/usr/include/c++/9/bits/codecvt.h" 1 3 32778: # 39 "/usr/include/c++/9/bits/codecvt.h" 3 32778: 32778: # 40 "/usr/include/c++/9/bits/codecvt.h" 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: class codecvt_base 32778: { 32778: public: 32778: enum result 32778: { 32778: ok, 32778: partial, 32778: error, 32778: noconv 32778: }; 32778: }; 32778: # 67 "/usr/include/c++/9/bits/codecvt.h" 3 32778: template 32778: class __codecvt_abstract_base 32778: : public locale::facet, public codecvt_base 32778: { 32778: public: 32778: 32778: typedef codecvt_base::result result; 32778: typedef _InternT intern_type; 32778: typedef _ExternT extern_type; 32778: typedef _StateT state_type; 32778: # 115 "/usr/include/c++/9/bits/codecvt.h" 3 32778: result 32778: out(state_type& __state, const intern_type* __from, 32778: const intern_type* __from_end, const intern_type*& __from_next, 32778: extern_type* __to, extern_type* __to_end, 32778: extern_type*& __to_next) const 32778: { 32778: return this->do_out(__state, __from, __from_end, __from_next, 32778: __to, __to_end, __to_next); 32778: } 32778: # 154 "/usr/include/c++/9/bits/codecvt.h" 3 32778: result 32778: unshift(state_type& __state, extern_type* __to, extern_type* __to_end, 32778: extern_type*& __to_next) const 32778: { return this->do_unshift(__state, __to,__to_end,__to_next); } 32778: # 195 "/usr/include/c++/9/bits/codecvt.h" 3 32778: result 32778: in(state_type& __state, const extern_type* __from, 32778: const extern_type* __from_end, const extern_type*& __from_next, 32778: intern_type* __to, intern_type* __to_end, 32778: intern_type*& __to_next) const 32778: { 32778: return this->do_in(__state, __from, __from_end, __from_next, 32778: __to, __to_end, __to_next); 32778: } 32778: 32778: int 32778: encoding() const throw() 32778: { return this->do_encoding(); } 32778: 32778: bool 32778: always_noconv() const throw() 32778: { return this->do_always_noconv(); } 32778: 32778: int 32778: length(state_type& __state, const extern_type* __from, 32778: const extern_type* __end, size_t __max) const 32778: { return this->do_length(__state, __from, __end, __max); } 32778: 32778: int 32778: max_length() const throw() 32778: { return this->do_max_length(); } 32778: 32778: protected: 32778: explicit 32778: __codecvt_abstract_base(size_t __refs = 0) : locale::facet(__refs) { } 32778: 32778: virtual 32778: ~__codecvt_abstract_base() { } 32778: # 236 "/usr/include/c++/9/bits/codecvt.h" 3 32778: virtual result 32778: do_out(state_type& __state, const intern_type* __from, 32778: const intern_type* __from_end, const intern_type*& __from_next, 32778: extern_type* __to, extern_type* __to_end, 32778: extern_type*& __to_next) const = 0; 32778: 32778: virtual result 32778: do_unshift(state_type& __state, extern_type* __to, 32778: extern_type* __to_end, extern_type*& __to_next) const = 0; 32778: 32778: virtual result 32778: do_in(state_type& __state, const extern_type* __from, 32778: const extern_type* __from_end, const extern_type*& __from_next, 32778: intern_type* __to, intern_type* __to_end, 32778: intern_type*& __to_next) const = 0; 32778: 32778: virtual int 32778: do_encoding() const throw() = 0; 32778: 32778: virtual bool 32778: do_always_noconv() const throw() = 0; 32778: 32778: virtual int 32778: do_length(state_type&, const extern_type* __from, 32778: const extern_type* __end, size_t __max) const = 0; 32778: 32778: virtual int 32778: do_max_length() const throw() = 0; 32778: }; 32778: # 273 "/usr/include/c++/9/bits/codecvt.h" 3 32778: template 32778: class codecvt 32778: : public __codecvt_abstract_base<_InternT, _ExternT, _StateT> 32778: { 32778: public: 32778: 32778: typedef codecvt_base::result result; 32778: typedef _InternT intern_type; 32778: typedef _ExternT extern_type; 32778: typedef _StateT state_type; 32778: 32778: protected: 32778: __c_locale _M_c_locale_codecvt; 32778: 32778: public: 32778: static locale::id id; 32778: 32778: explicit 32778: codecvt(size_t __refs = 0) 32778: : __codecvt_abstract_base<_InternT, _ExternT, _StateT> (__refs), 32778: _M_c_locale_codecvt(0) 32778: { } 32778: 32778: explicit 32778: codecvt(__c_locale __cloc, size_t __refs = 0); 32778: 32778: protected: 32778: virtual 32778: ~codecvt() { } 32778: 32778: virtual result 32778: do_out(state_type& __state, const intern_type* __from, 32778: const intern_type* __from_end, const intern_type*& __from_next, 32778: extern_type* __to, extern_type* __to_end, 32778: extern_type*& __to_next) const; 32778: 32778: virtual result 32778: do_unshift(state_type& __state, extern_type* __to, 32778: extern_type* __to_end, extern_type*& __to_next) const; 32778: 32778: virtual result 32778: do_in(state_type& __state, const extern_type* __from, 32778: const extern_type* __from_end, const extern_type*& __from_next, 32778: intern_type* __to, intern_type* __to_end, 32778: intern_type*& __to_next) const; 32778: 32778: virtual int 32778: do_encoding() const throw(); 32778: 32778: virtual bool 32778: do_always_noconv() const throw(); 32778: 32778: virtual int 32778: do_length(state_type&, const extern_type* __from, 32778: const extern_type* __end, size_t __max) const; 32778: 32778: virtual int 32778: do_max_length() const throw(); 32778: }; 32778: 32778: template 32778: locale::id codecvt<_InternT, _ExternT, _StateT>::id; 32778: 32778: 32778: template<> 32778: class codecvt 32778: : public __codecvt_abstract_base 32778: { 32778: friend class messages; 32778: 32778: public: 32778: 32778: typedef char intern_type; 32778: typedef char extern_type; 32778: typedef mbstate_t state_type; 32778: 32778: protected: 32778: __c_locale _M_c_locale_codecvt; 32778: 32778: public: 32778: static locale::id id; 32778: 32778: explicit 32778: codecvt(size_t __refs = 0); 32778: 32778: explicit 32778: codecvt(__c_locale __cloc, size_t __refs = 0); 32778: 32778: protected: 32778: virtual 32778: ~codecvt(); 32778: 32778: virtual result 32778: do_out(state_type& __state, const intern_type* __from, 32778: const intern_type* __from_end, const intern_type*& __from_next, 32778: extern_type* __to, extern_type* __to_end, 32778: extern_type*& __to_next) const; 32778: 32778: virtual result 32778: do_unshift(state_type& __state, extern_type* __to, 32778: extern_type* __to_end, extern_type*& __to_next) const; 32778: 32778: virtual result 32778: do_in(state_type& __state, const extern_type* __from, 32778: const extern_type* __from_end, const extern_type*& __from_next, 32778: intern_type* __to, intern_type* __to_end, 32778: intern_type*& __to_next) const; 32778: 32778: virtual int 32778: do_encoding() const throw(); 32778: 32778: virtual bool 32778: do_always_noconv() const throw(); 32778: 32778: virtual int 32778: do_length(state_type&, const extern_type* __from, 32778: const extern_type* __end, size_t __max) const; 32778: 32778: virtual int 32778: do_max_length() const throw(); 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: template<> 32778: class codecvt 32778: : public __codecvt_abstract_base 32778: { 32778: friend class messages; 32778: 32778: public: 32778: 32778: typedef wchar_t intern_type; 32778: typedef char extern_type; 32778: typedef mbstate_t state_type; 32778: 32778: protected: 32778: __c_locale _M_c_locale_codecvt; 32778: 32778: public: 32778: static locale::id id; 32778: 32778: explicit 32778: codecvt(size_t __refs = 0); 32778: 32778: explicit 32778: codecvt(__c_locale __cloc, size_t __refs = 0); 32778: 32778: protected: 32778: virtual 32778: ~codecvt(); 32778: 32778: virtual result 32778: do_out(state_type& __state, const intern_type* __from, 32778: const intern_type* __from_end, const intern_type*& __from_next, 32778: extern_type* __to, extern_type* __to_end, 32778: extern_type*& __to_next) const; 32778: 32778: virtual result 32778: do_unshift(state_type& __state, 32778: extern_type* __to, extern_type* __to_end, 32778: extern_type*& __to_next) const; 32778: 32778: virtual result 32778: do_in(state_type& __state, 32778: const extern_type* __from, const extern_type* __from_end, 32778: const extern_type*& __from_next, 32778: intern_type* __to, intern_type* __to_end, 32778: intern_type*& __to_next) const; 32778: 32778: virtual 32778: int do_encoding() const throw(); 32778: 32778: virtual 32778: bool do_always_noconv() const throw(); 32778: 32778: virtual 32778: int do_length(state_type&, const extern_type* __from, 32778: const extern_type* __end, size_t __max) const; 32778: 32778: virtual int 32778: do_max_length() const throw(); 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template<> 32778: class codecvt 32778: : public __codecvt_abstract_base 32778: { 32778: public: 32778: 32778: typedef char16_t intern_type; 32778: typedef char extern_type; 32778: typedef mbstate_t state_type; 32778: 32778: public: 32778: static locale::id id; 32778: 32778: explicit 32778: codecvt(size_t __refs = 0) 32778: : __codecvt_abstract_base(__refs) { } 32778: 32778: protected: 32778: virtual 32778: ~codecvt(); 32778: 32778: virtual result 32778: do_out(state_type& __state, const intern_type* __from, 32778: const intern_type* __from_end, const intern_type*& __from_next, 32778: extern_type* __to, extern_type* __to_end, 32778: extern_type*& __to_next) const; 32778: 32778: virtual result 32778: do_unshift(state_type& __state, 32778: extern_type* __to, extern_type* __to_end, 32778: extern_type*& __to_next) const; 32778: 32778: virtual result 32778: do_in(state_type& __state, 32778: const extern_type* __from, const extern_type* __from_end, 32778: const extern_type*& __from_next, 32778: intern_type* __to, intern_type* __to_end, 32778: intern_type*& __to_next) const; 32778: 32778: virtual 32778: int do_encoding() const throw(); 32778: 32778: virtual 32778: bool do_always_noconv() const throw(); 32778: 32778: virtual 32778: int do_length(state_type&, const extern_type* __from, 32778: const extern_type* __end, size_t __max) const; 32778: 32778: virtual int 32778: do_max_length() const throw(); 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: template<> 32778: class codecvt 32778: : public __codecvt_abstract_base 32778: { 32778: public: 32778: 32778: typedef char32_t intern_type; 32778: typedef char extern_type; 32778: typedef mbstate_t state_type; 32778: 32778: public: 32778: static locale::id id; 32778: 32778: explicit 32778: codecvt(size_t __refs = 0) 32778: : __codecvt_abstract_base(__refs) { } 32778: 32778: protected: 32778: virtual 32778: ~codecvt(); 32778: 32778: virtual result 32778: do_out(state_type& __state, const intern_type* __from, 32778: const intern_type* __from_end, const intern_type*& __from_next, 32778: extern_type* __to, extern_type* __to_end, 32778: extern_type*& __to_next) const; 32778: 32778: virtual result 32778: do_unshift(state_type& __state, 32778: extern_type* __to, extern_type* __to_end, 32778: extern_type*& __to_next) const; 32778: 32778: virtual result 32778: do_in(state_type& __state, 32778: const extern_type* __from, const extern_type* __from_end, 32778: const extern_type*& __from_next, 32778: intern_type* __to, intern_type* __to_end, 32778: intern_type*& __to_next) const; 32778: 32778: virtual 32778: int do_encoding() const throw(); 32778: 32778: virtual 32778: bool do_always_noconv() const throw(); 32778: 32778: virtual 32778: int do_length(state_type&, const extern_type* __from, 32778: const extern_type* __end, size_t __max) const; 32778: 32778: virtual int 32778: do_max_length() const throw(); 32778: }; 32778: # 695 "/usr/include/c++/9/bits/codecvt.h" 3 32778: template 32778: class codecvt_byname : public codecvt<_InternT, _ExternT, _StateT> 32778: { 32778: public: 32778: explicit 32778: codecvt_byname(const char* __s, size_t __refs = 0) 32778: : codecvt<_InternT, _ExternT, _StateT>(__refs) 32778: { 32778: if (__builtin_strcmp(__s, "C") != 0 32778: && __builtin_strcmp(__s, "POSIX") != 0) 32778: { 32778: this->_S_destroy_c_locale(this->_M_c_locale_codecvt); 32778: this->_S_create_c_locale(this->_M_c_locale_codecvt, __s); 32778: } 32778: } 32778: 32778: 32778: explicit 32778: codecvt_byname(const string& __s, size_t __refs = 0) 32778: : codecvt_byname(__s.c_str(), __refs) { } 32778: 32778: 32778: protected: 32778: virtual 32778: ~codecvt_byname() { } 32778: }; 32778: 32778: 32778: template<> 32778: class codecvt_byname 32778: : public codecvt 32778: { 32778: public: 32778: explicit 32778: codecvt_byname(const char*, size_t __refs = 0) 32778: : codecvt(__refs) { } 32778: 32778: explicit 32778: codecvt_byname(const string& __s, size_t __refs = 0) 32778: : codecvt_byname(__s.c_str(), __refs) { } 32778: 32778: protected: 32778: virtual 32778: ~codecvt_byname() { } 32778: }; 32778: 32778: template<> 32778: class codecvt_byname 32778: : public codecvt 32778: { 32778: public: 32778: explicit 32778: codecvt_byname(const char*, size_t __refs = 0) 32778: : codecvt(__refs) { } 32778: 32778: explicit 32778: codecvt_byname(const string& __s, size_t __refs = 0) 32778: : codecvt_byname(__s.c_str(), __refs) { } 32778: 32778: protected: 32778: virtual 32778: ~codecvt_byname() { } 32778: }; 32778: # 802 "/usr/include/c++/9/bits/codecvt.h" 3 32778: extern template class codecvt_byname; 32778: 32778: extern template 32778: const codecvt& 32778: use_facet >(const locale&); 32778: 32778: extern template 32778: bool 32778: has_facet >(const locale&); 32778: 32778: 32778: extern template class codecvt_byname; 32778: 32778: extern template 32778: const codecvt& 32778: use_facet >(const locale&); 32778: 32778: extern template 32778: bool 32778: has_facet >(const locale&); 32778: 32778: 32778: 32778: extern template class codecvt_byname; 32778: extern template class codecvt_byname; 32778: # 837 "/usr/include/c++/9/bits/codecvt.h" 3 32778: 32778: } 32778: # 2014 "/usr/include/c++/9/bits/locale_facets_nonio.h" 2 3 32778: 32778: # 1 "/usr/include/c++/9/bits/locale_facets_nonio.tcc" 1 3 32778: # 33 "/usr/include/c++/9/bits/locale_facets_nonio.tcc" 3 32778: 32778: # 34 "/usr/include/c++/9/bits/locale_facets_nonio.tcc" 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: template 32778: struct __use_cache<__moneypunct_cache<_CharT, _Intl> > 32778: { 32778: const __moneypunct_cache<_CharT, _Intl>* 32778: operator() (const locale& __loc) const 32778: { 32778: const size_t __i = moneypunct<_CharT, _Intl>::id._M_id(); 32778: const locale::facet** __caches = __loc._M_impl->_M_caches; 32778: if (!__caches[__i]) 32778: { 32778: __moneypunct_cache<_CharT, _Intl>* __tmp = 0; 32778: try 32778: { 32778: __tmp = new __moneypunct_cache<_CharT, _Intl>; 32778: __tmp->_M_cache(__loc); 32778: } 32778: catch(...) 32778: { 32778: delete __tmp; 32778: throw; 32778: } 32778: __loc._M_impl->_M_install_cache(__tmp, __i); 32778: } 32778: return static_cast< 32778: const __moneypunct_cache<_CharT, _Intl>*>(__caches[__i]); 32778: } 32778: }; 32778: 32778: template 32778: void 32778: __moneypunct_cache<_CharT, _Intl>::_M_cache(const locale& __loc) 32778: { 32778: const moneypunct<_CharT, _Intl>& __mp = 32778: use_facet >(__loc); 32778: 32778: _M_decimal_point = __mp.decimal_point(); 32778: _M_thousands_sep = __mp.thousands_sep(); 32778: _M_frac_digits = __mp.frac_digits(); 32778: 32778: char* __grouping = 0; 32778: _CharT* __curr_symbol = 0; 32778: _CharT* __positive_sign = 0; 32778: _CharT* __negative_sign = 0; 32778: try 32778: { 32778: const string& __g = __mp.grouping(); 32778: _M_grouping_size = __g.size(); 32778: __grouping = new char[_M_grouping_size]; 32778: __g.copy(__grouping, _M_grouping_size); 32778: _M_use_grouping = (_M_grouping_size 32778: && static_cast(__grouping[0]) > 0 32778: && (__grouping[0] 32778: != __gnu_cxx::__numeric_traits::__max)); 32778: 32778: const basic_string<_CharT>& __cs = __mp.curr_symbol(); 32778: _M_curr_symbol_size = __cs.size(); 32778: __curr_symbol = new _CharT[_M_curr_symbol_size]; 32778: __cs.copy(__curr_symbol, _M_curr_symbol_size); 32778: 32778: const basic_string<_CharT>& __ps = __mp.positive_sign(); 32778: _M_positive_sign_size = __ps.size(); 32778: __positive_sign = new _CharT[_M_positive_sign_size]; 32778: __ps.copy(__positive_sign, _M_positive_sign_size); 32778: 32778: const basic_string<_CharT>& __ns = __mp.negative_sign(); 32778: _M_negative_sign_size = __ns.size(); 32778: __negative_sign = new _CharT[_M_negative_sign_size]; 32778: __ns.copy(__negative_sign, _M_negative_sign_size); 32778: 32778: _M_pos_format = __mp.pos_format(); 32778: _M_neg_format = __mp.neg_format(); 32778: 32778: const ctype<_CharT>& __ct = use_facet >(__loc); 32778: __ct.widen(money_base::_S_atoms, 32778: money_base::_S_atoms + money_base::_S_end, _M_atoms); 32778: 32778: _M_grouping = __grouping; 32778: _M_curr_symbol = __curr_symbol; 32778: _M_positive_sign = __positive_sign; 32778: _M_negative_sign = __negative_sign; 32778: _M_allocated = true; 32778: } 32778: catch(...) 32778: { 32778: delete [] __grouping; 32778: delete [] __curr_symbol; 32778: delete [] __positive_sign; 32778: delete [] __negative_sign; 32778: throw; 32778: } 32778: } 32778: 32778: namespace __cxx11 { 32778: 32778: template 32778: template 32778: _InIter 32778: money_get<_CharT, _InIter>:: 32778: _M_extract(iter_type __beg, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, string& __units) const 32778: { 32778: typedef char_traits<_CharT> __traits_type; 32778: typedef typename string_type::size_type size_type; 32778: typedef money_base::part part; 32778: typedef __moneypunct_cache<_CharT, _Intl> __cache_type; 32778: 32778: const locale& __loc = __io._M_getloc(); 32778: const ctype<_CharT>& __ctype = use_facet >(__loc); 32778: 32778: __use_cache<__cache_type> __uc; 32778: const __cache_type* __lc = __uc(__loc); 32778: const char_type* __lit = __lc->_M_atoms; 32778: 32778: 32778: bool __negative = false; 32778: 32778: size_type __sign_size = 0; 32778: 32778: const bool __mandatory_sign = (__lc->_M_positive_sign_size 32778: && __lc->_M_negative_sign_size); 32778: 32778: string __grouping_tmp; 32778: if (__lc->_M_use_grouping) 32778: __grouping_tmp.reserve(32); 32778: 32778: int __last_pos = 0; 32778: 32778: int __n = 0; 32778: 32778: bool __testvalid = true; 32778: 32778: bool __testdecfound = false; 32778: 32778: 32778: string __res; 32778: __res.reserve(32); 32778: 32778: const char_type* __lit_zero = __lit + money_base::_S_zero; 32778: const money_base::pattern __p = __lc->_M_neg_format; 32778: for (int __i = 0; __i < 4 && __testvalid; ++__i) 32778: { 32778: const part __which = static_cast(__p.field[__i]); 32778: switch (__which) 32778: { 32778: case money_base::symbol: 32778: 32778: 32778: 32778: 32778: if (__io.flags() & ios_base::showbase || __sign_size > 1 32778: || __i == 0 32778: || (__i == 1 && (__mandatory_sign 32778: || (static_cast(__p.field[0]) 32778: == money_base::sign) 32778: || (static_cast(__p.field[2]) 32778: == money_base::space))) 32778: || (__i == 2 && ((static_cast(__p.field[3]) 32778: == money_base::value) 32778: || (__mandatory_sign 32778: && (static_cast(__p.field[3]) 32778: == money_base::sign))))) 32778: { 32778: const size_type __len = __lc->_M_curr_symbol_size; 32778: size_type __j = 0; 32778: for (; __beg != __end && __j < __len 32778: && *__beg == __lc->_M_curr_symbol[__j]; 32778: ++__beg, (void)++__j); 32778: if (__j != __len 32778: && (__j || __io.flags() & ios_base::showbase)) 32778: __testvalid = false; 32778: } 32778: break; 32778: case money_base::sign: 32778: 32778: if (__lc->_M_positive_sign_size && __beg != __end 32778: && *__beg == __lc->_M_positive_sign[0]) 32778: { 32778: __sign_size = __lc->_M_positive_sign_size; 32778: ++__beg; 32778: } 32778: else if (__lc->_M_negative_sign_size && __beg != __end 32778: && *__beg == __lc->_M_negative_sign[0]) 32778: { 32778: __negative = true; 32778: __sign_size = __lc->_M_negative_sign_size; 32778: ++__beg; 32778: } 32778: else if (__lc->_M_positive_sign_size 32778: && !__lc->_M_negative_sign_size) 32778: 32778: 32778: __negative = true; 32778: else if (__mandatory_sign) 32778: __testvalid = false; 32778: break; 32778: case money_base::value: 32778: 32778: 32778: for (; __beg != __end; ++__beg) 32778: { 32778: const char_type __c = *__beg; 32778: const char_type* __q = __traits_type::find(__lit_zero, 32778: 10, __c); 32778: if (__q != 0) 32778: { 32778: __res += money_base::_S_atoms[__q - __lit]; 32778: ++__n; 32778: } 32778: else if (__c == __lc->_M_decimal_point 32778: && !__testdecfound) 32778: { 32778: if (__lc->_M_frac_digits <= 0) 32778: break; 32778: 32778: __last_pos = __n; 32778: __n = 0; 32778: __testdecfound = true; 32778: } 32778: else if (__lc->_M_use_grouping 32778: && __c == __lc->_M_thousands_sep 32778: && !__testdecfound) 32778: { 32778: if (__n) 32778: { 32778: 32778: __grouping_tmp += static_cast(__n); 32778: __n = 0; 32778: } 32778: else 32778: { 32778: __testvalid = false; 32778: break; 32778: } 32778: } 32778: else 32778: break; 32778: } 32778: if (__res.empty()) 32778: __testvalid = false; 32778: break; 32778: case money_base::space: 32778: 32778: if (__beg != __end && __ctype.is(ctype_base::space, *__beg)) 32778: ++__beg; 32778: else 32778: __testvalid = false; 32778: 32778: case money_base::none: 32778: 32778: if (__i != 3) 32778: for (; __beg != __end 32778: && __ctype.is(ctype_base::space, *__beg); ++__beg); 32778: break; 32778: } 32778: } 32778: 32778: 32778: if (__sign_size > 1 && __testvalid) 32778: { 32778: const char_type* __sign = __negative ? __lc->_M_negative_sign 32778: : __lc->_M_positive_sign; 32778: size_type __i = 1; 32778: for (; __beg != __end && __i < __sign_size 32778: && *__beg == __sign[__i]; ++__beg, (void)++__i); 32778: 32778: if (__i != __sign_size) 32778: __testvalid = false; 32778: } 32778: 32778: if (__testvalid) 32778: { 32778: 32778: if (__res.size() > 1) 32778: { 32778: const size_type __first = __res.find_first_not_of('0'); 32778: const bool __only_zeros = __first == string::npos; 32778: if (__first) 32778: __res.erase(0, __only_zeros ? __res.size() - 1 : __first); 32778: } 32778: 32778: 32778: if (__negative && __res[0] != '0') 32778: __res.insert(__res.begin(), '-'); 32778: 32778: 32778: if (__grouping_tmp.size()) 32778: { 32778: 32778: __grouping_tmp += static_cast(__testdecfound ? __last_pos 32778: : __n); 32778: if (!std::__verify_grouping(__lc->_M_grouping, 32778: __lc->_M_grouping_size, 32778: __grouping_tmp)) 32778: __err |= ios_base::failbit; 32778: } 32778: 32778: 32778: if (__testdecfound && __n != __lc->_M_frac_digits) 32778: __testvalid = false; 32778: } 32778: 32778: 32778: if (!__testvalid) 32778: __err |= ios_base::failbit; 32778: else 32778: __units.swap(__res); 32778: 32778: 32778: if (__beg == __end) 32778: __err |= ios_base::eofbit; 32778: return __beg; 32778: } 32778: # 368 "/usr/include/c++/9/bits/locale_facets_nonio.tcc" 3 32778: template 32778: _InIter 32778: money_get<_CharT, _InIter>:: 32778: do_get(iter_type __beg, iter_type __end, bool __intl, ios_base& __io, 32778: ios_base::iostate& __err, long double& __units) const 32778: { 32778: string __str; 32778: __beg = __intl ? _M_extract(__beg, __end, __io, __err, __str) 32778: : _M_extract(__beg, __end, __io, __err, __str); 32778: std::__convert_to_v(__str.c_str(), __units, __err, _S_get_c_locale()); 32778: return __beg; 32778: } 32778: 32778: template 32778: _InIter 32778: money_get<_CharT, _InIter>:: 32778: do_get(iter_type __beg, iter_type __end, bool __intl, ios_base& __io, 32778: ios_base::iostate& __err, string_type& __digits) const 32778: { 32778: typedef typename string::size_type size_type; 32778: 32778: const locale& __loc = __io._M_getloc(); 32778: const ctype<_CharT>& __ctype = use_facet >(__loc); 32778: 32778: string __str; 32778: __beg = __intl ? _M_extract(__beg, __end, __io, __err, __str) 32778: : _M_extract(__beg, __end, __io, __err, __str); 32778: const size_type __len = __str.size(); 32778: if (__len) 32778: { 32778: __digits.resize(__len); 32778: __ctype.widen(__str.data(), __str.data() + __len, &__digits[0]); 32778: } 32778: return __beg; 32778: } 32778: 32778: template 32778: template 32778: _OutIter 32778: money_put<_CharT, _OutIter>:: 32778: _M_insert(iter_type __s, ios_base& __io, char_type __fill, 32778: const string_type& __digits) const 32778: { 32778: typedef typename string_type::size_type size_type; 32778: typedef money_base::part part; 32778: typedef __moneypunct_cache<_CharT, _Intl> __cache_type; 32778: 32778: const locale& __loc = __io._M_getloc(); 32778: const ctype<_CharT>& __ctype = use_facet >(__loc); 32778: 32778: __use_cache<__cache_type> __uc; 32778: const __cache_type* __lc = __uc(__loc); 32778: const char_type* __lit = __lc->_M_atoms; 32778: 32778: 32778: 32778: const char_type* __beg = __digits.data(); 32778: 32778: money_base::pattern __p; 32778: const char_type* __sign; 32778: size_type __sign_size; 32778: if (!(*__beg == __lit[money_base::_S_minus])) 32778: { 32778: __p = __lc->_M_pos_format; 32778: __sign = __lc->_M_positive_sign; 32778: __sign_size = __lc->_M_positive_sign_size; 32778: } 32778: else 32778: { 32778: __p = __lc->_M_neg_format; 32778: __sign = __lc->_M_negative_sign; 32778: __sign_size = __lc->_M_negative_sign_size; 32778: if (__digits.size()) 32778: ++__beg; 32778: } 32778: 32778: 32778: size_type __len = __ctype.scan_not(ctype_base::digit, __beg, 32778: __beg + __digits.size()) - __beg; 32778: if (__len) 32778: { 32778: 32778: 32778: 32778: string_type __value; 32778: __value.reserve(2 * __len); 32778: 32778: 32778: 32778: long __paddec = __len - __lc->_M_frac_digits; 32778: if (__paddec > 0) 32778: { 32778: if (__lc->_M_frac_digits < 0) 32778: __paddec = __len; 32778: if (__lc->_M_grouping_size) 32778: { 32778: __value.assign(2 * __paddec, char_type()); 32778: _CharT* __vend = 32778: std::__add_grouping(&__value[0], __lc->_M_thousands_sep, 32778: __lc->_M_grouping, 32778: __lc->_M_grouping_size, 32778: __beg, __beg + __paddec); 32778: __value.erase(__vend - &__value[0]); 32778: } 32778: else 32778: __value.assign(__beg, __paddec); 32778: } 32778: 32778: 32778: if (__lc->_M_frac_digits > 0) 32778: { 32778: __value += __lc->_M_decimal_point; 32778: if (__paddec >= 0) 32778: __value.append(__beg + __paddec, __lc->_M_frac_digits); 32778: else 32778: { 32778: 32778: __value.append(-__paddec, __lit[money_base::_S_zero]); 32778: __value.append(__beg, __len); 32778: } 32778: } 32778: 32778: 32778: const ios_base::fmtflags __f = __io.flags() 32778: & ios_base::adjustfield; 32778: __len = __value.size() + __sign_size; 32778: __len += ((__io.flags() & ios_base::showbase) 32778: ? __lc->_M_curr_symbol_size : 0); 32778: 32778: string_type __res; 32778: __res.reserve(2 * __len); 32778: 32778: const size_type __width = static_cast(__io.width()); 32778: const bool __testipad = (__f == ios_base::internal 32778: && __len < __width); 32778: 32778: for (int __i = 0; __i < 4; ++__i) 32778: { 32778: const part __which = static_cast(__p.field[__i]); 32778: switch (__which) 32778: { 32778: case money_base::symbol: 32778: if (__io.flags() & ios_base::showbase) 32778: __res.append(__lc->_M_curr_symbol, 32778: __lc->_M_curr_symbol_size); 32778: break; 32778: case money_base::sign: 32778: 32778: 32778: 32778: if (__sign_size) 32778: __res += __sign[0]; 32778: break; 32778: case money_base::value: 32778: __res += __value; 32778: break; 32778: case money_base::space: 32778: 32778: 32778: 32778: if (__testipad) 32778: __res.append(__width - __len, __fill); 32778: else 32778: __res += __fill; 32778: break; 32778: case money_base::none: 32778: if (__testipad) 32778: __res.append(__width - __len, __fill); 32778: break; 32778: } 32778: } 32778: 32778: 32778: if (__sign_size > 1) 32778: __res.append(__sign + 1, __sign_size - 1); 32778: 32778: 32778: __len = __res.size(); 32778: if (__width > __len) 32778: { 32778: if (__f == ios_base::left) 32778: 32778: __res.append(__width - __len, __fill); 32778: else 32778: 32778: __res.insert(0, __width - __len, __fill); 32778: __len = __width; 32778: } 32778: 32778: 32778: __s = std::__write(__s, __res.data(), __len); 32778: } 32778: __io.width(0); 32778: return __s; 32778: } 32778: # 574 "/usr/include/c++/9/bits/locale_facets_nonio.tcc" 3 32778: template 32778: _OutIter 32778: money_put<_CharT, _OutIter>:: 32778: do_put(iter_type __s, bool __intl, ios_base& __io, char_type __fill, 32778: long double __units) const 32778: { 32778: const locale __loc = __io.getloc(); 32778: const ctype<_CharT>& __ctype = use_facet >(__loc); 32778: 32778: 32778: int __cs_size = 64; 32778: char* __cs = static_cast(__builtin_alloca(__cs_size)); 32778: 32778: 32778: int __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 32778: "%.*Lf", 0, __units); 32778: 32778: if (__len >= __cs_size) 32778: { 32778: __cs_size = __len + 1; 32778: __cs = static_cast(__builtin_alloca(__cs_size)); 32778: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 32778: "%.*Lf", 0, __units); 32778: } 32778: # 606 "/usr/include/c++/9/bits/locale_facets_nonio.tcc" 3 32778: string_type __digits(__len, char_type()); 32778: __ctype.widen(__cs, __cs + __len, &__digits[0]); 32778: return __intl ? _M_insert(__s, __io, __fill, __digits) 32778: : _M_insert(__s, __io, __fill, __digits); 32778: } 32778: 32778: template 32778: _OutIter 32778: money_put<_CharT, _OutIter>:: 32778: do_put(iter_type __s, bool __intl, ios_base& __io, char_type __fill, 32778: const string_type& __digits) const 32778: { return __intl ? _M_insert(__s, __io, __fill, __digits) 32778: : _M_insert(__s, __io, __fill, __digits); } 32778: 32778: } 32778: 32778: 32778: 32778: 32778: template 32778: time_base::dateorder 32778: time_get<_CharT, _InIter>::do_date_order() const 32778: { return time_base::no_order; } 32778: 32778: 32778: 32778: template 32778: _InIter 32778: time_get<_CharT, _InIter>:: 32778: _M_extract_via_format(iter_type __beg, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, tm* __tm, 32778: const _CharT* __format) const 32778: { 32778: const locale& __loc = __io._M_getloc(); 32778: const __timepunct<_CharT>& __tp = use_facet<__timepunct<_CharT> >(__loc); 32778: const ctype<_CharT>& __ctype = use_facet >(__loc); 32778: const size_t __len = char_traits<_CharT>::length(__format); 32778: 32778: ios_base::iostate __tmperr = ios_base::goodbit; 32778: size_t __i = 0; 32778: for (; __beg != __end && __i < __len && !__tmperr; ++__i) 32778: { 32778: if (__ctype.narrow(__format[__i], 0) == '%') 32778: { 32778: 32778: char __c = __ctype.narrow(__format[++__i], 0); 32778: int __mem = 0; 32778: if (__c == 'E' || __c == 'O') 32778: __c = __ctype.narrow(__format[++__i], 0); 32778: switch (__c) 32778: { 32778: const char* __cs; 32778: _CharT __wcs[10]; 32778: case 'a': 32778: 32778: const char_type* __days1[7]; 32778: __tp._M_days_abbreviated(__days1); 32778: __beg = _M_extract_name(__beg, __end, __mem, __days1, 32778: 7, __io, __tmperr); 32778: if (!__tmperr) 32778: __tm->tm_wday = __mem; 32778: break; 32778: case 'A': 32778: 32778: const char_type* __days2[7]; 32778: __tp._M_days(__days2); 32778: __beg = _M_extract_name(__beg, __end, __mem, __days2, 32778: 7, __io, __tmperr); 32778: if (!__tmperr) 32778: __tm->tm_wday = __mem; 32778: break; 32778: case 'h': 32778: case 'b': 32778: 32778: const char_type* __months1[12]; 32778: __tp._M_months_abbreviated(__months1); 32778: __beg = _M_extract_name(__beg, __end, __mem, 32778: __months1, 12, __io, __tmperr); 32778: if (!__tmperr) 32778: __tm->tm_mon = __mem; 32778: break; 32778: case 'B': 32778: 32778: const char_type* __months2[12]; 32778: __tp._M_months(__months2); 32778: __beg = _M_extract_name(__beg, __end, __mem, 32778: __months2, 12, __io, __tmperr); 32778: if (!__tmperr) 32778: __tm->tm_mon = __mem; 32778: break; 32778: case 'c': 32778: 32778: const char_type* __dt[2]; 32778: __tp._M_date_time_formats(__dt); 32778: __beg = _M_extract_via_format(__beg, __end, __io, __tmperr, 32778: __tm, __dt[0]); 32778: break; 32778: case 'd': 32778: 32778: __beg = _M_extract_num(__beg, __end, __mem, 1, 31, 2, 32778: __io, __tmperr); 32778: if (!__tmperr) 32778: __tm->tm_mday = __mem; 32778: break; 32778: case 'e': 32778: 32778: 32778: if (__ctype.is(ctype_base::space, *__beg)) 32778: __beg = _M_extract_num(++__beg, __end, __mem, 1, 9, 32778: 1, __io, __tmperr); 32778: else 32778: __beg = _M_extract_num(__beg, __end, __mem, 10, 31, 32778: 2, __io, __tmperr); 32778: if (!__tmperr) 32778: __tm->tm_mday = __mem; 32778: break; 32778: case 'D': 32778: 32778: __cs = "%m/%d/%y"; 32778: __ctype.widen(__cs, __cs + 9, __wcs); 32778: __beg = _M_extract_via_format(__beg, __end, __io, __tmperr, 32778: __tm, __wcs); 32778: break; 32778: case 'H': 32778: 32778: __beg = _M_extract_num(__beg, __end, __mem, 0, 23, 2, 32778: __io, __tmperr); 32778: if (!__tmperr) 32778: __tm->tm_hour = __mem; 32778: break; 32778: case 'I': 32778: 32778: __beg = _M_extract_num(__beg, __end, __mem, 1, 12, 2, 32778: __io, __tmperr); 32778: if (!__tmperr) 32778: __tm->tm_hour = __mem; 32778: break; 32778: case 'm': 32778: 32778: __beg = _M_extract_num(__beg, __end, __mem, 1, 12, 2, 32778: __io, __tmperr); 32778: if (!__tmperr) 32778: __tm->tm_mon = __mem - 1; 32778: break; 32778: case 'M': 32778: 32778: __beg = _M_extract_num(__beg, __end, __mem, 0, 59, 2, 32778: __io, __tmperr); 32778: if (!__tmperr) 32778: __tm->tm_min = __mem; 32778: break; 32778: case 'n': 32778: if (__ctype.narrow(*__beg, 0) == '\n') 32778: ++__beg; 32778: else 32778: __tmperr |= ios_base::failbit; 32778: break; 32778: case 'R': 32778: 32778: __cs = "%H:%M"; 32778: __ctype.widen(__cs, __cs + 6, __wcs); 32778: __beg = _M_extract_via_format(__beg, __end, __io, __tmperr, 32778: __tm, __wcs); 32778: break; 32778: case 'S': 32778: 32778: 32778: 32778: __beg = _M_extract_num(__beg, __end, __mem, 0, 60, 2, 32778: 32778: 32778: 32778: __io, __tmperr); 32778: if (!__tmperr) 32778: __tm->tm_sec = __mem; 32778: break; 32778: case 't': 32778: if (__ctype.narrow(*__beg, 0) == '\t') 32778: ++__beg; 32778: else 32778: __tmperr |= ios_base::failbit; 32778: break; 32778: case 'T': 32778: 32778: __cs = "%H:%M:%S"; 32778: __ctype.widen(__cs, __cs + 9, __wcs); 32778: __beg = _M_extract_via_format(__beg, __end, __io, __tmperr, 32778: __tm, __wcs); 32778: break; 32778: case 'x': 32778: 32778: const char_type* __dates[2]; 32778: __tp._M_date_formats(__dates); 32778: __beg = _M_extract_via_format(__beg, __end, __io, __tmperr, 32778: __tm, __dates[0]); 32778: break; 32778: case 'X': 32778: 32778: const char_type* __times[2]; 32778: __tp._M_time_formats(__times); 32778: __beg = _M_extract_via_format(__beg, __end, __io, __tmperr, 32778: __tm, __times[0]); 32778: break; 32778: case 'y': 32778: case 'C': 32778: 32778: case 'Y': 32778: 32778: 32778: 32778: 32778: __beg = _M_extract_num(__beg, __end, __mem, 0, 9999, 4, 32778: __io, __tmperr); 32778: if (!__tmperr) 32778: __tm->tm_year = __mem < 0 ? __mem + 100 : __mem - 1900; 32778: break; 32778: case 'Z': 32778: 32778: if (__ctype.is(ctype_base::upper, *__beg)) 32778: { 32778: int __tmp; 32778: __beg = _M_extract_name(__beg, __end, __tmp, 32778: __timepunct_cache<_CharT>::_S_timezones, 32778: 14, __io, __tmperr); 32778: 32778: 32778: if (__beg != __end && !__tmperr && __tmp == 0 32778: && (*__beg == __ctype.widen('-') 32778: || *__beg == __ctype.widen('+'))) 32778: { 32778: __beg = _M_extract_num(__beg, __end, __tmp, 0, 23, 2, 32778: __io, __tmperr); 32778: __beg = _M_extract_num(__beg, __end, __tmp, 0, 59, 2, 32778: __io, __tmperr); 32778: } 32778: } 32778: else 32778: __tmperr |= ios_base::failbit; 32778: break; 32778: default: 32778: 32778: __tmperr |= ios_base::failbit; 32778: } 32778: } 32778: else 32778: { 32778: 32778: if (__format[__i] == *__beg) 32778: ++__beg; 32778: else 32778: __tmperr |= ios_base::failbit; 32778: } 32778: } 32778: 32778: if (__tmperr || __i != __len) 32778: __err |= ios_base::failbit; 32778: 32778: return __beg; 32778: } 32778: 32778: template 32778: _InIter 32778: time_get<_CharT, _InIter>:: 32778: _M_extract_num(iter_type __beg, iter_type __end, int& __member, 32778: int __min, int __max, size_t __len, 32778: ios_base& __io, ios_base::iostate& __err) const 32778: { 32778: const locale& __loc = __io._M_getloc(); 32778: const ctype<_CharT>& __ctype = use_facet >(__loc); 32778: 32778: 32778: int __mult = __len == 2 ? 10 : (__len == 4 ? 1000 : 1); 32778: 32778: ++__min; 32778: size_t __i = 0; 32778: int __value = 0; 32778: for (; __beg != __end && __i < __len; ++__beg, (void)++__i) 32778: { 32778: const char __c = __ctype.narrow(*__beg, '*'); 32778: if (__c >= '0' && __c <= '9') 32778: { 32778: __value = __value * 10 + (__c - '0'); 32778: const int __valuec = __value * __mult; 32778: if (__valuec > __max || __valuec + __mult < __min) 32778: break; 32778: __mult /= 10; 32778: } 32778: else 32778: break; 32778: } 32778: if (__i == __len) 32778: __member = __value; 32778: 32778: else if (__len == 4 && __i == 2) 32778: __member = __value - 100; 32778: else 32778: __err |= ios_base::failbit; 32778: 32778: return __beg; 32778: } 32778: 32778: 32778: 32778: template 32778: _InIter 32778: time_get<_CharT, _InIter>:: 32778: _M_extract_name(iter_type __beg, iter_type __end, int& __member, 32778: const _CharT** __names, size_t __indexlen, 32778: ios_base& __io, ios_base::iostate& __err) const 32778: { 32778: typedef char_traits<_CharT> __traits_type; 32778: const locale& __loc = __io._M_getloc(); 32778: const ctype<_CharT>& __ctype = use_facet >(__loc); 32778: 32778: int* __matches = static_cast(__builtin_alloca(sizeof(int) 32778: * __indexlen)); 32778: size_t __nmatches = 0; 32778: size_t __pos = 0; 32778: bool __testvalid = true; 32778: const char_type* __name; 32778: 32778: 32778: 32778: 32778: 32778: if (__beg != __end) 32778: { 32778: const char_type __c = *__beg; 32778: for (size_t __i1 = 0; __i1 < __indexlen; ++__i1) 32778: if (__c == __names[__i1][0] 32778: || __c == __ctype.toupper(__names[__i1][0])) 32778: __matches[__nmatches++] = __i1; 32778: } 32778: 32778: while (__nmatches > 1) 32778: { 32778: 32778: size_t __minlen = __traits_type::length(__names[__matches[0]]); 32778: for (size_t __i2 = 1; __i2 < __nmatches; ++__i2) 32778: __minlen = std::min(__minlen, 32778: __traits_type::length(__names[__matches[__i2]])); 32778: ++__beg; 32778: ++__pos; 32778: if (__pos < __minlen && __beg != __end) 32778: for (size_t __i3 = 0; __i3 < __nmatches;) 32778: { 32778: __name = __names[__matches[__i3]]; 32778: if (!(__name[__pos] == *__beg)) 32778: __matches[__i3] = __matches[--__nmatches]; 32778: else 32778: ++__i3; 32778: } 32778: else 32778: break; 32778: } 32778: 32778: if (__nmatches == 1) 32778: { 32778: 32778: ++__beg; 32778: ++__pos; 32778: __name = __names[__matches[0]]; 32778: const size_t __len = __traits_type::length(__name); 32778: while (__pos < __len && __beg != __end && __name[__pos] == *__beg) 32778: ++__beg, (void)++__pos; 32778: 32778: if (__len == __pos) 32778: __member = __matches[0]; 32778: else 32778: __testvalid = false; 32778: } 32778: else 32778: __testvalid = false; 32778: if (!__testvalid) 32778: __err |= ios_base::failbit; 32778: 32778: return __beg; 32778: } 32778: 32778: template 32778: _InIter 32778: time_get<_CharT, _InIter>:: 32778: _M_extract_wday_or_month(iter_type __beg, iter_type __end, int& __member, 32778: const _CharT** __names, size_t __indexlen, 32778: ios_base& __io, ios_base::iostate& __err) const 32778: { 32778: typedef char_traits<_CharT> __traits_type; 32778: const locale& __loc = __io._M_getloc(); 32778: const ctype<_CharT>& __ctype = use_facet >(__loc); 32778: 32778: int* __matches = static_cast(__builtin_alloca(2 * sizeof(int) 32778: * __indexlen)); 32778: size_t __nmatches = 0; 32778: size_t* __matches_lengths = 0; 32778: size_t __pos = 0; 32778: 32778: if (__beg != __end) 32778: { 32778: const char_type __c = *__beg; 32778: for (size_t __i = 0; __i < 2 * __indexlen; ++__i) 32778: if (__c == __names[__i][0] 32778: || __c == __ctype.toupper(__names[__i][0])) 32778: __matches[__nmatches++] = __i; 32778: } 32778: 32778: if (__nmatches) 32778: { 32778: ++__beg; 32778: ++__pos; 32778: 32778: __matches_lengths 32778: = static_cast(__builtin_alloca(sizeof(size_t) 32778: * __nmatches)); 32778: for (size_t __i = 0; __i < __nmatches; ++__i) 32778: __matches_lengths[__i] 32778: = __traits_type::length(__names[__matches[__i]]); 32778: } 32778: 32778: for (; __beg != __end; ++__beg, (void)++__pos) 32778: { 32778: size_t __nskipped = 0; 32778: const char_type __c = *__beg; 32778: for (size_t __i = 0; __i < __nmatches;) 32778: { 32778: const char_type* __name = __names[__matches[__i]]; 32778: if (__pos >= __matches_lengths[__i]) 32778: ++__nskipped, ++__i; 32778: else if (!(__name[__pos] == __c)) 32778: { 32778: --__nmatches; 32778: __matches[__i] = __matches[__nmatches]; 32778: __matches_lengths[__i] = __matches_lengths[__nmatches]; 32778: } 32778: else 32778: ++__i; 32778: } 32778: if (__nskipped == __nmatches) 32778: break; 32778: } 32778: 32778: if ((__nmatches == 1 && __matches_lengths[0] == __pos) 32778: || (__nmatches == 2 && (__matches_lengths[0] == __pos 32778: || __matches_lengths[1] == __pos))) 32778: __member = (__matches[0] >= __indexlen 32778: ? __matches[0] - __indexlen : __matches[0]); 32778: else 32778: __err |= ios_base::failbit; 32778: 32778: return __beg; 32778: } 32778: 32778: template 32778: _InIter 32778: time_get<_CharT, _InIter>:: 32778: do_get_time(iter_type __beg, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, tm* __tm) const 32778: { 32778: const locale& __loc = __io._M_getloc(); 32778: const __timepunct<_CharT>& __tp = use_facet<__timepunct<_CharT> >(__loc); 32778: const char_type* __times[2]; 32778: __tp._M_time_formats(__times); 32778: __beg = _M_extract_via_format(__beg, __end, __io, __err, 32778: __tm, __times[0]); 32778: if (__beg == __end) 32778: __err |= ios_base::eofbit; 32778: return __beg; 32778: } 32778: 32778: template 32778: _InIter 32778: time_get<_CharT, _InIter>:: 32778: do_get_date(iter_type __beg, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, tm* __tm) const 32778: { 32778: const locale& __loc = __io._M_getloc(); 32778: const __timepunct<_CharT>& __tp = use_facet<__timepunct<_CharT> >(__loc); 32778: const char_type* __dates[2]; 32778: __tp._M_date_formats(__dates); 32778: __beg = _M_extract_via_format(__beg, __end, __io, __err, 32778: __tm, __dates[0]); 32778: if (__beg == __end) 32778: __err |= ios_base::eofbit; 32778: return __beg; 32778: } 32778: 32778: template 32778: _InIter 32778: time_get<_CharT, _InIter>:: 32778: do_get_weekday(iter_type __beg, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, tm* __tm) const 32778: { 32778: const locale& __loc = __io._M_getloc(); 32778: const __timepunct<_CharT>& __tp = use_facet<__timepunct<_CharT> >(__loc); 32778: const char_type* __days[14]; 32778: __tp._M_days_abbreviated(__days); 32778: __tp._M_days(__days + 7); 32778: int __tmpwday; 32778: ios_base::iostate __tmperr = ios_base::goodbit; 32778: 32778: __beg = _M_extract_wday_or_month(__beg, __end, __tmpwday, __days, 7, 32778: __io, __tmperr); 32778: if (!__tmperr) 32778: __tm->tm_wday = __tmpwday; 32778: else 32778: __err |= ios_base::failbit; 32778: 32778: if (__beg == __end) 32778: __err |= ios_base::eofbit; 32778: return __beg; 32778: } 32778: 32778: template 32778: _InIter 32778: time_get<_CharT, _InIter>:: 32778: do_get_monthname(iter_type __beg, iter_type __end, 32778: ios_base& __io, ios_base::iostate& __err, tm* __tm) const 32778: { 32778: const locale& __loc = __io._M_getloc(); 32778: const __timepunct<_CharT>& __tp = use_facet<__timepunct<_CharT> >(__loc); 32778: const char_type* __months[24]; 32778: __tp._M_months_abbreviated(__months); 32778: __tp._M_months(__months + 12); 32778: int __tmpmon; 32778: ios_base::iostate __tmperr = ios_base::goodbit; 32778: 32778: __beg = _M_extract_wday_or_month(__beg, __end, __tmpmon, __months, 12, 32778: __io, __tmperr); 32778: if (!__tmperr) 32778: __tm->tm_mon = __tmpmon; 32778: else 32778: __err |= ios_base::failbit; 32778: 32778: if (__beg == __end) 32778: __err |= ios_base::eofbit; 32778: return __beg; 32778: } 32778: 32778: template 32778: _InIter 32778: time_get<_CharT, _InIter>:: 32778: do_get_year(iter_type __beg, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, tm* __tm) const 32778: { 32778: int __tmpyear; 32778: ios_base::iostate __tmperr = ios_base::goodbit; 32778: 32778: __beg = _M_extract_num(__beg, __end, __tmpyear, 0, 9999, 4, 32778: __io, __tmperr); 32778: if (!__tmperr) 32778: __tm->tm_year = __tmpyear < 0 ? __tmpyear + 100 : __tmpyear - 1900; 32778: else 32778: __err |= ios_base::failbit; 32778: 32778: if (__beg == __end) 32778: __err |= ios_base::eofbit; 32778: return __beg; 32778: } 32778: 32778: 32778: template 32778: inline 32778: _InIter 32778: time_get<_CharT, _InIter>:: 32778: get(iter_type __s, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, tm* __tm, const char_type* __fmt, 32778: const char_type* __fmtend) const 32778: { 32778: const locale& __loc = __io._M_getloc(); 32778: ctype<_CharT> const& __ctype = use_facet >(__loc); 32778: __err = ios_base::goodbit; 32778: while (__fmt != __fmtend && 32778: __err == ios_base::goodbit) 32778: { 32778: if (__s == __end) 32778: { 32778: __err = ios_base::eofbit | ios_base::failbit; 32778: break; 32778: } 32778: else if (__ctype.narrow(*__fmt, 0) == '%') 32778: { 32778: char __format; 32778: char __mod = 0; 32778: if (++__fmt == __fmtend) 32778: { 32778: __err = ios_base::failbit; 32778: break; 32778: } 32778: const char __c = __ctype.narrow(*__fmt, 0); 32778: if (__c != 'E' && __c != 'O') 32778: __format = __c; 32778: else if (++__fmt != __fmtend) 32778: { 32778: __mod = __c; 32778: __format = __ctype.narrow(*__fmt, 0); 32778: } 32778: else 32778: { 32778: __err = ios_base::failbit; 32778: break; 32778: } 32778: __s = this->do_get(__s, __end, __io, __err, __tm, __format, 32778: __mod); 32778: ++__fmt; 32778: } 32778: else if (__ctype.is(ctype_base::space, *__fmt)) 32778: { 32778: ++__fmt; 32778: while (__fmt != __fmtend && 32778: __ctype.is(ctype_base::space, *__fmt)) 32778: ++__fmt; 32778: 32778: while (__s != __end && 32778: __ctype.is(ctype_base::space, *__s)) 32778: ++__s; 32778: } 32778: 32778: else if (__ctype.tolower(*__s) == __ctype.tolower(*__fmt) || 32778: __ctype.toupper(*__s) == __ctype.toupper(*__fmt)) 32778: { 32778: ++__s; 32778: ++__fmt; 32778: } 32778: else 32778: { 32778: __err = ios_base::failbit; 32778: break; 32778: } 32778: } 32778: return __s; 32778: } 32778: 32778: template 32778: inline 32778: _InIter 32778: time_get<_CharT, _InIter>:: 32778: do_get(iter_type __beg, iter_type __end, ios_base& __io, 32778: ios_base::iostate& __err, tm* __tm, 32778: char __format, char __mod) const 32778: { 32778: const locale& __loc = __io._M_getloc(); 32778: ctype<_CharT> const& __ctype = use_facet >(__loc); 32778: __err = ios_base::goodbit; 32778: 32778: char_type __fmt[4]; 32778: __fmt[0] = __ctype.widen('%'); 32778: if (!__mod) 32778: { 32778: __fmt[1] = __format; 32778: __fmt[2] = char_type(); 32778: } 32778: else 32778: { 32778: __fmt[1] = __mod; 32778: __fmt[2] = __format; 32778: __fmt[3] = char_type(); 32778: } 32778: 32778: __beg = _M_extract_via_format(__beg, __end, __io, __err, __tm, __fmt); 32778: if (__beg == __end) 32778: __err |= ios_base::eofbit; 32778: return __beg; 32778: } 32778: 32778: 32778: 32778: template 32778: _OutIter 32778: time_put<_CharT, _OutIter>:: 32778: put(iter_type __s, ios_base& __io, char_type __fill, const tm* __tm, 32778: const _CharT* __beg, const _CharT* __end) const 32778: { 32778: const locale& __loc = __io._M_getloc(); 32778: ctype<_CharT> const& __ctype = use_facet >(__loc); 32778: for (; __beg != __end; ++__beg) 32778: if (__ctype.narrow(*__beg, 0) != '%') 32778: { 32778: *__s = *__beg; 32778: ++__s; 32778: } 32778: else if (++__beg != __end) 32778: { 32778: char __format; 32778: char __mod = 0; 32778: const char __c = __ctype.narrow(*__beg, 0); 32778: if (__c != 'E' && __c != 'O') 32778: __format = __c; 32778: else if (++__beg != __end) 32778: { 32778: __mod = __c; 32778: __format = __ctype.narrow(*__beg, 0); 32778: } 32778: else 32778: break; 32778: __s = this->do_put(__s, __io, __fill, __tm, __format, __mod); 32778: } 32778: else 32778: break; 32778: return __s; 32778: } 32778: 32778: template 32778: _OutIter 32778: time_put<_CharT, _OutIter>:: 32778: do_put(iter_type __s, ios_base& __io, char_type, const tm* __tm, 32778: char __format, char __mod) const 32778: { 32778: const locale& __loc = __io._M_getloc(); 32778: ctype<_CharT> const& __ctype = use_facet >(__loc); 32778: __timepunct<_CharT> const& __tp = use_facet<__timepunct<_CharT> >(__loc); 32778: 32778: 32778: 32778: const size_t __maxlen = 128; 32778: char_type __res[__maxlen]; 32778: 32778: 32778: 32778: 32778: 32778: 32778: char_type __fmt[4]; 32778: __fmt[0] = __ctype.widen('%'); 32778: if (!__mod) 32778: { 32778: __fmt[1] = __format; 32778: __fmt[2] = char_type(); 32778: } 32778: else 32778: { 32778: __fmt[1] = __mod; 32778: __fmt[2] = __format; 32778: __fmt[3] = char_type(); 32778: } 32778: 32778: __tp._M_put(__res, __maxlen, __fmt, __tm); 32778: 32778: 32778: return std::__write(__s, __res, char_traits::length(__res)); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: extern template class moneypunct; 32778: extern template class moneypunct; 32778: extern template class moneypunct_byname; 32778: extern template class moneypunct_byname; 32778: extern template class __cxx11:: money_get; 32778: extern template class __cxx11:: money_put; 32778: extern template class __timepunct; 32778: extern template class time_put; 32778: extern template class time_put_byname; 32778: extern template class time_get; 32778: extern template class time_get_byname; 32778: extern template class messages; 32778: extern template class messages_byname; 32778: 32778: extern template 32778: const moneypunct& 32778: use_facet >(const locale&); 32778: 32778: extern template 32778: const moneypunct& 32778: use_facet >(const locale&); 32778: 32778: extern template 32778: const money_put& 32778: use_facet >(const locale&); 32778: 32778: extern template 32778: const money_get& 32778: use_facet >(const locale&); 32778: 32778: extern template 32778: const __timepunct& 32778: use_facet<__timepunct >(const locale&); 32778: 32778: extern template 32778: const time_put& 32778: use_facet >(const locale&); 32778: 32778: extern template 32778: const time_get& 32778: use_facet >(const locale&); 32778: 32778: extern template 32778: const messages& 32778: use_facet >(const locale&); 32778: 32778: extern template 32778: bool 32778: has_facet >(const locale&); 32778: 32778: extern template 32778: bool 32778: has_facet >(const locale&); 32778: 32778: extern template 32778: bool 32778: has_facet >(const locale&); 32778: 32778: extern template 32778: bool 32778: has_facet<__timepunct >(const locale&); 32778: 32778: extern template 32778: bool 32778: has_facet >(const locale&); 32778: 32778: extern template 32778: bool 32778: has_facet >(const locale&); 32778: 32778: extern template 32778: bool 32778: has_facet >(const locale&); 32778: 32778: 32778: extern template class moneypunct; 32778: extern template class moneypunct; 32778: extern template class moneypunct_byname; 32778: extern template class moneypunct_byname; 32778: extern template class __cxx11:: money_get; 32778: extern template class __cxx11:: money_put; 32778: extern template class __timepunct; 32778: extern template class time_put; 32778: extern template class time_put_byname; 32778: extern template class time_get; 32778: extern template class time_get_byname; 32778: extern template class messages; 32778: extern template class messages_byname; 32778: 32778: extern template 32778: const moneypunct& 32778: use_facet >(const locale&); 32778: 32778: extern template 32778: const moneypunct& 32778: use_facet >(const locale&); 32778: 32778: extern template 32778: const money_put& 32778: use_facet >(const locale&); 32778: 32778: extern template 32778: const money_get& 32778: use_facet >(const locale&); 32778: 32778: extern template 32778: const __timepunct& 32778: use_facet<__timepunct >(const locale&); 32778: 32778: extern template 32778: const time_put& 32778: use_facet >(const locale&); 32778: 32778: extern template 32778: const time_get& 32778: use_facet >(const locale&); 32778: 32778: extern template 32778: const messages& 32778: use_facet >(const locale&); 32778: 32778: extern template 32778: bool 32778: has_facet >(const locale&); 32778: 32778: extern template 32778: bool 32778: has_facet >(const locale&); 32778: 32778: extern template 32778: bool 32778: has_facet >(const locale&); 32778: 32778: extern template 32778: bool 32778: has_facet<__timepunct >(const locale&); 32778: 32778: extern template 32778: bool 32778: has_facet >(const locale&); 32778: 32778: extern template 32778: bool 32778: has_facet >(const locale&); 32778: 32778: extern template 32778: bool 32778: has_facet >(const locale&); 32778: 32778: 32778: 32778: 32778: } 32778: # 2016 "/usr/include/c++/9/bits/locale_facets_nonio.h" 2 3 32778: # 42 "/usr/include/c++/9/locale" 2 3 32778: 32778: # 1 "/usr/include/c++/9/bits/locale_conv.h" 1 3 32778: # 43 "/usr/include/c++/9/bits/locale_conv.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: bool 32778: __do_str_codecvt(const _InChar* __first, const _InChar* __last, 32778: _OutStr& __outstr, const _Codecvt& __cvt, _State& __state, 32778: size_t& __count, _Fn __fn) 32778: { 32778: if (__first == __last) 32778: { 32778: __outstr.clear(); 32778: __count = 0; 32778: return true; 32778: } 32778: 32778: size_t __outchars = 0; 32778: auto __next = __first; 32778: const auto __maxlen = __cvt.max_length() + 1; 32778: 32778: codecvt_base::result __result; 32778: do 32778: { 32778: __outstr.resize(__outstr.size() + (__last - __next) * __maxlen); 32778: auto __outnext = &__outstr.front() + __outchars; 32778: auto const __outlast = &__outstr.back() + 1; 32778: __result = (__cvt.*__fn)(__state, __next, __last, __next, 32778: __outnext, __outlast, __outnext); 32778: __outchars = __outnext - &__outstr.front(); 32778: } 32778: while (__result == codecvt_base::partial && __next != __last 32778: && (__outstr.size() - __outchars) < __maxlen); 32778: 32778: if (__result == codecvt_base::error) 32778: { 32778: __count = __next - __first; 32778: return false; 32778: } 32778: 32778: 32778: 32778: if (is_same()) 32778: if (__result == codecvt_base::noconv) 32778: { 32778: __outstr.assign(__first, __last); 32778: __count = __last - __first; 32778: return true; 32778: } 32778: 32778: __outstr.resize(__outchars); 32778: __count = __next - __first; 32778: return true; 32778: } 32778: 32778: 32778: template 32778: inline bool 32778: __str_codecvt_in(const char* __first, const char* __last, 32778: basic_string<_CharT, _Traits, _Alloc>& __outstr, 32778: const codecvt<_CharT, char, _State>& __cvt, 32778: _State& __state, size_t& __count) 32778: { 32778: using _Codecvt = codecvt<_CharT, char, _State>; 32778: using _ConvFn 32778: = codecvt_base::result 32778: (_Codecvt::*)(_State&, const char*, const char*, const char*&, 32778: _CharT*, _CharT*, _CharT*&) const; 32778: _ConvFn __fn = &codecvt<_CharT, char, _State>::in; 32778: return __do_str_codecvt(__first, __last, __outstr, __cvt, __state, 32778: __count, __fn); 32778: } 32778: 32778: 32778: template 32778: inline bool 32778: __str_codecvt_in(const char* __first, const char* __last, 32778: basic_string<_CharT, _Traits, _Alloc>& __outstr, 32778: const codecvt<_CharT, char, _State>& __cvt) 32778: { 32778: _State __state = {}; 32778: size_t __n; 32778: return __str_codecvt_in(__first, __last, __outstr, __cvt, __state, __n); 32778: } 32778: 32778: 32778: template 32778: inline bool 32778: __str_codecvt_in_all(const char* __first, const char* __last, 32778: basic_string<_CharT, _Traits, _Alloc>& __outstr, 32778: const codecvt<_CharT, char, _State>& __cvt) 32778: { 32778: _State __state = {}; 32778: size_t __n; 32778: return __str_codecvt_in(__first, __last, __outstr, __cvt, __state, __n) 32778: && (__n == (__last - __first)); 32778: } 32778: 32778: 32778: template 32778: inline bool 32778: __str_codecvt_out(const _CharT* __first, const _CharT* __last, 32778: basic_string& __outstr, 32778: const codecvt<_CharT, char, _State>& __cvt, 32778: _State& __state, size_t& __count) 32778: { 32778: using _Codecvt = codecvt<_CharT, char, _State>; 32778: using _ConvFn 32778: = codecvt_base::result 32778: (_Codecvt::*)(_State&, const _CharT*, const _CharT*, const _CharT*&, 32778: char*, char*, char*&) const; 32778: _ConvFn __fn = &codecvt<_CharT, char, _State>::out; 32778: return __do_str_codecvt(__first, __last, __outstr, __cvt, __state, 32778: __count, __fn); 32778: } 32778: 32778: 32778: template 32778: inline bool 32778: __str_codecvt_out(const _CharT* __first, const _CharT* __last, 32778: basic_string& __outstr, 32778: const codecvt<_CharT, char, _State>& __cvt) 32778: { 32778: _State __state = {}; 32778: size_t __n; 32778: return __str_codecvt_out(__first, __last, __outstr, __cvt, __state, __n); 32778: } 32778: 32778: 32778: template 32778: inline bool 32778: __str_codecvt_out_all(const _CharT* __first, const _CharT* __last, 32778: basic_string& __outstr, 32778: const codecvt<_CharT, char, _State>& __cvt) 32778: { 32778: _State __state = {}; 32778: size_t __n; 32778: return __str_codecvt_out(__first, __last, __outstr, __cvt, __state, __n) 32778: && (__n == (__last - __first)); 32778: } 32778: # 226 "/usr/include/c++/9/bits/locale_conv.h" 3 32778: namespace __cxx11 { 32778: 32778: 32778: template, 32778: typename _Byte_alloc = allocator> 32778: class wstring_convert 32778: { 32778: public: 32778: typedef basic_string, _Byte_alloc> byte_string; 32778: typedef basic_string<_Elem, char_traits<_Elem>, _Wide_alloc> wide_string; 32778: typedef typename _Codecvt::state_type state_type; 32778: typedef typename wide_string::traits_type::int_type int_type; 32778: 32778: 32778: wstring_convert() : _M_cvt(new _Codecvt()) { } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: explicit 32778: wstring_convert(_Codecvt* __pcvt) : _M_cvt(__pcvt) 32778: { 32778: if (!_M_cvt) 32778: __throw_logic_error("wstring_convert"); 32778: } 32778: # 264 "/usr/include/c++/9/bits/locale_conv.h" 3 32778: wstring_convert(_Codecvt* __pcvt, state_type __state) 32778: : _M_cvt(__pcvt), _M_state(__state), _M_with_cvtstate(true) 32778: { 32778: if (!_M_cvt) 32778: __throw_logic_error("wstring_convert"); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: explicit 32778: wstring_convert(const byte_string& __byte_err, 32778: const wide_string& __wide_err = wide_string()) 32778: : _M_cvt(new _Codecvt), 32778: _M_byte_err_string(__byte_err), _M_wide_err_string(__wide_err), 32778: _M_with_strings(true) 32778: { 32778: if (!_M_cvt) 32778: __throw_logic_error("wstring_convert"); 32778: } 32778: 32778: ~wstring_convert() = default; 32778: 32778: 32778: 32778: wstring_convert(const wstring_convert&) = delete; 32778: wstring_convert& operator=(const wstring_convert&) = delete; 32778: 32778: 32778: wide_string 32778: from_bytes(char __byte) 32778: { 32778: char __bytes[2] = { __byte }; 32778: return from_bytes(__bytes, __bytes+1); 32778: } 32778: 32778: wide_string 32778: from_bytes(const char* __ptr) 32778: { return from_bytes(__ptr, __ptr+char_traits::length(__ptr)); } 32778: 32778: wide_string 32778: from_bytes(const byte_string& __str) 32778: { 32778: auto __ptr = __str.data(); 32778: return from_bytes(__ptr, __ptr + __str.size()); 32778: } 32778: 32778: wide_string 32778: from_bytes(const char* __first, const char* __last) 32778: { 32778: if (!_M_with_cvtstate) 32778: _M_state = state_type(); 32778: wide_string __out{ _M_wide_err_string.get_allocator() }; 32778: if (__str_codecvt_in(__first, __last, __out, *_M_cvt, _M_state, 32778: _M_count)) 32778: return __out; 32778: if (_M_with_strings) 32778: return _M_wide_err_string; 32778: __throw_range_error("wstring_convert::from_bytes"); 32778: } 32778: 32778: 32778: 32778: byte_string 32778: to_bytes(_Elem __wchar) 32778: { 32778: _Elem __wchars[2] = { __wchar }; 32778: return to_bytes(__wchars, __wchars+1); 32778: } 32778: 32778: byte_string 32778: to_bytes(const _Elem* __ptr) 32778: { 32778: return to_bytes(__ptr, __ptr+wide_string::traits_type::length(__ptr)); 32778: } 32778: 32778: byte_string 32778: to_bytes(const wide_string& __wstr) 32778: { 32778: auto __ptr = __wstr.data(); 32778: return to_bytes(__ptr, __ptr + __wstr.size()); 32778: } 32778: 32778: byte_string 32778: to_bytes(const _Elem* __first, const _Elem* __last) 32778: { 32778: if (!_M_with_cvtstate) 32778: _M_state = state_type(); 32778: byte_string __out{ _M_byte_err_string.get_allocator() }; 32778: if (__str_codecvt_out(__first, __last, __out, *_M_cvt, _M_state, 32778: _M_count)) 32778: return __out; 32778: if (_M_with_strings) 32778: return _M_byte_err_string; 32778: __throw_range_error("wstring_convert::to_bytes"); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: size_t converted() const noexcept { return _M_count; } 32778: 32778: 32778: state_type state() const { return _M_state; } 32778: 32778: private: 32778: unique_ptr<_Codecvt> _M_cvt; 32778: byte_string _M_byte_err_string; 32778: wide_string _M_wide_err_string; 32778: state_type _M_state = state_type(); 32778: size_t _M_count = 0; 32778: bool _M_with_cvtstate = false; 32778: bool _M_with_strings = false; 32778: }; 32778: 32778: } 32778: 32778: 32778: template> 32778: class wbuffer_convert : public basic_streambuf<_Elem, _Tr> 32778: { 32778: typedef basic_streambuf<_Elem, _Tr> _Wide_streambuf; 32778: 32778: public: 32778: typedef typename _Codecvt::state_type state_type; 32778: 32778: 32778: wbuffer_convert() : wbuffer_convert(nullptr) { } 32778: # 405 "/usr/include/c++/9/bits/locale_conv.h" 3 32778: explicit 32778: wbuffer_convert(streambuf* __bytebuf, _Codecvt* __pcvt = new _Codecvt, 32778: state_type __state = state_type()) 32778: : _M_buf(__bytebuf), _M_cvt(__pcvt), _M_state(__state) 32778: { 32778: if (!_M_cvt) 32778: __throw_logic_error("wbuffer_convert"); 32778: 32778: _M_always_noconv = _M_cvt->always_noconv(); 32778: 32778: if (_M_buf) 32778: { 32778: this->setp(_M_put_area, _M_put_area + _S_buffer_length); 32778: this->setg(_M_get_area + _S_putback_length, 32778: _M_get_area + _S_putback_length, 32778: _M_get_area + _S_putback_length); 32778: } 32778: } 32778: 32778: ~wbuffer_convert() = default; 32778: 32778: 32778: 32778: wbuffer_convert(const wbuffer_convert&) = delete; 32778: wbuffer_convert& operator=(const wbuffer_convert&) = delete; 32778: 32778: streambuf* rdbuf() const noexcept { return _M_buf; } 32778: 32778: streambuf* 32778: rdbuf(streambuf *__bytebuf) noexcept 32778: { 32778: auto __prev = _M_buf; 32778: _M_buf = __bytebuf; 32778: return __prev; 32778: } 32778: 32778: 32778: state_type state() const noexcept { return _M_state; } 32778: 32778: protected: 32778: int 32778: sync() 32778: { return _M_buf && _M_conv_put() && !_M_buf->pubsync() ? 0 : -1; } 32778: 32778: typename _Wide_streambuf::int_type 32778: overflow(typename _Wide_streambuf::int_type __out) 32778: { 32778: if (!_M_buf || !_M_conv_put()) 32778: return _Tr::eof(); 32778: else if (!_Tr::eq_int_type(__out, _Tr::eof())) 32778: return this->sputc(__out); 32778: return _Tr::not_eof(__out); 32778: } 32778: 32778: typename _Wide_streambuf::int_type 32778: underflow() 32778: { 32778: if (!_M_buf) 32778: return _Tr::eof(); 32778: 32778: if (this->gptr() < this->egptr() || (_M_buf && _M_conv_get())) 32778: return _Tr::to_int_type(*this->gptr()); 32778: else 32778: return _Tr::eof(); 32778: } 32778: 32778: streamsize 32778: xsputn(const typename _Wide_streambuf::char_type* __s, streamsize __n) 32778: { 32778: if (!_M_buf || __n == 0) 32778: return 0; 32778: streamsize __done = 0; 32778: do 32778: { 32778: auto __nn = std::min(this->epptr() - this->pptr(), 32778: __n - __done); 32778: _Tr::copy(this->pptr(), __s + __done, __nn); 32778: this->pbump(__nn); 32778: __done += __nn; 32778: } while (__done < __n && _M_conv_put()); 32778: return __done; 32778: } 32778: 32778: private: 32778: 32778: bool 32778: _M_conv_get() 32778: { 32778: const streamsize __pb1 = this->gptr() - this->eback(); 32778: const streamsize __pb2 = _S_putback_length; 32778: const streamsize __npb = std::min(__pb1, __pb2); 32778: 32778: _Tr::move(_M_get_area + _S_putback_length - __npb, 32778: this->gptr() - __npb, __npb); 32778: 32778: streamsize __nbytes = sizeof(_M_get_buf) - _M_unconv; 32778: __nbytes = std::min(__nbytes, _M_buf->in_avail()); 32778: if (__nbytes < 1) 32778: __nbytes = 1; 32778: __nbytes = _M_buf->sgetn(_M_get_buf + _M_unconv, __nbytes); 32778: if (__nbytes < 1) 32778: return false; 32778: __nbytes += _M_unconv; 32778: 32778: 32778: 32778: _Elem* __outbuf = _M_get_area + _S_putback_length; 32778: _Elem* __outnext = __outbuf; 32778: const char* __bnext = _M_get_buf; 32778: 32778: codecvt_base::result __result; 32778: if (_M_always_noconv) 32778: __result = codecvt_base::noconv; 32778: else 32778: { 32778: _Elem* __outend = _M_get_area + _S_buffer_length; 32778: 32778: __result = _M_cvt->in(_M_state, 32778: __bnext, __bnext + __nbytes, __bnext, 32778: __outbuf, __outend, __outnext); 32778: } 32778: 32778: if (__result == codecvt_base::noconv) 32778: { 32778: 32778: auto __get_buf = reinterpret_cast(_M_get_buf); 32778: _Tr::copy(__outbuf, __get_buf, __nbytes); 32778: _M_unconv = 0; 32778: return true; 32778: } 32778: 32778: if ((_M_unconv = _M_get_buf + __nbytes - __bnext)) 32778: char_traits::move(_M_get_buf, __bnext, _M_unconv); 32778: 32778: this->setg(__outbuf, __outbuf, __outnext); 32778: 32778: return __result != codecvt_base::error; 32778: } 32778: 32778: 32778: bool 32778: _M_put(...) 32778: { return false; } 32778: 32778: bool 32778: _M_put(const char* __p, streamsize __n) 32778: { 32778: if (_M_buf->sputn(__p, __n) < __n) 32778: return false; 32778: return true; 32778: } 32778: 32778: 32778: bool 32778: _M_conv_put() 32778: { 32778: _Elem* const __first = this->pbase(); 32778: const _Elem* const __last = this->pptr(); 32778: const streamsize __pending = __last - __first; 32778: 32778: if (_M_always_noconv) 32778: return _M_put(__first, __pending); 32778: 32778: char __outbuf[2 * _S_buffer_length]; 32778: 32778: const _Elem* __next = __first; 32778: const _Elem* __start; 32778: do 32778: { 32778: __start = __next; 32778: char* __outnext = __outbuf; 32778: char* const __outlast = __outbuf + sizeof(__outbuf); 32778: auto __result = _M_cvt->out(_M_state, __next, __last, __next, 32778: __outnext, __outlast, __outnext); 32778: if (__result == codecvt_base::error) 32778: return false; 32778: else if (__result == codecvt_base::noconv) 32778: return _M_put(__next, __pending); 32778: 32778: if (!_M_put(__outbuf, __outnext - __outbuf)) 32778: return false; 32778: } 32778: while (__next != __last && __next != __start); 32778: 32778: if (__next != __last) 32778: _Tr::move(__first, __next, __last - __next); 32778: 32778: this->pbump(__first - __next); 32778: return __next != __first; 32778: } 32778: 32778: streambuf* _M_buf; 32778: unique_ptr<_Codecvt> _M_cvt; 32778: state_type _M_state; 32778: 32778: static const streamsize _S_buffer_length = 32; 32778: static const streamsize _S_putback_length = 3; 32778: _Elem _M_put_area[_S_buffer_length]; 32778: _Elem _M_get_area[_S_buffer_length]; 32778: streamsize _M_unconv = 0; 32778: char _M_get_buf[_S_buffer_length-_S_putback_length]; 32778: bool _M_always_noconv; 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: } 32778: # 44 "/usr/include/c++/9/locale" 2 3 32778: # 44 "/usr/include/c++/9/iomanip" 2 3 32778: 32778: 32778: 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: struct _Resetiosflags { ios_base::fmtflags _M_mask; }; 32778: # 65 "/usr/include/c++/9/iomanip" 3 32778: inline _Resetiosflags 32778: resetiosflags(ios_base::fmtflags __mask) 32778: { return { __mask }; } 32778: 32778: template 32778: inline basic_istream<_CharT, _Traits>& 32778: operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f) 32778: { 32778: __is.setf(ios_base::fmtflags(0), __f._M_mask); 32778: return __is; 32778: } 32778: 32778: template 32778: inline basic_ostream<_CharT, _Traits>& 32778: operator<<(basic_ostream<_CharT, _Traits>& __os, _Resetiosflags __f) 32778: { 32778: __os.setf(ios_base::fmtflags(0), __f._M_mask); 32778: return __os; 32778: } 32778: 32778: 32778: struct _Setiosflags { ios_base::fmtflags _M_mask; }; 32778: # 95 "/usr/include/c++/9/iomanip" 3 32778: inline _Setiosflags 32778: setiosflags(ios_base::fmtflags __mask) 32778: { return { __mask }; } 32778: 32778: template 32778: inline basic_istream<_CharT, _Traits>& 32778: operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f) 32778: { 32778: __is.setf(__f._M_mask); 32778: return __is; 32778: } 32778: 32778: template 32778: inline basic_ostream<_CharT, _Traits>& 32778: operator<<(basic_ostream<_CharT, _Traits>& __os, _Setiosflags __f) 32778: { 32778: __os.setf(__f._M_mask); 32778: return __os; 32778: } 32778: 32778: 32778: struct _Setbase { int _M_base; }; 32778: # 126 "/usr/include/c++/9/iomanip" 3 32778: inline _Setbase 32778: setbase(int __base) 32778: { return { __base }; } 32778: 32778: template 32778: inline basic_istream<_CharT, _Traits>& 32778: operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f) 32778: { 32778: __is.setf(__f._M_base == 8 ? ios_base::oct : 32778: __f._M_base == 10 ? ios_base::dec : 32778: __f._M_base == 16 ? ios_base::hex : 32778: ios_base::fmtflags(0), ios_base::basefield); 32778: return __is; 32778: } 32778: 32778: template 32778: inline basic_ostream<_CharT, _Traits>& 32778: operator<<(basic_ostream<_CharT, _Traits>& __os, _Setbase __f) 32778: { 32778: __os.setf(__f._M_base == 8 ? ios_base::oct : 32778: __f._M_base == 10 ? ios_base::dec : 32778: __f._M_base == 16 ? ios_base::hex : 32778: ios_base::fmtflags(0), ios_base::basefield); 32778: return __os; 32778: } 32778: 32778: 32778: template 32778: struct _Setfill { _CharT _M_c; }; 32778: # 163 "/usr/include/c++/9/iomanip" 3 32778: template 32778: inline _Setfill<_CharT> 32778: setfill(_CharT __c) 32778: { return { __c }; } 32778: 32778: template 32778: inline basic_istream<_CharT, _Traits>& 32778: operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f) 32778: { 32778: __is.fill(__f._M_c); 32778: return __is; 32778: } 32778: 32778: template 32778: inline basic_ostream<_CharT, _Traits>& 32778: operator<<(basic_ostream<_CharT, _Traits>& __os, _Setfill<_CharT> __f) 32778: { 32778: __os.fill(__f._M_c); 32778: return __os; 32778: } 32778: 32778: 32778: struct _Setprecision { int _M_n; }; 32778: # 194 "/usr/include/c++/9/iomanip" 3 32778: inline _Setprecision 32778: setprecision(int __n) 32778: { return { __n }; } 32778: 32778: template 32778: inline basic_istream<_CharT, _Traits>& 32778: operator>>(basic_istream<_CharT, _Traits>& __is, _Setprecision __f) 32778: { 32778: __is.precision(__f._M_n); 32778: return __is; 32778: } 32778: 32778: template 32778: inline basic_ostream<_CharT, _Traits>& 32778: operator<<(basic_ostream<_CharT, _Traits>& __os, _Setprecision __f) 32778: { 32778: __os.precision(__f._M_n); 32778: return __os; 32778: } 32778: 32778: 32778: struct _Setw { int _M_n; }; 32778: # 224 "/usr/include/c++/9/iomanip" 3 32778: inline _Setw 32778: setw(int __n) 32778: { return { __n }; } 32778: 32778: template 32778: inline basic_istream<_CharT, _Traits>& 32778: operator>>(basic_istream<_CharT, _Traits>& __is, _Setw __f) 32778: { 32778: __is.width(__f._M_n); 32778: return __is; 32778: } 32778: 32778: template 32778: inline basic_ostream<_CharT, _Traits>& 32778: operator<<(basic_ostream<_CharT, _Traits>& __os, _Setw __f) 32778: { 32778: __os.width(__f._M_n); 32778: return __os; 32778: } 32778: 32778: 32778: 32778: template 32778: struct _Get_money { _MoneyT& _M_mon; bool _M_intl; }; 32778: # 257 "/usr/include/c++/9/iomanip" 3 32778: template 32778: inline _Get_money<_MoneyT> 32778: get_money(_MoneyT& __mon, bool __intl = false) 32778: { return { __mon, __intl }; } 32778: 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: operator>>(basic_istream<_CharT, _Traits>& __is, _Get_money<_MoneyT> __f) 32778: { 32778: typename basic_istream<_CharT, _Traits>::sentry __cerb(__is, false); 32778: if (__cerb) 32778: { 32778: ios_base::iostate __err = ios_base::goodbit; 32778: try 32778: { 32778: typedef istreambuf_iterator<_CharT, _Traits> _Iter; 32778: typedef money_get<_CharT, _Iter> _MoneyGet; 32778: 32778: const _MoneyGet& __mg = use_facet<_MoneyGet>(__is.getloc()); 32778: __mg.get(_Iter(__is.rdbuf()), _Iter(), __f._M_intl, 32778: __is, __err, __f._M_mon); 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: __is._M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { __is._M_setstate(ios_base::badbit); } 32778: if (__err) 32778: __is.setstate(__err); 32778: } 32778: return __is; 32778: } 32778: 32778: 32778: template 32778: struct _Put_money { const _MoneyT& _M_mon; bool _M_intl; }; 32778: # 304 "/usr/include/c++/9/iomanip" 3 32778: template 32778: inline _Put_money<_MoneyT> 32778: put_money(const _MoneyT& __mon, bool __intl = false) 32778: { return { __mon, __intl }; } 32778: 32778: template 32778: basic_ostream<_CharT, _Traits>& 32778: operator<<(basic_ostream<_CharT, _Traits>& __os, _Put_money<_MoneyT> __f) 32778: { 32778: typename basic_ostream<_CharT, _Traits>::sentry __cerb(__os); 32778: if (__cerb) 32778: { 32778: ios_base::iostate __err = ios_base::goodbit; 32778: try 32778: { 32778: typedef ostreambuf_iterator<_CharT, _Traits> _Iter; 32778: typedef money_put<_CharT, _Iter> _MoneyPut; 32778: 32778: const _MoneyPut& __mp = use_facet<_MoneyPut>(__os.getloc()); 32778: if (__mp.put(_Iter(__os.rdbuf()), __f._M_intl, __os, 32778: __os.fill(), __f._M_mon).failed()) 32778: __err |= ios_base::badbit; 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: __os._M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { __os._M_setstate(ios_base::badbit); } 32778: if (__err) 32778: __os.setstate(__err); 32778: } 32778: return __os; 32778: } 32778: 32778: template 32778: struct _Put_time 32778: { 32778: const std::tm* _M_tmb; 32778: const _CharT* _M_fmt; 32778: }; 32778: # 356 "/usr/include/c++/9/iomanip" 3 32778: template 32778: inline _Put_time<_CharT> 32778: put_time(const std::tm* __tmb, const _CharT* __fmt) 32778: { return { __tmb, __fmt }; } 32778: 32778: template 32778: basic_ostream<_CharT, _Traits>& 32778: operator<<(basic_ostream<_CharT, _Traits>& __os, _Put_time<_CharT> __f) 32778: { 32778: typename basic_ostream<_CharT, _Traits>::sentry __cerb(__os); 32778: if (__cerb) 32778: { 32778: ios_base::iostate __err = ios_base::goodbit; 32778: try 32778: { 32778: typedef ostreambuf_iterator<_CharT, _Traits> _Iter; 32778: typedef time_put<_CharT, _Iter> _TimePut; 32778: 32778: const _CharT* const __fmt_end = __f._M_fmt + 32778: _Traits::length(__f._M_fmt); 32778: 32778: const _TimePut& __mp = use_facet<_TimePut>(__os.getloc()); 32778: if (__mp.put(_Iter(__os.rdbuf()), __os, __os.fill(), 32778: __f._M_tmb, __f._M_fmt, __fmt_end).failed()) 32778: __err |= ios_base::badbit; 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: __os._M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { __os._M_setstate(ios_base::badbit); } 32778: if (__err) 32778: __os.setstate(__err); 32778: } 32778: return __os; 32778: } 32778: 32778: template 32778: struct _Get_time 32778: { 32778: std::tm* _M_tmb; 32778: const _CharT* _M_fmt; 32778: }; 32778: # 411 "/usr/include/c++/9/iomanip" 3 32778: template 32778: inline _Get_time<_CharT> 32778: get_time(std::tm* __tmb, const _CharT* __fmt) 32778: { return { __tmb, __fmt }; } 32778: 32778: template 32778: basic_istream<_CharT, _Traits>& 32778: operator>>(basic_istream<_CharT, _Traits>& __is, _Get_time<_CharT> __f) 32778: { 32778: typename basic_istream<_CharT, _Traits>::sentry __cerb(__is, false); 32778: if (__cerb) 32778: { 32778: ios_base::iostate __err = ios_base::goodbit; 32778: try 32778: { 32778: typedef istreambuf_iterator<_CharT, _Traits> _Iter; 32778: typedef time_get<_CharT, _Iter> _TimeGet; 32778: 32778: const _CharT* const __fmt_end = __f._M_fmt + 32778: _Traits::length(__f._M_fmt); 32778: 32778: const _TimeGet& __mg = use_facet<_TimeGet>(__is.getloc()); 32778: __mg.get(_Iter(__is.rdbuf()), _Iter(), __is, 32778: __err, __f._M_tmb, __f._M_fmt, __fmt_end); 32778: } 32778: catch(__cxxabiv1::__forced_unwind&) 32778: { 32778: __is._M_setstate(ios_base::badbit); 32778: throw; 32778: } 32778: catch(...) 32778: { __is._M_setstate(ios_base::badbit); } 32778: if (__err) 32778: __is.setstate(__err); 32778: } 32778: return __is; 32778: } 32778: # 508 "/usr/include/c++/9/iomanip" 3 32778: extern template ostream& operator<<(ostream&, _Setfill); 32778: extern template ostream& operator<<(ostream&, _Setiosflags); 32778: extern template ostream& operator<<(ostream&, _Resetiosflags); 32778: extern template ostream& operator<<(ostream&, _Setbase); 32778: extern template ostream& operator<<(ostream&, _Setprecision); 32778: extern template ostream& operator<<(ostream&, _Setw); 32778: extern template istream& operator>>(istream&, _Setfill); 32778: extern template istream& operator>>(istream&, _Setiosflags); 32778: extern template istream& operator>>(istream&, _Resetiosflags); 32778: extern template istream& operator>>(istream&, _Setbase); 32778: extern template istream& operator>>(istream&, _Setprecision); 32778: extern template istream& operator>>(istream&, _Setw); 32778: 32778: 32778: extern template wostream& operator<<(wostream&, _Setfill); 32778: extern template wostream& operator<<(wostream&, _Setiosflags); 32778: extern template wostream& operator<<(wostream&, _Resetiosflags); 32778: extern template wostream& operator<<(wostream&, _Setbase); 32778: extern template wostream& operator<<(wostream&, _Setprecision); 32778: extern template wostream& operator<<(wostream&, _Setw); 32778: extern template wistream& operator>>(wistream&, _Setfill); 32778: extern template wistream& operator>>(wistream&, _Setiosflags); 32778: extern template wistream& operator>>(wistream&, _Resetiosflags); 32778: extern template wistream& operator>>(wistream&, _Setbase); 32778: extern template wistream& operator>>(wistream&, _Setprecision); 32778: extern template wistream& operator>>(wistream&, _Setw); 32778: 32778: 32778: 32778: 32778: } 32778: # 27 "/<>/include/HepMC3/Attribute.h" 2 32778: 32778: 32778: 32778: 32778: 32778: 32778: # 32 "/<>/include/HepMC3/Attribute.h" 32778: using std::string; 32778: 32778: namespace HepMC3 { 32778: 32778: 32778: class GenEvent; 32778: 32778: 32778: class GenRunInfo; 32778: 32778: 32778: 32778: 32778: class Attribute { 32778: 32778: 32778: 32778: public: 32778: 32778: 32778: Attribute():m_is_parsed(true) { m_event=nullptr; } 32778: 32778: 32778: virtual ~Attribute() {} 32778: 32778: protected: 32778: # 67 "/<>/include/HepMC3/Attribute.h" 32778: explicit Attribute(const string &st):m_is_parsed(false),m_string(st) { m_event=nullptr; } 32778: 32778: 32778: friend class GenEvent; 32778: 32778: 32778: 32778: 32778: public: 32778: 32778: 32778: virtual bool from_string(const string & att) = 0; 32778: 32778: 32778: 32778: virtual bool init() { 32778: return true; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: virtual bool init(const GenRunInfo & ) { 32778: return true; 32778: } 32778: 32778: 32778: virtual bool to_string(string &att) const = 0; 32778: 32778: 32778: 32778: 32778: public: 32778: 32778: bool is_parsed() const { return m_is_parsed; } 32778: 32778: 32778: const string& unparsed_string() const { return m_string; } 32778: 32778: 32778: const GenEvent * event() const { 32778: return m_event; 32778: } 32778: 32778: 32778: GenParticlePtr particle() { 32778: return m_particle; 32778: } 32778: 32778: 32778: ConstGenParticlePtr particle() const { 32778: return std::const_pointer_cast(m_particle); 32778: } 32778: 32778: 32778: GenVertexPtr vertex() { 32778: return m_vertex; 32778: } 32778: 32778: 32778: ConstGenVertexPtr vertex() const { 32778: return std::const_pointer_cast(m_vertex); 32778: } 32778: 32778: protected: 32778: 32778: void set_is_parsed(bool flag) { m_is_parsed = flag; } 32778: 32778: 32778: void set_unparsed_string(const string &st) { m_string = st; } 32778: 32778: 32778: 32778: 32778: private: 32778: bool m_is_parsed; 32778: string m_string; 32778: const GenEvent * m_event; 32778: 32778: GenParticlePtr m_particle; 32778: GenVertexPtr m_vertex; 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: class IntAttribute : public Attribute { 32778: public: 32778: 32778: 32778: IntAttribute():Attribute(),m_val(0) {} 32778: 32778: 32778: IntAttribute(int val):Attribute(),m_val(val) {} 32778: 32778: 32778: bool from_string(const string &att) { 32778: m_val = atoi( att.c_str() ); 32778: return true; 32778: } 32778: 32778: 32778: bool to_string(string &att) const { 32778: att = std::to_string(m_val); 32778: return true; 32778: } 32778: 32778: 32778: int value() const { 32778: return m_val; 32778: } 32778: 32778: 32778: void set_value(const int& i) { 32778: m_val = i; 32778: } 32778: 32778: private: 32778: int m_val; 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: class LongAttribute : public Attribute { 32778: public: 32778: 32778: 32778: LongAttribute(): Attribute(), m_val(0) {} 32778: 32778: 32778: LongAttribute(long val): Attribute(), m_val(val) {} 32778: 32778: 32778: bool from_string(const string &att) { 32778: m_val = atol( att.c_str() ); 32778: return true; 32778: } 32778: 32778: 32778: bool to_string(string &att) const { 32778: att = std::to_string(m_val); 32778: return true; 32778: } 32778: 32778: 32778: long value() const { 32778: return m_val; 32778: } 32778: 32778: 32778: void set_value(const long& l) { 32778: m_val = l; 32778: } 32778: 32778: private: 32778: 32778: long m_val; 32778: 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: class DoubleAttribute : public Attribute { 32778: public: 32778: 32778: 32778: DoubleAttribute(): Attribute(), m_val(0.0) {} 32778: 32778: 32778: DoubleAttribute(double val): Attribute(), m_val(val) {} 32778: 32778: 32778: bool from_string(const string &att) { 32778: m_val = atof( att.c_str() ); 32778: return true; 32778: } 32778: 32778: 32778: bool to_string(string &att) const { 32778: std::ostringstream oss; 32778: oss << std::setprecision(std::numeric_limits::digits10) 32778: << m_val; 32778: att = oss.str(); 32778: return true; 32778: } 32778: 32778: 32778: double value() const { 32778: return m_val; 32778: } 32778: 32778: 32778: void set_value(const double& d) { 32778: m_val = d; 32778: } 32778: 32778: private: 32778: 32778: double m_val; 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: class FloatAttribute : public Attribute { 32778: public: 32778: 32778: 32778: FloatAttribute(): Attribute(), m_val(0.0) {} 32778: 32778: 32778: FloatAttribute(float val): Attribute(), m_val(val) {} 32778: 32778: 32778: bool from_string(const string &att) { 32778: m_val = float(atof( att.c_str() )); 32778: return true; 32778: } 32778: 32778: 32778: bool to_string(string &att) const { 32778: std::ostringstream oss; 32778: oss << std::setprecision(std::numeric_limits::digits10) 32778: << m_val; 32778: att = oss.str(); 32778: return true; 32778: } 32778: 32778: 32778: float value() const { 32778: return m_val; 32778: } 32778: 32778: 32778: void set_value(const float& f) { 32778: m_val = f; 32778: } 32778: 32778: private: 32778: 32778: float m_val; 32778: }; 32778: # 336 "/<>/include/HepMC3/Attribute.h" 32778: class StringAttribute : public Attribute { 32778: public: 32778: 32778: 32778: StringAttribute():Attribute() {} 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: StringAttribute(const string &st):Attribute(st) {} 32778: 32778: 32778: bool from_string(const string &att) { 32778: set_unparsed_string(att); 32778: return true; 32778: } 32778: 32778: 32778: bool to_string(string &att) const { 32778: att = unparsed_string(); 32778: return true; 32778: } 32778: 32778: 32778: string value() const { 32778: return unparsed_string(); 32778: } 32778: 32778: 32778: void set_value(const string& s) { 32778: set_unparsed_string(s); 32778: } 32778: 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: class CharAttribute : public Attribute { 32778: public: 32778: 32778: 32778: CharAttribute():Attribute(),m_val(0) {} 32778: 32778: 32778: CharAttribute(char val):Attribute(),m_val(val) {} 32778: 32778: 32778: bool from_string(const string &att) { 32778: if (att.size()) 32778: { 32778: m_val = att.at(0); 32778: return true; 32778: } 32778: return false; 32778: } 32778: 32778: 32778: bool to_string(string &att) const { 32778: att = std::to_string(m_val); 32778: return true; 32778: } 32778: 32778: 32778: char value() const { 32778: return m_val; 32778: } 32778: 32778: 32778: void set_value(const char& i) { 32778: m_val = i; 32778: } 32778: 32778: private: 32778: char m_val; 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: class LongLongAttribute : public Attribute { 32778: public: 32778: 32778: 32778: LongLongAttribute(): Attribute(), m_val(0) {} 32778: 32778: 32778: LongLongAttribute(long long val): Attribute(), m_val(val) {} 32778: 32778: 32778: bool from_string(const string &att) { 32778: m_val = atoll( att.c_str() ); 32778: return true; 32778: } 32778: 32778: 32778: bool to_string(string &att) const { 32778: att = std::to_string(m_val); 32778: return true; 32778: } 32778: 32778: 32778: long long value() const { 32778: return m_val; 32778: } 32778: 32778: 32778: void set_value(const long long& l) { 32778: m_val = l; 32778: } 32778: 32778: private: 32778: 32778: long long m_val; 32778: 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: class LongDoubleAttribute : public Attribute { 32778: public: 32778: 32778: 32778: LongDoubleAttribute(): Attribute(), m_val(0.0) {} 32778: 32778: 32778: LongDoubleAttribute(long double val): Attribute(), m_val(val) {} 32778: 32778: 32778: bool from_string(const string &att) { 32778: m_val = strtold( att.c_str(), 32778: # 479 "/<>/include/HepMC3/Attribute.h" 3 4 32778: __null 32778: # 479 "/<>/include/HepMC3/Attribute.h" 32778: ); 32778: return true; 32778: } 32778: 32778: 32778: bool to_string(string &att) const { 32778: std::ostringstream oss; 32778: oss << std::setprecision(std::numeric_limits::digits10) 32778: << m_val; 32778: att = oss.str(); 32778: return true; 32778: } 32778: 32778: 32778: long double value() const { 32778: return m_val; 32778: } 32778: 32778: 32778: void set_value(const long double& d) { 32778: m_val = d; 32778: } 32778: 32778: private: 32778: 32778: long double m_val; 32778: }; 32778: # 515 "/<>/include/HepMC3/Attribute.h" 32778: class UIntAttribute : public Attribute { 32778: public: 32778: 32778: 32778: UIntAttribute():Attribute(),m_val(0) {} 32778: 32778: 32778: UIntAttribute(unsigned int val):Attribute(),m_val(val) {} 32778: 32778: 32778: bool from_string(const string &att) { 32778: m_val = strtoul(att.c_str(), 32778: # 526 "/<>/include/HepMC3/Attribute.h" 3 4 32778: __null 32778: # 526 "/<>/include/HepMC3/Attribute.h" 32778: , 0); 32778: return true; 32778: } 32778: 32778: 32778: bool to_string(string &att) const { 32778: att = std::to_string(m_val); 32778: return true; 32778: } 32778: 32778: 32778: unsigned int value() const { 32778: return m_val; 32778: } 32778: 32778: 32778: void set_value(const unsigned int& i) { 32778: m_val = i; 32778: } 32778: 32778: private: 32778: unsigned int m_val; 32778: }; 32778: # 558 "/<>/include/HepMC3/Attribute.h" 32778: class ULongAttribute : public Attribute { 32778: public: 32778: 32778: 32778: ULongAttribute():Attribute(),m_val(0) {} 32778: 32778: 32778: ULongAttribute(unsigned long val):Attribute(),m_val(val) {} 32778: 32778: 32778: bool from_string(const string &att) { 32778: m_val = strtoul(att.c_str(), 32778: # 569 "/<>/include/HepMC3/Attribute.h" 3 4 32778: __null 32778: # 569 "/<>/include/HepMC3/Attribute.h" 32778: , 0); 32778: return true; 32778: } 32778: 32778: 32778: bool to_string(string &att) const { 32778: att = std::to_string(m_val); 32778: return true; 32778: } 32778: 32778: 32778: unsigned long value() const { 32778: return m_val; 32778: } 32778: 32778: 32778: void set_value(const unsigned long& i) { 32778: m_val = i; 32778: } 32778: 32778: private: 32778: unsigned long m_val; 32778: }; 32778: # 600 "/<>/include/HepMC3/Attribute.h" 32778: class ULongLongAttribute : public Attribute { 32778: public: 32778: 32778: 32778: ULongLongAttribute():Attribute(),m_val(0) {} 32778: 32778: 32778: ULongLongAttribute(unsigned long long val):Attribute(),m_val(val) {} 32778: 32778: 32778: bool from_string(const string &att) { 32778: m_val = strtoull(att.c_str(), 32778: # 611 "/<>/include/HepMC3/Attribute.h" 3 4 32778: __null 32778: # 611 "/<>/include/HepMC3/Attribute.h" 32778: , 0); 32778: return true; 32778: } 32778: 32778: 32778: bool to_string(string &att) const { 32778: att = std::to_string(m_val); 32778: return true; 32778: } 32778: 32778: 32778: unsigned long long value() const { 32778: return m_val; 32778: } 32778: 32778: 32778: void set_value(const unsigned long long& i) { 32778: m_val = i; 32778: } 32778: 32778: private: 32778: unsigned long long m_val; 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: class BoolAttribute : public Attribute { 32778: public: 32778: 32778: 32778: BoolAttribute():Attribute(),m_val(false) {} 32778: 32778: 32778: BoolAttribute(bool val):Attribute(),m_val(val) {} 32778: 32778: 32778: bool from_string(const string &att) { 32778: if (att.size()!=1) return false; 32778: if(att==std::string("1")) {m_val = true; return true;} 32778: if(att==std::string("0")) {m_val = false; return true;} 32778: return false; 32778: } 32778: 32778: 32778: bool to_string(string &att) const { 32778: att = std::to_string(m_val); 32778: return true; 32778: } 32778: 32778: 32778: bool value() const { 32778: return m_val; 32778: } 32778: 32778: 32778: void set_value(const bool& i) { 32778: m_val = i; 32778: } 32778: 32778: private: 32778: bool m_val; 32778: }; 32778: 32778: 32778: } 32778: # 23 "/<>/include/HepMC3/GenHeavyIon.h" 2 32778: 32778: namespace HepMC3 { 32778: using namespace std; 32778: 32778: class GenHeavyIon : public Attribute { 32778: 32778: public: 32778: 32778: 32778: GenHeavyIon() 32778: : Ncoll_hard(-1), Npart_proj(-1), Npart_targ(-1), Ncoll(-1), 32778: 32778: spectator_neutrons(-1), spectator_protons(-1), 32778: 32778: N_Nwounded_collisions(-1), Nwounded_N_collisions(-1), 32778: Nwounded_Nwounded_collisions(-1), impact_parameter(-1.0), 32778: event_plane_angle(-1.0), 32778: 32778: eccentricity(-1.0), 32778: 32778: sigma_inel_NN(-1.0), centrality(-1.0), user_cent_estimate(-1.0), 32778: Nspec_proj_n(-1), Nspec_targ_n(-1), 32778: Nspec_proj_p(-1), Nspec_targ_p(-1), forceoldformat(false) {} 32778: 32778: 32778: 32778: 32778: public: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: int Ncoll_hard; 32778: 32778: 32778: 32778: 32778: 32778: 32778: int Npart_proj; 32778: 32778: 32778: 32778: 32778: 32778: 32778: int Npart_targ; 32778: # 81 "/<>/include/HepMC3/GenHeavyIon.h" 32778: int Ncoll; 32778: 32778: 32778: 32778: 32778: 32778: int spectator_neutrons; 32778: 32778: 32778: 32778: 32778: int spectator_protons; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: int N_Nwounded_collisions; 32778: 32778: 32778: 32778: 32778: 32778: 32778: int Nwounded_N_collisions; 32778: 32778: 32778: 32778: 32778: 32778: 32778: int Nwounded_Nwounded_collisions; 32778: 32778: 32778: 32778: 32778: 32778: double impact_parameter; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: double event_plane_angle; 32778: 32778: 32778: 32778: 32778: 32778: double eccentricity; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: double sigma_inel_NN; 32778: 32778: 32778: 32778: 32778: 32778: 32778: double centrality; 32778: # 158 "/<>/include/HepMC3/GenHeavyIon.h" 32778: double user_cent_estimate; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: int Nspec_proj_n; 32778: 32778: 32778: 32778: 32778: 32778: 32778: int Nspec_targ_n; 32778: 32778: 32778: 32778: 32778: 32778: 32778: int Nspec_proj_p; 32778: 32778: 32778: 32778: 32778: 32778: 32778: int Nspec_targ_p; 32778: 32778: 32778: 32778: 32778: 32778: 32778: map participant_plane_angles; 32778: 32778: 32778: 32778: 32778: 32778: map eccentricities; 32778: 32778: 32778: 32778: 32778: public: 32778: 32778: 32778: bool from_string(const string &att); 32778: 32778: 32778: bool to_string(string &att) const; 32778: 32778: 32778: 32778: 32778: 32778: bool operator==( const GenHeavyIon& ) const; 32778: 32778: 32778: bool operator!=( const GenHeavyIon& ) const; 32778: 32778: 32778: 32778: 32778: 32778: void set( const int&nh, const int&np, const int&nt, const int&nc, const int&ns, const int&nsp, 32778: const int&nnw=0, const int&nwn=0, const int&nwnw=0, 32778: const double& im=0., const double& pl=0., const double& ec=0., const double& s=0., const double& cent=0., const double& ucent=0. ); 32778: 32778: 32778: 32778: 32778: 32778: bool is_valid() const; 32778: 32778: 32778: 32778: 32778: bool forceoldformat; 32778: 32778: 32778: 32778: }; 32778: 32778: 32778: 32778: typedef GenHeavyIon HeavyIon; 32778: 32778: 32778: 32778: } 32778: # 23 "/<>/include/HepMC3/GenEvent.h" 2 32778: # 1 "/<>/include/HepMC3/GenPdfInfo.h" 1 32778: # 30 "/<>/include/HepMC3/GenPdfInfo.h" 32778: namespace HepMC3 { 32778: 32778: class GenPdfInfo : public Attribute { 32778: 32778: 32778: 32778: 32778: public: 32778: int parton_id[2]; 32778: int pdf_id[2]; 32778: double scale; 32778: double x[2]; 32778: double xf[2]; 32778: 32778: 32778: 32778: 32778: public: 32778: 32778: bool from_string(const string &att); 32778: 32778: 32778: bool to_string(string &att) const; 32778: 32778: 32778: void set( const int& parton_id1, const int& parton_id2, const double& x1, const double& x2, 32778: const double& scale_in, const double& xf1, const double& xf2, 32778: const int& pdf_id1 = 0, const int& pdf_id2 = 0 ); 32778: 32778: bool operator==( const GenPdfInfo& ) const; 32778: bool operator!=( const GenPdfInfo& ) const; 32778: bool is_valid() const; 32778: }; 32778: 32778: } 32778: # 24 "/<>/include/HepMC3/GenEvent.h" 2 32778: # 1 "/<>/include/HepMC3/GenCrossSection.h" 1 32778: # 35 "/<>/include/HepMC3/GenCrossSection.h" 32778: # 1 "/usr/include/c++/9/algorithm" 1 3 32778: # 58 "/usr/include/c++/9/algorithm" 3 32778: 32778: # 59 "/usr/include/c++/9/algorithm" 3 32778: 32778: 32778: 32778: # 1 "/usr/include/c++/9/bits/stl_algo.h" 1 3 32778: # 59 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: # 1 "/usr/include/c++/9/cstdlib" 1 3 32778: # 39 "/usr/include/c++/9/cstdlib" 3 32778: 32778: # 40 "/usr/include/c++/9/cstdlib" 3 32778: # 60 "/usr/include/c++/9/bits/stl_algo.h" 2 3 32778: # 1 "/usr/include/c++/9/bits/algorithmfwd.h" 1 3 32778: # 33 "/usr/include/c++/9/bits/algorithmfwd.h" 3 32778: 32778: # 34 "/usr/include/c++/9/bits/algorithmfwd.h" 3 32778: # 42 "/usr/include/c++/9/bits/algorithmfwd.h" 3 32778: 32778: # 42 "/usr/include/c++/9/bits/algorithmfwd.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 195 "/usr/include/c++/9/bits/algorithmfwd.h" 3 32778: template 32778: bool 32778: all_of(_IIter, _IIter, _Predicate); 32778: 32778: template 32778: bool 32778: any_of(_IIter, _IIter, _Predicate); 32778: 32778: 32778: template 32778: bool 32778: binary_search(_FIter, _FIter, const _Tp&); 32778: 32778: template 32778: bool 32778: binary_search(_FIter, _FIter, const _Tp&, _Compare); 32778: # 224 "/usr/include/c++/9/bits/algorithmfwd.h" 3 32778: template 32778: _OIter 32778: copy(_IIter, _IIter, _OIter); 32778: 32778: template 32778: _BIter2 32778: copy_backward(_BIter1, _BIter1, _BIter2); 32778: 32778: 32778: template 32778: _OIter 32778: copy_if(_IIter, _IIter, _OIter, _Predicate); 32778: 32778: template 32778: _OIter 32778: copy_n(_IIter, _Size, _OIter); 32778: 32778: 32778: 32778: 32778: 32778: template 32778: pair<_FIter, _FIter> 32778: equal_range(_FIter, _FIter, const _Tp&); 32778: 32778: template 32778: pair<_FIter, _FIter> 32778: equal_range(_FIter, _FIter, const _Tp&, _Compare); 32778: 32778: template 32778: void 32778: fill(_FIter, _FIter, const _Tp&); 32778: 32778: template 32778: _OIter 32778: fill_n(_OIter, _Size, const _Tp&); 32778: 32778: 32778: 32778: template 32778: _FIter1 32778: find_end(_FIter1, _FIter1, _FIter2, _FIter2); 32778: 32778: template 32778: _FIter1 32778: find_end(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 32778: 32778: 32778: 32778: 32778: 32778: template 32778: _IIter 32778: find_if_not(_IIter, _IIter, _Predicate); 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: bool 32778: includes(_IIter1, _IIter1, _IIter2, _IIter2); 32778: 32778: template 32778: bool 32778: includes(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); 32778: 32778: template 32778: void 32778: inplace_merge(_BIter, _BIter, _BIter); 32778: 32778: template 32778: void 32778: inplace_merge(_BIter, _BIter, _BIter, _Compare); 32778: 32778: 32778: template 32778: bool 32778: is_heap(_RAIter, _RAIter); 32778: 32778: template 32778: bool 32778: is_heap(_RAIter, _RAIter, _Compare); 32778: 32778: template 32778: _RAIter 32778: is_heap_until(_RAIter, _RAIter); 32778: 32778: template 32778: _RAIter 32778: is_heap_until(_RAIter, _RAIter, _Compare); 32778: 32778: template 32778: bool 32778: is_partitioned(_IIter, _IIter, _Predicate); 32778: 32778: template 32778: bool 32778: is_permutation(_FIter1, _FIter1, _FIter2); 32778: 32778: template 32778: bool 32778: is_permutation(_FIter1, _FIter1, _FIter2, _BinaryPredicate); 32778: 32778: template 32778: bool 32778: is_sorted(_FIter, _FIter); 32778: 32778: template 32778: bool 32778: is_sorted(_FIter, _FIter, _Compare); 32778: 32778: template 32778: _FIter 32778: is_sorted_until(_FIter, _FIter); 32778: 32778: template 32778: _FIter 32778: is_sorted_until(_FIter, _FIter, _Compare); 32778: 32778: 32778: template 32778: void 32778: iter_swap(_FIter1, _FIter2); 32778: 32778: template 32778: _FIter 32778: lower_bound(_FIter, _FIter, const _Tp&); 32778: 32778: template 32778: _FIter 32778: lower_bound(_FIter, _FIter, const _Tp&, _Compare); 32778: 32778: template 32778: void 32778: make_heap(_RAIter, _RAIter); 32778: 32778: template 32778: void 32778: make_heap(_RAIter, _RAIter, _Compare); 32778: 32778: template 32778: 32778: const _Tp& 32778: max(const _Tp&, const _Tp&); 32778: 32778: template 32778: 32778: const _Tp& 32778: max(const _Tp&, const _Tp&, _Compare); 32778: 32778: 32778: 32778: 32778: template 32778: 32778: const _Tp& 32778: min(const _Tp&, const _Tp&); 32778: 32778: template 32778: 32778: const _Tp& 32778: min(const _Tp&, const _Tp&, _Compare); 32778: 32778: 32778: 32778: 32778: template 32778: 32778: pair 32778: minmax(const _Tp&, const _Tp&); 32778: 32778: template 32778: 32778: pair 32778: minmax(const _Tp&, const _Tp&, _Compare); 32778: 32778: template 32778: 32778: pair<_FIter, _FIter> 32778: minmax_element(_FIter, _FIter); 32778: 32778: template 32778: 32778: pair<_FIter, _FIter> 32778: minmax_element(_FIter, _FIter, _Compare); 32778: 32778: template 32778: 32778: _Tp 32778: min(initializer_list<_Tp>); 32778: 32778: template 32778: 32778: _Tp 32778: min(initializer_list<_Tp>, _Compare); 32778: 32778: template 32778: 32778: _Tp 32778: max(initializer_list<_Tp>); 32778: 32778: template 32778: 32778: _Tp 32778: max(initializer_list<_Tp>, _Compare); 32778: 32778: template 32778: 32778: pair<_Tp, _Tp> 32778: minmax(initializer_list<_Tp>); 32778: 32778: template 32778: 32778: pair<_Tp, _Tp> 32778: minmax(initializer_list<_Tp>, _Compare); 32778: 32778: 32778: 32778: 32778: template 32778: bool 32778: next_permutation(_BIter, _BIter); 32778: 32778: template 32778: bool 32778: next_permutation(_BIter, _BIter, _Compare); 32778: 32778: 32778: template 32778: bool 32778: none_of(_IIter, _IIter, _Predicate); 32778: 32778: 32778: 32778: 32778: 32778: template 32778: _RAIter 32778: partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter); 32778: 32778: template 32778: _RAIter 32778: partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter, _Compare); 32778: 32778: 32778: 32778: 32778: template 32778: pair<_OIter1, _OIter2> 32778: partition_copy(_IIter, _IIter, _OIter1, _OIter2, _Predicate); 32778: 32778: template 32778: _FIter 32778: partition_point(_FIter, _FIter, _Predicate); 32778: 32778: 32778: template 32778: void 32778: pop_heap(_RAIter, _RAIter); 32778: 32778: template 32778: void 32778: pop_heap(_RAIter, _RAIter, _Compare); 32778: 32778: template 32778: bool 32778: prev_permutation(_BIter, _BIter); 32778: 32778: template 32778: bool 32778: prev_permutation(_BIter, _BIter, _Compare); 32778: 32778: template 32778: void 32778: push_heap(_RAIter, _RAIter); 32778: 32778: template 32778: void 32778: push_heap(_RAIter, _RAIter, _Compare); 32778: 32778: 32778: 32778: template 32778: _FIter 32778: remove(_FIter, _FIter, const _Tp&); 32778: 32778: template 32778: _FIter 32778: remove_if(_FIter, _FIter, _Predicate); 32778: 32778: template 32778: _OIter 32778: remove_copy(_IIter, _IIter, _OIter, const _Tp&); 32778: 32778: template 32778: _OIter 32778: remove_copy_if(_IIter, _IIter, _OIter, _Predicate); 32778: 32778: 32778: 32778: template 32778: _OIter 32778: replace_copy(_IIter, _IIter, _OIter, const _Tp&, const _Tp&); 32778: 32778: template 32778: _OIter 32778: replace_copy_if(_Iter, _Iter, _OIter, _Predicate, const _Tp&); 32778: 32778: 32778: 32778: template 32778: void 32778: reverse(_BIter, _BIter); 32778: 32778: template 32778: _OIter 32778: reverse_copy(_BIter, _BIter, _OIter); 32778: 32778: inline namespace _V2 32778: { 32778: template 32778: _FIter 32778: rotate(_FIter, _FIter, _FIter); 32778: } 32778: 32778: template 32778: _OIter 32778: rotate_copy(_FIter, _FIter, _FIter, _OIter); 32778: # 565 "/usr/include/c++/9/bits/algorithmfwd.h" 3 32778: template 32778: void 32778: shuffle(_RAIter, _RAIter, _UGenerator&&); 32778: 32778: 32778: template 32778: void 32778: sort_heap(_RAIter, _RAIter); 32778: 32778: template 32778: void 32778: sort_heap(_RAIter, _RAIter, _Compare); 32778: 32778: template 32778: _BIter 32778: stable_partition(_BIter, _BIter, _Predicate); 32778: # 594 "/usr/include/c++/9/bits/algorithmfwd.h" 3 32778: template 32778: _FIter2 32778: swap_ranges(_FIter1, _FIter1, _FIter2); 32778: 32778: 32778: 32778: template 32778: _FIter 32778: unique(_FIter, _FIter); 32778: 32778: template 32778: _FIter 32778: unique(_FIter, _FIter, _BinaryPredicate); 32778: 32778: 32778: 32778: template 32778: _FIter 32778: upper_bound(_FIter, _FIter, const _Tp&); 32778: 32778: template 32778: _FIter 32778: upper_bound(_FIter, _FIter, const _Tp&, _Compare); 32778: 32778: 32778: 32778: template 32778: _FIter 32778: adjacent_find(_FIter, _FIter); 32778: 32778: template 32778: _FIter 32778: adjacent_find(_FIter, _FIter, _BinaryPredicate); 32778: 32778: template 32778: typename iterator_traits<_IIter>::difference_type 32778: count(_IIter, _IIter, const _Tp&); 32778: 32778: template 32778: typename iterator_traits<_IIter>::difference_type 32778: count_if(_IIter, _IIter, _Predicate); 32778: 32778: template 32778: bool 32778: equal(_IIter1, _IIter1, _IIter2); 32778: 32778: template 32778: bool 32778: equal(_IIter1, _IIter1, _IIter2, _BinaryPredicate); 32778: 32778: template 32778: _IIter 32778: find(_IIter, _IIter, const _Tp&); 32778: 32778: template 32778: _FIter1 32778: find_first_of(_FIter1, _FIter1, _FIter2, _FIter2); 32778: 32778: template 32778: _FIter1 32778: find_first_of(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 32778: 32778: template 32778: _IIter 32778: find_if(_IIter, _IIter, _Predicate); 32778: 32778: template 32778: _Funct 32778: for_each(_IIter, _IIter, _Funct); 32778: 32778: template 32778: void 32778: generate(_FIter, _FIter, _Generator); 32778: 32778: template 32778: _OIter 32778: generate_n(_OIter, _Size, _Generator); 32778: 32778: template 32778: bool 32778: lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2); 32778: 32778: template 32778: bool 32778: lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); 32778: 32778: template 32778: 32778: _FIter 32778: max_element(_FIter, _FIter); 32778: 32778: template 32778: 32778: _FIter 32778: max_element(_FIter, _FIter, _Compare); 32778: 32778: template 32778: _OIter 32778: merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 32778: 32778: template 32778: _OIter 32778: merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 32778: 32778: template 32778: 32778: _FIter 32778: min_element(_FIter, _FIter); 32778: 32778: template 32778: 32778: _FIter 32778: min_element(_FIter, _FIter, _Compare); 32778: 32778: template 32778: pair<_IIter1, _IIter2> 32778: mismatch(_IIter1, _IIter1, _IIter2); 32778: 32778: template 32778: pair<_IIter1, _IIter2> 32778: mismatch(_IIter1, _IIter1, _IIter2, _BinaryPredicate); 32778: 32778: template 32778: void 32778: nth_element(_RAIter, _RAIter, _RAIter); 32778: 32778: template 32778: void 32778: nth_element(_RAIter, _RAIter, _RAIter, _Compare); 32778: 32778: template 32778: void 32778: partial_sort(_RAIter, _RAIter, _RAIter); 32778: 32778: template 32778: void 32778: partial_sort(_RAIter, _RAIter, _RAIter, _Compare); 32778: 32778: template 32778: _BIter 32778: partition(_BIter, _BIter, _Predicate); 32778: 32778: template 32778: void 32778: random_shuffle(_RAIter, _RAIter); 32778: 32778: template 32778: void 32778: random_shuffle(_RAIter, _RAIter, 32778: 32778: _Generator&&); 32778: 32778: 32778: 32778: 32778: template 32778: void 32778: replace(_FIter, _FIter, const _Tp&, const _Tp&); 32778: 32778: template 32778: void 32778: replace_if(_FIter, _FIter, _Predicate, const _Tp&); 32778: 32778: template 32778: _FIter1 32778: search(_FIter1, _FIter1, _FIter2, _FIter2); 32778: 32778: template 32778: _FIter1 32778: search(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 32778: 32778: template 32778: _FIter 32778: search_n(_FIter, _FIter, _Size, const _Tp&); 32778: 32778: template 32778: _FIter 32778: search_n(_FIter, _FIter, _Size, const _Tp&, _BinaryPredicate); 32778: 32778: template 32778: _OIter 32778: set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 32778: 32778: template 32778: _OIter 32778: set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 32778: 32778: template 32778: _OIter 32778: set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 32778: 32778: template 32778: _OIter 32778: set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 32778: 32778: template 32778: _OIter 32778: set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 32778: 32778: template 32778: _OIter 32778: set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, 32778: _OIter, _Compare); 32778: 32778: template 32778: _OIter 32778: set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 32778: 32778: template 32778: _OIter 32778: set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 32778: 32778: template 32778: void 32778: sort(_RAIter, _RAIter); 32778: 32778: template 32778: void 32778: sort(_RAIter, _RAIter, _Compare); 32778: 32778: template 32778: void 32778: stable_sort(_RAIter, _RAIter); 32778: 32778: template 32778: void 32778: stable_sort(_RAIter, _RAIter, _Compare); 32778: 32778: template 32778: _OIter 32778: transform(_IIter, _IIter, _OIter, _UnaryOperation); 32778: 32778: template 32778: _OIter 32778: transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation); 32778: 32778: template 32778: _OIter 32778: unique_copy(_IIter, _IIter, _OIter); 32778: 32778: template 32778: _OIter 32778: unique_copy(_IIter, _IIter, _OIter, _BinaryPredicate); 32778: 32778: 32778: 32778: } 32778: # 61 "/usr/include/c++/9/bits/stl_algo.h" 2 3 32778: # 1 "/usr/include/c++/9/bits/stl_heap.h" 1 3 32778: # 62 "/usr/include/c++/9/bits/stl_heap.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: _Distance 32778: __is_heap_until(_RandomAccessIterator __first, _Distance __n, 32778: _Compare& __comp) 32778: { 32778: _Distance __parent = 0; 32778: for (_Distance __child = 1; __child < __n; ++__child) 32778: { 32778: if (__comp(__first + __parent, __first + __child)) 32778: return __child; 32778: if ((__child & 1) == 0) 32778: ++__parent; 32778: } 32778: return __n; 32778: } 32778: 32778: 32778: 32778: template 32778: inline bool 32778: __is_heap(_RandomAccessIterator __first, _Distance __n) 32778: { 32778: __gnu_cxx::__ops::_Iter_less_iter __comp; 32778: return std::__is_heap_until(__first, __n, __comp) == __n; 32778: } 32778: 32778: template 32778: inline bool 32778: __is_heap(_RandomAccessIterator __first, _Compare __comp, _Distance __n) 32778: { 32778: typedef __decltype(__comp) _Cmp; 32778: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 32778: return std::__is_heap_until(__first, __n, __cmp) == __n; 32778: } 32778: 32778: template 32778: inline bool 32778: __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 32778: { return std::__is_heap(__first, std::distance(__first, __last)); } 32778: 32778: template 32778: inline bool 32778: __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 32778: _Compare __comp) 32778: { 32778: return std::__is_heap(__first, std::move(__comp), 32778: std::distance(__first, __last)); 32778: } 32778: 32778: 32778: 32778: 32778: template 32778: void 32778: __push_heap(_RandomAccessIterator __first, 32778: _Distance __holeIndex, _Distance __topIndex, _Tp __value, 32778: _Compare& __comp) 32778: { 32778: _Distance __parent = (__holeIndex - 1) / 2; 32778: while (__holeIndex > __topIndex && __comp(__first + __parent, __value)) 32778: { 32778: *(__first + __holeIndex) = std::move(*(__first + __parent)); 32778: __holeIndex = __parent; 32778: __parent = (__holeIndex - 1) / 2; 32778: } 32778: *(__first + __holeIndex) = std::move(__value); 32778: } 32778: # 152 "/usr/include/c++/9/bits/stl_heap.h" 3 32778: template 32778: inline void 32778: push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 32778: { 32778: typedef typename iterator_traits<_RandomAccessIterator>::value_type 32778: _ValueType; 32778: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 32778: _DistanceType; 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: ; 32778: 32778: __gnu_cxx::__ops::_Iter_less_val __comp; 32778: _ValueType __value = std::move(*(__last - 1)); 32778: std::__push_heap(__first, _DistanceType((__last - __first) - 1), 32778: _DistanceType(0), std::move(__value), __comp); 32778: } 32778: # 187 "/usr/include/c++/9/bits/stl_heap.h" 3 32778: template 32778: inline void 32778: push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 32778: _Compare __comp) 32778: { 32778: typedef typename iterator_traits<_RandomAccessIterator>::value_type 32778: _ValueType; 32778: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 32778: _DistanceType; 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: ; 32778: 32778: __decltype(__gnu_cxx::__ops::__iter_comp_val(std::move(__comp))) 32778: __cmp(std::move(__comp)); 32778: _ValueType __value = std::move(*(__last - 1)); 32778: std::__push_heap(__first, _DistanceType((__last - __first) - 1), 32778: _DistanceType(0), std::move(__value), __cmp); 32778: } 32778: 32778: template 32778: void 32778: __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, 32778: _Distance __len, _Tp __value, _Compare __comp) 32778: { 32778: const _Distance __topIndex = __holeIndex; 32778: _Distance __secondChild = __holeIndex; 32778: while (__secondChild < (__len - 1) / 2) 32778: { 32778: __secondChild = 2 * (__secondChild + 1); 32778: if (__comp(__first + __secondChild, 32778: __first + (__secondChild - 1))) 32778: __secondChild--; 32778: *(__first + __holeIndex) = std::move(*(__first + __secondChild)); 32778: __holeIndex = __secondChild; 32778: } 32778: if ((__len & 1) == 0 && __secondChild == (__len - 2) / 2) 32778: { 32778: __secondChild = 2 * (__secondChild + 1); 32778: *(__first + __holeIndex) = std::move(*(__first + (__secondChild - 1))) 32778: ; 32778: __holeIndex = __secondChild - 1; 32778: } 32778: __decltype(__gnu_cxx::__ops::__iter_comp_val(std::move(__comp))) 32778: __cmp(std::move(__comp)); 32778: std::__push_heap(__first, __holeIndex, __topIndex, 32778: std::move(__value), __cmp); 32778: } 32778: 32778: template 32778: inline void 32778: __pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 32778: _RandomAccessIterator __result, _Compare& __comp) 32778: { 32778: typedef typename iterator_traits<_RandomAccessIterator>::value_type 32778: _ValueType; 32778: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 32778: _DistanceType; 32778: 32778: _ValueType __value = std::move(*__result); 32778: *__result = std::move(*__first); 32778: std::__adjust_heap(__first, _DistanceType(0), 32778: _DistanceType(__last - __first), 32778: std::move(__value), __comp); 32778: } 32778: # 269 "/usr/include/c++/9/bits/stl_heap.h" 3 32778: template 32778: inline void 32778: pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: ; 32778: ; 32778: 32778: if (__last - __first > 1) 32778: { 32778: --__last; 32778: __gnu_cxx::__ops::_Iter_less_iter __comp; 32778: std::__pop_heap(__first, __last, __last, __comp); 32778: } 32778: } 32778: # 302 "/usr/include/c++/9/bits/stl_heap.h" 3 32778: template 32778: inline void 32778: pop_heap(_RandomAccessIterator __first, 32778: _RandomAccessIterator __last, _Compare __comp) 32778: { 32778: 32778: 32778: 32778: ; 32778: ; 32778: ; 32778: ; 32778: 32778: if (__last - __first > 1) 32778: { 32778: typedef __decltype(__comp) _Cmp; 32778: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 32778: --__last; 32778: std::__pop_heap(__first, __last, __last, __cmp); 32778: } 32778: } 32778: 32778: template 32778: void 32778: __make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 32778: _Compare& __comp) 32778: { 32778: typedef typename iterator_traits<_RandomAccessIterator>::value_type 32778: _ValueType; 32778: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 32778: _DistanceType; 32778: 32778: if (__last - __first < 2) 32778: return; 32778: 32778: const _DistanceType __len = __last - __first; 32778: _DistanceType __parent = (__len - 2) / 2; 32778: while (true) 32778: { 32778: _ValueType __value = std::move(*(__first + __parent)); 32778: std::__adjust_heap(__first, __parent, __len, std::move(__value), 32778: __comp); 32778: if (__parent == 0) 32778: return; 32778: __parent--; 32778: } 32778: } 32778: # 358 "/usr/include/c++/9/bits/stl_heap.h" 3 32778: template 32778: inline void 32778: make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: __gnu_cxx::__ops::_Iter_less_iter __comp; 32778: std::__make_heap(__first, __last, __comp); 32778: } 32778: # 384 "/usr/include/c++/9/bits/stl_heap.h" 3 32778: template 32778: inline void 32778: make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 32778: _Compare __comp) 32778: { 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: typedef __decltype(__comp) _Cmp; 32778: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 32778: std::__make_heap(__first, __last, __cmp); 32778: } 32778: 32778: template 32778: void 32778: __sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 32778: _Compare& __comp) 32778: { 32778: while (__last - __first > 1) 32778: { 32778: --__last; 32778: std::__pop_heap(__first, __last, __last, __comp); 32778: } 32778: } 32778: # 420 "/usr/include/c++/9/bits/stl_heap.h" 3 32778: template 32778: inline void 32778: sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: ; 32778: 32778: __gnu_cxx::__ops::_Iter_less_iter __comp; 32778: std::__sort_heap(__first, __last, __comp); 32778: } 32778: # 447 "/usr/include/c++/9/bits/stl_heap.h" 3 32778: template 32778: inline void 32778: sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 32778: _Compare __comp) 32778: { 32778: 32778: 32778: 32778: ; 32778: ; 32778: ; 32778: 32778: typedef __decltype(__comp) _Cmp; 32778: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 32778: std::__sort_heap(__first, __last, __cmp); 32778: } 32778: # 475 "/usr/include/c++/9/bits/stl_heap.h" 3 32778: template 32778: inline _RandomAccessIterator 32778: is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: __gnu_cxx::__ops::_Iter_less_iter __comp; 32778: return __first + 32778: std::__is_heap_until(__first, std::distance(__first, __last), __comp); 32778: } 32778: # 503 "/usr/include/c++/9/bits/stl_heap.h" 3 32778: template 32778: inline _RandomAccessIterator 32778: is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last, 32778: _Compare __comp) 32778: { 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: typedef __decltype(__comp) _Cmp; 32778: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 32778: return __first 32778: + std::__is_heap_until(__first, std::distance(__first, __last), __cmp); 32778: } 32778: # 527 "/usr/include/c++/9/bits/stl_heap.h" 3 32778: template 32778: inline bool 32778: is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 32778: { return std::is_heap_until(__first, __last) == __last; } 32778: # 540 "/usr/include/c++/9/bits/stl_heap.h" 3 32778: template 32778: inline bool 32778: is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 32778: _Compare __comp) 32778: { 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: const auto __dist = std::distance(__first, __last); 32778: typedef __decltype(__comp) _Cmp; 32778: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 32778: return std::__is_heap_until(__first, __dist, __cmp) == __dist; 32778: } 32778: 32778: 32778: 32778: } 32778: # 62 "/usr/include/c++/9/bits/stl_algo.h" 2 3 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/c++/9/bits/uniform_int_dist.h" 1 3 32778: # 37 "/usr/include/c++/9/bits/uniform_int_dist.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: namespace __detail 32778: { 32778: 32778: template 32778: inline bool 32778: _Power_of_2(_Tp __x) 32778: { 32778: return ((__x - 1) & __x) == 0; 32778: } 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: class uniform_int_distribution 32778: { 32778: static_assert(std::is_integral<_IntType>::value, 32778: "template argument must be an integral type"); 32778: 32778: public: 32778: 32778: typedef _IntType result_type; 32778: 32778: struct param_type 32778: { 32778: typedef uniform_int_distribution<_IntType> distribution_type; 32778: 32778: param_type() : param_type(0) { } 32778: 32778: explicit 32778: param_type(_IntType __a, 32778: _IntType __b = numeric_limits<_IntType>::max()) 32778: : _M_a(__a), _M_b(__b) 32778: { 32778: ; 32778: } 32778: 32778: result_type 32778: a() const 32778: { return _M_a; } 32778: 32778: result_type 32778: b() const 32778: { return _M_b; } 32778: 32778: friend bool 32778: operator==(const param_type& __p1, const param_type& __p2) 32778: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 32778: 32778: friend bool 32778: operator!=(const param_type& __p1, const param_type& __p2) 32778: { return !(__p1 == __p2); } 32778: 32778: private: 32778: _IntType _M_a; 32778: _IntType _M_b; 32778: }; 32778: 32778: public: 32778: 32778: 32778: 32778: uniform_int_distribution() : uniform_int_distribution(0) { } 32778: 32778: 32778: 32778: 32778: explicit 32778: uniform_int_distribution(_IntType __a, 32778: _IntType __b = numeric_limits<_IntType>::max()) 32778: : _M_param(__a, __b) 32778: { } 32778: 32778: explicit 32778: uniform_int_distribution(const param_type& __p) 32778: : _M_param(__p) 32778: { } 32778: 32778: 32778: 32778: 32778: 32778: 32778: void 32778: reset() { } 32778: 32778: result_type 32778: a() const 32778: { return _M_param.a(); } 32778: 32778: result_type 32778: b() const 32778: { return _M_param.b(); } 32778: 32778: 32778: 32778: 32778: param_type 32778: param() const 32778: { return _M_param; } 32778: 32778: 32778: 32778: 32778: 32778: void 32778: param(const param_type& __param) 32778: { _M_param = __param; } 32778: 32778: 32778: 32778: 32778: result_type 32778: min() const 32778: { return this->a(); } 32778: 32778: 32778: 32778: 32778: result_type 32778: max() const 32778: { return this->b(); } 32778: 32778: 32778: 32778: 32778: template 32778: result_type 32778: operator()(_UniformRandomNumberGenerator& __urng) 32778: { return this->operator()(__urng, _M_param); } 32778: 32778: template 32778: result_type 32778: operator()(_UniformRandomNumberGenerator& __urng, 32778: const param_type& __p); 32778: 32778: template 32778: void 32778: __generate(_ForwardIterator __f, _ForwardIterator __t, 32778: _UniformRandomNumberGenerator& __urng) 32778: { this->__generate(__f, __t, __urng, _M_param); } 32778: 32778: template 32778: void 32778: __generate(_ForwardIterator __f, _ForwardIterator __t, 32778: _UniformRandomNumberGenerator& __urng, 32778: const param_type& __p) 32778: { this->__generate_impl(__f, __t, __urng, __p); } 32778: 32778: template 32778: void 32778: __generate(result_type* __f, result_type* __t, 32778: _UniformRandomNumberGenerator& __urng, 32778: const param_type& __p) 32778: { this->__generate_impl(__f, __t, __urng, __p); } 32778: 32778: 32778: 32778: 32778: 32778: friend bool 32778: operator==(const uniform_int_distribution& __d1, 32778: const uniform_int_distribution& __d2) 32778: { return __d1._M_param == __d2._M_param; } 32778: 32778: private: 32778: template 32778: void 32778: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 32778: _UniformRandomNumberGenerator& __urng, 32778: const param_type& __p); 32778: 32778: param_type _M_param; 32778: }; 32778: 32778: template 32778: template 32778: typename uniform_int_distribution<_IntType>::result_type 32778: uniform_int_distribution<_IntType>:: 32778: operator()(_UniformRandomNumberGenerator& __urng, 32778: const param_type& __param) 32778: { 32778: typedef typename _UniformRandomNumberGenerator::result_type 32778: _Gresult_type; 32778: typedef typename std::make_unsigned::type __utype; 32778: typedef typename std::common_type<_Gresult_type, __utype>::type 32778: __uctype; 32778: 32778: const __uctype __urngmin = __urng.min(); 32778: const __uctype __urngmax = __urng.max(); 32778: const __uctype __urngrange = __urngmax - __urngmin; 32778: const __uctype __urange 32778: = __uctype(__param.b()) - __uctype(__param.a()); 32778: 32778: __uctype __ret; 32778: 32778: if (__urngrange > __urange) 32778: { 32778: 32778: const __uctype __uerange = __urange + 1; 32778: const __uctype __scaling = __urngrange / __uerange; 32778: const __uctype __past = __uerange * __scaling; 32778: do 32778: __ret = __uctype(__urng()) - __urngmin; 32778: while (__ret >= __past); 32778: __ret /= __scaling; 32778: } 32778: else if (__urngrange < __urange) 32778: { 32778: # 271 "/usr/include/c++/9/bits/uniform_int_dist.h" 3 32778: __uctype __tmp; 32778: do 32778: { 32778: const __uctype __uerngrange = __urngrange + 1; 32778: __tmp = (__uerngrange * operator() 32778: (__urng, param_type(0, __urange / __uerngrange))); 32778: __ret = __tmp + (__uctype(__urng()) - __urngmin); 32778: } 32778: while (__ret > __urange || __ret < __tmp); 32778: } 32778: else 32778: __ret = __uctype(__urng()) - __urngmin; 32778: 32778: return __ret + __param.a(); 32778: } 32778: 32778: 32778: template 32778: template 32778: void 32778: uniform_int_distribution<_IntType>:: 32778: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 32778: _UniformRandomNumberGenerator& __urng, 32778: const param_type& __param) 32778: { 32778: 32778: typedef typename _UniformRandomNumberGenerator::result_type 32778: _Gresult_type; 32778: typedef typename std::make_unsigned::type __utype; 32778: typedef typename std::common_type<_Gresult_type, __utype>::type 32778: __uctype; 32778: 32778: const __uctype __urngmin = __urng.min(); 32778: const __uctype __urngmax = __urng.max(); 32778: const __uctype __urngrange = __urngmax - __urngmin; 32778: const __uctype __urange 32778: = __uctype(__param.b()) - __uctype(__param.a()); 32778: 32778: __uctype __ret; 32778: 32778: if (__urngrange > __urange) 32778: { 32778: if (__detail::_Power_of_2(__urngrange + 1) 32778: && __detail::_Power_of_2(__urange + 1)) 32778: { 32778: while (__f != __t) 32778: { 32778: __ret = __uctype(__urng()) - __urngmin; 32778: *__f++ = (__ret & __urange) + __param.a(); 32778: } 32778: } 32778: else 32778: { 32778: 32778: const __uctype __uerange = __urange + 1; 32778: const __uctype __scaling = __urngrange / __uerange; 32778: const __uctype __past = __uerange * __scaling; 32778: while (__f != __t) 32778: { 32778: do 32778: __ret = __uctype(__urng()) - __urngmin; 32778: while (__ret >= __past); 32778: *__f++ = __ret / __scaling + __param.a(); 32778: } 32778: } 32778: } 32778: else if (__urngrange < __urange) 32778: { 32778: # 355 "/usr/include/c++/9/bits/uniform_int_dist.h" 3 32778: __uctype __tmp; 32778: while (__f != __t) 32778: { 32778: do 32778: { 32778: const __uctype __uerngrange = __urngrange + 1; 32778: __tmp = (__uerngrange * operator() 32778: (__urng, param_type(0, __urange / __uerngrange))); 32778: __ret = __tmp + (__uctype(__urng()) - __urngmin); 32778: } 32778: while (__ret > __urange || __ret < __tmp); 32778: *__f++ = __ret; 32778: } 32778: } 32778: else 32778: while (__f != __t) 32778: *__f++ = __uctype(__urng()) - __urngmin + __param.a(); 32778: } 32778: 32778: 32778: 32778: 32778: } 32778: # 67 "/usr/include/c++/9/bits/stl_algo.h" 2 3 32778: 32778: 32778: 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: template 32778: void 32778: __move_median_to_first(_Iterator __result,_Iterator __a, _Iterator __b, 32778: _Iterator __c, _Compare __comp) 32778: { 32778: if (__comp(__a, __b)) 32778: { 32778: if (__comp(__b, __c)) 32778: std::iter_swap(__result, __b); 32778: else if (__comp(__a, __c)) 32778: std::iter_swap(__result, __c); 32778: else 32778: std::iter_swap(__result, __a); 32778: } 32778: else if (__comp(__a, __c)) 32778: std::iter_swap(__result, __a); 32778: else if (__comp(__b, __c)) 32778: std::iter_swap(__result, __c); 32778: else 32778: std::iter_swap(__result, __b); 32778: } 32778: 32778: 32778: template 32778: inline _InputIterator 32778: __find_if(_InputIterator __first, _InputIterator __last, 32778: _Predicate __pred, input_iterator_tag) 32778: { 32778: while (__first != __last && !__pred(__first)) 32778: ++__first; 32778: return __first; 32778: } 32778: 32778: 32778: template 32778: _RandomAccessIterator 32778: __find_if(_RandomAccessIterator __first, _RandomAccessIterator __last, 32778: _Predicate __pred, random_access_iterator_tag) 32778: { 32778: typename iterator_traits<_RandomAccessIterator>::difference_type 32778: __trip_count = (__last - __first) >> 2; 32778: 32778: for (; __trip_count > 0; --__trip_count) 32778: { 32778: if (__pred(__first)) 32778: return __first; 32778: ++__first; 32778: 32778: if (__pred(__first)) 32778: return __first; 32778: ++__first; 32778: 32778: if (__pred(__first)) 32778: return __first; 32778: ++__first; 32778: 32778: if (__pred(__first)) 32778: return __first; 32778: ++__first; 32778: } 32778: 32778: switch (__last - __first) 32778: { 32778: case 3: 32778: if (__pred(__first)) 32778: return __first; 32778: ++__first; 32778: case 2: 32778: if (__pred(__first)) 32778: return __first; 32778: ++__first; 32778: case 1: 32778: if (__pred(__first)) 32778: return __first; 32778: ++__first; 32778: case 0: 32778: default: 32778: return __last; 32778: } 32778: } 32778: 32778: template 32778: inline _Iterator 32778: __find_if(_Iterator __first, _Iterator __last, _Predicate __pred) 32778: { 32778: return __find_if(__first, __last, __pred, 32778: std::__iterator_category(__first)); 32778: } 32778: 32778: 32778: template 32778: inline _InputIterator 32778: __find_if_not(_InputIterator __first, _InputIterator __last, 32778: _Predicate __pred) 32778: { 32778: return std::__find_if(__first, __last, 32778: __gnu_cxx::__ops::__negate(__pred), 32778: std::__iterator_category(__first)); 32778: } 32778: 32778: 32778: 32778: 32778: template 32778: _InputIterator 32778: __find_if_not_n(_InputIterator __first, _Distance& __len, _Predicate __pred) 32778: { 32778: for (; __len; --__len, (void) ++__first) 32778: if (!__pred(__first)) 32778: break; 32778: return __first; 32778: } 32778: # 202 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: _ForwardIterator1 32778: __search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 32778: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 32778: _BinaryPredicate __predicate) 32778: { 32778: 32778: if (__first1 == __last1 || __first2 == __last2) 32778: return __first1; 32778: 32778: 32778: _ForwardIterator2 __p1(__first2); 32778: if (++__p1 == __last2) 32778: return std::__find_if(__first1, __last1, 32778: __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); 32778: 32778: 32778: _ForwardIterator2 __p; 32778: _ForwardIterator1 __current = __first1; 32778: 32778: for (;;) 32778: { 32778: __first1 = 32778: std::__find_if(__first1, __last1, 32778: __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); 32778: 32778: if (__first1 == __last1) 32778: return __last1; 32778: 32778: __p = __p1; 32778: __current = __first1; 32778: if (++__current == __last1) 32778: return __last1; 32778: 32778: while (__predicate(__current, __p)) 32778: { 32778: if (++__p == __last2) 32778: return __first1; 32778: if (++__current == __last1) 32778: return __last1; 32778: } 32778: ++__first1; 32778: } 32778: return __first1; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: _ForwardIterator 32778: __search_n_aux(_ForwardIterator __first, _ForwardIterator __last, 32778: _Integer __count, _UnaryPredicate __unary_pred, 32778: std::forward_iterator_tag) 32778: { 32778: __first = std::__find_if(__first, __last, __unary_pred); 32778: while (__first != __last) 32778: { 32778: typename iterator_traits<_ForwardIterator>::difference_type 32778: __n = __count; 32778: _ForwardIterator __i = __first; 32778: ++__i; 32778: while (__i != __last && __n != 1 && __unary_pred(__i)) 32778: { 32778: ++__i; 32778: --__n; 32778: } 32778: if (__n == 1) 32778: return __first; 32778: if (__i == __last) 32778: return __last; 32778: __first = std::__find_if(++__i, __last, __unary_pred); 32778: } 32778: return __last; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: template 32778: _RandomAccessIter 32778: __search_n_aux(_RandomAccessIter __first, _RandomAccessIter __last, 32778: _Integer __count, _UnaryPredicate __unary_pred, 32778: std::random_access_iterator_tag) 32778: { 32778: typedef typename std::iterator_traits<_RandomAccessIter>::difference_type 32778: _DistanceType; 32778: 32778: _DistanceType __tailSize = __last - __first; 32778: _DistanceType __remainder = __count; 32778: 32778: while (__remainder <= __tailSize) 32778: { 32778: __first += __remainder; 32778: __tailSize -= __remainder; 32778: 32778: 32778: _RandomAccessIter __backTrack = __first; 32778: while (__unary_pred(--__backTrack)) 32778: { 32778: if (--__remainder == 0) 32778: return (__first - __count); 32778: } 32778: __remainder = __count + 1 - (__first - __backTrack); 32778: } 32778: return __last; 32778: } 32778: 32778: template 32778: _ForwardIterator 32778: __search_n(_ForwardIterator __first, _ForwardIterator __last, 32778: _Integer __count, 32778: _UnaryPredicate __unary_pred) 32778: { 32778: if (__count <= 0) 32778: return __first; 32778: 32778: if (__count == 1) 32778: return std::__find_if(__first, __last, __unary_pred); 32778: 32778: return std::__search_n_aux(__first, __last, __count, __unary_pred, 32778: std::__iterator_category(__first)); 32778: } 32778: 32778: 32778: template 32778: _ForwardIterator1 32778: __find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 32778: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 32778: forward_iterator_tag, forward_iterator_tag, 32778: _BinaryPredicate __comp) 32778: { 32778: if (__first2 == __last2) 32778: return __last1; 32778: 32778: _ForwardIterator1 __result = __last1; 32778: while (1) 32778: { 32778: _ForwardIterator1 __new_result 32778: = std::__search(__first1, __last1, __first2, __last2, __comp); 32778: if (__new_result == __last1) 32778: return __result; 32778: else 32778: { 32778: __result = __new_result; 32778: __first1 = __new_result; 32778: ++__first1; 32778: } 32778: } 32778: } 32778: 32778: 32778: template 32778: _BidirectionalIterator1 32778: __find_end(_BidirectionalIterator1 __first1, 32778: _BidirectionalIterator1 __last1, 32778: _BidirectionalIterator2 __first2, 32778: _BidirectionalIterator2 __last2, 32778: bidirectional_iterator_tag, bidirectional_iterator_tag, 32778: _BinaryPredicate __comp) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: typedef reverse_iterator<_BidirectionalIterator1> _RevIterator1; 32778: typedef reverse_iterator<_BidirectionalIterator2> _RevIterator2; 32778: 32778: _RevIterator1 __rlast1(__first1); 32778: _RevIterator2 __rlast2(__first2); 32778: _RevIterator1 __rresult = std::__search(_RevIterator1(__last1), __rlast1, 32778: _RevIterator2(__last2), __rlast2, 32778: __comp); 32778: 32778: if (__rresult == __rlast1) 32778: return __last1; 32778: else 32778: { 32778: _BidirectionalIterator1 __result = __rresult.base(); 32778: std::advance(__result, -std::distance(__first2, __last2)); 32778: return __result; 32778: } 32778: } 32778: # 423 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _ForwardIterator1 32778: find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 32778: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: return std::__find_end(__first1, __last1, __first2, __last2, 32778: std::__iterator_category(__first1), 32778: std::__iterator_category(__first2), 32778: __gnu_cxx::__ops::__iter_equal_to_iter()); 32778: } 32778: # 471 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _ForwardIterator1 32778: find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 32778: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 32778: _BinaryPredicate __comp) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: return std::__find_end(__first1, __last1, __first2, __last2, 32778: std::__iterator_category(__first1), 32778: std::__iterator_category(__first2), 32778: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 32778: } 32778: # 506 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline bool 32778: all_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 32778: { return __last == std::find_if_not(__first, __last, __pred); } 32778: # 523 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline bool 32778: none_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 32778: { return __last == std::find_if(__first, __last, __pred); } 32778: # 541 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline bool 32778: any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 32778: { return !std::none_of(__first, __last, __pred); } 32778: # 556 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _InputIterator 32778: find_if_not(_InputIterator __first, _InputIterator __last, 32778: _Predicate __pred) 32778: { 32778: 32778: 32778: 32778: 32778: ; 32778: return std::__find_if_not(__first, __last, 32778: __gnu_cxx::__ops::__pred_iter(__pred)); 32778: } 32778: # 580 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline bool 32778: is_partitioned(_InputIterator __first, _InputIterator __last, 32778: _Predicate __pred) 32778: { 32778: __first = std::find_if_not(__first, __last, __pred); 32778: if (__first == __last) 32778: return true; 32778: ++__first; 32778: return std::none_of(__first, __last, __pred); 32778: } 32778: # 601 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: _ForwardIterator 32778: partition_point(_ForwardIterator __first, _ForwardIterator __last, 32778: _Predicate __pred) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: typedef typename iterator_traits<_ForwardIterator>::difference_type 32778: _DistanceType; 32778: 32778: _DistanceType __len = std::distance(__first, __last); 32778: _DistanceType __half; 32778: _ForwardIterator __middle; 32778: 32778: while (__len > 0) 32778: { 32778: __half = __len >> 1; 32778: __middle = __first; 32778: std::advance(__middle, __half); 32778: if (__pred(*__middle)) 32778: { 32778: __first = __middle; 32778: ++__first; 32778: __len = __len - __half - 1; 32778: } 32778: else 32778: __len = __half; 32778: } 32778: return __first; 32778: } 32778: 32778: 32778: template 32778: _OutputIterator 32778: __remove_copy_if(_InputIterator __first, _InputIterator __last, 32778: _OutputIterator __result, _Predicate __pred) 32778: { 32778: for (; __first != __last; ++__first) 32778: if (!__pred(__first)) 32778: { 32778: *__result = *__first; 32778: ++__result; 32778: } 32778: return __result; 32778: } 32778: # 668 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _OutputIterator 32778: remove_copy(_InputIterator __first, _InputIterator __last, 32778: _OutputIterator __result, const _Tp& __value) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__remove_copy_if(__first, __last, __result, 32778: __gnu_cxx::__ops::__iter_equals_val(__value)); 32778: } 32778: # 700 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _OutputIterator 32778: remove_copy_if(_InputIterator __first, _InputIterator __last, 32778: _OutputIterator __result, _Predicate __pred) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__remove_copy_if(__first, __last, __result, 32778: __gnu_cxx::__ops::__pred_iter(__pred)); 32778: } 32778: # 734 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: _OutputIterator 32778: copy_if(_InputIterator __first, _InputIterator __last, 32778: _OutputIterator __result, _Predicate __pred) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: for (; __first != __last; ++__first) 32778: if (__pred(*__first)) 32778: { 32778: *__result = *__first; 32778: ++__result; 32778: } 32778: return __result; 32778: } 32778: 32778: template 32778: _OutputIterator 32778: __copy_n(_InputIterator __first, _Size __n, 32778: _OutputIterator __result, input_iterator_tag) 32778: { 32778: if (__n > 0) 32778: { 32778: while (true) 32778: { 32778: *__result = *__first; 32778: ++__result; 32778: if (--__n > 0) 32778: ++__first; 32778: else 32778: break; 32778: } 32778: } 32778: return __result; 32778: } 32778: 32778: template 32778: inline _OutputIterator 32778: __copy_n(_RandomAccessIterator __first, _Size __n, 32778: _OutputIterator __result, random_access_iterator_tag) 32778: { return std::copy(__first, __first + __n, __result); } 32778: # 797 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _OutputIterator 32778: copy_n(_InputIterator __first, _Size __n, _OutputIterator __result) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: return std::__copy_n(__first, __n, __result, 32778: std::__iterator_category(__first)); 32778: } 32778: # 825 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: pair<_OutputIterator1, _OutputIterator2> 32778: partition_copy(_InputIterator __first, _InputIterator __last, 32778: _OutputIterator1 __out_true, _OutputIterator2 __out_false, 32778: _Predicate __pred) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: for (; __first != __last; ++__first) 32778: if (__pred(*__first)) 32778: { 32778: *__out_true = *__first; 32778: ++__out_true; 32778: } 32778: else 32778: { 32778: *__out_false = *__first; 32778: ++__out_false; 32778: } 32778: 32778: return pair<_OutputIterator1, _OutputIterator2>(__out_true, __out_false); 32778: } 32778: 32778: 32778: template 32778: _ForwardIterator 32778: __remove_if(_ForwardIterator __first, _ForwardIterator __last, 32778: _Predicate __pred) 32778: { 32778: __first = std::__find_if(__first, __last, __pred); 32778: if (__first == __last) 32778: return __first; 32778: _ForwardIterator __result = __first; 32778: ++__first; 32778: for (; __first != __last; ++__first) 32778: if (!__pred(__first)) 32778: { 32778: *__result = std::move(*__first); 32778: ++__result; 32778: } 32778: return __result; 32778: } 32778: # 894 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _ForwardIterator 32778: remove(_ForwardIterator __first, _ForwardIterator __last, 32778: const _Tp& __value) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__remove_if(__first, __last, 32778: __gnu_cxx::__ops::__iter_equals_val(__value)); 32778: } 32778: # 927 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _ForwardIterator 32778: remove_if(_ForwardIterator __first, _ForwardIterator __last, 32778: _Predicate __pred) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__remove_if(__first, __last, 32778: __gnu_cxx::__ops::__pred_iter(__pred)); 32778: } 32778: 32778: template 32778: _ForwardIterator 32778: __adjacent_find(_ForwardIterator __first, _ForwardIterator __last, 32778: _BinaryPredicate __binary_pred) 32778: { 32778: if (__first == __last) 32778: return __last; 32778: _ForwardIterator __next = __first; 32778: while (++__next != __last) 32778: { 32778: if (__binary_pred(__first, __next)) 32778: return __first; 32778: __first = __next; 32778: } 32778: return __last; 32778: } 32778: 32778: template 32778: _ForwardIterator 32778: __unique(_ForwardIterator __first, _ForwardIterator __last, 32778: _BinaryPredicate __binary_pred) 32778: { 32778: 32778: __first = std::__adjacent_find(__first, __last, __binary_pred); 32778: if (__first == __last) 32778: return __last; 32778: 32778: 32778: _ForwardIterator __dest = __first; 32778: ++__first; 32778: while (++__first != __last) 32778: if (!__binary_pred(__dest, __first)) 32778: *++__dest = std::move(*__first); 32778: return ++__dest; 32778: } 32778: # 993 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _ForwardIterator 32778: unique(_ForwardIterator __first, _ForwardIterator __last) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__unique(__first, __last, 32778: __gnu_cxx::__ops::__iter_equal_to_iter()); 32778: } 32778: # 1023 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _ForwardIterator 32778: unique(_ForwardIterator __first, _ForwardIterator __last, 32778: _BinaryPredicate __binary_pred) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__unique(__first, __last, 32778: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: _OutputIterator 32778: __unique_copy(_ForwardIterator __first, _ForwardIterator __last, 32778: _OutputIterator __result, _BinaryPredicate __binary_pred, 32778: forward_iterator_tag, output_iterator_tag) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: _ForwardIterator __next = __first; 32778: *__result = *__first; 32778: while (++__next != __last) 32778: if (!__binary_pred(__first, __next)) 32778: { 32778: __first = __next; 32778: *++__result = *__first; 32778: } 32778: return ++__result; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: _OutputIterator 32778: __unique_copy(_InputIterator __first, _InputIterator __last, 32778: _OutputIterator __result, _BinaryPredicate __binary_pred, 32778: input_iterator_tag, output_iterator_tag) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: typename iterator_traits<_InputIterator>::value_type __value = *__first; 32778: __decltype(__gnu_cxx::__ops::__iter_comp_val(__binary_pred)) 32778: __rebound_pred 32778: = __gnu_cxx::__ops::__iter_comp_val(__binary_pred); 32778: *__result = __value; 32778: while (++__first != __last) 32778: if (!__rebound_pred(__first, __value)) 32778: { 32778: __value = *__first; 32778: *++__result = __value; 32778: } 32778: return ++__result; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: _ForwardIterator 32778: __unique_copy(_InputIterator __first, _InputIterator __last, 32778: _ForwardIterator __result, _BinaryPredicate __binary_pred, 32778: input_iterator_tag, forward_iterator_tag) 32778: { 32778: 32778: 32778: 32778: 32778: *__result = *__first; 32778: while (++__first != __last) 32778: if (!__binary_pred(__result, __first)) 32778: *++__result = *__first; 32778: return ++__result; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: void 32778: __reverse(_BidirectionalIterator __first, _BidirectionalIterator __last, 32778: bidirectional_iterator_tag) 32778: { 32778: while (true) 32778: if (__first == __last || __first == --__last) 32778: return; 32778: else 32778: { 32778: std::iter_swap(__first, __last); 32778: ++__first; 32778: } 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: void 32778: __reverse(_RandomAccessIterator __first, _RandomAccessIterator __last, 32778: random_access_iterator_tag) 32778: { 32778: if (__first == __last) 32778: return; 32778: --__last; 32778: while (__first < __last) 32778: { 32778: std::iter_swap(__first, __last); 32778: ++__first; 32778: --__last; 32778: } 32778: } 32778: # 1178 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline void 32778: reverse(_BidirectionalIterator __first, _BidirectionalIterator __last) 32778: { 32778: 32778: 32778: 32778: ; 32778: std::__reverse(__first, __last, std::__iterator_category(__first)); 32778: } 32778: # 1205 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: _OutputIterator 32778: reverse_copy(_BidirectionalIterator __first, _BidirectionalIterator __last, 32778: _OutputIterator __result) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: while (__first != __last) 32778: { 32778: --__last; 32778: *__result = *__last; 32778: ++__result; 32778: } 32778: return __result; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: template 32778: _EuclideanRingElement 32778: __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n) 32778: { 32778: while (__n != 0) 32778: { 32778: _EuclideanRingElement __t = __m % __n; 32778: __m = __n; 32778: __n = __t; 32778: } 32778: return __m; 32778: } 32778: 32778: inline namespace _V2 32778: { 32778: 32778: 32778: template 32778: _ForwardIterator 32778: __rotate(_ForwardIterator __first, 32778: _ForwardIterator __middle, 32778: _ForwardIterator __last, 32778: forward_iterator_tag) 32778: { 32778: if (__first == __middle) 32778: return __last; 32778: else if (__last == __middle) 32778: return __first; 32778: 32778: _ForwardIterator __first2 = __middle; 32778: do 32778: { 32778: std::iter_swap(__first, __first2); 32778: ++__first; 32778: ++__first2; 32778: if (__first == __middle) 32778: __middle = __first2; 32778: } 32778: while (__first2 != __last); 32778: 32778: _ForwardIterator __ret = __first; 32778: 32778: __first2 = __middle; 32778: 32778: while (__first2 != __last) 32778: { 32778: std::iter_swap(__first, __first2); 32778: ++__first; 32778: ++__first2; 32778: if (__first == __middle) 32778: __middle = __first2; 32778: else if (__first2 == __last) 32778: __first2 = __middle; 32778: } 32778: return __ret; 32778: } 32778: 32778: 32778: template 32778: _BidirectionalIterator 32778: __rotate(_BidirectionalIterator __first, 32778: _BidirectionalIterator __middle, 32778: _BidirectionalIterator __last, 32778: bidirectional_iterator_tag) 32778: { 32778: 32778: 32778: 32778: 32778: if (__first == __middle) 32778: return __last; 32778: else if (__last == __middle) 32778: return __first; 32778: 32778: std::__reverse(__first, __middle, bidirectional_iterator_tag()); 32778: std::__reverse(__middle, __last, bidirectional_iterator_tag()); 32778: 32778: while (__first != __middle && __middle != __last) 32778: { 32778: std::iter_swap(__first, --__last); 32778: ++__first; 32778: } 32778: 32778: if (__first == __middle) 32778: { 32778: std::__reverse(__middle, __last, bidirectional_iterator_tag()); 32778: return __last; 32778: } 32778: else 32778: { 32778: std::__reverse(__first, __middle, bidirectional_iterator_tag()); 32778: return __first; 32778: } 32778: } 32778: 32778: 32778: template 32778: _RandomAccessIterator 32778: __rotate(_RandomAccessIterator __first, 32778: _RandomAccessIterator __middle, 32778: _RandomAccessIterator __last, 32778: random_access_iterator_tag) 32778: { 32778: 32778: 32778: 32778: 32778: if (__first == __middle) 32778: return __last; 32778: else if (__last == __middle) 32778: return __first; 32778: 32778: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 32778: _Distance; 32778: typedef typename iterator_traits<_RandomAccessIterator>::value_type 32778: _ValueType; 32778: 32778: _Distance __n = __last - __first; 32778: _Distance __k = __middle - __first; 32778: 32778: if (__k == __n - __k) 32778: { 32778: std::swap_ranges(__first, __middle, __middle); 32778: return __middle; 32778: } 32778: 32778: _RandomAccessIterator __p = __first; 32778: _RandomAccessIterator __ret = __first + (__last - __middle); 32778: 32778: for (;;) 32778: { 32778: if (__k < __n - __k) 32778: { 32778: if (__is_pod(_ValueType) && __k == 1) 32778: { 32778: _ValueType __t = std::move(*__p); 32778: std::move(__p + 1, __p + __n, __p); 32778: *(__p + __n - 1) = std::move(__t); 32778: return __ret; 32778: } 32778: _RandomAccessIterator __q = __p + __k; 32778: for (_Distance __i = 0; __i < __n - __k; ++ __i) 32778: { 32778: std::iter_swap(__p, __q); 32778: ++__p; 32778: ++__q; 32778: } 32778: __n %= __k; 32778: if (__n == 0) 32778: return __ret; 32778: std::swap(__n, __k); 32778: __k = __n - __k; 32778: } 32778: else 32778: { 32778: __k = __n - __k; 32778: if (__is_pod(_ValueType) && __k == 1) 32778: { 32778: _ValueType __t = std::move(*(__p + __n - 1)); 32778: std::move_backward(__p, __p + __n - 1, __p + __n); 32778: *__p = std::move(__t); 32778: return __ret; 32778: } 32778: _RandomAccessIterator __q = __p + __n; 32778: __p = __q - __k; 32778: for (_Distance __i = 0; __i < __n - __k; ++ __i) 32778: { 32778: --__p; 32778: --__q; 32778: std::iter_swap(__p, __q); 32778: } 32778: __n %= __k; 32778: if (__n == 0) 32778: return __ret; 32778: std::swap(__n, __k); 32778: } 32778: } 32778: } 32778: # 1432 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _ForwardIterator 32778: rotate(_ForwardIterator __first, _ForwardIterator __middle, 32778: _ForwardIterator __last) 32778: { 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: return std::__rotate(__first, __middle, __last, 32778: std::__iterator_category(__first)); 32778: } 32778: 32778: } 32778: # 1469 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _OutputIterator 32778: rotate_copy(_ForwardIterator __first, _ForwardIterator __middle, 32778: _ForwardIterator __last, _OutputIterator __result) 32778: { 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: return std::copy(__first, __middle, 32778: std::copy(__middle, __last, __result)); 32778: } 32778: 32778: 32778: template 32778: _ForwardIterator 32778: __partition(_ForwardIterator __first, _ForwardIterator __last, 32778: _Predicate __pred, forward_iterator_tag) 32778: { 32778: if (__first == __last) 32778: return __first; 32778: 32778: while (__pred(*__first)) 32778: if (++__first == __last) 32778: return __first; 32778: 32778: _ForwardIterator __next = __first; 32778: 32778: while (++__next != __last) 32778: if (__pred(*__next)) 32778: { 32778: std::iter_swap(__first, __next); 32778: ++__first; 32778: } 32778: 32778: return __first; 32778: } 32778: 32778: 32778: template 32778: _BidirectionalIterator 32778: __partition(_BidirectionalIterator __first, _BidirectionalIterator __last, 32778: _Predicate __pred, bidirectional_iterator_tag) 32778: { 32778: while (true) 32778: { 32778: while (true) 32778: if (__first == __last) 32778: return __first; 32778: else if (__pred(*__first)) 32778: ++__first; 32778: else 32778: break; 32778: --__last; 32778: while (true) 32778: if (__first == __last) 32778: return __first; 32778: else if (!bool(__pred(*__last))) 32778: --__last; 32778: else 32778: break; 32778: std::iter_swap(__first, __last); 32778: ++__first; 32778: } 32778: } 32778: # 1546 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: _ForwardIterator 32778: __stable_partition_adaptive(_ForwardIterator __first, 32778: _ForwardIterator __last, 32778: _Predicate __pred, _Distance __len, 32778: _Pointer __buffer, 32778: _Distance __buffer_size) 32778: { 32778: if (__len == 1) 32778: return __first; 32778: 32778: if (__len <= __buffer_size) 32778: { 32778: _ForwardIterator __result1 = __first; 32778: _Pointer __result2 = __buffer; 32778: 32778: 32778: 32778: 32778: *__result2 = std::move(*__first); 32778: ++__result2; 32778: ++__first; 32778: for (; __first != __last; ++__first) 32778: if (__pred(__first)) 32778: { 32778: *__result1 = std::move(*__first); 32778: ++__result1; 32778: } 32778: else 32778: { 32778: *__result2 = std::move(*__first); 32778: ++__result2; 32778: } 32778: 32778: std::move(__buffer, __result2, __result1); 32778: return __result1; 32778: } 32778: 32778: _ForwardIterator __middle = __first; 32778: std::advance(__middle, __len / 2); 32778: _ForwardIterator __left_split = 32778: std::__stable_partition_adaptive(__first, __middle, __pred, 32778: __len / 2, __buffer, 32778: __buffer_size); 32778: 32778: 32778: 32778: _Distance __right_len = __len - __len / 2; 32778: _ForwardIterator __right_split = 32778: std::__find_if_not_n(__middle, __right_len, __pred); 32778: 32778: if (__right_len) 32778: __right_split = 32778: std::__stable_partition_adaptive(__right_split, __last, __pred, 32778: __right_len, 32778: __buffer, __buffer_size); 32778: 32778: return std::rotate(__left_split, __middle, __right_split); 32778: } 32778: 32778: template 32778: _ForwardIterator 32778: __stable_partition(_ForwardIterator __first, _ForwardIterator __last, 32778: _Predicate __pred) 32778: { 32778: __first = std::__find_if_not(__first, __last, __pred); 32778: 32778: if (__first == __last) 32778: return __first; 32778: 32778: typedef typename iterator_traits<_ForwardIterator>::value_type 32778: _ValueType; 32778: typedef typename iterator_traits<_ForwardIterator>::difference_type 32778: _DistanceType; 32778: 32778: _Temporary_buffer<_ForwardIterator, _ValueType> 32778: __buf(__first, std::distance(__first, __last)); 32778: return 32778: std::__stable_partition_adaptive(__first, __last, __pred, 32778: _DistanceType(__buf.requested_size()), 32778: __buf.begin(), 32778: _DistanceType(__buf.size())); 32778: } 32778: # 1648 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _ForwardIterator 32778: stable_partition(_ForwardIterator __first, _ForwardIterator __last, 32778: _Predicate __pred) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__stable_partition(__first, __last, 32778: __gnu_cxx::__ops::__pred_iter(__pred)); 32778: } 32778: 32778: 32778: template 32778: void 32778: __heap_select(_RandomAccessIterator __first, 32778: _RandomAccessIterator __middle, 32778: _RandomAccessIterator __last, _Compare __comp) 32778: { 32778: std::__make_heap(__first, __middle, __comp); 32778: for (_RandomAccessIterator __i = __middle; __i < __last; ++__i) 32778: if (__comp(__i, __first)) 32778: std::__pop_heap(__first, __middle, __i, __comp); 32778: } 32778: 32778: 32778: 32778: template 32778: _RandomAccessIterator 32778: __partial_sort_copy(_InputIterator __first, _InputIterator __last, 32778: _RandomAccessIterator __result_first, 32778: _RandomAccessIterator __result_last, 32778: _Compare __comp) 32778: { 32778: typedef typename iterator_traits<_InputIterator>::value_type 32778: _InputValueType; 32778: typedef iterator_traits<_RandomAccessIterator> _RItTraits; 32778: typedef typename _RItTraits::difference_type _DistanceType; 32778: 32778: if (__result_first == __result_last) 32778: return __result_last; 32778: _RandomAccessIterator __result_real_last = __result_first; 32778: while (__first != __last && __result_real_last != __result_last) 32778: { 32778: *__result_real_last = *__first; 32778: ++__result_real_last; 32778: ++__first; 32778: } 32778: 32778: std::__make_heap(__result_first, __result_real_last, __comp); 32778: while (__first != __last) 32778: { 32778: if (__comp(__first, __result_first)) 32778: std::__adjust_heap(__result_first, _DistanceType(0), 32778: _DistanceType(__result_real_last 32778: - __result_first), 32778: _InputValueType(*__first), __comp); 32778: ++__first; 32778: } 32778: std::__sort_heap(__result_first, __result_real_last, __comp); 32778: return __result_real_last; 32778: } 32778: # 1734 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _RandomAccessIterator 32778: partial_sort_copy(_InputIterator __first, _InputIterator __last, 32778: _RandomAccessIterator __result_first, 32778: _RandomAccessIterator __result_last) 32778: { 32778: # 1748 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: ; 32778: 32778: return std::__partial_sort_copy(__first, __last, 32778: __result_first, __result_last, 32778: __gnu_cxx::__ops::__iter_less_iter()); 32778: } 32778: # 1783 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _RandomAccessIterator 32778: partial_sort_copy(_InputIterator __first, _InputIterator __last, 32778: _RandomAccessIterator __result_first, 32778: _RandomAccessIterator __result_last, 32778: _Compare __comp) 32778: { 32778: # 1799 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: ; 32778: 32778: return std::__partial_sort_copy(__first, __last, 32778: __result_first, __result_last, 32778: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 32778: } 32778: 32778: 32778: template 32778: void 32778: __unguarded_linear_insert(_RandomAccessIterator __last, 32778: _Compare __comp) 32778: { 32778: typename iterator_traits<_RandomAccessIterator>::value_type 32778: __val = std::move(*__last); 32778: _RandomAccessIterator __next = __last; 32778: --__next; 32778: while (__comp(__val, __next)) 32778: { 32778: *__last = std::move(*__next); 32778: __last = __next; 32778: --__next; 32778: } 32778: *__last = std::move(__val); 32778: } 32778: 32778: 32778: template 32778: void 32778: __insertion_sort(_RandomAccessIterator __first, 32778: _RandomAccessIterator __last, _Compare __comp) 32778: { 32778: if (__first == __last) return; 32778: 32778: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 32778: { 32778: if (__comp(__i, __first)) 32778: { 32778: typename iterator_traits<_RandomAccessIterator>::value_type 32778: __val = std::move(*__i); 32778: std::move_backward(__first, __i, __i + 1); 32778: *__first = std::move(__val); 32778: } 32778: else 32778: std::__unguarded_linear_insert(__i, 32778: __gnu_cxx::__ops::__val_comp_iter(__comp)); 32778: } 32778: } 32778: 32778: 32778: template 32778: inline void 32778: __unguarded_insertion_sort(_RandomAccessIterator __first, 32778: _RandomAccessIterator __last, _Compare __comp) 32778: { 32778: for (_RandomAccessIterator __i = __first; __i != __last; ++__i) 32778: std::__unguarded_linear_insert(__i, 32778: __gnu_cxx::__ops::__val_comp_iter(__comp)); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: enum { _S_threshold = 16 }; 32778: 32778: 32778: template 32778: void 32778: __final_insertion_sort(_RandomAccessIterator __first, 32778: _RandomAccessIterator __last, _Compare __comp) 32778: { 32778: if (__last - __first > int(_S_threshold)) 32778: { 32778: std::__insertion_sort(__first, __first + int(_S_threshold), __comp); 32778: std::__unguarded_insertion_sort(__first + int(_S_threshold), __last, 32778: __comp); 32778: } 32778: else 32778: std::__insertion_sort(__first, __last, __comp); 32778: } 32778: 32778: 32778: template 32778: _RandomAccessIterator 32778: __unguarded_partition(_RandomAccessIterator __first, 32778: _RandomAccessIterator __last, 32778: _RandomAccessIterator __pivot, _Compare __comp) 32778: { 32778: while (true) 32778: { 32778: while (__comp(__first, __pivot)) 32778: ++__first; 32778: --__last; 32778: while (__comp(__pivot, __last)) 32778: --__last; 32778: if (!(__first < __last)) 32778: return __first; 32778: std::iter_swap(__first, __last); 32778: ++__first; 32778: } 32778: } 32778: 32778: 32778: template 32778: inline _RandomAccessIterator 32778: __unguarded_partition_pivot(_RandomAccessIterator __first, 32778: _RandomAccessIterator __last, _Compare __comp) 32778: { 32778: _RandomAccessIterator __mid = __first + (__last - __first) / 2; 32778: std::__move_median_to_first(__first, __first + 1, __mid, __last - 1, 32778: __comp); 32778: return std::__unguarded_partition(__first + 1, __last, __first, __comp); 32778: } 32778: 32778: template 32778: inline void 32778: __partial_sort(_RandomAccessIterator __first, 32778: _RandomAccessIterator __middle, 32778: _RandomAccessIterator __last, 32778: _Compare __comp) 32778: { 32778: std::__heap_select(__first, __middle, __last, __comp); 32778: std::__sort_heap(__first, __middle, __comp); 32778: } 32778: 32778: 32778: template 32778: void 32778: __introsort_loop(_RandomAccessIterator __first, 32778: _RandomAccessIterator __last, 32778: _Size __depth_limit, _Compare __comp) 32778: { 32778: while (__last - __first > int(_S_threshold)) 32778: { 32778: if (__depth_limit == 0) 32778: { 32778: std::__partial_sort(__first, __last, __last, __comp); 32778: return; 32778: } 32778: --__depth_limit; 32778: _RandomAccessIterator __cut = 32778: std::__unguarded_partition_pivot(__first, __last, __comp); 32778: std::__introsort_loop(__cut, __last, __depth_limit, __comp); 32778: __last = __cut; 32778: } 32778: } 32778: 32778: 32778: 32778: template 32778: inline void 32778: __sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 32778: _Compare __comp) 32778: { 32778: if (__first != __last) 32778: { 32778: std::__introsort_loop(__first, __last, 32778: std::__lg(__last - __first) * 2, 32778: __comp); 32778: std::__final_insertion_sort(__first, __last, __comp); 32778: } 32778: } 32778: 32778: template 32778: void 32778: __introselect(_RandomAccessIterator __first, _RandomAccessIterator __nth, 32778: _RandomAccessIterator __last, _Size __depth_limit, 32778: _Compare __comp) 32778: { 32778: while (__last - __first > 3) 32778: { 32778: if (__depth_limit == 0) 32778: { 32778: std::__heap_select(__first, __nth + 1, __last, __comp); 32778: 32778: std::iter_swap(__first, __nth); 32778: return; 32778: } 32778: --__depth_limit; 32778: _RandomAccessIterator __cut = 32778: std::__unguarded_partition_pivot(__first, __last, __comp); 32778: if (__cut <= __nth) 32778: __first = __cut; 32778: else 32778: __last = __cut; 32778: } 32778: std::__insertion_sort(__first, __last, __comp); 32778: } 32778: # 2020 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _ForwardIterator 32778: lower_bound(_ForwardIterator __first, _ForwardIterator __last, 32778: const _Tp& __val, _Compare __comp) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__lower_bound(__first, __last, __val, 32778: __gnu_cxx::__ops::__iter_comp_val(__comp)); 32778: } 32778: 32778: template 32778: _ForwardIterator 32778: __upper_bound(_ForwardIterator __first, _ForwardIterator __last, 32778: const _Tp& __val, _Compare __comp) 32778: { 32778: typedef typename iterator_traits<_ForwardIterator>::difference_type 32778: _DistanceType; 32778: 32778: _DistanceType __len = std::distance(__first, __last); 32778: 32778: while (__len > 0) 32778: { 32778: _DistanceType __half = __len >> 1; 32778: _ForwardIterator __middle = __first; 32778: std::advance(__middle, __half); 32778: if (__comp(__val, __middle)) 32778: __len = __half; 32778: else 32778: { 32778: __first = __middle; 32778: ++__first; 32778: __len = __len - __half - 1; 32778: } 32778: } 32778: return __first; 32778: } 32778: # 2074 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _ForwardIterator 32778: upper_bound(_ForwardIterator __first, _ForwardIterator __last, 32778: const _Tp& __val) 32778: { 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__upper_bound(__first, __last, __val, 32778: __gnu_cxx::__ops::__val_less_iter()); 32778: } 32778: # 2104 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _ForwardIterator 32778: upper_bound(_ForwardIterator __first, _ForwardIterator __last, 32778: const _Tp& __val, _Compare __comp) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__upper_bound(__first, __last, __val, 32778: __gnu_cxx::__ops::__val_comp_iter(__comp)); 32778: } 32778: 32778: template 32778: pair<_ForwardIterator, _ForwardIterator> 32778: __equal_range(_ForwardIterator __first, _ForwardIterator __last, 32778: const _Tp& __val, 32778: _CompareItTp __comp_it_val, _CompareTpIt __comp_val_it) 32778: { 32778: typedef typename iterator_traits<_ForwardIterator>::difference_type 32778: _DistanceType; 32778: 32778: _DistanceType __len = std::distance(__first, __last); 32778: 32778: while (__len > 0) 32778: { 32778: _DistanceType __half = __len >> 1; 32778: _ForwardIterator __middle = __first; 32778: std::advance(__middle, __half); 32778: if (__comp_it_val(__middle, __val)) 32778: { 32778: __first = __middle; 32778: ++__first; 32778: __len = __len - __half - 1; 32778: } 32778: else if (__comp_val_it(__val, __middle)) 32778: __len = __half; 32778: else 32778: { 32778: _ForwardIterator __left 32778: = std::__lower_bound(__first, __middle, __val, __comp_it_val); 32778: std::advance(__first, __len); 32778: _ForwardIterator __right 32778: = std::__upper_bound(++__middle, __first, __val, __comp_val_it); 32778: return pair<_ForwardIterator, _ForwardIterator>(__left, __right); 32778: } 32778: } 32778: return pair<_ForwardIterator, _ForwardIterator>(__first, __first); 32778: } 32778: # 2175 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline pair<_ForwardIterator, _ForwardIterator> 32778: equal_range(_ForwardIterator __first, _ForwardIterator __last, 32778: const _Tp& __val) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: return std::__equal_range(__first, __last, __val, 32778: __gnu_cxx::__ops::__iter_less_val(), 32778: __gnu_cxx::__ops::__val_less_iter()); 32778: } 32778: # 2211 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline pair<_ForwardIterator, _ForwardIterator> 32778: equal_range(_ForwardIterator __first, _ForwardIterator __last, 32778: const _Tp& __val, _Compare __comp) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: ; 32778: 32778: return std::__equal_range(__first, __last, __val, 32778: __gnu_cxx::__ops::__iter_comp_val(__comp), 32778: __gnu_cxx::__ops::__val_comp_iter(__comp)); 32778: } 32778: # 2244 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: bool 32778: binary_search(_ForwardIterator __first, _ForwardIterator __last, 32778: const _Tp& __val) 32778: { 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: _ForwardIterator __i 32778: = std::__lower_bound(__first, __last, __val, 32778: __gnu_cxx::__ops::__iter_less_val()); 32778: return __i != __last && !(__val < *__i); 32778: } 32778: # 2277 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: bool 32778: binary_search(_ForwardIterator __first, _ForwardIterator __last, 32778: const _Tp& __val, _Compare __comp) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: ; 32778: 32778: _ForwardIterator __i 32778: = std::__lower_bound(__first, __last, __val, 32778: __gnu_cxx::__ops::__iter_comp_val(__comp)); 32778: return __i != __last && !bool(__comp(__val, *__i)); 32778: } 32778: 32778: 32778: 32778: 32778: template 32778: void 32778: __move_merge_adaptive(_InputIterator1 __first1, _InputIterator1 __last1, 32778: _InputIterator2 __first2, _InputIterator2 __last2, 32778: _OutputIterator __result, _Compare __comp) 32778: { 32778: while (__first1 != __last1 && __first2 != __last2) 32778: { 32778: if (__comp(__first2, __first1)) 32778: { 32778: *__result = std::move(*__first2); 32778: ++__first2; 32778: } 32778: else 32778: { 32778: *__result = std::move(*__first1); 32778: ++__first1; 32778: } 32778: ++__result; 32778: } 32778: if (__first1 != __last1) 32778: std::move(__first1, __last1, __result); 32778: } 32778: 32778: 32778: template 32778: void 32778: __move_merge_adaptive_backward(_BidirectionalIterator1 __first1, 32778: _BidirectionalIterator1 __last1, 32778: _BidirectionalIterator2 __first2, 32778: _BidirectionalIterator2 __last2, 32778: _BidirectionalIterator3 __result, 32778: _Compare __comp) 32778: { 32778: if (__first1 == __last1) 32778: { 32778: std::move_backward(__first2, __last2, __result); 32778: return; 32778: } 32778: else if (__first2 == __last2) 32778: return; 32778: 32778: --__last1; 32778: --__last2; 32778: while (true) 32778: { 32778: if (__comp(__last2, __last1)) 32778: { 32778: *--__result = std::move(*__last1); 32778: if (__first1 == __last1) 32778: { 32778: std::move_backward(__first2, ++__last2, __result); 32778: return; 32778: } 32778: --__last1; 32778: } 32778: else 32778: { 32778: *--__result = std::move(*__last2); 32778: if (__first2 == __last2) 32778: return; 32778: --__last2; 32778: } 32778: } 32778: } 32778: 32778: 32778: template 32778: _BidirectionalIterator1 32778: __rotate_adaptive(_BidirectionalIterator1 __first, 32778: _BidirectionalIterator1 __middle, 32778: _BidirectionalIterator1 __last, 32778: _Distance __len1, _Distance __len2, 32778: _BidirectionalIterator2 __buffer, 32778: _Distance __buffer_size) 32778: { 32778: _BidirectionalIterator2 __buffer_end; 32778: if (__len1 > __len2 && __len2 <= __buffer_size) 32778: { 32778: if (__len2) 32778: { 32778: __buffer_end = std::move(__middle, __last, __buffer); 32778: std::move_backward(__first, __middle, __last); 32778: return std::move(__buffer, __buffer_end, __first); 32778: } 32778: else 32778: return __first; 32778: } 32778: else if (__len1 <= __buffer_size) 32778: { 32778: if (__len1) 32778: { 32778: __buffer_end = std::move(__first, __middle, __buffer); 32778: std::move(__middle, __last, __first); 32778: return std::move_backward(__buffer, __buffer_end, __last); 32778: } 32778: else 32778: return __last; 32778: } 32778: else 32778: return std::rotate(__first, __middle, __last); 32778: } 32778: 32778: 32778: template 32778: void 32778: __merge_adaptive(_BidirectionalIterator __first, 32778: _BidirectionalIterator __middle, 32778: _BidirectionalIterator __last, 32778: _Distance __len1, _Distance __len2, 32778: _Pointer __buffer, _Distance __buffer_size, 32778: _Compare __comp) 32778: { 32778: if (__len1 <= __len2 && __len1 <= __buffer_size) 32778: { 32778: _Pointer __buffer_end = std::move(__first, __middle, __buffer); 32778: std::__move_merge_adaptive(__buffer, __buffer_end, __middle, __last, 32778: __first, __comp); 32778: } 32778: else if (__len2 <= __buffer_size) 32778: { 32778: _Pointer __buffer_end = std::move(__middle, __last, __buffer); 32778: std::__move_merge_adaptive_backward(__first, __middle, __buffer, 32778: __buffer_end, __last, __comp); 32778: } 32778: else 32778: { 32778: _BidirectionalIterator __first_cut = __first; 32778: _BidirectionalIterator __second_cut = __middle; 32778: _Distance __len11 = 0; 32778: _Distance __len22 = 0; 32778: if (__len1 > __len2) 32778: { 32778: __len11 = __len1 / 2; 32778: std::advance(__first_cut, __len11); 32778: __second_cut 32778: = std::__lower_bound(__middle, __last, *__first_cut, 32778: __gnu_cxx::__ops::__iter_comp_val(__comp)); 32778: __len22 = std::distance(__middle, __second_cut); 32778: } 32778: else 32778: { 32778: __len22 = __len2 / 2; 32778: std::advance(__second_cut, __len22); 32778: __first_cut 32778: = std::__upper_bound(__first, __middle, *__second_cut, 32778: __gnu_cxx::__ops::__val_comp_iter(__comp)); 32778: __len11 = std::distance(__first, __first_cut); 32778: } 32778: 32778: _BidirectionalIterator __new_middle 32778: = std::__rotate_adaptive(__first_cut, __middle, __second_cut, 32778: __len1 - __len11, __len22, __buffer, 32778: __buffer_size); 32778: std::__merge_adaptive(__first, __first_cut, __new_middle, __len11, 32778: __len22, __buffer, __buffer_size, __comp); 32778: std::__merge_adaptive(__new_middle, __second_cut, __last, 32778: __len1 - __len11, 32778: __len2 - __len22, __buffer, 32778: __buffer_size, __comp); 32778: } 32778: } 32778: 32778: 32778: template 32778: void 32778: __merge_without_buffer(_BidirectionalIterator __first, 32778: _BidirectionalIterator __middle, 32778: _BidirectionalIterator __last, 32778: _Distance __len1, _Distance __len2, 32778: _Compare __comp) 32778: { 32778: if (__len1 == 0 || __len2 == 0) 32778: return; 32778: 32778: if (__len1 + __len2 == 2) 32778: { 32778: if (__comp(__middle, __first)) 32778: std::iter_swap(__first, __middle); 32778: return; 32778: } 32778: 32778: _BidirectionalIterator __first_cut = __first; 32778: _BidirectionalIterator __second_cut = __middle; 32778: _Distance __len11 = 0; 32778: _Distance __len22 = 0; 32778: if (__len1 > __len2) 32778: { 32778: __len11 = __len1 / 2; 32778: std::advance(__first_cut, __len11); 32778: __second_cut 32778: = std::__lower_bound(__middle, __last, *__first_cut, 32778: __gnu_cxx::__ops::__iter_comp_val(__comp)); 32778: __len22 = std::distance(__middle, __second_cut); 32778: } 32778: else 32778: { 32778: __len22 = __len2 / 2; 32778: std::advance(__second_cut, __len22); 32778: __first_cut 32778: = std::__upper_bound(__first, __middle, *__second_cut, 32778: __gnu_cxx::__ops::__val_comp_iter(__comp)); 32778: __len11 = std::distance(__first, __first_cut); 32778: } 32778: 32778: _BidirectionalIterator __new_middle 32778: = std::rotate(__first_cut, __middle, __second_cut); 32778: std::__merge_without_buffer(__first, __first_cut, __new_middle, 32778: __len11, __len22, __comp); 32778: std::__merge_without_buffer(__new_middle, __second_cut, __last, 32778: __len1 - __len11, __len2 - __len22, __comp); 32778: } 32778: 32778: template 32778: void 32778: __inplace_merge(_BidirectionalIterator __first, 32778: _BidirectionalIterator __middle, 32778: _BidirectionalIterator __last, 32778: _Compare __comp) 32778: { 32778: typedef typename iterator_traits<_BidirectionalIterator>::value_type 32778: _ValueType; 32778: typedef typename iterator_traits<_BidirectionalIterator>::difference_type 32778: _DistanceType; 32778: 32778: if (__first == __middle || __middle == __last) 32778: return; 32778: 32778: const _DistanceType __len1 = std::distance(__first, __middle); 32778: const _DistanceType __len2 = std::distance(__middle, __last); 32778: 32778: typedef _Temporary_buffer<_BidirectionalIterator, _ValueType> _TmpBuf; 32778: _TmpBuf __buf(__first, __len1 + __len2); 32778: 32778: if (__buf.begin() == 0) 32778: std::__merge_without_buffer 32778: (__first, __middle, __last, __len1, __len2, __comp); 32778: else 32778: std::__merge_adaptive 32778: (__first, __middle, __last, __len1, __len2, __buf.begin(), 32778: _DistanceType(__buf.size()), __comp); 32778: } 32778: # 2566 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline void 32778: inplace_merge(_BidirectionalIterator __first, 32778: _BidirectionalIterator __middle, 32778: _BidirectionalIterator __last) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: ; 32778: 32778: std::__inplace_merge(__first, __middle, __last, 32778: __gnu_cxx::__ops::__iter_less_iter()); 32778: } 32778: # 2607 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline void 32778: inplace_merge(_BidirectionalIterator __first, 32778: _BidirectionalIterator __middle, 32778: _BidirectionalIterator __last, 32778: _Compare __comp) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: ; 32778: 32778: std::__inplace_merge(__first, __middle, __last, 32778: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 32778: } 32778: 32778: 32778: 32778: template 32778: _OutputIterator 32778: __move_merge(_InputIterator __first1, _InputIterator __last1, 32778: _InputIterator __first2, _InputIterator __last2, 32778: _OutputIterator __result, _Compare __comp) 32778: { 32778: while (__first1 != __last1 && __first2 != __last2) 32778: { 32778: if (__comp(__first2, __first1)) 32778: { 32778: *__result = std::move(*__first2); 32778: ++__first2; 32778: } 32778: else 32778: { 32778: *__result = std::move(*__first1); 32778: ++__first1; 32778: } 32778: ++__result; 32778: } 32778: return std::move(__first2, __last2, std::move(__first1, __last1, __result)) 32778: 32778: ; 32778: } 32778: 32778: template 32778: void 32778: __merge_sort_loop(_RandomAccessIterator1 __first, 32778: _RandomAccessIterator1 __last, 32778: _RandomAccessIterator2 __result, _Distance __step_size, 32778: _Compare __comp) 32778: { 32778: const _Distance __two_step = 2 * __step_size; 32778: 32778: while (__last - __first >= __two_step) 32778: { 32778: __result = std::__move_merge(__first, __first + __step_size, 32778: __first + __step_size, 32778: __first + __two_step, 32778: __result, __comp); 32778: __first += __two_step; 32778: } 32778: __step_size = std::min(_Distance(__last - __first), __step_size); 32778: 32778: std::__move_merge(__first, __first + __step_size, 32778: __first + __step_size, __last, __result, __comp); 32778: } 32778: 32778: template 32778: void 32778: __chunk_insertion_sort(_RandomAccessIterator __first, 32778: _RandomAccessIterator __last, 32778: _Distance __chunk_size, _Compare __comp) 32778: { 32778: while (__last - __first >= __chunk_size) 32778: { 32778: std::__insertion_sort(__first, __first + __chunk_size, __comp); 32778: __first += __chunk_size; 32778: } 32778: std::__insertion_sort(__first, __last, __comp); 32778: } 32778: 32778: enum { _S_chunk_size = 7 }; 32778: 32778: template 32778: void 32778: __merge_sort_with_buffer(_RandomAccessIterator __first, 32778: _RandomAccessIterator __last, 32778: _Pointer __buffer, _Compare __comp) 32778: { 32778: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 32778: _Distance; 32778: 32778: const _Distance __len = __last - __first; 32778: const _Pointer __buffer_last = __buffer + __len; 32778: 32778: _Distance __step_size = _S_chunk_size; 32778: std::__chunk_insertion_sort(__first, __last, __step_size, __comp); 32778: 32778: while (__step_size < __len) 32778: { 32778: std::__merge_sort_loop(__first, __last, __buffer, 32778: __step_size, __comp); 32778: __step_size *= 2; 32778: std::__merge_sort_loop(__buffer, __buffer_last, __first, 32778: __step_size, __comp); 32778: __step_size *= 2; 32778: } 32778: } 32778: 32778: template 32778: void 32778: __stable_sort_adaptive(_RandomAccessIterator __first, 32778: _RandomAccessIterator __last, 32778: _Pointer __buffer, _Distance __buffer_size, 32778: _Compare __comp) 32778: { 32778: const _Distance __len = (__last - __first + 1) / 2; 32778: const _RandomAccessIterator __middle = __first + __len; 32778: if (__len > __buffer_size) 32778: { 32778: std::__stable_sort_adaptive(__first, __middle, __buffer, 32778: __buffer_size, __comp); 32778: std::__stable_sort_adaptive(__middle, __last, __buffer, 32778: __buffer_size, __comp); 32778: } 32778: else 32778: { 32778: std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); 32778: std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); 32778: } 32778: std::__merge_adaptive(__first, __middle, __last, 32778: _Distance(__middle - __first), 32778: _Distance(__last - __middle), 32778: __buffer, __buffer_size, 32778: __comp); 32778: } 32778: 32778: 32778: template 32778: void 32778: __inplace_stable_sort(_RandomAccessIterator __first, 32778: _RandomAccessIterator __last, _Compare __comp) 32778: { 32778: if (__last - __first < 15) 32778: { 32778: std::__insertion_sort(__first, __last, __comp); 32778: return; 32778: } 32778: _RandomAccessIterator __middle = __first + (__last - __first) / 2; 32778: std::__inplace_stable_sort(__first, __middle, __comp); 32778: std::__inplace_stable_sort(__middle, __last, __comp); 32778: std::__merge_without_buffer(__first, __middle, __last, 32778: __middle - __first, 32778: __last - __middle, 32778: __comp); 32778: } 32778: # 2779 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: bool 32778: __includes(_InputIterator1 __first1, _InputIterator1 __last1, 32778: _InputIterator2 __first2, _InputIterator2 __last2, 32778: _Compare __comp) 32778: { 32778: while (__first1 != __last1 && __first2 != __last2) 32778: if (__comp(__first2, __first1)) 32778: return false; 32778: else if (__comp(__first1, __first2)) 32778: ++__first1; 32778: else 32778: { 32778: ++__first1; 32778: ++__first2; 32778: } 32778: 32778: return __first2 == __last2; 32778: } 32778: # 2818 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline bool 32778: includes(_InputIterator1 __first1, _InputIterator1 __last1, 32778: _InputIterator2 __first2, _InputIterator2 __last2) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: ; 32778: ; 32778: 32778: return std::__includes(__first1, __last1, __first2, __last2, 32778: __gnu_cxx::__ops::__iter_less_iter()); 32778: } 32778: # 2862 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline bool 32778: includes(_InputIterator1 __first1, _InputIterator1 __last1, 32778: _InputIterator2 __first2, _InputIterator2 __last2, 32778: _Compare __comp) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: ; 32778: ; 32778: 32778: return std::__includes(__first1, __last1, __first2, __last2, 32778: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 32778: } 32778: # 2897 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: bool 32778: __next_permutation(_BidirectionalIterator __first, 32778: _BidirectionalIterator __last, _Compare __comp) 32778: { 32778: if (__first == __last) 32778: return false; 32778: _BidirectionalIterator __i = __first; 32778: ++__i; 32778: if (__i == __last) 32778: return false; 32778: __i = __last; 32778: --__i; 32778: 32778: for(;;) 32778: { 32778: _BidirectionalIterator __ii = __i; 32778: --__i; 32778: if (__comp(__i, __ii)) 32778: { 32778: _BidirectionalIterator __j = __last; 32778: while (!__comp(__i, --__j)) 32778: {} 32778: std::iter_swap(__i, __j); 32778: std::__reverse(__ii, __last, 32778: std::__iterator_category(__first)); 32778: return true; 32778: } 32778: if (__i == __first) 32778: { 32778: std::__reverse(__first, __last, 32778: std::__iterator_category(__first)); 32778: return false; 32778: } 32778: } 32778: } 32778: # 2946 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline bool 32778: next_permutation(_BidirectionalIterator __first, 32778: _BidirectionalIterator __last) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: return std::__next_permutation 32778: (__first, __last, __gnu_cxx::__ops::__iter_less_iter()); 32778: } 32778: # 2978 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline bool 32778: next_permutation(_BidirectionalIterator __first, 32778: _BidirectionalIterator __last, _Compare __comp) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: return std::__next_permutation 32778: (__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); 32778: } 32778: 32778: template 32778: bool 32778: __prev_permutation(_BidirectionalIterator __first, 32778: _BidirectionalIterator __last, _Compare __comp) 32778: { 32778: if (__first == __last) 32778: return false; 32778: _BidirectionalIterator __i = __first; 32778: ++__i; 32778: if (__i == __last) 32778: return false; 32778: __i = __last; 32778: --__i; 32778: 32778: for(;;) 32778: { 32778: _BidirectionalIterator __ii = __i; 32778: --__i; 32778: if (__comp(__ii, __i)) 32778: { 32778: _BidirectionalIterator __j = __last; 32778: while (!__comp(--__j, __i)) 32778: {} 32778: std::iter_swap(__i, __j); 32778: std::__reverse(__ii, __last, 32778: std::__iterator_category(__first)); 32778: return true; 32778: } 32778: if (__i == __first) 32778: { 32778: std::__reverse(__first, __last, 32778: std::__iterator_category(__first)); 32778: return false; 32778: } 32778: } 32778: } 32778: # 3046 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline bool 32778: prev_permutation(_BidirectionalIterator __first, 32778: _BidirectionalIterator __last) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: return std::__prev_permutation(__first, __last, 32778: __gnu_cxx::__ops::__iter_less_iter()); 32778: } 32778: # 3078 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline bool 32778: prev_permutation(_BidirectionalIterator __first, 32778: _BidirectionalIterator __last, _Compare __comp) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: return std::__prev_permutation(__first, __last, 32778: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 32778: } 32778: 32778: 32778: 32778: 32778: template 32778: _OutputIterator 32778: __replace_copy_if(_InputIterator __first, _InputIterator __last, 32778: _OutputIterator __result, 32778: _Predicate __pred, const _Tp& __new_value) 32778: { 32778: for (; __first != __last; ++__first, (void)++__result) 32778: if (__pred(__first)) 32778: *__result = __new_value; 32778: else 32778: *__result = *__first; 32778: return __result; 32778: } 32778: # 3128 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _OutputIterator 32778: replace_copy(_InputIterator __first, _InputIterator __last, 32778: _OutputIterator __result, 32778: const _Tp& __old_value, const _Tp& __new_value) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__replace_copy_if(__first, __last, __result, 32778: __gnu_cxx::__ops::__iter_equals_val(__old_value), 32778: __new_value); 32778: } 32778: # 3162 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _OutputIterator 32778: replace_copy_if(_InputIterator __first, _InputIterator __last, 32778: _OutputIterator __result, 32778: _Predicate __pred, const _Tp& __new_value) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__replace_copy_if(__first, __last, __result, 32778: __gnu_cxx::__ops::__pred_iter(__pred), 32778: __new_value); 32778: } 32778: 32778: template 32778: typename iterator_traits<_InputIterator>::difference_type 32778: __count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) 32778: { 32778: typename iterator_traits<_InputIterator>::difference_type __n = 0; 32778: for (; __first != __last; ++__first) 32778: if (__pred(__first)) 32778: ++__n; 32778: return __n; 32778: } 32778: # 3201 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline bool 32778: is_sorted(_ForwardIterator __first, _ForwardIterator __last) 32778: { return std::is_sorted_until(__first, __last) == __last; } 32778: # 3215 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline bool 32778: is_sorted(_ForwardIterator __first, _ForwardIterator __last, 32778: _Compare __comp) 32778: { return std::is_sorted_until(__first, __last, __comp) == __last; } 32778: 32778: template 32778: _ForwardIterator 32778: __is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, 32778: _Compare __comp) 32778: { 32778: if (__first == __last) 32778: return __last; 32778: 32778: _ForwardIterator __next = __first; 32778: for (++__next; __next != __last; __first = __next, (void)++__next) 32778: if (__comp(__next, __first)) 32778: return __next; 32778: return __next; 32778: } 32778: # 3244 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _ForwardIterator 32778: is_sorted_until(_ForwardIterator __first, _ForwardIterator __last) 32778: { 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: return std::__is_sorted_until(__first, __last, 32778: __gnu_cxx::__ops::__iter_less_iter()); 32778: } 32778: # 3268 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _ForwardIterator 32778: is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, 32778: _Compare __comp) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: return std::__is_sorted_until(__first, __last, 32778: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 32778: } 32778: # 3293 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: 32778: inline pair 32778: minmax(const _Tp& __a, const _Tp& __b) 32778: { 32778: 32778: 32778: 32778: return __b < __a ? pair(__b, __a) 32778: : pair(__a, __b); 32778: } 32778: # 3314 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: 32778: inline pair 32778: minmax(const _Tp& __a, const _Tp& __b, _Compare __comp) 32778: { 32778: return __comp(__b, __a) ? pair(__b, __a) 32778: : pair(__a, __b); 32778: } 32778: 32778: template 32778: 32778: pair<_ForwardIterator, _ForwardIterator> 32778: __minmax_element(_ForwardIterator __first, _ForwardIterator __last, 32778: _Compare __comp) 32778: { 32778: _ForwardIterator __next = __first; 32778: if (__first == __last 32778: || ++__next == __last) 32778: return std::make_pair(__first, __first); 32778: 32778: _ForwardIterator __min{}, __max{}; 32778: if (__comp(__next, __first)) 32778: { 32778: __min = __next; 32778: __max = __first; 32778: } 32778: else 32778: { 32778: __min = __first; 32778: __max = __next; 32778: } 32778: 32778: __first = __next; 32778: ++__first; 32778: 32778: while (__first != __last) 32778: { 32778: __next = __first; 32778: if (++__next == __last) 32778: { 32778: if (__comp(__first, __min)) 32778: __min = __first; 32778: else if (!__comp(__first, __max)) 32778: __max = __first; 32778: break; 32778: } 32778: 32778: if (__comp(__next, __first)) 32778: { 32778: if (__comp(__next, __min)) 32778: __min = __next; 32778: if (!__comp(__first, __max)) 32778: __max = __first; 32778: } 32778: else 32778: { 32778: if (__comp(__first, __min)) 32778: __min = __first; 32778: if (!__comp(__next, __max)) 32778: __max = __next; 32778: } 32778: 32778: __first = __next; 32778: ++__first; 32778: } 32778: 32778: return std::make_pair(__min, __max); 32778: } 32778: # 3394 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: 32778: inline pair<_ForwardIterator, _ForwardIterator> 32778: minmax_element(_ForwardIterator __first, _ForwardIterator __last) 32778: { 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: return std::__minmax_element(__first, __last, 32778: __gnu_cxx::__ops::__iter_less_iter()); 32778: } 32778: # 3422 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: 32778: inline pair<_ForwardIterator, _ForwardIterator> 32778: minmax_element(_ForwardIterator __first, _ForwardIterator __last, 32778: _Compare __comp) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: return std::__minmax_element(__first, __last, 32778: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 32778: } 32778: 32778: 32778: template 32778: 32778: inline _Tp 32778: min(initializer_list<_Tp> __l) 32778: { return *std::min_element(__l.begin(), __l.end()); } 32778: 32778: template 32778: 32778: inline _Tp 32778: min(initializer_list<_Tp> __l, _Compare __comp) 32778: { return *std::min_element(__l.begin(), __l.end(), __comp); } 32778: 32778: template 32778: 32778: inline _Tp 32778: max(initializer_list<_Tp> __l) 32778: { return *std::max_element(__l.begin(), __l.end()); } 32778: 32778: template 32778: 32778: inline _Tp 32778: max(initializer_list<_Tp> __l, _Compare __comp) 32778: { return *std::max_element(__l.begin(), __l.end(), __comp); } 32778: 32778: template 32778: 32778: inline pair<_Tp, _Tp> 32778: minmax(initializer_list<_Tp> __l) 32778: { 32778: pair __p = 32778: std::minmax_element(__l.begin(), __l.end()); 32778: return std::make_pair(*__p.first, *__p.second); 32778: } 32778: 32778: template 32778: 32778: inline pair<_Tp, _Tp> 32778: minmax(initializer_list<_Tp> __l, _Compare __comp) 32778: { 32778: pair __p = 32778: std::minmax_element(__l.begin(), __l.end(), __comp); 32778: return std::make_pair(*__p.first, *__p.second); 32778: } 32778: 32778: template 32778: bool 32778: __is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 32778: _ForwardIterator2 __first2, _BinaryPredicate __pred) 32778: { 32778: 32778: 32778: for (; __first1 != __last1; ++__first1, (void)++__first2) 32778: if (!__pred(__first1, __first2)) 32778: break; 32778: 32778: if (__first1 == __last1) 32778: return true; 32778: 32778: 32778: 32778: _ForwardIterator2 __last2 = __first2; 32778: std::advance(__last2, std::distance(__first1, __last1)); 32778: for (_ForwardIterator1 __scan = __first1; __scan != __last1; ++__scan) 32778: { 32778: if (__scan != std::__find_if(__first1, __scan, 32778: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan))) 32778: continue; 32778: 32778: auto __matches 32778: = std::__count_if(__first2, __last2, 32778: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)); 32778: if (0 == __matches || 32778: std::__count_if(__scan, __last1, 32778: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)) 32778: != __matches) 32778: return false; 32778: } 32778: return true; 32778: } 32778: # 3534 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline bool 32778: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 32778: _ForwardIterator2 __first2) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__is_permutation(__first1, __last1, __first2, 32778: __gnu_cxx::__ops::__iter_equal_to_iter()); 32778: } 32778: # 3565 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline bool 32778: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 32778: _ForwardIterator2 __first2, _BinaryPredicate __pred) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__is_permutation(__first1, __last1, __first2, 32778: __gnu_cxx::__ops::__iter_comp_iter(__pred)); 32778: } 32778: # 3761 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: pair<_IntType, _IntType> 32778: __gen_two_uniform_ints(_IntType __b0, _IntType __b1, 32778: _UniformRandomBitGenerator&& __g) 32778: { 32778: _IntType __x 32778: = uniform_int_distribution<_IntType>{0, (__b0 * __b1) - 1}(__g); 32778: return std::make_pair(__x / __b1, __x % __b1); 32778: } 32778: # 3783 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: void 32778: shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, 32778: _UniformRandomNumberGenerator&& __g) 32778: { 32778: 32778: 32778: 32778: ; 32778: 32778: if (__first == __last) 32778: return; 32778: 32778: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 32778: _DistanceType; 32778: 32778: typedef typename std::make_unsigned<_DistanceType>::type __ud_type; 32778: typedef typename std::uniform_int_distribution<__ud_type> __distr_type; 32778: typedef typename __distr_type::param_type __p_type; 32778: 32778: typedef typename remove_reference<_UniformRandomNumberGenerator>::type 32778: _Gen; 32778: typedef typename common_type::type 32778: __uc_type; 32778: 32778: const __uc_type __urngrange = __g.max() - __g.min(); 32778: const __uc_type __urange = __uc_type(__last - __first); 32778: 32778: if (__urngrange / __urange >= __urange) 32778: 32778: { 32778: _RandomAccessIterator __i = __first + 1; 32778: 32778: 32778: 32778: 32778: 32778: if ((__urange % 2) == 0) 32778: { 32778: __distr_type __d{0, 1}; 32778: std::iter_swap(__i++, __first + __d(__g)); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: while (__i != __last) 32778: { 32778: const __uc_type __swap_range = __uc_type(__i - __first) + 1; 32778: 32778: const pair<__uc_type, __uc_type> __pospos = 32778: __gen_two_uniform_ints(__swap_range, __swap_range + 1, __g); 32778: 32778: std::iter_swap(__i++, __first + __pospos.first); 32778: std::iter_swap(__i++, __first + __pospos.second); 32778: } 32778: 32778: return; 32778: } 32778: 32778: __distr_type __d; 32778: 32778: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 32778: std::iter_swap(__i, __first + __d(__g, __p_type(0, __i - __first))); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: # 3868 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: _Function 32778: for_each(_InputIterator __first, _InputIterator __last, _Function __f) 32778: { 32778: 32778: 32778: ; 32778: for (; __first != __last; ++__first) 32778: __f(*__first); 32778: return __f; 32778: } 32778: # 3928 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _InputIterator 32778: find(_InputIterator __first, _InputIterator __last, 32778: const _Tp& __val) 32778: { 32778: 32778: 32778: 32778: 32778: ; 32778: return std::__find_if(__first, __last, 32778: __gnu_cxx::__ops::__iter_equals_val(__val)); 32778: } 32778: # 3952 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _InputIterator 32778: find_if(_InputIterator __first, _InputIterator __last, 32778: _Predicate __pred) 32778: { 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__find_if(__first, __last, 32778: __gnu_cxx::__ops::__pred_iter(__pred)); 32778: } 32778: # 3983 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: _InputIterator 32778: find_first_of(_InputIterator __first1, _InputIterator __last1, 32778: _ForwardIterator __first2, _ForwardIterator __last2) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: for (; __first1 != __last1; ++__first1) 32778: for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) 32778: if (*__first1 == *__iter) 32778: return __first1; 32778: return __last1; 32778: } 32778: # 4023 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: _InputIterator 32778: find_first_of(_InputIterator __first1, _InputIterator __last1, 32778: _ForwardIterator __first2, _ForwardIterator __last2, 32778: _BinaryPredicate __comp) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: for (; __first1 != __last1; ++__first1) 32778: for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) 32778: if (__comp(*__first1, *__iter)) 32778: return __first1; 32778: return __last1; 32778: } 32778: # 4055 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _ForwardIterator 32778: adjacent_find(_ForwardIterator __first, _ForwardIterator __last) 32778: { 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__adjacent_find(__first, __last, 32778: __gnu_cxx::__ops::__iter_equal_to_iter()); 32778: } 32778: # 4080 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _ForwardIterator 32778: adjacent_find(_ForwardIterator __first, _ForwardIterator __last, 32778: _BinaryPredicate __binary_pred) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__adjacent_find(__first, __last, 32778: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 32778: } 32778: # 4105 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline typename iterator_traits<_InputIterator>::difference_type 32778: count(_InputIterator __first, _InputIterator __last, const _Tp& __value) 32778: { 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__count_if(__first, __last, 32778: __gnu_cxx::__ops::__iter_equals_val(__value)); 32778: } 32778: # 4128 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline typename iterator_traits<_InputIterator>::difference_type 32778: count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) 32778: { 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__count_if(__first, __last, 32778: __gnu_cxx::__ops::__pred_iter(__pred)); 32778: } 32778: # 4168 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _ForwardIterator1 32778: search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 32778: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: return std::__search(__first1, __last1, __first2, __last2, 32778: __gnu_cxx::__ops::__iter_equal_to_iter()); 32778: } 32778: # 4207 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _ForwardIterator1 32778: search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 32778: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 32778: _BinaryPredicate __predicate) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: return std::__search(__first1, __last1, __first2, __last2, 32778: __gnu_cxx::__ops::__iter_comp_iter(__predicate)); 32778: } 32778: # 4242 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _ForwardIterator 32778: search_n(_ForwardIterator __first, _ForwardIterator __last, 32778: _Integer __count, const _Tp& __val) 32778: { 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__search_n(__first, __last, __count, 32778: __gnu_cxx::__ops::__iter_equals_val(__val)); 32778: } 32778: # 4275 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _ForwardIterator 32778: search_n(_ForwardIterator __first, _ForwardIterator __last, 32778: _Integer __count, const _Tp& __val, 32778: _BinaryPredicate __binary_pred) 32778: { 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__search_n(__first, __last, __count, 32778: __gnu_cxx::__ops::__iter_comp_val(__binary_pred, __val)); 32778: } 32778: # 4323 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: _OutputIterator 32778: transform(_InputIterator __first, _InputIterator __last, 32778: _OutputIterator __result, _UnaryOperation __unary_op) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: for (; __first != __last; ++__first, (void)++__result) 32778: *__result = __unary_op(*__first); 32778: return __result; 32778: } 32778: # 4360 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: _OutputIterator 32778: transform(_InputIterator1 __first1, _InputIterator1 __last1, 32778: _InputIterator2 __first2, _OutputIterator __result, 32778: _BinaryOperation __binary_op) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: for (; __first1 != __last1; ++__first1, (void)++__first2, ++__result) 32778: *__result = __binary_op(*__first1, *__first2); 32778: return __result; 32778: } 32778: # 4393 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: void 32778: replace(_ForwardIterator __first, _ForwardIterator __last, 32778: const _Tp& __old_value, const _Tp& __new_value) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: for (; __first != __last; ++__first) 32778: if (*__first == __old_value) 32778: *__first = __new_value; 32778: } 32778: # 4425 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: void 32778: replace_if(_ForwardIterator __first, _ForwardIterator __last, 32778: _Predicate __pred, const _Tp& __new_value) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: for (; __first != __last; ++__first) 32778: if (__pred(*__first)) 32778: *__first = __new_value; 32778: } 32778: # 4457 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: void 32778: generate(_ForwardIterator __first, _ForwardIterator __last, 32778: _Generator __gen) 32778: { 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: for (; __first != __last; ++__first) 32778: *__first = __gen(); 32778: } 32778: # 4488 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: _OutputIterator 32778: generate_n(_OutputIterator __first, _Size __n, _Generator __gen) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: for (__decltype(__n + 0) __niter = __n; 32778: __niter > 0; --__niter, (void) ++__first) 32778: *__first = __gen(); 32778: return __first; 32778: } 32778: # 4524 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _OutputIterator 32778: unique_copy(_InputIterator __first, _InputIterator __last, 32778: _OutputIterator __result) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: if (__first == __last) 32778: return __result; 32778: return std::__unique_copy(__first, __last, __result, 32778: __gnu_cxx::__ops::__iter_equal_to_iter(), 32778: std::__iterator_category(__first), 32778: std::__iterator_category(__result)); 32778: } 32778: # 4564 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _OutputIterator 32778: unique_copy(_InputIterator __first, _InputIterator __last, 32778: _OutputIterator __result, 32778: _BinaryPredicate __binary_pred) 32778: { 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: if (__first == __last) 32778: return __result; 32778: return std::__unique_copy(__first, __last, __result, 32778: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred), 32778: std::__iterator_category(__first), 32778: std::__iterator_category(__result)); 32778: } 32778: # 4597 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline void 32778: random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last) 32778: { 32778: 32778: 32778: 32778: ; 32778: 32778: if (__first != __last) 32778: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 32778: { 32778: 32778: _RandomAccessIterator __j = __first 32778: + std::rand() % ((__i - __first) + 1); 32778: if (__i != __j) 32778: std::iter_swap(__i, __j); 32778: } 32778: } 32778: # 4632 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: void 32778: random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, 32778: 32778: _RandomNumberGenerator&& __rand) 32778: 32778: 32778: 32778: { 32778: 32778: 32778: 32778: ; 32778: 32778: if (__first == __last) 32778: return; 32778: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 32778: { 32778: _RandomAccessIterator __j = __first + __rand((__i - __first) + 1); 32778: if (__i != __j) 32778: std::iter_swap(__i, __j); 32778: } 32778: } 32778: # 4672 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _ForwardIterator 32778: partition(_ForwardIterator __first, _ForwardIterator __last, 32778: _Predicate __pred) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: 32778: return std::__partition(__first, __last, __pred, 32778: std::__iterator_category(__first)); 32778: } 32778: # 4705 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline void 32778: partial_sort(_RandomAccessIterator __first, 32778: _RandomAccessIterator __middle, 32778: _RandomAccessIterator __last) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: ; 32778: 32778: std::__partial_sort(__first, __middle, __last, 32778: __gnu_cxx::__ops::__iter_less_iter()); 32778: } 32778: # 4743 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline void 32778: partial_sort(_RandomAccessIterator __first, 32778: _RandomAccessIterator __middle, 32778: _RandomAccessIterator __last, 32778: _Compare __comp) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: ; 32778: 32778: std::__partial_sort(__first, __middle, __last, 32778: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 32778: } 32778: # 4779 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline void 32778: nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, 32778: _RandomAccessIterator __last) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: ; 32778: 32778: if (__first == __last || __nth == __last) 32778: return; 32778: 32778: std::__introselect(__first, __nth, __last, 32778: std::__lg(__last - __first) * 2, 32778: __gnu_cxx::__ops::__iter_less_iter()); 32778: } 32778: # 4818 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline void 32778: nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, 32778: _RandomAccessIterator __last, _Compare __comp) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: ; 32778: 32778: if (__first == __last || __nth == __last) 32778: return; 32778: 32778: std::__introselect(__first, __nth, __last, 32778: std::__lg(__last - __first) * 2, 32778: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 32778: } 32778: # 4855 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline void 32778: sort(_RandomAccessIterator __first, _RandomAccessIterator __last) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: std::__sort(__first, __last, __gnu_cxx::__ops::__iter_less_iter()); 32778: } 32778: # 4885 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline void 32778: sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 32778: _Compare __comp) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: std::__sort(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); 32778: } 32778: 32778: template 32778: _OutputIterator 32778: __merge(_InputIterator1 __first1, _InputIterator1 __last1, 32778: _InputIterator2 __first2, _InputIterator2 __last2, 32778: _OutputIterator __result, _Compare __comp) 32778: { 32778: while (__first1 != __last1 && __first2 != __last2) 32778: { 32778: if (__comp(__first2, __first1)) 32778: { 32778: *__result = *__first2; 32778: ++__first2; 32778: } 32778: else 32778: { 32778: *__result = *__first1; 32778: ++__first1; 32778: } 32778: ++__result; 32778: } 32778: return std::copy(__first2, __last2, 32778: std::copy(__first1, __last1, __result)); 32778: } 32778: # 4946 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _OutputIterator 32778: merge(_InputIterator1 __first1, _InputIterator1 __last1, 32778: _InputIterator2 __first2, _InputIterator2 __last2, 32778: _OutputIterator __result) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: ; 32778: ; 32778: 32778: return std::__merge(__first1, __last1, 32778: __first2, __last2, __result, 32778: __gnu_cxx::__ops::__iter_less_iter()); 32778: } 32778: # 4996 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _OutputIterator 32778: merge(_InputIterator1 __first1, _InputIterator1 __last1, 32778: _InputIterator2 __first2, _InputIterator2 __last2, 32778: _OutputIterator __result, _Compare __comp) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: ; 32778: ; 32778: 32778: return std::__merge(__first1, __last1, 32778: __first2, __last2, __result, 32778: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 32778: } 32778: 32778: template 32778: inline void 32778: __stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 32778: _Compare __comp) 32778: { 32778: typedef typename iterator_traits<_RandomAccessIterator>::value_type 32778: _ValueType; 32778: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 32778: _DistanceType; 32778: 32778: typedef _Temporary_buffer<_RandomAccessIterator, _ValueType> _TmpBuf; 32778: _TmpBuf __buf(__first, std::distance(__first, __last)); 32778: 32778: if (__buf.begin() == 0) 32778: std::__inplace_stable_sort(__first, __last, __comp); 32778: else 32778: std::__stable_sort_adaptive(__first, __last, __buf.begin(), 32778: _DistanceType(__buf.size()), __comp); 32778: } 32778: # 5060 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline void 32778: stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: std::__stable_sort(__first, __last, 32778: __gnu_cxx::__ops::__iter_less_iter()); 32778: } 32778: # 5094 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline void 32778: stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 32778: _Compare __comp) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: std::__stable_sort(__first, __last, 32778: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 32778: } 32778: 32778: template 32778: _OutputIterator 32778: __set_union(_InputIterator1 __first1, _InputIterator1 __last1, 32778: _InputIterator2 __first2, _InputIterator2 __last2, 32778: _OutputIterator __result, _Compare __comp) 32778: { 32778: while (__first1 != __last1 && __first2 != __last2) 32778: { 32778: if (__comp(__first1, __first2)) 32778: { 32778: *__result = *__first1; 32778: ++__first1; 32778: } 32778: else if (__comp(__first2, __first1)) 32778: { 32778: *__result = *__first2; 32778: ++__first2; 32778: } 32778: else 32778: { 32778: *__result = *__first1; 32778: ++__first1; 32778: ++__first2; 32778: } 32778: ++__result; 32778: } 32778: return std::copy(__first2, __last2, 32778: std::copy(__first1, __last1, __result)); 32778: } 32778: # 5163 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _OutputIterator 32778: set_union(_InputIterator1 __first1, _InputIterator1 __last1, 32778: _InputIterator2 __first2, _InputIterator2 __last2, 32778: _OutputIterator __result) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: ; 32778: ; 32778: 32778: return std::__set_union(__first1, __last1, 32778: __first2, __last2, __result, 32778: __gnu_cxx::__ops::__iter_less_iter()); 32778: } 32778: # 5213 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _OutputIterator 32778: set_union(_InputIterator1 __first1, _InputIterator1 __last1, 32778: _InputIterator2 __first2, _InputIterator2 __last2, 32778: _OutputIterator __result, _Compare __comp) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: ; 32778: ; 32778: 32778: return std::__set_union(__first1, __last1, 32778: __first2, __last2, __result, 32778: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 32778: } 32778: 32778: template 32778: _OutputIterator 32778: __set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 32778: _InputIterator2 __first2, _InputIterator2 __last2, 32778: _OutputIterator __result, _Compare __comp) 32778: { 32778: while (__first1 != __last1 && __first2 != __last2) 32778: if (__comp(__first1, __first2)) 32778: ++__first1; 32778: else if (__comp(__first2, __first1)) 32778: ++__first2; 32778: else 32778: { 32778: *__result = *__first1; 32778: ++__first1; 32778: ++__first2; 32778: ++__result; 32778: } 32778: return __result; 32778: } 32778: # 5284 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _OutputIterator 32778: set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 32778: _InputIterator2 __first2, _InputIterator2 __last2, 32778: _OutputIterator __result) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: ; 32778: ; 32778: 32778: return std::__set_intersection(__first1, __last1, 32778: __first2, __last2, __result, 32778: __gnu_cxx::__ops::__iter_less_iter()); 32778: } 32778: # 5333 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _OutputIterator 32778: set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 32778: _InputIterator2 __first2, _InputIterator2 __last2, 32778: _OutputIterator __result, _Compare __comp) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: ; 32778: ; 32778: 32778: return std::__set_intersection(__first1, __last1, 32778: __first2, __last2, __result, 32778: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 32778: } 32778: 32778: template 32778: _OutputIterator 32778: __set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 32778: _InputIterator2 __first2, _InputIterator2 __last2, 32778: _OutputIterator __result, _Compare __comp) 32778: { 32778: while (__first1 != __last1 && __first2 != __last2) 32778: if (__comp(__first1, __first2)) 32778: { 32778: *__result = *__first1; 32778: ++__first1; 32778: ++__result; 32778: } 32778: else if (__comp(__first2, __first1)) 32778: ++__first2; 32778: else 32778: { 32778: ++__first1; 32778: ++__first2; 32778: } 32778: return std::copy(__first1, __last1, __result); 32778: } 32778: # 5406 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _OutputIterator 32778: set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 32778: _InputIterator2 __first2, _InputIterator2 __last2, 32778: _OutputIterator __result) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: ; 32778: ; 32778: 32778: return std::__set_difference(__first1, __last1, 32778: __first2, __last2, __result, 32778: __gnu_cxx::__ops::__iter_less_iter()); 32778: } 32778: # 5457 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _OutputIterator 32778: set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 32778: _InputIterator2 __first2, _InputIterator2 __last2, 32778: _OutputIterator __result, _Compare __comp) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: ; 32778: ; 32778: 32778: return std::__set_difference(__first1, __last1, 32778: __first2, __last2, __result, 32778: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 32778: } 32778: 32778: template 32778: _OutputIterator 32778: __set_symmetric_difference(_InputIterator1 __first1, 32778: _InputIterator1 __last1, 32778: _InputIterator2 __first2, 32778: _InputIterator2 __last2, 32778: _OutputIterator __result, 32778: _Compare __comp) 32778: { 32778: while (__first1 != __last1 && __first2 != __last2) 32778: if (__comp(__first1, __first2)) 32778: { 32778: *__result = *__first1; 32778: ++__first1; 32778: ++__result; 32778: } 32778: else if (__comp(__first2, __first1)) 32778: { 32778: *__result = *__first2; 32778: ++__first2; 32778: ++__result; 32778: } 32778: else 32778: { 32778: ++__first1; 32778: ++__first2; 32778: } 32778: return std::copy(__first2, __last2, 32778: std::copy(__first1, __last1, __result)); 32778: } 32778: # 5536 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _OutputIterator 32778: set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, 32778: _InputIterator2 __first2, _InputIterator2 __last2, 32778: _OutputIterator __result) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: ; 32778: ; 32778: 32778: return std::__set_symmetric_difference(__first1, __last1, 32778: __first2, __last2, __result, 32778: __gnu_cxx::__ops::__iter_less_iter()); 32778: } 32778: # 5587 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: inline _OutputIterator 32778: set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, 32778: _InputIterator2 __first2, _InputIterator2 __last2, 32778: _OutputIterator __result, 32778: _Compare __comp) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: ; 32778: ; 32778: 32778: return std::__set_symmetric_difference(__first1, __last1, 32778: __first2, __last2, __result, 32778: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 32778: } 32778: 32778: template 32778: 32778: _ForwardIterator 32778: __min_element(_ForwardIterator __first, _ForwardIterator __last, 32778: _Compare __comp) 32778: { 32778: if (__first == __last) 32778: return __first; 32778: _ForwardIterator __result = __first; 32778: while (++__first != __last) 32778: if (__comp(__first, __result)) 32778: __result = __first; 32778: return __result; 32778: } 32778: # 5640 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: 32778: _ForwardIterator 32778: inline min_element(_ForwardIterator __first, _ForwardIterator __last) 32778: { 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: return std::__min_element(__first, __last, 32778: __gnu_cxx::__ops::__iter_less_iter()); 32778: } 32778: # 5665 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: 32778: inline _ForwardIterator 32778: min_element(_ForwardIterator __first, _ForwardIterator __last, 32778: _Compare __comp) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: return std::__min_element(__first, __last, 32778: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 32778: } 32778: 32778: template 32778: 32778: _ForwardIterator 32778: __max_element(_ForwardIterator __first, _ForwardIterator __last, 32778: _Compare __comp) 32778: { 32778: if (__first == __last) return __first; 32778: _ForwardIterator __result = __first; 32778: while (++__first != __last) 32778: if (__comp(__result, __first)) 32778: __result = __first; 32778: return __result; 32778: } 32778: # 5704 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: 32778: inline _ForwardIterator 32778: max_element(_ForwardIterator __first, _ForwardIterator __last) 32778: { 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: return std::__max_element(__first, __last, 32778: __gnu_cxx::__ops::__iter_less_iter()); 32778: } 32778: # 5729 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: template 32778: 32778: inline _ForwardIterator 32778: max_element(_ForwardIterator __first, _ForwardIterator __last, 32778: _Compare __comp) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: ; 32778: ; 32778: 32778: return std::__max_element(__first, __last, 32778: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 32778: } 32778: # 5872 "/usr/include/c++/9/bits/stl_algo.h" 3 32778: 32778: 32778: } 32778: # 63 "/usr/include/c++/9/algorithm" 2 3 32778: # 36 "/<>/include/HepMC3/GenCrossSection.h" 2 32778: 32778: 32778: 32778: # 38 "/<>/include/HepMC3/GenCrossSection.h" 32778: namespace HepMC3 { 32778: using namespace std; 32778: 32778: class GenCrossSection : public Attribute { 32778: 32778: 32778: 32778: 32778: private: 32778: 32778: long accepted_events; 32778: long attempted_events; 32778: 32778: vector cross_sections; 32778: vector cross_section_errors; 32778: 32778: 32778: 32778: public: 32778: 32778: bool from_string(const string &att); 32778: 32778: 32778: bool to_string(string &att) const; 32778: 32778: 32778: void set_cross_section(const double& xs, const double& xs_err,const long& n_acc = -1, const long& n_att = -1); 32778: 32778: 32778: 32778: void set_accepted_events(const long& n_acc ) { 32778: accepted_events=n_acc; 32778: } 32778: 32778: 32778: 32778: void set_attempted_events(const long& n_att ) { 32778: attempted_events=n_att; 32778: } 32778: 32778: 32778: 32778: long get_accepted_events() const { 32778: return accepted_events; 32778: } 32778: 32778: 32778: 32778: long get_attempted_events() const { 32778: return attempted_events; 32778: } 32778: 32778: 32778: 32778: 32778: void set_xsec(const string& wName,const double& xs) { 32778: set_xsec(windx(wName), xs); 32778: } 32778: 32778: 32778: 32778: 32778: void set_xsec(const int& indx, const double& xs) { 32778: cross_sections[indx] = xs; 32778: } 32778: 32778: 32778: 32778: 32778: void set_xsec_err(const string& wName, const double& xs_err) { 32778: set_xsec_err(windx(wName), xs_err); 32778: } 32778: 32778: 32778: 32778: 32778: void set_xsec_err(const int& indx, const double& xs_err) { 32778: cross_section_errors[indx] = xs_err; 32778: } 32778: 32778: 32778: 32778: 32778: double xsec(const string& wName) const { 32778: return xsec(windx(wName)); 32778: } 32778: 32778: 32778: 32778: 32778: double xsec(const int& indx = 0) const { 32778: return cross_sections[indx]; 32778: } 32778: 32778: 32778: 32778: 32778: double xsec_err(const string& wName) const { 32778: return xsec_err(windx(wName)); 32778: } 32778: 32778: 32778: 32778: 32778: double xsec_err(const int& indx = 0) const { 32778: return cross_section_errors[indx]; 32778: } 32778: 32778: bool operator==( const GenCrossSection& ) const; 32778: bool operator!=( const GenCrossSection& ) const; 32778: bool is_valid() const; 32778: 32778: private: 32778: 32778: 32778: int windx(string wName) const; 32778: 32778: }; 32778: 32778: 32778: } 32778: # 25 "/<>/include/HepMC3/GenEvent.h" 2 32778: # 1 "/<>/include/HepMC3/GenRunInfo.h" 1 32778: # 16 "/<>/include/HepMC3/GenRunInfo.h" 32778: # 1 "/usr/include/c++/9/mutex" 1 3 32778: # 32 "/usr/include/c++/9/mutex" 3 32778: 32778: # 33 "/usr/include/c++/9/mutex" 3 32778: 32778: 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/c++/9/chrono" 1 3 32778: # 32 "/usr/include/c++/9/chrono" 3 32778: 32778: # 33 "/usr/include/c++/9/chrono" 3 32778: 32778: 32778: 32778: 32778: 32778: # 1 "/usr/include/c++/9/ratio" 1 3 32778: # 32 "/usr/include/c++/9/ratio" 3 32778: 32778: # 33 "/usr/include/c++/9/ratio" 3 32778: # 41 "/usr/include/c++/9/ratio" 3 32778: 32778: # 41 "/usr/include/c++/9/ratio" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 53 "/usr/include/c++/9/ratio" 3 32778: template 32778: struct __static_sign 32778: : integral_constant 32778: { }; 32778: 32778: template 32778: struct __static_abs 32778: : integral_constant::value> 32778: { }; 32778: 32778: template 32778: struct __static_gcd 32778: : __static_gcd<_Qn, (_Pn % _Qn)> 32778: { }; 32778: 32778: template 32778: struct __static_gcd<_Pn, 0> 32778: : integral_constant::value> 32778: { }; 32778: 32778: template 32778: struct __static_gcd<0, _Qn> 32778: : integral_constant::value> 32778: { }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct __safe_multiply 32778: { 32778: private: 32778: static const uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 32778: 32778: static const uintmax_t __a0 = __static_abs<_Pn>::value % __c; 32778: static const uintmax_t __a1 = __static_abs<_Pn>::value / __c; 32778: static const uintmax_t __b0 = __static_abs<_Qn>::value % __c; 32778: static const uintmax_t __b1 = __static_abs<_Qn>::value / __c; 32778: 32778: static_assert(__a1 == 0 || __b1 == 0, 32778: "overflow in multiplication"); 32778: static_assert(__a0 * __b1 + __b0 * __a1 < (__c >> 1), 32778: "overflow in multiplication"); 32778: static_assert(__b0 * __a0 <= 0x7fffffffffffffffL, 32778: "overflow in multiplication"); 32778: static_assert((__a0 * __b1 + __b0 * __a1) * __c 32778: <= 0x7fffffffffffffffL - __b0 * __a0, 32778: "overflow in multiplication"); 32778: 32778: public: 32778: static const intmax_t value = _Pn * _Qn; 32778: }; 32778: 32778: 32778: 32778: template 32778: struct __big_less 32778: : integral_constant 32778: { }; 32778: 32778: template 32778: struct __big_add 32778: { 32778: static constexpr uintmax_t __lo = __lo1 + __lo2; 32778: static constexpr uintmax_t __hi = (__hi1 + __hi2 + 32778: (__lo1 + __lo2 < __lo1)); 32778: }; 32778: 32778: 32778: template 32778: struct __big_sub 32778: { 32778: static_assert(!__big_less<__hi1, __lo1, __hi2, __lo2>::value, 32778: "Internal library error"); 32778: static constexpr uintmax_t __lo = __lo1 - __lo2; 32778: static constexpr uintmax_t __hi = (__hi1 - __hi2 - 32778: (__lo1 < __lo2)); 32778: }; 32778: 32778: 32778: template 32778: struct __big_mul 32778: { 32778: private: 32778: static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 32778: static constexpr uintmax_t __x0 = __x % __c; 32778: static constexpr uintmax_t __x1 = __x / __c; 32778: static constexpr uintmax_t __y0 = __y % __c; 32778: static constexpr uintmax_t __y1 = __y / __c; 32778: static constexpr uintmax_t __x0y0 = __x0 * __y0; 32778: static constexpr uintmax_t __x0y1 = __x0 * __y1; 32778: static constexpr uintmax_t __x1y0 = __x1 * __y0; 32778: static constexpr uintmax_t __x1y1 = __x1 * __y1; 32778: static constexpr uintmax_t __mix = __x0y1 + __x1y0; 32778: static constexpr uintmax_t __mix_lo = __mix * __c; 32778: static constexpr uintmax_t __mix_hi 32778: = __mix / __c + ((__mix < __x0y1) ? __c : 0); 32778: typedef __big_add<__mix_hi, __mix_lo, __x1y1, __x0y0> _Res; 32778: public: 32778: static constexpr uintmax_t __hi = _Res::__hi; 32778: static constexpr uintmax_t __lo = _Res::__lo; 32778: }; 32778: 32778: 32778: 32778: template 32778: struct __big_div_impl 32778: { 32778: private: 32778: static_assert(__d >= (uintmax_t(1) << (sizeof(intmax_t) * 8 - 1)), 32778: "Internal library error"); 32778: static_assert(__n1 < __d, "Internal library error"); 32778: static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 32778: static constexpr uintmax_t __d1 = __d / __c; 32778: static constexpr uintmax_t __d0 = __d % __c; 32778: 32778: static constexpr uintmax_t __q1x = __n1 / __d1; 32778: static constexpr uintmax_t __r1x = __n1 % __d1; 32778: static constexpr uintmax_t __m = __q1x * __d0; 32778: static constexpr uintmax_t __r1y = __r1x * __c + __n0 / __c; 32778: static constexpr uintmax_t __r1z = __r1y + __d; 32778: static constexpr uintmax_t __r1 32778: = ((__r1y < __m) ? ((__r1z >= __d) && (__r1z < __m)) 32778: ? (__r1z + __d) : __r1z : __r1y) - __m; 32778: static constexpr uintmax_t __q1 32778: = __q1x - ((__r1y < __m) 32778: ? ((__r1z >= __d) && (__r1z < __m)) ? 2 : 1 : 0); 32778: static constexpr uintmax_t __q0x = __r1 / __d1; 32778: static constexpr uintmax_t __r0x = __r1 % __d1; 32778: static constexpr uintmax_t __n = __q0x * __d0; 32778: static constexpr uintmax_t __r0y = __r0x * __c + __n0 % __c; 32778: static constexpr uintmax_t __r0z = __r0y + __d; 32778: static constexpr uintmax_t __r0 32778: = ((__r0y < __n) ? ((__r0z >= __d) && (__r0z < __n)) 32778: ? (__r0z + __d) : __r0z : __r0y) - __n; 32778: static constexpr uintmax_t __q0 32778: = __q0x - ((__r0y < __n) ? ((__r0z >= __d) 32778: && (__r0z < __n)) ? 2 : 1 : 0); 32778: 32778: public: 32778: static constexpr uintmax_t __quot = __q1 * __c + __q0; 32778: static constexpr uintmax_t __rem = __r0; 32778: 32778: private: 32778: typedef __big_mul<__quot, __d> _Prod; 32778: typedef __big_add<_Prod::__hi, _Prod::__lo, 0, __rem> _Sum; 32778: static_assert(_Sum::__hi == __n1 && _Sum::__lo == __n0, 32778: "Internal library error"); 32778: }; 32778: 32778: template 32778: struct __big_div 32778: { 32778: private: 32778: static_assert(__d != 0, "Internal library error"); 32778: static_assert(sizeof (uintmax_t) == sizeof (unsigned long long), 32778: "This library calls __builtin_clzll on uintmax_t, which " 32778: "is unsafe on your platform. Please complain to " 32778: "http://gcc.gnu.org/bugzilla/"); 32778: static constexpr int __shift = __builtin_clzll(__d); 32778: static constexpr int __coshift_ = sizeof(uintmax_t) * 8 - __shift; 32778: static constexpr int __coshift = (__shift != 0) ? __coshift_ : 0; 32778: static constexpr uintmax_t __c1 = uintmax_t(1) << __shift; 32778: static constexpr uintmax_t __c2 = uintmax_t(1) << __coshift; 32778: static constexpr uintmax_t __new_d = __d * __c1; 32778: static constexpr uintmax_t __new_n0 = __n0 * __c1; 32778: static constexpr uintmax_t __n1_shifted = (__n1 % __d) * __c1; 32778: static constexpr uintmax_t __n0_top = (__shift != 0) ? (__n0 / __c2) : 0; 32778: static constexpr uintmax_t __new_n1 = __n1_shifted + __n0_top; 32778: typedef __big_div_impl<__new_n1, __new_n0, __new_d> _Res; 32778: 32778: public: 32778: static constexpr uintmax_t __quot_hi = __n1 / __d; 32778: static constexpr uintmax_t __quot_lo = _Res::__quot; 32778: static constexpr uintmax_t __rem = _Res::__rem / __c1; 32778: 32778: private: 32778: typedef __big_mul<__quot_lo, __d> _P0; 32778: typedef __big_mul<__quot_hi, __d> _P1; 32778: typedef __big_add<_P0::__hi, _P0::__lo, _P1::__lo, __rem> _Sum; 32778: 32778: static_assert(_P1::__hi == 0, "Internal library error"); 32778: static_assert(_Sum::__hi >= _P0::__hi, "Internal library error"); 32778: 32778: static_assert(_Sum::__hi == __n1 && _Sum::__lo == __n0, 32778: "Internal library error"); 32778: static_assert(__rem < __d, "Internal library error"); 32778: }; 32778: # 260 "/usr/include/c++/9/ratio" 3 32778: template 32778: struct ratio 32778: { 32778: static_assert(_Den != 0, "denominator cannot be zero"); 32778: static_assert(_Num >= -0x7fffffffffffffffL && _Den >= -0x7fffffffffffffffL, 32778: "out of range"); 32778: 32778: 32778: static constexpr intmax_t num = 32778: _Num * __static_sign<_Den>::value / __static_gcd<_Num, _Den>::value; 32778: 32778: static constexpr intmax_t den = 32778: __static_abs<_Den>::value / __static_gcd<_Num, _Den>::value; 32778: 32778: typedef ratio type; 32778: }; 32778: 32778: template 32778: constexpr intmax_t ratio<_Num, _Den>::num; 32778: 32778: template 32778: constexpr intmax_t ratio<_Num, _Den>::den; 32778: 32778: template 32778: struct __ratio_multiply 32778: { 32778: private: 32778: static const intmax_t __gcd1 = 32778: __static_gcd<_R1::num, _R2::den>::value; 32778: static const intmax_t __gcd2 = 32778: __static_gcd<_R2::num, _R1::den>::value; 32778: 32778: public: 32778: typedef ratio< 32778: __safe_multiply<(_R1::num / __gcd1), 32778: (_R2::num / __gcd2)>::value, 32778: __safe_multiply<(_R1::den / __gcd2), 32778: (_R2::den / __gcd1)>::value> type; 32778: 32778: static constexpr intmax_t num = type::num; 32778: static constexpr intmax_t den = type::den; 32778: }; 32778: 32778: template 32778: constexpr intmax_t __ratio_multiply<_R1, _R2>::num; 32778: 32778: template 32778: constexpr intmax_t __ratio_multiply<_R1, _R2>::den; 32778: 32778: 32778: template 32778: using ratio_multiply = typename __ratio_multiply<_R1, _R2>::type; 32778: 32778: template 32778: struct __ratio_divide 32778: { 32778: static_assert(_R2::num != 0, "division by 0"); 32778: 32778: typedef typename __ratio_multiply< 32778: _R1, 32778: ratio<_R2::den, _R2::num>>::type type; 32778: 32778: static constexpr intmax_t num = type::num; 32778: static constexpr intmax_t den = type::den; 32778: }; 32778: 32778: template 32778: constexpr intmax_t __ratio_divide<_R1, _R2>::num; 32778: 32778: template 32778: constexpr intmax_t __ratio_divide<_R1, _R2>::den; 32778: 32778: 32778: template 32778: using ratio_divide = typename __ratio_divide<_R1, _R2>::type; 32778: 32778: 32778: template 32778: struct ratio_equal 32778: : integral_constant 32778: { }; 32778: 32778: 32778: template 32778: struct ratio_not_equal 32778: : integral_constant::value> 32778: { }; 32778: 32778: 32778: template, 32778: typename _Right = __big_mul<_R2::num,_R1::den> > 32778: struct __ratio_less_impl_1 32778: : integral_constant::value> 32778: { }; 32778: 32778: template::value 32778: != __static_sign<_R2::num>::value)), 32778: bool = (__static_sign<_R1::num>::value == -1 32778: && __static_sign<_R2::num>::value == -1)> 32778: struct __ratio_less_impl 32778: : __ratio_less_impl_1<_R1, _R2>::type 32778: { }; 32778: 32778: template 32778: struct __ratio_less_impl<_R1, _R2, true, false> 32778: : integral_constant 32778: { }; 32778: 32778: template 32778: struct __ratio_less_impl<_R1, _R2, false, true> 32778: : __ratio_less_impl_1, 32778: ratio<-_R1::num, _R1::den> >::type 32778: { }; 32778: 32778: 32778: template 32778: struct ratio_less 32778: : __ratio_less_impl<_R1, _R2>::type 32778: { }; 32778: 32778: 32778: template 32778: struct ratio_less_equal 32778: : integral_constant::value> 32778: { }; 32778: 32778: 32778: template 32778: struct ratio_greater 32778: : integral_constant::value> 32778: { }; 32778: 32778: 32778: template 32778: struct ratio_greater_equal 32778: : integral_constant::value> 32778: { }; 32778: # 419 "/usr/include/c++/9/ratio" 3 32778: template= 0), 32778: bool = (_R2::num >= 0), 32778: bool = ratio_less::value, _R1::den>, 32778: ratio<__static_abs<_R2::num>::value, _R2::den> >::value> 32778: struct __ratio_add_impl 32778: { 32778: private: 32778: typedef typename __ratio_add_impl< 32778: ratio<-_R1::num, _R1::den>, 32778: ratio<-_R2::num, _R2::den> >::type __t; 32778: public: 32778: typedef ratio<-__t::num, __t::den> type; 32778: }; 32778: 32778: 32778: template 32778: struct __ratio_add_impl<_R1, _R2, true, true, __b> 32778: { 32778: private: 32778: static constexpr uintmax_t __g = __static_gcd<_R1::den, _R2::den>::value; 32778: static constexpr uintmax_t __d2 = _R2::den / __g; 32778: typedef __big_mul<_R1::den, __d2> __d; 32778: typedef __big_mul<_R1::num, _R2::den / __g> __x; 32778: typedef __big_mul<_R2::num, _R1::den / __g> __y; 32778: typedef __big_add<__x::__hi, __x::__lo, __y::__hi, __y::__lo> __n; 32778: static_assert(__n::__hi >= __x::__hi, "Internal library error"); 32778: typedef __big_div<__n::__hi, __n::__lo, __g> __ng; 32778: static constexpr uintmax_t __g2 = __static_gcd<__ng::__rem, __g>::value; 32778: typedef __big_div<__n::__hi, __n::__lo, __g2> __n_final; 32778: static_assert(__n_final::__rem == 0, "Internal library error"); 32778: static_assert(__n_final::__quot_hi == 0 && 32778: __n_final::__quot_lo <= 0x7fffffffffffffffL, "overflow in addition"); 32778: typedef __big_mul<_R1::den / __g2, __d2> __d_final; 32778: static_assert(__d_final::__hi == 0 && 32778: __d_final::__lo <= 0x7fffffffffffffffL, "overflow in addition"); 32778: public: 32778: typedef ratio<__n_final::__quot_lo, __d_final::__lo> type; 32778: }; 32778: 32778: template 32778: struct __ratio_add_impl<_R1, _R2, false, true, true> 32778: : __ratio_add_impl<_R2, _R1> 32778: { }; 32778: 32778: 32778: template 32778: struct __ratio_add_impl<_R1, _R2, true, false, false> 32778: { 32778: private: 32778: static constexpr uintmax_t __g = __static_gcd<_R1::den, _R2::den>::value; 32778: static constexpr uintmax_t __d2 = _R2::den / __g; 32778: typedef __big_mul<_R1::den, __d2> __d; 32778: typedef __big_mul<_R1::num, _R2::den / __g> __x; 32778: typedef __big_mul<-_R2::num, _R1::den / __g> __y; 32778: typedef __big_sub<__x::__hi, __x::__lo, __y::__hi, __y::__lo> __n; 32778: typedef __big_div<__n::__hi, __n::__lo, __g> __ng; 32778: static constexpr uintmax_t __g2 = __static_gcd<__ng::__rem, __g>::value; 32778: typedef __big_div<__n::__hi, __n::__lo, __g2> __n_final; 32778: static_assert(__n_final::__rem == 0, "Internal library error"); 32778: static_assert(__n_final::__quot_hi == 0 && 32778: __n_final::__quot_lo <= 0x7fffffffffffffffL, "overflow in addition"); 32778: typedef __big_mul<_R1::den / __g2, __d2> __d_final; 32778: static_assert(__d_final::__hi == 0 && 32778: __d_final::__lo <= 0x7fffffffffffffffL, "overflow in addition"); 32778: public: 32778: typedef ratio<__n_final::__quot_lo, __d_final::__lo> type; 32778: }; 32778: 32778: template 32778: struct __ratio_add 32778: { 32778: typedef typename __ratio_add_impl<_R1, _R2>::type type; 32778: static constexpr intmax_t num = type::num; 32778: static constexpr intmax_t den = type::den; 32778: }; 32778: 32778: template 32778: constexpr intmax_t __ratio_add<_R1, _R2>::num; 32778: 32778: template 32778: constexpr intmax_t __ratio_add<_R1, _R2>::den; 32778: 32778: 32778: template 32778: using ratio_add = typename __ratio_add<_R1, _R2>::type; 32778: 32778: template 32778: struct __ratio_subtract 32778: { 32778: typedef typename __ratio_add< 32778: _R1, 32778: ratio<-_R2::num, _R2::den>>::type type; 32778: 32778: static constexpr intmax_t num = type::num; 32778: static constexpr intmax_t den = type::den; 32778: }; 32778: 32778: template 32778: constexpr intmax_t __ratio_subtract<_R1, _R2>::num; 32778: 32778: template 32778: constexpr intmax_t __ratio_subtract<_R1, _R2>::den; 32778: 32778: 32778: template 32778: using ratio_subtract = typename __ratio_subtract<_R1, _R2>::type; 32778: 32778: 32778: typedef ratio<1, 1000000000000000000> atto; 32778: typedef ratio<1, 1000000000000000> femto; 32778: typedef ratio<1, 1000000000000> pico; 32778: typedef ratio<1, 1000000000> nano; 32778: typedef ratio<1, 1000000> micro; 32778: typedef ratio<1, 1000> milli; 32778: typedef ratio<1, 100> centi; 32778: typedef ratio<1, 10> deci; 32778: typedef ratio< 10, 1> deca; 32778: typedef ratio< 100, 1> hecto; 32778: typedef ratio< 1000, 1> kilo; 32778: typedef ratio< 1000000, 1> mega; 32778: typedef ratio< 1000000000, 1> giga; 32778: typedef ratio< 1000000000000, 1> tera; 32778: typedef ratio< 1000000000000000, 1> peta; 32778: typedef ratio< 1000000000000000000, 1> exa; 32778: 32778: 32778: 32778: } 32778: # 39 "/usr/include/c++/9/chrono" 2 3 32778: 32778: 32778: # 1 "/usr/include/c++/9/ctime" 1 3 32778: # 39 "/usr/include/c++/9/ctime" 3 32778: 32778: # 40 "/usr/include/c++/9/ctime" 3 32778: # 42 "/usr/include/c++/9/chrono" 2 3 32778: # 1 "/usr/include/c++/9/bits/parse_numbers.h" 1 3 32778: # 33 "/usr/include/c++/9/bits/parse_numbers.h" 3 32778: 32778: # 34 "/usr/include/c++/9/bits/parse_numbers.h" 3 32778: # 43 "/usr/include/c++/9/chrono" 2 3 32778: 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 59 "/usr/include/c++/9/chrono" 3 32778: namespace chrono 32778: { 32778: template> 32778: struct duration; 32778: 32778: template 32778: struct time_point; 32778: } 32778: 32778: 32778: 32778: template 32778: struct __duration_common_type_wrapper 32778: { 32778: private: 32778: typedef __static_gcd<_Period1::num, _Period2::num> __gcd_num; 32778: typedef __static_gcd<_Period1::den, _Period2::den> __gcd_den; 32778: typedef typename _CT::type __cr; 32778: typedef ratio<__gcd_num::value, 32778: (_Period1::den / __gcd_den::value) * _Period2::den> __r; 32778: public: 32778: typedef __success_type> type; 32778: }; 32778: 32778: template 32778: struct __duration_common_type_wrapper<__failure_type, _Period1, _Period2> 32778: { typedef __failure_type type; }; 32778: 32778: template 32778: struct common_type, 32778: chrono::duration<_Rep2, _Period2>> 32778: : public __duration_common_type_wrapper>::type, _Period1, _Period2>::type 32778: { }; 32778: 32778: 32778: 32778: template 32778: struct __timepoint_common_type_wrapper 32778: { 32778: typedef __success_type> 32778: type; 32778: }; 32778: 32778: template 32778: struct __timepoint_common_type_wrapper<__failure_type, _Clock> 32778: { typedef __failure_type type; }; 32778: 32778: template 32778: struct common_type, 32778: chrono::time_point<_Clock, _Duration2>> 32778: : public __timepoint_common_type_wrapper>::type, _Clock>::type 32778: { }; 32778: 32778: namespace chrono 32778: { 32778: 32778: template 32778: struct __duration_cast_impl 32778: { 32778: template 32778: static constexpr _ToDur 32778: __cast(const duration<_Rep, _Period>& __d) 32778: { 32778: typedef typename _ToDur::rep __to_rep; 32778: return _ToDur(static_cast<__to_rep>(static_cast<_CR>(__d.count()) 32778: * static_cast<_CR>(_CF::num) 32778: / static_cast<_CR>(_CF::den))); 32778: } 32778: }; 32778: 32778: template 32778: struct __duration_cast_impl<_ToDur, _CF, _CR, true, true> 32778: { 32778: template 32778: static constexpr _ToDur 32778: __cast(const duration<_Rep, _Period>& __d) 32778: { 32778: typedef typename _ToDur::rep __to_rep; 32778: return _ToDur(static_cast<__to_rep>(__d.count())); 32778: } 32778: }; 32778: 32778: template 32778: struct __duration_cast_impl<_ToDur, _CF, _CR, true, false> 32778: { 32778: template 32778: static constexpr _ToDur 32778: __cast(const duration<_Rep, _Period>& __d) 32778: { 32778: typedef typename _ToDur::rep __to_rep; 32778: return _ToDur(static_cast<__to_rep>( 32778: static_cast<_CR>(__d.count()) / static_cast<_CR>(_CF::den))); 32778: } 32778: }; 32778: 32778: template 32778: struct __duration_cast_impl<_ToDur, _CF, _CR, false, true> 32778: { 32778: template 32778: static constexpr _ToDur 32778: __cast(const duration<_Rep, _Period>& __d) 32778: { 32778: typedef typename _ToDur::rep __to_rep; 32778: return _ToDur(static_cast<__to_rep>( 32778: static_cast<_CR>(__d.count()) * static_cast<_CR>(_CF::num))); 32778: } 32778: }; 32778: 32778: template 32778: struct __is_duration 32778: : std::false_type 32778: { }; 32778: 32778: template 32778: struct __is_duration> 32778: : std::true_type 32778: { }; 32778: 32778: template 32778: using __enable_if_is_duration 32778: = typename enable_if<__is_duration<_Tp>::value, _Tp>::type; 32778: 32778: template 32778: using __disable_if_is_duration 32778: = typename enable_if::value, _Tp>::type; 32778: 32778: 32778: template 32778: constexpr __enable_if_is_duration<_ToDur> 32778: duration_cast(const duration<_Rep, _Period>& __d) 32778: { 32778: typedef typename _ToDur::period __to_period; 32778: typedef typename _ToDur::rep __to_rep; 32778: typedef ratio_divide<_Period, __to_period> __cf; 32778: typedef typename common_type<__to_rep, _Rep, intmax_t>::type 32778: __cr; 32778: typedef __duration_cast_impl<_ToDur, __cf, __cr, 32778: __cf::num == 1, __cf::den == 1> __dc; 32778: return __dc::__cast(__d); 32778: } 32778: 32778: 32778: template 32778: struct treat_as_floating_point 32778: : is_floating_point<_Rep> 32778: { }; 32778: # 272 "/usr/include/c++/9/chrono" 3 32778: template 32778: struct duration_values 32778: { 32778: static constexpr _Rep 32778: zero() noexcept 32778: { return _Rep(0); } 32778: 32778: static constexpr _Rep 32778: max() noexcept 32778: { return numeric_limits<_Rep>::max(); } 32778: 32778: static constexpr _Rep 32778: min() noexcept 32778: { return numeric_limits<_Rep>::lowest(); } 32778: }; 32778: 32778: template 32778: struct __is_ratio 32778: : std::false_type 32778: { }; 32778: 32778: template 32778: struct __is_ratio> 32778: : std::true_type 32778: { }; 32778: 32778: 32778: template 32778: struct duration 32778: { 32778: private: 32778: template 32778: using __is_float = treat_as_floating_point<_Rep2>; 32778: 32778: 32778: template 32778: using __is_harmonic 32778: = __bool_constant::den == 1>; 32778: 32778: public: 32778: 32778: typedef _Rep rep; 32778: typedef _Period period; 32778: 32778: static_assert(!__is_duration<_Rep>::value, "rep cannot be a duration"); 32778: static_assert(__is_ratio<_Period>::value, 32778: "period must be a specialization of ratio"); 32778: static_assert(_Period::num > 0, "period must be positive"); 32778: 32778: 32778: constexpr duration() = default; 32778: 32778: duration(const duration&) = default; 32778: 32778: 32778: 32778: template, 32778: __or_<__is_float, __not_<__is_float<_Rep2>>>>> 32778: constexpr explicit duration(const _Rep2& __rep) 32778: : __r(static_cast(__rep)) { } 32778: 32778: template, 32778: __and_<__is_harmonic<_Period2>, 32778: __not_<__is_float<_Rep2>>>>>> 32778: constexpr duration(const duration<_Rep2, _Period2>& __d) 32778: : __r(duration_cast(__d).count()) { } 32778: 32778: ~duration() = default; 32778: duration& operator=(const duration&) = default; 32778: 32778: 32778: constexpr rep 32778: count() const 32778: { return __r; } 32778: 32778: 32778: constexpr duration 32778: operator+() const 32778: { return *this; } 32778: 32778: constexpr duration 32778: operator-() const 32778: { return duration(-__r); } 32778: 32778: duration& 32778: operator++() 32778: { 32778: ++__r; 32778: return *this; 32778: } 32778: 32778: duration 32778: operator++(int) 32778: { return duration(__r++); } 32778: 32778: duration& 32778: operator--() 32778: { 32778: --__r; 32778: return *this; 32778: } 32778: 32778: duration 32778: operator--(int) 32778: { return duration(__r--); } 32778: 32778: duration& 32778: operator+=(const duration& __d) 32778: { 32778: __r += __d.count(); 32778: return *this; 32778: } 32778: 32778: duration& 32778: operator-=(const duration& __d) 32778: { 32778: __r -= __d.count(); 32778: return *this; 32778: } 32778: 32778: duration& 32778: operator*=(const rep& __rhs) 32778: { 32778: __r *= __rhs; 32778: return *this; 32778: } 32778: 32778: duration& 32778: operator/=(const rep& __rhs) 32778: { 32778: __r /= __rhs; 32778: return *this; 32778: } 32778: 32778: 32778: template 32778: 32778: typename enable_if::value, 32778: duration&>::type 32778: operator%=(const rep& __rhs) 32778: { 32778: __r %= __rhs; 32778: return *this; 32778: } 32778: 32778: template 32778: 32778: typename enable_if::value, 32778: duration&>::type 32778: operator%=(const duration& __d) 32778: { 32778: __r %= __d.count(); 32778: return *this; 32778: } 32778: 32778: 32778: static constexpr duration 32778: zero() noexcept 32778: { return duration(duration_values::zero()); } 32778: 32778: static constexpr duration 32778: min() noexcept 32778: { return duration(duration_values::min()); } 32778: 32778: static constexpr duration 32778: max() noexcept 32778: { return duration(duration_values::max()); } 32778: 32778: private: 32778: rep __r; 32778: }; 32778: 32778: template 32778: constexpr typename common_type, 32778: duration<_Rep2, _Period2>>::type 32778: operator+(const duration<_Rep1, _Period1>& __lhs, 32778: const duration<_Rep2, _Period2>& __rhs) 32778: { 32778: typedef duration<_Rep1, _Period1> __dur1; 32778: typedef duration<_Rep2, _Period2> __dur2; 32778: typedef typename common_type<__dur1,__dur2>::type __cd; 32778: return __cd(__cd(__lhs).count() + __cd(__rhs).count()); 32778: } 32778: 32778: template 32778: constexpr typename common_type, 32778: duration<_Rep2, _Period2>>::type 32778: operator-(const duration<_Rep1, _Period1>& __lhs, 32778: const duration<_Rep2, _Period2>& __rhs) 32778: { 32778: typedef duration<_Rep1, _Period1> __dur1; 32778: typedef duration<_Rep2, _Period2> __dur2; 32778: typedef typename common_type<__dur1,__dur2>::type __cd; 32778: return __cd(__cd(__lhs).count() - __cd(__rhs).count()); 32778: } 32778: 32778: 32778: 32778: 32778: 32778: template::type> 32778: using __common_rep_t = typename 32778: enable_if::value, _CRep>::type; 32778: 32778: template 32778: constexpr duration<__common_rep_t<_Rep1, _Rep2>, _Period> 32778: operator*(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 32778: { 32778: typedef duration::type, _Period> 32778: __cd; 32778: return __cd(__cd(__d).count() * __s); 32778: } 32778: 32778: template 32778: constexpr duration<__common_rep_t<_Rep2, _Rep1>, _Period> 32778: operator*(const _Rep1& __s, const duration<_Rep2, _Period>& __d) 32778: { return __d * __s; } 32778: 32778: template 32778: constexpr 32778: duration<__common_rep_t<_Rep1, __disable_if_is_duration<_Rep2>>, _Period> 32778: operator/(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 32778: { 32778: typedef duration::type, _Period> 32778: __cd; 32778: return __cd(__cd(__d).count() / __s); 32778: } 32778: 32778: template 32778: constexpr typename common_type<_Rep1, _Rep2>::type 32778: operator/(const duration<_Rep1, _Period1>& __lhs, 32778: const duration<_Rep2, _Period2>& __rhs) 32778: { 32778: typedef duration<_Rep1, _Period1> __dur1; 32778: typedef duration<_Rep2, _Period2> __dur2; 32778: typedef typename common_type<__dur1,__dur2>::type __cd; 32778: return __cd(__lhs).count() / __cd(__rhs).count(); 32778: } 32778: 32778: 32778: template 32778: constexpr 32778: duration<__common_rep_t<_Rep1, __disable_if_is_duration<_Rep2>>, _Period> 32778: operator%(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 32778: { 32778: typedef duration::type, _Period> 32778: __cd; 32778: return __cd(__cd(__d).count() % __s); 32778: } 32778: 32778: template 32778: constexpr typename common_type, 32778: duration<_Rep2, _Period2>>::type 32778: operator%(const duration<_Rep1, _Period1>& __lhs, 32778: const duration<_Rep2, _Period2>& __rhs) 32778: { 32778: typedef duration<_Rep1, _Period1> __dur1; 32778: typedef duration<_Rep2, _Period2> __dur2; 32778: typedef typename common_type<__dur1,__dur2>::type __cd; 32778: return __cd(__cd(__lhs).count() % __cd(__rhs).count()); 32778: } 32778: 32778: 32778: template 32778: constexpr bool 32778: operator==(const duration<_Rep1, _Period1>& __lhs, 32778: const duration<_Rep2, _Period2>& __rhs) 32778: { 32778: typedef duration<_Rep1, _Period1> __dur1; 32778: typedef duration<_Rep2, _Period2> __dur2; 32778: typedef typename common_type<__dur1,__dur2>::type __ct; 32778: return __ct(__lhs).count() == __ct(__rhs).count(); 32778: } 32778: 32778: template 32778: constexpr bool 32778: operator<(const duration<_Rep1, _Period1>& __lhs, 32778: const duration<_Rep2, _Period2>& __rhs) 32778: { 32778: typedef duration<_Rep1, _Period1> __dur1; 32778: typedef duration<_Rep2, _Period2> __dur2; 32778: typedef typename common_type<__dur1,__dur2>::type __ct; 32778: return __ct(__lhs).count() < __ct(__rhs).count(); 32778: } 32778: 32778: template 32778: constexpr bool 32778: operator!=(const duration<_Rep1, _Period1>& __lhs, 32778: const duration<_Rep2, _Period2>& __rhs) 32778: { return !(__lhs == __rhs); } 32778: 32778: template 32778: constexpr bool 32778: operator<=(const duration<_Rep1, _Period1>& __lhs, 32778: const duration<_Rep2, _Period2>& __rhs) 32778: { return !(__rhs < __lhs); } 32778: 32778: template 32778: constexpr bool 32778: operator>(const duration<_Rep1, _Period1>& __lhs, 32778: const duration<_Rep2, _Period2>& __rhs) 32778: { return __rhs < __lhs; } 32778: 32778: template 32778: constexpr bool 32778: operator>=(const duration<_Rep1, _Period1>& __lhs, 32778: const duration<_Rep2, _Period2>& __rhs) 32778: { return !(__lhs < __rhs); } 32778: # 605 "/usr/include/c++/9/chrono" 3 32778: typedef duration nanoseconds; 32778: 32778: 32778: typedef duration microseconds; 32778: 32778: 32778: typedef duration milliseconds; 32778: 32778: 32778: typedef duration seconds; 32778: 32778: 32778: typedef duration> minutes; 32778: 32778: 32778: typedef duration> hours; 32778: 32778: 32778: 32778: 32778: template 32778: struct time_point 32778: { 32778: typedef _Clock clock; 32778: typedef _Dur duration; 32778: typedef typename duration::rep rep; 32778: typedef typename duration::period period; 32778: 32778: constexpr time_point() : __d(duration::zero()) 32778: { } 32778: 32778: constexpr explicit time_point(const duration& __dur) 32778: : __d(__dur) 32778: { } 32778: 32778: 32778: template>> 32778: constexpr time_point(const time_point& __t) 32778: : __d(__t.time_since_epoch()) 32778: { } 32778: 32778: 32778: constexpr duration 32778: time_since_epoch() const 32778: { return __d; } 32778: 32778: 32778: time_point& 32778: operator+=(const duration& __dur) 32778: { 32778: __d += __dur; 32778: return *this; 32778: } 32778: 32778: time_point& 32778: operator-=(const duration& __dur) 32778: { 32778: __d -= __dur; 32778: return *this; 32778: } 32778: 32778: 32778: static constexpr time_point 32778: min() noexcept 32778: { return time_point(duration::min()); } 32778: 32778: static constexpr time_point 32778: max() noexcept 32778: { return time_point(duration::max()); } 32778: 32778: private: 32778: duration __d; 32778: }; 32778: 32778: 32778: template 32778: constexpr typename enable_if<__is_duration<_ToDur>::value, 32778: time_point<_Clock, _ToDur>>::type 32778: time_point_cast(const time_point<_Clock, _Dur>& __t) 32778: { 32778: typedef time_point<_Clock, _ToDur> __time_point; 32778: return __time_point(duration_cast<_ToDur>(__t.time_since_epoch())); 32778: } 32778: # 721 "/usr/include/c++/9/chrono" 3 32778: template 32778: constexpr time_point<_Clock, 32778: typename common_type<_Dur1, duration<_Rep2, _Period2>>::type> 32778: operator+(const time_point<_Clock, _Dur1>& __lhs, 32778: const duration<_Rep2, _Period2>& __rhs) 32778: { 32778: typedef duration<_Rep2, _Period2> __dur2; 32778: typedef typename common_type<_Dur1,__dur2>::type __ct; 32778: typedef time_point<_Clock, __ct> __time_point; 32778: return __time_point(__lhs.time_since_epoch() + __rhs); 32778: } 32778: 32778: template 32778: constexpr time_point<_Clock, 32778: typename common_type, _Dur2>::type> 32778: operator+(const duration<_Rep1, _Period1>& __lhs, 32778: const time_point<_Clock, _Dur2>& __rhs) 32778: { 32778: typedef duration<_Rep1, _Period1> __dur1; 32778: typedef typename common_type<__dur1,_Dur2>::type __ct; 32778: typedef time_point<_Clock, __ct> __time_point; 32778: return __time_point(__rhs.time_since_epoch() + __lhs); 32778: } 32778: 32778: template 32778: constexpr time_point<_Clock, 32778: typename common_type<_Dur1, duration<_Rep2, _Period2>>::type> 32778: operator-(const time_point<_Clock, _Dur1>& __lhs, 32778: const duration<_Rep2, _Period2>& __rhs) 32778: { 32778: typedef duration<_Rep2, _Period2> __dur2; 32778: typedef typename common_type<_Dur1,__dur2>::type __ct; 32778: typedef time_point<_Clock, __ct> __time_point; 32778: return __time_point(__lhs.time_since_epoch() -__rhs); 32778: } 32778: 32778: template 32778: constexpr typename common_type<_Dur1, _Dur2>::type 32778: operator-(const time_point<_Clock, _Dur1>& __lhs, 32778: const time_point<_Clock, _Dur2>& __rhs) 32778: { return __lhs.time_since_epoch() - __rhs.time_since_epoch(); } 32778: 32778: template 32778: constexpr bool 32778: operator==(const time_point<_Clock, _Dur1>& __lhs, 32778: const time_point<_Clock, _Dur2>& __rhs) 32778: { return __lhs.time_since_epoch() == __rhs.time_since_epoch(); } 32778: 32778: template 32778: constexpr bool 32778: operator!=(const time_point<_Clock, _Dur1>& __lhs, 32778: const time_point<_Clock, _Dur2>& __rhs) 32778: { return !(__lhs == __rhs); } 32778: 32778: template 32778: constexpr bool 32778: operator<(const time_point<_Clock, _Dur1>& __lhs, 32778: const time_point<_Clock, _Dur2>& __rhs) 32778: { return __lhs.time_since_epoch() < __rhs.time_since_epoch(); } 32778: 32778: template 32778: constexpr bool 32778: operator<=(const time_point<_Clock, _Dur1>& __lhs, 32778: const time_point<_Clock, _Dur2>& __rhs) 32778: { return !(__rhs < __lhs); } 32778: 32778: template 32778: constexpr bool 32778: operator>(const time_point<_Clock, _Dur1>& __lhs, 32778: const time_point<_Clock, _Dur2>& __rhs) 32778: { return __rhs < __lhs; } 32778: 32778: template 32778: constexpr bool 32778: operator>=(const time_point<_Clock, _Dur1>& __lhs, 32778: const time_point<_Clock, _Dur2>& __rhs) 32778: { return !(__lhs < __rhs); } 32778: # 821 "/usr/include/c++/9/chrono" 3 32778: inline namespace _V2 { 32778: 32778: 32778: 32778: 32778: 32778: 32778: struct system_clock 32778: { 32778: typedef chrono::nanoseconds duration; 32778: typedef duration::rep rep; 32778: typedef duration::period period; 32778: typedef chrono::time_point time_point; 32778: 32778: static_assert(system_clock::duration::min() 32778: < system_clock::duration::zero(), 32778: "a clock's minimum duration cannot be less than its epoch"); 32778: 32778: static constexpr bool is_steady = false; 32778: 32778: static time_point 32778: now() noexcept; 32778: 32778: 32778: static std::time_t 32778: to_time_t(const time_point& __t) noexcept 32778: { 32778: return std::time_t(duration_cast 32778: (__t.time_since_epoch()).count()); 32778: } 32778: 32778: static time_point 32778: from_time_t(std::time_t __t) noexcept 32778: { 32778: typedef chrono::time_point __from; 32778: return time_point_cast 32778: (__from(chrono::seconds(__t))); 32778: } 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: struct steady_clock 32778: { 32778: typedef chrono::nanoseconds duration; 32778: typedef duration::rep rep; 32778: typedef duration::period period; 32778: typedef chrono::time_point time_point; 32778: 32778: static constexpr bool is_steady = true; 32778: 32778: static time_point 32778: now() noexcept; 32778: }; 32778: # 888 "/usr/include/c++/9/chrono" 3 32778: using high_resolution_clock = system_clock; 32778: 32778: } 32778: } 32778: # 980 "/usr/include/c++/9/chrono" 3 32778: 32778: } 32778: # 40 "/usr/include/c++/9/mutex" 2 3 32778: 32778: 32778: 32778: # 1 "/usr/include/c++/9/bits/std_mutex.h" 1 3 32778: # 33 "/usr/include/c++/9/bits/std_mutex.h" 3 32778: 32778: # 34 "/usr/include/c++/9/bits/std_mutex.h" 3 32778: # 43 "/usr/include/c++/9/bits/std_mutex.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 57 "/usr/include/c++/9/bits/std_mutex.h" 3 32778: class __mutex_base 32778: { 32778: protected: 32778: typedef __gthread_mutex_t __native_type; 32778: 32778: 32778: __native_type _M_mutex = { { 0, 0, 0, 0, PTHREAD_MUTEX_TIMED_NP, 0, { 0, 0 } } }; 32778: 32778: constexpr __mutex_base() noexcept = default; 32778: # 78 "/usr/include/c++/9/bits/std_mutex.h" 3 32778: __mutex_base(const __mutex_base&) = delete; 32778: __mutex_base& operator=(const __mutex_base&) = delete; 32778: }; 32778: 32778: 32778: class mutex : private __mutex_base 32778: { 32778: public: 32778: typedef __native_type* native_handle_type; 32778: 32778: 32778: constexpr 32778: 32778: mutex() noexcept = default; 32778: ~mutex() = default; 32778: 32778: mutex(const mutex&) = delete; 32778: mutex& operator=(const mutex&) = delete; 32778: 32778: void 32778: lock() 32778: { 32778: int __e = __gthread_mutex_lock(&_M_mutex); 32778: 32778: 32778: if (__e) 32778: __throw_system_error(__e); 32778: } 32778: 32778: bool 32778: try_lock() noexcept 32778: { 32778: 32778: return !__gthread_mutex_trylock(&_M_mutex); 32778: } 32778: 32778: void 32778: unlock() 32778: { 32778: 32778: __gthread_mutex_unlock(&_M_mutex); 32778: } 32778: 32778: native_handle_type 32778: native_handle() noexcept 32778: { return &_M_mutex; } 32778: }; 32778: 32778: 32778: 32778: 32778: struct defer_lock_t { explicit defer_lock_t() = default; }; 32778: 32778: 32778: struct try_to_lock_t { explicit try_to_lock_t() = default; }; 32778: 32778: 32778: 32778: struct adopt_lock_t { explicit adopt_lock_t() = default; }; 32778: 32778: 32778: constexpr defer_lock_t defer_lock { }; 32778: 32778: 32778: constexpr try_to_lock_t try_to_lock { }; 32778: 32778: 32778: constexpr adopt_lock_t adopt_lock { }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: class lock_guard 32778: { 32778: public: 32778: typedef _Mutex mutex_type; 32778: 32778: explicit lock_guard(mutex_type& __m) : _M_device(__m) 32778: { _M_device.lock(); } 32778: 32778: lock_guard(mutex_type& __m, adopt_lock_t) noexcept : _M_device(__m) 32778: { } 32778: 32778: ~lock_guard() 32778: { _M_device.unlock(); } 32778: 32778: lock_guard(const lock_guard&) = delete; 32778: lock_guard& operator=(const lock_guard&) = delete; 32778: 32778: private: 32778: mutex_type& _M_device; 32778: }; 32778: 32778: 32778: 32778: } 32778: # 44 "/usr/include/c++/9/mutex" 2 3 32778: # 1 "/usr/include/c++/9/bits/unique_lock.h" 1 3 32778: # 33 "/usr/include/c++/9/bits/unique_lock.h" 3 32778: 32778: # 34 "/usr/include/c++/9/bits/unique_lock.h" 3 32778: # 42 "/usr/include/c++/9/bits/unique_lock.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 58 "/usr/include/c++/9/bits/unique_lock.h" 3 32778: template 32778: class unique_lock 32778: { 32778: public: 32778: typedef _Mutex mutex_type; 32778: 32778: unique_lock() noexcept 32778: : _M_device(0), _M_owns(false) 32778: { } 32778: 32778: explicit unique_lock(mutex_type& __m) 32778: : _M_device(std::__addressof(__m)), _M_owns(false) 32778: { 32778: lock(); 32778: _M_owns = true; 32778: } 32778: 32778: unique_lock(mutex_type& __m, defer_lock_t) noexcept 32778: : _M_device(std::__addressof(__m)), _M_owns(false) 32778: { } 32778: 32778: unique_lock(mutex_type& __m, try_to_lock_t) 32778: : _M_device(std::__addressof(__m)), _M_owns(_M_device->try_lock()) 32778: { } 32778: 32778: unique_lock(mutex_type& __m, adopt_lock_t) noexcept 32778: : _M_device(std::__addressof(__m)), _M_owns(true) 32778: { 32778: 32778: } 32778: 32778: template 32778: unique_lock(mutex_type& __m, 32778: const chrono::time_point<_Clock, _Duration>& __atime) 32778: : _M_device(std::__addressof(__m)), 32778: _M_owns(_M_device->try_lock_until(__atime)) 32778: { } 32778: 32778: template 32778: unique_lock(mutex_type& __m, 32778: const chrono::duration<_Rep, _Period>& __rtime) 32778: : _M_device(std::__addressof(__m)), 32778: _M_owns(_M_device->try_lock_for(__rtime)) 32778: { } 32778: 32778: ~unique_lock() 32778: { 32778: if (_M_owns) 32778: unlock(); 32778: } 32778: 32778: unique_lock(const unique_lock&) = delete; 32778: unique_lock& operator=(const unique_lock&) = delete; 32778: 32778: unique_lock(unique_lock&& __u) noexcept 32778: : _M_device(__u._M_device), _M_owns(__u._M_owns) 32778: { 32778: __u._M_device = 0; 32778: __u._M_owns = false; 32778: } 32778: 32778: unique_lock& operator=(unique_lock&& __u) noexcept 32778: { 32778: if(_M_owns) 32778: unlock(); 32778: 32778: unique_lock(std::move(__u)).swap(*this); 32778: 32778: __u._M_device = 0; 32778: __u._M_owns = false; 32778: 32778: return *this; 32778: } 32778: 32778: void 32778: lock() 32778: { 32778: if (!_M_device) 32778: __throw_system_error(int(errc::operation_not_permitted)); 32778: else if (_M_owns) 32778: __throw_system_error(int(errc::resource_deadlock_would_occur)); 32778: else 32778: { 32778: _M_device->lock(); 32778: _M_owns = true; 32778: } 32778: } 32778: 32778: bool 32778: try_lock() 32778: { 32778: if (!_M_device) 32778: __throw_system_error(int(errc::operation_not_permitted)); 32778: else if (_M_owns) 32778: __throw_system_error(int(errc::resource_deadlock_would_occur)); 32778: else 32778: { 32778: _M_owns = _M_device->try_lock(); 32778: return _M_owns; 32778: } 32778: } 32778: 32778: template 32778: bool 32778: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 32778: { 32778: if (!_M_device) 32778: __throw_system_error(int(errc::operation_not_permitted)); 32778: else if (_M_owns) 32778: __throw_system_error(int(errc::resource_deadlock_would_occur)); 32778: else 32778: { 32778: _M_owns = _M_device->try_lock_until(__atime); 32778: return _M_owns; 32778: } 32778: } 32778: 32778: template 32778: bool 32778: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 32778: { 32778: if (!_M_device) 32778: __throw_system_error(int(errc::operation_not_permitted)); 32778: else if (_M_owns) 32778: __throw_system_error(int(errc::resource_deadlock_would_occur)); 32778: else 32778: { 32778: _M_owns = _M_device->try_lock_for(__rtime); 32778: return _M_owns; 32778: } 32778: } 32778: 32778: void 32778: unlock() 32778: { 32778: if (!_M_owns) 32778: __throw_system_error(int(errc::operation_not_permitted)); 32778: else if (_M_device) 32778: { 32778: _M_device->unlock(); 32778: _M_owns = false; 32778: } 32778: } 32778: 32778: void 32778: swap(unique_lock& __u) noexcept 32778: { 32778: std::swap(_M_device, __u._M_device); 32778: std::swap(_M_owns, __u._M_owns); 32778: } 32778: 32778: mutex_type* 32778: release() noexcept 32778: { 32778: mutex_type* __ret = _M_device; 32778: _M_device = 0; 32778: _M_owns = false; 32778: return __ret; 32778: } 32778: 32778: bool 32778: owns_lock() const noexcept 32778: { return _M_owns; } 32778: 32778: explicit operator bool() const noexcept 32778: { return owns_lock(); } 32778: 32778: mutex_type* 32778: mutex() const noexcept 32778: { return _M_device; } 32778: 32778: private: 32778: mutex_type* _M_device; 32778: bool _M_owns; 32778: }; 32778: 32778: 32778: template 32778: inline void 32778: swap(unique_lock<_Mutex>& __x, unique_lock<_Mutex>& __y) noexcept 32778: { __x.swap(__y); } 32778: 32778: 32778: 32778: } 32778: # 45 "/usr/include/c++/9/mutex" 2 3 32778: # 53 "/usr/include/c++/9/mutex" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 65 "/usr/include/c++/9/mutex" 3 32778: class __recursive_mutex_base 32778: { 32778: protected: 32778: typedef __gthread_recursive_mutex_t __native_type; 32778: 32778: __recursive_mutex_base(const __recursive_mutex_base&) = delete; 32778: __recursive_mutex_base& operator=(const __recursive_mutex_base&) = delete; 32778: 32778: 32778: __native_type _M_mutex = { { 0, 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { 0, 0 } } }; 32778: 32778: __recursive_mutex_base() = default; 32778: # 89 "/usr/include/c++/9/mutex" 3 32778: }; 32778: 32778: 32778: class recursive_mutex : private __recursive_mutex_base 32778: { 32778: public: 32778: typedef __native_type* native_handle_type; 32778: 32778: recursive_mutex() = default; 32778: ~recursive_mutex() = default; 32778: 32778: recursive_mutex(const recursive_mutex&) = delete; 32778: recursive_mutex& operator=(const recursive_mutex&) = delete; 32778: 32778: void 32778: lock() 32778: { 32778: int __e = __gthread_recursive_mutex_lock(&_M_mutex); 32778: 32778: 32778: if (__e) 32778: __throw_system_error(__e); 32778: } 32778: 32778: bool 32778: try_lock() noexcept 32778: { 32778: 32778: return !__gthread_recursive_mutex_trylock(&_M_mutex); 32778: } 32778: 32778: void 32778: unlock() 32778: { 32778: 32778: __gthread_recursive_mutex_unlock(&_M_mutex); 32778: } 32778: 32778: native_handle_type 32778: native_handle() noexcept 32778: { return &_M_mutex; } 32778: }; 32778: 32778: 32778: template 32778: class __timed_mutex_impl 32778: { 32778: protected: 32778: typedef chrono::high_resolution_clock __clock_t; 32778: 32778: template 32778: bool 32778: _M_try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 32778: { 32778: using chrono::steady_clock; 32778: auto __rt = chrono::duration_cast(__rtime); 32778: if (ratio_greater()) 32778: ++__rt; 32778: return _M_try_lock_until(steady_clock::now() + __rt); 32778: } 32778: 32778: template 32778: bool 32778: _M_try_lock_until(const chrono::time_point<__clock_t, 32778: _Duration>& __atime) 32778: { 32778: auto __s = chrono::time_point_cast(__atime); 32778: auto __ns = chrono::duration_cast(__atime - __s); 32778: 32778: __gthread_time_t __ts = { 32778: static_cast(__s.time_since_epoch().count()), 32778: static_cast(__ns.count()) 32778: }; 32778: 32778: return static_cast<_Derived*>(this)->_M_timedlock(__ts); 32778: } 32778: 32778: template 32778: bool 32778: _M_try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 32778: { 32778: auto __rtime = __atime - _Clock::now(); 32778: return _M_try_lock_until(__clock_t::now() + __rtime); 32778: } 32778: }; 32778: 32778: 32778: class timed_mutex 32778: : private __mutex_base, public __timed_mutex_impl 32778: { 32778: public: 32778: typedef __native_type* native_handle_type; 32778: 32778: timed_mutex() = default; 32778: ~timed_mutex() = default; 32778: 32778: timed_mutex(const timed_mutex&) = delete; 32778: timed_mutex& operator=(const timed_mutex&) = delete; 32778: 32778: void 32778: lock() 32778: { 32778: int __e = __gthread_mutex_lock(&_M_mutex); 32778: 32778: 32778: if (__e) 32778: __throw_system_error(__e); 32778: } 32778: 32778: bool 32778: try_lock() noexcept 32778: { 32778: 32778: return !__gthread_mutex_trylock(&_M_mutex); 32778: } 32778: 32778: template 32778: bool 32778: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 32778: { return _M_try_lock_for(__rtime); } 32778: 32778: template 32778: bool 32778: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 32778: { return _M_try_lock_until(__atime); } 32778: 32778: void 32778: unlock() 32778: { 32778: 32778: __gthread_mutex_unlock(&_M_mutex); 32778: } 32778: 32778: native_handle_type 32778: native_handle() noexcept 32778: { return &_M_mutex; } 32778: 32778: private: 32778: friend class __timed_mutex_impl; 32778: 32778: bool 32778: _M_timedlock(const __gthread_time_t& __ts) 32778: { return !__gthread_mutex_timedlock(&_M_mutex, &__ts); } 32778: }; 32778: 32778: 32778: class recursive_timed_mutex 32778: : private __recursive_mutex_base, 32778: public __timed_mutex_impl 32778: { 32778: public: 32778: typedef __native_type* native_handle_type; 32778: 32778: recursive_timed_mutex() = default; 32778: ~recursive_timed_mutex() = default; 32778: 32778: recursive_timed_mutex(const recursive_timed_mutex&) = delete; 32778: recursive_timed_mutex& operator=(const recursive_timed_mutex&) = delete; 32778: 32778: void 32778: lock() 32778: { 32778: int __e = __gthread_recursive_mutex_lock(&_M_mutex); 32778: 32778: 32778: if (__e) 32778: __throw_system_error(__e); 32778: } 32778: 32778: bool 32778: try_lock() noexcept 32778: { 32778: 32778: return !__gthread_recursive_mutex_trylock(&_M_mutex); 32778: } 32778: 32778: template 32778: bool 32778: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 32778: { return _M_try_lock_for(__rtime); } 32778: 32778: template 32778: bool 32778: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 32778: { return _M_try_lock_until(__atime); } 32778: 32778: void 32778: unlock() 32778: { 32778: 32778: __gthread_recursive_mutex_unlock(&_M_mutex); 32778: } 32778: 32778: native_handle_type 32778: native_handle() noexcept 32778: { return &_M_mutex; } 32778: 32778: private: 32778: friend class __timed_mutex_impl; 32778: 32778: bool 32778: _M_timedlock(const __gthread_time_t& __ts) 32778: { return !__gthread_recursive_mutex_timedlock(&_M_mutex, &__ts); } 32778: }; 32778: # 466 "/usr/include/c++/9/mutex" 3 32778: template 32778: inline unique_lock<_Lock> 32778: __try_to_lock(_Lock& __l) 32778: { return unique_lock<_Lock>{__l, try_to_lock}; } 32778: 32778: template 32778: struct __try_lock_impl 32778: { 32778: template 32778: static void 32778: __do_try_lock(tuple<_Lock&...>& __locks, int& __idx) 32778: { 32778: __idx = _Idx; 32778: auto __lock = std::__try_to_lock(std::get<_Idx>(__locks)); 32778: if (__lock.owns_lock()) 32778: { 32778: constexpr bool __cont = _Idx + 2 < sizeof...(_Lock); 32778: using __try_locker = __try_lock_impl<_Idx + 1, __cont>; 32778: __try_locker::__do_try_lock(__locks, __idx); 32778: if (__idx == -1) 32778: __lock.release(); 32778: } 32778: } 32778: }; 32778: 32778: template 32778: struct __try_lock_impl<_Idx, false> 32778: { 32778: template 32778: static void 32778: __do_try_lock(tuple<_Lock&...>& __locks, int& __idx) 32778: { 32778: __idx = _Idx; 32778: auto __lock = std::__try_to_lock(std::get<_Idx>(__locks)); 32778: if (__lock.owns_lock()) 32778: { 32778: __idx = -1; 32778: __lock.release(); 32778: } 32778: } 32778: }; 32778: # 518 "/usr/include/c++/9/mutex" 3 32778: template 32778: int 32778: try_lock(_Lock1& __l1, _Lock2& __l2, _Lock3&... __l3) 32778: { 32778: int __idx; 32778: auto __locks = std::tie(__l1, __l2, __l3...); 32778: __try_lock_impl<0>::__do_try_lock(__locks, __idx); 32778: return __idx; 32778: } 32778: # 539 "/usr/include/c++/9/mutex" 3 32778: template 32778: void 32778: lock(_L1& __l1, _L2& __l2, _L3&... __l3) 32778: { 32778: while (true) 32778: { 32778: using __try_locker = __try_lock_impl<0, sizeof...(_L3) != 0>; 32778: unique_lock<_L1> __first(__l1); 32778: int __idx; 32778: auto __locks = std::tie(__l2, __l3...); 32778: __try_locker::__do_try_lock(__locks, __idx); 32778: if (__idx == -1) 32778: { 32778: __first.release(); 32778: return; 32778: } 32778: } 32778: } 32778: # 628 "/usr/include/c++/9/mutex" 3 32778: struct once_flag 32778: { 32778: private: 32778: typedef __gthread_once_t __native_type; 32778: __native_type _M_once = 0; 32778: 32778: public: 32778: 32778: constexpr once_flag() noexcept = default; 32778: 32778: 32778: once_flag(const once_flag&) = delete; 32778: 32778: once_flag& operator=(const once_flag&) = delete; 32778: 32778: template 32778: friend void 32778: call_once(once_flag& __once, _Callable&& __f, _Args&&... __args); 32778: }; 32778: 32778: 32778: extern __thread void* __once_callable; 32778: extern __thread void (*__once_call)(); 32778: # 661 "/usr/include/c++/9/mutex" 3 32778: extern "C" void __once_proxy(void); 32778: 32778: 32778: template 32778: void 32778: call_once(once_flag& __once, _Callable&& __f, _Args&&... __args) 32778: { 32778: 32778: 32778: auto __callable = [&] { 32778: std::__invoke(std::forward<_Callable>(__f), 32778: std::forward<_Args>(__args)...); 32778: }; 32778: 32778: __once_callable = std::__addressof(__callable); 32778: __once_call = []{ (*(decltype(__callable)*)__once_callable)(); }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: int __e = __gthread_once(&__once._M_once, &__once_proxy); 32778: # 696 "/usr/include/c++/9/mutex" 3 32778: if (__e) 32778: __throw_system_error(__e); 32778: } 32778: 32778: 32778: 32778: 32778: } 32778: # 17 "/<>/include/HepMC3/GenRunInfo.h" 2 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: # 23 "/<>/include/HepMC3/GenRunInfo.h" 32778: namespace HepMC3 { 32778: using namespace std; 32778: 32778: struct GenRunInfoData; 32778: 32778: 32778: 32778: 32778: 32778: class GenRunInfo { 32778: 32778: public: 32778: 32778: 32778: struct ToolInfo { 32778: 32778: 32778: string name; 32778: 32778: 32778: string version; 32778: 32778: 32778: 32778: string description; 32778: }; 32778: 32778: public: 32778: 32778: 32778: GenRunInfo() {} 32778: 32778: GenRunInfo(const GenRunInfo& r); 32778: 32778: GenRunInfo& operator=(const GenRunInfo& r); 32778: 32778: 32778: 32778: 32778: const std::vector & tools() const { 32778: return m_tools; 32778: } 32778: 32778: std::vector & tools() { 32778: return m_tools; 32778: } 32778: 32778: 32778: bool has_weight(const string& name) const { 32778: return m_weight_indices.find(name) != m_weight_indices.end(); 32778: } 32778: 32778: 32778: 32778: int weight_index(const string& name) const { 32778: std::map::const_iterator it = m_weight_indices.find(name); 32778: return it == m_weight_indices.end()? -1: it->second; 32778: } 32778: 32778: 32778: const std::vector & weight_names() const { 32778: return m_weight_names; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: void set_weight_names(const std::vector & names); 32778: 32778: 32778: 32778: 32778: void add_attribute(const string &name, 32778: const shared_ptr &att) { 32778: std::lock_guard lock(m_lock_attributes); 32778: if ( att ) m_attributes[name] = att; 32778: } 32778: 32778: 32778: void remove_attribute(const string &name) { 32778: std::lock_guard lock(m_lock_attributes); 32778: m_attributes.erase(name); 32778: } 32778: 32778: 32778: template 32778: shared_ptr attribute(const string &name) const; 32778: 32778: 32778: string attribute_as_string(const string &name) const; 32778: 32778: 32778: std::vector attribute_names() const; 32778: 32778: 32778: 32778: std::map< std::string, shared_ptr > attributes() const { 32778: return m_attributes; 32778: } 32778: # 131 "/<>/include/HepMC3/GenRunInfo.h" 32778: void write_data(GenRunInfoData &data) const; 32778: 32778: 32778: void read_data(const GenRunInfoData &data); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: private: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: std::vector m_tools; 32778: 32778: 32778: std::map m_weight_indices; 32778: 32778: 32778: std::vector m_weight_names; 32778: 32778: 32778: mutable std::map< std::string, shared_ptr > m_attributes; 32778: 32778: 32778: mutable std::recursive_mutex m_lock_attributes; 32778: 32778: 32778: 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: shared_ptr GenRunInfo::attribute(const string &name) const { 32778: std::lock_guard lock(m_lock_attributes); 32778: std::map< std::string, shared_ptr >::iterator i = 32778: m_attributes.find(name); 32778: if( i == m_attributes.end() ) return shared_ptr(); 32778: 32778: if( !i->second->is_parsed() ) { 32778: 32778: shared_ptr att = make_shared(); 32778: if ( att->from_string(i->second->unparsed_string()) && 32778: att->init(*this) ) { 32778: 32778: i->second = att; 32778: 32778: return att; 32778: } 32778: else 32778: return shared_ptr(); 32778: } 32778: else return dynamic_pointer_cast(i->second); 32778: } 32778: 32778: 32778: 32778: } 32778: # 26 "/<>/include/HepMC3/GenEvent.h" 2 32778: # 34 "/<>/include/HepMC3/GenEvent.h" 32778: namespace HepMC3 { 32778: 32778: struct GenEventData; 32778: 32778: 32778: 32778: 32778: 32778: class GenEvent { 32778: 32778: public: 32778: 32778: 32778: GenEvent(Units::MomentumUnit momentum_unit = Units::GEV, 32778: Units::LengthUnit length_unit = Units::MM); 32778: 32778: 32778: 32778: 32778: GenEvent(shared_ptr run, 32778: Units::MomentumUnit momentum_unit = Units::GEV, 32778: Units::LengthUnit length_unit = Units::MM); 32778: 32778: 32778: GenEvent(const GenEvent&); 32778: 32778: 32778: ~GenEvent(); 32778: 32778: 32778: GenEvent& operator=(const GenEvent&); 32778: 32778: 32778: 32778: 32778: 32778: const std::vector& particles() const; 32778: 32778: const std::vector& vertices() const; 32778: 32778: 32778: 32778: const std::vector& particles() { return m_particles; } 32778: 32778: const std::vector& vertices() { return m_vertices; } 32778: # 87 "/<>/include/HepMC3/GenEvent.h" 32778: const std::vector& weights() const { return m_weights; } 32778: 32778: std::vector& weights() { return m_weights; } 32778: 32778: 32778: double weight(const size_t& index=0) const { return weights().at(index); } 32778: 32778: 32778: 32778: double weight(const std::string& name) const { 32778: if (!run_info()) throw WeightError("GenEvent::weight(str): named access to event weights requires the event to have a GenRunInfo"); 32778: return weight(run_info()->weight_index(name)); 32778: } 32778: 32778: 32778: 32778: double& weight(const std::string& name) { 32778: if (!run_info()) throw WeightError("GenEvent::weight(str): named access to event weights requires the event to have a GenRunInfo"); 32778: int pos=run_info()->weight_index(name); 32778: if (pos<0) throw WeightError("GenEvent::weight(str): no weight with given name in this run"); 32778: return m_weights[pos]; 32778: } 32778: 32778: 32778: const std::vector& weight_names(const std::string& ) const { 32778: if (!run_info()) throw WeightError("GenEvent::weight_names(): access to event weight names requires the event to have a GenRunInfo"); 32778: const std::vector& weightnames = run_info()->weight_names(); 32778: if (weightnames.empty()) throw WeightError("GenEvent::weight_names(): no event weight names are registered for this run"); 32778: return weightnames; 32778: } 32778: # 125 "/<>/include/HepMC3/GenEvent.h" 32778: shared_ptr run_info() const { 32778: return m_run_info; 32778: } 32778: 32778: void set_run_info(shared_ptr run) { 32778: m_run_info = run; 32778: if ( run && !run->weight_names().empty() ) 32778: m_weights.resize(run->weight_names().size(), 1.0); 32778: } 32778: 32778: 32778: int event_number() const { return m_event_number; } 32778: 32778: void set_event_number(const int& num) { m_event_number = num; } 32778: 32778: 32778: const Units::MomentumUnit& momentum_unit() const { return m_momentum_unit; } 32778: 32778: const Units::LengthUnit& length_unit() const { return m_length_unit; } 32778: 32778: 32778: void set_units( Units::MomentumUnit new_momentum_unit, Units::LengthUnit new_length_unit); 32778: 32778: 32778: GenHeavyIonPtr heavy_ion() { return attribute("GenHeavyIon"); } 32778: 32778: ConstGenHeavyIonPtr heavy_ion() const { return attribute("GenHeavyIon"); } 32778: 32778: void set_heavy_ion(GenHeavyIonPtr hi) { add_attribute("GenHeavyIon",hi); } 32778: 32778: 32778: GenPdfInfoPtr pdf_info() { return attribute("GenPdfInfo"); } 32778: 32778: ConstGenPdfInfoPtr pdf_info() const { return attribute("GenPdfInfo"); } 32778: 32778: void set_pdf_info(GenPdfInfoPtr pi) { add_attribute("GenPdfInfo",pi); } 32778: 32778: 32778: GenCrossSectionPtr cross_section() { return attribute("GenCrossSection"); } 32778: 32778: ConstGenCrossSectionPtr cross_section() const { return attribute("GenCrossSection"); } 32778: 32778: void set_cross_section(GenCrossSectionPtr cs) { add_attribute("GenCrossSection",cs); } 32778: # 176 "/<>/include/HepMC3/GenEvent.h" 32778: const FourVector& event_pos() const; 32778: 32778: 32778: std::vector beams() const; 32778: 32778: 32778: const std::vector & beams(); 32778: 32778: 32778: void shift_position_by( const FourVector & delta ); 32778: 32778: 32778: void shift_position_to( const FourVector & newpos ) { 32778: const FourVector delta = newpos - event_pos(); 32778: shift_position_by(delta); 32778: } 32778: 32778: 32778: bool boost( const FourVector v ); 32778: 32778: bool rotate( const FourVector v ); 32778: 32778: bool reflect(const int axis); 32778: # 209 "/<>/include/HepMC3/GenEvent.h" 32778: void add_attribute(const string &name, const shared_ptr &att, const int& id = 0) { 32778: std::lock_guard lock(m_lock_attributes); 32778: if ( att ) { 32778: m_attributes[name][id] = att; 32778: att->m_event = this; 32778: if ( id > 0 && id <= int(particles().size()) ) 32778: att->m_particle = particles()[id - 1]; 32778: if ( id < 0 && -id <= int(vertices().size()) ) 32778: att->m_vertex = vertices()[-id - 1]; 32778: } 32778: } 32778: 32778: 32778: void remove_attribute(const string &name, const int& id = 0); 32778: 32778: 32778: template 32778: shared_ptr attribute(const string &name, const int& id = 0) const; 32778: 32778: 32778: string attribute_as_string(const string &name, const int& id = 0) const; 32778: 32778: 32778: std::vector attribute_names( const int& id = 0) const; 32778: 32778: 32778: 32778: std::map< string, std::map > > attributes() const { 32778: std::lock_guard lock(m_lock_attributes); 32778: return m_attributes; 32778: } 32778: # 248 "/<>/include/HepMC3/GenEvent.h" 32778: void add_particle( GenParticlePtr p ); 32778: 32778: 32778: void add_vertex( GenVertexPtr v ); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: void remove_particle( GenParticlePtr v ); 32778: 32778: 32778: 32778: 32778: 32778: void remove_particles( std::vector v ); 32778: 32778: 32778: 32778: 32778: void remove_vertex( GenVertexPtr v ); 32778: # 281 "/<>/include/HepMC3/GenEvent.h" 32778: void add_tree( const std::vector &particles ); 32778: 32778: 32778: 32778: 32778: void reserve(const size_t& particles, const size_t& vertices = 0); 32778: 32778: 32778: void clear(); 32778: # 298 "/<>/include/HepMC3/GenEvent.h" 32778: void add_particle( GenParticle *p ); 32778: 32778: 32778: 32778: void add_vertex ( GenVertex *v ); 32778: 32778: 32778: 32778: 32778: void set_beam_particles(GenParticlePtr p1, GenParticlePtr p2); 32778: 32778: 32778: 32778: 32778: void add_beam_particle(GenParticlePtr p1); 32778: # 324 "/<>/include/HepMC3/GenEvent.h" 32778: void write_data(GenEventData &data) const; 32778: 32778: 32778: void read_data(const GenEventData &data); 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: private: 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: std::vector m_particles; 32778: 32778: std::vector m_vertices; 32778: 32778: 32778: int m_event_number; 32778: 32778: 32778: std::vector m_weights; 32778: 32778: 32778: Units::MomentumUnit m_momentum_unit; 32778: 32778: Units::LengthUnit m_length_unit; 32778: 32778: 32778: GenVertexPtr m_rootvertex; 32778: 32778: 32778: shared_ptr m_run_info; 32778: 32778: 32778: 32778: 32778: mutable std::map< string, std::map > > m_attributes; 32778: 32778: 32778: typedef std::map< string, std::map > >::value_type att_key_t; 32778: 32778: 32778: typedef std::map >::value_type att_val_t; 32778: 32778: 32778: mutable std::recursive_mutex m_lock_attributes; 32778: 32778: 32778: 32778: 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: template 32778: shared_ptr GenEvent::attribute(const std::string &name, const int& id) const { 32778: std::lock_guard lock(m_lock_attributes); 32778: std::map< string, std::map > >::iterator i1 = 32778: m_attributes.find(name); 32778: if( i1 == m_attributes.end() ) { 32778: if ( id == 0 && run_info() ) { 32778: return run_info()->attribute(name); 32778: } 32778: return shared_ptr(); 32778: } 32778: 32778: std::map >::iterator i2 = i1->second.find(id); 32778: if (i2 == i1->second.end() ) return shared_ptr(); 32778: 32778: if (!i2->second->is_parsed() ) { 32778: 32778: shared_ptr att = make_shared(); 32778: att->m_event = this; 32778: 32778: if ( id > 0 && id <= int(particles().size()) ) 32778: att->m_particle = m_particles[id - 1]; 32778: if ( id < 0 && -id <= int(vertices().size()) ) 32778: att->m_vertex = m_vertices[-id - 1]; 32778: if ( att->from_string(i2->second->unparsed_string()) && 32778: att->init() ) { 32778: 32778: i2->second = att; 32778: return att; 32778: } else { 32778: return shared_ptr(); 32778: } 32778: } 32778: else return dynamic_pointer_cast(i2->second); 32778: } 32778: 32778: 32778: } 32778: # 156 "/<>/include/HepMC3/GenParticle.h" 2 32778: namespace HepMC3 { 32778: 32778: template shared_ptr GenParticle::attribute(const string& name) const { 32778: return parent_event()? 32778: parent_event()->attribute(name, id()): shared_ptr(); 32778: } 32778: } 32778: # 14 "/<>/search/include/HepMC3/Filter.h" 2 32778: # 1 "/usr/include/c++/9/functional" 1 3 32778: # 46 "/usr/include/c++/9/functional" 3 32778: 32778: # 47 "/usr/include/c++/9/functional" 3 32778: # 59 "/usr/include/c++/9/functional" 3 32778: # 1 "/usr/include/c++/9/bits/std_function.h" 1 3 32778: # 33 "/usr/include/c++/9/bits/std_function.h" 3 32778: 32778: # 34 "/usr/include/c++/9/bits/std_function.h" 3 32778: # 47 "/usr/include/c++/9/bits/std_function.h" 3 32778: 32778: # 47 "/usr/include/c++/9/bits/std_function.h" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: class bad_function_call : public std::exception 32778: { 32778: public: 32778: virtual ~bad_function_call() noexcept; 32778: 32778: const char* what() const noexcept; 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct __is_location_invariant 32778: : is_trivially_copyable<_Tp>::type 32778: { }; 32778: 32778: class _Undefined_class; 32778: 32778: union _Nocopy_types 32778: { 32778: void* _M_object; 32778: const void* _M_const_object; 32778: void (*_M_function_pointer)(); 32778: void (_Undefined_class::*_M_member_pointer)(); 32778: }; 32778: 32778: union [[gnu::may_alias]] _Any_data 32778: { 32778: void* _M_access() { return &_M_pod_data[0]; } 32778: const void* _M_access() const { return &_M_pod_data[0]; } 32778: 32778: template 32778: _Tp& 32778: _M_access() 32778: { return *static_cast<_Tp*>(_M_access()); } 32778: 32778: template 32778: const _Tp& 32778: _M_access() const 32778: { return *static_cast(_M_access()); } 32778: 32778: _Nocopy_types _M_unused; 32778: char _M_pod_data[sizeof(_Nocopy_types)]; 32778: }; 32778: 32778: enum _Manager_operation 32778: { 32778: __get_type_info, 32778: __get_functor_ptr, 32778: __clone_functor, 32778: __destroy_functor 32778: }; 32778: 32778: 32778: 32778: template 32778: struct _Simple_type_wrapper 32778: { 32778: _Simple_type_wrapper(_Tp __value) : __value(__value) { } 32778: 32778: _Tp __value; 32778: }; 32778: 32778: template 32778: struct __is_location_invariant<_Simple_type_wrapper<_Tp> > 32778: : __is_location_invariant<_Tp> 32778: { }; 32778: 32778: template 32778: class function; 32778: 32778: 32778: class _Function_base 32778: { 32778: public: 32778: static const size_t _M_max_size = sizeof(_Nocopy_types); 32778: static const size_t _M_max_align = __alignof__(_Nocopy_types); 32778: 32778: template 32778: class _Base_manager 32778: { 32778: protected: 32778: static const bool __stored_locally = 32778: (__is_location_invariant<_Functor>::value 32778: && sizeof(_Functor) <= _M_max_size 32778: && __alignof__(_Functor) <= _M_max_align 32778: && (_M_max_align % __alignof__(_Functor) == 0)); 32778: 32778: typedef integral_constant _Local_storage; 32778: 32778: 32778: static _Functor* 32778: _M_get_pointer(const _Any_data& __source) 32778: { 32778: if (__stored_locally) 32778: { 32778: const _Functor& __f = __source._M_access<_Functor>(); 32778: return const_cast<_Functor*>(std::__addressof(__f)); 32778: } 32778: else 32778: return __source._M_access<_Functor*>(); 32778: } 32778: 32778: 32778: 32778: static void 32778: _M_clone(_Any_data& __dest, const _Any_data& __source, true_type) 32778: { 32778: ::new (__dest._M_access()) _Functor(__source._M_access<_Functor>()); 32778: } 32778: 32778: 32778: 32778: static void 32778: _M_clone(_Any_data& __dest, const _Any_data& __source, false_type) 32778: { 32778: __dest._M_access<_Functor*>() = 32778: new _Functor(*__source._M_access()); 32778: } 32778: 32778: 32778: 32778: static void 32778: _M_destroy(_Any_data& __victim, true_type) 32778: { 32778: __victim._M_access<_Functor>().~_Functor(); 32778: } 32778: 32778: 32778: static void 32778: _M_destroy(_Any_data& __victim, false_type) 32778: { 32778: delete __victim._M_access<_Functor*>(); 32778: } 32778: 32778: public: 32778: static bool 32778: _M_manager(_Any_data& __dest, const _Any_data& __source, 32778: _Manager_operation __op) 32778: { 32778: switch (__op) 32778: { 32778: 32778: case __get_type_info: 32778: __dest._M_access() = &typeid(_Functor); 32778: break; 32778: 32778: case __get_functor_ptr: 32778: __dest._M_access<_Functor*>() = _M_get_pointer(__source); 32778: break; 32778: 32778: case __clone_functor: 32778: _M_clone(__dest, __source, _Local_storage()); 32778: break; 32778: 32778: case __destroy_functor: 32778: _M_destroy(__dest, _Local_storage()); 32778: break; 32778: } 32778: return false; 32778: } 32778: 32778: static void 32778: _M_init_functor(_Any_data& __functor, _Functor&& __f) 32778: { _M_init_functor(__functor, std::move(__f), _Local_storage()); } 32778: 32778: template 32778: static bool 32778: _M_not_empty_function(const function<_Signature>& __f) 32778: { return static_cast(__f); } 32778: 32778: template 32778: static bool 32778: _M_not_empty_function(_Tp* __fp) 32778: { return __fp != nullptr; } 32778: 32778: template 32778: static bool 32778: _M_not_empty_function(_Tp _Class::* __mp) 32778: { return __mp != nullptr; } 32778: 32778: template 32778: static bool 32778: _M_not_empty_function(const _Tp&) 32778: { return true; } 32778: 32778: private: 32778: static void 32778: _M_init_functor(_Any_data& __functor, _Functor&& __f, true_type) 32778: { ::new (__functor._M_access()) _Functor(std::move(__f)); } 32778: 32778: static void 32778: _M_init_functor(_Any_data& __functor, _Functor&& __f, false_type) 32778: { __functor._M_access<_Functor*>() = new _Functor(std::move(__f)); } 32778: }; 32778: 32778: _Function_base() : _M_manager(nullptr) { } 32778: 32778: ~_Function_base() 32778: { 32778: if (_M_manager) 32778: _M_manager(_M_functor, _M_functor, __destroy_functor); 32778: } 32778: 32778: bool _M_empty() const { return !_M_manager; } 32778: 32778: typedef bool (*_Manager_type)(_Any_data&, const _Any_data&, 32778: _Manager_operation); 32778: 32778: _Any_data _M_functor; 32778: _Manager_type _M_manager; 32778: }; 32778: 32778: template 32778: class _Function_handler; 32778: 32778: template 32778: class _Function_handler<_Res(_ArgTypes...), _Functor> 32778: : public _Function_base::_Base_manager<_Functor> 32778: { 32778: typedef _Function_base::_Base_manager<_Functor> _Base; 32778: 32778: public: 32778: static _Res 32778: _M_invoke(const _Any_data& __functor, _ArgTypes&&... __args) 32778: { 32778: return (*_Base::_M_get_pointer(__functor))( 32778: std::forward<_ArgTypes>(__args)...); 32778: } 32778: }; 32778: 32778: template 32778: class _Function_handler 32778: : public _Function_base::_Base_manager<_Functor> 32778: { 32778: typedef _Function_base::_Base_manager<_Functor> _Base; 32778: 32778: public: 32778: static void 32778: _M_invoke(const _Any_data& __functor, _ArgTypes&&... __args) 32778: { 32778: (*_Base::_M_get_pointer(__functor))( 32778: std::forward<_ArgTypes>(__args)...); 32778: } 32778: }; 32778: 32778: template 32778: class _Function_handler<_Res(_ArgTypes...), _Member _Class::*> 32778: : public _Function_handler 32778: { 32778: typedef _Function_handler 32778: _Base; 32778: 32778: public: 32778: static _Res 32778: _M_invoke(const _Any_data& __functor, _ArgTypes&&... __args) 32778: { 32778: return std::__invoke(_Base::_M_get_pointer(__functor)->__value, 32778: std::forward<_ArgTypes>(__args)...); 32778: } 32778: }; 32778: 32778: template 32778: class _Function_handler 32778: : public _Function_base::_Base_manager< 32778: _Simple_type_wrapper< _Member _Class::* > > 32778: { 32778: typedef _Member _Class::* _Functor; 32778: typedef _Simple_type_wrapper<_Functor> _Wrapper; 32778: typedef _Function_base::_Base_manager<_Wrapper> _Base; 32778: 32778: public: 32778: static bool 32778: _M_manager(_Any_data& __dest, const _Any_data& __source, 32778: _Manager_operation __op) 32778: { 32778: switch (__op) 32778: { 32778: 32778: case __get_type_info: 32778: __dest._M_access() = &typeid(_Functor); 32778: break; 32778: 32778: case __get_functor_ptr: 32778: __dest._M_access<_Functor*>() = 32778: &_Base::_M_get_pointer(__source)->__value; 32778: break; 32778: 32778: default: 32778: _Base::_M_manager(__dest, __source, __op); 32778: } 32778: return false; 32778: } 32778: 32778: static void 32778: _M_invoke(const _Any_data& __functor, _ArgTypes&&... __args) 32778: { 32778: std::__invoke(_Base::_M_get_pointer(__functor)->__value, 32778: std::forward<_ArgTypes>(__args)...); 32778: } 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: class function<_Res(_ArgTypes...)> 32778: : public _Maybe_unary_or_binary_function<_Res, _ArgTypes...>, 32778: private _Function_base 32778: { 32778: template> 32778: struct _Callable 32778: : __is_invocable_impl<_Res2, _Res>::type 32778: { }; 32778: 32778: 32778: 32778: template 32778: struct _Callable : false_type { }; 32778: 32778: template 32778: using _Requires = typename enable_if<_Cond::value, _Tp>::type; 32778: 32778: public: 32778: typedef _Res result_type; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: function() noexcept 32778: : _Function_base() { } 32778: 32778: 32778: 32778: 32778: 32778: function(nullptr_t) noexcept 32778: : _Function_base() { } 32778: # 414 "/usr/include/c++/9/bits/std_function.h" 3 32778: function(const function& __x); 32778: # 423 "/usr/include/c++/9/bits/std_function.h" 3 32778: function(function&& __x) noexcept : _Function_base() 32778: { 32778: __x.swap(*this); 32778: } 32778: # 444 "/usr/include/c++/9/bits/std_function.h" 3 32778: template>, void>, 32778: typename = _Requires<_Callable<_Functor>, void>> 32778: function(_Functor); 32778: # 461 "/usr/include/c++/9/bits/std_function.h" 3 32778: function& 32778: operator=(const function& __x) 32778: { 32778: function(__x).swap(*this); 32778: return *this; 32778: } 32778: # 479 "/usr/include/c++/9/bits/std_function.h" 3 32778: function& 32778: operator=(function&& __x) noexcept 32778: { 32778: function(std::move(__x)).swap(*this); 32778: return *this; 32778: } 32778: # 493 "/usr/include/c++/9/bits/std_function.h" 3 32778: function& 32778: operator=(nullptr_t) noexcept 32778: { 32778: if (_M_manager) 32778: { 32778: _M_manager(_M_functor, _M_functor, __destroy_functor); 32778: _M_manager = nullptr; 32778: _M_invoker = nullptr; 32778: } 32778: return *this; 32778: } 32778: # 521 "/usr/include/c++/9/bits/std_function.h" 3 32778: template 32778: _Requires<_Callable::type>, function&> 32778: operator=(_Functor&& __f) 32778: { 32778: function(std::forward<_Functor>(__f)).swap(*this); 32778: return *this; 32778: } 32778: 32778: 32778: template 32778: function& 32778: operator=(reference_wrapper<_Functor> __f) noexcept 32778: { 32778: function(__f).swap(*this); 32778: return *this; 32778: } 32778: # 547 "/usr/include/c++/9/bits/std_function.h" 3 32778: void swap(function& __x) noexcept 32778: { 32778: std::swap(_M_functor, __x._M_functor); 32778: std::swap(_M_manager, __x._M_manager); 32778: std::swap(_M_invoker, __x._M_invoker); 32778: } 32778: # 564 "/usr/include/c++/9/bits/std_function.h" 3 32778: explicit operator bool() const noexcept 32778: { return !_M_empty(); } 32778: # 577 "/usr/include/c++/9/bits/std_function.h" 3 32778: _Res operator()(_ArgTypes... __args) const; 32778: # 590 "/usr/include/c++/9/bits/std_function.h" 3 32778: const type_info& target_type() const noexcept; 32778: # 603 "/usr/include/c++/9/bits/std_function.h" 3 32778: template _Functor* target() noexcept; 32778: 32778: template const _Functor* target() const noexcept; 32778: 32778: 32778: 32778: private: 32778: using _Invoker_type = _Res (*)(const _Any_data&, _ArgTypes&&...); 32778: _Invoker_type _M_invoker; 32778: }; 32778: # 652 "/usr/include/c++/9/bits/std_function.h" 3 32778: template 32778: function<_Res(_ArgTypes...)>:: 32778: function(const function& __x) 32778: : _Function_base() 32778: { 32778: if (static_cast(__x)) 32778: { 32778: __x._M_manager(_M_functor, __x._M_functor, __clone_functor); 32778: _M_invoker = __x._M_invoker; 32778: _M_manager = __x._M_manager; 32778: } 32778: } 32778: 32778: template 32778: template 32778: function<_Res(_ArgTypes...)>:: 32778: function(_Functor __f) 32778: : _Function_base() 32778: { 32778: typedef _Function_handler<_Res(_ArgTypes...), _Functor> _My_handler; 32778: 32778: if (_My_handler::_M_not_empty_function(__f)) 32778: { 32778: _My_handler::_M_init_functor(_M_functor, std::move(__f)); 32778: _M_invoker = &_My_handler::_M_invoke; 32778: _M_manager = &_My_handler::_M_manager; 32778: } 32778: } 32778: 32778: template 32778: _Res 32778: function<_Res(_ArgTypes...)>:: 32778: operator()(_ArgTypes... __args) const 32778: { 32778: if (_M_empty()) 32778: __throw_bad_function_call(); 32778: return _M_invoker(_M_functor, std::forward<_ArgTypes>(__args)...); 32778: } 32778: 32778: 32778: template 32778: const type_info& 32778: function<_Res(_ArgTypes...)>:: 32778: target_type() const noexcept 32778: { 32778: if (_M_manager) 32778: { 32778: _Any_data __typeinfo_result; 32778: _M_manager(__typeinfo_result, _M_functor, __get_type_info); 32778: return *__typeinfo_result._M_access(); 32778: } 32778: else 32778: return typeid(void); 32778: } 32778: 32778: template 32778: template 32778: _Functor* 32778: function<_Res(_ArgTypes...)>:: 32778: target() noexcept 32778: { 32778: const function* __const_this = this; 32778: const _Functor* __func = __const_this->template target<_Functor>(); 32778: return const_cast<_Functor*>(__func); 32778: } 32778: 32778: template 32778: template 32778: const _Functor* 32778: function<_Res(_ArgTypes...)>:: 32778: target() const noexcept 32778: { 32778: if (typeid(_Functor) == target_type() && _M_manager) 32778: { 32778: _Any_data __ptr; 32778: _M_manager(__ptr, _M_functor, __get_functor_ptr); 32778: return __ptr._M_access(); 32778: } 32778: else 32778: return nullptr; 32778: } 32778: # 744 "/usr/include/c++/9/bits/std_function.h" 3 32778: template 32778: inline bool 32778: operator==(const function<_Res(_Args...)>& __f, nullptr_t) noexcept 32778: { return !static_cast(__f); } 32778: 32778: 32778: template 32778: inline bool 32778: operator==(nullptr_t, const function<_Res(_Args...)>& __f) noexcept 32778: { return !static_cast(__f); } 32778: # 762 "/usr/include/c++/9/bits/std_function.h" 3 32778: template 32778: inline bool 32778: operator!=(const function<_Res(_Args...)>& __f, nullptr_t) noexcept 32778: { return static_cast(__f); } 32778: 32778: 32778: template 32778: inline bool 32778: operator!=(nullptr_t, const function<_Res(_Args...)>& __f) noexcept 32778: { return static_cast(__f); } 32778: # 783 "/usr/include/c++/9/bits/std_function.h" 3 32778: template 32778: inline void 32778: swap(function<_Res(_Args...)>& __x, function<_Res(_Args...)>& __y) noexcept 32778: { __x.swap(__y); } 32778: # 802 "/usr/include/c++/9/bits/std_function.h" 3 32778: 32778: } 32778: # 60 "/usr/include/c++/9/functional" 2 3 32778: # 68 "/usr/include/c++/9/functional" 3 32778: namespace std __attribute__ ((__visibility__ ("default"))) 32778: { 32778: 32778: # 86 "/usr/include/c++/9/functional" 3 32778: template::value> 32778: class _Mem_fn_base 32778: : public _Mem_fn_traits<_MemFunPtr>::__maybe_type 32778: { 32778: using _Traits = _Mem_fn_traits<_MemFunPtr>; 32778: 32778: using _Arity = typename _Traits::__arity; 32778: using _Varargs = typename _Traits::__vararg; 32778: 32778: template 32778: friend struct _Bind_check_arity; 32778: 32778: _MemFunPtr _M_pmf; 32778: 32778: public: 32778: 32778: using result_type = typename _Traits::__result_type; 32778: 32778: explicit constexpr 32778: _Mem_fn_base(_MemFunPtr __pmf) noexcept : _M_pmf(__pmf) { } 32778: 32778: template 32778: auto 32778: operator()(_Args&&... __args) const 32778: noexcept(noexcept( 32778: std::__invoke(_M_pmf, std::forward<_Args>(__args)...))) 32778: -> decltype(std::__invoke(_M_pmf, std::forward<_Args>(__args)...)) 32778: { return std::__invoke(_M_pmf, std::forward<_Args>(__args)...); } 32778: }; 32778: 32778: 32778: template 32778: class _Mem_fn_base<_MemObjPtr, false> 32778: { 32778: using _Arity = integral_constant; 32778: using _Varargs = false_type; 32778: 32778: template 32778: friend struct _Bind_check_arity; 32778: 32778: _MemObjPtr _M_pm; 32778: 32778: public: 32778: explicit constexpr 32778: _Mem_fn_base(_MemObjPtr __pm) noexcept : _M_pm(__pm) { } 32778: 32778: template 32778: auto 32778: operator()(_Tp&& __obj) const 32778: noexcept(noexcept(std::__invoke(_M_pm, std::forward<_Tp>(__obj)))) 32778: -> decltype(std::__invoke(_M_pm, std::forward<_Tp>(__obj))) 32778: { return std::__invoke(_M_pm, std::forward<_Tp>(__obj)); } 32778: }; 32778: 32778: template 32778: struct _Mem_fn; 32778: 32778: template 32778: struct _Mem_fn<_Res _Class::*> 32778: : _Mem_fn_base<_Res _Class::*> 32778: { 32778: using _Mem_fn_base<_Res _Class::*>::_Mem_fn_base; 32778: }; 32778: # 158 "/usr/include/c++/9/functional" 3 32778: template 32778: inline _Mem_fn<_Tp _Class::*> 32778: mem_fn(_Tp _Class::* __pm) noexcept 32778: { 32778: return _Mem_fn<_Tp _Class::*>(__pm); 32778: } 32778: # 173 "/usr/include/c++/9/functional" 3 32778: template 32778: struct is_bind_expression 32778: : public false_type { }; 32778: # 184 "/usr/include/c++/9/functional" 3 32778: template 32778: struct is_placeholder 32778: : public integral_constant 32778: { }; 32778: # 199 "/usr/include/c++/9/functional" 3 32778: template struct _Placeholder { }; 32778: 32778: 32778: 32778: 32778: 32778: namespace placeholders 32778: { 32778: 32778: 32778: 32778: 32778: extern const _Placeholder<1> _1; 32778: extern const _Placeholder<2> _2; 32778: extern const _Placeholder<3> _3; 32778: extern const _Placeholder<4> _4; 32778: extern const _Placeholder<5> _5; 32778: extern const _Placeholder<6> _6; 32778: extern const _Placeholder<7> _7; 32778: extern const _Placeholder<8> _8; 32778: extern const _Placeholder<9> _9; 32778: extern const _Placeholder<10> _10; 32778: extern const _Placeholder<11> _11; 32778: extern const _Placeholder<12> _12; 32778: extern const _Placeholder<13> _13; 32778: extern const _Placeholder<14> _14; 32778: extern const _Placeholder<15> _15; 32778: extern const _Placeholder<16> _16; 32778: extern const _Placeholder<17> _17; 32778: extern const _Placeholder<18> _18; 32778: extern const _Placeholder<19> _19; 32778: extern const _Placeholder<20> _20; 32778: extern const _Placeholder<21> _21; 32778: extern const _Placeholder<22> _22; 32778: extern const _Placeholder<23> _23; 32778: extern const _Placeholder<24> _24; 32778: extern const _Placeholder<25> _25; 32778: extern const _Placeholder<26> _26; 32778: extern const _Placeholder<27> _27; 32778: extern const _Placeholder<28> _28; 32778: extern const _Placeholder<29> _29; 32778: } 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct is_placeholder<_Placeholder<_Num> > 32778: : public integral_constant 32778: { }; 32778: 32778: template 32778: struct is_placeholder > 32778: : public integral_constant 32778: { }; 32778: 32778: 32778: 32778: template 32778: using _Safe_tuple_element_t 32778: = typename enable_if<(__i < tuple_size<_Tuple>::value), 32778: tuple_element<__i, _Tuple>>::type::type; 32778: # 275 "/usr/include/c++/9/functional" 3 32778: template::value, 32778: bool _IsPlaceholder = (is_placeholder<_Arg>::value > 0)> 32778: class _Mu; 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: class _Mu, false, false> 32778: { 32778: public: 32778: 32778: 32778: 32778: 32778: template 32778: _Tp& 32778: operator()(_CVRef& __arg, _Tuple&) const volatile 32778: { return __arg.get(); } 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: class _Mu<_Arg, true, false> 32778: { 32778: public: 32778: template 32778: auto 32778: operator()(_CVArg& __arg, 32778: tuple<_Args...>& __tuple) const volatile 32778: -> decltype(__arg(declval<_Args>()...)) 32778: { 32778: 32778: typedef typename _Build_index_tuple::__type 32778: _Indexes; 32778: return this->__call(__arg, __tuple, _Indexes()); 32778: } 32778: 32778: private: 32778: 32778: 32778: template 32778: auto 32778: __call(_CVArg& __arg, tuple<_Args...>& __tuple, 32778: const _Index_tuple<_Indexes...>&) const volatile 32778: -> decltype(__arg(declval<_Args>()...)) 32778: { 32778: return __arg(std::get<_Indexes>(std::move(__tuple))...); 32778: } 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: class _Mu<_Arg, false, true> 32778: { 32778: public: 32778: template 32778: _Safe_tuple_element_t<(is_placeholder<_Arg>::value - 1), _Tuple>&& 32778: operator()(const volatile _Arg&, _Tuple& __tuple) const volatile 32778: { 32778: return 32778: ::std::get<(is_placeholder<_Arg>::value - 1)>(std::move(__tuple)); 32778: } 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: class _Mu<_Arg, false, false> 32778: { 32778: public: 32778: template 32778: _CVArg&& 32778: operator()(_CVArg&& __arg, _Tuple&) const volatile 32778: { return std::forward<_CVArg>(__arg); } 32778: }; 32778: 32778: 32778: template 32778: inline auto 32778: __volget(volatile tuple<_Tp...>& __tuple) 32778: -> __tuple_element_t<_Ind, tuple<_Tp...>> volatile& 32778: { return std::get<_Ind>(const_cast&>(__tuple)); } 32778: 32778: 32778: template 32778: inline auto 32778: __volget(const volatile tuple<_Tp...>& __tuple) 32778: -> __tuple_element_t<_Ind, tuple<_Tp...>> const volatile& 32778: { return std::get<_Ind>(const_cast&>(__tuple)); } 32778: 32778: 32778: template 32778: struct _Bind; 32778: 32778: template 32778: class _Bind<_Functor(_Bound_args...)> 32778: : public _Weak_result_type<_Functor> 32778: { 32778: typedef typename _Build_index_tuple::__type 32778: _Bound_indexes; 32778: 32778: _Functor _M_f; 32778: tuple<_Bound_args...> _M_bound_args; 32778: 32778: 32778: template 32778: _Result 32778: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) 32778: { 32778: return std::__invoke(_M_f, 32778: _Mu<_Bound_args>()(std::get<_Indexes>(_M_bound_args), __args)... 32778: ); 32778: } 32778: 32778: 32778: template 32778: _Result 32778: __call_c(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) const 32778: { 32778: return std::__invoke(_M_f, 32778: _Mu<_Bound_args>()(std::get<_Indexes>(_M_bound_args), __args)... 32778: ); 32778: } 32778: 32778: 32778: template 32778: _Result 32778: __call_v(tuple<_Args...>&& __args, 32778: _Index_tuple<_Indexes...>) volatile 32778: { 32778: return std::__invoke(_M_f, 32778: _Mu<_Bound_args>()(__volget<_Indexes>(_M_bound_args), __args)... 32778: ); 32778: } 32778: 32778: 32778: template 32778: _Result 32778: __call_c_v(tuple<_Args...>&& __args, 32778: _Index_tuple<_Indexes...>) const volatile 32778: { 32778: return std::__invoke(_M_f, 32778: _Mu<_Bound_args>()(__volget<_Indexes>(_M_bound_args), __args)... 32778: ); 32778: } 32778: 32778: template 32778: using _Mu_type = decltype( 32778: _Mu::type>()( 32778: std::declval<_BoundArg&>(), std::declval<_CallArgs&>()) ); 32778: 32778: template 32778: using _Res_type_impl 32778: = typename result_of< _Fn&(_Mu_type<_BArgs, _CallArgs>&&...) >::type; 32778: 32778: template 32778: using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>; 32778: 32778: template 32778: using __dependent = typename 32778: enable_if::value+1), _Functor>::type; 32778: 32778: template class __cv_quals> 32778: using _Res_type_cv = _Res_type_impl< 32778: typename __cv_quals<__dependent<_CallArgs>>::type, 32778: _CallArgs, 32778: typename __cv_quals<_Bound_args>::type...>; 32778: 32778: public: 32778: template 32778: explicit _Bind(const _Functor& __f, _Args&&... __args) 32778: : _M_f(__f), _M_bound_args(std::forward<_Args>(__args)...) 32778: { } 32778: 32778: template 32778: explicit _Bind(_Functor&& __f, _Args&&... __args) 32778: : _M_f(std::move(__f)), _M_bound_args(std::forward<_Args>(__args)...) 32778: { } 32778: 32778: _Bind(const _Bind&) = default; 32778: 32778: _Bind(_Bind&& __b) 32778: : _M_f(std::move(__b._M_f)), _M_bound_args(std::move(__b._M_bound_args)) 32778: { } 32778: 32778: 32778: template>> 32778: _Result 32778: operator()(_Args&&... __args) 32778: { 32778: return this->__call<_Result>( 32778: std::forward_as_tuple(std::forward<_Args>(__args)...), 32778: _Bound_indexes()); 32778: } 32778: 32778: 32778: template, add_const>> 32778: _Result 32778: operator()(_Args&&... __args) const 32778: { 32778: return this->__call_c<_Result>( 32778: std::forward_as_tuple(std::forward<_Args>(__args)...), 32778: _Bound_indexes()); 32778: } 32778: # 505 "/usr/include/c++/9/functional" 3 32778: template, add_volatile>> 32778: 32778: _Result 32778: operator()(_Args&&... __args) volatile 32778: { 32778: return this->__call_v<_Result>( 32778: std::forward_as_tuple(std::forward<_Args>(__args)...), 32778: _Bound_indexes()); 32778: } 32778: 32778: 32778: template, add_cv>> 32778: 32778: _Result 32778: operator()(_Args&&... __args) const volatile 32778: { 32778: return this->__call_c_v<_Result>( 32778: std::forward_as_tuple(std::forward<_Args>(__args)...), 32778: _Bound_indexes()); 32778: } 32778: }; 32778: 32778: 32778: template 32778: struct _Bind_result; 32778: 32778: template 32778: class _Bind_result<_Result, _Functor(_Bound_args...)> 32778: { 32778: typedef typename _Build_index_tuple::__type 32778: _Bound_indexes; 32778: 32778: _Functor _M_f; 32778: tuple<_Bound_args...> _M_bound_args; 32778: 32778: 32778: template 32778: using __enable_if_void 32778: = typename enable_if{}>::type; 32778: 32778: template 32778: using __disable_if_void 32778: = typename enable_if{}, _Result>::type; 32778: 32778: 32778: template 32778: __disable_if_void<_Res> 32778: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) 32778: { 32778: return std::__invoke(_M_f, _Mu<_Bound_args>() 32778: (std::get<_Indexes>(_M_bound_args), __args)...); 32778: } 32778: 32778: 32778: template 32778: __enable_if_void<_Res> 32778: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) 32778: { 32778: std::__invoke(_M_f, _Mu<_Bound_args>() 32778: (std::get<_Indexes>(_M_bound_args), __args)...); 32778: } 32778: 32778: 32778: template 32778: __disable_if_void<_Res> 32778: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) const 32778: { 32778: return std::__invoke(_M_f, _Mu<_Bound_args>() 32778: (std::get<_Indexes>(_M_bound_args), __args)...); 32778: } 32778: 32778: 32778: template 32778: __enable_if_void<_Res> 32778: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) const 32778: { 32778: std::__invoke(_M_f, _Mu<_Bound_args>() 32778: (std::get<_Indexes>(_M_bound_args), __args)...); 32778: } 32778: 32778: 32778: template 32778: __disable_if_void<_Res> 32778: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) volatile 32778: { 32778: return std::__invoke(_M_f, _Mu<_Bound_args>() 32778: (__volget<_Indexes>(_M_bound_args), __args)...); 32778: } 32778: 32778: 32778: template 32778: __enable_if_void<_Res> 32778: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) volatile 32778: { 32778: std::__invoke(_M_f, _Mu<_Bound_args>() 32778: (__volget<_Indexes>(_M_bound_args), __args)...); 32778: } 32778: 32778: 32778: template 32778: __disable_if_void<_Res> 32778: __call(tuple<_Args...>&& __args, 32778: _Index_tuple<_Indexes...>) const volatile 32778: { 32778: return std::__invoke(_M_f, _Mu<_Bound_args>() 32778: (__volget<_Indexes>(_M_bound_args), __args)...); 32778: } 32778: 32778: 32778: template 32778: __enable_if_void<_Res> 32778: __call(tuple<_Args...>&& __args, 32778: _Index_tuple<_Indexes...>) const volatile 32778: { 32778: std::__invoke(_M_f, _Mu<_Bound_args>() 32778: (__volget<_Indexes>(_M_bound_args), __args)...); 32778: } 32778: 32778: public: 32778: typedef _Result result_type; 32778: 32778: template 32778: explicit _Bind_result(const _Functor& __f, _Args&&... __args) 32778: : _M_f(__f), _M_bound_args(std::forward<_Args>(__args)...) 32778: { } 32778: 32778: template 32778: explicit _Bind_result(_Functor&& __f, _Args&&... __args) 32778: : _M_f(std::move(__f)), _M_bound_args(std::forward<_Args>(__args)...) 32778: { } 32778: 32778: _Bind_result(const _Bind_result&) = default; 32778: 32778: _Bind_result(_Bind_result&& __b) 32778: : _M_f(std::move(__b._M_f)), _M_bound_args(std::move(__b._M_bound_args)) 32778: { } 32778: 32778: 32778: template 32778: result_type 32778: operator()(_Args&&... __args) 32778: { 32778: return this->__call<_Result>( 32778: std::forward_as_tuple(std::forward<_Args>(__args)...), 32778: _Bound_indexes()); 32778: } 32778: 32778: 32778: template 32778: result_type 32778: operator()(_Args&&... __args) const 32778: { 32778: return this->__call<_Result>( 32778: std::forward_as_tuple(std::forward<_Args>(__args)...), 32778: _Bound_indexes()); 32778: } 32778: 32778: 32778: template 32778: 32778: result_type 32778: operator()(_Args&&... __args) volatile 32778: { 32778: return this->__call<_Result>( 32778: std::forward_as_tuple(std::forward<_Args>(__args)...), 32778: _Bound_indexes()); 32778: } 32778: 32778: 32778: template 32778: 32778: result_type 32778: operator()(_Args&&... __args) const volatile 32778: { 32778: return this->__call<_Result>( 32778: std::forward_as_tuple(std::forward<_Args>(__args)...), 32778: _Bound_indexes()); 32778: } 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct is_bind_expression<_Bind<_Signature> > 32778: : public true_type { }; 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct is_bind_expression > 32778: : public true_type { }; 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct is_bind_expression > 32778: : public true_type { }; 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct is_bind_expression> 32778: : public true_type { }; 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct is_bind_expression<_Bind_result<_Result, _Signature>> 32778: : public true_type { }; 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct is_bind_expression> 32778: : public true_type { }; 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct is_bind_expression> 32778: : public true_type { }; 32778: 32778: 32778: 32778: 32778: 32778: template 32778: struct is_bind_expression> 32778: : public true_type { }; 32778: 32778: template 32778: struct _Bind_check_arity { }; 32778: 32778: template 32778: struct _Bind_check_arity<_Ret (*)(_Args...), _BoundArgs...> 32778: { 32778: static_assert(sizeof...(_BoundArgs) == sizeof...(_Args), 32778: "Wrong number of arguments for function"); 32778: }; 32778: 32778: template 32778: struct _Bind_check_arity<_Ret (*)(_Args......), _BoundArgs...> 32778: { 32778: static_assert(sizeof...(_BoundArgs) >= sizeof...(_Args), 32778: "Wrong number of arguments for function"); 32778: }; 32778: 32778: template 32778: struct _Bind_check_arity<_Tp _Class::*, _BoundArgs...> 32778: { 32778: using _Arity = typename _Mem_fn<_Tp _Class::*>::_Arity; 32778: using _Varargs = typename _Mem_fn<_Tp _Class::*>::_Varargs; 32778: static_assert(_Varargs::value 32778: ? sizeof...(_BoundArgs) >= _Arity::value + 1 32778: : sizeof...(_BoundArgs) == _Arity::value + 1, 32778: "Wrong number of arguments for pointer-to-member"); 32778: }; 32778: 32778: 32778: 32778: 32778: template::type> 32778: using __is_socketlike = __or_, is_enum<_Tp2>>; 32778: 32778: template 32778: struct _Bind_helper 32778: : _Bind_check_arity::type, _BoundArgs...> 32778: { 32778: typedef typename decay<_Func>::type __func_type; 32778: typedef _Bind<__func_type(typename decay<_BoundArgs>::type...)> type; 32778: }; 32778: 32778: 32778: 32778: 32778: template 32778: struct _Bind_helper 32778: { }; 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline typename 32778: _Bind_helper<__is_socketlike<_Func>::value, _Func, _BoundArgs...>::type 32778: bind(_Func&& __f, _BoundArgs&&... __args) 32778: { 32778: typedef _Bind_helper __helper_type; 32778: return typename __helper_type::type(std::forward<_Func>(__f), 32778: std::forward<_BoundArgs>(__args)...); 32778: } 32778: 32778: template 32778: struct _Bindres_helper 32778: : _Bind_check_arity::type, _BoundArgs...> 32778: { 32778: typedef typename decay<_Func>::type __functor_type; 32778: typedef _Bind_result<_Result, 32778: __functor_type(typename decay<_BoundArgs>::type...)> 32778: type; 32778: }; 32778: 32778: 32778: 32778: 32778: 32778: template 32778: inline 32778: typename _Bindres_helper<_Result, _Func, _BoundArgs...>::type 32778: bind(_Func&& __f, _BoundArgs&&... __args) 32778: { 32778: typedef _Bindres_helper<_Result, _Func, _BoundArgs...> __helper_type; 32778: return typename __helper_type::type(std::forward<_Func>(__f), 32778: std::forward<_BoundArgs>(__args)...); 32778: } 32778: # 1293 "/usr/include/c++/9/functional" 3 32778: 32778: } 32778: # 15 "/<>/search/include/HepMC3/Filter.h" 2 32778: 32778: # 15 "/<>/search/include/HepMC3/Filter.h" 32778: namespace HepMC3 { 32778: 32778: using Filter = std::function; 32778: 32778: 32778: 32778: inline vector applyFilter(const Filter &filter, const vector &particles) { 32778: vector result; 32778: for(GenParticlePtr p: particles) { 32778: if(filter(p)) result.push_back(p); 32778: } 32778: return result; 32778: } 32778: 32778: 32778: 32778: inline vector applyFilter(const Filter &filter, const vector &particles) { 32778: vector result; 32778: for(ConstGenParticlePtr p: particles) { 32778: if(filter(p)) result.push_back(p); 32778: } 32778: return result; 32778: } 32778: 32778: 32778: 32778: inline bool ACCEPT_ALL(ConstGenParticlePtr dummy) { 32778: return true; 32778: } 32778: 32778: 32778: inline Filter operator && (const Filter & lhs, const Filter &rhs) { 32778: return [lhs, rhs](ConstGenParticlePtr p)->bool{return lhs(p) && rhs(p); }; 32778: } 32778: 32778: 32778: inline Filter operator || (const Filter & lhs, const Filter &rhs) { 32778: return [lhs, rhs](ConstGenParticlePtr p)->bool{return lhs(p) || rhs(p); }; 32778: } 32778: 32778: 32778: inline Filter operator !(const Filter &rhs) { 32778: return [rhs](ConstGenParticlePtr p)->bool{return ! (rhs(p));}; 32778: } 32778: 32778: } 32778: # 14 "/<>/search/include/HepMC3/Selector.h" 2 32778: # 1 "/<>/search/include/HepMC3/Feature.h" 1 32778: # 18 "/<>/search/include/HepMC3/Feature.h" 32778: namespace HepMC3 { 32778: # 55 "/<>/search/include/HepMC3/Feature.h" 32778: template 32778: class GenericFeature { 32778: 32778: public: 32778: 32778: using Evaluator_type = std::function; 32778: using EvaluatorPtr = std::shared_ptr; 32778: 32778: 32778: Feature_type operator()(ConstGenParticlePtr input)const { 32778: return (*m_internal)(input); 32778: } 32778: 32778: 32778: 32778: Filter operator > (Feature_type value) const { 32778: EvaluatorPtr functor = m_internal; 32778: return [value, functor](ConstGenParticlePtr input)->bool{return (*functor)(input) > value;}; 32778: } 32778: 32778: 32778: Filter operator < (Feature_type value) const { 32778: EvaluatorPtr functor = m_internal; 32778: return [value, functor](ConstGenParticlePtr input)->bool{return (*functor)(input) < value;}; 32778: } 32778: 32778: 32778: 32778: Filter operator >= (Feature_type value) const { 32778: EvaluatorPtr functor = m_internal; 32778: return [value, functor](ConstGenParticlePtr input)->bool{return (*functor)(input) >= value;}; 32778: } 32778: 32778: 32778: 32778: Filter operator <= (Feature_type value) const { 32778: EvaluatorPtr functor = m_internal; 32778: return [value, functor](ConstGenParticlePtr input)->bool{return (*functor)(input) <= value;}; 32778: } 32778: 32778: 32778: 32778: virtual Filter operator == (Feature_type value) const { 32778: EvaluatorPtr functor = m_internal; 32778: return [value, functor](ConstGenParticlePtr input)->bool{return (*functor)(input) == value;}; 32778: } 32778: 32778: 32778: 32778: virtual Filter operator != (Feature_type value) const { 32778: EvaluatorPtr functor = m_internal; 32778: return [value, functor](ConstGenParticlePtr input)->bool{return (*functor)(input) != value;}; 32778: } 32778: 32778: protected: 32778: 32778: 32778: GenericFeature(Evaluator_type functor):m_internal(std::make_shared(functor)) {} 32778: 32778: 32778: GenericFeature(const GenericFeature ©) : m_internal(copy.m_internal) {} 32778: 32778: 32778: 32778: 32778: EvaluatorPtr m_internal; 32778: 32778: }; 32778: # 160 "/<>/search/include/HepMC3/Feature.h" 32778: template 32778: class Feature : public GenericFeature { 32778: 32778: public: 32778: 32778: using typename GenericFeature::Evaluator_type; 32778: using typename GenericFeature::EvaluatorPtr; 32778: using GenericFeature::m_internal; 32778: 32778: using GenericFeature::operator (); 32778: using GenericFeature::operator >; 32778: using GenericFeature::operator >=; 32778: using GenericFeature::operator <; 32778: using GenericFeature::operator <=; 32778: using GenericFeature::operator ==; 32778: using GenericFeature::operator !=; 32778: 32778: Feature(Evaluator_type functor) : GenericFeature(functor) {} 32778: Feature(const Feature ©) : GenericFeature(copy) {} 32778: 32778: Feature abs() const { 32778: EvaluatorPtr functor = m_internal; 32778: Evaluator_type absfunctor = [functor](ConstGenParticlePtr p)->Feature_type{return ::abs((*functor)(p));}; 32778: return Feature(absfunctor); 32778: } 32778: 32778: }; 32778: # 203 "/<>/search/include/HepMC3/Feature.h" 32778: template 32778: class Feature::value, void>::type> : public GenericFeature { 32778: 32778: public: 32778: 32778: using GenericFeature::operator (); 32778: using GenericFeature::operator >; 32778: using GenericFeature::operator >=; 32778: using GenericFeature::operator <; 32778: using GenericFeature::operator <=; 32778: using GenericFeature::operator ==; 32778: using GenericFeature::operator !=; 32778: 32778: using typename GenericFeature::Evaluator_type; 32778: using typename GenericFeature::EvaluatorPtr; 32778: 32778: using GenericFeature::m_internal; 32778: 32778: Feature(Evaluator_type functor) : GenericFeature(functor) {} 32778: Feature(const Feature ©) : GenericFeature(copy) {} 32778: 32778: Feature abs() const { 32778: EvaluatorPtr functor = m_internal; 32778: Evaluator_type absfunctor = [functor](ConstGenParticlePtr p)->Feature_type{return ::abs((*functor)(p));}; 32778: return Feature(absfunctor); 32778: } 32778: 32778: Filter operator > (double value) const { 32778: EvaluatorPtr functor = m_internal; 32778: return [value, functor](ConstGenParticlePtr input)->bool{return (*functor)(input) > value;}; 32778: } 32778: 32778: Filter operator < (double value) const { 32778: EvaluatorPtr functor = m_internal; 32778: return [value, functor](ConstGenParticlePtr input)->bool{return (*functor)(input) < value;}; 32778: } 32778: 32778: Filter operator == (double value) const { 32778: EvaluatorPtr functor = m_internal; 32778: return [value, functor](ConstGenParticlePtr input)->bool{ 32778: Feature_type local = (*functor)(input); 32778: return fabs(local - value) <= ((::abs(local) < fabs(value))? fabs(value) : ::abs(local)) * std::numeric_limits::epsilon(); 32778: }; 32778: } 32778: 32778: Filter operator >= (double value) const { return !( (*this) < value );} 32778: 32778: Filter operator <= (double value) const { return !( (*this) > value );} 32778: 32778: Filter operator != (double value) const { 32778: return !( (*this)==value ); 32778: } 32778: 32778: }; 32778: # 267 "/<>/search/include/HepMC3/Feature.h" 32778: template 32778: class Feature::value, void>::type> : public GenericFeature { 32778: 32778: public: 32778: 32778: using typename GenericFeature::Evaluator_type; 32778: using typename GenericFeature::EvaluatorPtr; 32778: 32778: using GenericFeature::operator (); 32778: using GenericFeature::operator >; 32778: using GenericFeature::operator >=; 32778: using GenericFeature::operator <; 32778: using GenericFeature::operator <=; 32778: 32778: using GenericFeature::m_internal; 32778: 32778: Feature(Evaluator_type functor) : GenericFeature(functor) {} 32778: Feature(const Feature ©) : GenericFeature(copy) {} 32778: 32778: Feature abs() const { 32778: EvaluatorPtr functor = m_internal; 32778: Evaluator_type absfunctor = [functor](ConstGenParticlePtr p)->Feature_type{return fabs((*functor)(p));}; 32778: return Feature(absfunctor); 32778: } 32778: 32778: Filter operator == (Feature_type value) const override { 32778: EvaluatorPtr functor = m_internal; 32778: return [value, functor](ConstGenParticlePtr input)->bool{ 32778: Feature_type local = (*functor)(input); 32778: return fabs(local - value) <= ((fabs(local) < fabs(value))? fabs(value) : fabs(local)) * std::numeric_limits::epsilon(); 32778: }; 32778: } 32778: 32778: Filter operator != (Feature_type value) const override { 32778: return !( (*this)==value ); 32778: } 32778: 32778: }; 32778: # 315 "/<>/search/include/HepMC3/Feature.h" 32778: template 32778: Feature abs(const Feature &input) { 32778: return input.abs(); 32778: } 32778: 32778: } 32778: # 15 "/<>/search/include/HepMC3/Selector.h" 2 32778: # 1 "/<>/search/include/HepMC3/AttributeFeature.h" 1 32778: # 18 "/<>/search/include/HepMC3/AttributeFeature.h" 32778: namespace HepMC3 { 32778: 32778: class AttributeFeature { 32778: 32778: public: 32778: 32778: AttributeFeature(const std::string &name): m_name(name) {} 32778: 32778: Filter exists() const { 32778: std::string name = m_name; 32778: return [name](ConstGenParticlePtr p)->bool{return p->attribute_as_string(name).length() != 0;}; 32778: } 32778: 32778: bool operator()(ConstGenParticlePtr p) const { 32778: return p->attribute_as_string(m_name).length() != 0; 32778: } 32778: 32778: Filter operator == (const Attribute &rhs) const { 32778: std::string name = m_name; 32778: std::string other; 32778: rhs.to_string(other); 32778: return [other, name](ConstGenParticlePtr p)->bool{return p->attribute_as_string(name).compare(other) == 0;}; 32778: } 32778: 32778: Filter operator == (std::shared_ptr rhs) const { 32778: std::string name = m_name; 32778: std::string other; 32778: rhs->to_string(other); 32778: return [other, name](ConstGenParticlePtr p)->bool{return p->attribute_as_string(name).compare(other) == 0;}; 32778: } 32778: 32778: Filter operator == (std::string rhs) const { 32778: const std::string &name = m_name; 32778: return [name, rhs](ConstGenParticlePtr p)->bool{return p->attribute_as_string(name).compare(rhs) == 0;}; 32778: } 32778: 32778: private: 32778: 32778: std::string m_name; 32778: 32778: }; 32778: } 32778: # 16 "/<>/search/include/HepMC3/Selector.h" 2 32778: 32778: namespace HepMC3 { 32778: 32778: template 32778: class SelectorWrapper; 32778: 32778: class Selector; 32778: 32778: using ConstSelectorPtr = std::shared_ptr; 32778: # 55 "/<>/search/include/HepMC3/Selector.h" 32778: class Selector { 32778: 32778: public: 32778: 32778: virtual ~Selector() {}; 32778: 32778: virtual Filter operator > (int value) const = 0; 32778: virtual Filter operator > (double value) const = 0; 32778: 32778: virtual Filter operator >= (int value) const = 0; 32778: virtual Filter operator >= (double value) const = 0; 32778: 32778: virtual Filter operator < (int value) const = 0; 32778: virtual Filter operator < (double value) const = 0; 32778: 32778: virtual Filter operator <= (int value) const = 0; 32778: virtual Filter operator <= (double value) const = 0; 32778: 32778: virtual Filter operator == (int value) const = 0; 32778: virtual Filter operator == (double value) const = 0; 32778: 32778: virtual Filter operator != (int value) const = 0; 32778: virtual Filter operator != (double value) const = 0; 32778: 32778: virtual ConstSelectorPtr abs() const = 0; 32778: 32778: static const SelectorWrapper STATUS; 32778: static const SelectorWrapper PDG_ID; 32778: static const SelectorWrapper PT; 32778: static const SelectorWrapper ENERGY; 32778: static const SelectorWrapper RAPIDITY; 32778: static const SelectorWrapper ETA; 32778: static const SelectorWrapper PHI; 32778: static const SelectorWrapper ET; 32778: static const SelectorWrapper MASS; 32778: static AttributeFeature ATTRIBUTE(const std::string &name); 32778: 32778: }; 32778: 32778: template 32778: class SelectorWrapper : public Selector { 32778: 32778: public: 32778: 32778: SelectorWrapper(typename Feature::Evaluator_type functor): m_internal(functor) {} 32778: 32778: Filter operator > (int value) const override { 32778: return m_internal > value; 32778: } 32778: 32778: Filter operator > (double value) const override { 32778: return m_internal > value; 32778: } 32778: 32778: Filter operator >= (int value) const override { 32778: return m_internal >= value; 32778: } 32778: 32778: Filter operator >= (double value) const override { 32778: return m_internal >= value; 32778: } 32778: 32778: Filter operator < (int value) const override { 32778: return m_internal < value; 32778: } 32778: 32778: Filter operator < (double value) const override { 32778: return m_internal < value; 32778: } 32778: 32778: Filter operator <= (int value) const override { 32778: return m_internal <= value; 32778: } 32778: 32778: Filter operator <= (double value) const override { 32778: return m_internal <= value; 32778: } 32778: 32778: Filter operator == (int value) const override { 32778: return m_internal == value; 32778: } 32778: 32778: Filter operator == (double value) const override { 32778: return m_internal == value; 32778: } 32778: 32778: Filter operator != (int value) const override { 32778: return m_internal != value; 32778: } 32778: 32778: Filter operator != (double value) const override { 32778: return m_internal != value; 32778: } 32778: 32778: ConstSelectorPtr abs() const override { 32778: SelectorWrapper *copy = new SelectorWrapper(*this); 32778: copy->m_internal = m_internal.abs(); 32778: return ConstSelectorPtr(copy); 32778: } 32778: 32778: private: 32778: 32778: Feature m_internal; 32778: 32778: }; 32778: 32778: ConstSelectorPtr abs(const Selector &input); 32778: 32778: } 32778: # 11 "/<>/search/src/Selector.cc" 2 32778: 32778: namespace HepMC3 { 32778: const SelectorWrapper Selector::STATUS = SelectorWrapper([](ConstGenParticlePtr p)->int{return p->status();}); 32778: const SelectorWrapper Selector::PDG_ID = SelectorWrapper([](ConstGenParticlePtr p)->int{return p->pdg_id();}); 32778: const SelectorWrapper Selector::PT = SelectorWrapper([](ConstGenParticlePtr p)->double{return p->momentum().pt();}); 32778: const SelectorWrapper Selector::ENERGY = SelectorWrapper([](ConstGenParticlePtr p)->double{return p->momentum().e();}); 32778: const SelectorWrapper Selector::RAPIDITY = SelectorWrapper([](ConstGenParticlePtr p)->double{return p->momentum().rap();}); 32778: const SelectorWrapper Selector::ETA = SelectorWrapper([](ConstGenParticlePtr p)->double{return p->momentum().eta();}); 32778: const SelectorWrapper Selector::PHI = SelectorWrapper([](ConstGenParticlePtr p)->double{return p->momentum().phi();}); 32778: const SelectorWrapper Selector::ET = SelectorWrapper([](ConstGenParticlePtr p)->double{return p->momentum().e() * (p->momentum().pt() / p->momentum().p3mod());}); 32778: const SelectorWrapper Selector::MASS = SelectorWrapper([](ConstGenParticlePtr p)->double{return p->momentum().m();}); 32778: 32778: 32778: 32778: ConstSelectorPtr abs(const Selector &input) 32778: { 32778: return input.abs(); 32778: } 32778: 32778: 32778: AttributeFeature Selector::ATTRIBUTE(const std::string &name) {return AttributeFeature(name);} 32778: 32778: } === END GCC DUMP === make[4]: *** [search/CMakeFiles/objlibsearch.dir/build.make:79: search/CMakeFiles/objlibsearch.dir/src/Selector.cc.o] Error 1 make[4]: Leaving directory '/<>/obj-riscv64-linux-gnu' make[3]: *** [CMakeFiles/Makefile2:320: search/CMakeFiles/objlibsearch.dir/all] Error 2 make[3]: Leaving directory '/<>/obj-riscv64-linux-gnu' make[2]: *** [Makefile:166: all] Error 2 make[2]: Leaving directory '/<>/obj-riscv64-linux-gnu' dh_auto_build: error: cd obj-riscv64-linux-gnu && make -j1 returned exit code 2 make[1]: *** [debian/rules:18: override_dh_auto_build-arch] Error 25 make[1]: Leaving directory '/<>' make: *** [debian/rules:6: build-arch] Error 2 dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2 -------------------------------------------------------------------------------- Build finished at 2020-04-09T16:56:29Z Finished -------- +------------------------------------------------------------------------------+ | Cleanup | +------------------------------------------------------------------------------+ Purging /<> Not removing build depends: as requested E: Build failure (dpkg-buildpackage died) +------------------------------------------------------------------------------+ | Summary | +------------------------------------------------------------------------------+ Build Architecture: riscv64 Build Type: any Build-Space: 181528 Build-Time: 1782 Distribution: focal Fail-Stage: build Host Architecture: riscv64 Install-Time: 183 Job: hepmc3_3.1.2-2.dsc Machine Architecture: riscv64 Package: hepmc3 Package-Time: 1996 Source-Version: 3.1.2-2 Space: 181528 Status: attempted Version: 3.1.2-2 -------------------------------------------------------------------------------- Finished at 2020-04-09T16:56:29Z Build needed 00:33:16, 181528k disk space E: Build failure (dpkg-buildpackage died) RUN: /usr/share/launchpad-buildd/bin/in-target scan-for-processes --backend=chroot --series=focal --arch=riscv64 PACKAGEBUILD-19104336 Scanning for processes to kill in build PACKAGEBUILD-19104336 RUN: /usr/share/launchpad-buildd/bin/in-target umount-chroot --backend=chroot --series=focal --arch=riscv64 PACKAGEBUILD-19104336 Stopping target for build PACKAGEBUILD-19104336 RUN: /usr/share/launchpad-buildd/bin/in-target remove-build --backend=chroot --series=focal --arch=riscv64 PACKAGEBUILD-19104336 Removing build PACKAGEBUILD-19104336